mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-29 08:24:11 -04:00
Fix issues with new GCM overlap buffer test cases
This commit code style and initialisation issues with the new buffer overlap test cases for GCM. Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
This commit is contained in:
parent
2e2036c84b
commit
415d1bc99c
@ -612,7 +612,7 @@ void gcm_encrypt_input_output_buffer_overlap(int cipher_id, data_t *key_str,
|
|||||||
int tag_len_bits, data_t *tag,
|
int tag_len_bits, data_t *tag,
|
||||||
int init_result)
|
int init_result)
|
||||||
{
|
{
|
||||||
unsigned char *buffer;
|
unsigned char *buffer = NULL;
|
||||||
size_t buffer_len;
|
size_t buffer_len;
|
||||||
unsigned char tag_output[16];
|
unsigned char tag_output[16];
|
||||||
mbedtls_gcm_context ctx;
|
mbedtls_gcm_context ctx;
|
||||||
@ -677,7 +677,7 @@ void gcm_decrypt_input_output_buffer_overlap(int cipher_id, data_t *key_str,
|
|||||||
data_t *tag_str, char *result,
|
data_t *tag_str, char *result,
|
||||||
data_t *pt_result, int init_result)
|
data_t *pt_result, int init_result)
|
||||||
{
|
{
|
||||||
unsigned char *buffer;
|
unsigned char *buffer = NULL;
|
||||||
size_t buffer_len;
|
size_t buffer_len;
|
||||||
mbedtls_gcm_context ctx;
|
mbedtls_gcm_context ctx;
|
||||||
int ret;
|
int ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user