Searched refs:hash_alg (Results 1 – 5 of 5) sorted by relevance
980 #define PSA_ALG_HMAC(hash_alg) \ argument981 (PSA_ALG_HMAC_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))1393 #define PSA_ALG_RSA_PKCS1V15_SIGN(hash_alg) \ argument1394 (PSA_ALG_RSA_PKCS1V15_SIGN_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))1427 #define PSA_ALG_RSA_PSS(hash_alg) \ argument1428 (PSA_ALG_RSA_PSS_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))1445 #define PSA_ALG_RSA_PSS_ANY_SALT(hash_alg) \ argument1446 (PSA_ALG_RSA_PSS_ANY_SALT_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))1516 #define PSA_ALG_ECDSA(hash_alg) \ argument1517 (PSA_ALG_ECDSA_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))[all …]
78 #define PSA_ALG_DSA(hash_alg) \ argument79 (PSA_ALG_DSA_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))96 #define PSA_ALG_DETERMINISTIC_DSA(hash_alg) \ argument97 (PSA_ALG_DETERMINISTIC_DSA_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))
34 psa_algorithm_t hash_alg; in cc3xx_psa_hash_mode_to_cc_hash_mode() local37 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()
255 size_t key_buffer_size, psa_algorithm_t hash_alg) in hmac_setup() argument260 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() local344 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 …]
21 int psa_can_do_hash(psa_algorithm_t hash_alg)23 (void) hash_alg;