Home
last modified time | relevance | path

Searched refs:alg_type (Results 1 – 10 of 10) sorted by relevance

/optee_os/core/drivers/crypto/hisilicon/
H A Dsec_hash.c106 uint32_t alg_type = 0; in sec_digest_fill_sqe() local
128 alg_type = sec_digest_get_alg_type(ctx->algo); in sec_digest_fill_sqe()
129 if (alg_type >= A_ALG_MAX) { in sec_digest_fill_sqe()
133 sqe->type2.mac_key_alg |= SHIFT_U32(alg_type, SEC_AEAD_ALG_OFFSET); in sec_digest_fill_sqe()
195 uint32_t alg_type = 0; in sec_digest_fill_bd3_sqe() local
211 alg_type = sec_digest_get_alg_type(ctx->algo); in sec_digest_fill_bd3_sqe()
212 if (alg_type >= A_ALG_MAX) { in sec_digest_fill_bd3_sqe()
216 sqe->auth_mac_key |= SHIFT_U32(alg_type, SEC_AUTH_ALG_OFFSET_V3); in sec_digest_fill_bd3_sqe()
H A Dhpre_dh.h23 uint32_t alg_type; member
H A Dhpre_montgomery.h27 uint32_t alg_type; member
H A Dhpre_rsa.h46 uint32_t alg_type; member
H A Dhpre_ecc.c439 sqe->w0 = msg->alg_type | SHIFT_U32(0x1, HPRE_DONE_SHIFT); in hpre_ecc_fill_sqe()
443 if (msg->alg_type == HPRE_ALG_SM2_ENC || in hpre_ecc_fill_sqe()
444 msg->alg_type == HPRE_ALG_SM2_DEC) in hpre_ecc_fill_sqe()
447 if (msg->alg_type == HPRE_ALG_SM2_SIGN || in hpre_ecc_fill_sqe()
448 msg->alg_type == HPRE_ALG_SM2_ENC) in hpre_ecc_fill_sqe()
453 if (msg->alg_type != HPRE_ALG_ECDSA_VERF && in hpre_ecc_fill_sqe()
454 msg->alg_type != HPRE_ALG_SM2_VERF) in hpre_ecc_fill_sqe()
521 switch (msg->alg_type) { in hpre_ecc_out_to_crypto_bin()
834 msg->alg_type = HPRE_ALG_ECDH_MULTIPLY; in hpre_ecc_request_init()
1121 msg->alg_type = HPRE_ALG_SM2_SIGN; in hpre_ecc_sign_request_init()
[all …]
H A Dhpre_ecc.h70 uint8_t alg_type; member
H A Dhpre_rsa.c27 switch (msg->alg_type) { in hpre_rsa_fill_addr_params()
43 EMSG("Invalid alg_type[%"PRIu32"]", msg->alg_type); in hpre_rsa_fill_addr_params()
53 sqe->w0 = msg->alg_type | SHIFT_U32(0x1, HPRE_DONE_SHIFT); in hpre_rsa_fill_sqe()
166 switch (msg->alg_type) { in hpre_rsa_params_free()
178 EMSG("Invalid alg_type[%"PRIu32"]", msg->alg_type); in hpre_rsa_params_free()
251 msg->alg_type = HPRE_ALG_NC_NCRT; in hpre_rsa_encrypt_init()
706 msg->alg_type = HPRE_ALG_NC_CRT; in hpre_rsa_decrypt_init()
717 msg->alg_type = HPRE_ALG_NC_NCRT; in hpre_rsa_decrypt_init()
H A Dhpre_dh.c70 sqe->w0 = msg->alg_type | SHIFT_U32(0x1, HPRE_DONE_SHIFT); in hpre_dh_fill_sqe()
255 msg->alg_type = HPRE_ALG_DH; in hpre_dh_request_init()
H A Dhpre_montgomery.c280 msg->alg_type = HPRE_ALG_X_DH_MULTIPLY; in hpre_montgomery_request_init()
315 sqe->w0 = msg->alg_type | SHIFT_U32(0x1, HPRE_DONE_SHIFT); in hpre_montgomery_fill_sqe()
/optee_os/lib/libmbedtls/mbedtls/library/
H A Dpk.c916 psa_algorithm_t alg_type = psa_get_key_algorithm(&key_attr); in copy_from_psa() local
918 if (PSA_ALG_GET_HASH(alg_type) != PSA_ALG_ANY_HASH) { in copy_from_psa()
919 md_type = mbedtls_md_type_from_psa_alg(alg_type); in copy_from_psa()
922 if (PSA_ALG_IS_RSA_OAEP(alg_type) || PSA_ALG_IS_RSA_PSS(alg_type)) { in copy_from_psa()
924 } else if (PSA_ALG_IS_RSA_PKCS1V15_SIGN(alg_type) || in copy_from_psa()
925 alg_type == PSA_ALG_RSA_PKCS1V15_CRYPT) { in copy_from_psa()