Skip to content

Commit

Permalink
Give a magic constant a name
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Pégourié-Gonnard <[email protected]>
  • Loading branch information
mpg committed Feb 8, 2022
1 parent c82504e commit ae1bae8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion programs/cipher/cipher_aead_demo.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ static int aead_encrypt( mbedtls_cipher_context_t *ctx, size_t tag_len,
{
int ret;
size_t olen;
unsigned char out[MSG_MAX_SIZE + 16];
#define MAX_TAG_LENGTH 16
unsigned char out[MSG_MAX_SIZE + MAX_TAG_LENGTH];
unsigned char *p = out;

CHK( mbedtls_cipher_set_iv( ctx, iv, iv_len ) );
Expand Down

0 comments on commit ae1bae8

Please sign in to comment.