• Home
  • Raw
  • Download

Lines Matching refs:adata

112 	struct alginfo adata;  member
124 ctx->adata.keylen_pad; in aead_null_set_sh_desc()
131 ctx->adata.key_inline = true; in aead_null_set_sh_desc()
132 ctx->adata.key_virt = ctx->key; in aead_null_set_sh_desc()
134 ctx->adata.key_inline = false; in aead_null_set_sh_desc()
135 ctx->adata.key_dma = ctx->key_dma; in aead_null_set_sh_desc()
140 cnstr_shdsc_aead_null_encap(desc, &ctx->adata, ctx->authsize, in aead_null_set_sh_desc()
150 ctx->adata.key_inline = true; in aead_null_set_sh_desc()
151 ctx->adata.key_virt = ctx->key; in aead_null_set_sh_desc()
153 ctx->adata.key_inline = false; in aead_null_set_sh_desc()
154 ctx->adata.key_dma = ctx->key_dma; in aead_null_set_sh_desc()
159 cnstr_shdsc_aead_null_decap(desc, &ctx->adata, ctx->authsize, in aead_null_set_sh_desc()
204 nonce = (u32 *)((void *)ctx->key + ctx->adata.keylen_pad + in aead_set_sh_desc()
214 ctx->adata.key_virt = ctx->key; in aead_set_sh_desc()
215 ctx->adata.key_dma = ctx->key_dma; in aead_set_sh_desc()
217 ctx->cdata.key_virt = ctx->key + ctx->adata.keylen_pad; in aead_set_sh_desc()
218 ctx->cdata.key_dma = ctx->key_dma + ctx->adata.keylen_pad; in aead_set_sh_desc()
220 data_len[0] = ctx->adata.keylen_pad; in aead_set_sh_desc()
236 ctx->adata.key_inline = !!(inl_mask & 1); in aead_set_sh_desc()
241 cnstr_shdsc_aead_encap(desc, &ctx->cdata, &ctx->adata, ivsize, in aead_set_sh_desc()
258 ctx->adata.key_inline = !!(inl_mask & 1); in aead_set_sh_desc()
263 cnstr_shdsc_aead_decap(desc, &ctx->cdata, &ctx->adata, ivsize, in aead_set_sh_desc()
282 ctx->adata.key_inline = !!(inl_mask & 1); in aead_set_sh_desc()
287 cnstr_shdsc_aead_givencap(desc, &ctx->cdata, &ctx->adata, ivsize, in aead_set_sh_desc()
518 cnstr_shdsc_chachapoly(desc, &ctx->cdata, &ctx->adata, ivsize, in chachapoly_set_sh_desc()
524 cnstr_shdsc_chachapoly(desc, &ctx->cdata, &ctx->adata, ivsize, in chachapoly_set_sh_desc()
585 ctx->adata.keylen = keys.authkeylen; in aead_setkey()
586 ctx->adata.keylen_pad = split_key_len(ctx->adata.algtype & in aead_setkey()
589 if (ctx->adata.keylen_pad + keys.enckeylen > CAAM_MAX_KEY_SIZE) in aead_setkey()
593 memcpy(ctx->key + ctx->adata.keylen_pad, keys.enckey, in aead_setkey()
596 ctx->adata.keylen_pad + in aead_setkey()
601 ret = gen_split_key(ctx->jrdev, ctx->key, &ctx->adata, keys.authkey, in aead_setkey()
609 memcpy(ctx->key + ctx->adata.keylen_pad, keys.enckey, keys.enckeylen); in aead_setkey()
610 dma_sync_single_for_device(jrdev, ctx->key_dma, ctx->adata.keylen_pad + in aead_setkey()
615 ctx->adata.keylen_pad + keys.enckeylen, 1); in aead_setkey()
3443 ctx->adata.algtype = OP_TYPE_CLASS2_ALG | caam->class2_alg_type; in caam_init_common()