mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-27 06:35:22 +00:00
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
@ -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 ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user