summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp/evp.h
diff options
context:
space:
mode:
authortb <>2018-11-11 06:53:31 +0000
committertb <>2018-11-11 06:53:31 +0000
commitc247a32a9d35da8568530b68935cbf846e741929 (patch)
treec825763485b682e2b4d62f2c543f52d67260398e /src/lib/libcrypto/evp/evp.h
parentca9928e7c9c11578cf638e830236c837232fabc6 (diff)
downloadopenbsd-c247a32a9d35da8568530b68935cbf846e741929.tar.gz
openbsd-c247a32a9d35da8568530b68935cbf846e741929.tar.bz2
openbsd-c247a32a9d35da8568530b68935cbf846e741929.zip
Add Ribose Inc's implementation of the SM3 hashing function with
tweaks from jsing and myself. The SM2/SM3/SM4 algorithms are mandatory for legal use of cryptography within China and [are] widely applied in the country, covering identification/financial cards, contactless, TPM 2.0 and PKI. ok beck inoguchi jsing
Diffstat (limited to 'src/lib/libcrypto/evp/evp.h')
-rw-r--r--src/lib/libcrypto/evp/evp.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libcrypto/evp/evp.h b/src/lib/libcrypto/evp/evp.h
index c09e2c046a..04e0455623 100644
--- a/src/lib/libcrypto/evp/evp.h
+++ b/src/lib/libcrypto/evp/evp.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: evp.h,v 1.69 2018/09/12 06:35:38 djm Exp $ */ 1/* $OpenBSD: evp.h,v 1.70 2018/11/11 06:53:31 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 *
@@ -686,6 +686,9 @@ const EVP_MD *EVP_sha256(void);
686const EVP_MD *EVP_sha384(void); 686const EVP_MD *EVP_sha384(void);
687const EVP_MD *EVP_sha512(void); 687const EVP_MD *EVP_sha512(void);
688#endif 688#endif
689#ifndef OPENSSL_NO_SM3
690const EVP_MD *EVP_sm3(void);
691#endif
689#ifndef OPENSSL_NO_RIPEMD 692#ifndef OPENSSL_NO_RIPEMD
690const EVP_MD *EVP_ripemd160(void); 693const EVP_MD *EVP_ripemd160(void);
691#endif 694#endif