diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-11-26 13:00:28 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-11-26 13:00:28 +0100 |
commit | f69f207490dd25b89380c21e816b1f6644a7529f (patch) | |
tree | 2565d9cf8fd7a78e9ba298c8ba1661e108770706 | |
parent | d4681c7293da6aeb901101b5bc239229f4963926 (diff) | |
download | busybox-w32-f69f207490dd25b89380c21e816b1f6644a7529f.tar.gz busybox-w32-f69f207490dd25b89380c21e816b1f6644a7529f.tar.bz2 busybox-w32-f69f207490dd25b89380c21e816b1f6644a7529f.zip |
libbb: add comment on sha384
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | libbb/hash_md5_sha.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libbb/hash_md5_sha.c b/libbb/hash_md5_sha.c index a53a382ce..9db79ea8b 100644 --- a/libbb/hash_md5_sha.c +++ b/libbb/hash_md5_sha.c | |||
@@ -794,6 +794,11 @@ static const uint32_t init512_lo[] = { | |||
794 | }; | 794 | }; |
795 | #endif /* NEED_SHA512 */ | 795 | #endif /* NEED_SHA512 */ |
796 | 796 | ||
797 | // Note: SHA-384 is identical to SHA-512, except that initial hash values are | ||
798 | // 0xcbbb9d5dc1059ed8, 0x629a292a367cd507, 0x9159015a3070dd17, 0x152fecd8f70e5939, | ||
799 | // 0x67332667ffc00b31, 0x8eb44a8768581511, 0xdb0c2e0d64f98fa7, 0x47b5481dbefa4fa4, | ||
800 | // and the output is constructed by omitting last two 64-bit words of it. | ||
801 | |||
797 | /* Initialize structure containing state of computation. | 802 | /* Initialize structure containing state of computation. |
798 | (FIPS 180-2:5.3.2) */ | 803 | (FIPS 180-2:5.3.2) */ |
799 | void FAST_FUNC sha256_begin(sha256_ctx_t *ctx) | 804 | void FAST_FUNC sha256_begin(sha256_ctx_t *ctx) |