summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp/m_sm3.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/evp/m_sm3.c')
-rw-r--r--src/lib/libcrypto/evp/m_sm3.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/lib/libcrypto/evp/m_sm3.c b/src/lib/libcrypto/evp/m_sm3.c
index 614be5d780..ae8b342e82 100644
--- a/src/lib/libcrypto/evp/m_sm3.c
+++ b/src/lib/libcrypto/evp/m_sm3.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: m_sm3.c,v 1.2 2021/12/12 21:30:13 tb Exp $ */ 1/* $OpenBSD: m_sm3.c,v 1.3 2022/01/14 08:38:06 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2018, Ribose Inc 3 * Copyright (c) 2018, Ribose Inc
4 * 4 *
@@ -49,19 +49,12 @@ static const EVP_MD sm3_md = {
49 .type = NID_sm3, 49 .type = NID_sm3,
50 .pkey_type = NID_sm3WithRSAEncryption, 50 .pkey_type = NID_sm3WithRSAEncryption,
51 .md_size = SM3_DIGEST_LENGTH, 51 .md_size = SM3_DIGEST_LENGTH,
52 .flags = EVP_MD_FLAG_PKEY_METHOD_SIGNATURE|EVP_MD_FLAG_DIGALGID_ABSENT, 52 .flags = EVP_MD_FLAG_DIGALGID_ABSENT,
53 .init = sm3_init, 53 .init = sm3_init,
54 .update = sm3_update, 54 .update = sm3_update,
55 .final = sm3_final, 55 .final = sm3_final,
56 .copy = NULL, 56 .copy = NULL,
57 .cleanup = NULL, 57 .cleanup = NULL,
58#ifndef OPENSSL_NO_RSA
59 .sign = (evp_sign_method *)RSA_sign,
60 .verify = (evp_verify_method *)RSA_verify,
61 .required_pkey_type = {
62 EVP_PKEY_RSA, EVP_PKEY_RSA2, 0, 0,
63 },
64#endif
65 .block_size = SM3_CBLOCK, 58 .block_size = SM3_CBLOCK,
66 .ctx_size = sizeof(EVP_MD *) + sizeof(SM3_CTX), 59 .ctx_size = sizeof(EVP_MD *) + sizeof(SM3_CTX),
67}; 60};