H A D | zcrypt_ep11misc.c | 118 static int ep11_kb_split(const u8 *kb, size_t kblen, u32 kbver, in ep11_kb_split() argument 129 hdr = (struct ep11kblob_header *)kb; in ep11_kb_split() 146 pl = (u8 *)kb + hdrsize; in ep11_kb_split() 162 static int ep11_kb_decode(const u8 *kb, size_t kblen, in ep11_kb_decode() argument 174 tmph = (struct ep11kblob_header *)kb; in ep11_kb_decode() 180 if (ep11_kb_split(kb, kblen, tmph->version, in ep11_kb_decode() 213 struct ep11keyblob *kb; in ep11_kb_wkvp() local 215 if (ep11_kb_decode(keyblob, keybloblen, NULL, NULL, &kb, NULL)) in ep11_kb_wkvp() 217 return kb->wkvp; in ep11_kb_wkvp() 228 struct ep11keyblob *kb = (struct ep11keyblob *)(key + sizeof(*hdr)); in ep11_check_aes_key_with_hdr() local [all …]
|