| /drivers/crypto/bcm/ |
| A D | cipher.c | 2052 ctx->authkeylen); in ahash_init() 2281 ctx->authkeylen = keylen; in ahash_setkey() 2399 ctx->authkeylen = 0; in ahash_hmac_setkey() 2745 ctx->authkeylen = keys.authkeylen; in aead_authenc_setkey() 2786 ctx->authkeylen); in aead_authenc_setkey() 2812 ctx->authkeylen = 0; in aead_authenc_setkey() 2834 ctx->authkeylen = 0; in aead_gcm_ccm_setkey() 2853 ctx->authkeylen); in aead_gcm_ccm_setkey() 2877 ctx->authkeylen); in aead_gcm_ccm_setkey() 2883 ctx->authkeylen = 0; in aead_gcm_ccm_setkey() [all …]
|
| A D | cipher.h | 184 unsigned int authkeylen; member
|
| /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()
|
| /drivers/crypto/marvell/octeontx2/ |
| A D | otx2_cptvf_algs.c | 844 int authkeylen = keys->authkeylen; in aead_hmac_init() local 849 if (authkeylen > bs) { in aead_hmac_init() 851 authkeylen, ctx->key); in aead_hmac_init() 855 authkeylen = ds; in aead_hmac_init() 857 memcpy(ctx->key, keys->authkey, authkeylen); in aead_hmac_init() 860 ctx->auth_key_len = authkeylen; in aead_hmac_init() 880 memcpy(ctx->key + authkeylen, keys->enckey, keys->enckeylen); in aead_hmac_init() 885 memcpy(ipad, ctx->key, authkeylen); in aead_hmac_init() 886 memset(ipad + authkeylen, 0, bs - authkeylen); in aead_hmac_init()
|
| /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 | 1806 cfg.akey_len = keys.authkeylen; in sa_aead_setkey() 1810 keys.enckeylen, keys.authkey, keys.authkeylen, in sa_aead_setkey() 1824 keys.enckeylen, keys.authkey, keys.authkeylen, in sa_aead_setkey()
|
| A D | atmel-aes.c | 1919 keys.authkey, keys.authkeylen, in atmel_aes_authenc_setkey()
|
| /drivers/crypto/intel/ixp4xx/ |
| A D | ixp4xx_crypto.c | 1256 if (keys.authkeylen > sizeof(ctx->authkey)) in aead_setkey() 1262 memcpy(ctx->authkey, keys.authkey, keys.authkeylen); in aead_setkey() 1264 ctx->authkey_len = keys.authkeylen; in aead_setkey() 1286 if (keys.authkeylen > sizeof(ctx->authkey)) in des3_aead_setkey() 1293 memcpy(ctx->authkey, keys.authkey, keys.authkeylen); in des3_aead_setkey() 1295 ctx->authkey_len = keys.authkeylen; in des3_aead_setkey()
|
| /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()
|
| /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()
|
| /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 | 301 keys.authkeylen + keys.enckeylen, keys.enckeylen, in aead_setkey() 302 keys.authkeylen); in aead_setkey() 306 ctx->adata.keylen = keys.authkeylen; in aead_setkey() 313 memcpy(ctx->key, keys.authkey, keys.authkeylen); in aead_setkey()
|
| /drivers/crypto/hisilicon/sec2/ |
| A D | sec_crypto.c | 1353 if (keys->authkeylen > blocksize) { in sec_aead_auth_set_key() 1355 keys->authkeylen, ctx->a_key); in sec_aead_auth_set_key() 1362 if (keys->authkeylen) in sec_aead_auth_set_key() 1363 memcpy(ctx->a_key, keys->authkey, keys->authkeylen); in sec_aead_auth_set_key() 1364 ctx->a_key_len = keys->authkeylen; in sec_aead_auth_set_key()
|
| /drivers/crypto/inside-secure/eip93/ |
| A D | eip93-aead.c | 151 ret = eip93_hmac_setkey(ctx->flags, keys.authkey, keys.authkeylen, in eip93_aead_setkey()
|
| /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()
|
| /drivers/md/ |
| A D | dm-crypt.c | 2448 unsigned int enckeylen, unsigned int authkeylen) in crypt_copy_authenckey() argument 2459 memcpy(p, key + enckeylen, authkeylen); in crypt_copy_authenckey() 2460 p += authkeylen; in crypt_copy_authenckey()
|
| /drivers/crypto/ccree/ |
| A D | cc_aead.c | 566 ctx->auth_keylen = keys.authkeylen; in cc_aead_setkey()
|
| /drivers/crypto/inside-secure/ |
| A D | safexcel_cipher.c | 488 if (safexcel_hmac_setkey(&ctx->base, keys.authkey, keys.authkeylen, in safexcel_aead_setkey()
|