Home
last modified time | relevance | path

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

/trusted-firmware-m-3.4.0/interface/include/psa/
Dcrypto_values.h978 #define PSA_ALG_HMAC(hash_alg) \ argument
979 (PSA_ALG_HMAC_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))
1391 #define PSA_ALG_RSA_PKCS1V15_SIGN(hash_alg) \ argument
1392 (PSA_ALG_RSA_PKCS1V15_SIGN_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))
1425 #define PSA_ALG_RSA_PSS(hash_alg) \ argument
1426 (PSA_ALG_RSA_PSS_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))
1443 #define PSA_ALG_RSA_PSS_ANY_SALT(hash_alg) \ argument
1444 (PSA_ALG_RSA_PSS_ANY_SALT_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))
1514 #define PSA_ALG_ECDSA(hash_alg) \ argument
1515 (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.4.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\r\n", hash_alg); in cc3xx_psa_hash_mode_to_cc_hash_mode()
Dcc3xx_psa_mac.c256 size_t key_buffer_size, psa_algorithm_t hash_alg) in hmac_setup() argument
261 size_t hash_size = PSA_HASH_LENGTH(hash_alg); in hmac_setup()
262 size_t block_size = psa_get_hash_block_size(hash_alg); in hmac_setup()
265 switch (hash_alg) { in hmac_setup()
296 status = cc3xx_hash_compute(hash_alg, key_buffer, key_buffer_size, ipad, in hmac_setup()
316 status = cc3xx_hash_setup(hmac, hash_alg); in hmac_setup()
338 psa_algorithm_t hash_alg; in hmac_finish() local
345 hash_alg = PSA_ALG_SHA_1; in hmac_finish()
350 hash_alg = PSA_ALG_SHA_224; in hmac_finish()
355 hash_alg = PSA_ALG_SHA_256; in hmac_finish()
[all …]