mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-24 05:00:45 -04:00
Grammar in comments
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
65b548386f
commit
91b29a0bd9
@ -5672,7 +5672,7 @@ static psa_status_t psa_key_derivation_start_hmac(
|
|||||||
* It isn't enough to require the caller to initialize operation to
|
* It isn't enough to require the caller to initialize operation to
|
||||||
* PSA_MAC_OPERATION_INIT, since one field is a union and initializing
|
* PSA_MAC_OPERATION_INIT, since one field is a union and initializing
|
||||||
* a union does not necessarily initialize all of its members.
|
* a union does not necessarily initialize all of its members.
|
||||||
* psa_mac_setup() would could handle PSA_MAC_OPERATION_INIT, but here we
|
* psa_mac_setup() would handle PSA_MAC_OPERATION_INIT, but here we
|
||||||
* bypass it and call lower-level functions directly. */
|
* bypass it and call lower-level functions directly. */
|
||||||
memset(operation, 0, sizeof(*operation));
|
memset(operation, 0, sizeof(*operation));
|
||||||
|
|
||||||
|
@ -465,7 +465,7 @@ psa_status_t mbedtls_psa_mac_compute(
|
|||||||
{
|
{
|
||||||
psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED;
|
psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED;
|
||||||
mbedtls_psa_mac_operation_t operation = MBEDTLS_PSA_MAC_OPERATION_INIT;
|
mbedtls_psa_mac_operation_t operation = MBEDTLS_PSA_MAC_OPERATION_INIT;
|
||||||
/* Make sure the whole the operation is zeroed.
|
/* Make sure the whole operation is zeroed.
|
||||||
* PSA_MAC_OPERATION_INIT does not necessarily do it fully,
|
* PSA_MAC_OPERATION_INIT does not necessarily do it fully,
|
||||||
* since one field is a union and initializing a union does not
|
* since one field is a union and initializing a union does not
|
||||||
* necessarily initialize all of its members.
|
* necessarily initialize all of its members.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user