diff options
Diffstat (limited to 'src/lib/libssl/ssl_locl.h')
-rw-r--r-- | src/lib/libssl/ssl_locl.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h index a96402ec5c..6374522f5f 100644 --- a/src/lib/libssl/ssl_locl.h +++ b/src/lib/libssl/ssl_locl.h | |||
@@ -346,7 +346,25 @@ | |||
346 | * (currently this also goes into algorithm2) */ | 346 | * (currently this also goes into algorithm2) */ |
347 | #define TLS1_STREAM_MAC 0x04 | 347 | #define TLS1_STREAM_MAC 0x04 |
348 | 348 | ||
349 | /* | ||
350 | * SSL_CIPHER_ALGORITHM2_VARIABLE_NONCE_IN_RECORD is an algorithm2 flag that | ||
351 | * indicates that the variable part of the nonce is included as a prefix of | ||
352 | * the record (AES-GCM, for example, does this with an 8-byte variable nonce.) | ||
353 | */ | ||
354 | #define SSL_CIPHER_ALGORITHM2_VARIABLE_NONCE_IN_RECORD (1 << 22) | ||
355 | |||
356 | /* | ||
357 | * SSL_CIPHER_ALGORITHM2_AEAD is an algorithm2 flag that indicates the cipher | ||
358 | * is implemented via an EVP_AEAD. | ||
359 | */ | ||
360 | #define SSL_CIPHER_ALGORITHM2_AEAD (1 << 23) | ||
349 | 361 | ||
362 | /* | ||
363 | * SSL_CIPHER_AEAD_FIXED_NONCE_LEN returns the number of bytes of fixed nonce | ||
364 | * for an SSL_CIPHER with the SSL_CIPHER_ALGORITHM2_AEAD flag. | ||
365 | */ | ||
366 | #define SSL_CIPHER_AEAD_FIXED_NONCE_LEN(ssl_cipher) \ | ||
367 | (((ssl_cipher->algorithm2 >> 24) & 0xf) * 2) | ||
350 | 368 | ||
351 | /* | 369 | /* |
352 | * Export and cipher strength information. For each cipher we have to decide | 370 | * Export and cipher strength information. For each cipher we have to decide |
@@ -607,6 +625,7 @@ void ssl_update_cache(SSL *s, int mode); | |||
607 | int ssl_cipher_get_comp(const SSL_SESSION *s, SSL_COMP **comp); | 625 | int ssl_cipher_get_comp(const SSL_SESSION *s, SSL_COMP **comp); |
608 | int ssl_cipher_get_evp(const SSL_SESSION *s, const EVP_CIPHER **enc, | 626 | int ssl_cipher_get_evp(const SSL_SESSION *s, const EVP_CIPHER **enc, |
609 | const EVP_MD **md, int *mac_pkey_type, int *mac_secret_size); | 627 | const EVP_MD **md, int *mac_pkey_type, int *mac_secret_size); |
628 | int ssl_cipher_get_evp_aead(const SSL_SESSION *s, const EVP_AEAD **aead); | ||
610 | int ssl_get_handshake_digest(int i, long *mask, const EVP_MD **md); | 629 | int ssl_get_handshake_digest(int i, long *mask, const EVP_MD **md); |
611 | 630 | ||
612 | int ssl_verify_cert_chain(SSL *s, STACK_OF(X509) *sk); | 631 | int ssl_verify_cert_chain(SSL *s, STACK_OF(X509) *sk); |