mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-13 06:40:54 +00:00
tests: cipher: Allocate enough space for XTS keys
XTS keys can be double the size, since XTS uses two keys concatenated together as a key (one for the tweak, one for encryption).
This commit is contained in:
parent
09317083b5
commit
d906b818f3
@ -134,7 +134,7 @@ void enc_dec_buf( int cipher_id, char *cipher_string, int key_len,
|
||||
int length_val, int pad_mode )
|
||||
{
|
||||
size_t length = length_val, outlen, total_len, i, block_size;
|
||||
unsigned char key[32];
|
||||
unsigned char key[64];
|
||||
unsigned char iv[16];
|
||||
unsigned char ad[13];
|
||||
unsigned char tag[16];
|
||||
|
Loading…
x
Reference in New Issue
Block a user