in_key 69 arch/arm/crypto/aes-ce-glue.c static int ce_aes_expandkey(struct crypto_aes_ctx *ctx, const u8 *in_key, in_key 90 arch/arm/crypto/aes-ce-glue.c ctx->key_enc[i] = get_unaligned_le32(in_key + i * sizeof(u32)); in_key 137 arch/arm/crypto/aes-ce-glue.c static int ce_aes_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in_key 143 arch/arm/crypto/aes-ce-glue.c ret = ce_aes_expandkey(ctx, in_key, key_len); in_key 156 arch/arm/crypto/aes-ce-glue.c static int xts_set_key(struct crypto_skcipher *tfm, const u8 *in_key, in_key 162 arch/arm/crypto/aes-ce-glue.c ret = xts_verify_key(tfm, in_key, key_len); in_key 166 arch/arm/crypto/aes-ce-glue.c ret = ce_aes_expandkey(&ctx->key1, in_key, key_len / 2); in_key 168 arch/arm/crypto/aes-ce-glue.c ret = ce_aes_expandkey(&ctx->key2, &in_key[key_len / 2], in_key 66 arch/arm/crypto/aes-neonbs-glue.c static int aesbs_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in_key 73 arch/arm/crypto/aes-neonbs-glue.c err = aes_expandkey(&rk, in_key, key_len); in_key 125 arch/arm/crypto/aes-neonbs-glue.c static int aesbs_cbc_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in_key 132 arch/arm/crypto/aes-neonbs-glue.c err = aes_expandkey(&rk, in_key, key_len); in_key 142 arch/arm/crypto/aes-neonbs-glue.c return crypto_cipher_setkey(ctx->enc_tfm, in_key, key_len); in_key 201 arch/arm/crypto/aes-neonbs-glue.c static int aesbs_ctr_setkey_sync(struct crypto_skcipher *tfm, const u8 *in_key, in_key 207 arch/arm/crypto/aes-neonbs-glue.c err = aes_expandkey(&ctx->fallback, in_key, key_len); in_key 285 arch/arm/crypto/aes-neonbs-glue.c static int aesbs_xts_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in_key 291 arch/arm/crypto/aes-neonbs-glue.c err = xts_verify_key(tfm, in_key, key_len); in_key 296 arch/arm/crypto/aes-neonbs-glue.c err = crypto_cipher_setkey(ctx->cts_tfm, in_key, key_len); in_key 299 arch/arm/crypto/aes-neonbs-glue.c err = crypto_cipher_setkey(ctx->tweak_tfm, in_key + key_len, key_len); in_key 303 arch/arm/crypto/aes-neonbs-glue.c return aesbs_setkey(tfm, in_key, key_len); in_key 46 arch/arm64/crypto/aes-ce-ccm-glue.c static int ccm_setkey(struct crypto_aead *tfm, const u8 *in_key, in_key 52 arch/arm64/crypto/aes-ce-ccm-glue.c ret = ce_aes_expandkey(ctx, in_key, key_len); in_key 74 arch/arm64/crypto/aes-ce-glue.c int ce_aes_expandkey(struct crypto_aes_ctx *ctx, const u8 *in_key, in_key 95 arch/arm64/crypto/aes-ce-glue.c ctx->key_enc[i] = get_unaligned_le32(in_key + i * sizeof(u32)); in_key 142 arch/arm64/crypto/aes-ce-glue.c int ce_aes_setkey(struct crypto_tfm *tfm, const u8 *in_key, in_key 148 arch/arm64/crypto/aes-ce-glue.c ret = ce_aes_expandkey(ctx, in_key, key_len); in_key 3 arch/arm64/crypto/aes-ce-setkey.h int ce_aes_setkey(struct crypto_tfm *tfm, const u8 *in_key, in_key 5 arch/arm64/crypto/aes-ce-setkey.h int ce_aes_expandkey(struct crypto_aes_ctx *ctx, const u8 *in_key, in_key 131 arch/arm64/crypto/aes-glue.c static int skcipher_aes_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in_key 137 arch/arm64/crypto/aes-glue.c ret = aes_expandkey(ctx, in_key, key_len); in_key 145 arch/arm64/crypto/aes-glue.c const u8 *in_key, unsigned int key_len) in_key 150 arch/arm64/crypto/aes-glue.c ret = xts_verify_key(tfm, in_key, key_len); in_key 154 arch/arm64/crypto/aes-glue.c ret = aes_expandkey(&ctx->key1, in_key, key_len / 2); in_key 156 arch/arm64/crypto/aes-glue.c ret = aes_expandkey(&ctx->key2, &in_key[key_len / 2], in_key 166 arch/arm64/crypto/aes-glue.c const u8 *in_key, in_key 174 arch/arm64/crypto/aes-glue.c ret = aes_expandkey(&ctx->key1, in_key, key_len); in_key 179 arch/arm64/crypto/aes-glue.c crypto_shash_digest(desc, in_key, key_len, digest); in_key 790 arch/arm64/crypto/aes-glue.c static int cbcmac_setkey(struct crypto_shash *tfm, const u8 *in_key, in_key 796 arch/arm64/crypto/aes-glue.c err = aes_expandkey(&ctx->key, in_key, key_len); in_key 812 arch/arm64/crypto/aes-glue.c static int cmac_setkey(struct crypto_shash *tfm, const u8 *in_key, in_key 820 arch/arm64/crypto/aes-glue.c err = cbcmac_setkey(tfm, in_key, key_len); in_key 836 arch/arm64/crypto/aes-glue.c static int xcbc_setkey(struct crypto_shash *tfm, const u8 *in_key, in_key 850 arch/arm64/crypto/aes-glue.c err = cbcmac_setkey(tfm, in_key, key_len); in_key 77 arch/arm64/crypto/aes-neonbs-glue.c static int aesbs_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in_key 84 arch/arm64/crypto/aes-neonbs-glue.c err = aes_expandkey(&rk, in_key, key_len); in_key 136 arch/arm64/crypto/aes-neonbs-glue.c static int aesbs_cbc_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in_key 143 arch/arm64/crypto/aes-neonbs-glue.c err = aes_expandkey(&rk, in_key, key_len); in_key 209 arch/arm64/crypto/aes-neonbs-glue.c static int aesbs_ctr_setkey_sync(struct crypto_skcipher *tfm, const u8 *in_key, in_key 215 arch/arm64/crypto/aes-neonbs-glue.c err = aes_expandkey(&ctx->fallback, in_key, key_len); in_key 269 arch/arm64/crypto/aes-neonbs-glue.c static int aesbs_xts_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in_key 276 arch/arm64/crypto/aes-neonbs-glue.c err = xts_verify_key(tfm, in_key, key_len); in_key 281 arch/arm64/crypto/aes-neonbs-glue.c err = aes_expandkey(&ctx->cts, in_key, key_len); in_key 285 arch/arm64/crypto/aes-neonbs-glue.c err = aes_expandkey(&rk, in_key + key_len, key_len); in_key 291 arch/arm64/crypto/aes-neonbs-glue.c return aesbs_setkey(tfm, in_key, key_len); in_key 89 arch/powerpc/crypto/aes-spe-glue.c static int ppc_aes_setkey(struct crypto_tfm *tfm, const u8 *in_key, in_key 104 arch/powerpc/crypto/aes-spe-glue.c ppc_expand_key_128(ctx->key_enc, in_key); in_key 108 arch/powerpc/crypto/aes-spe-glue.c ppc_expand_key_192(ctx->key_enc, in_key); in_key 112 arch/powerpc/crypto/aes-spe-glue.c ppc_expand_key_256(ctx->key_enc, in_key); in_key 121 arch/powerpc/crypto/aes-spe-glue.c static int ppc_xts_setkey(struct crypto_tfm *tfm, const u8 *in_key, in_key 127 arch/powerpc/crypto/aes-spe-glue.c err = xts_check_key(tfm, in_key, key_len); in_key 143 arch/powerpc/crypto/aes-spe-glue.c ppc_expand_key_128(ctx->key_enc, in_key); in_key 144 arch/powerpc/crypto/aes-spe-glue.c ppc_expand_key_128(ctx->key_twk, in_key + AES_KEYSIZE_128); in_key 148 arch/powerpc/crypto/aes-spe-glue.c ppc_expand_key_192(ctx->key_enc, in_key); in_key 149 arch/powerpc/crypto/aes-spe-glue.c ppc_expand_key_192(ctx->key_twk, in_key + AES_KEYSIZE_192); in_key 153 arch/powerpc/crypto/aes-spe-glue.c ppc_expand_key_256(ctx->key_enc, in_key); in_key 154 arch/powerpc/crypto/aes-spe-glue.c ppc_expand_key_256(ctx->key_twk, in_key + AES_KEYSIZE_256); in_key 71 arch/s390/crypto/aes_s390.c static int setkey_fallback_cip(struct crypto_tfm *tfm, const u8 *in_key, in_key 81 arch/s390/crypto/aes_s390.c ret = crypto_cipher_setkey(sctx->fallback.cip, in_key, key_len); in_key 90 arch/s390/crypto/aes_s390.c static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in_key 104 arch/s390/crypto/aes_s390.c return setkey_fallback_cip(tfm, in_key, key_len); in_key 107 arch/s390/crypto/aes_s390.c memcpy(sctx->key, in_key, key_len); in_key 237 arch/s390/crypto/aes_s390.c static int ecb_aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in_key 251 arch/s390/crypto/aes_s390.c return setkey_fallback_blk(tfm, in_key, key_len); in_key 254 arch/s390/crypto/aes_s390.c memcpy(sctx->key, in_key, key_len); in_key 352 arch/s390/crypto/aes_s390.c static int cbc_aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in_key 366 arch/s390/crypto/aes_s390.c return setkey_fallback_blk(tfm, in_key, key_len); in_key 369 arch/s390/crypto/aes_s390.c memcpy(sctx->key, in_key, key_len); in_key 508 arch/s390/crypto/aes_s390.c static int xts_aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in_key 515 arch/s390/crypto/aes_s390.c err = xts_fallback_setkey(tfm, in_key, key_len); in_key 537 arch/s390/crypto/aes_s390.c memcpy(xts_ctx->key, in_key, key_len); in_key 538 arch/s390/crypto/aes_s390.c memcpy(xts_ctx->pcc_key, in_key + key_len, key_len); in_key 663 arch/s390/crypto/aes_s390.c static int ctr_aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in_key 677 arch/s390/crypto/aes_s390.c return setkey_fallback_blk(tfm, in_key, key_len); in_key 680 arch/s390/crypto/aes_s390.c memcpy(sctx->key, in_key, key_len); in_key 142 arch/s390/crypto/paes_s390.c static int ecb_paes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in_key 149 arch/s390/crypto/paes_s390.c rc = _copy_key_to_kb(&ctx->kb, in_key, key_len); in_key 261 arch/s390/crypto/paes_s390.c static int cbc_paes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in_key 268 arch/s390/crypto/paes_s390.c rc = _copy_key_to_kb(&ctx->kb, in_key, key_len); in_key 394 arch/s390/crypto/paes_s390.c static int xts_paes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in_key 409 arch/s390/crypto/paes_s390.c rc = _copy_key_to_kb(&ctx->kb[0], in_key, key_len); in_key 412 arch/s390/crypto/paes_s390.c rc = _copy_key_to_kb(&ctx->kb[1], in_key + key_len, key_len); in_key 558 arch/s390/crypto/paes_s390.c static int ctr_paes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in_key 565 arch/s390/crypto/paes_s390.c rc = _copy_key_to_kb(&ctx->kb, in_key, key_len); in_key 164 arch/sparc/crypto/aes_glue.c extern void aes_sparc64_key_expand(const u32 *in_key, u64 *output_key, in_key 167 arch/sparc/crypto/aes_glue.c static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in_key 194 arch/sparc/crypto/aes_glue.c aes_sparc64_key_expand((const u32 *)in_key, &ctx->key[0], key_len); in_key 33 arch/sparc/crypto/camellia_glue.c extern void camellia_sparc64_key_expand(const u32 *in_key, u64 *encrypt_key, in_key 40 arch/sparc/crypto/camellia_glue.c const u32 *in_key = (const u32 *) _in_key; in_key 50 arch/sparc/crypto/camellia_glue.c camellia_sparc64_key_expand(in_key, &ctx->encrypt_key[0], in_key 84 arch/x86/crypto/aesni-intel_glue.c asmlinkage int aesni_set_key(struct crypto_aes_ctx *ctx, const u8 *in_key, in_key 318 arch/x86/crypto/aesni-intel_glue.c const u8 *in_key, unsigned int key_len) in_key 331 arch/x86/crypto/aesni-intel_glue.c err = aes_expandkey(ctx, in_key, key_len); in_key 334 arch/x86/crypto/aesni-intel_glue.c err = aesni_set_key(ctx, in_key, key_len); in_key 341 arch/x86/crypto/aesni-intel_glue.c static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in_key 344 arch/x86/crypto/aesni-intel_glue.c return aes_set_key_common(tfm, crypto_tfm_ctx(tfm), in_key, key_len); in_key 1135 crypto/aes_generic.c int crypto_aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in_key 1142 crypto/aes_generic.c ret = aes_expandkey(ctx, in_key, key_len); in_key 12 crypto/aes_ti.c static int aesti_set_key(struct crypto_tfm *tfm, const u8 *in_key, in_key 17 crypto/aes_ti.c return aes_expandkey(ctx, in_key, key_len); in_key 462 crypto/anubis.c static int anubis_setkey(struct crypto_tfm *tfm, const u8 *in_key, in_key 466 crypto/anubis.c const __be32 *key = (const __be32 *)in_key; in_key 16 crypto/arc4.c static int crypto_arc4_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in_key 21 crypto/arc4.c return arc4_setkey(ctx, in_key, key_len); in_key 968 crypto/camellia_generic.c camellia_set_key(struct crypto_tfm *tfm, const u8 *in_key, in_key 972 crypto/camellia_generic.c const unsigned char *key = (const unsigned char *)in_key; in_key 106 crypto/cast6_generic.c int __cast6_setkey(struct cast6_ctx *c, const u8 *in_key, in_key 119 crypto/cast6_generic.c memcpy(p_key, in_key, key_len); in_key 756 crypto/khazad.c static int khazad_setkey(struct crypto_tfm *tfm, const u8 *in_key, in_key 760 crypto/khazad.c const __be32 *key = (const __be32 *)in_key; in_key 327 crypto/seed.c static int seed_set_key(struct crypto_tfm *tfm, const u8 *in_key, in_key 332 crypto/seed.c const __be32 *key = (const __be32 *)in_key; in_key 116 crypto/sm4_generic.c int crypto_sm4_expand_key(struct crypto_sm4_ctx *ctx, const u8 *in_key, in_key 120 crypto/sm4_generic.c const u32 *key = (u32 *)in_key; in_key 156 crypto/sm4_generic.c int crypto_sm4_set_key(struct crypto_tfm *tfm, const u8 *in_key, in_key 163 crypto/sm4_generic.c ret = crypto_sm4_expand_key(ctx, in_key, key_len); in_key 42 crypto/tea.c static int tea_setkey(struct crypto_tfm *tfm, const u8 *in_key, in_key 46 crypto/tea.c const __le32 *key = (const __le32 *)in_key; in_key 115 crypto/tea.c static int xtea_setkey(struct crypto_tfm *tfm, const u8 *in_key, in_key 119 crypto/tea.c const __le32 *key = (const __le32 *)in_key; in_key 22 drivers/crypto/nx/nx-aes-cbc.c const u8 *in_key, in_key 48 drivers/crypto/nx/nx-aes-cbc.c memcpy(csbcpb->cpb.aes_cbc.key, in_key, key_len); in_key 24 drivers/crypto/nx/nx-aes-ccm.c const u8 *in_key, in_key 44 drivers/crypto/nx/nx-aes-ccm.c memcpy(csbcpb->cpb.aes_ccm.key, in_key, key_len); in_key 47 drivers/crypto/nx/nx-aes-ccm.c memcpy(csbcpb_aead->cpb.aes_cca.key, in_key, key_len); in_key 54 drivers/crypto/nx/nx-aes-ccm.c const u8 *in_key, in_key 64 drivers/crypto/nx/nx-aes-ccm.c memcpy(nx_ctx->priv.ccm.nonce, in_key + key_len, 3); in_key 66 drivers/crypto/nx/nx-aes-ccm.c return ccm_aes_nx_set_key(tfm, in_key, key_len); in_key 23 drivers/crypto/nx/nx-aes-ctr.c const u8 *in_key, in_key 49 drivers/crypto/nx/nx-aes-ctr.c memcpy(csbcpb->cpb.aes_ctr.key, in_key, key_len); in_key 55 drivers/crypto/nx/nx-aes-ctr.c const u8 *in_key, in_key 64 drivers/crypto/nx/nx-aes-ctr.c in_key + key_len - CTR_RFC3686_NONCE_SIZE, in_key 69 drivers/crypto/nx/nx-aes-ctr.c return ctr_aes_nx_set_key(tfm, in_key, key_len); in_key 22 drivers/crypto/nx/nx-aes-ecb.c const u8 *in_key, in_key 48 drivers/crypto/nx/nx-aes-ecb.c memcpy(csbcpb->cpb.aes_ecb.key, in_key, key_len); in_key 24 drivers/crypto/nx/nx-aes-gcm.c const u8 *in_key, in_key 54 drivers/crypto/nx/nx-aes-gcm.c memcpy(csbcpb->cpb.aes_gcm.key, in_key, key_len); in_key 57 drivers/crypto/nx/nx-aes-gcm.c memcpy(csbcpb_aead->cpb.aes_gca.key, in_key, key_len); in_key 63 drivers/crypto/nx/nx-aes-gcm.c const u8 *in_key, in_key 75 drivers/crypto/nx/nx-aes-gcm.c rc = gcm_aes_nx_set_key(tfm, in_key, key_len); in_key 79 drivers/crypto/nx/nx-aes-gcm.c memcpy(nonce, in_key + key_len, 4); in_key 29 drivers/crypto/nx/nx-aes-xcbc.c const u8 *in_key, in_key 43 drivers/crypto/nx/nx-aes-xcbc.c memcpy(csbcpb->cpb.aes_xcbc.key, in_key, key_len); in_key 105 drivers/crypto/padlock-aes.c static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in_key 109 drivers/crypto/padlock-aes.c const __le32 *key = (const __le32 *)in_key; in_key 148 drivers/crypto/padlock-aes.c if (aes_expandkey(&gen_aes, in_key, key_len)) { in_key 51 include/crypto/aes.h int crypto_aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in_key 68 include/crypto/aes.h int aes_expandkey(struct crypto_aes_ctx *ctx, const u8 *in_key, in_key 20 include/crypto/arc4.h int arc4_setkey(struct arc4_ctx *ctx, const u8 *in_key, unsigned int key_len); in_key 23 include/crypto/sm4.h int crypto_sm4_set_key(struct crypto_tfm *tfm, const u8 *in_key, in_key 25 include/crypto/sm4.h int crypto_sm4_expand_key(struct crypto_sm4_ctx *ctx, const u8 *in_key, in_key 185 lib/crypto/aes.c int aes_expandkey(struct crypto_aes_ctx *ctx, const u8 *in_key, in_key 199 lib/crypto/aes.c ctx->key_enc[i] = get_unaligned_le32(in_key + i * sizeof(u32)); in_key 13 lib/crypto/arc4.c int arc4_setkey(struct arc4_ctx *ctx, const u8 *in_key, unsigned int key_len) in_key 26 lib/crypto/arc4.c j = (j + in_key[k] + a) & 0xff; in_key 908 net/mac802154/llsec.c const struct ieee802154_llsec_key_id *in_key) in_key 912 net/mac802154/llsec.c devkey = llsec_devkey_find(dev, in_key); in_key 921 net/mac802154/llsec.c next->devkey.key_id = *in_key; in_key 925 net/mac802154/llsec.c devkey = llsec_devkey_find(dev, in_key); in_key 939 net/mac802154/llsec.c const struct ieee802154_llsec_key_id *in_key, in_key 945 net/mac802154/llsec.c devkey = llsec_devkey_find(dev, in_key); in_key 951 net/mac802154/llsec.c int rc = llsec_update_devkey_record(dev, in_key);