Fixed invalid encrypt tag buffer
This commit is contained in:
parent
dca5bf1ce8
commit
611aee7495
@ -293,7 +293,8 @@ bool CryptHandler::encrypt(
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t tmp_buffer[tmp_buffer_size], tag_length{8};
|
uint8_t tmp_buffer[tmp_buffer_size];
|
||||||
|
size_t tag_length{8};
|
||||||
uint8_t tag_buffer[16];
|
uint8_t tag_buffer[16];
|
||||||
auto err = eax_encrypt_authenticate_memory(find_cipher("rijndael"),
|
auto err = eax_encrypt_authenticate_memory(find_cipher("rijndael"),
|
||||||
(uint8_t *) key.data(), /* the key */
|
(uint8_t *) key.data(), /* the key */
|
||||||
|
Loading…
Reference in New Issue
Block a user