summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/ameth_lib.c
diff options
context:
space:
mode:
authormiod <>2014-11-09 19:17:13 +0000
committermiod <>2014-11-09 19:17:13 +0000
commit12455d6eff265f95b0a7e20595630321799f50a2 (patch)
tree8f4747a1df4b007feca32e262b38052339c686c1 /src/lib/libcrypto/asn1/ameth_lib.c
parenta3c50c7d270773c83559454fd2b75ec6e04f43ab (diff)
downloadopenbsd-12455d6eff265f95b0a7e20595630321799f50a2.tar.gz
openbsd-12455d6eff265f95b0a7e20595630321799f50a2.tar.bz2
openbsd-12455d6eff265f95b0a7e20595630321799f50a2.zip
GOST crypto algorithms (well, most of them), ported from the removed GOST
engine to regular EVP citizens, contributed by Dmitry Eremin-Solenikov; libcrypto bits only for now. This is a verbatim import of Dmitry's work, and does not compile in this state; the forthcoming commits will address these issues. None of the GOST code is enabled in libcrypto yet, for it still gets compiled with OPENSSL_NO_GOST defined. However, the public header gost.h will be installed.
Diffstat (limited to 'src/lib/libcrypto/asn1/ameth_lib.c')
-rw-r--r--src/lib/libcrypto/asn1/ameth_lib.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/ameth_lib.c b/src/lib/libcrypto/asn1/ameth_lib.c
index e88496cc9d..168321618c 100644
--- a/src/lib/libcrypto/asn1/ameth_lib.c
+++ b/src/lib/libcrypto/asn1/ameth_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ameth_lib.c,v 1.14 2014/07/13 16:03:09 beck Exp $ */ 1/* $OpenBSD: ameth_lib.c,v 1.15 2014/11/09 19:17:13 miod 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 2006. 3 * project 2006.
4 */ 4 */
@@ -74,6 +74,8 @@ extern const EVP_PKEY_ASN1_METHOD rsa_asn1_meths[];
74extern const EVP_PKEY_ASN1_METHOD dsa_asn1_meths[]; 74extern const EVP_PKEY_ASN1_METHOD dsa_asn1_meths[];
75extern const EVP_PKEY_ASN1_METHOD dh_asn1_meth; 75extern const EVP_PKEY_ASN1_METHOD dh_asn1_meth;
76extern const EVP_PKEY_ASN1_METHOD eckey_asn1_meth; 76extern const EVP_PKEY_ASN1_METHOD eckey_asn1_meth;
77extern const EVP_PKEY_ASN1_METHOD gostr01_asn1_meths[];
78extern const EVP_PKEY_ASN1_METHOD gostimit_asn1_meth;
77extern const EVP_PKEY_ASN1_METHOD hmac_asn1_meth; 79extern const EVP_PKEY_ASN1_METHOD hmac_asn1_meth;
78extern const EVP_PKEY_ASN1_METHOD cmac_asn1_meth; 80extern const EVP_PKEY_ASN1_METHOD cmac_asn1_meth;
79 81
@@ -96,8 +98,16 @@ static const EVP_PKEY_ASN1_METHOD *standard_methods[] = {
96#ifndef OPENSSL_NO_EC 98#ifndef OPENSSL_NO_EC
97 &eckey_asn1_meth, 99 &eckey_asn1_meth,
98#endif 100#endif
101#ifndef OPENSSL_NO_GOST
102 &gostr01_asn1_meths[0],
103 &gostimit_asn1_meth,
104#endif
99 &hmac_asn1_meth, 105 &hmac_asn1_meth,
100 &cmac_asn1_meth 106 &cmac_asn1_meth,
107#ifndef OPENSSL_NO_GOST
108 &gostr01_asn1_meths[1],
109 &gostr01_asn1_meths[2],
110#endif
101}; 111};
102 112
103typedef int sk_cmp_fn_type(const char * const *a, const char * const *b); 113typedef int sk_cmp_fn_type(const char * const *a, const char * const *b);