Lines Matching refs:gtk
37 wusbhc->gtk.descr.bLength = sizeof(wusbhc->gtk.descr) + sizeof(wusbhc->gtk.data); in wusbhc_sec_create()
38 wusbhc->gtk.descr.bDescriptorType = USB_DT_KEY; in wusbhc_sec_create()
39 wusbhc->gtk.descr.bReserved = 0; in wusbhc_sec_create()
88 const size_t key_size = sizeof(wusbhc->gtk.data); in wusbhc_generate_gtk()
93 wusbhc->gtk.descr.tTKID[0] = (tkid >> 0) & 0xff; in wusbhc_generate_gtk()
94 wusbhc->gtk.descr.tTKID[1] = (tkid >> 8) & 0xff; in wusbhc_generate_gtk()
95 wusbhc->gtk.descr.tTKID[2] = (tkid >> 16) & 0xff; in wusbhc_generate_gtk()
97 get_random_bytes(wusbhc->gtk.descr.bKeyData, key_size); in wusbhc_generate_gtk()
110 const size_t key_size = sizeof(wusbhc->gtk.data); in wusbhc_sec_start()
116 &wusbhc->gtk.descr.bKeyData, key_size); in wusbhc_sec_start()
194 &wusbhc->gtk.descr, wusbhc->gtk.descr.bLength, in wusb_dev_set_gtk()
525 size_t key_size = sizeof(wusbhc->gtk.data); in wusbhc_gtk_rekey_done_work()
530 wusbhc->set_gtk(wusbhc, wusbhc->gtk_tkid, &wusbhc->gtk.descr.bKeyData, key_size); in wusbhc_gtk_rekey_done_work()
555 static const size_t key_size = sizeof(wusbhc->gtk.data); in wusbhc_gtk_rekey()
570 &wusbhc->gtk.descr, wusbhc->gtk.descr.bLength, in wusbhc_gtk_rekey()
576 wusbhc->set_gtk(wusbhc, wusbhc->gtk_tkid, &wusbhc->gtk.descr.bKeyData, key_size); in wusbhc_gtk_rekey()