Home
last modified time | relevance | path

Searched refs:authkeylen (Results 1 – 19 of 19) sorted by relevance

/drivers/crypto/bcm/
A Dcipher.c2052 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 Dcipher.h184 unsigned int authkeylen; member
/drivers/crypto/marvell/octeontx/
A Dotx_cptvf_algs.c755 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 Dotx2_cptvf_algs.c844 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 Dtalitos.c859 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 Dsa2ul.c1806 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 Datmel-aes.c1919 keys.authkey, keys.authkeylen, in atmel_aes_authenc_setkey()
/drivers/crypto/intel/ixp4xx/
A Dixp4xx_crypto.c1256 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 Daead.c608 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 Dchcr_algo.c3629 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 Dcaamalg_qi.c213 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 Dcaamalg.c598 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 Dcaamalg_qi2.c301 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 Dsec_crypto.c1353 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 Deip93-aead.c151 ret = eip93_hmac_setkey(ctx->flags, keys.authkey, keys.authkeylen, in eip93_aead_setkey()
/drivers/crypto/intel/qat/qat_common/
A Dqat_algs.c264 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 Ddm-crypt.c2448 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 Dcc_aead.c566 ctx->auth_keylen = keys.authkeylen; in cc_aead_setkey()
/drivers/crypto/inside-secure/
A Dsafexcel_cipher.c488 if (safexcel_hmac_setkey(&ctx->base, keys.authkey, keys.authkeylen, in safexcel_aead_setkey()

Completed in 94 milliseconds