]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Update SHA384_Update to do thunking
authorNeil Horman <nhorman@openssl.org>
Tue, 20 Jan 2026 17:30:24 +0000 (12:30 -0500)
committerPauli <paul.dale@oracle.com>
Wed, 21 Jan 2026 22:40:35 +0000 (09:40 +1100)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/29650)

crypto/sha/sha512.c
providers/implementations/digests/sha2_prov.c

index 473ec09b5f4cf41b6588c9677e1622fed56c62c7..45b8e7c3321ff4807ecf5af27fec722cc9fcc891 100644 (file)
@@ -333,7 +333,7 @@ int SHA512_Update(SHA512_CTX *c, const void *_data, size_t len)
 
 int SHA384_Update(SHA512_CTX *c, const void *data, size_t len)
 {
-    return SHA512_Update(c, data, len);
+    return SHA512_Update_thunk((void *)c, (const unsigned char *)data, len);
 }
 
 void SHA512_Transform(SHA512_CTX *c, const unsigned char *data)
index 607228a3550f596bbf3f88ae7b711a1828f48724..8c9114b58b95d6e03eb887b4d31f4768497cf901 100644 (file)
@@ -309,7 +309,7 @@ IMPLEMENT_digest_functions_with_serialize(sha256_192_internal, SHA256_CTX,
 IMPLEMENT_digest_functions_with_serialize(sha384, SHA512_CTX,
     SHA512_CBLOCK, SHA384_DIGEST_LENGTH,
     SHA2_FLAGS, SHA384_Init,
-    SHA384_Update, SHA384_Final,
+    SHA512_Update_thunk, SHA384_Final,
     SHA512_Serialize, SHA512_Deserialize)
 
 /* ossl_sha512_functions */