mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-30 00:14:17 +01:00
Don't duplicate the definition of PSA_ALG_IS_HASH_AND_SIGN
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
2aff17b8c5
commit
6d40085177
@ -407,10 +407,9 @@ psa_status_t mbedtls_psa_inject_entropy(const uint8_t *seed,
|
|||||||
|
|
||||||
/* We need to expand the sample definition of this macro from
|
/* We need to expand the sample definition of this macro from
|
||||||
* the API definition. */
|
* the API definition. */
|
||||||
#undef PSA_ALG_IS_HASH_AND_SIGN
|
#undef PSA_ALG_IS_VENDOR_HASH_AND_SIGN
|
||||||
#define PSA_ALG_IS_HASH_AND_SIGN(alg) \
|
#define PSA_ALG_IS_VENDOR_HASH_AND_SIGN(alg) \
|
||||||
(PSA_ALG_IS_RSA_PSS(alg) || PSA_ALG_IS_RSA_PKCS1V15_SIGN(alg) || \
|
PSA_ALG_IS_DSA(alg)
|
||||||
PSA_ALG_IS_DSA(alg) || PSA_ALG_IS_ECDSA(alg))
|
|
||||||
|
|
||||||
/**@}*/
|
/**@}*/
|
||||||
|
|
||||||
|
@ -1344,6 +1344,11 @@
|
|||||||
#define PSA_ALG_IS_RANDOMIZED_ECDSA(alg) \
|
#define PSA_ALG_IS_RANDOMIZED_ECDSA(alg) \
|
||||||
(PSA_ALG_IS_ECDSA(alg) && !PSA_ALG_ECDSA_IS_DETERMINISTIC(alg))
|
(PSA_ALG_IS_ECDSA(alg) && !PSA_ALG_ECDSA_IS_DETERMINISTIC(alg))
|
||||||
|
|
||||||
|
/* Default definition, to be overridden if the library is extended with
|
||||||
|
* more hash-and-sign algorithms that we want to keep out of this header
|
||||||
|
* file. */
|
||||||
|
#define PSA_ALG_IS_VENDOR_HASH_AND_SIGN(alg) 0
|
||||||
|
|
||||||
/** Whether the specified algorithm is a hash-and-sign algorithm.
|
/** Whether the specified algorithm is a hash-and-sign algorithm.
|
||||||
*
|
*
|
||||||
* Hash-and-sign algorithms are asymmetric (public-key) signature algorithms
|
* Hash-and-sign algorithms are asymmetric (public-key) signature algorithms
|
||||||
@ -1359,7 +1364,8 @@
|
|||||||
*/
|
*/
|
||||||
#define PSA_ALG_IS_HASH_AND_SIGN(alg) \
|
#define PSA_ALG_IS_HASH_AND_SIGN(alg) \
|
||||||
(PSA_ALG_IS_RSA_PSS(alg) || PSA_ALG_IS_RSA_PKCS1V15_SIGN(alg) || \
|
(PSA_ALG_IS_RSA_PSS(alg) || PSA_ALG_IS_RSA_PKCS1V15_SIGN(alg) || \
|
||||||
PSA_ALG_IS_ECDSA(alg))
|
PSA_ALG_IS_ECDSA(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