mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 19:45:37 +01:00
Update PSA_ALG_IS_SIGN_MESSAGE
Add missing algorithm for PSA_ALG_IS_SIGN_MESSAGE and update documentation. Signed-off-by: gabor-mezei-arm <gabor.mezei@arm.com>
This commit is contained in:
parent
abd72585f0
commit
1f8036b05e
@ -1494,15 +1494,13 @@
|
|||||||
* \param alg An algorithm identifier (value of type #psa_algorithm_t).
|
* \param alg An algorithm identifier (value of type #psa_algorithm_t).
|
||||||
*
|
*
|
||||||
* \return 1 if alg is a signature algorithm that can be used to sign a
|
* \return 1 if alg is a signature algorithm that can be used to sign a
|
||||||
* message. 0 if alg is a signature algorithm that can only be used
|
* message. 0 if \p alg is a signature algorithm that can only be used
|
||||||
* to sign an already-calculated hash. 0 if alg is not a signature
|
* to sign an already-calculated hash. 0 if \p alg is not a signature
|
||||||
* algorithm. This macro can return either 0 or 1 if alg is not a
|
* algorithm. This macro can return either 0 or 1 if \p alg is not a
|
||||||
* supported algorithm identifier.
|
* supported algorithm identifier.
|
||||||
*/
|
*/
|
||||||
#define PSA_ALG_IS_SIGN_MESSAGE(alg) \
|
#define PSA_ALG_IS_SIGN_MESSAGE(alg) \
|
||||||
(PSA_ALG_IS_RSA_PSS(alg) || PSA_ALG_IS_RSA_PKCS1V15_SIGN(alg) || \
|
(PSA_ALG_IS_HASH_AND_SIGN(alg) || (alg) == PSA_ALG_PURE_EDDSA )
|
||||||
PSA_ALG_IS_ECDSA(alg) || PSA_ALG_IS_HASH_EDDSA(alg) || \
|
|
||||||
PSA_ALG_IS_VENDOR_HASH_AND_SIGN(alg))
|
|
||||||
|
|
||||||
/** Get the hash used by a hash-and-sign signature algorithm.
|
/** Get the hash used by a hash-and-sign signature algorithm.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user