Emil Velikov emil.l.velikov@gmail.com writes:
In particular, this commit adds sha256, sha384 and sha512.
I've pushed the previous part.
--- a/examples/nettle-openssl.c +++ b/examples/nettle-openssl.c @@ -432,5 +432,8 @@ nettle_openssl_##name = { \
OPENSSL_HASH(MD5, md5) OPENSSL_HASH(SHA, sha1) +OPENSSL_HASH(SHA256, sha256) +OPENSSL_HASH(SHA512, sha384) // NOTE: SHA512 here is not a typo
Why doesn't
OPENSSL_HASH(SHA384, sha384)
work? Would it help to replace
NAME##_CBLOCK
which I guess expands to an openssl constant, with
NAME##_BLOCK_SIZE
which should be defined by Nettle? In the definition of the OPENSSL_HASH macro, that is.
Regards, /Niels