diff options
author | Simon Josefsson <simon@josefsson.org> | 2008-03-03 08:52:42 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-03-03 08:56:52 +0100 |
commit | dcc543f44c56d1b5793e4fcc1f3ef9bfb5e4ee54 (patch) | |
tree | 7c0638337036f301ef4eab9f1a259def4e2a22d5 /gl/lib/sha512.h | |
parent | b22067a58289cd3eea50402b48ac51f323e77c22 (diff) | |
download | coreutils-dcc543f44c56d1b5793e4fcc1f3ef9bfb5e4ee54.tar.xz |
Define SHA*_DIGEST_SIZE symbols.
* gl/lib/sha256.h (SHA224_DIGEST_SIZE, SHA256_DIGEST_SIZE): Define.
* gl/lib/sha512.h (SHA384_DIGEST_SIZE, SHA512_DIGEST_SIZE): Define.
Diffstat (limited to 'gl/lib/sha512.h')
-rw-r--r-- | gl/lib/sha512.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gl/lib/sha512.h b/gl/lib/sha512.h index 7ee3ac4f8..84fe5591f 100644 --- a/gl/lib/sha512.h +++ b/gl/lib/sha512.h @@ -32,6 +32,8 @@ struct sha512_ctx u64 buffer[32]; }; +enum { SHA384_DIGEST_SIZE = 48 }; +enum { SHA512_DIGEST_SIZE = 64 }; /* Initialize structure containing state of computation. */ extern void sha512_init_ctx (struct sha512_ctx *ctx); |