Skip to content

Commit

Permalink
quick fix (aws#3716)
Browse files Browse the repository at this point in the history
  • Loading branch information
franklee26 authored Dec 28, 2022
1 parent 60a6667 commit 34ffd25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/s2n_aead_cipher_aes_gcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ static int s2n_aead_cipher_aes_gcm_destroy_key(struct s2n_session_key *key)

static int s2n_aead_cipher_aes_gcm_encrypt(struct s2n_session_key *key, struct s2n_blob *iv, struct s2n_blob *aad, struct s2n_blob *in, struct s2n_blob *out)
{
/* The size of the |in| blob includes the size of the data and the size of the ChaCha20-Poly1305 tag */
/* The size of the |in| blob includes the size of the data and the size of the AES-GCM tag */
POSIX_ENSURE_GTE(in->size, S2N_TLS_GCM_TAG_LEN);
POSIX_ENSURE_GTE(out->size, in->size);
POSIX_ENSURE_EQ(iv->size, S2N_TLS_GCM_IV_LEN);
Expand Down

0 comments on commit 34ffd25

Please sign in to comment.