Skip to content

Commit

Permalink
fixup! tls13_enc: using SN instead of nid
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeev-0 committed Dec 6, 2023
1 parent a0ebae4 commit e1abc7e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ssl/tls13_enc.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,9 +391,17 @@ static int derive_secret_key_and_iv(SSL_CONNECTION *s, const EVP_MD *md,
*taglen = EVP_GCM_TLS_TAG_LEN;
} else if (strcmp(EVP_CIPHER_get0_name(ciph), SN_enull_hmac_sha256)
== 0) {
/*
* SN_enull_hmac_sha256 must be consistent
* with PROV_NAMES_ENULL_HMAC_SHA256
*/
*taglen = EVP_HMACSHA256_TLS_TAG_LEN;
} else if (strcmp(EVP_CIPHER_get0_name(ciph), SN_enull_hmac_sha384)
== 0) {
/*
* SN_enull_hmac_sha384 must be consistent
* with PROV_NAMES_ENULL_HMAC_SHA384
*/
*taglen = EVP_HMACSHA384_TLS_TAG_LEN;
} else {
/* CHACHA20P-POLY1305 */
Expand Down

0 comments on commit e1abc7e

Please sign in to comment.