mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-26 12:39:55 +00:00
Mention psa_hash_compute in the documentation of psa_{sign,verify}_hash
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
3a1101a122
commit
7962284f78
@ -2847,7 +2847,8 @@ psa_status_t psa_aead_abort(psa_aead_operation_t *operation);
|
|||||||
*
|
*
|
||||||
* Note that to perform a hash-and-sign signature algorithm, you must
|
* Note that to perform a hash-and-sign signature algorithm, you must
|
||||||
* first calculate the hash by calling psa_hash_setup(), psa_hash_update()
|
* first calculate the hash by calling psa_hash_setup(), psa_hash_update()
|
||||||
* and psa_hash_finish(). Then pass the resulting hash as the \p hash
|
* and psa_hash_finish(), or alternatively by calling psa_hash_compute().
|
||||||
|
* Then pass the resulting hash as the \p hash
|
||||||
* parameter to this function. You can use #PSA_ALG_SIGN_GET_HASH(\p alg)
|
* parameter to this function. You can use #PSA_ALG_SIGN_GET_HASH(\p alg)
|
||||||
* to determine the hash algorithm to use.
|
* to determine the hash algorithm to use.
|
||||||
*
|
*
|
||||||
@ -2898,7 +2899,8 @@ psa_status_t psa_sign_hash(mbedtls_svc_key_id_t key,
|
|||||||
*
|
*
|
||||||
* Note that to perform a hash-and-sign signature algorithm, you must
|
* Note that to perform a hash-and-sign signature algorithm, you must
|
||||||
* first calculate the hash by calling psa_hash_setup(), psa_hash_update()
|
* first calculate the hash by calling psa_hash_setup(), psa_hash_update()
|
||||||
* and psa_hash_finish(). Then pass the resulting hash as the \p hash
|
* and psa_hash_finish(), or alternatively by calling psa_hash_compute().
|
||||||
|
* Then pass the resulting hash as the \p hash
|
||||||
* parameter to this function. You can use #PSA_ALG_SIGN_GET_HASH(\p alg)
|
* parameter to this function. You can use #PSA_ALG_SIGN_GET_HASH(\p alg)
|
||||||
* to determine the hash algorithm to use.
|
* to determine the hash algorithm to use.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user