diff options
Diffstat (limited to 'src/lib/libcrypto/evp/evp.h')
| -rw-r--r-- | src/lib/libcrypto/evp/evp.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/lib/libcrypto/evp/evp.h b/src/lib/libcrypto/evp/evp.h index f4702ab433..f8bab26b3f 100644 --- a/src/lib/libcrypto/evp/evp.h +++ b/src/lib/libcrypto/evp/evp.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: evp.h,v 1.110 2022/11/10 15:17:30 jsing Exp $ */ | 1 | /* $OpenBSD: evp.h,v 1.111 2022/11/10 16:37:52 jsing Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -115,6 +115,10 @@ | |||
| 115 | #define EVP_PKEY_HKDF NID_hkdf | 115 | #define EVP_PKEY_HKDF NID_hkdf |
| 116 | #define EVP_PKEY_GOSTR12_256 NID_id_tc26_gost3410_2012_256 | 116 | #define EVP_PKEY_GOSTR12_256 NID_id_tc26_gost3410_2012_256 |
| 117 | #define EVP_PKEY_GOSTR12_512 NID_id_tc26_gost3410_2012_512 | 117 | #define EVP_PKEY_GOSTR12_512 NID_id_tc26_gost3410_2012_512 |
| 118 | #if defined(LIBRESSL_NEXT_API) || defined(LIBRESSL_INTERNAL) | ||
| 119 | #define EVP_PKEY_ED25519 NID_ED25519 | ||
| 120 | #define EVP_PKEY_X25519 NID_X25519 | ||
| 121 | #endif | ||
| 118 | 122 | ||
| 119 | #ifdef __cplusplus | 123 | #ifdef __cplusplus |
| 120 | extern "C" { | 124 | extern "C" { |
| @@ -297,6 +301,11 @@ extern "C" { | |||
| 297 | /* Length of tag for TLS */ | 301 | /* Length of tag for TLS */ |
| 298 | #define EVP_CHACHAPOLY_TLS_TAG_LEN 16 | 302 | #define EVP_CHACHAPOLY_TLS_TAG_LEN 16 |
| 299 | 303 | ||
| 304 | #if defined(LIBRESSL_NEXT_API) || defined(LIBRESSL_INTERNAL) | ||
| 305 | #define ED25519_KEYLEN 32 | ||
| 306 | #define X25519_KEYLEN 32 | ||
| 307 | #endif | ||
| 308 | |||
| 300 | typedef struct evp_cipher_info_st { | 309 | typedef struct evp_cipher_info_st { |
| 301 | const EVP_CIPHER *cipher; | 310 | const EVP_CIPHER *cipher; |
| 302 | unsigned char iv[EVP_MAX_IV_LENGTH]; | 311 | unsigned char iv[EVP_MAX_IV_LENGTH]; |
