Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup!…
Browse files Browse the repository at this point in the history
… fixup! fixup! fixup! fixup! fixup! DTLS 1.3 record number encryption
  • Loading branch information
fwh-dc committed Sep 25, 2024
1 parent 1815b0a commit b27b002
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 @@ -367,7 +367,7 @@ size_t tls13_final_finish_mac(SSL_CONNECTION *s, const char *str, size_t slen,
int tls13_setup_key_block(SSL_CONNECTION *s)
{
const EVP_CIPHER *c;
const EVP_CIPHER *snc, **p_snc = &snc;
const EVP_CIPHER *snc = NULL, **p_snc = SSL_CONNECTION_IS_DTLS(s) ? &snc : NULL;
size_t snoffs;
const EVP_MD *hash;
int mac_type = NID_undef;
Expand Down Expand Up @@ -520,9 +520,7 @@ int tls13_change_cipher_state(SSL_CONNECTION *s, int which)
unsigned char *iv = iv_intern;
unsigned char key[EVP_MAX_KEY_LENGTH];
unsigned char snkey[EVP_MAX_KEY_LENGTH];
size_t sn_input_offs;
size_t sn_input_len;
int sn_use_input_as_iv;
size_t sn_input_offs = 0;
unsigned char secret[EVP_MAX_MD_SIZE];
unsigned char hashval[EVP_MAX_MD_SIZE];
unsigned char *hash = hashval;
Expand Down

0 comments on commit b27b002

Please sign in to comment.