Fixed invalid encrypt tag buffer

This commit is contained in:
WolverinDEV 2020-02-03 20:50:28 +01:00
parent dca5bf1ce8
commit 611aee7495

View File

@ -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 */