| /linux/drivers/crypto/bcm/ |
| H A D | cipher.c | 704 hash_parms.key_len = ctx->authkeylen; in handle_ahash_req() 1307 hash_parms.key_len = ctx->authkeylen; in handle_aead_req() 1311 (ctx->authkeylen < SHA224_DIGEST_SIZE)) in handle_aead_req() 1875 ctx->spu_resp_hdr_len = spu->spu_response_hdr_len(ctx->authkeylen, in skcipher_setkey() 1930 ctx->authkeylen); in ahash_enqueue() 1977 ctx->spu_resp_hdr_len = spu->spu_response_hdr_len(ctx->authkeylen, 0, in __ahash_init() 2044 if (ctx->authkeylen > 0) { in ahash_init() 2046 ctx->authkeylen); in ahash_init() 2275 ctx->authkeylen = keylen; in ahash_setkey() 2375 ctx->authkeylen = digestsize; in ahash_hmac_setkey() [all …]
|
| H A D | cipher.h | 184 unsigned int authkeylen; member
|
| /linux/drivers/crypto/marvell/octeontx/ |
| H 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/ |
| H 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()
|
| /linux/include/crypto/ |
| H A D | authenc.h | 25 unsigned int authkeylen; member
|
| /linux/crypto/ |
| H A D | authenc.c | 74 keys->authkeylen = keylen - keys->enckeylen; in crypto_authenc_extractkeys() 76 keys->enckey = key + keys->authkeylen; in crypto_authenc_extractkeys() 97 err = crypto_ahash_setkey(auth, keys.authkey, keys.authkeylen); in crypto_authenc_setkey()
|
| H A D | krb5enc.c | 92 keys->authkeylen = keylen - keys->enckeylen; in crypto_krb5enc_extractkeys() 94 keys->enckey = key + keys->authkeylen; in crypto_krb5enc_extractkeys() 114 err = crypto_ahash_setkey(auth, keys.authkey, keys.authkeylen); in krb5enc_setkey()
|
| H A D | authencesn.c | 71 err = crypto_ahash_setkey(auth, keys.authkey, keys.authkeylen); in crypto_authenc_esn_setkey()
|
| H A D | essiv.c | 115 crypto_shash_finup(desc, keys.authkey, keys.authkeylen, salt); in essiv_aead_setkey()
|
| /linux/drivers/crypto/ |
| H 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() 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 …]
|
| H 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()
|
| H A D | atmel-aes.c | 1919 keys.authkey, keys.authkeylen, in atmel_aes_authenc_setkey()
|
| /linux/drivers/crypto/intel/ixp4xx/ |
| H 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()
|
| /linux/drivers/crypto/qce/ |
| H 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/caam/ |
| H 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()
|
| H A D | caamalg.c | 604 keys.authkeylen + keys.enckeylen, keys.enckeylen, in aead_setkey() 605 keys.authkeylen); in aead_setkey() 614 ctx->adata.keylen = keys.authkeylen; in aead_setkey() 621 memcpy(ctx->key, keys.authkey, keys.authkeylen); in aead_setkey() 631 keys.authkeylen, CAAM_MAX_KEY_SIZE - in aead_setkey()
|
| H 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()
|
| /linux/drivers/crypto/hisilicon/sec2/ |
| H A D | sec_crypto.c | 1360 if (keys->authkeylen > blocksize) { in sec_aead_auth_set_key() 1362 keys->authkeylen, ctx->a_key); in sec_aead_auth_set_key() 1369 if (keys->authkeylen) in sec_aead_auth_set_key() 1370 memcpy(ctx->a_key, keys->authkey, keys->authkeylen); in sec_aead_auth_set_key() 1371 ctx->a_key_len = keys->authkeylen; in sec_aead_auth_set_key()
|
| /linux/drivers/crypto/inside-secure/eip93/ |
| H A D | eip93-aead.c | 151 ret = eip93_hmac_setkey(ctx->flags, keys.authkey, keys.authkeylen, in eip93_aead_setkey()
|
| /linux/drivers/crypto/intel/qat/qat_common/ |
| H A D | qat_algs.c | 188 if (qat_alg_do_precomputes(hash, ctx, keys->authkey, keys->authkeylen)) in qat_alg_aead_init_enc_session() 275 if (qat_alg_do_precomputes(hash, ctx, keys->authkey, keys->authkeylen)) in qat_alg_aead_init_dec_session()
|
| /linux/drivers/md/ |
| H A D | dm-crypt.c | 2407 unsigned int enckeylen, unsigned int authkeylen) in crypt_copy_authenckey() argument 2418 memcpy(p, key + enckeylen, authkeylen); in crypt_copy_authenckey() 2419 p += authkeylen; in crypt_copy_authenckey()
|
| /linux/drivers/crypto/ccree/ |
| H A D | cc_aead.c | 566 ctx->auth_keylen = keys.authkeylen; in cc_aead_setkey()
|
| /linux/drivers/crypto/inside-secure/ |
| H A D | safexcel_cipher.c | 488 if (safexcel_hmac_setkey(&ctx->base, keys.authkey, keys.authkeylen, in safexcel_aead_setkey()
|
| /linux/drivers/crypto/chelsio/ |
| H A D | chcr_algo.c | 3522 err = chcr_prepare_hmac_key(keys.authkey, keys.authkeylen, max_authsize, in chcr_authenc_setkey()
|