mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-30 22:43:08 +03:00
@ -2396,9 +2396,9 @@ exit:
|
|||||||
}
|
}
|
||||||
|
|
||||||
static psa_status_t psa_hash_finish_internal(psa_hash_operation_t *operation,
|
static psa_status_t psa_hash_finish_internal(psa_hash_operation_t *operation,
|
||||||
uint8_t *hash,
|
uint8_t *hash,
|
||||||
size_t hash_size,
|
size_t hash_size,
|
||||||
size_t *hash_length)
|
size_t *hash_length)
|
||||||
{
|
{
|
||||||
psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED;
|
psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED;
|
||||||
|
|
||||||
@ -2486,7 +2486,7 @@ psa_status_t psa_hash_compute(psa_algorithm_t alg,
|
|||||||
LOCAL_INPUT_ALLOC(input_external, input_length, input);
|
LOCAL_INPUT_ALLOC(input_external, input_length, input);
|
||||||
LOCAL_OUTPUT_ALLOC(hash_external, hash_size, hash);
|
LOCAL_OUTPUT_ALLOC(hash_external, hash_size, hash);
|
||||||
status = psa_driver_wrapper_hash_compute(alg, input, input_length,
|
status = psa_driver_wrapper_hash_compute(alg, input, input_length,
|
||||||
hash, hash_size, hash_length);
|
hash, hash_size, hash_length);
|
||||||
|
|
||||||
#if defined(MBEDTLS_PSA_COPY_CALLER_BUFFERS)
|
#if defined(MBEDTLS_PSA_COPY_CALLER_BUFFERS)
|
||||||
exit:
|
exit:
|
||||||
|
Reference in New Issue
Block a user