File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -384,7 +384,7 @@ psa_status_t mbedtls_psa_inject_entropy(const uint8_t *seed,
384
384
#define PSA_ALG_DSA (hash_alg ) \
385
385
(PSA_ALG_DSA_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))
386
386
#define PSA_ALG_DETERMINISTIC_DSA_BASE ((psa_algorithm_t)0x10050000)
387
- #define PSA_ALG_DSA_DETERMINISTIC_FLAG ((psa_algorithm_t)0x00010000)
387
+ #define PSA_ALG_DSA_DETERMINISTIC_FLAG PSA_ALG_ECDSA_DETERMINISTIC_FLAG
388
388
/** Deterministic DSA signature with hashing.
389
389
*
390
390
* This is the deterministic variant defined by RFC 6979 of
Original file line number Diff line number Diff line change 1197
1197
*/
1198
1198
#define PSA_ALG_DETERMINISTIC_ECDSA (hash_alg ) \
1199
1199
(PSA_ALG_DETERMINISTIC_ECDSA_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))
1200
+ #define PSA_ALG_ECDSA_DETERMINISTIC_FLAG ((psa_algorithm_t)0x00010000)
1200
1201
#define PSA_ALG_IS_ECDSA (alg ) \
1201
- (((alg) & ~PSA_ALG_HASH_MASK & ~PSA_ALG_DSA_DETERMINISTIC_FLAG ) == \
1202
+ (((alg) & ~PSA_ALG_HASH_MASK & ~PSA_ALG_ECDSA_DETERMINISTIC_FLAG ) == \
1202
1203
PSA_ALG_ECDSA_BASE)
1203
1204
#define PSA_ALG_ECDSA_IS_DETERMINISTIC (alg ) \
1204
- (((alg) & PSA_ALG_DSA_DETERMINISTIC_FLAG ) != 0)
1205
+ (((alg) & PSA_ALG_ECDSA_DETERMINISTIC_FLAG ) != 0)
1205
1206
#define PSA_ALG_IS_DETERMINISTIC_ECDSA (alg ) \
1206
1207
(PSA_ALG_IS_ECDSA(alg) && PSA_ALG_ECDSA_IS_DETERMINISTIC(alg))
1207
1208
#define PSA_ALG_IS_RANDOMIZED_ECDSA (alg ) \
You can’t perform that action at this time.
0 commit comments