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:
@ -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.
|
||||
|
Reference in New Issue
Block a user