2025-04-28 Niels Möller <nisse@lysator.liu.se>
+ * 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.
+
* salsa20.h (salsa20_set_iv, SALSA20_IV_SIZE): Delete backwards
compatibility aliases.
* testsuite/salsa20-test.c: Update to consistently use "nonce"
#define GOSTHASH94_BLOCK_SIZE 32
#define GOSTHASH94_DIGEST_SIZE 32
-/* For backwards compatibility */
-#define GOSTHASH94_DATA_SIZE GOSTHASH94_BLOCK_SIZE
#define GOSTHASH94CP_BLOCK_SIZE GOSTHASH94_BLOCK_SIZE
#define GOSTHASH94CP_DIGEST_SIZE GOSTHASH94_DIGEST_SIZE
#define MD2_DIGEST_SIZE 16
#define MD2_BLOCK_SIZE 16
-/* For backwards compatibility */
-#define MD2_DATA_SIZE MD2_BLOCK_SIZE
struct md2_ctx
{
#define MD4_DIGEST_SIZE 16
#define MD4_BLOCK_SIZE 64
-/* For backwards compatibility */
-#define MD4_DATA_SIZE MD4_BLOCK_SIZE
/* Digest is kept internally as 4 32-bit words. */
#define _MD4_DIGEST_LENGTH 4
#define MD5_DIGEST_SIZE 16
#define MD5_BLOCK_SIZE 64
-/* For backwards compatibility */
-#define MD5_DATA_SIZE MD5_BLOCK_SIZE
/* Digest is kept internally as 4 32-bit words. */
#define _MD5_DIGEST_LENGTH 4
void
md5_compress(uint32_t *state, const uint8_t *data);
-/* Old name, for backwards compatibility. */
-#define _nettle_md5_compress nettle_md5_compress
-
#ifdef __cplusplus
}
#endif
#define RIPEMD160_DIGEST_SIZE 20
#define RIPEMD160_BLOCK_SIZE 64
-/* For backwards compatibility */
-#define RIPEMD160_DATA_SIZE RIPEMD160_BLOCK_SIZE
/* Digest is kept internally as 5 32-bit words. */
#define _RIPEMD160_DIGEST_LENGTH 5
#define SHA1_DIGEST_SIZE 20
#define SHA1_BLOCK_SIZE 64
-/* For backwards compatibility */
-#define SHA1_DATA_SIZE SHA1_BLOCK_SIZE
/* Digest is kept internally as 5 32-bit words. */
#define _SHA1_DIGEST_LENGTH 5
void
sha1_compress(uint32_t *state, const uint8_t *data);
-/* Old name, for backwards compatibility. */
-#define _nettle_sha1_compress nettle_sha1_compress
-
#ifdef __cplusplus
}
#endif
#define sha512_256_init nettle_sha512_256_init
#define sha512_256_digest nettle_sha512_256_digest
-/* For backwards compatibility */
-#define SHA224_DATA_SIZE SHA256_BLOCK_SIZE
-#define SHA256_DATA_SIZE SHA256_BLOCK_SIZE
-#define SHA512_DATA_SIZE SHA512_BLOCK_SIZE
-#define SHA384_DATA_SIZE SHA512_BLOCK_SIZE
-
/* SHA256 */
#define SHA256_DIGEST_SIZE 32
#define SHA3_512_DIGEST_SIZE 64
#define SHA3_512_BLOCK_SIZE 72
-/* For backwards compatibility */
-#define SHA3_224_DATA_SIZE SHA3_224_BLOCK_SIZE
-#define SHA3_256_DATA_SIZE SHA3_256_BLOCK_SIZE
-#define SHA3_384_DATA_SIZE SHA3_384_BLOCK_SIZE
-#define SHA3_512_DATA_SIZE SHA3_512_BLOCK_SIZE
-
struct sha3_128_ctx
{
struct sha3_state state;
#define UMAC_BLOCK_SIZE 1024
#define UMAC_MIN_NONCE_SIZE 1
#define UMAC_MAX_NONCE_SIZE AES_BLOCK_SIZE
-/* For backwards compatibility */
-#define UMAC_DATA_SIZE UMAC_BLOCK_SIZE
/* Subkeys and state for UMAC with tag size 32*n bits. */
#define _UMAC_STATE(n) \