/linux-6.1.9/drivers/crypto/bcm/ |
D | cipher.c | 708 hash_parms.key_len = ctx->authkeylen; in handle_ahash_req() 1313 hash_parms.key_len = ctx->authkeylen; in handle_aead_req() 1317 (ctx->authkeylen < SHA224_DIGEST_SIZE)) in handle_aead_req() 1881 ctx->spu_resp_hdr_len = spu->spu_response_hdr_len(ctx->authkeylen, in skcipher_setkey() 1936 ctx->authkeylen); in ahash_enqueue() 1983 ctx->spu_resp_hdr_len = spu->spu_response_hdr_len(ctx->authkeylen, 0, in __ahash_init() 2050 if (ctx->authkeylen > 0) { in ahash_init() 2052 ctx->authkeylen); in ahash_init() 2281 ctx->authkeylen = keylen; in ahash_setkey() 2381 ctx->authkeylen = digestsize; in ahash_hmac_setkey() [all …]
|
D | cipher.h | 184 unsigned int authkeylen; member
|
/linux-6.1.9/include/crypto/ |
D | authenc.h | 25 unsigned int authkeylen; member
|
/linux-6.1.9/drivers/crypto/marvell/octeontx/ |
D | otx_cptvf_algs.c | 746 int authkeylen = ctx->auth_key_len; in aead_hmac_init() local 778 if (authkeylen > bs) { in aead_hmac_init() 780 authkeylen, ipad); in aead_hmac_init() 784 authkeylen = ds; in aead_hmac_init() 786 memcpy(ipad, ctx->key, authkeylen); in aead_hmac_init() 789 memset(ipad + authkeylen, 0, bs - authkeylen); in aead_hmac_init() 842 int enckeylen = 0, authkeylen = 0; in otx_cpt_aead_cbc_aes_sha_setkey() local 865 authkeylen = keylen - enckeylen; in otx_cpt_aead_cbc_aes_sha_setkey() 884 ctx->auth_key_len = authkeylen; in otx_cpt_aead_cbc_aes_sha_setkey()
|
/linux-6.1.9/drivers/crypto/marvell/octeontx2/ |
D | otx2_cptvf_algs.c | 801 int authkeylen = ctx->auth_key_len; in aead_hmac_init() local 833 if (authkeylen > bs) { in aead_hmac_init() 835 authkeylen, ipad); in aead_hmac_init() 839 authkeylen = ds; in aead_hmac_init() 841 memcpy(ipad, ctx->key, authkeylen); in aead_hmac_init() 844 memset(ipad + authkeylen, 0, bs - authkeylen); in aead_hmac_init() 897 int enckeylen = 0, authkeylen = 0; in otx2_cpt_aead_cbc_aes_sha_setkey() local 919 authkeylen = keylen - enckeylen; in otx2_cpt_aead_cbc_aes_sha_setkey() 938 ctx->auth_key_len = authkeylen; in otx2_cpt_aead_cbc_aes_sha_setkey()
|
/linux-6.1.9/crypto/ |
D | authenc.c | 76 keys->authkeylen = keylen - keys->enckeylen; in crypto_authenc_extractkeys() 78 keys->enckey = key + keys->authkeylen; in crypto_authenc_extractkeys() 99 err = crypto_ahash_setkey(auth, keys.authkey, keys.authkeylen); in crypto_authenc_setkey()
|
D | authencesn.c | 73 err = crypto_ahash_setkey(auth, keys.authkey, keys.authkeylen); in crypto_authenc_esn_setkey()
|
D | essiv.c | 115 crypto_shash_finup(desc, keys.authkey, keys.authkeylen, salt); in essiv_aead_setkey()
|
/linux-6.1.9/drivers/crypto/ |
D | talitos.c | 859 unsigned int authkeylen; member 899 if (keys.authkeylen + keys.enckeylen > TALITOS_MAX_KEY_SIZE) in aead_setkey() 905 memcpy(ctx->key, keys.authkey, keys.authkeylen); in aead_setkey() 906 memcpy(&ctx->key[keys.authkeylen], keys.enckey, keys.enckeylen); in aead_setkey() 908 ctx->keylen = keys.authkeylen + keys.enckeylen; in aead_setkey() 910 ctx->authkeylen = keys.authkeylen; in aead_setkey() 935 if (keys.authkeylen + keys.enckeylen > TALITOS_MAX_KEY_SIZE) in aead_des3_setkey() 945 memcpy(ctx->key, keys.authkey, keys.authkeylen); in aead_des3_setkey() 946 memcpy(&ctx->key[keys.authkeylen], keys.enckey, keys.enckeylen); in aead_des3_setkey() 948 ctx->keylen = keys.authkeylen + keys.enckeylen; in aead_des3_setkey() [all …]
|
D | ixp4xx_crypto.c | 1250 if (keys.authkeylen > sizeof(ctx->authkey)) in aead_setkey() 1256 memcpy(ctx->authkey, keys.authkey, keys.authkeylen); in aead_setkey() 1258 ctx->authkey_len = keys.authkeylen; in aead_setkey() 1280 if (keys.authkeylen > sizeof(ctx->authkey)) in des3_aead_setkey() 1287 memcpy(ctx->authkey, keys.authkey, keys.authkeylen); in des3_aead_setkey() 1289 ctx->authkey_len = keys.authkeylen; in des3_aead_setkey()
|
D | sa2ul.c | 1836 cfg.akey_len = keys.authkeylen; in sa_aead_setkey() 1840 keys.enckeylen, keys.authkey, keys.authkeylen, in sa_aead_setkey() 1854 keys.enckeylen, keys.authkey, keys.authkeylen, in sa_aead_setkey()
|
D | atmel-aes.c | 2117 keys.authkey, keys.authkeylen, in atmel_aes_authenc_setkey()
|
/linux-6.1.9/drivers/crypto/qce/ |
D | aead.c | 608 authenc_keys.authkeylen > QCE_MAX_KEY_SIZE) in qce_aead_setkey() 641 ctx->auth_keylen = authenc_keys.authkeylen; in qce_aead_setkey() 646 memcpy(ctx->auth_key, authenc_keys.authkey, authenc_keys.authkeylen); in qce_aead_setkey()
|
/linux-6.1.9/drivers/crypto/chelsio/ |
D | chcr_algo.c | 3620 if (keys.authkeylen > bs) { in chcr_authenc_setkey() 3622 keys.authkeylen, in chcr_authenc_setkey() 3628 keys.authkeylen = max_authsize; in chcr_authenc_setkey() 3630 memcpy(o_ptr, keys.authkey, keys.authkeylen); in chcr_authenc_setkey() 3633 memset(pad + keys.authkeylen, 0, bs - keys.authkeylen); in chcr_authenc_setkey() 3634 memcpy(pad, o_ptr, keys.authkeylen); in chcr_authenc_setkey() 3642 memset(pad + keys.authkeylen, 0, bs - keys.authkeylen); in chcr_authenc_setkey() 3643 memcpy(pad, o_ptr, keys.authkeylen); in chcr_authenc_setkey()
|
/linux-6.1.9/drivers/crypto/caam/ |
D | caamalg_qi.c | 208 keys.authkeylen + keys.enckeylen, keys.enckeylen, in aead_setkey() 209 keys.authkeylen); in aead_setkey() 218 ctx->adata.keylen = keys.authkeylen; in aead_setkey() 225 memcpy(ctx->key, keys.authkey, keys.authkeylen); in aead_setkey() 235 keys.authkeylen, CAAM_MAX_KEY_SIZE - in aead_setkey()
|
D | caamalg.c | 588 keys.authkeylen + keys.enckeylen, keys.enckeylen, in aead_setkey() 589 keys.authkeylen); in aead_setkey() 598 ctx->adata.keylen = keys.authkeylen; in aead_setkey() 605 memcpy(ctx->key, keys.authkey, keys.authkeylen); in aead_setkey() 615 keys.authkeylen, CAAM_MAX_KEY_SIZE - in aead_setkey()
|
D | caamalg_qi2.c | 298 keys.authkeylen + keys.enckeylen, keys.enckeylen, in aead_setkey() 299 keys.authkeylen); in aead_setkey() 303 ctx->adata.keylen = keys.authkeylen; in aead_setkey() 310 memcpy(ctx->key, keys.authkey, keys.authkeylen); in aead_setkey()
|
/linux-6.1.9/drivers/crypto/hisilicon/sec2/ |
D | sec_crypto.c | 1096 if (!keys->authkeylen) { in sec_aead_auth_set_key() 1103 if (keys->authkeylen > blocksize) { in sec_aead_auth_set_key() 1105 keys->authkeylen, ctx->a_key); in sec_aead_auth_set_key() 1112 memcpy(ctx->a_key, keys->authkey, keys->authkeylen); in sec_aead_auth_set_key() 1113 ctx->a_key_len = keys->authkeylen; in sec_aead_auth_set_key()
|
/linux-6.1.9/drivers/crypto/qat/qat_common/ |
D | qat_algs.c | 264 if (qat_alg_do_precomputes(hash, ctx, keys->authkey, keys->authkeylen)) in qat_alg_aead_init_enc_session() 351 if (qat_alg_do_precomputes(hash, ctx, keys->authkey, keys->authkeylen)) in qat_alg_aead_init_dec_session()
|
/linux-6.1.9/drivers/md/ |
D | dm-crypt.c | 2359 unsigned enckeylen, unsigned authkeylen) in crypt_copy_authenckey() argument 2370 memcpy(p, key + enckeylen, authkeylen); in crypt_copy_authenckey() 2371 p += authkeylen; in crypt_copy_authenckey()
|
/linux-6.1.9/drivers/crypto/ccree/ |
D | cc_aead.c | 566 ctx->auth_keylen = keys.authkeylen; in cc_aead_setkey()
|
/linux-6.1.9/drivers/crypto/inside-secure/ |
D | safexcel_cipher.c | 488 if (safexcel_hmac_setkey(&ctx->base, keys.authkey, keys.authkeylen, in safexcel_aead_setkey()
|