enckeylen 68 crypto/authenc.c keys->enckeylen = be32_to_cpu(param->enckeylen); enckeylen 73 crypto/authenc.c if (keylen < keys->enckeylen) enckeylen 76 crypto/authenc.c keys->authkeylen = keylen - keys->enckeylen; enckeylen 109 crypto/authenc.c err = crypto_skcipher_setkey(enc, keys.enckey, keys.enckeylen); enckeylen 83 crypto/authencesn.c err = crypto_skcipher_setkey(enc, keys.enckey, keys.enckeylen); enckeylen 127 crypto/essiv.c crypto_shash_update(desc, keys.enckey, keys.enckeylen) ?: enckeylen 2129 drivers/crypto/atmel-aes.c if (keys.enckeylen > sizeof(ctx->base.key)) enckeylen 2144 drivers/crypto/atmel-aes.c ctx->base.keylen = keys.enckeylen; enckeylen 2145 drivers/crypto/atmel-aes.c memcpy(ctx->base.key, keys.enckey, keys.enckeylen); enckeylen 332 drivers/crypto/bcm/cipher.c cipher_parms.key_len = ctx->enckeylen; enckeylen 1342 drivers/crypto/bcm/cipher.c cipher_parms.key_len = ctx->enckeylen; enckeylen 1863 drivers/crypto/bcm/cipher.c ctx->enckeylen = ARC4_MAX_KEY_SIZE + ARC4_STATE_SIZE; enckeylen 1912 drivers/crypto/bcm/cipher.c ctx->enckeylen = keylen; enckeylen 1936 drivers/crypto/bcm/cipher.c cipher_parms.key_len = ctx->enckeylen; enckeylen 1945 drivers/crypto/bcm/cipher.c ctx->enckeylen, enckeylen 2836 drivers/crypto/bcm/cipher.c if (keys.enckeylen > MAX_KEY_SIZE || enckeylen 2840 drivers/crypto/bcm/cipher.c ctx->enckeylen = keys.enckeylen; enckeylen 2843 drivers/crypto/bcm/cipher.c memcpy(ctx->enckey, keys.enckey, keys.enckeylen); enckeylen 2850 drivers/crypto/bcm/cipher.c if (verify_aead_des_key(cipher, keys.enckey, keys.enckeylen)) enckeylen 2856 drivers/crypto/bcm/cipher.c if (verify_aead_des3_key(cipher, keys.enckey, keys.enckeylen)) enckeylen 2862 drivers/crypto/bcm/cipher.c switch (ctx->enckeylen) { enckeylen 2884 drivers/crypto/bcm/cipher.c flow_log(" enckeylen:%u authkeylen:%u\n", ctx->enckeylen, enckeylen 2886 drivers/crypto/bcm/cipher.c flow_dump(" enc: ", ctx->enckey, ctx->enckeylen); enckeylen 2907 drivers/crypto/bcm/cipher.c ctx->enckeylen, enckeylen 2915 drivers/crypto/bcm/cipher.c ctx->enckeylen = 0; enckeylen 2938 drivers/crypto/bcm/cipher.c ctx->enckeylen = keylen; enckeylen 2940 drivers/crypto/bcm/cipher.c memcpy(ctx->enckey, key, ctx->enckeylen); enckeylen 2942 drivers/crypto/bcm/cipher.c switch (ctx->enckeylen) { enckeylen 2956 drivers/crypto/bcm/cipher.c flow_log(" enckeylen:%u authkeylen:%u\n", ctx->enckeylen, enckeylen 2958 drivers/crypto/bcm/cipher.c flow_dump(" enc: ", ctx->enckey, ctx->enckeylen); enckeylen 2980 drivers/crypto/bcm/cipher.c ctx->enckeylen, enckeylen 2985 drivers/crypto/bcm/cipher.c flow_log(" enckeylen:%u authkeylen:%u\n", ctx->enckeylen, enckeylen 2991 drivers/crypto/bcm/cipher.c ctx->enckeylen = 0; enckeylen 4276 drivers/crypto/bcm/cipher.c ctx->enckeylen = 0; enckeylen 178 drivers/crypto/bcm/cipher.h unsigned int enckeylen; enckeylen 575 drivers/crypto/caam/caamalg.c keys.authkeylen + keys.enckeylen, keys.enckeylen, enckeylen 589 drivers/crypto/caam/caamalg.c if (ctx->adata.keylen_pad + keys.enckeylen > CAAM_MAX_KEY_SIZE) enckeylen 594 drivers/crypto/caam/caamalg.c keys.enckeylen); enckeylen 597 drivers/crypto/caam/caamalg.c keys.enckeylen, ctx->dir); enckeylen 603 drivers/crypto/caam/caamalg.c keys.enckeylen); enckeylen 609 drivers/crypto/caam/caamalg.c memcpy(ctx->key + ctx->adata.keylen_pad, keys.enckey, keys.enckeylen); enckeylen 611 drivers/crypto/caam/caamalg.c keys.enckeylen, ctx->dir); enckeylen 615 drivers/crypto/caam/caamalg.c ctx->adata.keylen_pad + keys.enckeylen, 1); enckeylen 618 drivers/crypto/caam/caamalg.c ctx->cdata.keylen = keys.enckeylen; enckeylen 637 drivers/crypto/caam/caamalg.c err = verify_aead_des3_key(aead, keys.enckey, keys.enckeylen) ?: enckeylen 216 drivers/crypto/caam/caamalg_desc.c unsigned int enckeylen = cdata->keylen; enckeylen 231 drivers/crypto/caam/caamalg_desc.c enckeylen -= CTR_RFC3686_NONCE_SIZE; enckeylen 247 drivers/crypto/caam/caamalg_desc.c append_key_as_imm(desc, cdata->key_virt, enckeylen, enckeylen 248 drivers/crypto/caam/caamalg_desc.c enckeylen, CLASS_1 | KEY_DEST_CLASS_REG); enckeylen 250 drivers/crypto/caam/caamalg_desc.c append_key(desc, cdata->key_dma, enckeylen, CLASS_1 | enckeylen 200 drivers/crypto/caam/caamalg_qi.c keys.authkeylen + keys.enckeylen, keys.enckeylen, enckeylen 214 drivers/crypto/caam/caamalg_qi.c if (ctx->adata.keylen_pad + keys.enckeylen > CAAM_MAX_KEY_SIZE) enckeylen 219 drivers/crypto/caam/caamalg_qi.c keys.enckeylen); enckeylen 222 drivers/crypto/caam/caamalg_qi.c keys.enckeylen, ctx->dir); enckeylen 228 drivers/crypto/caam/caamalg_qi.c keys.enckeylen); enckeylen 233 drivers/crypto/caam/caamalg_qi.c memcpy(ctx->key + ctx->adata.keylen_pad, keys.enckey, keys.enckeylen); enckeylen 235 drivers/crypto/caam/caamalg_qi.c ctx->adata.keylen_pad + keys.enckeylen, enckeylen 240 drivers/crypto/caam/caamalg_qi.c ctx->adata.keylen_pad + keys.enckeylen, 1); enckeylen 243 drivers/crypto/caam/caamalg_qi.c ctx->cdata.keylen = keys.enckeylen; enckeylen 286 drivers/crypto/caam/caamalg_qi.c err = verify_aead_des3_key(aead, keys.enckey, keys.enckeylen) ?: enckeylen 291 drivers/crypto/caam/caamalg_qi2.c keys.authkeylen + keys.enckeylen, keys.enckeylen, enckeylen 300 drivers/crypto/caam/caamalg_qi2.c if (ctx->adata.keylen_pad + keys.enckeylen > CAAM_MAX_KEY_SIZE) enckeylen 304 drivers/crypto/caam/caamalg_qi2.c memcpy(ctx->key + ctx->adata.keylen_pad, keys.enckey, keys.enckeylen); enckeylen 306 drivers/crypto/caam/caamalg_qi2.c keys.enckeylen, ctx->dir); enckeylen 309 drivers/crypto/caam/caamalg_qi2.c ctx->adata.keylen_pad + keys.enckeylen, 1); enckeylen 311 drivers/crypto/caam/caamalg_qi2.c ctx->cdata.keylen = keys.enckeylen; enckeylen 332 drivers/crypto/caam/caamalg_qi2.c if (keys.enckeylen != DES3_EDE_KEY_SIZE) enckeylen 567 drivers/crypto/ccree/cc_aead.c ctx->enc_keylen = keys.enckeylen; enckeylen 658 drivers/crypto/ccree/cc_aead.c err = verify_aead_des3_key(aead, keys.enckey, keys.enckeylen) ?: enckeylen 3442 drivers/crypto/chelsio/chcr_algo.c if (keys.enckeylen < CTR_RFC3686_NONCE_SIZE) enckeylen 3444 drivers/crypto/chelsio/chcr_algo.c memcpy(aeadctx->nonce, keys.enckey + (keys.enckeylen enckeylen 3446 drivers/crypto/chelsio/chcr_algo.c keys.enckeylen -= CTR_RFC3686_NONCE_SIZE; enckeylen 3448 drivers/crypto/chelsio/chcr_algo.c if (keys.enckeylen == AES_KEYSIZE_128) { enckeylen 3450 drivers/crypto/chelsio/chcr_algo.c } else if (keys.enckeylen == AES_KEYSIZE_192) { enckeylen 3452 drivers/crypto/chelsio/chcr_algo.c } else if (keys.enckeylen == AES_KEYSIZE_256) { enckeylen 3463 drivers/crypto/chelsio/chcr_algo.c memcpy(aeadctx->key, keys.enckey, keys.enckeylen); enckeylen 3464 drivers/crypto/chelsio/chcr_algo.c aeadctx->enckey_len = keys.enckeylen; enckeylen 3520 drivers/crypto/chelsio/chcr_algo.c roundup(keys.enckeylen, 16) + enckeylen 3567 drivers/crypto/chelsio/chcr_algo.c if (keys.enckeylen < CTR_RFC3686_NONCE_SIZE) enckeylen 3569 drivers/crypto/chelsio/chcr_algo.c memcpy(aeadctx->nonce, keys.enckey + (keys.enckeylen enckeylen 3571 drivers/crypto/chelsio/chcr_algo.c keys.enckeylen -= CTR_RFC3686_NONCE_SIZE; enckeylen 3573 drivers/crypto/chelsio/chcr_algo.c if (keys.enckeylen == AES_KEYSIZE_128) { enckeylen 3575 drivers/crypto/chelsio/chcr_algo.c } else if (keys.enckeylen == AES_KEYSIZE_192) { enckeylen 3577 drivers/crypto/chelsio/chcr_algo.c } else if (keys.enckeylen == AES_KEYSIZE_256) { enckeylen 3580 drivers/crypto/chelsio/chcr_algo.c pr_err("chcr : Unsupported cipher key %d\n", keys.enckeylen); enckeylen 3583 drivers/crypto/chelsio/chcr_algo.c memcpy(aeadctx->key, keys.enckey, keys.enckeylen); enckeylen 3584 drivers/crypto/chelsio/chcr_algo.c aeadctx->enckey_len = keys.enckeylen; enckeylen 3590 drivers/crypto/chelsio/chcr_algo.c key_ctx_len = sizeof(struct _key_ctx) + roundup(keys.enckeylen, 16); enckeylen 319 drivers/crypto/inside-secure/safexcel_cipher.c if (keys.enckeylen < (AES_MIN_KEY_SIZE + enckeylen 323 drivers/crypto/inside-secure/safexcel_cipher.c ctx->nonce = *(u32 *)(keys.enckey + keys.enckeylen - enckeylen 326 drivers/crypto/inside-secure/safexcel_cipher.c keys.enckeylen -= CONTEXT_CONTROL_CRYPTO_MODE_CTR_LOAD; enckeylen 332 drivers/crypto/inside-secure/safexcel_cipher.c err = verify_aead_des3_key(ctfm, keys.enckey, keys.enckeylen); enckeylen 337 drivers/crypto/inside-secure/safexcel_cipher.c err = aes_expandkey(&aes, keys.enckey, keys.enckeylen); enckeylen 347 drivers/crypto/inside-secure/safexcel_cipher.c memcmp(ctx->key, keys.enckey, keys.enckeylen)) enckeylen 391 drivers/crypto/inside-secure/safexcel_cipher.c memcpy(ctx->key, keys.enckey, keys.enckeylen); enckeylen 392 drivers/crypto/inside-secure/safexcel_cipher.c ctx->key_len = keys.enckeylen; enckeylen 1155 drivers/crypto/ixp4xx_crypto.c if (keys.enckeylen > sizeof(ctx->enckey)) enckeylen 1159 drivers/crypto/ixp4xx_crypto.c memcpy(ctx->enckey, keys.enckey, keys.enckeylen); enckeylen 1161 drivers/crypto/ixp4xx_crypto.c ctx->enckey_len = keys.enckeylen; enckeylen 1186 drivers/crypto/ixp4xx_crypto.c err = verify_aead_des3_key(tfm, keys.enckey, keys.enckeylen); enckeylen 1191 drivers/crypto/ixp4xx_crypto.c memcpy(ctx->enckey, keys.enckey, keys.enckeylen); enckeylen 1193 drivers/crypto/ixp4xx_crypto.c ctx->enckey_len = keys.enckeylen; enckeylen 477 drivers/crypto/picoxcell_crypto.c if (keys.enckeylen > AES_MAX_KEY_SIZE) enckeylen 483 drivers/crypto/picoxcell_crypto.c memcpy(ctx->cipher_key, keys.enckey, keys.enckeylen); enckeylen 484 drivers/crypto/picoxcell_crypto.c ctx->cipher_key_len = keys.enckeylen; enckeylen 304 drivers/crypto/qat/qat_common/qat_algs.c sizeof(struct icp_qat_hw_auth_setup) + keys->enckeylen); enckeylen 314 drivers/crypto/qat/qat_common/qat_algs.c memcpy(cipher->aes.key, keys->enckey, keys->enckeylen); enckeylen 337 drivers/crypto/qat/qat_common/qat_algs.c cipher_cd_ctrl->cipher_key_sz = keys->enckeylen >> 3; enckeylen 400 drivers/crypto/qat/qat_common/qat_algs.c memcpy(cipher->aes.key, keys->enckey, keys->enckeylen); enckeylen 424 drivers/crypto/qat/qat_common/qat_algs.c cipher_cd_ctrl->cipher_key_sz = keys->enckeylen >> 3; enckeylen 560 drivers/crypto/qat/qat_common/qat_algs.c if (qat_alg_validate_key(keys.enckeylen, &alg, mode)) enckeylen 190 drivers/crypto/qce/common.c unsigned int enckeylen, unsigned int cryptlen) enckeylen 193 drivers/crypto/qce/common.c unsigned int xtsklen = enckeylen / (2 * sizeof(u32)); enckeylen 196 drivers/crypto/qce/common.c qce_cpu_to_be32p_array((__be32 *)xtskey, enckey + enckeylen / 2, enckeylen 197 drivers/crypto/qce/common.c enckeylen / 2); enckeylen 857 drivers/crypto/talitos.c unsigned int enckeylen; enckeylen 898 drivers/crypto/talitos.c if (keys.authkeylen + keys.enckeylen > TALITOS_MAX_KEY_SIZE) enckeylen 905 drivers/crypto/talitos.c memcpy(&ctx->key[keys.authkeylen], keys.enckey, keys.enckeylen); enckeylen 907 drivers/crypto/talitos.c ctx->keylen = keys.authkeylen + keys.enckeylen; enckeylen 908 drivers/crypto/talitos.c ctx->enckeylen = keys.enckeylen; enckeylen 935 drivers/crypto/talitos.c if (keys.authkeylen + keys.enckeylen > TALITOS_MAX_KEY_SIZE) enckeylen 938 drivers/crypto/talitos.c err = verify_aead_des3_key(authenc, keys.enckey, keys.enckeylen); enckeylen 946 drivers/crypto/talitos.c memcpy(&ctx->key[keys.authkeylen], keys.enckey, keys.enckeylen); enckeylen 948 drivers/crypto/talitos.c ctx->keylen = keys.authkeylen + keys.enckeylen; enckeylen 949 drivers/crypto/talitos.c ctx->enckeylen = keys.enckeylen; enckeylen 1245 drivers/crypto/talitos.c ctx->enckeylen, is_sec1); enckeylen 1843 drivers/md/dm-crypt.c unsigned enckeylen, unsigned authkeylen) enckeylen 1850 drivers/md/dm-crypt.c param->enckeylen = cpu_to_be32(enckeylen); enckeylen 1854 drivers/md/dm-crypt.c memcpy(p, key + enckeylen, authkeylen); enckeylen 1856 drivers/md/dm-crypt.c memcpy(p, key, enckeylen); enckeylen 18 include/crypto/authenc.h __be32 enckeylen; enckeylen 26 include/crypto/authenc.h unsigned int enckeylen; enckeylen 942 net/ipv4/esp4.c param->enckeylen = cpu_to_be32((x->ealg->alg_key_len + 7) / 8); enckeylen 837 net/ipv6/esp6.c param->enckeylen = cpu_to_be32((x->ealg->alg_key_len + 7) / 8);