Home
last modified time | relevance | path

Searched refs:algtype (Results 1 – 12 of 12) sorted by relevance

/Linux-v5.4/drivers/crypto/caam/
Dcaamhash_desc.c31 u32 op = adata->algtype; in cnstr_shdsc_ahash()
101 if (is_xcbc_aes(adata->algtype)) in cnstr_shdsc_sk_hash()
117 append_operation(desc, adata->algtype | state | OP_ALG_ENCRYPT); in cnstr_shdsc_sk_hash()
136 if (is_xcbc_aes(adata->algtype) && state == OP_ALG_AS_INIT) in cnstr_shdsc_sk_hash()
Dcaamalg_desc.c101 append_operation(desc, adata->algtype | OP_ALG_AS_INITFINAL | in cnstr_shdsc_aead_null_encap()
160 append_operation(desc, adata->algtype | OP_ALG_AS_INITFINAL | in cnstr_shdsc_aead_null_decap()
298 append_operation(desc, adata->algtype | OP_ALG_AS_INITFINAL | in cnstr_shdsc_aead_encap()
344 append_operation(desc, cdata->algtype | OP_ALG_AS_INITFINAL | in cnstr_shdsc_aead_encap()
392 append_operation(desc, adata->algtype | OP_ALG_AS_INITFINAL | in cnstr_shdsc_aead_decap()
458 append_operation(desc, cdata->algtype | OP_ALG_AS_INITFINAL | in cnstr_shdsc_aead_decap()
461 append_dec_op1(desc, cdata->algtype); in cnstr_shdsc_aead_decap()
555 append_operation(desc, adata->algtype | OP_ALG_AS_INITFINAL | in cnstr_shdsc_aead_givencap()
590 append_operation(desc, cdata->algtype | OP_ALG_AS_INITFINAL | in cnstr_shdsc_aead_givencap()
654 append_operation(desc, cdata->algtype | OP_ALG_AS_INITFINAL | in cnstr_shdsc_gcm_encap()
[all …]
Derror.h24 static inline bool is_mdha(u32 algtype) in is_mdha() argument
26 return (algtype & OP_ALG_ALGSEL_MASK & ~OP_ALG_ALGSEL_SUBMASK) == in is_mdha()
Dkey_gen.c54 adata->keylen = split_key_len(adata->algtype & OP_ALG_ALGSEL_MASK); in gen_split_key()
55 adata->keylen_pad = split_key_pad_len(adata->algtype & in gen_split_key()
85 append_operation(desc, (adata->algtype & OP_ALG_ALGSEL_MASK) | in gen_split_key()
Dcaamhash_desc.h18 static inline bool is_xcbc_aes(u32 algtype) in is_xcbc_aes() argument
20 return (algtype & (OP_ALG_ALGSEL_MASK | OP_ALG_AAI_MASK)) == in is_xcbc_aes()
Dcaamhash.c155 static inline bool is_cmac_aes(u32 algtype) in is_cmac_aes() argument
157 return (algtype & (OP_ALG_ALGSEL_MASK | OP_ALG_AAI_MASK)) == in is_cmac_aes()
406 append_operation(desc, ctx->adata.algtype | OP_ALG_ENCRYPT | in hash_digest_key()
473 ctx->adata.keylen_pad = split_key_len(ctx->adata.algtype & in ahash_setkey()
808 if ((is_xcbc_aes(ctx->adata.algtype) || in ahash_update_ctx()
809 is_cmac_aes(ctx->adata.algtype)) && to_hash >= blocksize && in ahash_update_ctx()
1228 if ((is_xcbc_aes(ctx->adata.algtype) || in ahash_update_no_ctx()
1229 is_cmac_aes(ctx->adata.algtype)) && to_hash >= blocksize && in ahash_update_no_ctx()
1447 if ((is_xcbc_aes(ctx->adata.algtype) || in ahash_update_first()
1448 is_cmac_aes(ctx->adata.algtype)) && to_hash >= blocksize && in ahash_update_first()
[all …]
Ddesc_constr.h505 u32 algtype; member
569 protid = (adata->algtype & OP_ALG_ALGSEL_SUBMASK) | in append_proto_dkp()
Dcaamalg_qi.c82 const bool ctr_mode = ((ctx->cdata.algtype & OP_ALG_AAI_MASK) == in aead_set_sh_desc()
211 ctx->adata.keylen_pad = split_key_len(ctx->adata.algtype & in aead_setkey()
2448 ctx->cdata.algtype = OP_TYPE_CLASS1_ALG | caam->class1_alg_type; in caam_init_common()
2449 ctx->adata.algtype = OP_TYPE_CLASS2_ALG | caam->class2_alg_type; in caam_init_common()
Dcaamalg.c179 const bool ctr_mode = ((ctx->cdata.algtype & OP_ALG_AAI_MASK) == in aead_set_sh_desc()
586 ctx->adata.keylen_pad = split_key_len(ctx->adata.algtype & in aead_setkey()
1223 const bool ctr_mode = ((ctx->cdata.algtype & OP_ALG_AAI_MASK) == in init_authenc_job()
3442 ctx->cdata.algtype = OP_TYPE_CLASS1_ALG | caam->class1_alg_type; in caam_init_common()
3443 ctx->adata.algtype = OP_TYPE_CLASS2_ALG | caam->class2_alg_type; in caam_init_common()
Dcaamalg_qi2.c177 const bool ctr_mode = ((ctx->cdata.algtype & OP_ALG_AAI_MASK) == in aead_set_sh_desc()
297 ctx->adata.keylen_pad = split_key_len(ctx->adata.algtype & in aead_setkey()
1540 ctx->cdata.algtype = OP_TYPE_CLASS1_ALG | caam->class1_alg_type; in caam_cra_init()
1541 ctx->adata.algtype = OP_TYPE_CLASS2_ALG | caam->class2_alg_type; in caam_cra_init()
3197 append_operation(desc, ctx->adata.algtype | OP_ALG_ENCRYPT | in hash_digest_key()
3281 ctx->adata.keylen_pad = split_key_len(ctx->adata.algtype & in ahash_setkey()
4560 ctx->adata.algtype = OP_TYPE_CLASS2_ALG | caam_hash->alg_type; in caam_hash_cra_init()
4562 ctx->ctx_len = runninglen[(ctx->adata.algtype & in caam_hash_cra_init()
/Linux-v5.4/drivers/s390/crypto/
Dzcrypt_ccamisc.h83 u8 algtype; /* 0x02 for AES cipher */ member
Dzcrypt_ccamisc.c113 if (t->algtype != 0x02) { in cca_check_secaescipherkey()
116 __func__, (int) t->algtype); in cca_check_secaescipherkey()