Home
last modified time | relevance | path

Searched refs:keylen_pad (Results 1 – 8 of 8) sorted by relevance

/linux-6.12.1/drivers/crypto/caam/
Dkey_gen.c55 adata->keylen_pad = split_key_pad_len(adata->algtype & in gen_split_key()
57 local_max = max(keylen, adata->keylen_pad); in gen_split_key()
60 adata->keylen, adata->keylen_pad); in gen_split_key()
118 adata->keylen_pad, 1); in gen_split_key()
Ddesc_constr.h508 unsigned int keylen_pad; member
576 if (adata->keylen > adata->keylen_pad) { in append_proto_dkp()
582 words = (ALIGN(adata->keylen_pad, CAAM_CMD_SZ) - in append_proto_dkp()
590 words = (ALIGN(adata->keylen_pad, CAAM_CMD_SZ) - in append_proto_dkp()
Dcaamalg_qi.c117 nonce = (u32 *)((void *)ctx->key + ctx->adata.keylen_pad + in aead_set_sh_desc()
130 ctx->cdata.key_virt = ctx->key + ctx->adata.keylen_pad; in aead_set_sh_desc()
131 ctx->cdata.key_dma = ctx->key_dma + ctx->adata.keylen_pad; in aead_set_sh_desc()
133 data_len[0] = ctx->adata.keylen_pad; in aead_set_sh_desc()
224 ctx->adata.keylen_pad = split_key_len(ctx->adata.algtype & in aead_setkey()
227 if (ctx->adata.keylen_pad + keys.enckeylen > CAAM_MAX_KEY_SIZE) in aead_setkey()
231 memcpy(ctx->key + ctx->adata.keylen_pad, keys.enckey, in aead_setkey()
234 ctx->adata.keylen_pad + in aead_setkey()
246 memcpy(ctx->key + ctx->adata.keylen_pad, keys.enckey, keys.enckeylen); in aead_setkey()
248 ctx->adata.keylen_pad + keys.enckeylen, in aead_setkey()
[all …]
Dcaamhash_desc.c45 adata->keylen_pad, in cnstr_shdsc_ahash()
Dcaamalg.c147 ctx->adata.keylen_pad; in aead_null_set_sh_desc()
228 nonce = (u32 *)((void *)ctx->key + ctx->adata.keylen_pad + in aead_set_sh_desc()
241 ctx->cdata.key_virt = ctx->key + ctx->adata.keylen_pad; in aead_set_sh_desc()
242 ctx->cdata.key_dma = ctx->key_dma + ctx->adata.keylen_pad; in aead_set_sh_desc()
244 data_len[0] = ctx->adata.keylen_pad; in aead_set_sh_desc()
609 ctx->adata.keylen_pad = split_key_len(ctx->adata.algtype & in aead_setkey()
612 if (ctx->adata.keylen_pad + keys.enckeylen > CAAM_MAX_KEY_SIZE) in aead_setkey()
616 memcpy(ctx->key + ctx->adata.keylen_pad, keys.enckey, in aead_setkey()
619 ctx->adata.keylen_pad + in aead_setkey()
632 memcpy(ctx->key + ctx->adata.keylen_pad, keys.enckey, keys.enckeylen); in aead_setkey()
[all …]
Dcaamalg_qi2.c207 nonce = (u32 *)((void *)ctx->key + ctx->adata.keylen_pad + in aead_set_sh_desc()
220 ctx->cdata.key_virt = ctx->key + ctx->adata.keylen_pad; in aead_set_sh_desc()
221 ctx->cdata.key_dma = ctx->key_dma + ctx->adata.keylen_pad; in aead_set_sh_desc()
223 data_len[0] = ctx->adata.keylen_pad; in aead_set_sh_desc()
306 ctx->adata.keylen_pad = split_key_len(ctx->adata.algtype & in aead_setkey()
309 if (ctx->adata.keylen_pad + keys.enckeylen > CAAM_MAX_KEY_SIZE) in aead_setkey()
313 memcpy(ctx->key + ctx->adata.keylen_pad, keys.enckey, keys.enckeylen); in aead_setkey()
314 dma_sync_single_for_device(dev, ctx->key_dma, ctx->adata.keylen_pad + in aead_setkey()
318 ctx->adata.keylen_pad + keys.enckeylen, 1); in aead_setkey()
3338 ctx->adata.keylen_pad = split_key_len(ctx->adata.algtype & in ahash_setkey()
[all …]
Dcaamalg_desc.c69 adata->keylen_pad, adata->keylen, in cnstr_shdsc_aead_null_encap()
148 adata->keylen_pad, adata->keylen, in cnstr_shdsc_aead_null_decap()
236 adata->keylen_pad, adata->keylen, in init_sh_desc_key_aead()
Dcaamhash.c460 ctx->adata.keylen_pad = split_key_len(ctx->adata.algtype & in ahash_setkey()
463 if (ctx->adata.keylen_pad > CAAM_MAX_HASH_KEY_SIZE) in ahash_setkey()
474 if (keylen > ctx->adata.keylen_pad) in ahash_setkey()
477 ctx->adata.keylen_pad, in ahash_setkey()