Home
last modified time | relevance | path

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

/drivers/crypto/bcm/
Dcipher.c708 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 …]
Dcipher.h184 unsigned int authkeylen; member
/drivers/crypto/marvell/octeontx/
Dotx_cptvf_algs.c746 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()
/drivers/crypto/marvell/octeontx2/
Dotx2_cptvf_algs.c801 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()
/drivers/crypto/
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()
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 …]
Dixp4xx_crypto.c1250 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()
Dsa2ul.c1836 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()
Datmel-aes.c2117 keys.authkey, keys.authkeylen, in atmel_aes_authenc_setkey()
/drivers/crypto/qce/
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/
Dchcr_algo.c3620 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()
/drivers/crypto/caam/
Dcaamalg_qi.c208 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()
Dcaamalg.c589 keys.authkeylen + keys.enckeylen, keys.enckeylen, in aead_setkey()
590 keys.authkeylen); in aead_setkey()
599 ctx->adata.keylen = keys.authkeylen; in aead_setkey()
606 memcpy(ctx->key, keys.authkey, keys.authkeylen); in aead_setkey()
616 keys.authkeylen, CAAM_MAX_KEY_SIZE - in aead_setkey()
Dcaamalg_qi2.c298 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()
/drivers/crypto/hisilicon/sec2/
Dsec_crypto.c1096 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()
/drivers/crypto/qat/qat_common/
Dqat_algs.c265 if (qat_alg_do_precomputes(hash, ctx, keys->authkey, keys->authkeylen)) in qat_alg_aead_init_enc_session()
352 if (qat_alg_do_precomputes(hash, ctx, keys->authkey, keys->authkeylen)) in qat_alg_aead_init_dec_session()
/drivers/md/
Ddm-crypt.c2392 unsigned int enckeylen, unsigned int authkeylen) in crypt_copy_authenckey() argument
2403 memcpy(p, key + enckeylen, authkeylen); in crypt_copy_authenckey()
2404 p += authkeylen; in crypt_copy_authenckey()
/drivers/crypto/ccree/
Dcc_aead.c566 ctx->auth_keylen = keys.authkeylen; in cc_aead_setkey()
/drivers/crypto/inside-secure/
Dsafexcel_cipher.c488 if (safexcel_hmac_setkey(&ctx->base, keys.authkey, keys.authkeylen, in safexcel_aead_setkey()