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 8, 2023
1 parent cbe64ef commit 53b3352
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ssl/tls13_enc.c
Original file line number Diff line number Diff line change
Expand Up @@ -389,15 +389,13 @@ static int derive_secret_key_and_iv(SSL_CONNECTION *s, const EVP_MD *md,

if (mode == EVP_CIPH_GCM_MODE) {
*taglen = EVP_GCM_TLS_TAG_LEN;
} else if (strcmp(EVP_CIPHER_get0_name(ciph), SN_enull_hmac_sha256)
== 0) {
} else if (EVP_CIPHER_is_a(ciph, SN_enull_hmac_sha256)) {
/*
* 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) {
} else if (EVP_CIPHER_is_a(ciph, SN_enull_hmac_sha384)) {
/*
* SN_enull_hmac_sha384 must be consistent
* with PROV_NAMES_ENULL_HMAC_SHA384
Expand Down

0 comments on commit 53b3352

Please sign in to comment.