1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-30 22:43:08 +03:00

Proper multipart AEAD GCM Implementation

Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
Paul Elliott
2021-05-21 19:28:26 +01:00
parent b2ce2ed6d8
commit 83f09ef056
2 changed files with 21 additions and 69 deletions

View File

@ -89,16 +89,8 @@ typedef struct
psa_key_type_t key_type;
unsigned int is_encrypt : 1;
unsigned int ad_started : 1;
unsigned int body_started : 1;
uint8_t tag_length;
uint8_t *tag_buffer;
/* Buffer to store Nonce - only required until CCM and GCM get proper
* multipart support.*/
uint8_t *nonce;
size_t nonce_length;
union
{
@ -117,7 +109,7 @@ typedef struct
} mbedtls_psa_aead_operation_t;
#define MBEDTLS_PSA_AEAD_OPERATION_INIT {0, 0, 0, 0, 0, 0, 0, 0, 0, {0}}
#define MBEDTLS_PSA_AEAD_OPERATION_INIT {0, 0, 0, 0, {0}}
/*
* BEYOND THIS POINT, TEST DRIVER DECLARATIONS ONLY.