cipher 54 arch/arm64/crypto/sm4-ce-glue.c .cra_u.cipher = { cipher 403 arch/powerpc/crypto/aes-spe-glue.c .cipher = { cipher 171 arch/s390/crypto/aes_s390.c .cipher = { cipher 72 arch/s390/crypto/des_s390.c .cipher = { cipher 259 arch/s390/crypto/des_s390.c .cipher = { cipher 395 arch/sparc/crypto/aes_glue.c .cipher = { cipher 237 arch/sparc/crypto/camellia_glue.c .cipher = { cipher 384 arch/sparc/crypto/des_glue.c .cipher = { cipher 441 arch/sparc/crypto/des_glue.c .cipher = { cipher 914 arch/x86/crypto/aesni-intel_glue.c .cipher = { cipher 351 arch/x86/crypto/blowfish_glue.c .cipher = { cipher 1400 arch/x86/crypto/camellia_glue.c .cipher = { cipher 395 arch/x86/crypto/des3_ede_glue.c .cipher = { cipher 74 arch/x86/crypto/twofish_glue.c .cipher = { cipher 298 crypto/ablkcipher.c struct ablkcipher_alg *cipher = crypto_ablkcipher_alg(tfm); cipher 311 crypto/ablkcipher.c ret = cipher->setkey(tfm, alignbuffer, keylen); cipher 320 crypto/ablkcipher.c struct ablkcipher_alg *cipher = crypto_ablkcipher_alg(tfm); cipher 323 crypto/ablkcipher.c if (keylen < cipher->min_keysize || keylen > cipher->max_keysize) { cipher 331 crypto/ablkcipher.c return cipher->setkey(tfm, key, keylen); cipher 1300 crypto/aes_generic.c .cipher = { cipher 1069 crypto/algapi.c atomic64_inc(&alg->stats.cipher.err_cnt); cipher 1071 crypto/algapi.c atomic64_inc(&alg->stats.cipher.encrypt_cnt); cipher 1072 crypto/algapi.c atomic64_add(nbytes, &alg->stats.cipher.encrypt_tlen); cipher 1082 crypto/algapi.c atomic64_inc(&alg->stats.cipher.err_cnt); cipher 1084 crypto/algapi.c atomic64_inc(&alg->stats.cipher.decrypt_cnt); cipher 1085 crypto/algapi.c atomic64_add(nbytes, &alg->stats.cipher.decrypt_tlen); cipher 1268 crypto/algapi.c atomic64_inc(&alg->stats.cipher.err_cnt); cipher 1270 crypto/algapi.c atomic64_inc(&alg->stats.cipher.encrypt_cnt); cipher 1271 crypto/algapi.c atomic64_add(cryptlen, &alg->stats.cipher.encrypt_tlen); cipher 1281 crypto/algapi.c atomic64_inc(&alg->stats.cipher.err_cnt); cipher 1283 crypto/algapi.c atomic64_inc(&alg->stats.cipher.decrypt_cnt); cipher 1284 crypto/algapi.c atomic64_add(cryptlen, &alg->stats.cipher.decrypt_tlen); cipher 682 crypto/anubis.c .cra_u = { .cipher = { cipher 371 crypto/blkcipher.c struct blkcipher_alg *cipher = &tfm->__crt_alg->cra_blkcipher; cipher 384 crypto/blkcipher.c ret = cipher->setkey(tfm, alignbuffer, keylen); cipher 392 crypto/blkcipher.c struct blkcipher_alg *cipher = &tfm->__crt_alg->cra_blkcipher; cipher 395 crypto/blkcipher.c if (keylen < cipher->min_keysize || keylen > cipher->max_keysize) { cipher 403 crypto/blkcipher.c return cipher->setkey(tfm, key, keylen); cipher 442 crypto/blkcipher.c struct blkcipher_alg *cipher = &alg->cra_blkcipher; cipher 446 crypto/blkcipher.c cipher->ivsize) { cipher 448 crypto/blkcipher.c len += cipher->ivsize; cipher 113 crypto/blowfish_generic.c .cra_u = { .cipher = { cipher 1063 crypto/camellia_generic.c .cipher = { cipher 519 crypto/cast5_generic.c .cipher = { cipher 262 crypto/cast6_generic.c .cipher = { cipher 897 crypto/ccm.c struct crypto_cipher *cipher; cipher 902 crypto/ccm.c cipher = crypto_spawn_cipher(spawn); cipher 903 crypto/ccm.c if (IS_ERR(cipher)) cipher 904 crypto/ccm.c return PTR_ERR(cipher); cipher 906 crypto/ccm.c ctx->child = cipher; cipher 78 crypto/cipher.c struct cipher_alg *cipher = &tfm->__crt_alg->cra_cipher; cipher 81 crypto/cipher.c cipher_crypt_unaligned(cipher->cia_encrypt, tfm, dst, src); cipher 85 crypto/cipher.c cipher->cia_encrypt(tfm, dst, src); cipher 92 crypto/cipher.c struct cipher_alg *cipher = &tfm->__crt_alg->cra_cipher; cipher 95 crypto/cipher.c cipher_crypt_unaligned(cipher->cia_decrypt, tfm, dst, src); cipher 99 crypto/cipher.c cipher->cia_decrypt(tfm, dst, src); cipher 105 crypto/cipher.c struct cipher_alg *cipher = &tfm->__crt_alg->cra_cipher; cipher 109 crypto/cipher.c cipher_encrypt_unaligned : cipher->cia_encrypt; cipher 111 crypto/cipher.c cipher_decrypt_unaligned : cipher->cia_decrypt; cipher 202 crypto/cmac.c struct crypto_cipher *cipher; cipher 207 crypto/cmac.c cipher = crypto_spawn_cipher(spawn); cipher 208 crypto/cmac.c if (IS_ERR(cipher)) cipher 209 crypto/cmac.c return PTR_ERR(cipher); cipher 211 crypto/cmac.c ctx->child = cipher; cipher 369 crypto/cryptd.c struct crypto_skcipher *cipher; cipher 371 crypto/cryptd.c cipher = crypto_spawn_skcipher(spawn); cipher 372 crypto/cryptd.c if (IS_ERR(cipher)) cipher 373 crypto/cryptd.c return PTR_ERR(cipher); cipher 375 crypto/cryptd.c ctx->child = (struct crypto_sync_skcipher *)cipher; cipher 833 crypto/cryptd.c struct crypto_aead *cipher; cipher 835 crypto/cryptd.c cipher = crypto_spawn_aead(spawn); cipher 836 crypto/cryptd.c if (IS_ERR(cipher)) cipher 837 crypto/cryptd.c return PTR_ERR(cipher); cipher 839 crypto/cryptd.c ctx->child = cipher; cipher 842 crypto/cryptd.c crypto_aead_reqsize(cipher))); cipher 131 crypto/crypto_null.c .cra_u = { .cipher = { cipher 56 crypto/crypto_user_stat.c rcipher.stat_encrypt_cnt = atomic64_read(&alg->stats.cipher.encrypt_cnt); cipher 57 crypto/crypto_user_stat.c rcipher.stat_encrypt_tlen = atomic64_read(&alg->stats.cipher.encrypt_tlen); cipher 58 crypto/crypto_user_stat.c rcipher.stat_decrypt_cnt = atomic64_read(&alg->stats.cipher.decrypt_cnt); cipher 59 crypto/crypto_user_stat.c rcipher.stat_decrypt_tlen = atomic64_read(&alg->stats.cipher.decrypt_tlen); cipher 60 crypto/crypto_user_stat.c rcipher.stat_err_cnt = atomic64_read(&alg->stats.cipher.err_cnt); cipher 101 crypto/ctr.c struct crypto_cipher *cipher = skcipher_cipher_simple(tfm); cipher 102 crypto/ctr.c const unsigned int bsize = crypto_cipher_blocksize(cipher); cipher 111 crypto/ctr.c nbytes = crypto_ctr_crypt_inplace(&walk, cipher); cipher 113 crypto/ctr.c nbytes = crypto_ctr_crypt_segment(&walk, cipher); cipher 119 crypto/ctr.c crypto_ctr_crypt_final(&walk, cipher); cipher 228 crypto/ctr.c struct crypto_skcipher *cipher; cipher 232 crypto/ctr.c cipher = crypto_spawn_skcipher(spawn); cipher 233 crypto/ctr.c if (IS_ERR(cipher)) cipher 234 crypto/ctr.c return PTR_ERR(cipher); cipher 236 crypto/ctr.c ctx->child = cipher; cipher 241 crypto/ctr.c crypto_skcipher_reqsize(cipher); cipher 292 crypto/cts.c struct crypto_skcipher *cipher; cipher 297 crypto/cts.c cipher = crypto_spawn_skcipher(spawn); cipher 298 crypto/cts.c if (IS_ERR(cipher)) cipher 299 crypto/cts.c return PTR_ERR(cipher); cipher 301 crypto/cts.c ctx->child = cipher; cipher 304 crypto/cts.c bsize = crypto_skcipher_blocksize(cipher); cipher 306 crypto/cts.c crypto_skcipher_reqsize(cipher), cipher 99 crypto/des_generic.c .cra_u = { .cipher = { cipher 113 crypto/des_generic.c .cra_u = { .cipher = { cipher 16 crypto/ecb.c struct crypto_cipher *cipher, cipher 19 crypto/ecb.c const unsigned int bsize = crypto_cipher_blocksize(cipher); cipher 31 crypto/ecb.c fn(crypto_cipher_tfm(cipher), dst, src); cipher 46 crypto/ecb.c struct crypto_cipher *cipher = skcipher_cipher_simple(tfm); cipher 48 crypto/ecb.c return crypto_ecb_crypt(req, cipher, cipher 49 crypto/ecb.c crypto_cipher_alg(cipher)->cia_encrypt); cipher 55 crypto/ecb.c struct crypto_cipher *cipher = skcipher_cipher_simple(tfm); cipher 57 crypto/ecb.c return crypto_ecb_crypt(req, cipher, cipher 58 crypto/ecb.c crypto_cipher_alg(cipher)->cia_decrypt); cipher 400 crypto/fcrypt.c .cra_u = { .cipher = { cipher 126 crypto/keywrap.c struct crypto_cipher *cipher = skcipher_cipher_simple(tfm); cipher 166 crypto/keywrap.c crypto_cipher_decrypt_one(cipher, (u8 *)&block, cipher 195 crypto/keywrap.c struct crypto_cipher *cipher = skcipher_cipher_simple(tfm); cipher 237 crypto/keywrap.c crypto_cipher_encrypt_one(cipher, (u8 *)&block, cipher 857 crypto/khazad.c .cra_u = { .cipher = { cipher 269 crypto/lrw.c struct crypto_skcipher *cipher; cipher 271 crypto/lrw.c cipher = crypto_spawn_skcipher(spawn); cipher 272 crypto/lrw.c if (IS_ERR(cipher)) cipher 273 crypto/lrw.c return PTR_ERR(cipher); cipher 275 crypto/lrw.c ctx->child = cipher; cipher 277 crypto/lrw.c crypto_skcipher_set_reqsize(tfm, crypto_skcipher_reqsize(cipher) + cipher 20 crypto/ofb.c struct crypto_cipher *cipher = skcipher_cipher_simple(tfm); cipher 21 crypto/ofb.c const unsigned int bsize = crypto_cipher_blocksize(cipher); cipher 34 crypto/ofb.c crypto_cipher_encrypt_one(cipher, iv, iv); cipher 44 crypto/ofb.c crypto_cipher_encrypt_one(cipher, walk.iv, walk.iv); cipher 66 crypto/pcbc.c struct crypto_cipher *cipher = skcipher_cipher_simple(tfm); cipher 76 crypto/pcbc.c cipher); cipher 79 crypto/pcbc.c cipher); cipher 133 crypto/pcbc.c struct crypto_cipher *cipher = skcipher_cipher_simple(tfm); cipher 143 crypto/pcbc.c cipher); cipher 146 crypto/pcbc.c cipher); cipher 174 crypto/pcrypt.c struct crypto_aead *cipher; cipher 183 crypto/pcrypt.c cipher = crypto_spawn_aead(&ictx->spawn); cipher 185 crypto/pcrypt.c if (IS_ERR(cipher)) cipher 186 crypto/pcrypt.c return PTR_ERR(cipher); cipher 188 crypto/pcrypt.c ctx->child = cipher; cipher 191 crypto/pcrypt.c crypto_aead_reqsize(cipher)); cipher 449 crypto/seed.c .cipher = { cipher 638 crypto/serpent_generic.c .cra_u = { .cipher = { cipher 652 crypto/serpent_generic.c .cra_u = { .cipher = { cipher 801 crypto/skcipher.c struct skcipher_alg *cipher = crypto_skcipher_alg(tfm); cipher 813 crypto/skcipher.c ret = cipher->setkey(tfm, alignbuffer, keylen); cipher 821 crypto/skcipher.c struct skcipher_alg *cipher = crypto_skcipher_alg(tfm); cipher 825 crypto/skcipher.c if (keylen < cipher->min_keysize || keylen > cipher->max_keysize) { cipher 833 crypto/skcipher.c err = cipher->setkey(tfm, key, keylen); cipher 1111 crypto/skcipher.c struct crypto_cipher *cipher = skcipher_cipher_simple(tfm); cipher 1114 crypto/skcipher.c crypto_cipher_clear_flags(cipher, CRYPTO_TFM_REQ_MASK); cipher 1115 crypto/skcipher.c crypto_cipher_set_flags(cipher, crypto_skcipher_get_flags(tfm) & cipher 1117 crypto/skcipher.c err = crypto_cipher_setkey(cipher, key, keylen); cipher 1118 crypto/skcipher.c crypto_skcipher_set_flags(tfm, crypto_cipher_get_flags(cipher) & cipher 1128 crypto/skcipher.c struct crypto_cipher *cipher; cipher 1130 crypto/skcipher.c cipher = crypto_spawn_cipher(spawn); cipher 1131 crypto/skcipher.c if (IS_ERR(cipher)) cipher 1132 crypto/skcipher.c return PTR_ERR(cipher); cipher 1134 crypto/skcipher.c ctx->cipher = cipher; cipher 1142 crypto/skcipher.c crypto_free_cipher(ctx->cipher); cipher 220 crypto/sm4_generic.c .cipher = { cipher 225 crypto/tea.c .cra_u = { .cipher = { cipher 239 crypto/tea.c .cra_u = { .cipher = { cipher 253 crypto/tea.c .cra_u = { .cipher = { cipher 133 crypto/testmgr.c struct cipher_test_suite cipher; cipher 2859 crypto/testmgr.c const struct cipher_test_suite *suite = &desc->suite.cipher; cipher 3250 crypto/testmgr.c const struct cipher_test_suite *suite = &desc->suite.cipher; cipher 3886 crypto/testmgr.c .cipher = __VECS(adiantum_xchacha12_aes_tv_template) cipher 3893 crypto/testmgr.c .cipher = __VECS(adiantum_xchacha20_aes_tv_template) cipher 4042 crypto/testmgr.c .cipher = __VECS(aes_cbc_tv_template) cipher 4048 crypto/testmgr.c .cipher = __VECS(anubis_cbc_tv_template) cipher 4054 crypto/testmgr.c .cipher = __VECS(bf_cbc_tv_template) cipher 4060 crypto/testmgr.c .cipher = __VECS(camellia_cbc_tv_template) cipher 4066 crypto/testmgr.c .cipher = __VECS(cast5_cbc_tv_template) cipher 4072 crypto/testmgr.c .cipher = __VECS(cast6_cbc_tv_template) cipher 4078 crypto/testmgr.c .cipher = __VECS(des_cbc_tv_template) cipher 4085 crypto/testmgr.c .cipher = __VECS(des3_ede_cbc_tv_template) cipher 4104 crypto/testmgr.c .cipher = __VECS(serpent_cbc_tv_template) cipher 4110 crypto/testmgr.c .cipher = __VECS(sm4_cbc_tv_template) cipher 4116 crypto/testmgr.c .cipher = __VECS(tf_cbc_tv_template) cipher 4138 crypto/testmgr.c .cipher = __VECS(aes_cfb_tv_template) cipher 4144 crypto/testmgr.c .cipher = __VECS(chacha20_tv_template) cipher 4189 crypto/testmgr.c .cipher = __VECS(aes_ctr_tv_template) cipher 4195 crypto/testmgr.c .cipher = __VECS(bf_ctr_tv_template) cipher 4201 crypto/testmgr.c .cipher = __VECS(camellia_ctr_tv_template) cipher 4207 crypto/testmgr.c .cipher = __VECS(cast5_ctr_tv_template) cipher 4213 crypto/testmgr.c .cipher = __VECS(cast6_ctr_tv_template) cipher 4219 crypto/testmgr.c .cipher = __VECS(des_ctr_tv_template) cipher 4226 crypto/testmgr.c .cipher = __VECS(des3_ede_ctr_tv_template) cipher 4246 crypto/testmgr.c .cipher = __VECS(serpent_ctr_tv_template) cipher 4252 crypto/testmgr.c .cipher = __VECS(sm4_ctr_tv_template) cipher 4258 crypto/testmgr.c .cipher = __VECS(tf_ctr_tv_template) cipher 4265 crypto/testmgr.c .cipher = __VECS(cts_mode_tv_template) cipher 4420 crypto/testmgr.c .cipher = __VECS(aes_tv_template) cipher 4426 crypto/testmgr.c .cipher = __VECS(anubis_tv_template) cipher 4433 crypto/testmgr.c .cipher = __VECS(arc4_tv_template) cipher 4439 crypto/testmgr.c .cipher = __VECS(bf_tv_template) cipher 4445 crypto/testmgr.c .cipher = __VECS(camellia_tv_template) cipher 4451 crypto/testmgr.c .cipher = __VECS(cast5_tv_template) cipher 4457 crypto/testmgr.c .cipher = __VECS(cast6_tv_template) cipher 4467 crypto/testmgr.c .cipher = __VECS(des_tv_template) cipher 4474 crypto/testmgr.c .cipher = __VECS(des3_ede_tv_template) cipher 4480 crypto/testmgr.c .cipher = { cipher 4489 crypto/testmgr.c .cipher = __VECS(khazad_tv_template) cipher 4502 crypto/testmgr.c .cipher = __VECS(seed_tv_template) cipher 4508 crypto/testmgr.c .cipher = __VECS(serpent_tv_template) cipher 4514 crypto/testmgr.c .cipher = __VECS(sm4_tv_template) cipher 4520 crypto/testmgr.c .cipher = __VECS(tea_tv_template) cipher 4526 crypto/testmgr.c .cipher = __VECS(tnepres_tv_template) cipher 4532 crypto/testmgr.c .cipher = __VECS(tf_tv_template) cipher 4538 crypto/testmgr.c .cipher = __VECS(xeta_tv_template) cipher 4544 crypto/testmgr.c .cipher = __VECS(xtea_tv_template) cipher 4571 crypto/testmgr.c .cipher = __VECS(essiv_aes_cbc_tv_template) cipher 4690 crypto/testmgr.c .cipher = __VECS(aes_kw_tv_template) cipher 4697 crypto/testmgr.c .cipher = __VECS(aes_lrw_tv_template) cipher 4704 crypto/testmgr.c .cipher = __VECS(camellia_lrw_tv_template) cipher 4711 crypto/testmgr.c .cipher = __VECS(cast6_lrw_tv_template) cipher 4718 crypto/testmgr.c .cipher = __VECS(serpent_lrw_tv_template) cipher 4725 crypto/testmgr.c .cipher = __VECS(tf_lrw_tv_template) cipher 4796 crypto/testmgr.c .cipher = __VECS(aes_ofb_tv_template) cipher 4809 crypto/testmgr.c .cipher = __VECS(fcrypt_pcbc_tv_template) cipher 4841 crypto/testmgr.c .cipher = __VECS(aes_ctr_rfc3686_tv_template) cipher 4913 crypto/testmgr.c .cipher = __VECS(salsa20_stream_tv_template) cipher 5048 crypto/testmgr.c .cipher = __VECS(xchacha12_tv_template) cipher 5054 crypto/testmgr.c .cipher = __VECS(xchacha20_tv_template) cipher 5062 crypto/testmgr.c .cipher = __VECS(aes_xts_tv_template) cipher 5069 crypto/testmgr.c .cipher = __VECS(camellia_xts_tv_template) cipher 5076 crypto/testmgr.c .cipher = __VECS(cast6_xts_tv_template) cipher 5090 crypto/testmgr.c .cipher = __VECS(serpent_xts_tv_template) cipher 5097 crypto/testmgr.c .cipher = __VECS(tf_xts_tv_template) cipher 177 crypto/twofish_generic.c .cra_u = { .cipher = { cipher 52 crypto/vmac.c struct crypto_cipher *cipher; cipher 443 crypto/vmac.c err = crypto_cipher_setkey(tctx->cipher, key, keylen); cipher 450 crypto/vmac.c crypto_cipher_encrypt_one(tctx->cipher, (u8 *)out, in); cipher 460 crypto/vmac.c crypto_cipher_encrypt_one(tctx->cipher, (u8 *)out, in); cipher 471 crypto/vmac.c crypto_cipher_encrypt_one(tctx->cipher, (u8 *)out, in); cipher 589 crypto/vmac.c crypto_cipher_encrypt_one(tctx->cipher, dctx->nonce.bytes, cipher 603 crypto/vmac.c struct crypto_cipher *cipher; cipher 605 crypto/vmac.c cipher = crypto_spawn_cipher(spawn); cipher 606 crypto/vmac.c if (IS_ERR(cipher)) cipher 607 crypto/vmac.c return PTR_ERR(cipher); cipher 609 crypto/vmac.c tctx->cipher = cipher; cipher 617 crypto/vmac.c crypto_free_cipher(tctx->cipher); cipher 168 crypto/xcbc.c struct crypto_cipher *cipher; cipher 173 crypto/xcbc.c cipher = crypto_spawn_cipher(spawn); cipher 174 crypto/xcbc.c if (IS_ERR(cipher)) cipher 175 crypto/xcbc.c return PTR_ERR(cipher); cipher 177 crypto/xcbc.c ctx->child = cipher; cipher 73 drivers/crypto/amcc/crypto4xx_alg.c struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(req); cipher 74 drivers/crypto/amcc/crypto4xx_alg.c struct crypto4xx_ctx *ctx = crypto_skcipher_ctx(cipher); cipher 121 drivers/crypto/amcc/crypto4xx_alg.c static int crypto4xx_setkey_aes(struct crypto_skcipher *cipher, cipher 127 drivers/crypto/amcc/crypto4xx_alg.c struct crypto4xx_ctx *ctx = crypto_skcipher_ctx(cipher); cipher 133 drivers/crypto/amcc/crypto4xx_alg.c crypto_skcipher_set_flags(cipher, cipher 180 drivers/crypto/amcc/crypto4xx_alg.c int crypto4xx_setkey_aes_cbc(struct crypto_skcipher *cipher, cipher 183 drivers/crypto/amcc/crypto4xx_alg.c return crypto4xx_setkey_aes(cipher, key, keylen, CRYPTO_MODE_CBC, cipher 187 drivers/crypto/amcc/crypto4xx_alg.c int crypto4xx_setkey_aes_cfb(struct crypto_skcipher *cipher, cipher 190 drivers/crypto/amcc/crypto4xx_alg.c return crypto4xx_setkey_aes(cipher, key, keylen, CRYPTO_MODE_CFB, cipher 194 drivers/crypto/amcc/crypto4xx_alg.c int crypto4xx_setkey_aes_ecb(struct crypto_skcipher *cipher, cipher 197 drivers/crypto/amcc/crypto4xx_alg.c return crypto4xx_setkey_aes(cipher, key, keylen, CRYPTO_MODE_ECB, cipher 201 drivers/crypto/amcc/crypto4xx_alg.c int crypto4xx_setkey_aes_ofb(struct crypto_skcipher *cipher, cipher 204 drivers/crypto/amcc/crypto4xx_alg.c return crypto4xx_setkey_aes(cipher, key, keylen, CRYPTO_MODE_OFB, cipher 208 drivers/crypto/amcc/crypto4xx_alg.c int crypto4xx_setkey_rfc3686(struct crypto_skcipher *cipher, cipher 211 drivers/crypto/amcc/crypto4xx_alg.c struct crypto4xx_ctx *ctx = crypto_skcipher_ctx(cipher); cipher 214 drivers/crypto/amcc/crypto4xx_alg.c rc = crypto4xx_setkey_aes(cipher, key, keylen - CTR_RFC3686_NONCE_SIZE, cipher 227 drivers/crypto/amcc/crypto4xx_alg.c struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(req); cipher 228 drivers/crypto/amcc/crypto4xx_alg.c struct crypto4xx_ctx *ctx = crypto_skcipher_ctx(cipher); cipher 242 drivers/crypto/amcc/crypto4xx_alg.c struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(req); cipher 243 drivers/crypto/amcc/crypto4xx_alg.c struct crypto4xx_ctx *ctx = crypto_skcipher_ctx(cipher); cipher 258 drivers/crypto/amcc/crypto4xx_alg.c struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(req); cipher 259 drivers/crypto/amcc/crypto4xx_alg.c struct crypto4xx_ctx *ctx = crypto_skcipher_ctx(cipher); cipher 260 drivers/crypto/amcc/crypto4xx_alg.c size_t iv_len = crypto_skcipher_ivsize(cipher); cipher 272 drivers/crypto/amcc/crypto4xx_alg.c SYNC_SKCIPHER_REQUEST_ON_STACK(subreq, ctx->sw_cipher.cipher); cipher 275 drivers/crypto/amcc/crypto4xx_alg.c skcipher_request_set_sync_tfm(subreq, ctx->sw_cipher.cipher); cipher 291 drivers/crypto/amcc/crypto4xx_alg.c struct crypto_skcipher *cipher, cipher 297 drivers/crypto/amcc/crypto4xx_alg.c crypto_sync_skcipher_clear_flags(ctx->sw_cipher.cipher, cipher 299 drivers/crypto/amcc/crypto4xx_alg.c crypto_sync_skcipher_set_flags(ctx->sw_cipher.cipher, cipher 300 drivers/crypto/amcc/crypto4xx_alg.c crypto_skcipher_get_flags(cipher) & CRYPTO_TFM_REQ_MASK); cipher 301 drivers/crypto/amcc/crypto4xx_alg.c rc = crypto_sync_skcipher_setkey(ctx->sw_cipher.cipher, key, keylen); cipher 302 drivers/crypto/amcc/crypto4xx_alg.c crypto_skcipher_clear_flags(cipher, CRYPTO_TFM_RES_MASK); cipher 303 drivers/crypto/amcc/crypto4xx_alg.c crypto_skcipher_set_flags(cipher, cipher 304 drivers/crypto/amcc/crypto4xx_alg.c crypto_sync_skcipher_get_flags(ctx->sw_cipher.cipher) & cipher 310 drivers/crypto/amcc/crypto4xx_alg.c int crypto4xx_setkey_aes_ctr(struct crypto_skcipher *cipher, cipher 313 drivers/crypto/amcc/crypto4xx_alg.c struct crypto4xx_ctx *ctx = crypto_skcipher_ctx(cipher); cipher 316 drivers/crypto/amcc/crypto4xx_alg.c rc = crypto4xx_sk_setup_fallback(ctx, cipher, key, keylen); cipher 320 drivers/crypto/amcc/crypto4xx_alg.c return crypto4xx_setkey_aes(cipher, key, keylen, cipher 378 drivers/crypto/amcc/crypto4xx_alg.c struct crypto_aead *cipher, cipher 386 drivers/crypto/amcc/crypto4xx_alg.c crypto_aead_get_flags(cipher) & CRYPTO_TFM_REQ_MASK); cipher 388 drivers/crypto/amcc/crypto4xx_alg.c crypto_aead_clear_flags(cipher, CRYPTO_TFM_RES_MASK); cipher 389 drivers/crypto/amcc/crypto4xx_alg.c crypto_aead_set_flags(cipher, cipher 400 drivers/crypto/amcc/crypto4xx_alg.c int crypto4xx_setkey_aes_ccm(struct crypto_aead *cipher, const u8 *key, cipher 403 drivers/crypto/amcc/crypto4xx_alg.c struct crypto_tfm *tfm = crypto_aead_tfm(cipher); cipher 408 drivers/crypto/amcc/crypto4xx_alg.c rc = crypto4xx_aead_setup_fallback(ctx, cipher, key, keylen); cipher 502 drivers/crypto/amcc/crypto4xx_alg.c int crypto4xx_setauthsize_aead(struct crypto_aead *cipher, cipher 505 drivers/crypto/amcc/crypto4xx_alg.c struct crypto_tfm *tfm = crypto_aead_tfm(cipher); cipher 546 drivers/crypto/amcc/crypto4xx_alg.c int crypto4xx_setkey_aes_gcm(struct crypto_aead *cipher, cipher 549 drivers/crypto/amcc/crypto4xx_alg.c struct crypto_tfm *tfm = crypto_aead_tfm(cipher); cipher 555 drivers/crypto/amcc/crypto4xx_alg.c crypto_aead_set_flags(cipher, CRYPTO_TFM_RES_BAD_KEY_LEN); cipher 559 drivers/crypto/amcc/crypto4xx_alg.c rc = crypto4xx_aead_setup_fallback(ctx, cipher, key, keylen); cipher 951 drivers/crypto/amcc/crypto4xx_core.c ctx->sw_cipher.cipher = cipher 954 drivers/crypto/amcc/crypto4xx_core.c if (IS_ERR(ctx->sw_cipher.cipher)) cipher 955 drivers/crypto/amcc/crypto4xx_core.c return PTR_ERR(ctx->sw_cipher.cipher); cipher 958 drivers/crypto/amcc/crypto4xx_core.c amcc_alg = container_of(alg, struct crypto4xx_alg, alg.u.cipher); cipher 973 drivers/crypto/amcc/crypto4xx_core.c if (ctx->sw_cipher.cipher) cipher 974 drivers/crypto/amcc/crypto4xx_core.c crypto_free_sync_skcipher(ctx->sw_cipher.cipher); cipher 1035 drivers/crypto/amcc/crypto4xx_core.c rc = crypto_register_skcipher(&alg->alg.u.cipher); cipher 1068 drivers/crypto/amcc/crypto4xx_core.c crypto_unregister_skcipher(&alg->alg.u.cipher); cipher 1193 drivers/crypto/amcc/crypto4xx_core.c { .type = CRYPTO_ALG_TYPE_SKCIPHER, .u.cipher = { cipher 1213 drivers/crypto/amcc/crypto4xx_core.c { .type = CRYPTO_ALG_TYPE_SKCIPHER, .u.cipher = { cipher 1233 drivers/crypto/amcc/crypto4xx_core.c { .type = CRYPTO_ALG_TYPE_SKCIPHER, .u.cipher = { cipher 1254 drivers/crypto/amcc/crypto4xx_core.c { .type = CRYPTO_ALG_TYPE_SKCIPHER, .u.cipher = { cipher 1274 drivers/crypto/amcc/crypto4xx_core.c { .type = CRYPTO_ALG_TYPE_SKCIPHER, .u.cipher = { cipher 1293 drivers/crypto/amcc/crypto4xx_core.c { .type = CRYPTO_ALG_TYPE_SKCIPHER, .u.cipher = { cipher 124 drivers/crypto/amcc/crypto4xx_core.h struct crypto_sync_skcipher *cipher; cipher 136 drivers/crypto/amcc/crypto4xx_core.h struct skcipher_alg cipher; cipher 162 drivers/crypto/amcc/crypto4xx_core.h int crypto4xx_setkey_aes_cbc(struct crypto_skcipher *cipher, cipher 164 drivers/crypto/amcc/crypto4xx_core.h int crypto4xx_setkey_aes_cfb(struct crypto_skcipher *cipher, cipher 166 drivers/crypto/amcc/crypto4xx_core.h int crypto4xx_setkey_aes_ctr(struct crypto_skcipher *cipher, cipher 168 drivers/crypto/amcc/crypto4xx_core.h int crypto4xx_setkey_aes_ecb(struct crypto_skcipher *cipher, cipher 170 drivers/crypto/amcc/crypto4xx_core.h int crypto4xx_setkey_aes_ofb(struct crypto_skcipher *cipher, cipher 172 drivers/crypto/amcc/crypto4xx_core.h int crypto4xx_setkey_rfc3686(struct crypto_skcipher *cipher, cipher 235 drivers/crypto/amcc/crypto4xx_core.h int crypto4xx_setkey_aes_ccm(struct crypto_aead *cipher, cipher 239 drivers/crypto/amcc/crypto4xx_core.h int crypto4xx_setkey_aes_gcm(struct crypto_aead *cipher, cipher 1087 drivers/crypto/axis/artpec6_crypto.c struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(req); cipher 1088 drivers/crypto/axis/artpec6_crypto.c struct artpec6_cryptotfm_context *ctx = crypto_skcipher_ctx(cipher); cipher 1133 drivers/crypto/axis/artpec6_crypto.c struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(req); cipher 1134 drivers/crypto/axis/artpec6_crypto.c struct artpec6_cryptotfm_context *ctx = crypto_skcipher_ctx(cipher); cipher 1178 drivers/crypto/axis/artpec6_crypto.c struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(req); cipher 1179 drivers/crypto/axis/artpec6_crypto.c struct artpec6_cryptotfm_context *ctx = crypto_skcipher_ctx(cipher); cipher 1180 drivers/crypto/axis/artpec6_crypto.c size_t iv_len = crypto_skcipher_ivsize(cipher); cipher 1597 drivers/crypto/axis/artpec6_crypto.c artpec6_crypto_cipher_set_key(struct crypto_skcipher *cipher, const u8 *key, cipher 1601 drivers/crypto/axis/artpec6_crypto.c crypto_skcipher_ctx(cipher); cipher 1609 drivers/crypto/axis/artpec6_crypto.c crypto_skcipher_set_flags(cipher, cipher 1620 drivers/crypto/axis/artpec6_crypto.c artpec6_crypto_xts_set_key(struct crypto_skcipher *cipher, const u8 *key, cipher 1624 drivers/crypto/axis/artpec6_crypto.c crypto_skcipher_ctx(cipher); cipher 1627 drivers/crypto/axis/artpec6_crypto.c ret = xts_check_key(&cipher->base, key, keylen); cipher 1637 drivers/crypto/axis/artpec6_crypto.c crypto_skcipher_set_flags(cipher, cipher 1669 drivers/crypto/axis/artpec6_crypto.c struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(areq); cipher 1670 drivers/crypto/axis/artpec6_crypto.c struct artpec6_cryptotfm_context *ctx = crypto_skcipher_ctx(cipher); cipher 1672 drivers/crypto/axis/artpec6_crypto.c size_t iv_len = crypto_skcipher_ivsize(cipher); cipher 1839 drivers/crypto/axis/artpec6_crypto.c struct crypto_aead *cipher = crypto_aead_reqtfm(areq); cipher 1911 drivers/crypto/axis/artpec6_crypto.c input_length -= crypto_aead_authsize(cipher); cipher 1920 drivers/crypto/axis/artpec6_crypto.c memcpy(req_ctx->hw_ctx.J0, areq->iv, crypto_aead_ivsize(cipher)); cipher 1976 drivers/crypto/axis/artpec6_crypto.c output_len -= crypto_aead_authsize(cipher); cipher 2016 drivers/crypto/axis/artpec6_crypto.c size_t authsize = crypto_aead_authsize(cipher); cipher 154 drivers/crypto/bcm/cipher.c if ((ctx->cipher.mode == CIPHER_MODE_XTS) && cipher 168 drivers/crypto/bcm/cipher.c if (ctx->cipher.alg == CIPHER_ALG_RC4) cipher 223 drivers/crypto/bcm/cipher.c if ((ctx->cipher.mode == CIPHER_MODE_XTS) && cipher 329 drivers/crypto/bcm/cipher.c cipher_parms.alg = ctx->cipher.alg; cipher 330 drivers/crypto/bcm/cipher.c cipher_parms.mode = ctx->cipher.mode; cipher 355 drivers/crypto/bcm/cipher.c if ((ctx->cipher.mode == CIPHER_MODE_CBC) && cipher 371 drivers/crypto/bcm/cipher.c if ((ctx->cipher.mode == CIPHER_MODE_CBC) && cipher 380 drivers/crypto/bcm/cipher.c } else if (ctx->cipher.mode == CIPHER_MODE_CTR) { cipher 394 drivers/crypto/bcm/cipher.c if (ctx->cipher.alg == CIPHER_ALG_RC4) { cipher 467 drivers/crypto/bcm/cipher.c if ((ctx->cipher.mode == CIPHER_MODE_XTS) && cipher 481 drivers/crypto/bcm/cipher.c if ((ctx->cipher.mode == CIPHER_MODE_XTS) && cipher 519 drivers/crypto/bcm/cipher.c if ((ctx->cipher.mode == CIPHER_MODE_XTS) && cipher 530 drivers/crypto/bcm/cipher.c if (ctx->cipher.alg == CIPHER_ALG_RC4) cipher 538 drivers/crypto/bcm/cipher.c &iproc_priv.cipher_cnt[ctx->cipher.alg][ctx->cipher.mode]); cipher 870 drivers/crypto/bcm/cipher.c data_pad_len = spu->spu_gcm_ccm_pad_len(ctx->cipher.mode, chunksize); cipher 1096 drivers/crypto/bcm/cipher.c data_padlen = spu->spu_gcm_ccm_pad_len(ctx->cipher.mode, cipher 1100 drivers/crypto/bcm/cipher.c data_padlen = spu->spu_gcm_ccm_pad_len(ctx->cipher.mode, cipher 1102 drivers/crypto/bcm/cipher.c assoc_buf_len = spu->spu_assoc_resp_len(ctx->cipher.mode, cipher 1107 drivers/crypto/bcm/cipher.c if (ctx->cipher.mode == CIPHER_MODE_CCM) cipher 1338 drivers/crypto/bcm/cipher.c cipher_parms.alg = ctx->cipher.alg; cipher 1339 drivers/crypto/bcm/cipher.c cipher_parms.mode = ctx->cipher.mode; cipher 1391 drivers/crypto/bcm/cipher.c if (spu->spu_assoc_resp_len(ctx->cipher.mode, cipher 1397 drivers/crypto/bcm/cipher.c aead_parms.iv_len = spu->spu_aead_ivlen(ctx->cipher.mode, cipher 1404 drivers/crypto/bcm/cipher.c aead_parms.aad_pad_len = spu->spu_gcm_ccm_pad_len(ctx->cipher.mode, cipher 1408 drivers/crypto/bcm/cipher.c aead_parms.data_pad_len = spu->spu_gcm_ccm_pad_len(ctx->cipher.mode, cipher 1411 drivers/crypto/bcm/cipher.c if (ctx->cipher.mode == CIPHER_MODE_CCM) { cipher 1417 drivers/crypto/bcm/cipher.c ctx->cipher.mode, cipher 1426 drivers/crypto/bcm/cipher.c spu->spu_gcm_ccm_pad_len(ctx->cipher.mode, cipher 1443 drivers/crypto/bcm/cipher.c ctx->cipher.mode, cipher 1448 drivers/crypto/bcm/cipher.c ctx->cipher.mode, cipher 1454 drivers/crypto/bcm/cipher.c if (spu_req_incl_icv(ctx->cipher.mode, rctx->is_encrypt)) { cipher 1520 drivers/crypto/bcm/cipher.c if (((ctx->cipher.mode == CIPHER_MODE_GCM) || cipher 1521 drivers/crypto/bcm/cipher.c (ctx->cipher.mode == CIPHER_MODE_CCM)) && !rctx->is_encrypt) { cipher 1607 drivers/crypto/bcm/cipher.c if (ctx->cipher.alg == CIPHER_ALG_AES) { cipher 1608 drivers/crypto/bcm/cipher.c if (ctx->cipher.mode == CIPHER_MODE_CCM) cipher 1610 drivers/crypto/bcm/cipher.c else if (ctx->cipher.mode == CIPHER_MODE_GCM) cipher 1778 drivers/crypto/bcm/cipher.c if (ctx->cipher.mode == CIPHER_MODE_CBC || cipher 1779 drivers/crypto/bcm/cipher.c ctx->cipher.mode == CIPHER_MODE_CTR || cipher 1780 drivers/crypto/bcm/cipher.c ctx->cipher.mode == CIPHER_MODE_OFB || cipher 1781 drivers/crypto/bcm/cipher.c ctx->cipher.mode == CIPHER_MODE_XTS || cipher 1782 drivers/crypto/bcm/cipher.c ctx->cipher.mode == CIPHER_MODE_GCM || cipher 1783 drivers/crypto/bcm/cipher.c ctx->cipher.mode == CIPHER_MODE_CCM) { cipher 1801 drivers/crypto/bcm/cipher.c static int des_setkey(struct crypto_ablkcipher *cipher, const u8 *key, cipher 1804 drivers/crypto/bcm/cipher.c struct iproc_ctx_s *ctx = crypto_ablkcipher_ctx(cipher); cipher 1807 drivers/crypto/bcm/cipher.c err = verify_ablkcipher_des_key(cipher, key); cipher 1815 drivers/crypto/bcm/cipher.c static int threedes_setkey(struct crypto_ablkcipher *cipher, const u8 *key, cipher 1818 drivers/crypto/bcm/cipher.c struct iproc_ctx_s *ctx = crypto_ablkcipher_ctx(cipher); cipher 1821 drivers/crypto/bcm/cipher.c err = verify_ablkcipher_des3_key(cipher, key); cipher 1829 drivers/crypto/bcm/cipher.c static int aes_setkey(struct crypto_ablkcipher *cipher, const u8 *key, cipher 1832 drivers/crypto/bcm/cipher.c struct iproc_ctx_s *ctx = crypto_ablkcipher_ctx(cipher); cipher 1834 drivers/crypto/bcm/cipher.c if (ctx->cipher.mode == CIPHER_MODE_XTS) cipher 1849 drivers/crypto/bcm/cipher.c crypto_ablkcipher_set_flags(cipher, CRYPTO_TFM_RES_BAD_KEY_LEN); cipher 1857 drivers/crypto/bcm/cipher.c static int rc4_setkey(struct crypto_ablkcipher *cipher, const u8 *key, cipher 1860 drivers/crypto/bcm/cipher.c struct iproc_ctx_s *ctx = crypto_ablkcipher_ctx(cipher); cipher 1877 drivers/crypto/bcm/cipher.c static int ablkcipher_setkey(struct crypto_ablkcipher *cipher, const u8 *key, cipher 1881 drivers/crypto/bcm/cipher.c struct iproc_ctx_s *ctx = crypto_ablkcipher_ctx(cipher); cipher 1889 drivers/crypto/bcm/cipher.c switch (ctx->cipher.alg) { cipher 1891 drivers/crypto/bcm/cipher.c err = des_setkey(cipher, key, keylen); cipher 1894 drivers/crypto/bcm/cipher.c err = threedes_setkey(cipher, key, keylen); cipher 1897 drivers/crypto/bcm/cipher.c err = aes_setkey(cipher, key, keylen); cipher 1900 drivers/crypto/bcm/cipher.c err = rc4_setkey(cipher, key, keylen); cipher 1910 drivers/crypto/bcm/cipher.c if (ctx->cipher.alg != CIPHER_ALG_RC4) { cipher 1915 drivers/crypto/bcm/cipher.c if ((ctx->cipher.alg == CIPHER_ALG_AES) && cipher 1916 drivers/crypto/bcm/cipher.c (ctx->cipher.mode == CIPHER_MODE_XTS)) { cipher 1929 drivers/crypto/bcm/cipher.c cipher_parms.iv_len = crypto_ablkcipher_ivsize(cipher); cipher 1932 drivers/crypto/bcm/cipher.c cipher_parms.alg = ctx->cipher.alg; cipher 1933 drivers/crypto/bcm/cipher.c cipher_parms.mode = ctx->cipher.mode; cipher 2579 drivers/crypto/bcm/cipher.c if (((ctx->cipher.mode == CIPHER_MODE_GCM) || cipher 2580 drivers/crypto/bcm/cipher.c (ctx->cipher.mode == CIPHER_MODE_CCM)) && cipher 2590 drivers/crypto/bcm/cipher.c if ((ctx->cipher.mode == CIPHER_MODE_CCM) && cipher 2603 drivers/crypto/bcm/cipher.c if ((ctx->cipher.mode == CIPHER_MODE_CCM) && cipher 2615 drivers/crypto/bcm/cipher.c if (ctx->cipher.mode == CIPHER_MODE_GCM && cipher 2616 drivers/crypto/bcm/cipher.c ctx->cipher.alg == CIPHER_ALG_AES && cipher 2761 drivers/crypto/bcm/cipher.c if (ctx->cipher.mode == CIPHER_MODE_CBC || cipher 2762 drivers/crypto/bcm/cipher.c ctx->cipher.mode == CIPHER_MODE_CTR || cipher 2763 drivers/crypto/bcm/cipher.c ctx->cipher.mode == CIPHER_MODE_OFB || cipher 2764 drivers/crypto/bcm/cipher.c ctx->cipher.mode == CIPHER_MODE_XTS || cipher 2765 drivers/crypto/bcm/cipher.c ctx->cipher.mode == CIPHER_MODE_GCM) { cipher 2769 drivers/crypto/bcm/cipher.c } else if (ctx->cipher.mode == CIPHER_MODE_CCM) { cipher 2819 drivers/crypto/bcm/cipher.c static int aead_authenc_setkey(struct crypto_aead *cipher, cipher 2823 drivers/crypto/bcm/cipher.c struct iproc_ctx_s *ctx = crypto_aead_ctx(cipher); cipher 2824 drivers/crypto/bcm/cipher.c struct crypto_tfm *tfm = crypto_aead_tfm(cipher); cipher 2828 drivers/crypto/bcm/cipher.c flow_log("%s() aead:%p key:%p keylen:%u\n", __func__, cipher, key, cipher 2850 drivers/crypto/bcm/cipher.c if (verify_aead_des_key(cipher, keys.enckey, keys.enckeylen)) cipher 2856 drivers/crypto/bcm/cipher.c if (verify_aead_des3_key(cipher, keys.enckey, keys.enckeylen)) cipher 2919 drivers/crypto/bcm/cipher.c crypto_aead_set_flags(cipher, CRYPTO_TFM_RES_BAD_KEY_LEN); cipher 2923 drivers/crypto/bcm/cipher.c static int aead_gcm_ccm_setkey(struct crypto_aead *cipher, cipher 2927 drivers/crypto/bcm/cipher.c struct iproc_ctx_s *ctx = crypto_aead_ctx(cipher); cipher 2928 drivers/crypto/bcm/cipher.c struct crypto_tfm *tfm = crypto_aead_tfm(cipher); cipher 2995 drivers/crypto/bcm/cipher.c crypto_aead_set_flags(cipher, CRYPTO_TFM_RES_BAD_KEY_LEN); cipher 3010 drivers/crypto/bcm/cipher.c static int aead_gcm_esp_setkey(struct crypto_aead *cipher, cipher 3013 drivers/crypto/bcm/cipher.c struct iproc_ctx_s *ctx = crypto_aead_ctx(cipher); cipher 3024 drivers/crypto/bcm/cipher.c return aead_gcm_ccm_setkey(cipher, key, keylen); cipher 3038 drivers/crypto/bcm/cipher.c static int rfc4543_gcm_esp_setkey(struct crypto_aead *cipher, cipher 3041 drivers/crypto/bcm/cipher.c struct iproc_ctx_s *ctx = crypto_aead_ctx(cipher); cipher 3053 drivers/crypto/bcm/cipher.c return aead_gcm_ccm_setkey(cipher, key, keylen); cipher 3067 drivers/crypto/bcm/cipher.c static int aead_ccm_esp_setkey(struct crypto_aead *cipher, cipher 3070 drivers/crypto/bcm/cipher.c struct iproc_ctx_s *ctx = crypto_aead_ctx(cipher); cipher 3080 drivers/crypto/bcm/cipher.c return aead_gcm_ccm_setkey(cipher, key, keylen); cipher 3083 drivers/crypto/bcm/cipher.c static int aead_setauthsize(struct crypto_aead *cipher, unsigned int authsize) cipher 3085 drivers/crypto/bcm/cipher.c struct iproc_ctx_s *ctx = crypto_aead_ctx(cipher); cipher 4268 drivers/crypto/bcm/cipher.c ctx->cipher = cipher_alg->cipher_info; cipher 4271 drivers/crypto/bcm/cipher.c ctx->max_payload = spu->spu_ctx_max_payload(ctx->cipher.alg, cipher 4272 drivers/crypto/bcm/cipher.c ctx->cipher.mode, cipher 193 drivers/crypto/bcm/cipher.h struct cipher_op cipher; cipher 230 drivers/crypto/cavium/cpt/cptvf_algs.c static int cvm_xts_setkey(struct crypto_ablkcipher *cipher, const u8 *key, cipher 233 drivers/crypto/cavium/cpt/cptvf_algs.c struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); cipher 287 drivers/crypto/cavium/cpt/cptvf_algs.c static int cvm_setkey(struct crypto_ablkcipher *cipher, const u8 *key, cipher 290 drivers/crypto/cavium/cpt/cptvf_algs.c struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); cipher 298 drivers/crypto/cavium/cpt/cptvf_algs.c crypto_ablkcipher_set_flags(cipher, cipher 304 drivers/crypto/cavium/cpt/cptvf_algs.c static int cvm_cbc_aes_setkey(struct crypto_ablkcipher *cipher, const u8 *key, cipher 307 drivers/crypto/cavium/cpt/cptvf_algs.c return cvm_setkey(cipher, key, keylen, AES_CBC); cipher 310 drivers/crypto/cavium/cpt/cptvf_algs.c static int cvm_ecb_aes_setkey(struct crypto_ablkcipher *cipher, const u8 *key, cipher 313 drivers/crypto/cavium/cpt/cptvf_algs.c return cvm_setkey(cipher, key, keylen, AES_ECB); cipher 316 drivers/crypto/cavium/cpt/cptvf_algs.c static int cvm_cfb_aes_setkey(struct crypto_ablkcipher *cipher, const u8 *key, cipher 319 drivers/crypto/cavium/cpt/cptvf_algs.c return cvm_setkey(cipher, key, keylen, AES_CFB); cipher 322 drivers/crypto/cavium/cpt/cptvf_algs.c static int cvm_cbc_des3_setkey(struct crypto_ablkcipher *cipher, const u8 *key, cipher 325 drivers/crypto/cavium/cpt/cptvf_algs.c return verify_ablkcipher_des3_key(cipher, key) ?: cipher 326 drivers/crypto/cavium/cpt/cptvf_algs.c cvm_setkey(cipher, key, keylen, DES3_CBC); cipher 329 drivers/crypto/cavium/cpt/cptvf_algs.c static int cvm_ecb_des3_setkey(struct crypto_ablkcipher *cipher, const u8 *key, cipher 332 drivers/crypto/cavium/cpt/cptvf_algs.c return verify_ablkcipher_des3_key(cipher, key) ?: cipher 333 drivers/crypto/cavium/cpt/cptvf_algs.c cvm_setkey(cipher, key, keylen, DES3_ECB); cipher 40 drivers/crypto/cavium/nitrox/nitrox_skcipher.c const struct nitrox_cipher *cipher = flexi_cipher_table; cipher 42 drivers/crypto/cavium/nitrox/nitrox_skcipher.c while (cipher->name) { cipher 43 drivers/crypto/cavium/nitrox/nitrox_skcipher.c if (!strcmp(cipher->name, name)) cipher 45 drivers/crypto/cavium/nitrox/nitrox_skcipher.c cipher++; cipher 47 drivers/crypto/cavium/nitrox/nitrox_skcipher.c return cipher->value; cipher 92 drivers/crypto/cavium/nitrox/nitrox_skcipher.c static inline int nitrox_skcipher_setkey(struct crypto_skcipher *cipher, cipher 96 drivers/crypto/cavium/nitrox/nitrox_skcipher.c struct crypto_tfm *tfm = crypto_skcipher_tfm(cipher); cipher 124 drivers/crypto/cavium/nitrox/nitrox_skcipher.c static int nitrox_aes_setkey(struct crypto_skcipher *cipher, const u8 *key, cipher 131 drivers/crypto/cavium/nitrox/nitrox_skcipher.c crypto_skcipher_set_flags(cipher, CRYPTO_TFM_RES_BAD_KEY_LEN); cipher 134 drivers/crypto/cavium/nitrox/nitrox_skcipher.c return nitrox_skcipher_setkey(cipher, aes_keylen, key, keylen); cipher 206 drivers/crypto/cavium/nitrox/nitrox_skcipher.c struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(skreq); cipher 207 drivers/crypto/cavium/nitrox/nitrox_skcipher.c struct nitrox_crypto_ctx *nctx = crypto_skcipher_ctx(cipher); cipher 209 drivers/crypto/cavium/nitrox/nitrox_skcipher.c int ivsize = crypto_skcipher_ivsize(cipher); cipher 257 drivers/crypto/cavium/nitrox/nitrox_skcipher.c static int nitrox_3des_setkey(struct crypto_skcipher *cipher, cipher 260 drivers/crypto/cavium/nitrox/nitrox_skcipher.c return verify_skcipher_des3_key(cipher, key) ?: cipher 261 drivers/crypto/cavium/nitrox/nitrox_skcipher.c nitrox_skcipher_setkey(cipher, 0, key, keylen); cipher 274 drivers/crypto/cavium/nitrox/nitrox_skcipher.c static int nitrox_aes_xts_setkey(struct crypto_skcipher *cipher, cipher 277 drivers/crypto/cavium/nitrox/nitrox_skcipher.c struct crypto_tfm *tfm = crypto_skcipher_tfm(cipher); cipher 290 drivers/crypto/cavium/nitrox/nitrox_skcipher.c crypto_skcipher_set_flags(cipher, CRYPTO_TFM_RES_BAD_KEY_LEN); cipher 298 drivers/crypto/cavium/nitrox/nitrox_skcipher.c return nitrox_skcipher_setkey(cipher, aes_keylen, key, keylen); cipher 301 drivers/crypto/cavium/nitrox/nitrox_skcipher.c static int nitrox_aes_ctr_rfc3686_setkey(struct crypto_skcipher *cipher, cipher 304 drivers/crypto/cavium/nitrox/nitrox_skcipher.c struct crypto_tfm *tfm = crypto_skcipher_tfm(cipher); cipher 321 drivers/crypto/cavium/nitrox/nitrox_skcipher.c crypto_skcipher_set_flags(cipher, CRYPTO_TFM_RES_BAD_KEY_LEN); cipher 324 drivers/crypto/cavium/nitrox/nitrox_skcipher.c return nitrox_skcipher_setkey(cipher, aes_keylen, key, keylen); cipher 785 drivers/crypto/ccree/cc_aead.c struct scatterlist *cipher = cipher 795 drivers/crypto/ccree/cc_aead.c (sg_dma_address(cipher) + offset), cipher 694 drivers/crypto/chelsio/chcr_algo.c static int chcr_cipher_fallback(struct crypto_sync_skcipher *cipher, cipher 704 drivers/crypto/chelsio/chcr_algo.c SYNC_SKCIPHER_REQUEST_ON_STACK(subreq, cipher); cipher 706 drivers/crypto/chelsio/chcr_algo.c skcipher_request_set_sync_tfm(subreq, cipher); cipher 869 drivers/crypto/chelsio/chcr_algo.c static int chcr_cipher_fallback_setkey(struct crypto_ablkcipher *cipher, cipher 873 drivers/crypto/chelsio/chcr_algo.c struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); cipher 874 drivers/crypto/chelsio/chcr_algo.c struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(cipher)); cipher 880 drivers/crypto/chelsio/chcr_algo.c cipher->base.crt_flags & CRYPTO_TFM_REQ_MASK); cipher 889 drivers/crypto/chelsio/chcr_algo.c static int chcr_aes_cbc_setkey(struct crypto_ablkcipher *cipher, cipher 893 drivers/crypto/chelsio/chcr_algo.c struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(cipher)); cipher 898 drivers/crypto/chelsio/chcr_algo.c err = chcr_cipher_fallback_setkey(cipher, key, keylen); cipher 915 drivers/crypto/chelsio/chcr_algo.c crypto_ablkcipher_set_flags(cipher, CRYPTO_TFM_RES_BAD_KEY_LEN); cipher 921 drivers/crypto/chelsio/chcr_algo.c static int chcr_aes_ctr_setkey(struct crypto_ablkcipher *cipher, cipher 925 drivers/crypto/chelsio/chcr_algo.c struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(cipher)); cipher 930 drivers/crypto/chelsio/chcr_algo.c err = chcr_cipher_fallback_setkey(cipher, key, keylen); cipher 946 drivers/crypto/chelsio/chcr_algo.c crypto_ablkcipher_set_flags(cipher, CRYPTO_TFM_RES_BAD_KEY_LEN); cipher 952 drivers/crypto/chelsio/chcr_algo.c static int chcr_aes_rfc3686_setkey(struct crypto_ablkcipher *cipher, cipher 956 drivers/crypto/chelsio/chcr_algo.c struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(cipher)); cipher 967 drivers/crypto/chelsio/chcr_algo.c err = chcr_cipher_fallback_setkey(cipher, key, keylen); cipher 984 drivers/crypto/chelsio/chcr_algo.c crypto_ablkcipher_set_flags(cipher, CRYPTO_TFM_RES_BAD_KEY_LEN); cipher 2151 drivers/crypto/chelsio/chcr_algo.c static int chcr_aes_xts_setkey(struct crypto_ablkcipher *cipher, const u8 *key, cipher 2154 drivers/crypto/chelsio/chcr_algo.c struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(cipher)); cipher 2158 drivers/crypto/chelsio/chcr_algo.c err = chcr_cipher_fallback_setkey(cipher, key, key_len); cipher 2175 drivers/crypto/chelsio/chcr_algo.c crypto_ablkcipher_set_flags(cipher, CRYPTO_TFM_RES_BAD_KEY_LEN); cipher 243 drivers/crypto/geode-aes.c .cipher = { cipher 1939 drivers/crypto/hifn_795x.c static int hifn_setkey(struct crypto_ablkcipher *cipher, const u8 *key, cipher 1942 drivers/crypto/hifn_795x.c struct hifn_context *ctx = crypto_ablkcipher_ctx(cipher); cipher 1946 drivers/crypto/hifn_795x.c err = verify_ablkcipher_des_key(cipher, key); cipher 1958 drivers/crypto/hifn_795x.c static int hifn_des3_setkey(struct crypto_ablkcipher *cipher, const u8 *key, cipher 1961 drivers/crypto/hifn_795x.c struct hifn_context *ctx = crypto_ablkcipher_ctx(cipher); cipher 1965 drivers/crypto/hifn_795x.c err = verify_ablkcipher_des3_key(cipher, key); cipher 247 drivers/crypto/marvell/cipher.c static int mv_cesa_aes_setkey(struct crypto_skcipher *cipher, const u8 *key, cipher 250 drivers/crypto/marvell/cipher.c struct crypto_tfm *tfm = crypto_skcipher_tfm(cipher); cipher 259 drivers/crypto/marvell/cipher.c crypto_skcipher_set_flags(cipher, CRYPTO_TFM_RES_BAD_KEY_LEN); cipher 272 drivers/crypto/marvell/cipher.c static int mv_cesa_des_setkey(struct crypto_skcipher *cipher, const u8 *key, cipher 275 drivers/crypto/marvell/cipher.c struct mv_cesa_des_ctx *ctx = crypto_skcipher_ctx(cipher); cipher 278 drivers/crypto/marvell/cipher.c err = verify_skcipher_des_key(cipher, key); cipher 287 drivers/crypto/marvell/cipher.c static int mv_cesa_des3_ede_setkey(struct crypto_skcipher *cipher, cipher 290 drivers/crypto/marvell/cipher.c struct mv_cesa_des_ctx *ctx = crypto_skcipher_ctx(cipher); cipher 293 drivers/crypto/marvell/cipher.c err = verify_skcipher_des3_key(cipher, key); cipher 728 drivers/crypto/n2_core.c static int n2_aes_setkey(struct crypto_ablkcipher *cipher, const u8 *key, cipher 731 drivers/crypto/n2_core.c struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); cipher 748 drivers/crypto/n2_core.c crypto_ablkcipher_set_flags(cipher, CRYPTO_TFM_RES_BAD_KEY_LEN); cipher 757 drivers/crypto/n2_core.c static int n2_des_setkey(struct crypto_ablkcipher *cipher, const u8 *key, cipher 760 drivers/crypto/n2_core.c struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); cipher 765 drivers/crypto/n2_core.c err = verify_ablkcipher_des_key(cipher, key); cipher 776 drivers/crypto/n2_core.c static int n2_3des_setkey(struct crypto_ablkcipher *cipher, const u8 *key, cipher 779 drivers/crypto/n2_core.c struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); cipher 784 drivers/crypto/n2_core.c err = verify_ablkcipher_des3_key(cipher, key); cipher 795 drivers/crypto/n2_core.c static int n2_arc4_setkey(struct crypto_ablkcipher *cipher, const u8 *key, cipher 798 drivers/crypto/n2_core.c struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); cipher 1347 drivers/crypto/n2_core.c struct n2_cipher_alg *cipher, *cipher_tmp; cipher 1351 drivers/crypto/n2_core.c list_for_each_entry_safe(cipher, cipher_tmp, &cipher_algs, entry) { cipher 1352 drivers/crypto/n2_core.c crypto_unregister_alg(&cipher->alg); cipher 1353 drivers/crypto/n2_core.c list_del(&cipher->entry); cipher 1354 drivers/crypto/n2_core.c kfree(cipher); cipher 649 drivers/crypto/omap-des.c static int omap_des_setkey(struct crypto_ablkcipher *cipher, const u8 *key, cipher 652 drivers/crypto/omap-des.c struct omap_des_ctx *ctx = crypto_ablkcipher_ctx(cipher); cipher 657 drivers/crypto/omap-des.c err = verify_ablkcipher_des_key(cipher, key); cipher 667 drivers/crypto/omap-des.c static int omap_des3_setkey(struct crypto_ablkcipher *cipher, const u8 *key, cipher 670 drivers/crypto/omap-des.c struct omap_des_ctx *ctx = crypto_ablkcipher_ctx(cipher); cipher 675 drivers/crypto/omap-des.c err = verify_ablkcipher_des3_key(cipher, key); cipher 331 drivers/crypto/padlock-aes.c .cipher = { cipher 736 drivers/crypto/picoxcell_crypto.c static int spacc_des_setkey(struct crypto_ablkcipher *cipher, const u8 *key, cipher 739 drivers/crypto/picoxcell_crypto.c struct spacc_ablk_ctx *ctx = crypto_ablkcipher_ctx(cipher); cipher 742 drivers/crypto/picoxcell_crypto.c err = verify_ablkcipher_des_key(cipher, key); cipher 756 drivers/crypto/picoxcell_crypto.c static int spacc_des3_setkey(struct crypto_ablkcipher *cipher, const u8 *key, cipher 759 drivers/crypto/picoxcell_crypto.c struct spacc_ablk_ctx *ctx = crypto_ablkcipher_ctx(cipher); cipher 762 drivers/crypto/picoxcell_crypto.c err = verify_ablkcipher_des3_key(cipher, key); cipher 776 drivers/crypto/picoxcell_crypto.c static int spacc_aes_setkey(struct crypto_ablkcipher *cipher, const u8 *key, cipher 779 drivers/crypto/picoxcell_crypto.c struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); cipher 784 drivers/crypto/picoxcell_crypto.c crypto_ablkcipher_set_flags(cipher, CRYPTO_TFM_RES_BAD_KEY_LEN); cipher 804 drivers/crypto/picoxcell_crypto.c cipher->base.crt_flags & cipher 825 drivers/crypto/picoxcell_crypto.c static int spacc_kasumi_f8_setkey(struct crypto_ablkcipher *cipher, cipher 828 drivers/crypto/picoxcell_crypto.c struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); cipher 833 drivers/crypto/picoxcell_crypto.c crypto_ablkcipher_set_flags(cipher, CRYPTO_TFM_RES_BAD_KEY_LEN); cipher 1047 drivers/crypto/picoxcell_crypto.c struct crypto_ablkcipher *cipher = crypto_ablkcipher_reqtfm(req); cipher 1048 drivers/crypto/picoxcell_crypto.c struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); cipher 1056 drivers/crypto/picoxcell_crypto.c struct crypto_ablkcipher *cipher = crypto_ablkcipher_reqtfm(req); cipher 1057 drivers/crypto/picoxcell_crypto.c struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); cipher 96 drivers/crypto/qat/qat_common/qat_algs.c struct icp_qat_hw_cipher_algo_blk cipher; cipher 101 drivers/crypto/qat/qat_common/qat_algs.c struct icp_qat_hw_cipher_algo_blk cipher; cipher 301 drivers/crypto/qat/qat_common/qat_algs.c struct icp_qat_hw_cipher_algo_blk *cipher = &enc_ctx->cipher; cipher 313 drivers/crypto/qat/qat_common/qat_algs.c cipher->aes.cipher_config.val = QAT_AES_HW_CONFIG_ENC(alg, mode); cipher 314 drivers/crypto/qat/qat_common/qat_algs.c memcpy(cipher->aes.key, keys->enckey, keys->enckeylen); cipher 343 drivers/crypto/qat/qat_common/qat_algs.c hash_cd_ctrl->hash_cfg_offset = ((char *)hash - (char *)cipher) >> 3; cipher 383 drivers/crypto/qat/qat_common/qat_algs.c struct icp_qat_hw_cipher_algo_blk *cipher = cipher 399 drivers/crypto/qat/qat_common/qat_algs.c cipher->aes.cipher_config.val = QAT_AES_HW_CONFIG_DEC(alg, mode); cipher 400 drivers/crypto/qat/qat_common/qat_algs.c memcpy(cipher->aes.key, keys->enckey, keys->enckeylen); cipher 30 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c static int rk_aes_setkey(struct crypto_ablkcipher *cipher, cipher 33 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); cipher 38 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c crypto_ablkcipher_set_flags(cipher, CRYPTO_TFM_RES_BAD_KEY_LEN); cipher 46 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c static int rk_des_setkey(struct crypto_ablkcipher *cipher, cipher 49 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct rk_cipher_ctx *ctx = crypto_ablkcipher_ctx(cipher); cipher 52 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c err = verify_ablkcipher_des_key(cipher, key); cipher 61 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c static int rk_tdes_setkey(struct crypto_ablkcipher *cipher, cipher 64 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct rk_cipher_ctx *ctx = crypto_ablkcipher_ctx(cipher); cipher 67 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c err = verify_ablkcipher_des3_key(cipher, key); cipher 201 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct crypto_ablkcipher *cipher = crypto_ablkcipher_reqtfm(req); cipher 202 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); cipher 203 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c struct rk_cipher_ctx *ctx = crypto_ablkcipher_ctx(cipher); cipher 207 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c ivsize = crypto_ablkcipher_ivsize(cipher); cipher 2073 drivers/crypto/s5p-sss.c static int s5p_aes_setkey(struct crypto_ablkcipher *cipher, cipher 2076 drivers/crypto/s5p-sss.c struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); cipher 1493 drivers/crypto/talitos.c static int ablkcipher_setkey(struct crypto_ablkcipher *cipher, cipher 1496 drivers/crypto/talitos.c struct talitos_ctx *ctx = crypto_ablkcipher_ctx(cipher); cipher 1510 drivers/crypto/talitos.c static int ablkcipher_des_setkey(struct crypto_ablkcipher *cipher, cipher 1513 drivers/crypto/talitos.c return verify_ablkcipher_des_key(cipher, key) ?: cipher 1514 drivers/crypto/talitos.c ablkcipher_setkey(cipher, key, keylen); cipher 1517 drivers/crypto/talitos.c static int ablkcipher_des3_setkey(struct crypto_ablkcipher *cipher, cipher 1520 drivers/crypto/talitos.c return verify_ablkcipher_des3_key(cipher, key) ?: cipher 1521 drivers/crypto/talitos.c ablkcipher_setkey(cipher, key, keylen); cipher 1524 drivers/crypto/talitos.c static int ablkcipher_aes_setkey(struct crypto_ablkcipher *cipher, cipher 1529 drivers/crypto/talitos.c return ablkcipher_setkey(cipher, key, keylen); cipher 1531 drivers/crypto/talitos.c crypto_ablkcipher_set_flags(cipher, CRYPTO_TFM_RES_BAD_KEY_LEN); cipher 1555 drivers/crypto/talitos.c struct crypto_ablkcipher *cipher = crypto_ablkcipher_reqtfm(areq); cipher 1556 drivers/crypto/talitos.c struct talitos_ctx *ctx = crypto_ablkcipher_ctx(cipher); cipher 1557 drivers/crypto/talitos.c unsigned int ivsize = crypto_ablkcipher_ivsize(cipher); cipher 1576 drivers/crypto/talitos.c struct crypto_ablkcipher *cipher = crypto_ablkcipher_reqtfm(areq); cipher 1577 drivers/crypto/talitos.c struct talitos_ctx *ctx = crypto_ablkcipher_ctx(cipher); cipher 1581 drivers/crypto/talitos.c unsigned int ivsize = crypto_ablkcipher_ivsize(cipher); cipher 1644 drivers/crypto/talitos.c struct crypto_ablkcipher *cipher = crypto_ablkcipher_reqtfm(areq); cipher 1645 drivers/crypto/talitos.c struct talitos_ctx *ctx = crypto_ablkcipher_ctx(cipher); cipher 1646 drivers/crypto/talitos.c unsigned int ivsize = crypto_ablkcipher_ivsize(cipher); cipher 1655 drivers/crypto/talitos.c struct crypto_ablkcipher *cipher = crypto_ablkcipher_reqtfm(areq); cipher 1656 drivers/crypto/talitos.c struct talitos_ctx *ctx = crypto_ablkcipher_ctx(cipher); cipher 1659 drivers/crypto/talitos.c crypto_tfm_alg_blocksize(crypto_ablkcipher_tfm(cipher)); cipher 1680 drivers/crypto/talitos.c struct crypto_ablkcipher *cipher = crypto_ablkcipher_reqtfm(areq); cipher 1681 drivers/crypto/talitos.c struct talitos_ctx *ctx = crypto_ablkcipher_ctx(cipher); cipher 1684 drivers/crypto/talitos.c crypto_tfm_alg_blocksize(crypto_ablkcipher_tfm(cipher)); cipher 833 drivers/crypto/ux500/cryp/cryp_core.c struct crypto_ablkcipher *cipher = crypto_ablkcipher_reqtfm(areq); cipher 834 drivers/crypto/ux500/cryp/cryp_core.c struct cryp_ctx *ctx = crypto_ablkcipher_ctx(cipher); cipher 891 drivers/crypto/ux500/cryp/cryp_core.c struct crypto_ablkcipher *cipher = crypto_ablkcipher_reqtfm(areq); cipher 892 drivers/crypto/ux500/cryp/cryp_core.c struct cryp_ctx *ctx = crypto_ablkcipher_ctx(cipher); cipher 951 drivers/crypto/ux500/cryp/cryp_core.c static int aes_ablkcipher_setkey(struct crypto_ablkcipher *cipher, cipher 954 drivers/crypto/ux500/cryp/cryp_core.c struct cryp_ctx *ctx = crypto_ablkcipher_ctx(cipher); cipher 955 drivers/crypto/ux500/cryp/cryp_core.c u32 *flags = &cipher->base.crt_flags; cipher 986 drivers/crypto/ux500/cryp/cryp_core.c static int des_ablkcipher_setkey(struct crypto_ablkcipher *cipher, cipher 989 drivers/crypto/ux500/cryp/cryp_core.c struct cryp_ctx *ctx = crypto_ablkcipher_ctx(cipher); cipher 994 drivers/crypto/ux500/cryp/cryp_core.c err = verify_ablkcipher_des_key(cipher, key); cipher 1005 drivers/crypto/ux500/cryp/cryp_core.c static int des3_ablkcipher_setkey(struct crypto_ablkcipher *cipher, cipher 1008 drivers/crypto/ux500/cryp/cryp_core.c struct cryp_ctx *ctx = crypto_ablkcipher_ctx(cipher); cipher 1013 drivers/crypto/ux500/cryp/cryp_core.c err = verify_ablkcipher_des3_key(cipher, key); cipher 1026 drivers/crypto/ux500/cryp/cryp_core.c struct crypto_ablkcipher *cipher = crypto_ablkcipher_reqtfm(areq); cipher 1027 drivers/crypto/ux500/cryp/cryp_core.c struct cryp_ctx *ctx = crypto_ablkcipher_ctx(cipher); cipher 1044 drivers/crypto/ux500/cryp/cryp_core.c struct crypto_ablkcipher *cipher = crypto_ablkcipher_reqtfm(areq); cipher 1045 drivers/crypto/ux500/cryp/cryp_core.c struct cryp_ctx *ctx = crypto_ablkcipher_ctx(cipher); cipher 147 drivers/crypto/virtio/virtio_crypto_algs.c vcrypto->ctrl.u.sym_create_session.u.cipher.para.algo = cipher 149 drivers/crypto/virtio/virtio_crypto_algs.c vcrypto->ctrl.u.sym_create_session.u.cipher.para.keylen = cipher 151 drivers/crypto/virtio/virtio_crypto_algs.c vcrypto->ctrl.u.sym_create_session.u.cipher.para.op = cipher 402 drivers/crypto/virtio/virtio_crypto_algs.c req_data->u.sym_req.u.cipher.para.iv_len = cpu_to_le32(ivsize); cipher 403 drivers/crypto/virtio/virtio_crypto_algs.c req_data->u.sym_req.u.cipher.para.src_data_len = cipher 424 drivers/crypto/virtio/virtio_crypto_algs.c req_data->u.sym_req.u.cipher.para.dst_data_len = cipher 160 drivers/gpu/drm/nouveau/include/nvkm/core/device.h struct nvkm_engine *cipher; cipher 233 drivers/gpu/drm/nouveau/include/nvkm/core/device.h int (*cipher )(struct nvkm_device *, int idx, struct nvkm_engine **); cipher 80 drivers/gpu/drm/nouveau/nvkm/engine/cipher/g84.c g84_cipher_intr(struct nvkm_engine *cipher) cipher 82 drivers/gpu/drm/nouveau/nvkm/engine/cipher/g84.c struct nvkm_subdev *subdev = &cipher->subdev; cipher 109 drivers/gpu/drm/nouveau/nvkm/engine/cipher/g84.c g84_cipher_init(struct nvkm_engine *cipher) cipher 111 drivers/gpu/drm/nouveau/nvkm/engine/cipher/g84.c struct nvkm_device *device = cipher->subdev.device; cipher 938 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .cipher = g84_cipher_new, cipher 970 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .cipher = g84_cipher_new, cipher 1002 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .cipher = g84_cipher_new, cipher 1034 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .cipher = g84_cipher_new, cipher 1066 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .cipher = g84_cipher_new, cipher 1130 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .cipher = g84_cipher_new, cipher 2694 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c _(CIPHER , device->cipher , device->cipher); cipher 3182 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c _(NVKM_ENGINE_CIPHER , cipher); cipher 2344 drivers/md/dm-crypt.c char *tmp, *cipher, *chainmode, *keycount; cipher 2360 drivers/md/dm-crypt.c cipher = strsep(&keycount, ":"); cipher 2400 drivers/md/dm-crypt.c "essiv(%s(%s),%s)", chainmode, cipher, *ivopts); cipher 2403 drivers/md/dm-crypt.c "%s(%s)", chainmode, cipher); cipher 240 drivers/net/wireless/ath/ath10k/mac.c switch (key->cipher) { cipher 268 drivers/net/wireless/ath/ath10k/mac.c ath10k_warn(ar, "cipher %d is not supported\n", key->cipher); cipher 6086 drivers/net/wireless/ath/ath10k/mac.c if (key->cipher == WLAN_CIPHER_SUITE_WEP40) cipher 6089 drivers/net/wireless/ath/ath10k/mac.c if (key->cipher == WLAN_CIPHER_SUITE_WEP104) cipher 6113 drivers/net/wireless/ath/ath10k/mac.c bool is_wep = key->cipher == WLAN_CIPHER_SUITE_WEP40 || cipher 6114 drivers/net/wireless/ath/ath10k/mac.c key->cipher == WLAN_CIPHER_SUITE_WEP104; cipher 6121 drivers/net/wireless/ath/ath10k/mac.c if (key->cipher == WLAN_CIPHER_SUITE_AES_CMAC || cipher 6122 drivers/net/wireless/ath/ath10k/mac.c key->cipher == WLAN_CIPHER_SUITE_BIP_GMAC_128 || cipher 6123 drivers/net/wireless/ath/ath10k/mac.c key->cipher == WLAN_CIPHER_SUITE_BIP_GMAC_256 || cipher 6124 drivers/net/wireless/ath/ath10k/mac.c key->cipher == WLAN_CIPHER_SUITE_BIP_CMAC_256) cipher 487 drivers/net/wireless/ath/ath5k/mac80211-ops.c (key->cipher == WLAN_CIPHER_SUITE_TKIP || cipher 488 drivers/net/wireless/ath/ath5k/mac80211-ops.c key->cipher == WLAN_CIPHER_SUITE_CCMP) && cipher 494 drivers/net/wireless/ath/ath5k/mac80211-ops.c switch (key->cipher) { cipher 516 drivers/net/wireless/ath/ath5k/mac80211-ops.c if (key->cipher == WLAN_CIPHER_SUITE_TKIP) cipher 518 drivers/net/wireless/ath/ath5k/mac80211-ops.c if (key->cipher == WLAN_CIPHER_SUITE_CCMP) cipher 222 drivers/net/wireless/ath/ath6kl/cfg80211.c static int ath6kl_set_cipher(struct ath6kl_vif *vif, u32 cipher, bool ucast) cipher 229 drivers/net/wireless/ath/ath6kl/cfg80211.c __func__, cipher, ucast); cipher 231 drivers/net/wireless/ath/ath6kl/cfg80211.c switch (cipher) { cipher 258 drivers/net/wireless/ath/ath6kl/cfg80211.c ath6kl_err("cipher 0x%x not supported\n", cipher); cipher 579 drivers/net/wireless/ath/ath6kl/cfg80211.c key->cipher = vif->prwise_crypto; cipher 1141 drivers/net/wireless/ath/ath6kl/cfg80211.c if (params->cipher == CCKM_KRK_CIPHER_SUITE) { cipher 1164 drivers/net/wireless/ath/ath6kl/cfg80211.c if (params->cipher == WLAN_CIPHER_SUITE_SMS4 && cipher 1177 drivers/net/wireless/ath/ath6kl/cfg80211.c key->cipher = params->cipher; cipher 1179 drivers/net/wireless/ath/ath6kl/cfg80211.c switch (key->cipher) { cipher 1305 drivers/net/wireless/ath/ath6kl/cfg80211.c params.cipher = key->cipher; cipher 386 drivers/net/wireless/ath/ath6kl/core.h u32 cipher; cipher 882 drivers/net/wireless/ath/ath6kl/wmi.c le16_to_cpu(ev->u.ap_sta.cipher), cipher 888 drivers/net/wireless/ath/ath6kl/wmi.c le16_to_cpu(ev->u.ap_sta.cipher), cipher 1535 drivers/net/wireless/ath/ath6kl/wmi.h __le16 cipher; cipher 280 drivers/net/wireless/ath/ath9k/common.c switch (tx_info->control.hw_key->cipher) { cipher 1430 drivers/net/wireless/ath/ath9k/htc_drv_main.c (key->cipher == WLAN_CIPHER_SUITE_TKIP || cipher 1431 drivers/net/wireless/ath/ath9k/htc_drv_main.c key->cipher == WLAN_CIPHER_SUITE_CCMP) && cipher 1454 drivers/net/wireless/ath/ath9k/htc_drv_main.c if (key->cipher == WLAN_CIPHER_SUITE_TKIP) cipher 1457 drivers/net/wireless/ath/ath9k/htc_drv_main.c key->cipher == WLAN_CIPHER_SUITE_CCMP) cipher 1687 drivers/net/wireless/ath/ath9k/main.c (key->cipher == WLAN_CIPHER_SUITE_TKIP || cipher 1688 drivers/net/wireless/ath/ath9k/main.c key->cipher == WLAN_CIPHER_SUITE_CCMP) && cipher 1717 drivers/net/wireless/ath/ath9k/main.c if (key->cipher == WLAN_CIPHER_SUITE_TKIP) cipher 1720 drivers/net/wireless/ath/ath9k/main.c key->cipher == WLAN_CIPHER_SUITE_CCMP) cipher 1207 drivers/net/wireless/ath/carl9170/main.c switch (key->cipher) { cipher 1252 drivers/net/wireless/ath/carl9170/main.c if (key->cipher == WLAN_CIPHER_SUITE_TKIP) { cipher 1286 drivers/net/wireless/ath/carl9170/main.c if (key->cipher == WLAN_CIPHER_SUITE_TKIP) { cipher 1025 drivers/net/wireless/ath/carl9170/tx.c switch (info->control.hw_key->cipher) { cipher 406 drivers/net/wireless/ath/key.c u32 cipher) cipher 410 drivers/net/wireless/ath/key.c if (cipher == WLAN_CIPHER_SUITE_TKIP) cipher 486 drivers/net/wireless/ath/key.c switch (key->cipher) { cipher 514 drivers/net/wireless/ath/key.c idx = ath_reserve_key_cache_slot(common, key->cipher); cipher 524 drivers/net/wireless/ath/key.c idx = ath_reserve_key_cache_slot(common, key->cipher); cipher 546 drivers/net/wireless/ath/key.c idx = ath_reserve_key_cache_slot(common, key->cipher); cipher 552 drivers/net/wireless/ath/key.c if (key->cipher == WLAN_CIPHER_SUITE_TKIP) cipher 562 drivers/net/wireless/ath/key.c if (key->cipher == WLAN_CIPHER_SUITE_CCMP) cipher 565 drivers/net/wireless/ath/key.c if (key->cipher == WLAN_CIPHER_SUITE_TKIP) { cipher 592 drivers/net/wireless/ath/key.c if (key->cipher != WLAN_CIPHER_SUITE_TKIP) cipher 502 drivers/net/wireless/ath/wcn36xx/main.c cmd, key_conf->cipher, key_conf->keyidx, cipher 510 drivers/net/wireless/ath/wcn36xx/main.c switch (key_conf->cipher) { cipher 525 drivers/net/wireless/ath/wcn36xx/main.c key_conf->cipher); cipher 571 drivers/net/wireless/ath/wcn36xx/main.c if ((WLAN_CIPHER_SUITE_WEP40 == key_conf->cipher) || cipher 572 drivers/net/wireless/ath/wcn36xx/main.c (WLAN_CIPHER_SUITE_WEP104 == key_conf->cipher)) { cipher 2142 drivers/net/wireless/atmel/at76c50x-usb.c __func__, cmd, key->cipher, key->keyidx, key->keylen); cipher 2144 drivers/net/wireless/atmel/at76c50x-usb.c if ((key->cipher != WLAN_CIPHER_SUITE_WEP40) && cipher 2145 drivers/net/wireless/atmel/at76c50x-usb.c (key->cipher != WLAN_CIPHER_SUITE_WEP104)) cipher 4170 drivers/net/wireless/broadcom/b43/main.c (key->cipher == WLAN_CIPHER_SUITE_TKIP || cipher 4171 drivers/net/wireless/broadcom/b43/main.c key->cipher == WLAN_CIPHER_SUITE_CCMP) && cipher 4197 drivers/net/wireless/broadcom/b43/main.c switch (key->cipher) { cipher 2314 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (mac_addr && (params->cipher != WLAN_CIPHER_SUITE_WEP40) && cipher 2315 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c (params->cipher != WLAN_CIPHER_SUITE_WEP104)) { cipher 2330 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c switch (params->cipher) { cipher 2363 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c bphy_err(drvr, "Invalid cipher (0x%x)\n", params->cipher); cipher 2421 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c params.cipher = WLAN_CIPHER_SUITE_WEP40; cipher 2424 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c params.cipher = WLAN_CIPHER_SUITE_WEP104; cipher 2428 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c params.cipher = WLAN_CIPHER_SUITE_TKIP; cipher 2431 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c params.cipher = WLAN_CIPHER_SUITE_AES_CMAC; cipher 6572 drivers/net/wireless/intel/ipw2x00/ipw2200.c static int wext_cipher2level(int cipher) cipher 6574 drivers/net/wireless/intel/ipw2x00/ipw2200.c switch (cipher) { cipher 135 drivers/net/wireless/intel/iwlegacy/3945-mac.c il->stations[sta_id].keyinfo.cipher = keyconf->cipher; cipher 206 drivers/net/wireless/intel/iwlegacy/3945-mac.c switch (keyconf->cipher) { cipher 218 drivers/net/wireless/intel/iwlegacy/3945-mac.c IL_ERR("Unknown alg: %s alg=%x\n", __func__, keyconf->cipher); cipher 223 drivers/net/wireless/intel/iwlegacy/3945-mac.c keyconf->cipher, keyconf->keylen, keyconf->keyidx, sta_id, ret); cipher 239 drivers/net/wireless/intel/iwlegacy/3945-mac.c if (key->cipher == WLAN_CIPHER_SUITE_WEP40 || cipher 240 drivers/net/wireless/intel/iwlegacy/3945-mac.c key->cipher == WLAN_CIPHER_SUITE_WEP104) cipher 243 drivers/net/wireless/intel/iwlegacy/3945-mac.c IL_ERR("Static key invalid: cipher %x\n", key->cipher); cipher 358 drivers/net/wireless/intel/iwlegacy/3945-mac.c switch (keyinfo->cipher) { cipher 384 drivers/net/wireless/intel/iwlegacy/3945-mac.c IL_ERR("Unknown encode cipher %x\n", keyinfo->cipher); cipher 1602 drivers/net/wireless/intel/iwlegacy/4965-mac.c switch (keyconf->cipher) { cipher 1632 drivers/net/wireless/intel/iwlegacy/4965-mac.c IL_ERR("Unknown encode cipher %x\n", keyconf->cipher); cipher 3216 drivers/net/wireless/intel/iwlegacy/4965-mac.c il->stations[IL_AP_ID].keyinfo.cipher = keyconf->cipher; cipher 3251 drivers/net/wireless/intel/iwlegacy/4965-mac.c il->stations[sta_id].keyinfo.cipher = keyconf->cipher; cipher 3301 drivers/net/wireless/intel/iwlegacy/4965-mac.c il->stations[sta_id].keyinfo.cipher = keyconf->cipher; cipher 3349 drivers/net/wireless/intel/iwlegacy/4965-mac.c il->stations[sta_id].keyinfo.cipher = keyconf->cipher; cipher 3480 drivers/net/wireless/intel/iwlegacy/4965-mac.c switch (keyconf->cipher) { cipher 3495 drivers/net/wireless/intel/iwlegacy/4965-mac.c keyconf->cipher); cipher 3500 drivers/net/wireless/intel/iwlegacy/4965-mac.c keyconf->cipher, keyconf->keylen, keyconf->keyidx, sta_id, ret); cipher 5930 drivers/net/wireless/intel/iwlegacy/4965-mac.c if ((key->cipher == WLAN_CIPHER_SUITE_WEP40 || cipher 5931 drivers/net/wireless/intel/iwlegacy/4965-mac.c key->cipher == WLAN_CIPHER_SUITE_WEP104) && !sta) { cipher 651 drivers/net/wireless/intel/iwlegacy/common.h u32 cipher; cipher 896 drivers/net/wireless/intel/iwlwifi/dvm/lib.c if ((key->cipher == WLAN_CIPHER_SUITE_WEP40 || cipher 897 drivers/net/wireless/intel/iwlwifi/dvm/lib.c key->cipher == WLAN_CIPHER_SUITE_WEP104) && cipher 908 drivers/net/wireless/intel/iwlwifi/dvm/lib.c switch (key->cipher) { cipher 618 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c switch (key->cipher) { cipher 657 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c if ((key->cipher == WLAN_CIPHER_SUITE_WEP40 || cipher 658 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c key->cipher == WLAN_CIPHER_SUITE_WEP104) && !sta) { cipher 1098 drivers/net/wireless/intel/iwlwifi/dvm/sta.c switch (keyconf->cipher) { cipher 1225 drivers/net/wireless/intel/iwlwifi/dvm/sta.c switch (keyconf->cipher) { cipher 1245 drivers/net/wireless/intel/iwlwifi/dvm/sta.c IWL_ERR(priv, "Unknown cipher %x\n", keyconf->cipher); cipher 1255 drivers/net/wireless/intel/iwlwifi/dvm/sta.c keyconf->cipher, keyconf->keylen, keyconf->keyidx, cipher 198 drivers/net/wireless/intel/iwlwifi/dvm/tx.c switch (keyconf->cipher) { cipher 225 drivers/net/wireless/intel/iwlwifi/dvm/tx.c IWL_ERR(priv, "Unknown encode cipher %x\n", keyconf->cipher); cipher 554 drivers/net/wireless/intel/iwlwifi/fw/file.h __le32 cipher; cipher 391 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (!fwcs->cipher) cipher 186 drivers/net/wireless/intel/iwlwifi/mvm/d3.c switch (key->cipher) { cipher 1335 drivers/net/wireless/intel/iwlwifi/mvm/d3.c switch (key->cipher) { cipher 1351 drivers/net/wireless/intel/iwlwifi/mvm/d3.c u32 cipher; cipher 1367 drivers/net/wireless/intel/iwlwifi/mvm/d3.c switch (key->cipher) { cipher 1396 drivers/net/wireless/intel/iwlwifi/mvm/d3.c switch (key->cipher) { cipher 1417 drivers/net/wireless/intel/iwlwifi/mvm/d3.c data->cipher = key->cipher; cipher 1472 drivers/net/wireless/intel/iwlwifi/mvm/d3.c .conf.cipher = gtkdata.cipher, cipher 1478 drivers/net/wireless/intel/iwlwifi/mvm/d3.c switch (gtkdata.cipher) { cipher 486 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c if (mvm->fw->cs[0].cipher) { cipher 492 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c cs->cipher = le32_to_cpu(fwcs->cipher); cipher 503 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c mvm->ciphers[hw->wiphy->n_cipher_suites] = cs->cipher; cipher 3336 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c switch (key->cipher) { cipher 3370 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c hw->cipher_schemes->cipher == key->cipher) cipher 3386 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c if (key->cipher == WLAN_CIPHER_SUITE_AES_CMAC || cipher 3387 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c key->cipher == WLAN_CIPHER_SUITE_BIP_GMAC_128 || cipher 3388 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c key->cipher == WLAN_CIPHER_SUITE_BIP_GMAC_256) cipher 3393 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c if (key->cipher != WLAN_CIPHER_SUITE_GCMP && cipher 3394 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c key->cipher != WLAN_CIPHER_SUITE_GCMP_256 && cipher 3431 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c (key->cipher == WLAN_CIPHER_SUITE_CCMP || cipher 3432 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c key->cipher == WLAN_CIPHER_SUITE_GCMP || cipher 3433 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c key->cipher == WLAN_CIPHER_SUITE_GCMP_256)) { cipher 3502 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c (key->cipher == WLAN_CIPHER_SUITE_CCMP || cipher 3503 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c key->cipher == WLAN_CIPHER_SUITE_GCMP || cipher 3504 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c key->cipher == WLAN_CIPHER_SUITE_GCMP_256)) { cipher 3222 drivers/net/wireless/intel/iwlwifi/mvm/sta.c switch (key->cipher) { cipher 3316 drivers/net/wireless/intel/iwlwifi/mvm/sta.c (keyconf->cipher != WLAN_CIPHER_SUITE_AES_CMAC && cipher 3317 drivers/net/wireless/intel/iwlwifi/mvm/sta.c keyconf->cipher != WLAN_CIPHER_SUITE_BIP_GMAC_128 && cipher 3318 drivers/net/wireless/intel/iwlwifi/mvm/sta.c keyconf->cipher != WLAN_CIPHER_SUITE_BIP_GMAC_256))) cipher 3322 drivers/net/wireless/intel/iwlwifi/mvm/sta.c keyconf->cipher != WLAN_CIPHER_SUITE_AES_CMAC)) cipher 3338 drivers/net/wireless/intel/iwlwifi/mvm/sta.c switch (keyconf->cipher) { cipher 3351 drivers/net/wireless/intel/iwlwifi/mvm/sta.c if (keyconf->cipher == WLAN_CIPHER_SUITE_BIP_GMAC_256) cipher 3436 drivers/net/wireless/intel/iwlwifi/mvm/sta.c switch (keyconf->cipher) { cipher 3509 drivers/net/wireless/intel/iwlwifi/mvm/sta.c if (keyconf->cipher == WLAN_CIPHER_SUITE_AES_CMAC || cipher 3510 drivers/net/wireless/intel/iwlwifi/mvm/sta.c keyconf->cipher == WLAN_CIPHER_SUITE_BIP_GMAC_128 || cipher 3511 drivers/net/wireless/intel/iwlwifi/mvm/sta.c keyconf->cipher == WLAN_CIPHER_SUITE_BIP_GMAC_256) { cipher 3544 drivers/net/wireless/intel/iwlwifi/mvm/sta.c if ((keyconf->cipher == WLAN_CIPHER_SUITE_WEP40 || cipher 3545 drivers/net/wireless/intel/iwlwifi/mvm/sta.c keyconf->cipher == WLAN_CIPHER_SUITE_WEP104) && cipher 3559 drivers/net/wireless/intel/iwlwifi/mvm/sta.c keyconf->cipher, keyconf->keylen, keyconf->keyidx, cipher 3587 drivers/net/wireless/intel/iwlwifi/mvm/sta.c if (keyconf->cipher == WLAN_CIPHER_SUITE_AES_CMAC || cipher 3588 drivers/net/wireless/intel/iwlwifi/mvm/sta.c keyconf->cipher == WLAN_CIPHER_SUITE_BIP_GMAC_128 || cipher 3589 drivers/net/wireless/intel/iwlwifi/mvm/sta.c keyconf->cipher == WLAN_CIPHER_SUITE_BIP_GMAC_256) cipher 3615 drivers/net/wireless/intel/iwlwifi/mvm/sta.c if (keyconf->cipher == WLAN_CIPHER_SUITE_WEP40 || cipher 3616 drivers/net/wireless/intel/iwlwifi/mvm/sta.c keyconf->cipher == WLAN_CIPHER_SUITE_WEP104) cipher 458 drivers/net/wireless/intel/iwlwifi/mvm/tdls.c if (info->control.hw_key->cipher != WLAN_CIPHER_SUITE_CCMP) { cipher 187 drivers/net/wireless/intel/iwlwifi/mvm/tx.c info->control.hw_key->cipher != WLAN_CIPHER_SUITE_WEP40 && cipher 188 drivers/net/wireless/intel/iwlwifi/mvm/tx.c info->control.hw_key->cipher != WLAN_CIPHER_SUITE_WEP104) cipher 444 drivers/net/wireless/intel/iwlwifi/mvm/tx.c switch (keyconf->cipher) { cipher 61 drivers/net/wireless/intersil/orinoco/wext.c priv->keys[index].cipher = WLAN_CIPHER_SUITE_TKIP; cipher 65 drivers/net/wireless/intersil/orinoco/wext.c priv->keys[index].cipher = (key_len > SMALL_KEY_SIZE) ? cipher 71 drivers/net/wireless/intersil/orinoco/wext.c priv->keys[index].cipher = 0; cipher 84 drivers/net/wireless/intersil/orinoco/wext.c priv->keys[index].cipher = 0; cipher 522 drivers/net/wireless/intersil/p54/main.c switch (key->cipher) { cipher 765 drivers/net/wireless/intersil/p54/txrx.c static u8 p54_convert_algo(u32 cipher) cipher 767 drivers/net/wireless/intersil/p54/txrx.c switch (cipher) { cipher 812 drivers/net/wireless/intersil/p54/txrx.c if (info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { cipher 908 drivers/net/wireless/intersil/p54/txrx.c txhdr->key_type = p54_convert_algo(info->control.hw_key->cipher); cipher 911 drivers/net/wireless/intersil/p54/txrx.c if (info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { cipher 1472 drivers/net/wireless/marvell/libertas/cfg.c params->cipher, mac_addr); cipher 1484 drivers/net/wireless/marvell/libertas/cfg.c switch (params->cipher) { cipher 1502 drivers/net/wireless/marvell/libertas/cfg.c key_type = (params->cipher == WLAN_CIPHER_SUITE_TKIP) cipher 1511 drivers/net/wireless/marvell/libertas/cfg.c wiphy_err(wiphy, "unhandled cipher 0x%x\n", params->cipher); cipher 130 drivers/net/wireless/marvell/mwifiex/cfg80211.c mwifiex_is_alg_wep(u32 cipher) cipher 132 drivers/net/wireless/marvell/mwifiex/cfg80211.c switch (cipher) { cipher 484 drivers/net/wireless/marvell/mwifiex/cfg80211.c (params->cipher == WLAN_CIPHER_SUITE_WEP40 || cipher 485 drivers/net/wireless/marvell/mwifiex/cfg80211.c params->cipher == WLAN_CIPHER_SUITE_WEP104)) { cipher 1947 drivers/net/wireless/marvell/mwifiex/fw.h u8 cipher; cipher 1953 drivers/net/wireless/marvell/mwifiex/fw.h u8 cipher; cipher 151 drivers/net/wireless/marvell/mwifiex/scan.c mwifiex_is_rsn_oui_present(struct mwifiex_bssdescriptor *bss_desc, u32 cipher) cipher 161 drivers/net/wireless/marvell/mwifiex/scan.c oui = &mwifiex_rsn_oui[cipher][0]; cipher 177 drivers/net/wireless/marvell/mwifiex/scan.c mwifiex_is_wpa_oui_present(struct mwifiex_bssdescriptor *bss_desc, u32 cipher) cipher 186 drivers/net/wireless/marvell/mwifiex/scan.c oui = &mwifiex_wpa_oui[cipher][0]; cipher 1118 drivers/net/wireless/marvell/mwifiex/sta_ioctl.c if (kp && kp->cipher == WLAN_CIPHER_SUITE_AES_CMAC) cipher 334 drivers/net/wireless/marvell/mwifiex/uap_cmd.c pwk_cipher->cipher = bss_cfg->wpa_cfg.pairwise_cipher_wpa; cipher 346 drivers/net/wireless/marvell/mwifiex/uap_cmd.c pwk_cipher->cipher = bss_cfg->wpa_cfg.pairwise_cipher_wpa2; cipher 357 drivers/net/wireless/marvell/mwifiex/uap_cmd.c gwk_cipher->cipher = bss_cfg->wpa_cfg.group_cipher; cipher 921 drivers/net/wireless/marvell/mwl8k.c switch (key_conf->cipher) { cipher 4294 drivers/net/wireless/marvell/mwl8k.c switch (key->cipher) { cipher 4350 drivers/net/wireless/marvell/mwl8k.c switch (key->cipher) { cipher 4400 drivers/net/wireless/marvell/mwl8k.c if (key->cipher == WLAN_CIPHER_SUITE_WEP40 || cipher 4401 drivers/net/wireless/marvell/mwl8k.c key->cipher == WLAN_CIPHER_SUITE_WEP104) cipher 4438 drivers/net/wireless/marvell/mwl8k.c if ((key->cipher == WLAN_CIPHER_SUITE_WEP40) cipher 4439 drivers/net/wireless/marvell/mwl8k.c || (key->cipher == WLAN_CIPHER_SUITE_WEP104)) cipher 476 drivers/net/wireless/mediatek/mt76/mac80211.c if (key->cipher != WLAN_CIPHER_SUITE_CCMP) cipher 208 drivers/net/wireless/mediatek/mt76/mt76.h u16 cipher; cipher 732 drivers/net/wireless/mediatek/mt76/mt7603/mac.c switch (key->cipher) { cipher 752 drivers/net/wireless/mediatek/mt76/mt7603/mac.c enum mt7603_cipher_type cipher; cipher 757 drivers/net/wireless/mediatek/mt76/mt7603/mac.c cipher = mt7603_mac_get_key_info(key, key_data); cipher 758 drivers/net/wireless/mediatek/mt76/mt7603/mac.c if (cipher == MT_CIPHER_NONE && key) cipher 761 drivers/net/wireless/mediatek/mt76/mt7603/mac.c if (key && (cipher == MT_CIPHER_WEP40 || cipher == MT_CIPHER_WEP104)) { cipher 769 drivers/net/wireless/mediatek/mt76/mt7603/mac.c mt76_rmw_field(dev, addr + 2 * 4, MT_WTBL1_W2_KEY_TYPE, cipher); cipher 461 drivers/net/wireless/mediatek/mt76/mt7603/main.c switch (key->cipher) { cipher 475 drivers/net/wireless/mediatek/mt76/mt7603/main.c (key->cipher == WLAN_CIPHER_SUITE_TKIP || cipher 476 drivers/net/wireless/mediatek/mt76/mt7603/main.c key->cipher == WLAN_CIPHER_SUITE_CCMP) && cipher 370 drivers/net/wireless/mediatek/mt76/mt7615/mac.c key->cipher == WLAN_CIPHER_SUITE_AES_CMAC) { cipher 601 drivers/net/wireless/mediatek/mt76/mt7615/mac.c mt7615_mac_get_cipher(int cipher) cipher 603 drivers/net/wireless/mediatek/mt76/mt7615/mac.c switch (cipher) { cipher 630 drivers/net/wireless/mediatek/mt76/mt7615/mac.c enum mt7615_cipher_type cipher, cipher 641 drivers/net/wireless/mediatek/mt76/mt7615/mac.c if (cipher == MT_CIPHER_TKIP) { cipher 646 drivers/net/wireless/mediatek/mt76/mt7615/mac.c if (cipher != MT_CIPHER_BIP_CMAC_128 && wcid->cipher) cipher 648 drivers/net/wireless/mediatek/mt76/mt7615/mac.c if (cipher != MT_CIPHER_BIP_CMAC_128 || !wcid->cipher) cipher 650 drivers/net/wireless/mediatek/mt76/mt7615/mac.c else if (cipher == MT_CIPHER_BIP_CMAC_128) cipher 653 drivers/net/wireless/mediatek/mt76/mt7615/mac.c if (wcid->cipher & ~BIT(cipher)) { cipher 654 drivers/net/wireless/mediatek/mt76/mt7615/mac.c if (cipher != MT_CIPHER_BIP_CMAC_128) cipher 668 drivers/net/wireless/mediatek/mt76/mt7615/mac.c enum mt7615_cipher_type cipher, int keyidx, cipher 681 drivers/net/wireless/mediatek/mt76/mt7615/mac.c cipher == MT_CIPHER_BIP_CMAC_128); cipher 682 drivers/net/wireless/mediatek/mt76/mt7615/mac.c if (cipher != MT_CIPHER_BIP_CMAC_128 || cipher 683 drivers/net/wireless/mediatek/mt76/mt7615/mac.c !wcid->cipher) cipher 686 drivers/net/wireless/mediatek/mt76/mt7615/mac.c if (!(wcid->cipher & ~BIT(cipher))) cipher 689 drivers/net/wireless/mediatek/mt76/mt7615/mac.c if (cipher == MT_CIPHER_BIP_CMAC_128) cipher 707 drivers/net/wireless/mediatek/mt76/mt7615/mac.c enum mt7615_cipher_type cipher, cipher 713 drivers/net/wireless/mediatek/mt76/mt7615/mac.c if (cipher != MT_CIPHER_BIP_CMAC_128 || !wcid->cipher) cipher 715 drivers/net/wireless/mediatek/mt76/mt7615/mac.c FIELD_PREP(MT_WTBL_W2_KEY_TYPE, cipher)); cipher 717 drivers/net/wireless/mediatek/mt76/mt7615/mac.c if (cipher != MT_CIPHER_BIP_CMAC_128 && cipher 718 drivers/net/wireless/mediatek/mt76/mt7615/mac.c wcid->cipher & BIT(MT_CIPHER_BIP_CMAC_128)) cipher 722 drivers/net/wireless/mediatek/mt76/mt7615/mac.c else if (!(wcid->cipher & ~BIT(cipher))) cipher 732 drivers/net/wireless/mediatek/mt76/mt7615/mac.c enum mt7615_cipher_type cipher; cipher 735 drivers/net/wireless/mediatek/mt76/mt7615/mac.c cipher = mt7615_mac_get_cipher(key->cipher); cipher 736 drivers/net/wireless/mediatek/mt76/mt7615/mac.c if (cipher == MT_CIPHER_NONE) cipher 741 drivers/net/wireless/mediatek/mt76/mt7615/mac.c mt7615_mac_wtbl_update_cipher(dev, wcid, cipher, cmd); cipher 742 drivers/net/wireless/mediatek/mt76/mt7615/mac.c err = mt7615_mac_wtbl_update_key(dev, wcid, key, cipher, cmd); cipher 746 drivers/net/wireless/mediatek/mt76/mt7615/mac.c err = mt7615_mac_wtbl_update_pk(dev, wcid, cipher, key->keyidx, cipher 752 drivers/net/wireless/mediatek/mt76/mt7615/mac.c wcid->cipher |= BIT(cipher); cipher 754 drivers/net/wireless/mediatek/mt76/mt7615/mac.c wcid->cipher &= ~BIT(cipher); cipher 183 drivers/net/wireless/mediatek/mt76/mt7615/main.c (key->cipher == WLAN_CIPHER_SUITE_TKIP || cipher 184 drivers/net/wireless/mediatek/mt76/mt7615/main.c key->cipher == WLAN_CIPHER_SUITE_CCMP) && cipher 189 drivers/net/wireless/mediatek/mt76/mt7615/main.c switch (key->cipher) { cipher 181 drivers/net/wireless/mediatek/mt76/mt7615/mcu.h u8 cipher; /* not used */ cipher 22 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c switch (key->cipher) { cipher 39 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c enum mt76x02_cipher_type cipher; cipher 43 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c cipher = mt76x02_mac_get_key_info(key, key_data); cipher 44 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c if (cipher == MT_CIPHER_NONE && key) cipher 49 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c val |= cipher << MT_SKEY_MODE_SHIFT(vif_idx, key_idx); cipher 62 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c enum mt76x02_cipher_type cipher; cipher 67 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c cipher = mt76x02_mac_get_key_info(key, key_data); cipher 72 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c if (cipher == MT_CIPHER_TKIP) { cipher 75 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c } else if (cipher >= MT_CIPHER_AES_CCMP) { cipher 87 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c enum mt76x02_cipher_type cipher; cipher 92 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c cipher = mt76x02_mac_get_key_info(key, key_data); cipher 93 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c if (cipher == MT_CIPHER_NONE && key) cipher 97 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c mt76_rmw_field(dev, MT_WCID_ATTR(idx), MT_WCID_ATTR_PKEY_MODE, cipher); cipher 107 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c if (cipher >= MT_CIPHER_TKIP) { cipher 112 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c if (cipher == MT_CIPHER_TKIP) { cipher 116 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c } else if (cipher >= MT_CIPHER_AES_CCMP) { cipher 420 drivers/net/wireless/mediatek/mt76/mt76x02_util.c switch (key->cipher) { cipher 436 drivers/net/wireless/mediatek/mt76/mt76x02_util.c (key->cipher == WLAN_CIPHER_SUITE_TKIP || cipher 437 drivers/net/wireless/mediatek/mt76/mt76x02_util.c key->cipher == WLAN_CIPHER_SUITE_CCMP) && cipher 516 drivers/net/wireless/mediatek/mt7601u/mac.c switch (key->cipher) { cipher 533 drivers/net/wireless/mediatek/mt7601u/mac.c enum mt76_cipher_type cipher; cipher 538 drivers/net/wireless/mediatek/mt7601u/mac.c cipher = mt76_mac_get_key_info(key, key_data); cipher 539 drivers/net/wireless/mediatek/mt7601u/mac.c if (cipher == MT_CIPHER_NONE && key) cipher 549 drivers/net/wireless/mediatek/mt7601u/mac.c if (cipher >= MT_CIPHER_TKIP) { cipher 561 drivers/net/wireless/mediatek/mt7601u/mac.c val |= FIELD_PREP(MT_WCID_ATTR_PKEY_MODE, cipher & 7) | cipher 562 drivers/net/wireless/mediatek/mt7601u/mac.c FIELD_PREP(MT_WCID_ATTR_PKEY_MODE_EXT, cipher >> 3); cipher 574 drivers/net/wireless/mediatek/mt7601u/mac.c enum mt76_cipher_type cipher; cipher 578 drivers/net/wireless/mediatek/mt7601u/mac.c cipher = mt76_mac_get_key_info(key, key_data); cipher 579 drivers/net/wireless/mediatek/mt7601u/mac.c if (cipher == MT_CIPHER_NONE && key) cipher 589 drivers/net/wireless/mediatek/mt7601u/mac.c val |= cipher << MT_SKEY_MODE_SHIFT(vif_idx, key_idx); cipher 304 drivers/net/wireless/mediatek/mt7601u/main.c switch (key->cipher) { cipher 518 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c vif->mac->macid, vif->vifid, params->cipher, key_index, cipher 1831 drivers/net/wireless/quantenna/qtnfmac/commands.c cmd->cipher = cpu_to_le32(params->cipher); cipher 378 drivers/net/wireless/quantenna/qtnfmac/qlink.h __le32 cipher; cipher 325 drivers/net/wireless/ralink/rt2x00/rt2500usb.c enum cipher curr_cipher; cipher 333 drivers/net/wireless/ralink/rt2x00/rt2500usb.c if ((key->cipher == WLAN_CIPHER_SUITE_WEP40 || cipher 334 drivers/net/wireless/ralink/rt2x00/rt2500usb.c key->cipher == WLAN_CIPHER_SUITE_WEP104) && cipher 361 drivers/net/wireless/ralink/rt2x00/rt2500usb.c if (key->hw_key_idx > 0 && crypto->cipher != curr_cipher) cipher 385 drivers/net/wireless/ralink/rt2x00/rt2500usb.c rt2x00_set_field16(®, TXRX_CSR0_ALGORITHM, crypto->cipher); cipher 1080 drivers/net/wireless/ralink/rt2x00/rt2500usb.c rt2x00_set_field32(&word, TXD_W0_CIPHER, !!txdesc->cipher); cipher 1247 drivers/net/wireless/ralink/rt2x00/rt2500usb.c rxdesc->cipher = rt2x00_get_field32(word0, RXD_W0_CIPHER); cipher 1251 drivers/net/wireless/ralink/rt2x00/rt2500usb.c if (rxdesc->cipher != CIPHER_NONE) { cipher 885 drivers/net/wireless/ralink/rt2x00/rt2800lib.c rxdesc->cipher = rt2x00_get_field32(word, RXWI_W0_UDF); cipher 1640 drivers/net/wireless/ralink/rt2x00/rt2800lib.c (crypto->cipher & 0x7)); cipher 1642 drivers/net/wireless/ralink/rt2x00/rt2800lib.c (crypto->cipher & 0x8) >> 3); cipher 1643 drivers/net/wireless/ralink/rt2x00/rt2800lib.c rt2x00_set_field32(®, MAC_WCID_ATTRIBUTE_RX_WIUDF, crypto->cipher); cipher 1660 drivers/net/wireless/ralink/rt2x00/rt2800lib.c if ((crypto->cipher == CIPHER_TKIP) || cipher 1661 drivers/net/wireless/ralink/rt2x00/rt2800lib.c (crypto->cipher == CIPHER_TKIP_NO_MIC) || cipher 1662 drivers/net/wireless/ralink/rt2x00/rt2800lib.c (crypto->cipher == CIPHER_AES)) cipher 1711 drivers/net/wireless/ralink/rt2x00/rt2800lib.c (crypto->cmd == SET_KEY) * crypto->cipher); cipher 10325 drivers/net/wireless/ralink/rt2x00/rt2800lib.c if (key->cipher != WLAN_CIPHER_SUITE_TKIP) cipher 451 drivers/net/wireless/ralink/rt2x00/rt2x00.h enum cipher cipher; cipher 19 drivers/net/wireless/ralink/rt2x00/rt2x00crypto.c enum cipher rt2x00crypto_key_to_cipher(struct ieee80211_key_conf *key) cipher 21 drivers/net/wireless/ralink/rt2x00/rt2x00crypto.c switch (key->cipher) { cipher 47 drivers/net/wireless/ralink/rt2x00/rt2x00crypto.c txdesc->cipher = rt2x00crypto_key_to_cipher(hw_key); cipher 84 drivers/net/wireless/ralink/rt2x00/rt2x00crypto.c if (key->cipher == WLAN_CIPHER_SUITE_TKIP) cipher 159 drivers/net/wireless/ralink/rt2x00/rt2x00crypto.c switch (rxdesc->cipher) { cipher 113 drivers/net/wireless/ralink/rt2x00/rt2x00debug.c enum cipher cipher = rxdesc->cipher; cipher 116 drivers/net/wireless/ralink/rt2x00/rt2x00debug.c if (cipher == CIPHER_TKIP_NO_MIC) cipher 117 drivers/net/wireless/ralink/rt2x00/rt2x00debug.c cipher = CIPHER_TKIP; cipher 118 drivers/net/wireless/ralink/rt2x00/rt2x00debug.c if (cipher == CIPHER_NONE || cipher >= CIPHER_MAX) cipher 122 drivers/net/wireless/ralink/rt2x00/rt2x00debug.c cipher--; cipher 124 drivers/net/wireless/ralink/rt2x00/rt2x00debug.c intf->crypto_stats[cipher].success += (status == RX_CRYPTO_SUCCESS); cipher 125 drivers/net/wireless/ralink/rt2x00/rt2x00debug.c intf->crypto_stats[cipher].icv_error += (status == RX_CRYPTO_FAIL_ICV); cipher 126 drivers/net/wireless/ralink/rt2x00/rt2x00debug.c intf->crypto_stats[cipher].mic_error += (status == RX_CRYPTO_FAIL_MIC); cipher 127 drivers/net/wireless/ralink/rt2x00/rt2x00debug.c intf->crypto_stats[cipher].key_error += (status == RX_CRYPTO_FAIL_KEY); cipher 315 drivers/net/wireless/ralink/rt2x00/rt2x00lib.h enum cipher rt2x00crypto_key_to_cipher(struct ieee80211_key_conf *key); cipher 330 drivers/net/wireless/ralink/rt2x00/rt2x00lib.h static inline enum cipher rt2x00crypto_key_to_cipher(struct ieee80211_key_conf *key) cipher 468 drivers/net/wireless/ralink/rt2x00/rt2x00mac.c crypto.cipher = rt2x00crypto_key_to_cipher(key); cipher 469 drivers/net/wireless/ralink/rt2x00/rt2x00mac.c if (crypto.cipher == CIPHER_NONE) cipher 471 drivers/net/wireless/ralink/rt2x00/rt2x00mac.c if (crypto.cipher == CIPHER_TKIP && rt2x00_is_usb(rt2x00dev)) cipher 483 drivers/net/wireless/ralink/rt2x00/rt2x00mac.c if (crypto.cipher == CIPHER_TKIP) cipher 179 drivers/net/wireless/ralink/rt2x00/rt2x00queue.h u8 cipher; cipher 322 drivers/net/wireless/ralink/rt2x00/rt2x00queue.h enum cipher cipher; cipher 362 drivers/net/wireless/ralink/rt2x00/rt61pci.c addr_entry.cipher = crypto->cipher; cipher 1858 drivers/net/wireless/ralink/rt2x00/rt61pci.c rt2x00_set_field32(&word, TXD_W0_CIPHER_ALG, txdesc->cipher); cipher 2008 drivers/net/wireless/ralink/rt2x00/rt61pci.c rxdesc->cipher = rt2x00_get_field32(word0, RXD_W0_CIPHER_ALG); cipher 2011 drivers/net/wireless/ralink/rt2x00/rt61pci.c if (rxdesc->cipher != CIPHER_NONE) { cipher 147 drivers/net/wireless/ralink/rt2x00/rt61pci.h u8 cipher; cipher 312 drivers/net/wireless/ralink/rt2x00/rt73usb.c rt2x00_set_field32(®, field, crypto->cipher); cipher 319 drivers/net/wireless/ralink/rt2x00/rt73usb.c rt2x00_set_field32(®, field, crypto->cipher); cipher 401 drivers/net/wireless/ralink/rt2x00/rt73usb.c addr_entry.cipher = crypto->cipher; cipher 1477 drivers/net/wireless/ralink/rt2x00/rt73usb.c rt2x00_set_field32(&word, TXD_W0_CIPHER_ALG, txdesc->cipher); cipher 1692 drivers/net/wireless/ralink/rt2x00/rt73usb.c rxdesc->cipher = rt2x00_get_field32(word0, RXD_W0_CIPHER_ALG); cipher 1695 drivers/net/wireless/ralink/rt2x00/rt73usb.c if (rxdesc->cipher != CIPHER_NONE) { cipher 102 drivers/net/wireless/ralink/rt2x00/rt73usb.h u8 cipher; cipher 4261 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c ctrl = (key->cipher & 0x0f) << 2 | key->keyidx | CAM_WRITE_VALID; cipher 4969 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c switch (tx_info->control.hw_key->cipher) { cipher 5674 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c __func__, cmd, key->cipher, key->keyidx); cipher 5682 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c switch (key->cipher) { cipher 1538 drivers/net/wireless/realtek/rtlwifi/core.c switch (key->cipher) { cipher 1566 drivers/net/wireless/realtek/rtlwifi/core.c pr_err("alg_err:%x!!!!:\n", key->cipher); cipher 601 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c switch (keyconf->cipher) { cipher 494 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c switch (keyconf->cipher) { cipher 551 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c switch (keyconf->cipher) { cipher 629 drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c switch (keyconf->cipher) { cipher 777 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c switch (key->cipher) { cipher 441 drivers/net/wireless/realtek/rtlwifi/rtl8192se/trx.c switch (keyconf->cipher) { cipher 454 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c switch (keyconf->cipher) { cipher 527 drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c switch (keyconf->cipher) { cipher 768 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c switch (keyconf->cipher) { cipher 373 drivers/net/wireless/realtek/rtw88/mac80211.c switch (key->cipher) { cipher 318 drivers/net/wireless/realtek/rtw88/tx.c switch (key->cipher) { cipher 404 drivers/net/wireless/rndis_wlan.c u32 cipher; cipher 575 drivers/net/wireless/rndis_wlan.c int cipher = priv->encr_keys[idx].cipher; cipher 577 drivers/net/wireless/rndis_wlan.c return (cipher == WLAN_CIPHER_SUITE_CCMP || cipher 578 drivers/net/wireless/rndis_wlan.c cipher == WLAN_CIPHER_SUITE_TKIP); cipher 581 drivers/net/wireless/rndis_wlan.c static int rndis_cipher_to_alg(u32 cipher) cipher 583 drivers/net/wireless/rndis_wlan.c switch (cipher) { cipher 1338 drivers/net/wireless/rndis_wlan.c u32 cipher; cipher 1348 drivers/net/wireless/rndis_wlan.c cipher = WLAN_CIPHER_SUITE_WEP40; cipher 1350 drivers/net/wireless/rndis_wlan.c cipher = WLAN_CIPHER_SUITE_WEP104; cipher 1380 drivers/net/wireless/rndis_wlan.c priv->encr_keys[index].cipher = cipher; cipher 1389 drivers/net/wireless/rndis_wlan.c int seq_len, u32 cipher, __le32 flags) cipher 1439 drivers/net/wireless/rndis_wlan.c if (cipher == WLAN_CIPHER_SUITE_TKIP && key_len == 32) { cipher 1472 drivers/net/wireless/rndis_wlan.c priv->encr_keys[index].cipher = cipher; cipher 2397 drivers/net/wireless/rndis_wlan.c __func__, key_index, mac_addr, params->cipher); cipher 2399 drivers/net/wireless/rndis_wlan.c switch (params->cipher) { cipher 2416 drivers/net/wireless/rndis_wlan.c params->seq_len, params->cipher, flags); cipher 2419 drivers/net/wireless/rndis_wlan.c __func__, params->cipher); cipher 959 drivers/net/wireless/rsi/rsi_91x_mac80211.c __func__, key->cipher, key_type, key->keylen); cipher 970 drivers/net/wireless/rsi/rsi_91x_mac80211.c if ((key->cipher == WLAN_CIPHER_SUITE_WEP104) || cipher 971 drivers/net/wireless/rsi/rsi_91x_mac80211.c (key->cipher == WLAN_CIPHER_SUITE_WEP40)) { cipher 977 drivers/net/wireless/rsi/rsi_91x_mac80211.c key->cipher, cipher 990 drivers/net/wireless/rsi/rsi_91x_mac80211.c key->cipher, cipher 997 drivers/net/wireless/rsi/rsi_91x_mac80211.c (key->cipher == WLAN_CIPHER_SUITE_WEP104 || cipher 998 drivers/net/wireless/rsi/rsi_91x_mac80211.c key->cipher == WLAN_CIPHER_SUITE_WEP40)) { cipher 1038 drivers/net/wireless/rsi/rsi_91x_mac80211.c secinfo->ptk_cipher = key->cipher; cipher 1040 drivers/net/wireless/rsi/rsi_91x_mac80211.c secinfo->gtk_cipher = key->cipher; cipher 1486 drivers/net/wireless/rsi/rsi_91x_mac80211.c if ((key->cipher == WLAN_CIPHER_SUITE_WEP104) || cipher 1487 drivers/net/wireless/rsi/rsi_91x_mac80211.c (key->cipher == WLAN_CIPHER_SUITE_WEP40)) cipher 1493 drivers/net/wireless/rsi/rsi_91x_mac80211.c key->cipher, cipher 791 drivers/net/wireless/rsi/rsi_91x_mgmt.c u32 cipher, cipher 817 drivers/net/wireless/rsi/rsi_91x_mgmt.c if ((cipher == WLAN_CIPHER_SUITE_WEP40) || cipher 818 drivers/net/wireless/rsi/rsi_91x_mgmt.c (cipher == WLAN_CIPHER_SUITE_WEP104)) { cipher 823 drivers/net/wireless/rsi/rsi_91x_mgmt.c } else if (cipher != KEY_TYPE_CLEAR) { cipher 825 drivers/net/wireless/rsi/rsi_91x_mgmt.c if (cipher == WLAN_CIPHER_SUITE_TKIP) cipher 838 drivers/net/wireless/rsi/rsi_91x_mgmt.c if ((cipher == WLAN_CIPHER_SUITE_WEP40) || cipher 839 drivers/net/wireless/rsi/rsi_91x_mgmt.c (cipher == WLAN_CIPHER_SUITE_WEP104)) { cipher 721 drivers/net/wireless/rsi/rsi_mgmt.h u8 key_type, u8 key_id, u32 cipher, s16 sta_id, cipher 708 drivers/net/wireless/st/cw1200/sta.c switch (key->cipher) { cipher 810 drivers/net/wireless/st/cw1200/sta.c pr_warn("Unhandled key type %d\n", key->cipher); cipher 510 drivers/net/wireless/st/cw1200/txrx.c if (t->tx_info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) cipher 953 drivers/net/wireless/st/cw1200/txrx.c if (tx->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) cipher 1534 drivers/net/wireless/st/cw1200/wsm.c (tx_info->control.hw_key->cipher == WLAN_CIPHER_SUITE_WEP40 || cipher 1535 drivers/net/wireless/st/cw1200/wsm.c tx_info->control.hw_key->cipher == WLAN_CIPHER_SUITE_WEP104)) { cipher 833 drivers/net/wireless/ti/wl1251/main.c switch (mac80211_key->cipher) { cipher 859 drivers/net/wireless/ti/wl1251/main.c wl1251_error("Unknown key cipher 0x%x", mac80211_key->cipher); cipher 892 drivers/net/wireless/ti/wl1251/main.c key->cipher, key->keyidx, key->keylen, key->flags); cipher 180 drivers/net/wireless/ti/wl1251/tx.c control->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { cipher 425 drivers/net/wireless/ti/wl1251/tx.c info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { cipher 1553 drivers/net/wireless/ti/wl18xx/main.c special_enc = key_conf->cipher == WL1271_CIPHER_SUITE_GEM || cipher 1554 drivers/net/wireless/ti/wl18xx/main.c key_conf->cipher == WLAN_CIPHER_SUITE_TKIP; cipher 117 drivers/net/wireless/ti/wl18xx/tx.c info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { cipher 3455 drivers/net/wireless/ti/wlcore/main.c key_conf->cipher == WL1271_CIPHER_SUITE_GEM || cipher 3456 drivers/net/wireless/ti/wlcore/main.c key_conf->cipher == WLAN_CIPHER_SUITE_TKIP; cipher 3510 drivers/net/wireless/ti/wlcore/main.c key_conf->cipher, key_conf->keyidx, cipher 3530 drivers/net/wireless/ti/wlcore/main.c switch (key_conf->cipher) { cipher 3549 drivers/net/wireless/ti/wlcore/main.c wl1271_error("Unknown key algo 0x%x", key_conf->cipher); cipher 386 drivers/net/wireless/ti/wlcore/tx.c info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) cipher 392 drivers/net/wireless/ti/wlcore/tx.c u32 cipher = info->control.hw_key->cipher; cipher 394 drivers/net/wireless/ti/wlcore/tx.c is_wep = (cipher == WLAN_CIPHER_SUITE_WEP40) || cipher 395 drivers/net/wireless/ti/wlcore/tx.c (cipher == WLAN_CIPHER_SUITE_WEP104); cipher 404 drivers/net/wireless/ti/wlcore/tx.c is_gem = (cipher == WL1271_CIPHER_SUITE_GEM); cipher 953 drivers/net/wireless/ti/wlcore/tx.c info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { cipher 1115 drivers/net/wireless/ti/wlcore/tx.c info->control.hw_key->cipher == cipher 1072 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c DBG_871X("cipher = 0x%x\n", params->cipher); cipher 1088 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c switch (params->cipher) { cipher 1728 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c static int rtw_cfg80211_set_cipher(struct security_priv *psecuritypriv, u32 cipher, bool ucast) cipher 1735 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c DBG_8192C("%s, ucast =%d, cipher = 0x%x\n", __func__, ucast, cipher); cipher 1738 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c if (!cipher) { cipher 1744 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c switch (cipher) { cipher 1766 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c DBG_8192C("Unsupported cipher: 0x%x\n", cipher); cipher 104 drivers/staging/vt6655/key.c switch (key->cipher) { cipher 1056 drivers/staging/vt6655/rxtx.c switch (info->control.hw_key->cipher) { cipher 1210 drivers/staging/vt6655/rxtx.c switch (tx_key->cipher) { cipher 1363 drivers/staging/vt6655/rxtx.c switch (info->control.hw_key->cipher) { cipher 117 drivers/staging/vt6656/key.c switch (key->cipher) { cipher 723 drivers/staging/vt6656/rxtx.c switch (tx_key->cipher) { cipher 896 drivers/staging/vt6656/rxtx.c switch (info->control.hw_key->cipher) { cipher 501 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c key_info->cipher = params->cipher; cipher 520 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c switch (params->cipher) { cipher 526 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c if (params->cipher == WLAN_CIPHER_SUITE_WEP40) cipher 559 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c params->cipher == WLAN_CIPHER_SUITE_TKIP) { cipher 566 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c if (params->cipher == WLAN_CIPHER_SUITE_TKIP) cipher 575 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c if (params->cipher == WLAN_CIPHER_SUITE_TKIP) cipher 589 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c params->cipher == WLAN_CIPHER_SUITE_TKIP) { cipher 668 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c key_params.cipher = priv->wilc_gtk[key_index]->cipher; cipher 674 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c key_params.cipher = priv->wilc_ptk[key_index]->cipher; cipher 50 drivers/staging/wilc1000/wilc_wfi_netdevice.h u32 cipher; cipher 155 drivers/staging/wlan-ng/cfg80211.c if (params->cipher != WLAN_CIPHER_SUITE_WEP40 && cipher 156 drivers/staging/wlan-ng/cfg80211.c params->cipher != WLAN_CIPHER_SUITE_WEP104) { cipher 190 drivers/staging/wlan-ng/cfg80211.c params.cipher = WLAN_CIPHER_SUITE_WEP104; cipher 192 drivers/staging/wlan-ng/cfg80211.c params.cipher = WLAN_CIPHER_SUITE_WEP104; cipher 581 fs/ecryptfs/crypto.c crypt_stat->cipher, (int)strlen(crypt_stat->cipher), cipher 589 fs/ecryptfs/crypto.c crypt_stat->cipher, "cbc"); cipher 761 fs/ecryptfs/crypto.c strcpy(crypt_stat->cipher, ECRYPTFS_DEFAULT_CIPHER); cipher 810 fs/ecryptfs/crypto.c memcpy(crypt_stat->cipher, cipher 813 fs/ecryptfs/crypto.c crypt_stat->cipher[cipher_name_len] = '\0'; cipher 821 fs/ecryptfs/crypto.c crypt_stat->cipher, rc); cipher 242 fs/ecryptfs/ecryptfs_kernel.h unsigned char cipher[ECRYPTFS_MAX_CIPHER_NAME_SIZE + 1]; cipher 1172 fs/ecryptfs/keystore.c rc = ecryptfs_cipher_code_to_string(crypt_stat->cipher, cipher_code); cipher 1437 fs/ecryptfs/keystore.c rc = ecryptfs_cipher_code_to_string(crypt_stat->cipher, cipher 1664 fs/ecryptfs/keystore.c crypt_stat->cipher); cipher 1668 fs/ecryptfs/keystore.c crypt_stat->cipher, rc); cipher 1951 fs/ecryptfs/keystore.c crypt_stat->cipher, rc); cipher 1973 fs/ecryptfs/keystore.c crypt_stat->cipher, cipher 2197 fs/ecryptfs/keystore.c crypt_stat->cipher); cipher 2201 fs/ecryptfs/keystore.c crypt_stat->cipher, rc); cipher 2218 fs/ecryptfs/keystore.c && strcmp("aes", crypt_stat->cipher) == 0) { cipher 2354 fs/ecryptfs/keystore.c cipher_code = ecryptfs_code_for_cipher_string(crypt_stat->cipher, cipher 2358 fs/ecryptfs/keystore.c "cipher [%s]\n", crypt_stat->cipher); cipher 240 include/crypto/internal/skcipher.h struct crypto_cipher *cipher; /* underlying block cipher */ cipher 247 include/crypto/internal/skcipher.h return ctx->cipher; cipher 455 include/linux/crypto.h #define cra_cipher cra_u.cipher cipher 570 include/linux/crypto.h struct cipher_alg cipher; cipher 584 include/linux/crypto.h struct crypto_istat_cipher cipher; cipher 758 include/linux/crypto.h #define crt_cipher crt_u.cipher cipher 768 include/linux/crypto.h struct cipher_tfm cipher; cipher 321 include/linux/sunrpc/gss_krb5.h struct crypto_sync_skcipher *cipher, cipher 326 include/linux/sunrpc/gss_krb5.h struct crypto_sync_skcipher *cipher, cipher 575 include/net/cfg80211.h u32 cipher; cipher 1756 include/net/mac80211.h u32 cipher; cipher 1829 include/net/mac80211.h u32 cipher; cipher 211 include/uapi/linux/virtio_crypto.h struct virtio_crypto_cipher_session_req cipher; cipher 377 include/uapi/linux/virtio_crypto.h struct virtio_crypto_cipher_data_req cipher; cipher 403 net/mac80211/cfg.c switch (params->cipher) { cipher 419 net/mac80211/cfg.c cs = ieee80211_cs_get(local, params->cipher, sdata->vif.type); cipher 423 net/mac80211/cfg.c key = ieee80211_key_alloc(params->cipher, key_idx, params->key_len, cipher 581 net/mac80211/cfg.c params.cipher = key->conf.cipher; cipher 583 net/mac80211/cfg.c switch (key->conf.cipher) { cipher 75 net/mac80211/debugfs_key.c u32 c = key->conf.cipher; cipher 90 net/mac80211/debugfs_key.c switch (key->conf.cipher) { cipher 126 net/mac80211/debugfs_key.c switch (key->conf.cipher) { cipher 165 net/mac80211/debugfs_key.c switch (key->conf.cipher) { cipher 232 net/mac80211/debugfs_key.c switch (key->conf.cipher) { cipher 265 net/mac80211/debugfs_key.c switch (key->conf.cipher) { cipher 290 net/mac80211/debugfs_key.c if (key->conf.cipher != WLAN_CIPHER_SUITE_TKIP) cipher 2213 net/mac80211/ieee80211_i.h ieee80211_cs_get(struct ieee80211_local *local, u32 cipher, cipher 207 net/mac80211/key.c switch (key->conf.cipher) { cipher 499 net/mac80211/key.c ieee80211_key_alloc(u32 cipher, int idx, size_t key_len, cipher 521 net/mac80211/key.c key->conf.cipher = cipher; cipher 524 net/mac80211/key.c switch (cipher) { cipher 585 net/mac80211/key.c if (cipher == WLAN_CIPHER_SUITE_AES_CMAC) cipher 667 net/mac80211/key.c switch (key->conf.cipher) { cipher 749 net/mac80211/key.c new->conf.cipher == WLAN_CIPHER_SUITE_TKIP && cipher 789 net/mac80211/key.c if ((alt_key && alt_key->conf.cipher != key->conf.cipher) || cipher 790 net/mac80211/key.c (old_key && old_key->conf.cipher != key->conf.cipher)) cipher 800 net/mac80211/key.c if (old_key && old_key->conf.cipher != key->conf.cipher) cipher 1110 net/mac80211/key.c switch (key->conf.cipher) { cipher 1163 net/mac80211/key.c switch (key->conf.cipher) { cipher 1251 net/mac80211/key.c key = ieee80211_key_alloc(keyconf->cipher, keyconf->keyidx, cipher 138 net/mac80211/key.h ieee80211_key_alloc(u32 cipher, int idx, size_t key_len, cipher 847 net/mac80211/main.c suites[w++] = cs[r].cipher; cipher 2027 net/mac80211/rx.c rx->key->conf.cipher != WLAN_CIPHER_SUITE_WEP40 && cipher 2028 net/mac80211/rx.c rx->key->conf.cipher != WLAN_CIPHER_SUITE_WEP104 && cipher 2043 net/mac80211/rx.c switch (rx->key->conf.cipher) { cipher 2201 net/mac80211/rx.c (rx->key->conf.cipher == WLAN_CIPHER_SUITE_CCMP || cipher 2202 net/mac80211/rx.c rx->key->conf.cipher == WLAN_CIPHER_SUITE_CCMP_256 || cipher 2203 net/mac80211/rx.c rx->key->conf.cipher == WLAN_CIPHER_SUITE_GCMP || cipher 2204 net/mac80211/rx.c rx->key->conf.cipher == WLAN_CIPHER_SUITE_GCMP_256) && cipher 2248 net/mac80211/rx.c (rx->key->conf.cipher != WLAN_CIPHER_SUITE_CCMP && cipher 2249 net/mac80211/rx.c rx->key->conf.cipher != WLAN_CIPHER_SUITE_CCMP_256 && cipher 2250 net/mac80211/rx.c rx->key->conf.cipher != WLAN_CIPHER_SUITE_GCMP && cipher 2251 net/mac80211/rx.c rx->key->conf.cipher != WLAN_CIPHER_SUITE_GCMP_256)) cipher 4057 net/mac80211/rx.c switch (key->conf.cipher) { cipher 79 net/mac80211/trace.h #define KEY_ENTRY __field(u32, cipher) \ cipher 83 net/mac80211/trace.h #define KEY_ASSIGN(k) __entry->cipher = (k)->cipher; \ cipher 88 net/mac80211/trace.h #define KEY_PR_ARG __entry->cipher, __entry->flags, __entry->keyidx, __entry->hw_key_idx cipher 623 net/mac80211/tx.c switch (tx->key->conf.cipher) { cipher 1024 net/mac80211/tx.c switch (tx->key->conf.cipher) { cipher 3027 net/mac80211/tx.c switch (build.key->conf.cipher) { cipher 3063 net/mac80211/tx.c build.key->conf.cipher); cipher 3404 net/mac80211/tx.c switch (key->conf.cipher) { cipher 3557 net/mac80211/util.c return !(cs == NULL || cs->cipher == 0 || cipher 3579 net/mac80211/util.c ieee80211_cs_get(struct ieee80211_local *local, u32 cipher, cipher 3588 net/mac80211/util.c if (l[i].cipher == cipher) { cipher 40 net/mac80211/wpa.c if (!tx->key || tx->key->conf.cipher != WLAN_CIPHER_SUITE_TKIP || cipher 122 net/mac80211/wpa.c rx->key->conf.cipher == WLAN_CIPHER_SUITE_TKIP) cipher 133 net/mac80211/wpa.c if (!rx->key || rx->key->conf.cipher != WLAN_CIPHER_SUITE_TKIP || cipher 449 net/rxrpc/ar-internal.h struct crypto_sync_skcipher *cipher; /* encryption handle */ cipher 90 net/rxrpc/rxkad.c conn->cipher = ci; cipher 119 net/rxrpc/rxkad.c req = skcipher_request_alloc(&conn->cipher->base, GFP_NOFS); cipher 134 net/rxrpc/rxkad.c skcipher_request_set_sync_tfm(req, conn->cipher); cipher 152 net/rxrpc/rxkad.c struct crypto_skcipher *tfm = &call->conn->cipher->base; cipher 202 net/rxrpc/rxkad.c skcipher_request_set_sync_tfm(req, call->conn->cipher); cipher 245 net/rxrpc/rxkad.c skcipher_request_set_sync_tfm(req, call->conn->cipher); cipher 294 net/rxrpc/rxkad.c if (!call->conn->cipher) cipher 315 net/rxrpc/rxkad.c skcipher_request_set_sync_tfm(req, call->conn->cipher); cipher 383 net/rxrpc/rxkad.c skcipher_request_set_sync_tfm(req, call->conn->cipher); cipher 475 net/rxrpc/rxkad.c skcipher_request_set_sync_tfm(req, call->conn->cipher); cipher 541 net/rxrpc/rxkad.c if (!call->conn->cipher) cipher 558 net/rxrpc/rxkad.c skcipher_request_set_sync_tfm(req, call->conn->cipher); cipher 788 net/rxrpc/rxkad.c req = skcipher_request_alloc(&conn->cipher->base, GFP_NOFS); cipher 797 net/rxrpc/rxkad.c skcipher_request_set_sync_tfm(req, conn->cipher); cipher 1249 net/rxrpc/rxkad.c if (conn->cipher) cipher 1250 net/rxrpc/rxkad.c crypto_free_sync_skcipher(conn->cipher); cipher 677 net/sunrpc/auth_gss/gss_krb5_crypto.c gss_krb5_cts_crypt(struct crypto_sync_skcipher *cipher, struct xdr_buf *buf, cipher 682 net/sunrpc/auth_gss/gss_krb5_crypto.c SYNC_SKCIPHER_REQUEST_ON_STACK(req, cipher); cipher 711 net/sunrpc/auth_gss/gss_krb5_crypto.c skcipher_request_set_sync_tfm(req, cipher); cipher 740 net/sunrpc/auth_gss/gss_krb5_crypto.c struct crypto_sync_skcipher *cipher, *aux_cipher; cipher 749 net/sunrpc/auth_gss/gss_krb5_crypto.c cipher = kctx->initiator_enc; cipher 754 net/sunrpc/auth_gss/gss_krb5_crypto.c cipher = kctx->acceptor_enc; cipher 759 net/sunrpc/auth_gss/gss_krb5_crypto.c blocksize = crypto_sync_skcipher_blocksize(cipher); cipher 835 net/sunrpc/auth_gss/gss_krb5_crypto.c err = gss_krb5_cts_crypt(cipher, buf, cipher 860 net/sunrpc/auth_gss/gss_krb5_crypto.c struct crypto_sync_skcipher *cipher, *aux_cipher; cipher 869 net/sunrpc/auth_gss/gss_krb5_crypto.c cipher = kctx->acceptor_enc; cipher 874 net/sunrpc/auth_gss/gss_krb5_crypto.c cipher = kctx->initiator_enc; cipher 879 net/sunrpc/auth_gss/gss_krb5_crypto.c blocksize = crypto_sync_skcipher_blocksize(cipher); cipher 914 net/sunrpc/auth_gss/gss_krb5_crypto.c ret = gss_krb5_cts_crypt(cipher, &subbuf, cbcbytes, desc.iv, NULL, 0); cipher 952 net/sunrpc/auth_gss/gss_krb5_crypto.c struct crypto_sync_skcipher *cipher, cipher 999 net/sunrpc/auth_gss/gss_krb5_crypto.c err = crypto_sync_skcipher_setkey(cipher, Kseq, kctx->gk5e->keylength); cipher 1018 net/sunrpc/auth_gss/gss_krb5_crypto.c struct crypto_sync_skcipher *cipher, cipher 1074 net/sunrpc/auth_gss/gss_krb5_crypto.c err = crypto_sync_skcipher_setkey(cipher, Kcrypt, cipher 150 net/sunrpc/auth_gss/gss_krb5_keys.c struct crypto_sync_skcipher *cipher; cipher 160 net/sunrpc/auth_gss/gss_krb5_keys.c cipher = crypto_alloc_sync_skcipher(gk5e->encrypt_name, 0, 0); cipher 161 net/sunrpc/auth_gss/gss_krb5_keys.c if (IS_ERR(cipher)) cipher 163 net/sunrpc/auth_gss/gss_krb5_keys.c if (crypto_sync_skcipher_setkey(cipher, inkey->data, inkey->len)) cipher 200 net/sunrpc/auth_gss/gss_krb5_keys.c (*(gk5e->encrypt))(cipher, NULL, inblock.data, cipher 237 net/sunrpc/auth_gss/gss_krb5_keys.c crypto_free_sync_skcipher(cipher); cipher 46 net/sunrpc/auth_gss/gss_krb5_seqnum.c struct crypto_sync_skcipher *cipher; cipher 51 net/sunrpc/auth_gss/gss_krb5_seqnum.c cipher = crypto_alloc_sync_skcipher(kctx->gk5e->encrypt_name, 0, 0); cipher 52 net/sunrpc/auth_gss/gss_krb5_seqnum.c if (IS_ERR(cipher)) cipher 53 net/sunrpc/auth_gss/gss_krb5_seqnum.c return PTR_ERR(cipher); cipher 68 net/sunrpc/auth_gss/gss_krb5_seqnum.c code = krb5_rc4_setup_seq_key(kctx, cipher, cksum); cipher 72 net/sunrpc/auth_gss/gss_krb5_seqnum.c code = krb5_encrypt(cipher, cksum, plain, buf, 8); cipher 75 net/sunrpc/auth_gss/gss_krb5_seqnum.c crypto_free_sync_skcipher(cipher); cipher 115 net/sunrpc/auth_gss/gss_krb5_seqnum.c struct crypto_sync_skcipher *cipher; cipher 120 net/sunrpc/auth_gss/gss_krb5_seqnum.c cipher = crypto_alloc_sync_skcipher(kctx->gk5e->encrypt_name, 0, 0); cipher 121 net/sunrpc/auth_gss/gss_krb5_seqnum.c if (IS_ERR(cipher)) cipher 122 net/sunrpc/auth_gss/gss_krb5_seqnum.c return PTR_ERR(cipher); cipher 124 net/sunrpc/auth_gss/gss_krb5_seqnum.c code = krb5_rc4_setup_seq_key(kctx, cipher, cksum); cipher 134 net/sunrpc/auth_gss/gss_krb5_seqnum.c code = krb5_decrypt(cipher, cksum, buf, plain, 8); cipher 151 net/sunrpc/auth_gss/gss_krb5_seqnum.c crypto_free_sync_skcipher(cipher); cipher 240 net/sunrpc/auth_gss/gss_krb5_wrap.c struct crypto_sync_skcipher *cipher; cipher 242 net/sunrpc/auth_gss/gss_krb5_wrap.c cipher = crypto_alloc_sync_skcipher(kctx->gk5e->encrypt_name, cipher 244 net/sunrpc/auth_gss/gss_krb5_wrap.c if (IS_ERR(cipher)) cipher 247 net/sunrpc/auth_gss/gss_krb5_wrap.c krb5_rc4_setup_enc_key(kctx, cipher, seq_send); cipher 249 net/sunrpc/auth_gss/gss_krb5_wrap.c err = gss_encrypt_xdr_buf(cipher, buf, cipher 251 net/sunrpc/auth_gss/gss_krb5_wrap.c crypto_free_sync_skcipher(cipher); cipher 332 net/sunrpc/auth_gss/gss_krb5_wrap.c struct crypto_sync_skcipher *cipher; cipher 335 net/sunrpc/auth_gss/gss_krb5_wrap.c cipher = crypto_alloc_sync_skcipher(kctx->gk5e->encrypt_name, cipher 337 net/sunrpc/auth_gss/gss_krb5_wrap.c if (IS_ERR(cipher)) cipher 340 net/sunrpc/auth_gss/gss_krb5_wrap.c krb5_rc4_setup_enc_key(kctx, cipher, seqnum); cipher 342 net/sunrpc/auth_gss/gss_krb5_wrap.c err = gss_decrypt_xdr_buf(cipher, buf, crypt_offset); cipher 343 net/sunrpc/auth_gss/gss_krb5_wrap.c crypto_free_sync_skcipher(cipher); cipher 434 net/wireless/core.h bool cfg80211_supported_cipher_suite(struct wiphy *wiphy, u32 cipher); cipher 1069 net/wireless/nl80211.c k->p.cipher = nla_get_u32(tb[NL80211_KEY_CIPHER]); cipher 1111 net/wireless/nl80211.c k->p.cipher = nla_get_u32(info->attrs[NL80211_ATTR_KEY_CIPHER]); cipher 1249 net/wireless/nl80211.c if (parse.p.cipher != WLAN_CIPHER_SUITE_WEP40 && cipher 1250 net/wireless/nl80211.c parse.p.cipher != WLAN_CIPHER_SUITE_WEP104) { cipher 1255 net/wireless/nl80211.c result->params[parse.idx].cipher = parse.p.cipher; cipher 3724 net/wireless/nl80211.c (params->cipher && cipher 3726 net/wireless/nl80211.c params->cipher))) cipher 3739 net/wireless/nl80211.c (params->cipher && cipher 3741 net/wireless/nl80211.c params->cipher))) cipher 8968 net/wireless/nl80211.c if ((key.p.cipher != WLAN_CIPHER_SUITE_WEP40 || cipher 8970 net/wireless/nl80211.c (key.p.cipher != WLAN_CIPHER_SUITE_WEP104 || cipher 8985 net/wireless/nl80211.c if (key.p.cipher == rdev->wiphy.cipher_suites[i]) { cipher 1207 net/wireless/sme.c u32 cipher; cipher 1210 net/wireless/sme.c cipher = connkeys->params[idx].cipher; cipher 1212 net/wireless/sme.c if (cipher == WLAN_CIPHER_SUITE_WEP40 || cipher 1213 net/wireless/sme.c cipher == WLAN_CIPHER_SUITE_WEP104) { cipher 1223 net/wireless/sme.c connect->crypto.cipher_group = cipher; cipher 1227 net/wireless/sme.c connect->crypto.ciphers_pairwise[0] = cipher; cipher 221 net/wireless/util.c bool cfg80211_supported_cipher_suite(struct wiphy *wiphy, u32 cipher) cipher 225 net/wireless/util.c if (cipher == wiphy->cipher_suites[i]) cipher 243 net/wireless/util.c switch (params->cipher) { cipher 290 net/wireless/util.c switch (params->cipher) { cipher 347 net/wireless/util.c switch (params->cipher) { cipher 367 net/wireless/util.c if (!cfg80211_supported_cipher_suite(&rdev->wiphy, params->cipher)) cipher 837 net/wireless/util.c if (!wdev->connect_keys->params[i].cipher) cipher 426 net/wireless/wext-compat.c if (params->cipher == WLAN_CIPHER_SUITE_AES_CMAC) { cipher 470 net/wireless/wext-compat.c wdev->wext.keys->params[idx].cipher = 0; cipher 493 net/wireless/wext-compat.c else if (params->cipher != WLAN_CIPHER_SUITE_WEP40 && cipher 494 net/wireless/wext-compat.c params->cipher != WLAN_CIPHER_SUITE_WEP104) cipher 504 net/wireless/wext-compat.c if (!addr && (params->cipher == WLAN_CIPHER_SUITE_WEP40 || cipher 505 net/wireless/wext-compat.c params->cipher == WLAN_CIPHER_SUITE_WEP104)) { cipher 513 net/wireless/wext-compat.c if ((params->cipher == WLAN_CIPHER_SUITE_WEP40 || cipher 514 net/wireless/wext-compat.c params->cipher == WLAN_CIPHER_SUITE_WEP104) && cipher 537 net/wireless/wext-compat.c if (params->cipher == WLAN_CIPHER_SUITE_AES_CMAC && cipher 613 net/wireless/wext-compat.c params.cipher = WLAN_CIPHER_SUITE_WEP40; cipher 615 net/wireless/wext-compat.c params.cipher = WLAN_CIPHER_SUITE_WEP104; cipher 635 net/wireless/wext-compat.c u32 cipher; cipher 650 net/wireless/wext-compat.c cipher = 0; cipher 654 net/wireless/wext-compat.c cipher = WLAN_CIPHER_SUITE_WEP40; cipher 656 net/wireless/wext-compat.c cipher = WLAN_CIPHER_SUITE_WEP104; cipher 661 net/wireless/wext-compat.c cipher = WLAN_CIPHER_SUITE_TKIP; cipher 664 net/wireless/wext-compat.c cipher = WLAN_CIPHER_SUITE_CCMP; cipher 667 net/wireless/wext-compat.c cipher = WLAN_CIPHER_SUITE_AES_CMAC; cipher 677 net/wireless/wext-compat.c if (cipher == WLAN_CIPHER_SUITE_AES_CMAC) { cipher 700 net/wireless/wext-compat.c params.cipher = cipher; cipher 738 net/wireless/wext-compat.c if (!wdev->wext.keys || !wdev->wext.keys->params[idx].cipher) { cipher 966 net/wireless/wext-compat.c static int cfg80211_set_cipher_group(struct wireless_dev *wdev, u32 cipher) cipher 968 net/wireless/wext-compat.c if (cipher & IW_AUTH_CIPHER_WEP40) cipher 971 net/wireless/wext-compat.c else if (cipher & IW_AUTH_CIPHER_WEP104) cipher 974 net/wireless/wext-compat.c else if (cipher & IW_AUTH_CIPHER_TKIP) cipher 977 net/wireless/wext-compat.c else if (cipher & IW_AUTH_CIPHER_CCMP) cipher 980 net/wireless/wext-compat.c else if (cipher & IW_AUTH_CIPHER_AES_CMAC) cipher 983 net/wireless/wext-compat.c else if (cipher & IW_AUTH_CIPHER_NONE) cipher 991 net/wireless/wext-compat.c static int cfg80211_set_cipher_pairwise(struct wireless_dev *wdev, u32 cipher) cipher 996 net/wireless/wext-compat.c if (cipher & IW_AUTH_CIPHER_WEP40) { cipher 1001 net/wireless/wext-compat.c if (cipher & IW_AUTH_CIPHER_WEP104) { cipher 1006 net/wireless/wext-compat.c if (cipher & IW_AUTH_CIPHER_TKIP) { cipher 1011 net/wireless/wext-compat.c if (cipher & IW_AUTH_CIPHER_CCMP) { cipher 1016 net/wireless/wext-compat.c if (cipher & IW_AUTH_CIPHER_AES_CMAC) {