Home
last modified time | relevance | path

Searched refs:cipher (Results 1 – 25 of 86) sorted by relevance

1234

/drivers/net/wireless/rt2x00/
Drt2x00crypto.c32 enum cipher rt2x00crypto_key_to_cipher(struct ieee80211_key_conf *key) in rt2x00crypto_key_to_cipher()
34 switch (key->cipher) { in rt2x00crypto_key_to_cipher()
60 txdesc->cipher = rt2x00crypto_key_to_cipher(hw_key); in rt2x00crypto_create_tx_descriptor()
97 if (key->cipher == WLAN_CIPHER_SUITE_TKIP) in rt2x00crypto_tx_overhead()
172 switch (rxdesc->cipher) { in rt2x00crypto_rx_insert_iv()
Drt2x00debug.c144 enum cipher cipher = rxdesc->cipher; in rt2x00debug_update_crypto() local
147 if (cipher == CIPHER_TKIP_NO_MIC) in rt2x00debug_update_crypto()
148 cipher = CIPHER_TKIP; in rt2x00debug_update_crypto()
149 if (cipher == CIPHER_NONE || cipher >= CIPHER_MAX) in rt2x00debug_update_crypto()
153 cipher--; in rt2x00debug_update_crypto()
155 intf->crypto_stats[cipher].success += (status == RX_CRYPTO_SUCCESS); in rt2x00debug_update_crypto()
156 intf->crypto_stats[cipher].icv_error += (status == RX_CRYPTO_FAIL_ICV); in rt2x00debug_update_crypto()
157 intf->crypto_stats[cipher].mic_error += (status == RX_CRYPTO_FAIL_MIC); in rt2x00debug_update_crypto()
158 intf->crypto_stats[cipher].key_error += (status == RX_CRYPTO_FAIL_KEY); in rt2x00debug_update_crypto()
Drt2x00queue.h190 u8 cipher; member
332 enum cipher cipher; member
Drt2x00lib.h351 enum cipher rt2x00crypto_key_to_cipher(struct ieee80211_key_conf *key);
366 static inline enum cipher rt2x00crypto_key_to_cipher(struct ieee80211_key_conf *key) in rt2x00crypto_key_to_cipher()
Drt2500usb.c350 enum cipher curr_cipher; in rt2500usb_config_key()
358 if ((key->cipher == WLAN_CIPHER_SUITE_WEP40 || in rt2500usb_config_key()
359 key->cipher == WLAN_CIPHER_SUITE_WEP104) && in rt2500usb_config_key()
386 if (key->hw_key_idx > 0 && crypto->cipher != curr_cipher) in rt2500usb_config_key()
410 rt2x00_set_field16(&reg, TXRX_CSR0_ALGORITHM, crypto->cipher); in rt2500usb_config_key()
1105 rt2x00_set_field32(&word, TXD_W0_CIPHER, !!txdesc->cipher); in rt2500usb_write_tx_desc()
1272 rxdesc->cipher = rt2x00_get_field32(word0, RXD_W0_CIPHER); in rt2500usb_fill_rxdone()
1276 if (rxdesc->cipher != CIPHER_NONE) { in rt2500usb_fill_rxdone()
Drt2x00mac.c489 crypto.cipher = rt2x00crypto_key_to_cipher(key); in rt2x00mac_set_key()
490 if (crypto.cipher == CIPHER_NONE) in rt2x00mac_set_key()
502 if (crypto.cipher == CIPHER_TKIP) in rt2x00mac_set_key()
/drivers/net/wireless/ath/
Dkey.c406 u32 cipher) in ath_reserve_key_cache_slot() argument
410 if (cipher == WLAN_CIPHER_SUITE_TKIP) in ath_reserve_key_cache_slot()
486 switch (key->cipher) { in ath_key_config()
514 idx = ath_reserve_key_cache_slot(common, key->cipher); in ath_key_config()
524 idx = ath_reserve_key_cache_slot(common, key->cipher); in ath_key_config()
546 idx = ath_reserve_key_cache_slot(common, key->cipher); in ath_key_config()
552 if (key->cipher == WLAN_CIPHER_SUITE_TKIP) in ath_key_config()
562 if (key->cipher == WLAN_CIPHER_SUITE_CCMP) in ath_key_config()
565 if (key->cipher == WLAN_CIPHER_SUITE_TKIP) { in ath_key_config()
592 if (key->cipher != WLAN_CIPHER_SUITE_TKIP) in ath_key_delete()
/drivers/crypto/amcc/
Dcrypto4xx_alg.c103 static int crypto4xx_setkey_aes(struct crypto_ablkcipher *cipher, in crypto4xx_setkey_aes() argument
109 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in crypto4xx_setkey_aes()
116 crypto_ablkcipher_set_flags(cipher, in crypto4xx_setkey_aes()
169 int crypto4xx_setkey_aes_cbc(struct crypto_ablkcipher *cipher, in crypto4xx_setkey_aes_cbc() argument
172 return crypto4xx_setkey_aes(cipher, key, keylen, CRYPTO_MODE_CBC, in crypto4xx_setkey_aes_cbc()
Dcrypto4xx_core.h146 struct crypto_alg cipher; member
166 return container_of(x, struct crypto4xx_alg, alg.u.cipher); in crypto_alg_to_crypto4xx_alg()
187 extern int crypto4xx_setkey_aes_cbc(struct crypto_ablkcipher *cipher,
/drivers/crypto/ux500/cryp/
Dcryp_core.c811 struct crypto_ablkcipher *cipher = crypto_ablkcipher_reqtfm(areq); in ablk_dma_crypt() local
812 struct cryp_ctx *ctx = crypto_ablkcipher_ctx(cipher); in ablk_dma_crypt()
869 struct crypto_ablkcipher *cipher = crypto_ablkcipher_reqtfm(areq); in ablk_crypt() local
870 struct cryp_ctx *ctx = crypto_ablkcipher_ctx(cipher); in ablk_crypt()
929 static int aes_ablkcipher_setkey(struct crypto_ablkcipher *cipher, in aes_ablkcipher_setkey() argument
932 struct cryp_ctx *ctx = crypto_ablkcipher_ctx(cipher); in aes_ablkcipher_setkey()
933 u32 *flags = &cipher->base.crt_flags; in aes_ablkcipher_setkey()
964 static int des_ablkcipher_setkey(struct crypto_ablkcipher *cipher, in des_ablkcipher_setkey() argument
967 struct cryp_ctx *ctx = crypto_ablkcipher_ctx(cipher); in des_ablkcipher_setkey()
968 u32 *flags = &cipher->base.crt_flags; in des_ablkcipher_setkey()
[all …]
/drivers/staging/rtl8192u/ieee80211/
Drtl_crypto.h99 #define cra_cipher cra_u.cipher
111 struct cipher_alg cipher; member
185 #define crt_cipher crt_u.cipher
194 struct cipher_tfm cipher; member
Dcipher.c109 tfm->crt_u.cipher.cit_xor_block(iv, src); in cbc_process()
117 tfm->crt_u.cipher.cit_xor_block(buf, iv); in cbc_process()
Darc4.c79 .cra_u = { .cipher = {
/drivers/staging/rtl8192e/rtl8192e/
Drtl_crypto.h99 #define cra_cipher cra_u.cipher
111 struct cipher_alg cipher; member
182 #define crt_cipher crt_u.cipher
191 struct cipher_tfm cipher; member
/drivers/crypto/
Dpicoxcell_crypto.c831 static int spacc_des_setkey(struct crypto_ablkcipher *cipher, const u8 *key, in spacc_des_setkey() argument
834 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in spacc_des_setkey()
839 crypto_ablkcipher_set_flags(cipher, CRYPTO_TFM_RES_BAD_KEY_LEN); in spacc_des_setkey()
844 (crypto_ablkcipher_get_flags(cipher) & CRYPTO_TFM_REQ_WEAK_KEY)) { in spacc_des_setkey()
859 static int spacc_aes_setkey(struct crypto_ablkcipher *cipher, const u8 *key, in spacc_aes_setkey() argument
862 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in spacc_aes_setkey()
867 crypto_ablkcipher_set_flags(cipher, CRYPTO_TFM_RES_BAD_KEY_LEN); in spacc_aes_setkey()
884 cipher->base.crt_flags & CRYPTO_TFM_REQ_MASK; in spacc_aes_setkey()
906 static int spacc_kasumi_f8_setkey(struct crypto_ablkcipher *cipher, in spacc_kasumi_f8_setkey() argument
909 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in spacc_kasumi_f8_setkey()
[all …]
Dn2_core.c717 static int n2_aes_setkey(struct crypto_ablkcipher *cipher, const u8 *key, in n2_aes_setkey() argument
720 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in n2_aes_setkey()
737 crypto_ablkcipher_set_flags(cipher, CRYPTO_TFM_RES_BAD_KEY_LEN); in n2_aes_setkey()
746 static int n2_des_setkey(struct crypto_ablkcipher *cipher, const u8 *key, in n2_des_setkey() argument
749 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in n2_des_setkey()
758 crypto_ablkcipher_set_flags(cipher, CRYPTO_TFM_RES_BAD_KEY_LEN); in n2_des_setkey()
773 static int n2_3des_setkey(struct crypto_ablkcipher *cipher, const u8 *key, in n2_3des_setkey() argument
776 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in n2_3des_setkey()
783 crypto_ablkcipher_set_flags(cipher, CRYPTO_TFM_RES_BAD_KEY_LEN); in n2_3des_setkey()
791 static int n2_arc4_setkey(struct crypto_ablkcipher *cipher, const u8 *key, in n2_arc4_setkey() argument
[all …]
Dtalitos.c1377 static int ablkcipher_setkey(struct crypto_ablkcipher *cipher, in ablkcipher_setkey() argument
1380 struct talitos_ctx *ctx = crypto_ablkcipher_ctx(cipher); in ablkcipher_setkey()
1425 struct crypto_ablkcipher *cipher = crypto_ablkcipher_reqtfm(areq); in common_nonsnoop() local
1426 struct talitos_ctx *ctx = crypto_ablkcipher_ctx(cipher); in common_nonsnoop()
1430 unsigned int ivsize = crypto_ablkcipher_ivsize(cipher); in common_nonsnoop()
1521 struct crypto_ablkcipher *cipher = crypto_ablkcipher_reqtfm(areq); in ablkcipher_edesc_alloc() local
1522 struct talitos_ctx *ctx = crypto_ablkcipher_ctx(cipher); in ablkcipher_edesc_alloc()
1523 unsigned int ivsize = crypto_ablkcipher_ivsize(cipher); in ablkcipher_edesc_alloc()
1532 struct crypto_ablkcipher *cipher = crypto_ablkcipher_reqtfm(areq); in ablkcipher_encrypt() local
1533 struct talitos_ctx *ctx = crypto_ablkcipher_ctx(cipher); in ablkcipher_encrypt()
[all …]
DKconfig110 tristate "DES and Triple DES cipher algorithms"
117 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
123 tristate "AES cipher algorithms"
129 AES cipher algorithms (FIPS-197).
/drivers/net/wireless/ath/ath5k/
Dmac80211-ops.c497 (key->cipher == WLAN_CIPHER_SUITE_TKIP || in ath5k_set_key()
498 key->cipher == WLAN_CIPHER_SUITE_CCMP) && in ath5k_set_key()
504 switch (key->cipher) { in ath5k_set_key()
527 if (key->cipher == WLAN_CIPHER_SUITE_TKIP) in ath5k_set_key()
529 if (key->cipher == WLAN_CIPHER_SUITE_CCMP) in ath5k_set_key()
/drivers/block/
Dcryptoloop.c46 char *cipher; in cryptoloop_init() local
59 cipher = cmsp; in cryptoloop_init()
/drivers/net/wireless/ti/wlcore/
Dtx.c378 info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) in wl1271_prepare_tx_frame()
384 u32 cipher = info->control.hw_key->cipher; in wl1271_prepare_tx_frame() local
386 is_wep = (cipher == WLAN_CIPHER_SUITE_WEP40) || in wl1271_prepare_tx_frame()
387 (cipher == WLAN_CIPHER_SUITE_WEP104); in wl1271_prepare_tx_frame()
396 is_gem = (cipher == WL1271_CIPHER_SUITE_GEM); in wl1271_prepare_tx_frame()
942 info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { in wl1271_tx_complete_packet()
1104 info->control.hw_key->cipher == in wl12xx_tx_reset()
/drivers/net/wireless/
Drndis_wlan.c418 u32 cipher; member
589 int cipher = priv->encr_keys[idx].cipher; in is_wpa_key() local
591 return (cipher == WLAN_CIPHER_SUITE_CCMP || in is_wpa_key()
592 cipher == WLAN_CIPHER_SUITE_TKIP); in is_wpa_key()
595 static int rndis_cipher_to_alg(u32 cipher) in rndis_cipher_to_alg() argument
597 switch (cipher) { in rndis_cipher_to_alg()
1351 u32 cipher; in add_wep_key() local
1361 cipher = WLAN_CIPHER_SUITE_WEP40; in add_wep_key()
1363 cipher = WLAN_CIPHER_SUITE_WEP104; in add_wep_key()
1393 priv->encr_keys[index].cipher = cipher; in add_wep_key()
[all …]
/drivers/net/wireless/iwlwifi/mvm/
Dsta.c975 switch (keyconf->cipher) { in iwl_mvm_send_sta_key()
1030 if (WARN_ON((keyconf->cipher != WLAN_CIPHER_SUITE_AES_CMAC) || in iwl_mvm_send_sta_igtk()
1108 if (keyconf->cipher == WLAN_CIPHER_SUITE_AES_CMAC) { in iwl_mvm_set_sta_key()
1141 switch (keyconf->cipher) { in iwl_mvm_set_sta_key()
1155 IWL_ERR(mvm, "Unknown cipher %x\n", keyconf->cipher); in iwl_mvm_set_sta_key()
1164 keyconf->cipher, keyconf->keylen, keyconf->keyidx, in iwl_mvm_set_sta_key()
1188 if (keyconf->cipher == WLAN_CIPHER_SUITE_AES_CMAC) in iwl_mvm_remove_sta_key()
/drivers/md/
Ddm-crypt.c133 char *cipher; member
296 essiv_tfm = crypto_alloc_cipher(cc->cipher, 0, CRYPTO_ALG_ASYNC); in setup_essiv_cpu()
1371 kzfree(cc->cipher); in crypt_dtr()
1382 char *tmp, *cipher, *chainmode, *ivmode, *ivopts, *keycount; in crypt_ctr_cipher() local
1403 cipher = strsep(&keycount, ":"); in crypt_ctr_cipher()
1414 cc->cipher = kstrdup(cipher, GFP_KERNEL); in crypt_ctr_cipher()
1415 if (!cc->cipher) in crypt_ctr_cipher()
1444 "%s(%s)", chainmode, cipher); in crypt_ctr_cipher()
/drivers/net/wireless/p54/
Dtxrx.c760 static u8 p54_convert_algo(u32 cipher) in p54_convert_algo() argument
762 switch (cipher) { in p54_convert_algo()
807 if (info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { in p54_tx_80211()
903 txhdr->key_type = p54_convert_algo(info->control.hw_key->cipher); in p54_tx_80211()
906 if (info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { in p54_tx_80211()

1234