1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-08 17:42:09 +03:00

Merge pull request #4182 from gabor-mezei-arm/3258_implement_one-shot_MAC_and_cipher

[Backport 2.x] Implement one-shot cipher
This commit is contained in:
Dave Rodgman
2021-06-30 17:04:11 +01:00
committed by GitHub
12 changed files with 1448 additions and 732 deletions

View File

@@ -113,7 +113,10 @@ typedef struct {
psa_algorithm_t alg;
uint8_t iv_length;
uint8_t block_length;
mbedtls_cipher_context_t cipher;
union {
unsigned int dummy;
mbedtls_cipher_context_t cipher;
} ctx;
} mbedtls_psa_cipher_operation_t;
#define MBEDTLS_PSA_CIPHER_OPERATION_INIT {0, 0, 0, {0}}