Lines Matching refs:rep_pl
593 } __packed * rep_pl; in ep11_query_info() local
615 rep_pl = (struct ep11_info_rep_pl *)(((u8 *)rep) + sizeof(*rep)); in ep11_query_info()
625 rep, sizeof(*rep) + sizeof(*rep_pl) + buflen); in ep11_query_info()
635 rc = check_reply_pl((u8 *)rep_pl, __func__); in ep11_query_info()
638 if (rep_pl->data_tag != 0x04 || rep_pl->data_lenfmt != 0x82) { in ep11_query_info()
643 if (rep_pl->data_len > buflen) { in ep11_query_info()
650 memcpy(buf, ((u8 *)rep_pl) + sizeof(*rep_pl), rep_pl->data_len); in ep11_query_info()
805 } __packed * rep_pl; in _ep11_genaeskey() local
867 rep_pl = (struct keygen_rep_pl *)(((u8 *)rep) + sizeof(*rep)); in _ep11_genaeskey()
877 rep, sizeof(*rep) + sizeof(*rep_pl)); in _ep11_genaeskey()
887 rc = check_reply_pl((u8 *)rep_pl, __func__); in _ep11_genaeskey()
890 if (rep_pl->data_tag != 0x04 || rep_pl->data_lenfmt != 0x82) { in _ep11_genaeskey()
895 if (rep_pl->data_len > *keybufsize) { in _ep11_genaeskey()
903 memcpy(keybuf, rep_pl->data, rep_pl->data_len); in _ep11_genaeskey()
904 *keybufsize = rep_pl->data_len; in _ep11_genaeskey()
979 } __packed * rep_pl; in ep11_cryptsingle() local
1019 rep_pl = (struct crypt_rep_pl *)(((u8 *)rep) + sizeof(*rep)); in ep11_cryptsingle()
1039 rc = check_reply_pl((u8 *)rep_pl, __func__); in ep11_cryptsingle()
1042 if (rep_pl->data_tag != 0x04) { in ep11_cryptsingle()
1047 p = ((u8 *)rep_pl) + sizeof(*rep_pl); in ep11_cryptsingle()
1048 if (rep_pl->data_lenfmt <= 127) { in ep11_cryptsingle()
1049 n = rep_pl->data_lenfmt; in ep11_cryptsingle()
1050 } else if (rep_pl->data_lenfmt == 0x81) { in ep11_cryptsingle()
1052 } else if (rep_pl->data_lenfmt == 0x82) { in ep11_cryptsingle()
1057 __func__, rep_pl->data_lenfmt); in ep11_cryptsingle()
1116 } __packed * rep_pl; in _ep11_unwrapkey() local
1177 rep_pl = (struct uw_rep_pl *)(((u8 *)rep) + sizeof(*rep)); in _ep11_unwrapkey()
1187 rep, sizeof(*rep) + sizeof(*rep_pl)); in _ep11_unwrapkey()
1197 rc = check_reply_pl((u8 *)rep_pl, __func__); in _ep11_unwrapkey()
1200 if (rep_pl->data_tag != 0x04 || rep_pl->data_lenfmt != 0x82) { in _ep11_unwrapkey()
1205 if (rep_pl->data_len > *keybufsize) { in _ep11_unwrapkey()
1213 memcpy(keybuf, rep_pl->data, rep_pl->data_len); in _ep11_unwrapkey()
1214 *keybufsize = rep_pl->data_len; in _ep11_unwrapkey()
1288 } __packed * rep_pl; in _ep11_wrapkey() local
1332 rep_pl = (struct wk_rep_pl *)(((u8 *)rep) + sizeof(*rep)); in _ep11_wrapkey()
1342 rep, sizeof(*rep) + sizeof(*rep_pl)); in _ep11_wrapkey()
1352 rc = check_reply_pl((u8 *)rep_pl, __func__); in _ep11_wrapkey()
1355 if (rep_pl->data_tag != 0x04 || rep_pl->data_lenfmt != 0x82) { in _ep11_wrapkey()
1360 if (rep_pl->data_len > *datasize) { in _ep11_wrapkey()
1368 memcpy(databuf, rep_pl->data, rep_pl->data_len); in _ep11_wrapkey()
1369 *datasize = rep_pl->data_len; in _ep11_wrapkey()