diff options
| author | tb <> | 2018-11-11 06:53:31 +0000 |
|---|---|---|
| committer | tb <> | 2018-11-11 06:53:31 +0000 |
| commit | c247a32a9d35da8568530b68935cbf846e741929 (patch) | |
| tree | c825763485b682e2b4d62f2c543f52d67260398e /src/lib/libcrypto/evp/evp.h | |
| parent | ca9928e7c9c11578cf638e830236c837232fabc6 (diff) | |
| download | openbsd-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.h | 5 |
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); | |||
| 686 | const EVP_MD *EVP_sha384(void); | 686 | const EVP_MD *EVP_sha384(void); |
| 687 | const EVP_MD *EVP_sha512(void); | 687 | const EVP_MD *EVP_sha512(void); |
| 688 | #endif | 688 | #endif |
| 689 | #ifndef OPENSSL_NO_SM3 | ||
| 690 | const EVP_MD *EVP_sm3(void); | ||
| 691 | #endif | ||
| 689 | #ifndef OPENSSL_NO_RIPEMD | 692 | #ifndef OPENSSL_NO_RIPEMD |
| 690 | const EVP_MD *EVP_ripemd160(void); | 693 | const EVP_MD *EVP_ripemd160(void); |
| 691 | #endif | 694 | #endif |
