Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/samples/crypto/
H A Dfips140_lab_util.c220 static int get_alg_fd(const char *alg_type, const char *alg_name) in get_alg_fd() argument
230 strncpy((char *)addr.salg_type, alg_type, sizeof(addr.salg_type) - 1); in get_alg_fd()
235 alg_type, alg_name); in get_alg_fd()
322 const char *alg_type; member
335 .alg_type = "skcipher",
339 .alg_type = "skcipher",
344 .alg_type = "skcipher",
348 .alg_type = "skcipher",
352 .alg_type = "skcipher",
357 .alg_type = "skcipher",
[all …]
/OK3568_Linux_fs/u-boot/drivers/crypto/fsl/
H A Dfsl_hash.c24 u32 alg_type; member
36 .alg_type = OP_ALG_ALGSEL_SHA1,
41 .alg_type = OP_ALG_ALGSEL_SHA256,
146 driver_hash[caam_algo].alg_type, in caam_hash_finish()
174 driver_hash[algo].alg_type, in caam_hash()
H A Djobdesc.h33 u32 alg_type, uint32_t alg_size, int sg_tbl);
H A Djobdesc.c178 u32 alg_type, uint32_t alg_size, int sg_tbl) in inline_cnstr_jobdesc_hash() argument
191 OP_ALG_ENCRYPT | OP_ALG_ICV_OFF | alg_type); in inline_cnstr_jobdesc_hash()
/OK3568_Linux_fs/kernel/drivers/crypto/hisilicon/sec2/
H A Dsec_crypto.c175 (ctx->alg_type == SEC_SKCIPHER && flag != SEC_SQE_CFLAG) || in sec_req_cb()
176 (ctx->alg_type == SEC_AEAD && flag != SEC_SQE_AEAD_FLAG))) { in sec_req_cb()
184 if (ctx->alg_type == SEC_AEAD && !req->c_req.encrypt) in sec_req_cb()
333 if (ctx->alg_type == SEC_AEAD) { in sec_alg_resource_alloc()
348 if (ctx->alg_type == SEC_AEAD) in sec_alg_resource_alloc()
365 if (ctx->alg_type == SEC_AEAD) in sec_alg_resource_free()
370 int qp_ctx_id, int alg_type) in sec_create_qp_ctx() argument
541 ctx->alg_type = SEC_SKCIPHER; in sec_skcipher_init()
695 if (ctx->alg_type == SEC_AEAD) in GEN_SEC_SETKEY_FUNC()
730 if (ctx->alg_type == SEC_AEAD) in sec_cipher_pbuf_unmap()
[all …]
H A Dsec.h137 enum sec_alg_type alg_type; member
/OK3568_Linux_fs/kernel/drivers/crypto/caam/
H A Dcaamhash.c1574 u32 alg_type; member
1599 .alg_type = OP_ALG_ALGSEL_SHA1,
1620 .alg_type = OP_ALG_ALGSEL_SHA224,
1641 .alg_type = OP_ALG_ALGSEL_SHA256,
1662 .alg_type = OP_ALG_ALGSEL_SHA384,
1683 .alg_type = OP_ALG_ALGSEL_SHA512,
1704 .alg_type = OP_ALG_ALGSEL_MD5,
1723 .alg_type = OP_ALG_ALGSEL_AES | OP_ALG_AAI_XCBC_MAC,
1742 .alg_type = OP_ALG_ALGSEL_AES | OP_ALG_AAI_CMAC,
1748 int alg_type; member
[all …]
H A Dcaamalg_qi2.c4396 u32 alg_type; member
4421 .alg_type = OP_ALG_ALGSEL_SHA1,
4442 .alg_type = OP_ALG_ALGSEL_SHA224,
4463 .alg_type = OP_ALG_ALGSEL_SHA256,
4484 .alg_type = OP_ALG_ALGSEL_SHA384,
4505 .alg_type = OP_ALG_ALGSEL_SHA512,
4526 .alg_type = OP_ALG_ALGSEL_MD5,
4533 int alg_type; member
4588 ctx->adata.algtype = OP_TYPE_CLASS2_ALG | caam_hash->alg_type; in caam_hash_cra_init()
4652 t_alg->alg_type = template->alg_type; in caam_hash_alloc()
/OK3568_Linux_fs/kernel/drivers/crypto/hisilicon/
H A Dqm.h268 u8 alg_type; member
346 struct hisi_qp *hisi_qm_create_qp(struct hisi_qm *qm, u8 alg_type);
378 u8 alg_type, int node, struct hisi_qp **qps);
H A Dqm.c197 #define QM_MK_SQC_W13(priority, orders, alg_type) \ argument
200 (((alg_type) & QM_SQ_TYPE_MASK) << QM_SQ_TYPE_SHIFT))
1654 static struct hisi_qp *qm_create_qp_nolock(struct hisi_qm *qm, u8 alg_type) in qm_create_qp_nolock() argument
1685 qp->alg_type = alg_type; in qm_create_qp_nolock()
1700 struct hisi_qp *hisi_qm_create_qp(struct hisi_qm *qm, u8 alg_type) in hisi_qm_create_qp() argument
1705 qp = qm_create_qp_nolock(qm, alg_type); in hisi_qm_create_qp()
1768 sqc->w13 = cpu_to_le16(QM_MK_SQC_W13(0, 1, qp->alg_type)); in qm_qp_ctx_cfg()
2031 u8 alg_type = 0; in hisi_qm_uacce_get_queue() local
2033 qp = hisi_qm_create_qp(qm, alg_type); in hisi_qm_uacce_get_queue()
2121 qp->alg_type = type; in qm_set_sqctype()
[all …]
/OK3568_Linux_fs/kernel/drivers/crypto/hisilicon/zip/
H A Dzip_crypto.c154 int alg_type, int req_type) in hisi_zip_start_qp() argument
160 qp->alg_type = alg_type; in hisi_zip_start_qp()
366 (qp->alg_type == 0) ? "" : "de", qp->qp_id, status, in hisi_zip_acomp_cb()
376 head_size = (qp->alg_type == 0) ? TO_HEAD_SIZE(qp->req_type) : 0; in hisi_zip_acomp_cb()
/OK3568_Linux_fs/kernel/drivers/crypto/rockchip/
H A Drk3288_crypto.h253 enum alg_type { enum
264 enum alg_type type;
H A Drk_crypto_core.h222 enum alg_type { enum
239 enum alg_type type;
H A Dprocfs.c69 static void crypto_show_valid_algo_single(struct seq_file *p, enum alg_type type, in crypto_show_valid_algo_single()
/OK3568_Linux_fs/kernel/drivers/crypto/
H A Dpicoxcell_crypto.c528 static int spacc_aead_do_fallback(struct aead_request *req, unsigned alg_type, in spacc_aead_do_fallback() argument
627 unsigned alg_type, bool is_encrypt) in spacc_aead_setup() argument
644 return spacc_aead_do_fallback(req, alg_type, is_encrypt); in spacc_aead_setup()
899 unsigned alg_type, bool is_encrypt) in spacc_ablk_do_fallback() argument
923 static int spacc_ablk_setup(struct skcipher_request *req, unsigned alg_type, in spacc_ablk_setup() argument
940 return spacc_ablk_do_fallback(req, alg_type, is_encrypt); in spacc_ablk_setup()
/OK3568_Linux_fs/u-boot/scripts/
H A Davbtool.py498 def lookup_algorithm_by_type(alg_type): argument
512 if alg_data.algorithm_type == alg_type:
514 raise AvbError('Unknown algorithm type {}'.format(alg_type))
517 def lookup_hash_size_by_type(alg_type): argument
531 if alg_data.algorithm_type == alg_type:
533 raise AvbError('Unsupported algorithm type {}'.format(alg_type))
/OK3568_Linux_fs/tools/linux/Linux_SecurityAVB/scripts/
H A Davbtool422 def lookup_algorithm_by_type(alg_type): argument
436 if alg_data.algorithm_type == alg_type:
438 raise AvbError('Unknown algorithm type {}'.format(alg_type))