summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp/c_all.c
diff options
context:
space:
mode:
authortb <>2023-04-25 15:48:48 +0000
committertb <>2023-04-25 15:48:48 +0000
commitaa06ff6ff84baafcac76b48d7a0dcd4f9d00d7d2 (patch)
tree8fc6489b768abe5eb7eafc75ed8631756451a226 /src/lib/libcrypto/evp/c_all.c
parent9670fcb7ce8b0f516e7924baa6167b992630dc77 (diff)
downloadopenbsd-aa06ff6ff84baafcac76b48d7a0dcd4f9d00d7d2.tar.gz
openbsd-aa06ff6ff84baafcac76b48d7a0dcd4f9d00d7d2.tar.bz2
openbsd-aa06ff6ff84baafcac76b48d7a0dcd4f9d00d7d2.zip
Wire up truncated SHA-2, SHA-3 and related things
from jsing
Diffstat (limited to 'src/lib/libcrypto/evp/c_all.c')
-rw-r--r--src/lib/libcrypto/evp/c_all.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/libcrypto/evp/c_all.c b/src/lib/libcrypto/evp/c_all.c
index 8fc1aa6a17..936d7e810f 100644
--- a/src/lib/libcrypto/evp/c_all.c
+++ b/src/lib/libcrypto/evp/c_all.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: c_all.c,v 1.28 2022/10/21 13:39:35 tb Exp $ */ 1/* $OpenBSD: c_all.c,v 1.29 2023/04/25 15:48:48 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -290,6 +290,14 @@ OpenSSL_add_all_digests_internal(void)
290#ifndef OPENSSL_NO_SHA512 290#ifndef OPENSSL_NO_SHA512
291 EVP_add_digest(EVP_sha384()); 291 EVP_add_digest(EVP_sha384());
292 EVP_add_digest(EVP_sha512()); 292 EVP_add_digest(EVP_sha512());
293 EVP_add_digest(EVP_sha512_224());
294 EVP_add_digest(EVP_sha512_256());
295#endif
296#ifndef OPENSSL_NO_SHA3
297 EVP_add_digest(EVP_sha3_224());
298 EVP_add_digest(EVP_sha3_256());
299 EVP_add_digest(EVP_sha3_384());
300 EVP_add_digest(EVP_sha3_512());
293#endif 301#endif
294#ifndef OPENSSL_NO_SM3 302#ifndef OPENSSL_NO_SM3
295 EVP_add_digest(EVP_sm3()); 303 EVP_add_digest(EVP_sm3());