Searched refs:hash_alg (Results 1 – 4 of 4) sorted by relevance
978 #define PSA_ALG_HMAC(hash_alg) \ argument979 (PSA_ALG_HMAC_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))1391 #define PSA_ALG_RSA_PKCS1V15_SIGN(hash_alg) \ argument1392 (PSA_ALG_RSA_PKCS1V15_SIGN_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))1425 #define PSA_ALG_RSA_PSS(hash_alg) \ argument1426 (PSA_ALG_RSA_PSS_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))1443 #define PSA_ALG_RSA_PSS_ANY_SALT(hash_alg) \ argument1444 (PSA_ALG_RSA_PSS_ANY_SALT_BASE | ((hash_alg) & PSA_ALG_HASH_MASK))1514 #define PSA_ALG_ECDSA(hash_alg) \ argument1515 (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\r\n", hash_alg); in cc3xx_psa_hash_mode_to_cc_hash_mode()
256 size_t key_buffer_size, psa_algorithm_t hash_alg) in hmac_setup() argument261 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() local345 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 …]