Give a magic constant a name
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
parent
c82504e22c
commit
ae1bae8412
1 changed files with 2 additions and 1 deletions
|
@ -192,7 +192,8 @@ static int aead_encrypt( mbedtls_cipher_context_t *ctx, size_t tag_len,
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
size_t olen;
|
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;
|
unsigned char *p = out;
|
||||||
|
|
||||||
CHK( mbedtls_cipher_set_iv( ctx, iv, iv_len ) );
|
CHK( mbedtls_cipher_set_iv( ctx, iv, iv_len ) );
|
||||||
|
|
Loading…
Reference in a new issue