diff options
author | jsing <> | 2022-11-10 16:37:52 +0000 |
---|---|---|
committer | jsing <> | 2022-11-10 16:37:52 +0000 |
commit | 8bbca4710a981e94365a52a3aad374c251e1d0a5 (patch) | |
tree | a195899b53d4926967b849934341c4be077ceb67 /src/lib/libcrypto/evp/pmeth_lib.c | |
parent | 313fb25a243cac7bb2c5d40518041217e06a9d16 (diff) | |
download | openbsd-8bbca4710a981e94365a52a3aad374c251e1d0a5.tar.gz openbsd-8bbca4710a981e94365a52a3aad374c251e1d0a5.tar.bz2 openbsd-8bbca4710a981e94365a52a3aad374c251e1d0a5.zip |
Implement EVP interfaces for Ed25519 and X25519.
ok beck@ tb@
Diffstat (limited to 'src/lib/libcrypto/evp/pmeth_lib.c')
-rw-r--r-- | src/lib/libcrypto/evp/pmeth_lib.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/libcrypto/evp/pmeth_lib.c b/src/lib/libcrypto/evp/pmeth_lib.c index 0a0451fd92..19610dfbad 100644 --- a/src/lib/libcrypto/evp/pmeth_lib.c +++ b/src/lib/libcrypto/evp/pmeth_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: pmeth_lib.c,v 1.24 2022/11/09 18:25:36 jsing Exp $ */ | 1 | /* $OpenBSD: pmeth_lib.c,v 1.25 2022/11/10 16:37:52 jsing 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 | */ |
@@ -82,24 +82,28 @@ extern const EVP_PKEY_METHOD cmac_pkey_meth; | |||
82 | extern const EVP_PKEY_METHOD dh_pkey_meth; | 82 | extern const EVP_PKEY_METHOD dh_pkey_meth; |
83 | extern const EVP_PKEY_METHOD dsa_pkey_meth; | 83 | extern const EVP_PKEY_METHOD dsa_pkey_meth; |
84 | extern const EVP_PKEY_METHOD ec_pkey_meth; | 84 | extern const EVP_PKEY_METHOD ec_pkey_meth; |
85 | extern const EVP_PKEY_METHOD ed25519_pkey_meth; | ||
85 | extern const EVP_PKEY_METHOD gostimit_pkey_meth; | 86 | extern const EVP_PKEY_METHOD gostimit_pkey_meth; |
86 | extern const EVP_PKEY_METHOD gostr01_pkey_meth; | 87 | extern const EVP_PKEY_METHOD gostr01_pkey_meth; |
87 | extern const EVP_PKEY_METHOD hkdf_pkey_meth; | 88 | extern const EVP_PKEY_METHOD hkdf_pkey_meth; |
88 | extern const EVP_PKEY_METHOD hmac_pkey_meth; | 89 | extern const EVP_PKEY_METHOD hmac_pkey_meth; |
89 | extern const EVP_PKEY_METHOD rsa_pkey_meth; | 90 | extern const EVP_PKEY_METHOD rsa_pkey_meth; |
90 | extern const EVP_PKEY_METHOD rsa_pss_pkey_meth; | 91 | extern const EVP_PKEY_METHOD rsa_pss_pkey_meth; |
92 | extern const EVP_PKEY_METHOD x25519_pkey_meth; | ||
91 | 93 | ||
92 | static const EVP_PKEY_METHOD *pkey_methods[] = { | 94 | static const EVP_PKEY_METHOD *pkey_methods[] = { |
93 | &cmac_pkey_meth, | 95 | &cmac_pkey_meth, |
94 | &dh_pkey_meth, | 96 | &dh_pkey_meth, |
95 | &dsa_pkey_meth, | 97 | &dsa_pkey_meth, |
96 | &ec_pkey_meth, | 98 | &ec_pkey_meth, |
99 | &ed25519_pkey_meth, | ||
97 | &gostimit_pkey_meth, | 100 | &gostimit_pkey_meth, |
98 | &gostr01_pkey_meth, | 101 | &gostr01_pkey_meth, |
99 | &hkdf_pkey_meth, | 102 | &hkdf_pkey_meth, |
100 | &hmac_pkey_meth, | 103 | &hmac_pkey_meth, |
101 | &rsa_pkey_meth, | 104 | &rsa_pkey_meth, |
102 | &rsa_pss_pkey_meth, | 105 | &rsa_pss_pkey_meth, |
106 | &x25519_pkey_meth, | ||
103 | }; | 107 | }; |
104 | 108 | ||
105 | static const size_t pkey_methods_count = | 109 | static const size_t pkey_methods_count = |