mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-29 08:24:11 -04:00
Conditionally include exit label
... on MAC functions where the label was only added due to the modifications required by this PR. Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
This commit is contained in:
parent
a1cf1010cc
commit
c6705c6cb2
@ -2677,7 +2677,9 @@ psa_status_t psa_mac_update(psa_mac_operation_t *operation,
|
|||||||
psa_mac_abort(operation);
|
psa_mac_abort(operation);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(MBEDTLS_PSA_COPY_CALLER_BUFFERS)
|
||||||
exit:
|
exit:
|
||||||
|
#endif
|
||||||
LOCAL_INPUT_FREE(input_external, input);
|
LOCAL_INPUT_FREE(input_external, input);
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
@ -2855,7 +2857,10 @@ psa_status_t psa_mac_compute(mbedtls_svc_key_id_t key,
|
|||||||
status = psa_mac_compute_internal(key, alg,
|
status = psa_mac_compute_internal(key, alg,
|
||||||
input, input_length,
|
input, input_length,
|
||||||
mac, mac_size, mac_length, 1);
|
mac, mac_size, mac_length, 1);
|
||||||
|
|
||||||
|
#if defined(MBEDTLS_PSA_COPY_CALLER_BUFFERS)
|
||||||
exit:
|
exit:
|
||||||
|
#endif
|
||||||
LOCAL_INPUT_FREE(input_external, input);
|
LOCAL_INPUT_FREE(input_external, input);
|
||||||
LOCAL_OUTPUT_FREE(mac_external, mac);
|
LOCAL_OUTPUT_FREE(mac_external, mac);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user