From d16bdac9b5209d60ab4711a454e4bcedad306649 Mon Sep 17 00:00:00 2001 From: Andrew Thoelke Date: Wed, 15 May 2019 12:34:01 +0100 Subject: [PATCH] Use stdint.h types in multipart AEAD functions No implementation yet. --- include/psa/crypto.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/psa/crypto.h b/include/psa/crypto.h index fb9424a499..4226587a80 100644 --- a/include/psa/crypto.h +++ b/include/psa/crypto.h @@ -2319,7 +2319,7 @@ psa_status_t psa_aead_decrypt_setup(psa_aead_operation_t *operation, * \retval #PSA_ERROR_CORRUPTION_DETECTED */ psa_status_t psa_aead_generate_nonce(psa_aead_operation_t *operation, - unsigned char *nonce, + uint8_t *nonce, size_t nonce_size, size_t *nonce_length); @@ -2353,7 +2353,7 @@ psa_status_t psa_aead_generate_nonce(psa_aead_operation_t *operation, * \retval #PSA_ERROR_CORRUPTION_DETECTED */ psa_status_t psa_aead_set_nonce(psa_aead_operation_t *operation, - const unsigned char *nonce, + const uint8_t *nonce, size_t nonce_length); /** Declare the lengths of the message and additional data for AEAD. @@ -2507,7 +2507,7 @@ psa_status_t psa_aead_update_ad(psa_aead_operation_t *operation, psa_status_t psa_aead_update(psa_aead_operation_t *operation, const uint8_t *input, size_t input_length, - unsigned char *output, + uint8_t *output, size_t output_size, size_t *output_length);