From e023ad2d83bb8a804e989d38e91e0685db179830 Mon Sep 17 00:00:00 2001 From: Adam Langley Date: Mon, 2 Mar 2015 14:55:56 -0800 Subject: [PATCH] Fix SHA-384 and -512 in NO_ASM mode. This transcription bug comes from the start of BoringSSL and, as you can imagine, was a complete delight to track down. Change-Id: I3051934195098a1d3bf893b154389ec7f14d3609 Reviewed-on: https://boringssl-review.googlesource.com/3740 Reviewed-by: David Benjamin Reviewed-by: Adam Langley --- include/openssl/sha.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/openssl/sha.h b/include/openssl/sha.h index 5b363ee4..0e37c45a 100644 --- a/include/openssl/sha.h +++ b/include/openssl/sha.h @@ -224,7 +224,7 @@ struct sha512_state_st { uint64_t Nl, Nh; union { uint64_t d[16]; - uint8_t p[64]; + uint8_t p[128]; } u; unsigned int num, md_len; };