Fixed invalid encrypt tag buffer

This commit is contained in:
WolverinDEV 2020-02-03 20:50:28 +01:00
parent dca5bf1ce8
commit 611aee7495
1 changed files with 2 additions and 1 deletions

View File

@ -293,7 +293,8 @@ bool CryptHandler::encrypt(
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];
auto err = eax_encrypt_authenticate_memory(find_cipher("rijndael"),
(uint8_t *) key.data(), /* the key */