/drivers/staging/skein/ |
D | threefish_api.c | 28 u64 cipher[SKEIN_MAX_STATE_WORDS]; in threefish_encrypt_block_bytes() local 31 threefish_encrypt_block_words(key_ctx, plain, cipher); in threefish_encrypt_block_bytes() 32 skein_put64_lsb_first(out, cipher, key_ctx->state_size / 8); in threefish_encrypt_block_bytes() 55 u64 cipher[SKEIN_MAX_STATE_WORDS]; in threefish_decrypt_block_bytes() local 57 skein_get64_lsb_first(cipher, in, key_ctx->state_size / 64); in threefish_decrypt_block_bytes() 58 threefish_decrypt_block_words(key_ctx, cipher, plain); in threefish_decrypt_block_bytes()
|
D | Kconfig | 16 cipher module. 19 bool "Threefish tweakable block cipher" 23 Threefish cipher algorithm is the tweakable block cipher underneath
|
/drivers/net/wireless/rt2x00/ |
D | rt2x00crypto.c | 30 enum cipher rt2x00crypto_key_to_cipher(struct ieee80211_key_conf *key) in rt2x00crypto_key_to_cipher() 32 switch (key->cipher) { in rt2x00crypto_key_to_cipher() 58 txdesc->cipher = rt2x00crypto_key_to_cipher(hw_key); in rt2x00crypto_create_tx_descriptor() 95 if (key->cipher == WLAN_CIPHER_SUITE_TKIP) in rt2x00crypto_tx_overhead() 170 switch (rxdesc->cipher) { in rt2x00crypto_rx_insert_iv()
|
D | rt2x00debug.c | 142 enum cipher cipher = rxdesc->cipher; in rt2x00debug_update_crypto() local 145 if (cipher == CIPHER_TKIP_NO_MIC) in rt2x00debug_update_crypto() 146 cipher = CIPHER_TKIP; in rt2x00debug_update_crypto() 147 if (cipher == CIPHER_NONE || cipher >= CIPHER_MAX) in rt2x00debug_update_crypto() 151 cipher--; in rt2x00debug_update_crypto() 153 intf->crypto_stats[cipher].success += (status == RX_CRYPTO_SUCCESS); in rt2x00debug_update_crypto() 154 intf->crypto_stats[cipher].icv_error += (status == RX_CRYPTO_FAIL_ICV); in rt2x00debug_update_crypto() 155 intf->crypto_stats[cipher].mic_error += (status == RX_CRYPTO_FAIL_MIC); in rt2x00debug_update_crypto() 156 intf->crypto_stats[cipher].key_error += (status == RX_CRYPTO_FAIL_KEY); in rt2x00debug_update_crypto()
|
D | rt2x00queue.h | 188 u8 cipher; member 330 enum cipher cipher; member
|
D | rt2x00lib.h | 349 enum cipher rt2x00crypto_key_to_cipher(struct ieee80211_key_conf *key); 364 static inline enum cipher rt2x00crypto_key_to_cipher(struct ieee80211_key_conf *key) in rt2x00crypto_key_to_cipher()
|
D | rt2x00mac.c | 487 crypto.cipher = rt2x00crypto_key_to_cipher(key); in rt2x00mac_set_key() 488 if (crypto.cipher == CIPHER_NONE) in rt2x00mac_set_key() 490 if (crypto.cipher == CIPHER_TKIP && rt2x00_is_usb(rt2x00dev)) in rt2x00mac_set_key() 502 if (crypto.cipher == CIPHER_TKIP) in rt2x00mac_set_key()
|
/drivers/net/wireless/ath/ |
D | key.c | 406 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/staging/rtl8723au/os_dep/ |
D | ioctl_cfg80211.c | 495 if (!psta && (keyparms->cipher == WLAN_CIPHER_SUITE_WEP40 || in rtw_cfg80211_ap_set_encryption() 496 keyparms->cipher == WLAN_CIPHER_SUITE_WEP104)) { in rtw_cfg80211_ap_set_encryption() 508 psecuritypriv->dot11PrivacyAlgrthm = keyparms->cipher; in rtw_cfg80211_ap_set_encryption() 509 psecuritypriv->dot118021XGrpPrivacy = keyparms->cipher; in rtw_cfg80211_ap_set_encryption() 519 set_group_key(padapter, keyparms, keyparms->cipher, key_index); in rtw_cfg80211_ap_set_encryption() 526 if (keyparms->cipher == WLAN_CIPHER_SUITE_WEP40 || in rtw_cfg80211_ap_set_encryption() 527 keyparms->cipher == WLAN_CIPHER_SUITE_WEP104) { in rtw_cfg80211_ap_set_encryption() 535 keyparms->cipher; in rtw_cfg80211_ap_set_encryption() 536 } else if (keyparms->cipher == WLAN_CIPHER_SUITE_TKIP) { in rtw_cfg80211_ap_set_encryption() 558 } else if (keyparms->cipher == WLAN_CIPHER_SUITE_CCMP) { in rtw_cfg80211_ap_set_encryption() [all …]
|
/drivers/crypto/amcc/ |
D | crypto4xx_alg.c | 104 static int crypto4xx_setkey_aes(struct crypto_ablkcipher *cipher, in crypto4xx_setkey_aes() argument 110 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in crypto4xx_setkey_aes() 117 crypto_ablkcipher_set_flags(cipher, in crypto4xx_setkey_aes() 170 int crypto4xx_setkey_aes_cbc(struct crypto_ablkcipher *cipher, in crypto4xx_setkey_aes_cbc() argument 173 return crypto4xx_setkey_aes(cipher, key, keylen, CRYPTO_MODE_CBC, in crypto4xx_setkey_aes_cbc()
|
D | crypto4xx_core.h | 146 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/ |
D | cryp_core.c | 826 struct crypto_ablkcipher *cipher = crypto_ablkcipher_reqtfm(areq); in ablk_dma_crypt() local 827 struct cryp_ctx *ctx = crypto_ablkcipher_ctx(cipher); in ablk_dma_crypt() 884 struct crypto_ablkcipher *cipher = crypto_ablkcipher_reqtfm(areq); in ablk_crypt() local 885 struct cryp_ctx *ctx = crypto_ablkcipher_ctx(cipher); in ablk_crypt() 944 static int aes_ablkcipher_setkey(struct crypto_ablkcipher *cipher, in aes_ablkcipher_setkey() argument 947 struct cryp_ctx *ctx = crypto_ablkcipher_ctx(cipher); in aes_ablkcipher_setkey() 948 u32 *flags = &cipher->base.crt_flags; in aes_ablkcipher_setkey() 979 static int des_ablkcipher_setkey(struct crypto_ablkcipher *cipher, in des_ablkcipher_setkey() argument 982 struct cryp_ctx *ctx = crypto_ablkcipher_ctx(cipher); in des_ablkcipher_setkey() 983 u32 *flags = &cipher->base.crt_flags; in des_ablkcipher_setkey() [all …]
|
/drivers/staging/rtl8192e/rtl8192e/ |
D | rtl_crypto.h | 99 #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/qat/qat_common/ |
D | qat_algs.c | 96 struct icp_qat_hw_cipher_algo_blk cipher; member 101 struct icp_qat_hw_cipher_algo_blk cipher; member 287 struct icp_qat_hw_cipher_algo_blk *cipher = &enc_ctx->cipher; in qat_alg_init_enc_session() local 299 cipher->aes.cipher_config.val = QAT_AES_HW_CONFIG_ENC(alg); in qat_alg_init_enc_session() 300 memcpy(cipher->aes.key, keys->enckey, keys->enckeylen); in qat_alg_init_enc_session() 327 hash_cd_ctrl->hash_cfg_offset = ((char *)hash - (char *)cipher) >> 3; in qat_alg_init_enc_session() 365 struct icp_qat_hw_cipher_algo_blk *cipher = in qat_alg_init_dec_session() local 381 cipher->aes.cipher_config.val = QAT_AES_HW_CONFIG_DEC(alg); in qat_alg_init_dec_session() 382 memcpy(cipher->aes.key, keys->enckey, keys->enckeylen); in qat_alg_init_dec_session()
|
/drivers/crypto/ |
D | picoxcell_crypto.c | 815 static int spacc_des_setkey(struct crypto_ablkcipher *cipher, const u8 *key, in spacc_des_setkey() argument 818 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in spacc_des_setkey() 823 crypto_ablkcipher_set_flags(cipher, CRYPTO_TFM_RES_BAD_KEY_LEN); in spacc_des_setkey() 828 (crypto_ablkcipher_get_flags(cipher) & CRYPTO_TFM_REQ_WEAK_KEY)) { in spacc_des_setkey() 843 static int spacc_aes_setkey(struct crypto_ablkcipher *cipher, const u8 *key, in spacc_aes_setkey() argument 846 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in spacc_aes_setkey() 851 crypto_ablkcipher_set_flags(cipher, CRYPTO_TFM_RES_BAD_KEY_LEN); in spacc_aes_setkey() 868 cipher->base.crt_flags & CRYPTO_TFM_REQ_MASK; in spacc_aes_setkey() 890 static int spacc_kasumi_f8_setkey(struct crypto_ablkcipher *cipher, in spacc_kasumi_f8_setkey() argument 893 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in spacc_kasumi_f8_setkey() [all …]
|
D | n2_core.c | 714 static int n2_aes_setkey(struct crypto_ablkcipher *cipher, const u8 *key, in n2_aes_setkey() argument 717 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in n2_aes_setkey() 734 crypto_ablkcipher_set_flags(cipher, CRYPTO_TFM_RES_BAD_KEY_LEN); in n2_aes_setkey() 743 static int n2_des_setkey(struct crypto_ablkcipher *cipher, const u8 *key, in n2_des_setkey() argument 746 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in n2_des_setkey() 755 crypto_ablkcipher_set_flags(cipher, CRYPTO_TFM_RES_BAD_KEY_LEN); in n2_des_setkey() 770 static int n2_3des_setkey(struct crypto_ablkcipher *cipher, const u8 *key, in n2_3des_setkey() argument 773 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in n2_3des_setkey() 780 crypto_ablkcipher_set_flags(cipher, CRYPTO_TFM_RES_BAD_KEY_LEN); in n2_3des_setkey() 788 static int n2_arc4_setkey(struct crypto_ablkcipher *cipher, const u8 *key, in n2_arc4_setkey() argument [all …]
|
/drivers/net/wireless/rsi/ |
D | rsi_91x_mac80211.c | 577 __func__, key->cipher, key_type, key->keylen); in rsi_hal_key_config() 579 if ((key->cipher == WLAN_CIPHER_SUITE_WEP104) || in rsi_hal_key_config() 580 (key->cipher == WLAN_CIPHER_SUITE_WEP40)) { in rsi_hal_key_config() 586 key->cipher); in rsi_hal_key_config() 595 key->cipher); in rsi_hal_key_config() 630 secinfo->ptk_cipher = key->cipher; in rsi_mac80211_set_key() 632 secinfo->gtk_cipher = key->cipher; in rsi_mac80211_set_key()
|
D | rsi_91x_mgmt.c | 699 u32 cipher) in rsi_hal_load_key() argument 717 if ((cipher == WLAN_CIPHER_SUITE_WEP40) || in rsi_hal_load_key() 718 (cipher == WLAN_CIPHER_SUITE_WEP104)) { in rsi_hal_load_key() 723 } else if (cipher != KEY_TYPE_CLEAR) { in rsi_hal_load_key() 727 if (cipher == WLAN_CIPHER_SUITE_TKIP) in rsi_hal_load_key() 738 if ((cipher == WLAN_CIPHER_SUITE_WEP40) || in rsi_hal_load_key() 739 (cipher == WLAN_CIPHER_SUITE_WEP104)) { in rsi_hal_load_key()
|
/drivers/net/wireless/ath/ath5k/ |
D | mac80211-ops.c | 499 (key->cipher == WLAN_CIPHER_SUITE_TKIP || in ath5k_set_key() 500 key->cipher == WLAN_CIPHER_SUITE_CCMP) && in ath5k_set_key() 506 switch (key->cipher) { in ath5k_set_key() 529 if (key->cipher == WLAN_CIPHER_SUITE_TKIP) in ath5k_set_key() 531 if (key->cipher == WLAN_CIPHER_SUITE_CCMP) in ath5k_set_key()
|
/drivers/block/ |
D | cryptoloop.c | 46 char *cipher; in cryptoloop_init() local 59 cipher = cmsp; in cryptoloop_init()
|
/drivers/net/wireless/ti/wlcore/ |
D | tx.c | 402 info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) in wl1271_prepare_tx_frame() 408 u32 cipher = info->control.hw_key->cipher; in wl1271_prepare_tx_frame() local 410 is_wep = (cipher == WLAN_CIPHER_SUITE_WEP40) || in wl1271_prepare_tx_frame() 411 (cipher == WLAN_CIPHER_SUITE_WEP104); in wl1271_prepare_tx_frame() 420 is_gem = (cipher == WL1271_CIPHER_SUITE_GEM); in wl1271_prepare_tx_frame() 966 info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { in wl1271_tx_complete_packet() 1128 info->control.hw_key->cipher == in wl12xx_tx_reset()
|
/drivers/net/wireless/ |
D | rndis_wlan.c | 416 u32 cipher; member 587 int cipher = priv->encr_keys[idx].cipher; in is_wpa_key() local 589 return (cipher == WLAN_CIPHER_SUITE_CCMP || in is_wpa_key() 590 cipher == WLAN_CIPHER_SUITE_TKIP); in is_wpa_key() 593 static int rndis_cipher_to_alg(u32 cipher) in rndis_cipher_to_alg() argument 595 switch (cipher) { in rndis_cipher_to_alg() 1350 u32 cipher; in add_wep_key() local 1360 cipher = WLAN_CIPHER_SUITE_WEP40; in add_wep_key() 1362 cipher = WLAN_CIPHER_SUITE_WEP104; in add_wep_key() 1392 priv->encr_keys[index].cipher = cipher; in add_wep_key() [all …]
|
/drivers/net/wireless/iwlwifi/mvm/ |
D | d3.c | 163 switch (key->cipher) { in iwl_mvm_wowlan_program_keys() 1280 switch (key->cipher) { in iwl_mvm_set_key_rx_seq() 1295 u32 cipher; member 1311 switch (key->cipher) { in iwl_mvm_d3_update_gtks() 1339 switch (key->cipher) { in iwl_mvm_d3_update_gtks() 1357 data->cipher = key->cipher; in iwl_mvm_d3_update_gtks() 1411 .conf.cipher = gtkdata.cipher, in iwl_mvm_setup_connection_keep() 1415 switch (gtkdata.cipher) { in iwl_mvm_setup_connection_keep()
|
/drivers/net/wireless/ath/wcn36xx/ |
D | main.c | 395 cmd, key_conf->cipher, key_conf->keyidx, in wcn36xx_set_key() 401 switch (key_conf->cipher) { in wcn36xx_set_key() 416 key_conf->cipher); in wcn36xx_set_key() 460 if ((WLAN_CIPHER_SUITE_WEP40 == key_conf->cipher) || in wcn36xx_set_key() 461 (WLAN_CIPHER_SUITE_WEP104 == key_conf->cipher)) { in wcn36xx_set_key()
|
/drivers/md/ |
D | dm-crypt.c | 139 char *cipher; member 314 essiv_tfm = crypto_alloc_cipher(cc->cipher, 0, CRYPTO_ALG_ASYNC); in setup_essiv_cpu() 1536 kzfree(cc->cipher); in crypt_dtr() 1547 char *tmp, *cipher, *chainmode, *ivmode, *ivopts, *keycount; in crypt_ctr_cipher() local 1568 cipher = strsep(&keycount, ":"); in crypt_ctr_cipher() 1580 cc->cipher = kstrdup(cipher, GFP_KERNEL); in crypt_ctr_cipher() 1581 if (!cc->cipher) in crypt_ctr_cipher() 1610 "%s(%s)", chainmode, cipher); in crypt_ctr_cipher()
|