Lines Matching refs:adata
102 struct alginfo adata; member
230 ctx->adata.key_virt = ctx->key; in ahash_set_sh_desc()
234 cnstr_shdsc_ahash(desc, &ctx->adata, OP_ALG_AS_UPDATE, ctx->ctx_len, in ahash_set_sh_desc()
245 cnstr_shdsc_ahash(desc, &ctx->adata, OP_ALG_AS_INIT, ctx->ctx_len, in ahash_set_sh_desc()
255 cnstr_shdsc_ahash(desc, &ctx->adata, OP_ALG_AS_FINALIZE, digestsize, in ahash_set_sh_desc()
266 cnstr_shdsc_ahash(desc, &ctx->adata, OP_ALG_AS_INITFINAL, digestsize, in ahash_set_sh_desc()
287 cnstr_shdsc_sk_hash(desc, &ctx->adata, OP_ALG_AS_UPDATE, in axcbc_set_sh_desc()
297 cnstr_shdsc_sk_hash(desc, &ctx->adata, OP_ALG_AS_FINALIZE, in axcbc_set_sh_desc()
306 ctx->adata.key_virt = ctx->key; in axcbc_set_sh_desc()
310 cnstr_shdsc_sk_hash(desc, &ctx->adata, OP_ALG_AS_INIT, ctx->ctx_len, in axcbc_set_sh_desc()
320 cnstr_shdsc_sk_hash(desc, &ctx->adata, OP_ALG_AS_INITFINAL, in axcbc_set_sh_desc()
339 cnstr_shdsc_sk_hash(desc, &ctx->adata, OP_ALG_AS_UPDATE, in acmac_set_sh_desc()
349 cnstr_shdsc_sk_hash(desc, &ctx->adata, OP_ALG_AS_FINALIZE, in acmac_set_sh_desc()
359 cnstr_shdsc_sk_hash(desc, &ctx->adata, OP_ALG_AS_INIT, ctx->ctx_len, in acmac_set_sh_desc()
369 cnstr_shdsc_sk_hash(desc, &ctx->adata, OP_ALG_AS_INITFINAL, in acmac_set_sh_desc()
406 append_operation(desc, ctx->adata.algtype | OP_ALG_ENCRYPT | in hash_digest_key()
471 ctx->adata.key_inline = true; in ahash_setkey()
472 ctx->adata.keylen = keylen; in ahash_setkey()
473 ctx->adata.keylen_pad = split_key_len(ctx->adata.algtype & in ahash_setkey()
476 if (ctx->adata.keylen_pad > CAAM_MAX_HASH_KEY_SIZE) in ahash_setkey()
487 if (keylen > ctx->adata.keylen_pad) in ahash_setkey()
489 ctx->adata.key_dma, in ahash_setkey()
490 ctx->adata.keylen_pad, in ahash_setkey()
493 ret = gen_split_key(ctx->jrdev, ctx->key, &ctx->adata, key, in ahash_setkey()
519 dma_sync_single_for_device(jrdev, ctx->adata.key_dma, keylen, in axcbc_setkey()
521 ctx->adata.keylen = keylen; in axcbc_setkey()
542 ctx->adata.key_virt = key; in acmac_setkey()
543 ctx->adata.keylen = keylen; in acmac_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()
1842 ctx->adata.algtype = OP_TYPE_CLASS1_ALG | caam_hash->alg_type; in caam_hash_cra_init()
1847 ctx->adata.algtype = OP_TYPE_CLASS1_ALG | caam_hash->alg_type; in caam_hash_cra_init()
1857 ctx->adata.algtype = OP_TYPE_CLASS2_ALG | caam_hash->alg_type; in caam_hash_cra_init()
1858 ctx->ctx_len = runninglen[(ctx->adata.algtype & in caam_hash_cra_init()
1864 ctx->adata.key_dma = dma_map_single_attrs(ctx->jrdev, ctx->key, in caam_hash_cra_init()
1868 if (dma_mapping_error(ctx->jrdev, ctx->adata.key_dma)) { in caam_hash_cra_init()
1882 dma_unmap_single_attrs(ctx->jrdev, ctx->adata.key_dma, in caam_hash_cra_init()
1918 dma_unmap_single_attrs(ctx->jrdev, ctx->adata.key_dma, in caam_hash_cra_exit()