diff options
Diffstat (limited to 'src/lib/libcrypto/evp/evp.h')
| -rw-r--r-- | src/lib/libcrypto/evp/evp.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/lib/libcrypto/evp/evp.h b/src/lib/libcrypto/evp/evp.h index cd9b33c9b8..22876f9fe9 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.73 2019/03/17 17:42:37 tb Exp $ */ | 1 | /* $OpenBSD: evp.h,v 1.74 2019/03/17 18:07:41 tb 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 | * |
| @@ -325,6 +325,7 @@ struct evp_cipher_st { | |||
| 325 | #define EVP_CIPH_GCM_MODE 0x6 | 325 | #define EVP_CIPH_GCM_MODE 0x6 |
| 326 | #define EVP_CIPH_CCM_MODE 0x7 | 326 | #define EVP_CIPH_CCM_MODE 0x7 |
| 327 | #define EVP_CIPH_XTS_MODE 0x10001 | 327 | #define EVP_CIPH_XTS_MODE 0x10001 |
| 328 | #define EVP_CIPH_WRAP_MODE 0x10002 | ||
| 328 | #define EVP_CIPH_MODE 0xF0007 | 329 | #define EVP_CIPH_MODE 0xF0007 |
| 329 | /* Set if variable length cipher */ | 330 | /* Set if variable length cipher */ |
| 330 | #define EVP_CIPH_VARIABLE_LENGTH 0x8 | 331 | #define EVP_CIPH_VARIABLE_LENGTH 0x8 |
| @@ -356,6 +357,12 @@ struct evp_cipher_st { | |||
| 356 | #define EVP_CIPH_FLAG_CUSTOM_CIPHER 0x100000 | 357 | #define EVP_CIPH_FLAG_CUSTOM_CIPHER 0x100000 |
| 357 | #define EVP_CIPH_FLAG_AEAD_CIPHER 0x200000 | 358 | #define EVP_CIPH_FLAG_AEAD_CIPHER 0x200000 |
| 358 | 359 | ||
| 360 | /* | ||
| 361 | * Cipher context flag to indicate that we can handle wrap mode: if allowed in | ||
| 362 | * older applications, it could overflow buffers. | ||
| 363 | */ | ||
| 364 | #define EVP_CIPHER_CTX_FLAG_WRAP_ALLOW 0x1 | ||
| 365 | |||
| 359 | /* ctrl() values */ | 366 | /* ctrl() values */ |
| 360 | 367 | ||
| 361 | #define EVP_CTRL_INIT 0x0 | 368 | #define EVP_CTRL_INIT 0x0 |
| @@ -776,6 +783,7 @@ const EVP_CIPHER *EVP_aes_128_ofb(void); | |||
| 776 | const EVP_CIPHER *EVP_aes_128_ctr(void); | 783 | const EVP_CIPHER *EVP_aes_128_ctr(void); |
| 777 | const EVP_CIPHER *EVP_aes_128_ccm(void); | 784 | const EVP_CIPHER *EVP_aes_128_ccm(void); |
| 778 | const EVP_CIPHER *EVP_aes_128_gcm(void); | 785 | const EVP_CIPHER *EVP_aes_128_gcm(void); |
| 786 | const EVP_CIPHER *EVP_aes_128_wrap(void); | ||
| 779 | const EVP_CIPHER *EVP_aes_128_xts(void); | 787 | const EVP_CIPHER *EVP_aes_128_xts(void); |
| 780 | const EVP_CIPHER *EVP_aes_192_ecb(void); | 788 | const EVP_CIPHER *EVP_aes_192_ecb(void); |
| 781 | const EVP_CIPHER *EVP_aes_192_cbc(void); | 789 | const EVP_CIPHER *EVP_aes_192_cbc(void); |
| @@ -787,6 +795,7 @@ const EVP_CIPHER *EVP_aes_192_ofb(void); | |||
| 787 | const EVP_CIPHER *EVP_aes_192_ctr(void); | 795 | const EVP_CIPHER *EVP_aes_192_ctr(void); |
| 788 | const EVP_CIPHER *EVP_aes_192_ccm(void); | 796 | const EVP_CIPHER *EVP_aes_192_ccm(void); |
| 789 | const EVP_CIPHER *EVP_aes_192_gcm(void); | 797 | const EVP_CIPHER *EVP_aes_192_gcm(void); |
| 798 | const EVP_CIPHER *EVP_aes_192_wrap(void); | ||
| 790 | const EVP_CIPHER *EVP_aes_256_ecb(void); | 799 | const EVP_CIPHER *EVP_aes_256_ecb(void); |
| 791 | const EVP_CIPHER *EVP_aes_256_cbc(void); | 800 | const EVP_CIPHER *EVP_aes_256_cbc(void); |
| 792 | const EVP_CIPHER *EVP_aes_256_cfb1(void); | 801 | const EVP_CIPHER *EVP_aes_256_cfb1(void); |
| @@ -797,6 +806,7 @@ const EVP_CIPHER *EVP_aes_256_ofb(void); | |||
| 797 | const EVP_CIPHER *EVP_aes_256_ctr(void); | 806 | const EVP_CIPHER *EVP_aes_256_ctr(void); |
| 798 | const EVP_CIPHER *EVP_aes_256_ccm(void); | 807 | const EVP_CIPHER *EVP_aes_256_ccm(void); |
| 799 | const EVP_CIPHER *EVP_aes_256_gcm(void); | 808 | const EVP_CIPHER *EVP_aes_256_gcm(void); |
| 809 | const EVP_CIPHER *EVP_aes_256_wrap(void); | ||
| 800 | const EVP_CIPHER *EVP_aes_256_xts(void); | 810 | const EVP_CIPHER *EVP_aes_256_xts(void); |
| 801 | #if !defined(OPENSSL_NO_SHA) && !defined(OPENSSL_NO_SHA1) | 811 | #if !defined(OPENSSL_NO_SHA) && !defined(OPENSSL_NO_SHA1) |
| 802 | const EVP_CIPHER *EVP_aes_128_cbc_hmac_sha1(void); | 812 | const EVP_CIPHER *EVP_aes_128_cbc_hmac_sha1(void); |
| @@ -1523,6 +1533,7 @@ void ERR_load_EVP_strings(void); | |||
| 1523 | #define EVP_R_UNSUPPORTED_KEY_SIZE 108 | 1533 | #define EVP_R_UNSUPPORTED_KEY_SIZE 108 |
| 1524 | #define EVP_R_UNSUPPORTED_PRF 125 | 1534 | #define EVP_R_UNSUPPORTED_PRF 125 |
| 1525 | #define EVP_R_UNSUPPORTED_PRIVATE_KEY_ALGORITHM 118 | 1535 | #define EVP_R_UNSUPPORTED_PRIVATE_KEY_ALGORITHM 118 |
| 1536 | #define EVP_R_WRAP_MODE_NOT_ALLOWED 170 | ||
| 1526 | #define EVP_R_UNSUPPORTED_SALT_TYPE 126 | 1537 | #define EVP_R_UNSUPPORTED_SALT_TYPE 126 |
| 1527 | #define EVP_R_WRONG_FINAL_BLOCK_LENGTH 109 | 1538 | #define EVP_R_WRONG_FINAL_BLOCK_LENGTH 109 |
| 1528 | #define EVP_R_WRONG_PUBLIC_KEY_TYPE 110 | 1539 | #define EVP_R_WRONG_PUBLIC_KEY_TYPE 110 |
