mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-25 20:15:31 +00:00
Fix PSA_ALG_SIGN_GET_HASH for PSA_ALG_SIGN_xxx_RAW
This commit is contained in:
parent
66763a008a
commit
54622aec80
|
@ -929,6 +929,7 @@ typedef uint32_t psa_algorithm_t;
|
|||
#define PSA_ALG_SIGN_GET_HASH(alg) \
|
||||
(PSA_ALG_IS_RSA_PSS(alg) || PSA_ALG_IS_RSA_PKCS1V15_SIGN(alg) || \
|
||||
PSA_ALG_IS_DSA(alg) || PSA_ALG_IS_ECDSA(alg) ? \
|
||||
((alg) & PSA_ALG_HASH_MASK) == 0 ? /*"raw" algorithm*/ 0 : \
|
||||
((alg) & PSA_ALG_HASH_MASK) | PSA_ALG_CATEGORY_HASH : \
|
||||
0)
|
||||
|
||||
|
|
Loading…
Reference in a new issue