Home
last modified time | relevance | path

Searched refs:hash_alg (Results 1 – 5 of 5) sorted by relevance

/trusted-firmware-m-3.6.0/interface/include/psa/
Dcrypto_values.h980 #define PSA_ALG_HMAC(hash_alg) \ argument
981 (PSA_ALG_HMAC_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))
1393 #define PSA_ALG_RSA_PKCS1V15_SIGN(hash_alg) \ argument
1394 (PSA_ALG_RSA_PKCS1V15_SIGN_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))
1427 #define PSA_ALG_RSA_PSS(hash_alg) \ argument
1428 (PSA_ALG_RSA_PSS_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))
1445 #define PSA_ALG_RSA_PSS_ANY_SALT(hash_alg) \ argument
1446 (PSA_ALG_RSA_PSS_ANY_SALT_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))
1516 #define PSA_ALG_ECDSA(hash_alg) \ argument
1517 (PSA_ALG_ECDSA_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))
[all …]
Dcrypto_extra.h78 #define PSA_ALG_DSA(hash_alg) \ argument
79 (PSA_ALG_DSA_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))
96 #define PSA_ALG_DETERMINISTIC_DSA(hash_alg) \ argument
97 (PSA_ALG_DETERMINISTIC_DSA_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/
Dcc3xx_internal_hash_util.c34 psa_algorithm_t hash_alg; in cc3xx_psa_hash_mode_to_cc_hash_mode() local
37 hash_alg = PSA_ALG_RSA_OAEP_GET_HASH(alg); in cc3xx_psa_hash_mode_to_cc_hash_mode()
41 hash_alg = PSA_ALG_SIGN_GET_HASH(alg); in cc3xx_psa_hash_mode_to_cc_hash_mode()
64 switch (hash_alg) { in cc3xx_psa_hash_mode_to_cc_hash_mode()
119 CC_PAL_LOG_ERR("Extracted hash_alg 0x%x is not valid", hash_alg); in cc3xx_psa_hash_mode_to_cc_hash_mode()
Dcc3xx_psa_mac.c255 size_t key_buffer_size, psa_algorithm_t hash_alg) in hmac_setup() argument
260 size_t hash_size = PSA_HASH_LENGTH(hash_alg); in hmac_setup()
261 size_t block_size = psa_get_hash_block_size(hash_alg); in hmac_setup()
264 switch (hash_alg) { in hmac_setup()
295 status = cc3xx_hash_compute(hash_alg, key_buffer, key_buffer_size, ipad, in hmac_setup()
315 status = cc3xx_hash_setup(hmac, hash_alg); in hmac_setup()
337 psa_algorithm_t hash_alg; in hmac_finish() local
344 hash_alg = PSA_ALG_SHA_1; in hmac_finish()
349 hash_alg = PSA_ALG_SHA_224; in hmac_finish()
354 hash_alg = PSA_ALG_SHA_256; in hmac_finish()
[all …]
/trusted-firmware-m-3.6.0/lib/ext/mbedcrypto/
D0006-Enable-psa_can_do_hash.patch21 int psa_can_do_hash(psa_algorithm_t hash_alg)
23 (void) hash_alg;