Lines Matching refs:rep_pl
605 } __packed * rep_pl; in ep11_query_info() local
627 rep_pl = (struct ep11_info_rep_pl *)(((u8 *)rep) + sizeof(*rep)); in ep11_query_info()
637 rep, sizeof(*rep) + sizeof(*rep_pl) + buflen); in ep11_query_info()
652 rc = check_reply_pl((u8 *)rep_pl, __func__); in ep11_query_info()
655 if (rep_pl->data_tag != 0x04 || rep_pl->data_lenfmt != 0x82) { in ep11_query_info()
660 if (rep_pl->data_len > buflen) { in ep11_query_info()
667 memcpy(buf, ((u8 *)rep_pl) + sizeof(*rep_pl), rep_pl->data_len); in ep11_query_info()
822 } __packed * rep_pl; in _ep11_genaeskey() local
883 rep_pl = (struct keygen_rep_pl *)(((u8 *)rep) + sizeof(*rep)); in _ep11_genaeskey()
893 rep, sizeof(*rep) + sizeof(*rep_pl)); in _ep11_genaeskey()
908 rc = check_reply_pl((u8 *)rep_pl, __func__); in _ep11_genaeskey()
911 if (rep_pl->data_tag != 0x04 || rep_pl->data_lenfmt != 0x82) { in _ep11_genaeskey()
916 if (rep_pl->data_len > *keybufsize) { in _ep11_genaeskey()
924 memcpy(keybuf, rep_pl->data, rep_pl->data_len); in _ep11_genaeskey()
925 *keybufsize = rep_pl->data_len; in _ep11_genaeskey()
1000 } __packed * rep_pl; in ep11_cryptsingle() local
1040 rep_pl = (struct crypt_rep_pl *)(((u8 *)rep) + sizeof(*rep)); in ep11_cryptsingle()
1065 rc = check_reply_pl((u8 *)rep_pl, __func__); in ep11_cryptsingle()
1068 if (rep_pl->data_tag != 0x04) { in ep11_cryptsingle()
1073 p = ((u8 *)rep_pl) + sizeof(*rep_pl); in ep11_cryptsingle()
1074 if (rep_pl->data_lenfmt <= 127) { in ep11_cryptsingle()
1075 n = rep_pl->data_lenfmt; in ep11_cryptsingle()
1076 } else if (rep_pl->data_lenfmt == 0x81) { in ep11_cryptsingle()
1078 } else if (rep_pl->data_lenfmt == 0x82) { in ep11_cryptsingle()
1083 __func__, rep_pl->data_lenfmt); in ep11_cryptsingle()
1142 } __packed * rep_pl; in _ep11_unwrapkey() local
1203 rep_pl = (struct uw_rep_pl *)(((u8 *)rep) + sizeof(*rep)); in _ep11_unwrapkey()
1213 rep, sizeof(*rep) + sizeof(*rep_pl)); in _ep11_unwrapkey()
1228 rc = check_reply_pl((u8 *)rep_pl, __func__); in _ep11_unwrapkey()
1231 if (rep_pl->data_tag != 0x04 || rep_pl->data_lenfmt != 0x82) { in _ep11_unwrapkey()
1236 if (rep_pl->data_len > *keybufsize) { in _ep11_unwrapkey()
1244 memcpy(keybuf, rep_pl->data, rep_pl->data_len); in _ep11_unwrapkey()
1245 *keybufsize = rep_pl->data_len; in _ep11_unwrapkey()
1319 } __packed * rep_pl; in _ep11_wrapkey() local
1363 rep_pl = (struct wk_rep_pl *)(((u8 *)rep) + sizeof(*rep)); in _ep11_wrapkey()
1373 rep, sizeof(*rep) + sizeof(*rep_pl)); in _ep11_wrapkey()
1388 rc = check_reply_pl((u8 *)rep_pl, __func__); in _ep11_wrapkey()
1391 if (rep_pl->data_tag != 0x04 || rep_pl->data_lenfmt != 0x82) { in _ep11_wrapkey()
1396 if (rep_pl->data_len > *datasize) { in _ep11_wrapkey()
1404 memcpy(databuf, rep_pl->data, rep_pl->data_len); in _ep11_wrapkey()
1405 *datasize = rep_pl->data_len; in _ep11_wrapkey()