/openbmc/linux/drivers/crypto/bcm/ |
H A D | cipher.c | 707 hash_parms.key_len = ctx->authkeylen; in handle_ahash_req() 1312 hash_parms.key_len = ctx->authkeylen; in handle_aead_req() 1316 (ctx->authkeylen < SHA224_DIGEST_SIZE)) in handle_aead_req() 1880 ctx->spu_resp_hdr_len = spu->spu_response_hdr_len(ctx->authkeylen, in skcipher_setkey() 1935 ctx->authkeylen); in ahash_enqueue() 1982 ctx->spu_resp_hdr_len = spu->spu_response_hdr_len(ctx->authkeylen, 0, in __ahash_init() 2049 if (ctx->authkeylen > 0) { in ahash_init() 2051 ctx->authkeylen); in ahash_init() 2280 ctx->authkeylen = keylen; in ahash_setkey() 2380 ctx->authkeylen = digestsize; in ahash_hmac_setkey() [all …]
|
H A D | cipher.h | 184 unsigned int authkeylen; member
|
/openbmc/linux/include/crypto/ |
H A D | authenc.h | 25 unsigned int authkeylen; member
|
/openbmc/linux/drivers/crypto/marvell/octeontx2/ |
H A D | otx2_cptvf_algs.c | 815 int authkeylen = keys->authkeylen; in aead_hmac_init() local 820 if (authkeylen > bs) { in aead_hmac_init() 822 authkeylen, ctx->key); in aead_hmac_init() 826 authkeylen = ds; in aead_hmac_init() 828 memcpy(ctx->key, keys->authkey, authkeylen); in aead_hmac_init() 831 ctx->auth_key_len = authkeylen; in aead_hmac_init() 851 memcpy(ctx->key + authkeylen, keys->enckey, keys->enckeylen); in aead_hmac_init() 856 memcpy(ipad, ctx->key, authkeylen); in aead_hmac_init() 857 memset(ipad + authkeylen, 0, bs - authkeylen); in aead_hmac_init()
|
/openbmc/linux/drivers/crypto/marvell/octeontx/ |
H A D | otx_cptvf_algs.c | 761 int authkeylen = keys->authkeylen; in aead_hmac_init() local 766 if (authkeylen > bs) { in aead_hmac_init() 768 authkeylen, ctx->key); in aead_hmac_init() 771 authkeylen = ds; in aead_hmac_init() 773 memcpy(ctx->key, keys->authkey, authkeylen); in aead_hmac_init() 776 ctx->auth_key_len = authkeylen; in aead_hmac_init() 796 memcpy(ctx->key + authkeylen, keys->enckey, keys->enckeylen); in aead_hmac_init() 801 memcpy(ipad, ctx->key, authkeylen); in aead_hmac_init() 802 memset(ipad + authkeylen, 0, bs - authkeylen); in aead_hmac_init()
|
/openbmc/linux/crypto/ |
H 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()
|
H A D | authencesn.c | 73 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()
|
/openbmc/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 | 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()
|
H A D | atmel-aes.c | 2111 keys.authkey, keys.authkeylen, in atmel_aes_authenc_setkey()
|
/openbmc/linux/drivers/crypto/intel/ixp4xx/ |
H 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()
|
/openbmc/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()
|
/openbmc/linux/drivers/crypto/chelsio/ |
H A D | chcr_algo.c | 3622 if (keys.authkeylen > bs) { in chcr_authenc_setkey() 3624 keys.authkeylen, in chcr_authenc_setkey() 3630 keys.authkeylen = max_authsize; in chcr_authenc_setkey() 3632 memcpy(o_ptr, keys.authkey, keys.authkeylen); in chcr_authenc_setkey() 3635 memset(pad + keys.authkeylen, 0, bs - keys.authkeylen); in chcr_authenc_setkey() 3636 memcpy(pad, o_ptr, keys.authkeylen); in chcr_authenc_setkey() 3644 memset(pad + keys.authkeylen, 0, bs - keys.authkeylen); in chcr_authenc_setkey() 3645 memcpy(pad, o_ptr, keys.authkeylen); in chcr_authenc_setkey()
|
/openbmc/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 | 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()
|
H 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()
|
/openbmc/linux/drivers/crypto/hisilicon/sec2/ |
H A D | sec_crypto.c | 1097 if (!keys->authkeylen) { in sec_aead_auth_set_key() 1104 if (keys->authkeylen > blocksize) { in sec_aead_auth_set_key() 1106 keys->authkeylen, ctx->a_key); in sec_aead_auth_set_key() 1113 memcpy(ctx->a_key, keys->authkey, keys->authkeylen); in sec_aead_auth_set_key() 1114 ctx->a_key_len = keys->authkeylen; in sec_aead_auth_set_key()
|
/openbmc/linux/drivers/crypto/intel/qat/qat_common/ |
H 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()
|
/openbmc/linux/drivers/md/ |
H A D | dm-crypt.c | 2430 unsigned int enckeylen, unsigned int authkeylen) in crypt_copy_authenckey() argument 2441 memcpy(p, key + enckeylen, authkeylen); in crypt_copy_authenckey() 2442 p += authkeylen; in crypt_copy_authenckey()
|
/openbmc/linux/drivers/crypto/ccree/ |
H A D | cc_aead.c | 566 ctx->auth_keylen = keys.authkeylen; in cc_aead_setkey()
|
/openbmc/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()
|