summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp
diff options
context:
space:
mode:
authortb <>2024-03-24 06:05:41 +0000
committertb <>2024-03-24 06:05:41 +0000
commit5bb911ebdb5199150af9adab46b9bb77cbfdc087 (patch)
tree74a29713e7a7166b81de9090085f263648b9e5ca /src/lib/libcrypto/evp
parent9e8c6b03b8c909fb8f6c8a39dca6993764b9a350 (diff)
downloadopenbsd-5bb911ebdb5199150af9adab46b9bb77cbfdc087.tar.gz
openbsd-5bb911ebdb5199150af9adab46b9bb77cbfdc087.tar.bz2
openbsd-5bb911ebdb5199150af9adab46b9bb77cbfdc087.zip
Bye bye gost, bye, bye turdiness
ok beck
Diffstat (limited to 'src/lib/libcrypto/evp')
-rw-r--r--src/lib/libcrypto/evp/evp_local.h5
-rw-r--r--src/lib/libcrypto/evp/evp_names.c67
-rw-r--r--src/lib/libcrypto/evp/evp_pbe.c10
3 files changed, 3 insertions, 79 deletions
diff --git a/src/lib/libcrypto/evp/evp_local.h b/src/lib/libcrypto/evp/evp_local.h
index dad2cec81e..d0335931e5 100644
--- a/src/lib/libcrypto/evp/evp_local.h
+++ b/src/lib/libcrypto/evp/evp_local.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: evp_local.h,v 1.19 2024/03/02 10:20:27 tb Exp $ */ 1/* $OpenBSD: evp_local.h,v 1.20 2024/03/24 06:05:41 tb Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 2000. 3 * project 2000.
4 */ 4 */
@@ -173,9 +173,6 @@ struct evp_pkey_st {
173 struct ec_key_st *ec; /* ECC */ 173 struct ec_key_st *ec; /* ECC */
174 struct ecx_key_st *ecx; /* ECX */ 174 struct ecx_key_st *ecx; /* ECX */
175#endif 175#endif
176#ifndef OPENSSL_NO_GOST
177 struct gost_key_st *gost; /* GOST */
178#endif
179 } pkey; 176 } pkey;
180 int save_parameters; 177 int save_parameters;
181 STACK_OF(X509_ATTRIBUTE) *attributes; /* [ 0 ] */ 178 STACK_OF(X509_ATTRIBUTE) *attributes; /* [ 0 ] */
diff --git a/src/lib/libcrypto/evp/evp_names.c b/src/lib/libcrypto/evp/evp_names.c
index 2936c36622..83c2f53840 100644
--- a/src/lib/libcrypto/evp/evp_names.c
+++ b/src/lib/libcrypto/evp/evp_names.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: evp_names.c,v 1.12 2024/03/02 10:13:13 tb Exp $ */ 1/* $OpenBSD: evp_names.c,v 1.13 2024/03/24 06:05:41 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2023 Theo Buehler <tb@openbsd.org> 3 * Copyright (c) 2023 Theo Buehler <tb@openbsd.org>
4 * 4 *
@@ -415,13 +415,6 @@ static const struct cipher_name cipher_names[] = {
415 }, 415 },
416#endif /* OPENSSL_NO_DES */ 416#endif /* OPENSSL_NO_DES */
417 417
418#ifndef OPENSSL_NO_GOST
419 {
420 .name = LN_id_Gost28147_89,
421 .cipher = EVP_gost2814789_cfb64,
422 },
423#endif /* OPENSSL_NO_GOST */
424
425#ifndef OPENSSL_NO_IDEA 418#ifndef OPENSSL_NO_IDEA
426 { 419 {
427 .name = "IDEA", 420 .name = "IDEA",
@@ -917,21 +910,6 @@ static const struct cipher_name cipher_names[] = {
917 }, 910 },
918#endif /* OPENSSL_NO_DES */ 911#endif /* OPENSSL_NO_DES */
919 912
920#ifndef OPENSSL_NO_GOST
921 {
922 .name = SN_id_Gost28147_89,
923 .cipher = EVP_gost2814789_cfb64,
924 },
925 {
926 .name = SN_gost89_cnt,
927 .cipher = EVP_gost2814789_cnt,
928 },
929 {
930 .name = SN_gost89_ecb,
931 .cipher = EVP_gost2814789_ecb,
932 },
933#endif /* OPENSSL_NO_GOST */
934
935#ifndef OPENSSL_NO_AES 913#ifndef OPENSSL_NO_AES
936 { 914 {
937 .name = SN_aes_128_ccm, 915 .name = SN_aes_128_ccm,
@@ -1087,24 +1065,6 @@ static const struct digest_name digest_names[] = {
1087 .alias = SN_sha1, 1065 .alias = SN_sha1,
1088 }, 1066 },
1089#endif 1067#endif
1090#ifndef OPENSSL_NO_GOST
1091 {
1092 .name = LN_id_Gost28147_89_MAC,
1093 .digest = EVP_gost2814789imit,
1094 },
1095 {
1096 .name = LN_id_tc26_gost3411_2012_512,
1097 .digest = EVP_streebog512,
1098 },
1099 {
1100 .name = LN_id_tc26_gost3411_2012_256,
1101 .digest = EVP_streebog256,
1102 },
1103 {
1104 .name = LN_id_GostR3411_94,
1105 .digest = EVP_gostr341194,
1106 },
1107#endif /* OPENSSL_NO_GOST */
1108 1068
1109#ifndef OPENSSL_NO_MD4 1069#ifndef OPENSSL_NO_MD4
1110 { 1070 {
@@ -1356,13 +1316,6 @@ static const struct digest_name digest_names[] = {
1356 }, 1316 },
1357#endif /* OPENSSL_NO_SHA256 && OPENSSL_NO_EC */ 1317#endif /* OPENSSL_NO_SHA256 && OPENSSL_NO_EC */
1358 1318
1359#ifndef OPENSSL_NO_GOST
1360 {
1361 .name = SN_id_Gost28147_89_MAC,
1362 .digest = EVP_gost2814789imit,
1363 },
1364#endif /* OPENSSL_NO_GOST */
1365
1366#if !defined(OPENSSL_NO_DSA) && !defined(OPENSSL_NO_SHA256) 1319#if !defined(OPENSSL_NO_DSA) && !defined(OPENSSL_NO_SHA256)
1367 { 1320 {
1368 .name = SN_dsa_with_SHA224, 1321 .name = SN_dsa_with_SHA224,
@@ -1492,13 +1445,6 @@ static const struct digest_name digest_names[] = {
1492 }, 1445 },
1493#endif 1446#endif
1494 1447
1495#ifndef OPENSSL_NO_GOST
1496 {
1497 .name = SN_id_GostR3411_94,
1498 .digest = EVP_gostr341194,
1499 },
1500#endif /* OPENSSL_NO_GOST */
1501
1502#ifndef OPENSSL_NO_RIPEMD 1448#ifndef OPENSSL_NO_RIPEMD
1503 { 1449 {
1504 .name = "ripemd", 1450 .name = "ripemd",
@@ -1661,17 +1607,6 @@ static const struct digest_name digest_names[] = {
1661 }, 1607 },
1662#endif /* OPENSSL_NO_SHA1 */ 1608#endif /* OPENSSL_NO_SHA1 */
1663 1609
1664#ifndef OPENSSL_NO_GOST
1665 {
1666 .name = SN_id_tc26_gost3411_2012_256,
1667 .digest = EVP_streebog256,
1668 },
1669 {
1670 .name = SN_id_tc26_gost3411_2012_512,
1671 .digest = EVP_streebog512,
1672 },
1673#endif /* OPENSSL_NO_GOST */
1674
1675#ifndef OPENSSL_NO_WHIRLPOOL 1610#ifndef OPENSSL_NO_WHIRLPOOL
1676 { 1611 {
1677 .name = SN_whirlpool, 1612 .name = SN_whirlpool,
diff --git a/src/lib/libcrypto/evp/evp_pbe.c b/src/lib/libcrypto/evp/evp_pbe.c
index 532c924a9e..9ac914b9e3 100644
--- a/src/lib/libcrypto/evp/evp_pbe.c
+++ b/src/lib/libcrypto/evp/evp_pbe.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: evp_pbe.c,v 1.46 2024/03/02 10:20:27 tb Exp $ */ 1/* $OpenBSD: evp_pbe.c,v 1.47 2024/03/24 06:05:41 tb Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 1999. 3 * project 1999.
4 */ 4 */
@@ -494,14 +494,6 @@ md_nid_from_prf_nid(int nid)
494 return NID_sha3_384; 494 return NID_sha3_384;
495 case NID_hmac_sha3_512: 495 case NID_hmac_sha3_512:
496 return NID_sha3_512; 496 return NID_sha3_512;
497#ifndef OPENSSL_NO_GOST
498 case NID_id_HMACGostR3411_94:
499 return NID_id_GostR3411_94;
500 case NID_id_tc26_hmac_gost_3411_12_256:
501 return NID_id_tc26_gost3411_2012_256;
502 case NID_id_tc26_hmac_gost_3411_12_512:
503 return NID_id_tc26_gost3411_2012_512;
504#endif
505 default: 497 default:
506 return NID_undef; 498 return NID_undef;
507 } 499 }