2025-04-28 Niels Möller <nisse@lysator.liu.se>
+ * sha.h: Deleted file.
+ * nettle.texinfo: Delete all mention of sha.h.
+ * Makefile.in (HEADERS): Delete sha.h.
+
* ghosthash94.h, md*.h, ripemd160.h, sha*.h, umac.h: Delete all
_DATA_SIZE constant, they were backwards compatibility aliases for
_BLOCK_SIZE, from 2014 renaming.
ocb.h pbkdf2.h \
pkcs1.h pss.h pss-mgf1.h realloc.h ripemd160.h rsa.h \
salsa20.h sexp.h serpent.h \
- sha.h sha1.h sha2.h sha3.h sm3.h sm4.h streebog.h twofish.h \
+ sha1.h sha2.h sha3.h sm3.h sm4.h streebog.h twofish.h \
umac.h yarrow.h xts.h poly1305.h nist-keywrap.h \
drbg-ctr.h
standard SHA256).
@end deftypefun
-Earlier versions of nettle defined SHA256 in the header file
-@file{<nettle/sha.h>}, which is now deprecated, but kept for
-compatibility.
-
@subsubsection @acronym{SHA224}
SHA224 is a variant of SHA256, with a different initial state, and with
the output truncated to 224 bits, or 28 octets. Nettle defines SHA224 in
-@file{<nettle/sha2.h>} (and in @file{<nettle/sha.h>}, for backwards
-compatibility).
+@file{<nettle/sha2.h>}.
@deftp {Context struct} {struct sha224_ctx}
@end deftp
with both the output and the internal variables of twice the size. The
internal variables are 64 bits rather than 32, making it significantly
slower on 32-bit computers. It outputs hash values of 512 bits, or 64
-octets. Nettle defines SHA512 in @file{<nettle/sha2.h>} (and in
-@file{<nettle/sha.h>}, for backwards compatibility).
+octets. Nettle defines SHA512 in @file{<nettle/sha2.h>}.
@deftp {Context struct} {struct sha512_ctx}
@end deftp
state, and with the output truncated to shorter length than 512 bits.
Naming is a bit confused, these algorithms are called SHA512-224,
SHA512-256 and SHA384, for output sizes of 224, 256 and 384 bits,
-respectively. Nettle defines these in @file{<nettle/sha2.h>} (and in
-@file{<nettle/sha.h>}, for backwards compatibility).
+respectively. Nettle defines these in @file{<nettle/sha2.h>}.
@deftp {Context struct} {struct sha512_224_ctx}
@deftpx {Context struct} {struct sha512_256_ctx}
SHA1 is a hash function specified by @dfn{NIST} (The U.S. National
Institute for Standards and Technology). It outputs hash values of 160
-bits, or 20 octets. Nettle defines SHA1 in @file{<nettle/sha1.h>} (and
-in @file{<nettle/sha.h>}, for backwards compatibility).
+bits, or 20 octets. Nettle defines SHA1 in @file{<nettle/sha1.h>}.
@deftp {Context struct} {struct sha1_ctx}
@end deftp
+++ /dev/null
-/* sha.h
-
- This file is deprecated, and provided only for backwards
- compatibility with earlier versions of Nettle. Please use sha1.h
- and/or sha2.h instead.
-
- Copyright (C) 2001 Niels Möller
-
- This file is part of GNU Nettle.
-
- GNU Nettle is free software: you can redistribute it and/or
- modify it under the terms of either:
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at your
- option) any later version.
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at your
- option) any later version.
-
- or both in parallel, as here.
-
- GNU Nettle is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see http://www.gnu.org/licenses/.
-*/
-
-#ifndef NETTLE_SHA_H_INCLUDED
-#define NETTLE_SHA_H_INCLUDED
-
-#include "sha1.h"
-#include "sha2.h"
-
-#endif /* NETTLE_SHA_H_INCLUDED */