Lines Matching refs:adata
28 void cnstr_shdsc_ahash(u32 * const desc, struct alginfo *adata, u32 state, in cnstr_shdsc_ahash() argument
31 u32 op = adata->algtype; in cnstr_shdsc_ahash()
36 if (state != OP_ALG_AS_UPDATE && adata->keylen) { in cnstr_shdsc_ahash()
44 append_key_as_imm(desc, adata->key_virt, in cnstr_shdsc_ahash()
45 adata->keylen_pad, in cnstr_shdsc_ahash()
46 adata->keylen, CLASS_2 | in cnstr_shdsc_ahash()
49 append_proto_dkp(desc, adata); in cnstr_shdsc_ahash()
87 void cnstr_shdsc_sk_hash(u32 * const desc, struct alginfo *adata, u32 state, in cnstr_shdsc_sk_hash() argument
98 append_key_as_imm(desc, adata->key_virt, adata->keylen, in cnstr_shdsc_sk_hash()
99 adata->keylen, CLASS_1 | KEY_DEST_CLASS_REG); in cnstr_shdsc_sk_hash()
101 if (is_xcbc_aes(adata->algtype)) in cnstr_shdsc_sk_hash()
103 append_key(desc, adata->key_dma, adata->keylen, in cnstr_shdsc_sk_hash()
106 append_key_as_imm(desc, adata->key_virt, adata->keylen, in cnstr_shdsc_sk_hash()
107 adata->keylen, CLASS_1 | 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()
138 append_fifo_store(desc, adata->key_dma, adata->keylen, in cnstr_shdsc_sk_hash()