Searched refs:keylen_pad (Results 1 – 8 of 8) sorted by relevance
/linux-6.12.1/drivers/crypto/caam/ |
D | key_gen.c | 55 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()
|
D | desc_constr.h | 508 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()
|
D | caamalg_qi.c | 117 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 …]
|
D | caamhash_desc.c | 45 adata->keylen_pad, in cnstr_shdsc_ahash()
|
D | caamalg.c | 147 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 …]
|
D | caamalg_qi2.c | 207 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 …]
|
D | caamalg_desc.c | 69 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()
|
D | caamhash.c | 460 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()
|