diff options
author | tb <> | 2022-01-14 08:38:06 +0000 |
---|---|---|
committer | tb <> | 2022-01-14 08:38:06 +0000 |
commit | d5bd2d64a9d8dacaf683f88f953d25c96a7009ff (patch) | |
tree | c82726f940ee4796d12475c7295f11404867aae9 /src/lib/libcrypto/evp/m_streebog.c | |
parent | 0264d15b2db8e92add54fc0b024d5430c53683d3 (diff) | |
download | openbsd-d5bd2d64a9d8dacaf683f88f953d25c96a7009ff.tar.gz openbsd-d5bd2d64a9d8dacaf683f88f953d25c96a7009ff.tar.bz2 openbsd-d5bd2d64a9d8dacaf683f88f953d25c96a7009ff.zip |
Remove legacy sign/verify from EVP_MD.
This removes m_dss.c, m_dss1.c, and m_ecdsa.c and the corresponding
public API EVP_{dss,dss1,ecdsa}().
This is basically the following OpenSSL commit. The mentioned change in
RSA is already present in rsa/rsa_pmeth.c.
ok inoguchi jsing
commit 7f572e958b13041056f377a62d3219633cfb1e8a
Author: Dr. Stephen Henson <steve@openssl.org>
Date: Wed Dec 2 13:57:04 2015 +0000
Remove legacy sign/verify from EVP_MD.
Remove sign/verify and required_pkey_type fields of EVP_MD: these are a
legacy from when digests were linked to public key types. All signing is
now handled by the corresponding EVP_PKEY_METHOD.
Only allow supported digest types in RSA EVP_PKEY_METHOD: other algorithms
already block unsupported types.
Remove now obsolete EVP_dss1() and EVP_ecdsa().
Reviewed-by: Richard Levitte <levitte@openssl.org>
Plus OpenSSL commit 625a9baf11c1dd94f17e5876b6ee8d6271b3921d for m_dss.c
Diffstat (limited to 'src/lib/libcrypto/evp/m_streebog.c')
-rw-r--r-- | src/lib/libcrypto/evp/m_streebog.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/evp/m_streebog.c b/src/lib/libcrypto/evp/m_streebog.c index cd6c312b02..3f825e3a0e 100644 --- a/src/lib/libcrypto/evp/m_streebog.c +++ b/src/lib/libcrypto/evp/m_streebog.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: m_streebog.c,v 1.3 2021/12/12 21:30:13 tb Exp $ */ | 1 | /* $OpenBSD: m_streebog.c,v 1.4 2022/01/14 08:38:06 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 3 | * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> |
4 | * Copyright (c) 2005-2006 Cryptocom LTD | 4 | * Copyright (c) 2005-2006 Cryptocom LTD |
@@ -99,7 +99,7 @@ static const EVP_MD streebog256_md = { | |||
99 | .type = NID_id_tc26_gost3411_2012_256, | 99 | .type = NID_id_tc26_gost3411_2012_256, |
100 | .pkey_type = NID_undef, | 100 | .pkey_type = NID_undef, |
101 | .md_size = STREEBOG256_LENGTH, | 101 | .md_size = STREEBOG256_LENGTH, |
102 | .flags = EVP_MD_FLAG_PKEY_METHOD_SIGNATURE, | 102 | .flags = 0, |
103 | .init = streebog_init256, | 103 | .init = streebog_init256, |
104 | .update = streebog_update256, | 104 | .update = streebog_update256, |
105 | .final = streebog_final256, | 105 | .final = streebog_final256, |
@@ -111,7 +111,7 @@ static const EVP_MD streebog512_md = { | |||
111 | .type = NID_id_tc26_gost3411_2012_512, | 111 | .type = NID_id_tc26_gost3411_2012_512, |
112 | .pkey_type = NID_undef, | 112 | .pkey_type = NID_undef, |
113 | .md_size = STREEBOG512_LENGTH, | 113 | .md_size = STREEBOG512_LENGTH, |
114 | .flags = EVP_MD_FLAG_PKEY_METHOD_SIGNATURE, | 114 | .flags = 0, |
115 | .init = streebog_init512, | 115 | .init = streebog_init512, |
116 | .update = streebog_update512, | 116 | .update = streebog_update512, |
117 | .final = streebog_final512, | 117 | .final = streebog_final512, |