| /linux/drivers/crypto/bcm/ |
| A D | cipher.c | 2051 ctx->authkeylen); in ahash_init() 2280 ctx->authkeylen = keylen; in ahash_setkey() 2398 ctx->authkeylen = 0; in ahash_hmac_setkey() 2741 ctx->authkeylen = keys.authkeylen; in aead_authenc_setkey() 2782 ctx->authkeylen); in aead_authenc_setkey() 2808 ctx->authkeylen = 0; in aead_authenc_setkey() 2830 ctx->authkeylen = 0; in aead_gcm_ccm_setkey() 2849 ctx->authkeylen); in aead_gcm_ccm_setkey() 2873 ctx->authkeylen); in aead_gcm_ccm_setkey() 2879 ctx->authkeylen = 0; in aead_gcm_ccm_setkey() [all …]
|
| A D | cipher.h | 184 unsigned int authkeylen; member
|
| /linux/include/crypto/ |
| A D | authenc.h | 25 unsigned int authkeylen; member
|
| /linux/drivers/crypto/marvell/octeontx/ |
| A D | otx_cptvf_algs.c | 755 int authkeylen = keys->authkeylen; in aead_hmac_init() local 760 if (authkeylen > bs) { in aead_hmac_init() 762 authkeylen, ctx->key); in aead_hmac_init() 765 authkeylen = ds; in aead_hmac_init() 767 memcpy(ctx->key, keys->authkey, authkeylen); in aead_hmac_init() 770 ctx->auth_key_len = authkeylen; in aead_hmac_init() 790 memcpy(ctx->key + authkeylen, keys->enckey, keys->enckeylen); in aead_hmac_init() 795 memcpy(ipad, ctx->key, authkeylen); in aead_hmac_init() 796 memset(ipad + authkeylen, 0, bs - authkeylen); in aead_hmac_init()
|
| /linux/drivers/crypto/marvell/octeontx2/ |
| A D | otx2_cptvf_algs.c | 843 int authkeylen = keys->authkeylen; in aead_hmac_init() local 848 if (authkeylen > bs) { in aead_hmac_init() 850 authkeylen, ctx->key); in aead_hmac_init() 854 authkeylen = ds; in aead_hmac_init() 856 memcpy(ctx->key, keys->authkey, authkeylen); in aead_hmac_init() 859 ctx->auth_key_len = authkeylen; in aead_hmac_init() 879 memcpy(ctx->key + authkeylen, keys->enckey, keys->enckeylen); in aead_hmac_init() 884 memcpy(ipad, ctx->key, authkeylen); in aead_hmac_init() 885 memset(ipad + authkeylen, 0, bs - authkeylen); in aead_hmac_init()
|
| /linux/crypto/ |
| A 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()
|
| A D | authencesn.c | 73 err = crypto_ahash_setkey(auth, keys.authkey, keys.authkeylen); in crypto_authenc_esn_setkey()
|
| A D | essiv.c | 115 crypto_shash_finup(desc, keys.authkey, keys.authkeylen, salt); in essiv_aead_setkey()
|
| /linux/drivers/crypto/ |
| A 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() 948 ctx->keylen = keys.authkeylen + keys.enckeylen; in aead_des3_setkey() 950 ctx->authkeylen = keys.authkeylen; in aead_des3_setkey() [all …]
|
| A D | sa2ul.c | 1837 cfg.akey_len = keys.authkeylen; in sa_aead_setkey() 1841 keys.enckeylen, keys.authkey, keys.authkeylen, in sa_aead_setkey() 1855 keys.enckeylen, keys.authkey, keys.authkeylen, in sa_aead_setkey()
|
| A D | atmel-aes.c | 1918 keys.authkey, keys.authkeylen, in atmel_aes_authenc_setkey()
|
| /linux/drivers/crypto/intel/ixp4xx/ |
| A D | ixp4xx_crypto.c | 1253 if (keys.authkeylen > sizeof(ctx->authkey)) in aead_setkey() 1259 memcpy(ctx->authkey, keys.authkey, keys.authkeylen); in aead_setkey() 1261 ctx->authkey_len = keys.authkeylen; in aead_setkey() 1283 if (keys.authkeylen > sizeof(ctx->authkey)) in des3_aead_setkey() 1290 memcpy(ctx->authkey, keys.authkey, keys.authkeylen); in des3_aead_setkey() 1292 ctx->authkey_len = keys.authkeylen; in des3_aead_setkey()
|
| /linux/drivers/crypto/qce/ |
| A 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/drivers/crypto/chelsio/ |
| A D | chcr_algo.c | 3629 if (keys.authkeylen > bs) { in chcr_authenc_setkey() 3631 keys.authkeylen, in chcr_authenc_setkey() 3637 keys.authkeylen = max_authsize; in chcr_authenc_setkey() 3639 memcpy(o_ptr, keys.authkey, 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() 3651 memset(pad + keys.authkeylen, 0, bs - keys.authkeylen); in chcr_authenc_setkey() 3652 memcpy(pad, o_ptr, keys.authkeylen); in chcr_authenc_setkey()
|
| /linux/drivers/crypto/caam/ |
| A D | caamalg_qi.c | 213 keys.authkeylen + keys.enckeylen, keys.enckeylen, in aead_setkey() 214 keys.authkeylen); in aead_setkey() 223 ctx->adata.keylen = keys.authkeylen; in aead_setkey() 230 memcpy(ctx->key, keys.authkey, keys.authkeylen); in aead_setkey() 240 keys.authkeylen, CAAM_MAX_KEY_SIZE - in aead_setkey()
|
| A D | caamalg.c | 598 keys.authkeylen + keys.enckeylen, keys.enckeylen, in aead_setkey() 599 keys.authkeylen); in aead_setkey() 608 ctx->adata.keylen = keys.authkeylen; in aead_setkey() 615 memcpy(ctx->key, keys.authkey, keys.authkeylen); in aead_setkey() 625 keys.authkeylen, CAAM_MAX_KEY_SIZE - in aead_setkey()
|
| A D | caamalg_qi2.c | 300 keys.authkeylen + keys.enckeylen, keys.enckeylen, in aead_setkey() 301 keys.authkeylen); in aead_setkey() 305 ctx->adata.keylen = keys.authkeylen; in aead_setkey() 312 memcpy(ctx->key, keys.authkey, keys.authkeylen); in aead_setkey()
|
| /linux/drivers/crypto/hisilicon/sec2/ |
| A D | sec_crypto.c | 1094 if (!keys->authkeylen) { in sec_aead_auth_set_key() 1101 if (keys->authkeylen > blocksize) { in sec_aead_auth_set_key() 1103 keys->authkeylen, ctx->a_key); in sec_aead_auth_set_key() 1110 memcpy(ctx->a_key, keys->authkey, keys->authkeylen); in sec_aead_auth_set_key() 1111 ctx->a_key_len = keys->authkeylen; in sec_aead_auth_set_key()
|
| /linux/drivers/crypto/intel/qat/qat_common/ |
| A 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/drivers/md/ |
| A D | dm-crypt.c | 2458 unsigned int enckeylen, unsigned int authkeylen) in crypt_copy_authenckey() argument 2469 memcpy(p, key + enckeylen, authkeylen); in crypt_copy_authenckey() 2470 p += authkeylen; in crypt_copy_authenckey()
|
| /linux/drivers/crypto/ccree/ |
| A D | cc_aead.c | 566 ctx->auth_keylen = keys.authkeylen; in cc_aead_setkey()
|
| /linux/drivers/crypto/inside-secure/ |
| A D | safexcel_cipher.c | 488 if (safexcel_hmac_setkey(&ctx->base, keys.authkey, keys.authkeylen, in safexcel_aead_setkey()
|