Home
last modified time | relevance | path

Searched refs:encrypt (Results 1 – 135 of 135) sorted by relevance

/linux-4.1.27/drivers/crypto/
Dpadlock-aes.c63 struct cword encrypt; member
134 ctx->cword.encrypt.rounds = 10 + (key_len - 16) / 4; in aes_set_key()
135 ctx->cword.decrypt.rounds = ctx->cword.encrypt.rounds; in aes_set_key()
136 ctx->cword.encrypt.ksize = (key_len - 16) / 8; in aes_set_key()
137 ctx->cword.decrypt.ksize = ctx->cword.encrypt.ksize; in aes_set_key()
144 ctx->cword.encrypt.keygen = 1; in aes_set_key()
157 if (&ctx->cword.encrypt == per_cpu(paes_last_cword, cpu) || in aes_set_key()
303 padlock_reset_key(&ctx->cword.encrypt); in aes_encrypt()
305 ecb_crypt(in, out, ctx->E, &ctx->cword.encrypt, 1); in aes_encrypt()
307 padlock_store_cword(&ctx->cword.encrypt); in aes_encrypt()
[all …]
Dixp4xx_crypto.c163 int encrypt; member
179 struct ix_sa_dir encrypt; member
344 if (req_ctx->encrypt) { in finish_scattered_hmac()
560 ret = init_sa_dir(&ctx->encrypt); in init_tfm()
565 free_sa_dir(&ctx->encrypt); in init_tfm()
585 free_sa_dir(&ctx->encrypt); in exit_tfm()
645 static int setup_auth(struct crypto_tfm *tfm, int encrypt, unsigned authsize, in setup_auth() argument
656 dir = encrypt ? &ctx->encrypt : &ctx->decrypt; in setup_auth()
681 if (!encrypt) in setup_auth()
720 static int setup_cipher(struct crypto_tfm *tfm, int encrypt, in setup_cipher() argument
[all …]
Datmel-tdes.c936 .encrypt = atmel_tdes_ecb_encrypt,
957 .encrypt = atmel_tdes_cbc_encrypt,
978 .encrypt = atmel_tdes_cfb_encrypt,
999 .encrypt = atmel_tdes_cfb8_encrypt,
1020 .encrypt = atmel_tdes_cfb16_encrypt,
1041 .encrypt = atmel_tdes_cfb32_encrypt,
1062 .encrypt = atmel_tdes_ofb_encrypt,
1082 .encrypt = atmel_tdes_ecb_encrypt,
1103 .encrypt = atmel_tdes_cbc_encrypt,
1124 .encrypt = atmel_tdes_cfb_encrypt,
[all …]
Dn2_core.c208 bool sfas, bool sob, bool eob, bool encrypt, in control_word_base() argument
222 if (encrypt) in control_word_base()
827 struct spu_queue *qp, bool encrypt) in __n2_crypt_chunk() argument
845 false, true, false, encrypt, in __n2_crypt_chunk()
971 static int n2_do_ecb(struct ablkcipher_request *req, bool encrypt) in n2_do_ecb() argument
991 err = __n2_crypt_chunk(tfm, c, qp, encrypt); in n2_do_ecb()
1023 static int n2_do_chaining(struct ablkcipher_request *req, bool encrypt) in n2_do_chaining() argument
1045 if (encrypt) { in n2_do_chaining()
1132 .encrypt = n2_encrypt_ecb,
1147 .encrypt = n2_encrypt_ecb,
[all …]
Dpicoxcell_crypto.c1318 .encrypt = spacc_ablk_encrypt,
1345 .encrypt = spacc_ablk_encrypt,
1371 .encrypt = spacc_ablk_encrypt,
1398 .encrypt = spacc_ablk_encrypt,
1424 .encrypt = spacc_ablk_encrypt,
1451 .encrypt = spacc_ablk_encrypt,
1479 .encrypt = spacc_aead_encrypt,
1509 .encrypt = spacc_aead_encrypt,
1538 .encrypt = spacc_aead_encrypt,
1567 .encrypt = spacc_aead_encrypt,
[all …]
Datmel-aes.c976 .encrypt = atmel_aes_ecb_encrypt,
997 .encrypt = atmel_aes_cbc_encrypt,
1018 .encrypt = atmel_aes_ofb_encrypt,
1039 .encrypt = atmel_aes_cfb_encrypt,
1060 .encrypt = atmel_aes_cfb32_encrypt,
1081 .encrypt = atmel_aes_cfb16_encrypt,
1102 .encrypt = atmel_aes_cfb8_encrypt,
1123 .encrypt = atmel_aes_ctr_encrypt,
1146 .encrypt = atmel_aes_cfb64_encrypt,
Dhifn_795x.c2345 .encrypt = hifn_encrypt_3des_cfb,
2355 .encrypt = hifn_encrypt_3des_ofb,
2366 .encrypt = hifn_encrypt_3des_cbc,
2376 .encrypt = hifn_encrypt_3des_ecb,
2390 .encrypt = hifn_encrypt_des_cfb,
2400 .encrypt = hifn_encrypt_des_ofb,
2411 .encrypt = hifn_encrypt_des_cbc,
2421 .encrypt = hifn_encrypt_des_ecb,
2435 .encrypt = hifn_encrypt_aes_ecb,
2446 .encrypt = hifn_encrypt_aes_cbc,
[all …]
Domap-des.c798 .encrypt = omap_des_ecb_encrypt,
821 .encrypt = omap_des_cbc_encrypt,
843 .encrypt = omap_des_ecb_encrypt,
866 .encrypt = omap_des_cbc_encrypt,
Dtalitos.c1124 bool encrypt) in talitos_edesc_alloc() argument
1162 src_nents = sg_count(src, cryptlen + (encrypt ? 0 : authsize), in talitos_edesc_alloc()
1165 dst_nents = sg_count(dst, cryptlen + (encrypt ? authsize : 0), in talitos_edesc_alloc()
1218 int icv_stashing, bool encrypt) in aead_edesc_alloc() argument
1227 areq->base.flags, encrypt); in aead_edesc_alloc()
1462 areq, bool encrypt) in ablkcipher_edesc_alloc() argument
1470 areq->base.flags, encrypt); in ablkcipher_edesc_alloc()
2522 alg->cra_ablkcipher.encrypt = ablkcipher_encrypt; in talitos_alg_alloc()
2532 alg->cra_aead.encrypt = aead_encrypt; in talitos_alg_alloc()
Dgeode-aes.c409 .encrypt = geode_cbc_encrypt,
495 .encrypt = geode_ecb_encrypt,
Ds5p-sss.c613 .encrypt = s5p_aes_ecb_encrypt,
635 .encrypt = s5p_aes_cbc_encrypt,
Domap-aes.c851 .encrypt = omap_aes_ecb_encrypt,
874 .encrypt = omap_aes_cbc_encrypt,
901 .encrypt = omap_aes_ctr_encrypt,
Dmxs-dcp.c799 .encrypt = mxs_dcp_aes_ecb_encrypt,
822 .encrypt = mxs_dcp_aes_cbc_encrypt,
Dmv_cesa.c943 .encrypt = mv_enc_aes_ecb,
967 .encrypt = mv_enc_aes_cbc,
Dsahara.c1290 .encrypt = sahara_aes_ecb_encrypt,
1311 .encrypt = sahara_aes_cbc_encrypt,
/linux-4.1.27/arch/x86/crypto/
Dsalsa20_glue.c48 static int encrypt(struct blkcipher_desc *desc, in encrypt() function
98 .encrypt = encrypt,
99 .decrypt = encrypt,
Dtwofish_avx_glue.c355 .encrypt = ecb_encrypt,
375 .encrypt = cbc_encrypt,
396 .encrypt = ctr_crypt,
420 .encrypt = lrw_encrypt,
441 .encrypt = xts_encrypt,
462 .encrypt = ablk_encrypt,
484 .encrypt = __ablk_encrypt,
506 .encrypt = ablk_encrypt,
531 .encrypt = ablk_encrypt,
553 .encrypt = ablk_encrypt,
Dserpent_avx2_glue.c325 .encrypt = ecb_encrypt,
346 .encrypt = cbc_encrypt,
368 .encrypt = ctr_crypt,
393 .encrypt = lrw_encrypt,
415 .encrypt = xts_encrypt,
437 .encrypt = ablk_encrypt,
460 .encrypt = __ablk_encrypt,
483 .encrypt = ablk_encrypt,
509 .encrypt = ablk_encrypt,
532 .encrypt = ablk_encrypt,
Dcast6_avx_glue.c387 .encrypt = ecb_encrypt,
407 .encrypt = cbc_encrypt,
428 .encrypt = ctr_crypt,
452 .encrypt = lrw_encrypt,
473 .encrypt = xts_encrypt,
494 .encrypt = ablk_encrypt,
516 .encrypt = __ablk_encrypt,
538 .encrypt = ablk_encrypt,
563 .encrypt = ablk_encrypt,
585 .encrypt = ablk_encrypt,
Dcamellia_aesni_avx2_glue.c358 .encrypt = ecb_encrypt,
378 .encrypt = cbc_encrypt,
399 .encrypt = ctr_crypt,
423 .encrypt = lrw_encrypt,
444 .encrypt = xts_encrypt,
465 .encrypt = ablk_encrypt,
487 .encrypt = __ablk_encrypt,
509 .encrypt = ablk_encrypt,
534 .encrypt = ablk_encrypt,
556 .encrypt = ablk_encrypt,
Dserpent_avx_glue.c393 .encrypt = ecb_encrypt,
413 .encrypt = cbc_encrypt,
434 .encrypt = ctr_crypt,
458 .encrypt = lrw_encrypt,
479 .encrypt = xts_encrypt,
500 .encrypt = ablk_encrypt,
522 .encrypt = __ablk_encrypt,
544 .encrypt = ablk_encrypt,
569 .encrypt = ablk_encrypt,
591 .encrypt = ablk_encrypt,
Dcamellia_aesni_avx_glue.c350 .encrypt = ecb_encrypt,
370 .encrypt = cbc_encrypt,
391 .encrypt = ctr_crypt,
415 .encrypt = lrw_encrypt,
436 .encrypt = xts_encrypt,
457 .encrypt = ablk_encrypt,
479 .encrypt = __ablk_encrypt,
501 .encrypt = ablk_encrypt,
526 .encrypt = ablk_encrypt,
548 .encrypt = ablk_encrypt,
Dserpent_sse2_glue.c402 .encrypt = ecb_encrypt,
422 .encrypt = cbc_encrypt,
443 .encrypt = ctr_crypt,
467 .encrypt = lrw_encrypt,
488 .encrypt = xts_encrypt,
509 .encrypt = ablk_encrypt,
531 .encrypt = __ablk_encrypt,
553 .encrypt = ablk_encrypt,
578 .encrypt = ablk_encrypt,
600 .encrypt = ablk_encrypt,
Dcast5_avx_glue.c356 .encrypt = ecb_encrypt,
376 .encrypt = cbc_encrypt,
397 .encrypt = ctr_crypt,
418 .encrypt = ablk_encrypt,
440 .encrypt = __ablk_encrypt,
462 .encrypt = ablk_encrypt,
Dtwofish_glue_3way.c350 .encrypt = ecb_encrypt,
370 .encrypt = cbc_encrypt,
390 .encrypt = ctr_crypt,
411 .encrypt = lrw_encrypt,
431 .encrypt = xts_encrypt,
Daesni-intel_glue.c1299 .encrypt = ecb_encrypt,
1320 .encrypt = cbc_encrypt,
1341 .encrypt = ablk_encrypt,
1363 .encrypt = ablk_encrypt,
1386 .encrypt = ctr_crypt,
1408 .encrypt = ablk_encrypt,
1428 .encrypt = helper_rfc4106_encrypt,
1451 .encrypt = rfc4106_encrypt,
1478 .encrypt = ablk_encrypt,
1501 .encrypt = lrw_encrypt,
[all …]
Dfpu.c57 err = crypto_blkcipher_crt(desc.tfm)->encrypt(&desc, dst, src, nbytes); in crypto_fpu_encrypt()
133 inst->alg.cra_blkcipher.encrypt = crypto_fpu_encrypt; in crypto_fpu_alloc()
Dblowfish_glue.c391 .encrypt = ecb_encrypt,
411 .encrypt = cbc_encrypt,
431 .encrypt = ctr_crypt,
Ddes3_ede_glue.c418 .encrypt = ecb_encrypt,
438 .encrypt = cbc_encrypt,
458 .encrypt = ctr_crypt,
Dcamellia_glue.c1594 .encrypt = ecb_encrypt,
1614 .encrypt = cbc_encrypt,
1634 .encrypt = ctr_crypt,
1657 .encrypt = lrw_encrypt,
1677 .encrypt = xts_encrypt,
Daesni-intel_avx-x86_64.S353 ## encrypt the initial num_initial_blocks blocks and apply ghash on the ciphertext
629 # encrypt 8 blocks at a time
1144 # combined for GCM encrypt and decrypt functions
1612 ## encrypt the initial num_initial_blocks blocks and apply ghash on the ciphertext
1893 # encrypt 8 blocks at a time
2421 # combined for GCM encrypt and decrypt functions
/linux-4.1.27/drivers/net/wireless/ipw2x00/
Dlibipw_tx.c263 int encrypt, host_encrypt, host_encrypt_msdu; in libipw_xmit() local
299 encrypt = !(ether_type == htons(ETH_P_PAE) && ieee->ieee802_1x) && in libipw_xmit()
300 ieee->sec.encrypt; in libipw_xmit()
302 host_encrypt = ieee->host_encrypt && encrypt && crypt; in libipw_xmit()
303 host_encrypt_msdu = ieee->host_encrypt_msdu && encrypt && crypt; in libipw_xmit()
305 if (!encrypt && ieee->ieee802_1x && in libipw_xmit()
433 txb->encrypted = encrypt; in libipw_xmit()
Dlibipw_wx.c362 sec.encrypt = 0; in libipw_wx_set_encode()
371 sec.encrypt = 1; in libipw_wx_set_encode()
568 sec.encrypt = 0; in libipw_wx_set_encodeext()
576 sec.encrypt = 1; in libipw_wx_set_encodeext()
Dlibipw.h311 u16 active_key:2, enabled:1, unicast_uses_group:1, encrypt:1; member
Dipw2200.c2098 if (priv->ieee->sec.encrypt) { in ipw_irq_tasklet()
10768 priv->ieee->sec.encrypt = sec->encrypt; in shim__set_security()
Dipw2100.c5627 priv->ieee->sec.encrypt = sec->encrypt; in shim__set_security()
/linux-4.1.27/drivers/crypto/ccp/
Dccp-crypto-aes.c70 static int ccp_aes_crypt(struct ablkcipher_request *req, bool encrypt) in ccp_aes_crypt() argument
103 (encrypt) ? CCP_AES_ACTION_ENCRYPT : CCP_AES_ACTION_DECRYPT; in ccp_aes_crypt()
169 static int ccp_aes_rfc3686_crypt(struct ablkcipher_request *req, bool encrypt) in ccp_aes_rfc3686_crypt() argument
189 return ccp_aes_crypt(req, encrypt); in ccp_aes_rfc3686_crypt()
232 .encrypt = ccp_aes_encrypt,
253 .encrypt = ccp_aes_rfc3686_encrypt,
Dccp-crypto-aes-xts.c118 unsigned int encrypt) in ccp_aes_xts_crypt() argument
153 ret = (encrypt) ? crypto_ablkcipher_encrypt(req) : in ccp_aes_xts_crypt()
166 rctx->cmd.u.xts.action = (encrypt) ? CCP_AES_ACTION_ENCRYPT in ccp_aes_xts_crypt()
251 alg->cra_ablkcipher.encrypt = ccp_aes_xts_encrypt; in ccp_register_aes_xts_alg()
/linux-4.1.27/arch/arm64/crypto/
Daes-glue.c299 .encrypt = ecb_encrypt,
318 .encrypt = cbc_encrypt,
337 .encrypt = ctr_encrypt,
356 .encrypt = xts_encrypt,
376 .encrypt = ablk_encrypt,
396 .encrypt = ablk_encrypt,
416 .encrypt = ablk_encrypt,
436 .encrypt = ablk_encrypt,
Daes-ce-ccm-glue.c276 .encrypt = ccm_encrypt,
/linux-4.1.27/arch/arm/crypto/
Daes-ce-glue.c369 .encrypt = ecb_encrypt,
388 .encrypt = cbc_encrypt,
407 .encrypt = ctr_encrypt,
426 .encrypt = xts_encrypt,
446 .encrypt = ablk_encrypt,
466 .encrypt = ablk_encrypt,
486 .encrypt = ablk_encrypt,
506 .encrypt = ablk_encrypt,
Daesbs-glue.c316 .encrypt = aesbs_cbc_encrypt,
335 .encrypt = aesbs_ctr_encrypt,
354 .encrypt = aesbs_xts_encrypt,
374 .encrypt = __ablk_encrypt,
394 .encrypt = ablk_encrypt,
414 .encrypt = ablk_encrypt,
Daesbs-core.S_shipped24 @ encrypt 19.5 cycles per byte processed with 128-bit key
/linux-4.1.27/arch/sparc/crypto/
Daes_glue.c34 void (*encrypt)(const u64 *key, const u32 *input, u32 *output); member
128 .encrypt = aes_sparc64_encrypt_128,
140 .encrypt = aes_sparc64_encrypt_192,
152 .encrypt = aes_sparc64_encrypt_256,
203 ctx->ops->encrypt(&ctx->key[0], (const u32 *) src, (u32 *) dst); in aes_encrypt()
418 .encrypt = ecb_encrypt,
438 .encrypt = cbc_encrypt,
458 .encrypt = ctr_crypt,
Ddes_glue.c95 unsigned int nbytes, bool encrypt) in __ecb_crypt() argument
105 if (encrypt) in __ecb_crypt()
263 unsigned int nbytes, bool encrypt) in __ecb3_crypt() argument
274 if (encrypt) in __ecb3_crypt()
414 .encrypt = ecb_encrypt,
434 .encrypt = cbc_encrypt,
471 .encrypt = ecb3_encrypt,
491 .encrypt = cbc3_encrypt,
Dcamellia_glue.c87 unsigned int nbytes, bool encrypt) in __ecb_crypt() argument
103 if (encrypt) in __ecb_crypt()
259 .encrypt = ecb_encrypt,
279 .encrypt = cbc_encrypt,
/linux-4.1.27/drivers/staging/rtl8192u/ieee80211/
Dieee80211_tx.c605 int ether_type = 0, encrypt; in ieee80211_xmit() local
644 encrypt = !(ether_type == ETH_P_PAE && ieee->ieee802_1x) && in ieee80211_xmit()
647 if (!encrypt && ieee->ieee802_1x && in ieee80211_xmit()
653 if (crypt && !encrypt && ether_type == ETH_P_PAE) { in ieee80211_xmit()
671 if (encrypt) in ieee80211_xmit()
732 if (encrypt) in ieee80211_xmit()
754 txb->encrypted = encrypt; in ieee80211_xmit()
779 if (encrypt){ in ieee80211_xmit()
828 if (encrypt) in ieee80211_xmit()
Dieee80211_softmac.c696 int encrypt; in ieee80211_probe_resp() local
731 encrypt = ieee->host_encrypt && crypt && crypt->ops && in ieee80211_probe_resp()
738 HTConstructCapabilityElement(ieee, tmp_ht_cap_buf, &tmp_ht_cap_len,encrypt); in ieee80211_probe_resp()
739 HTConstructInfoElement(ieee,tmp_ht_info_buf,&tmp_ht_info_len, encrypt); in ieee80211_probe_resp()
783 if (encrypt) in ieee80211_probe_resp()
850 short encrypt; in ieee80211_assoc_resp() local
880 encrypt = crypt && crypt->ops; in ieee80211_assoc_resp()
882 if (encrypt) in ieee80211_assoc_resp()
1005 int encrypt; in ieee80211_association_req() local
1016encrypt = ieee->host_encrypt && crypt && crypt->ops && ((0 == strcmp(crypt->ops->name,"WEP") || wp… in ieee80211_association_req()
[all …]
Dieee80211.h967 encrypt:1; member
/linux-4.1.27/crypto/
Dsalsa20_generic.c177 static int encrypt(struct blkcipher_desc *desc, in encrypt() function
227 .encrypt = encrypt,
228 .decrypt = encrypt,
Dblkcipher.c429 return alg->encrypt(&desc, req->dst, req->src, req->nbytes); in async_encrypt()
466 crt->encrypt = async_encrypt; in crypto_init_blkcipher_ops_async()
486 crt->encrypt = alg->encrypt; in crypto_init_blkcipher_ops_sync()
587 int (*encrypt)(struct ablkcipher_request *req); in skcipher_geniv_alloc() member
638 balg.encrypt = async_encrypt; in skcipher_geniv_alloc()
648 balg.encrypt = alg->cra_ablkcipher.encrypt; in skcipher_geniv_alloc()
698 inst->alg.cra_ablkcipher.encrypt = balg.encrypt; in skcipher_geniv_alloc()
Daead.c103 crt->encrypt = alg->encrypt; in crypto_init_aead_ops()
186 crt->encrypt = alg->encrypt; in crypto_init_nivaead_ops()
352 inst->alg.cra_aead.encrypt = alg->cra_aead.encrypt; in aead_geniv_alloc()
Dxts.c147 static int encrypt(struct blkcipher_desc *desc, struct scatterlist *dst, in encrypt() function
329 inst->alg.cra_blkcipher.encrypt = encrypt; in alloc()
Dlrw.c195 static int encrypt(struct blkcipher_desc *desc, struct scatterlist *dst, in encrypt() function
367 inst->alg.cra_blkcipher.encrypt = encrypt; in alloc()
Dablkcipher.c372 crt->encrypt = alg->encrypt; in crypto_init_ablkcipher_ops()
455 crt->encrypt = alg->encrypt; in crypto_init_givcipher_ops()
Dablk_helper.c64 return crypto_blkcipher_crt(desc.tfm)->encrypt( in __ablk_encrypt()
Dcrypto_null.c135 .encrypt = skcipher_null_crypt,
Darc4.c147 .encrypt = ecb_arc4_crypt,
Dcryptd.c237 crypto_blkcipher_crt(child)->encrypt); in cryptd_blkcipher_encrypt()
379 inst->alg.cra_ablkcipher.encrypt = cryptd_blkcipher_encrypt_enqueue; in cryptd_create_blkcipher()
683 cryptd_aead_crypt(req, child, err, crypto_aead_crt(child)->encrypt); in cryptd_aead_encrypt()
785 inst->alg.cra_aead.encrypt = cryptd_aead_encrypt_enqueue; in cryptd_create_aead()
Decb.c152 inst->alg.cra_blkcipher.encrypt = crypto_ecb_encrypt; in crypto_ecb_alloc()
Dctr.c225 inst->alg.cra_blkcipher.encrypt = crypto_ctr_crypt; in crypto_ctr_alloc()
406 inst->alg.cra_ablkcipher.encrypt = crypto_rfc3686_crypt; in crypto_rfc3686_alloc()
Dcbc.c256 inst->alg.cra_blkcipher.encrypt = crypto_cbc_encrypt; in crypto_cbc_alloc()
Dpcbc.c262 inst->alg.cra_blkcipher.encrypt = crypto_pcbc_encrypt; in crypto_pcbc_alloc()
Dcts.c319 inst->alg.cra_blkcipher.encrypt = crypto_cts_encrypt; in crypto_cts_alloc()
Dccm.c555 inst->alg.cra_aead.encrypt = crypto_ccm_encrypt; in crypto_ccm_alloc_common()
815 inst->alg.cra_aead.encrypt = crypto_rfc4309_encrypt; in crypto_rfc4309_alloc()
Dgcm.c775 inst->alg.cra_aead.encrypt = crypto_gcm_encrypt; in crypto_gcm_alloc_common()
1032 inst->alg.cra_aead.encrypt = crypto_rfc4106_encrypt; in crypto_rfc4106_alloc()
1357 inst->alg.cra_aead.encrypt = crypto_rfc4543_encrypt; in crypto_rfc4543_alloc()
Dpcrypt.c375 inst->alg.cra_aead.encrypt = pcrypt_aead_encrypt; in pcrypt_alloc_aead()
Dauthenc.c674 inst->alg.cra_aead.encrypt = crypto_authenc_encrypt; in crypto_authenc_alloc()
Dauthencesn.c766 inst->alg.cra_aead.encrypt = crypto_authenc_esn_encrypt; in crypto_authenc_esn_alloc()
/linux-4.1.27/drivers/staging/rtl8192e/
Drtllib_tx.c574 int ether_type = 0, encrypt; in rtllib_xmit_inter() local
661 encrypt = !(ether_type == ETH_P_PAE && ieee->ieee802_1x) && in rtllib_xmit_inter()
663 if (!encrypt && ieee->ieee802_1x && in rtllib_xmit_inter()
668 if (crypt && !encrypt && ether_type == ETH_P_PAE) { in rtllib_xmit_inter()
682 if (encrypt) in rtllib_xmit_inter()
760 if (encrypt) { in rtllib_xmit_inter()
786 txb->encrypted = encrypt; in rtllib_xmit_inter()
807 if (encrypt) { in rtllib_xmit_inter()
861 if (encrypt) in rtllib_xmit_inter()
Drtllib_softmac.c840 int encrypt; in rtllib_probe_resp() local
878 encrypt = ieee->host_encrypt && crypt && crypt->ops && in rtllib_probe_resp()
886 &tmp_ht_cap_len, encrypt, false); in rtllib_probe_resp()
888 encrypt); in rtllib_probe_resp()
930 if (encrypt) in rtllib_probe_resp()
990 short encrypt; in rtllib_assoc_resp() local
1023 encrypt = (crypt && crypt->ops); in rtllib_assoc_resp()
1025 if (encrypt) in rtllib_assoc_resp()
1185 int encrypt; in rtllib_association_req() local
1200 encrypt = ieee->host_encrypt && crypt && crypt->ops && in rtllib_association_req()
[all …]
Drtllib.h1047 encrypt:1; member
/linux-4.1.27/drivers/crypto/caam/
Dcaamalg.c2348 bool all_contig, bool encrypt) in init_aead_job() argument
2419 if (encrypt) in init_aead_job()
2613 bool encrypt) in aead_edesc_alloc() argument
2637 (encrypt ? authsize : (-authsize)), in aead_edesc_alloc()
2642 (encrypt ? authsize : 0), in aead_edesc_alloc()
3403 .encrypt = aead_encrypt,
3422 .encrypt = aead_encrypt,
3441 .encrypt = aead_encrypt,
3461 .encrypt = aead_encrypt,
3481 .encrypt = aead_encrypt,
[all …]
/linux-4.1.27/include/linux/
Dcrypto.h284 int (*encrypt)(struct ablkcipher_request *req); member
326 int (*encrypt)(struct aead_request *req); member
352 int (*encrypt)(struct blkcipher_desc *desc, member
594 int (*encrypt)(struct ablkcipher_request *req); member
608 int (*encrypt)(struct aead_request *req); member
624 int (*encrypt)(struct blkcipher_desc *desc, struct scatterlist *dst, member
1036 return crt->encrypt(req); in crypto_ablkcipher_encrypt()
1394 return crypto_aead_crt(crypto_aead_reqtfm(req))->encrypt(req); in crypto_aead_encrypt()
1814 return crypto_blkcipher_crt(desc->tfm)->encrypt(desc, dst, src, nbytes); in crypto_blkcipher_encrypt()
1841 return crypto_blkcipher_crt(desc->tfm)->encrypt(desc, dst, src, nbytes); in crypto_blkcipher_encrypt_iv()
/linux-4.1.27/arch/s390/crypto/
Ddes_s390.c179 .encrypt = ecb_des_encrypt,
220 .encrypt = cbc_des_encrypt,
325 .encrypt = ecb_des3_encrypt,
366 .encrypt = cbc_des3_encrypt,
489 .encrypt = ctr_des_encrypt,
532 .encrypt = ctr_des3_encrypt,
Daes_s390.c408 .encrypt = ecb_aes_encrypt,
525 .encrypt = cbc_aes_encrypt,
732 .encrypt = xts_aes_encrypt,
883 .encrypt = ctr_aes_encrypt,
/linux-4.1.27/drivers/staging/rtl8712/
Drtl871x_recv.c172 if (prxattrib->encrypt == _TKIP_) { in r8712_recvframe_chkmic()
226 if ((prxattrib->encrypt > 0) && ((prxattrib->bdecrypted == 0) || in r8712_decryptor()
229 switch (prxattrib->encrypt) { in r8712_decryptor()
544 GET_ENCRY_ALGO(psecuritypriv, psta, pattrib->encrypt, in validate_recv_data_frame()
547 pattrib->encrypt); in validate_recv_data_frame()
549 pattrib->encrypt = 0; in validate_recv_data_frame()
613 if (pattrib->encrypt) in r8712_wlanhdr_to_ethhdr()
Drtl871x_security.h160 #define SET_ICE_IV_LEN(iv_len, icv_len, encrypt)\ argument
162 switch (encrypt) { \
Drtl871x_xmit.c304 pattrib->encrypt = 0; in r8712_update_attrib()
309 GET_ENCRY_ALGO(psecuritypriv, psta, pattrib->encrypt, bmcast); in r8712_update_attrib()
310 switch (pattrib->encrypt) { in r8712_update_attrib()
332 if (pattrib->encrypt && in r8712_update_attrib()
364 if (pattrib->encrypt == _TKIP_) { in xmitframe_addmic()
455 switch (pattrib->encrypt) { in xmitframe_swencrypt()
515 if (pattrib->encrypt) in make_wlanhdr()
632 switch (pattrib->encrypt) { in r8712_xmitframe_coalesce()
Drtl871x_security.c183 if ((pattrib->encrypt == _WEP40_) || (pattrib->encrypt == _WEP104_)) { in r8712_wep_encrypt()
237 if ((prxattrib->encrypt == _WEP40_) || (prxattrib->encrypt == in r8712_wep_decrypt()
595 if (pattrib->encrypt == _TKIP_) { in r8712_tkip_encrypt()
668 if (prxattrib->encrypt == _TKIP_) { in r8712_tkip_decrypt()
1166 if (pattrib->encrypt == _AES_) { in r8712_aes_encrypt()
1371 if (prxattrib->encrypt == _AES_) { in r8712_aes_decrypt()
Drtl871x_recv.h55 int encrypt; /* 0 no encrypt. != 0 encrypt algorith */ member
Drtl871x_xmit.h121 u8 encrypt; /* when 0 indicate no encrypt. when non-zero, member
Drtl8712_xmit.c500 if ((pattrib->encrypt > 0) && !pattrib->bswenc) { in update_txdesc()
501 switch (pattrib->encrypt) { /*SEC_TYPE*/ in update_txdesc()
/linux-4.1.27/drivers/crypto/qce/
Dablkcipher.c203 static int qce_ablkcipher_crypt(struct ablkcipher_request *req, int encrypt) in qce_ablkcipher_crypt() argument
213 rctx->flags |= encrypt ? QCE_ENCRYPT : QCE_DECRYPT; in qce_ablkcipher_crypt()
218 ret = encrypt ? crypto_ablkcipher_encrypt(req) : in qce_ablkcipher_crypt()
368 alg->cra_ablkcipher.encrypt = qce_ablkcipher_encrypt; in qce_ablkcipher_register_one()
/linux-4.1.27/drivers/crypto/nx/
Dnx-aes-ctr.c163 .encrypt = ctr_aes_nx_crypt,
185 .encrypt = ctr3686_aes_nx_crypt,
Dnx-aes-cbc.c147 .encrypt = cbc_aes_nx_encrypt,
Dnx-aes-ecb.c146 .encrypt = ecb_aes_nx_encrypt,
Dnx-aes-gcm.c503 .encrypt = gcm_aes_nx_encrypt,
525 .encrypt = gcm4106_aes_nx_encrypt,
Dnx-aes-ccm.c580 .encrypt = ccm_aes_nx_encrypt,
602 .encrypt = ccm4309_aes_nx_encrypt,
/linux-4.1.27/drivers/staging/rtl8188eu/core/
Drtw_recv.c303 if (prxattrib->encrypt == _TKIP_) { in recvframe_chkmic()
435 … ("prxstat->decrypted=%x prxattrib->encrypt=0x%03x\n", prxattrib->bdecrypted, prxattrib->encrypt)); in decryptor()
437 if (prxattrib->encrypt > 0) { in decryptor()
444 switch (prxattrib->encrypt) { in decryptor()
458 if ((prxattrib->encrypt > 0) && ((prxattrib->bdecrypted == 0) || (psecuritypriv->sw_decrypt))) { in decryptor()
461 switch (prxattrib->encrypt) { in decryptor()
475 } else if (prxattrib->bdecrypted == 1 && prxattrib->encrypt > 0 && in decryptor()
476 (psecuritypriv->busetkipkey == 1 || prxattrib->encrypt != _TKIP_)) in decryptor()
1241 GET_ENCRY_ALGO(psecuritypriv, psta, pattrib->encrypt, IS_MCAST(pattrib->ra)); in validate_recv_data_frame()
1243 RT_TRACE(_module_rtl871x_recv_c_, _drv_info_, ("\n pattrib->encrypt=%d\n", pattrib->encrypt)); in validate_recv_data_frame()
[all …]
Drtw_xmit.c547 pattrib->encrypt = 0; in update_attrib()
555 GET_ENCRY_ALGO(psecuritypriv, psta, pattrib->encrypt, bmcast); in update_attrib()
575 switch (pattrib->encrypt) { in update_attrib()
594 …RT_TRACE(_module_rtl871x_xmit_c_, _drv_info_, ("pattrib->encrypt=%d (_AES_)\n", pattrib->encrypt)); in update_attrib()
606 pattrib->encrypt, padapter->securitypriv.sw_encrypt)); in update_attrib()
608 if (pattrib->encrypt && in update_attrib()
613 pattrib->encrypt, padapter->securitypriv.sw_encrypt)); in update_attrib()
648 if (pattrib->encrypt == _TKIP_) {/* if (psecuritypriv->dot11PrivacyAlgrthm == _TKIP_PRIVACY_) */ in xmitframe_addmic()
753 switch (pattrib->encrypt) { in xmitframe_swencrypt()
843 if (pattrib->encrypt) in rtw_make_wlanhdr()
[all …]
Drtw_security.c167 if ((pattrib->encrypt == _WEP40_) || (pattrib->encrypt == _WEP104_)) { in rtw_wep_encrypt()
215 if ((prxattrib->encrypt == _WEP40_) || (prxattrib->encrypt == _WEP104_)) { in rtw_wep_decrypt()
588 if (pattrib->encrypt == _TKIP_) { in rtw_tkip_encrypt()
664 if (prxattrib->encrypt == _TKIP_) { in rtw_tkip_decrypt()
1222 if (pattrib->encrypt == _AES_) { in rtw_aes_encrypt()
1463 if (prxattrib->encrypt == _AES_) { in rtw_aes_decrypt()
Drtw_mlme_ext.c1875 pattrib->encrypt = _NO_PRIVACY_; in update_mgntframe_attrib()
2522 pattrib->encrypt = _WEP40_; in issue_auth()
/linux-4.1.27/drivers/staging/rtl8723au/core/
Drtw_recv.c300 if (prxattrib->encrypt == WLAN_CIPHER_SUITE_TKIP) { in recvframe_chkmic()
470 prxattrib->bdecrypted, prxattrib->encrypt); in decryptor()
472 if (prxattrib->encrypt > 0) { in decryptor()
481 switch (prxattrib->encrypt) { in decryptor()
497 if ((prxattrib->encrypt > 0) && ((prxattrib->bdecrypted == 0))) { in decryptor()
499 switch (prxattrib->encrypt) { in decryptor()
513 } else if (prxattrib->bdecrypted == 1 && prxattrib->encrypt > 0 && in decryptor()
515 prxattrib->encrypt != WLAN_CIPHER_SUITE_TKIP)) { in decryptor()
1353 GET_ENCRY_ALGO(psecuritypriv, psta, pattrib->encrypt, in validate_recv_data_frame()
1357 "pattrib->encrypt =%d\n", pattrib->encrypt); in validate_recv_data_frame()
[all …]
Drtw_xmit.c547 pattrib->encrypt = 0; in update_attrib()
558 GET_ENCRY_ALGO(psecuritypriv, psta, pattrib->encrypt, bmcast); in update_attrib()
581 switch (pattrib->encrypt) { in update_attrib()
604 pattrib->encrypt); in update_attrib()
616 "update_attrib: encrypt =%d\n", pattrib->encrypt); in update_attrib()
618 if (pattrib->encrypt && !psecuritypriv->hw_decrypted) { in update_attrib()
622 pattrib->encrypt); in update_attrib()
668 if (pattrib->encrypt == WLAN_CIPHER_SUITE_TKIP) { in xmitframe_addmic()
814 switch (pattrib->encrypt) { in xmitframe_swencrypt()
917 if (pattrib->encrypt) in rtw_make_wlanhdr()
[all …]
Drtw_security.c170 if (pattrib->encrypt != WLAN_CIPHER_SUITE_WEP40 && in rtw_wep_encrypt23a()
171 pattrib->encrypt != WLAN_CIPHER_SUITE_WEP104) in rtw_wep_encrypt23a()
226 if (prxattrib->encrypt != WLAN_CIPHER_SUITE_WEP40 && in rtw_wep_decrypt23a()
227 prxattrib->encrypt != WLAN_CIPHER_SUITE_WEP104) in rtw_wep_decrypt23a()
618 if (pattrib->encrypt != WLAN_CIPHER_SUITE_TKIP) in rtw_tkip_encrypt23a()
727 if (prxattrib->encrypt != WLAN_CIPHER_SUITE_TKIP) in rtw_tkip_decrypt23a()
1304 if (pattrib->encrypt != WLAN_CIPHER_SUITE_CCMP) in rtw_aes_encrypt23a()
1582 if (prxattrib->encrypt != WLAN_CIPHER_SUITE_CCMP) in rtw_aes_decrypt23a()
Drtw_mlme_ext.c2246 pattrib->encrypt = 0; in update_mgntframe_attrib23a()
2955 pattrib->encrypt = WLAN_CIPHER_SUITE_WEP40; in issue_auth()
/linux-4.1.27/net/sunrpc/auth_gss/
Dgss_krb5_mech.c64 .encrypt = krb5_encrypt,
85 .encrypt = krb5_encrypt,
106 .encrypt = krb5_encrypt,
127 .encrypt = krb5_encrypt,
150 .encrypt = krb5_encrypt,
Dgss_krb5_crypto.c293 err = kctx->gk5e->encrypt(kctx->seq, NULL, checksumdata, in make_checksum()
598 u32 offset, u8 *iv, struct page **pages, int encrypt) in gss_krb5_cts_crypt() argument
618 if (encrypt) in gss_krb5_cts_crypt()
628 if (encrypt) in gss_krb5_cts_crypt()
Dgss_krb5_keys.c201 (*(gk5e->encrypt))(cipher, NULL, inblock.data, in krb5_derive_key()
/linux-4.1.27/drivers/crypto/ux500/cryp/
Dcryp_core.c1127 .encrypt = cryp_blk_encrypt,
1152 .encrypt = cryp_blk_encrypt,
1177 .encrypt = cryp_blk_encrypt,
1203 .encrypt = cryp_blk_encrypt,
1229 .encrypt = cryp_blk_encrypt,
1255 .encrypt = cryp_blk_encrypt,
1280 .encrypt = cryp_blk_encrypt,
1305 .encrypt = cryp_blk_encrypt,
1330 .encrypt = cryp_blk_encrypt,
1355 .encrypt = cryp_blk_encrypt,
/linux-4.1.27/arch/powerpc/crypto/
Daes-spe-glue.c425 .encrypt = ppc_ecb_encrypt,
445 .encrypt = ppc_cbc_encrypt,
465 .encrypt = ppc_ctr_crypt,
485 .encrypt = ppc_xts_encrypt,
/linux-4.1.27/drivers/staging/rtl8188eu/include/
Drtw_security.h198 #define SET_ICE_IV_LEN(iv_len, icv_len, encrypt) \ argument
200 switch (encrypt) { \
Drtw_recv.h120 u8 encrypt; /* when 0 indicate no encrypt. when non-zero, member
Drtw_xmit.h127 u8 encrypt; /* when 0 indicate no encrypt. when non-zero, member
/linux-4.1.27/net/bluetooth/
Dhci_conn.c1004 cp.encrypt = 0x01; in hci_conn_encrypt()
1036 goto encrypt; in hci_conn_security()
1043 goto encrypt; in hci_conn_security()
1050 goto encrypt; in hci_conn_security()
1059 goto encrypt; in hci_conn_security()
1071 encrypt: in hci_conn_security()
Dhci_event.c2531 cp.encrypt = 0x01; in hci_auth_complete_evt()
2551 cp.encrypt = 0x01; in hci_auth_complete_evt()
2620 if (ev->encrypt) { in hci_encrypt_change_evt()
2630 if ((conn->type == ACL_LINK && ev->encrypt == 0x02) || in hci_encrypt_change_evt()
2672 hci_encrypt_cfm(conn, ev->status, ev->encrypt); in hci_encrypt_change_evt()
Dl2cap_core.c7337 static inline void l2cap_check_encryption(struct l2cap_chan *chan, u8 encrypt) in l2cap_check_encryption() argument
7342 if (encrypt == 0x00) { in l2cap_check_encryption()
7354 static void l2cap_security_cfm(struct hci_conn *hcon, u8 status, u8 encrypt) in l2cap_security_cfm() argument
7362 BT_DBG("conn %p status 0x%2.2x encrypt %u", conn, status, encrypt); in l2cap_security_cfm()
7377 if (!status && encrypt) in l2cap_security_cfm()
7388 l2cap_check_encryption(chan, encrypt); in l2cap_security_cfm()
Dhci_core.c965 __u8 encrypt = opt; in hci_encrypt_req() local
967 BT_DBG("%s %x", req->hdev->name, encrypt); in hci_encrypt_req()
970 hci_req_add(req, HCI_OP_WRITE_ENCRYPT_MODE, 1, &encrypt); in hci_encrypt_req()
/linux-4.1.27/include/pcmcia/
Dcistpl.h259 u_char encrypt; member
268 u_char encrypt; member
/linux-4.1.27/drivers/staging/wlan-ng/
Dp80211req.c163 if (req->encrypt.data == P80211ENUM_truth_true) in p80211req_handlemsg()
Dp80211metastruct.h201 p80211item_uint32_t encrypt; member
/linux-4.1.27/drivers/crypto/vmx/
Daes_ctr.c167 .encrypt = p8_aes_ctr_crypt,
Daes_cbc.c183 .encrypt = p8_aes_cbc_encrypt,
/linux-4.1.27/drivers/scsi/pm8001/
Dpm8001_sas.h235 u32 encrypt; member
319 struct encrypt { struct
483 struct encrypt encrypt_info; /* support encryption */
Dpm80xx_hwi.c1113 if (pm8001_ha->chip->encrypt) { in pm80xx_chip_init()
3921 if (pm8001_ha->chip->encrypt && in pm80xx_chip_ssp_io_req()
4100 if (pm8001_ha->chip->encrypt && in pm80xx_chip_sata_req()
/linux-4.1.27/drivers/staging/rtl8188eu/hal/
Drtl8188eu_xmit.c104 if ((pattrib->encrypt > 0) && !pattrib->bswenc) { in fill_txdesc_sectype()
105 switch (pattrib->encrypt) { in fill_txdesc_sectype()
425 if (pattrib->encrypt == _TKIP_) in xmitframe_need_length()
Drtl8188e_rxdesc.c103 pattrib->encrypt = (u8)((le32_to_cpu(report.rxdw0) >> 20) & 0x7);/* u8)prxreport->security; */ in update_recvframe_attrib_88e()
/linux-4.1.27/drivers/block/
Dcryptoloop.c144 encdecfunc = crypto_blkcipher_crt(tfm)->encrypt; in cryptoloop_transfer()
/linux-4.1.27/include/net/bluetooth/
Dhci_core.h1098 __u8 encrypt);
1136 __u8 encrypt; in hci_auth_cfm() local
1141 encrypt = test_bit(HCI_CONN_ENCRYPT, &conn->flags) ? 0x01 : 0x00; in hci_auth_cfm()
1146 cb->security_cfm(conn, status, encrypt); in hci_auth_cfm()
1155 __u8 encrypt) in hci_encrypt_cfm() argument
1168 cb->security_cfm(conn, status, encrypt); in hci_encrypt_cfm()
Dhci.h585 __u8 encrypt; member
1521 __u8 encrypt; member
/linux-4.1.27/drivers/staging/rtl8723au/hal/
Drtl8723au_xmit.c61 if ((pattrib->encrypt > 0) && !pattrib->bswenc) { in fill_txdesc_sectype()
62 switch (pattrib->encrypt) { in fill_txdesc_sectype()
Drtl8723au_recv.c165 pattrib->encrypt = (u8)prxreport->security; in update_recvframe_attrib()
/linux-4.1.27/drivers/staging/rtl8723au/include/
Drtw_recv.h114 u32 encrypt; member
Drtw_xmit.h126 u32 encrypt; /* when 0 indicate no encrypt. */ member
/linux-4.1.27/include/linux/sunrpc/
Dgss_krb5.h74 u32 (*encrypt) (struct crypto_blkcipher *tfm, member
/linux-4.1.27/drivers/crypto/qat/qat_common/
Dqat_algs.c1199 .encrypt = qat_alg_aead_enc,
1221 .encrypt = qat_alg_aead_enc,
1243 .encrypt = qat_alg_aead_enc,
1265 .encrypt = qat_alg_ablkcipher_encrypt,
/linux-4.1.27/fs/cifs/
Dcifsencrypt.c304 int calc_lanman_hash(const char *password, const char *cryptkey, bool encrypt, in calc_lanman_hash() argument
315 if (!encrypt && global_secflags & CIFSSEC_MAY_PLNTXT) { in calc_lanman_hash()
Dcifsproto.h448 bool encrypt, char *lnm_session_key);
/linux-4.1.27/Documentation/power/
Dswsusp-dmcrypt.txt19 At this point you want to encrypt your swap, too. Still you want to
Dswsusp.txt294 encrypt the data written to disk. When, during resume, the data was
/linux-4.1.27/net/bluetooth/rfcomm/
Dcore.c2113 static void rfcomm_security_cfm(struct hci_conn *conn, u8 status, u8 encrypt) in rfcomm_security_cfm() argument
2119 BT_DBG("conn %p status 0x%02x encrypt 0x%02x", conn, status, encrypt); in rfcomm_security_cfm()
2130 if (status || encrypt == 0x00) { in rfcomm_security_cfm()
2136 if (d->state == BT_CONNECTED && !status && encrypt == 0x00) { in rfcomm_security_cfm()
/linux-4.1.27/drivers/crypto/amcc/
Dcrypto4xx_core.c1148 .encrypt = crypto4xx_encrypt,
/linux-4.1.27/drivers/staging/rtl8192u/
Dr8192U_core.c2021 int encrypt; in GetNmodeSupportBySecCfg8192() local
2025encrypt = (network->capability & WLAN_CAPABILITY_PRIVACY) || (ieee->host_encrypt && crypt && crypt… in GetNmodeSupportBySecCfg8192()
2028 if (encrypt && (wpa_ie_len == 0)) { in GetNmodeSupportBySecCfg8192()
/linux-4.1.27/Documentation/filesystems/cifs/
DREADME555 seal Must seal (encrypt) all data on this mounted share before