Home
last modified time | relevance | path

Searched refs:key_size (Results 1 – 12 of 12) sorted by relevance

/drivers/md/
Ddm-crypt.c131 unsigned int key_size; member
203 sg_init_one(&sg, cc->key, cc->key_size); in crypt_iv_essiv_ctr()
206 err = crypto_hash_digest(&desc, &sg, cc->key_size, salt); in crypt_iv_essiv_ctr()
924 unsigned key_size = strlen(key) >> 1; in crypt_set_key() local
926 if (cc->key_size && cc->key_size != key_size) in crypt_set_key()
929 cc->key_size = key_size; /* initial settings */ in crypt_set_key()
931 if ((!key_size && strcmp(key, "-")) || in crypt_set_key()
932 (key_size && crypt_decode_key(cc->key, key, key_size) < 0)) in crypt_set_key()
943 memset(&cc->key, 0, cc->key_size * sizeof(u8)); in crypt_wipe_key()
960 unsigned int key_size; in crypt_ctr() local
[all …]
/drivers/usb/host/whci/
Dwusb.c143 const void *key, size_t key_size, bool is_gtk) in whc_set_key() argument
150 memcpy(seckey, key, key_size); in whc_set_key()
173 const void *ptk, size_t key_size) in whc_set_ptk() argument
182 ret = whc_set_key(whc, port_idx, tkid, ptk, key_size, false); in whc_set_ptk()
204 const void *gtk, size_t key_size) in whc_set_gtk() argument
211 ret = whc_set_key(whc, whc->n_devices, tkid, gtk, key_size, true); in whc_set_gtk()
Dwhcd.h152 const void *ptk, size_t key_size);
154 const void *gtk, size_t key_size);
/drivers/usb/wusbcore/
Dsecurity.c86 const size_t key_size = sizeof(wusbhc->gtk.data); in wusbhc_generate_gtk() local
95 get_random_bytes(wusbhc->gtk.descr.bKeyData, key_size); in wusbhc_generate_gtk()
108 const size_t key_size = sizeof(wusbhc->gtk.data); in wusbhc_sec_start() local
114 &wusbhc->gtk.descr.bKeyData, key_size); in wusbhc_sec_start()
524 size_t key_size = sizeof(wusbhc->gtk.data); in wusbhc_gtk_rekey_done_work() local
529 wusbhc->set_gtk(wusbhc, wusbhc->gtk_tkid, &wusbhc->gtk.descr.bKeyData, key_size); in wusbhc_gtk_rekey_done_work()
554 static const size_t key_size = sizeof(wusbhc->gtk.data); in wusbhc_gtk_rekey() local
575 wusbhc->set_gtk(wusbhc, wusbhc->gtk_tkid, &wusbhc->gtk.descr.bKeyData, key_size); in wusbhc_gtk_rekey()
Dwusbhc.h284 u32 tkid, const void *key, size_t key_size);
286 u32 tkid, const void *key, size_t key_size);
/drivers/usb/host/
Dhwa-hc.c438 const void *key, size_t key_size, in __hwahc_dev_set_key() argument
448 keyd_len = sizeof(*keyd) + key_size; in __hwahc_dev_set_key()
458 memcpy(keyd->bKeyData, key, key_size); in __hwahc_dev_set_key()
480 const void *key, size_t key_size) in __hwahc_op_set_ptk() argument
494 key, key_size, key_idx); in __hwahc_op_set_ptk()
522 const void *key, size_t key_size) in __hwahc_op_set_gtk() argument
527 return __hwahc_dev_set_key(wusbhc, 0, tkid, key, key_size, key_idx); in __hwahc_op_set_gtk()
/drivers/net/wireless/iwlwifi/
Diwl-sta.c519 if (priv->wep_keys[i].key_size) { in iwl_send_static_wepkey_cmd()
526 wep_cmd->key[i].key_size = priv->wep_keys[i].key_size; in iwl_send_static_wepkey_cmd()
528 priv->wep_keys[i].key_size); in iwl_send_static_wepkey_cmd()
591 priv->wep_keys[keyconf->keyidx].key_size = keyconf->keylen; in iwl_set_default_wep_key()
Diwl-commands.h1002 u8 key_size; member
/drivers/net/wireless/ipw2x00/
Dipw2100.h304 u8 key_size; // 0 no imm key, 0x5 64bit encr, 0xd 128bit encr, 0x10 128bit encr and 128bit IV member
Dipw2200.h822 u8 key_size; member
Dipw2200.c5947 key.key_size = 0; in ipw_send_wep_keys()
5951 key.key_size = priv->ieee->sec.key_sizes[i]; in ipw_send_wep_keys()
5952 memcpy(key.key, priv->ieee->sec.keys[i], key.key_size); in ipw_send_wep_keys()
/drivers/net/wimax/i2400m/
Dfw.c548 + le32_to_cpu(bcf->key_size) * sizeof(u32) in i2400m_dnload_finalize()