Lines Matching refs:rep_pl

488 	} __packed * rep_pl;  in ep11_query_info()  local
510 rep_pl = (struct ep11_info_rep_pl *)(((u8 *)rep) + sizeof(*rep)); in ep11_query_info()
520 rep, sizeof(*rep) + sizeof(*rep_pl) + buflen); in ep11_query_info()
530 rc = check_reply_pl((u8 *)rep_pl, __func__); in ep11_query_info()
533 if (rep_pl->data_tag != 0x04 || rep_pl->data_lenfmt != 0x82) { in ep11_query_info()
538 if (rep_pl->data_len > buflen) { in ep11_query_info()
545 memcpy(buf, ((u8 *)rep_pl) + sizeof(*rep_pl), rep_pl->data_len); in ep11_query_info()
700 } __packed * rep_pl; in ep11_genaeskey() local
748 rep_pl = (struct keygen_rep_pl *)(((u8 *)rep) + sizeof(*rep)); in ep11_genaeskey()
758 rep, sizeof(*rep) + sizeof(*rep_pl)); in ep11_genaeskey()
768 rc = check_reply_pl((u8 *)rep_pl, __func__); in ep11_genaeskey()
771 if (rep_pl->data_tag != 0x04 || rep_pl->data_lenfmt != 0x82) { in ep11_genaeskey()
776 if (rep_pl->data_len > *keybufsize) { in ep11_genaeskey()
784 memcpy(keybuf, rep_pl->data, rep_pl->data_len); in ep11_genaeskey()
785 *keybufsize = rep_pl->data_len; in ep11_genaeskey()
788 kb->head.len = rep_pl->data_len; in ep11_genaeskey()
828 } __packed * rep_pl; in ep11_cryptsingle() local
868 rep_pl = (struct crypt_rep_pl *)(((u8 *)rep) + sizeof(*rep)); in ep11_cryptsingle()
888 rc = check_reply_pl((u8 *)rep_pl, __func__); in ep11_cryptsingle()
891 if (rep_pl->data_tag != 0x04) { in ep11_cryptsingle()
896 p = ((u8 *)rep_pl) + sizeof(*rep_pl); in ep11_cryptsingle()
897 if (rep_pl->data_lenfmt <= 127) { in ep11_cryptsingle()
898 n = rep_pl->data_lenfmt; in ep11_cryptsingle()
899 } else if (rep_pl->data_lenfmt == 0x81) { in ep11_cryptsingle()
901 } else if (rep_pl->data_lenfmt == 0x82) { in ep11_cryptsingle()
906 __func__, rep_pl->data_lenfmt); in ep11_cryptsingle()
965 } __packed * rep_pl; in ep11_unwrapkey() local
1016 rep_pl = (struct uw_rep_pl *)(((u8 *)rep) + sizeof(*rep)); in ep11_unwrapkey()
1026 rep, sizeof(*rep) + sizeof(*rep_pl)); in ep11_unwrapkey()
1036 rc = check_reply_pl((u8 *)rep_pl, __func__); in ep11_unwrapkey()
1039 if (rep_pl->data_tag != 0x04 || rep_pl->data_lenfmt != 0x82) { in ep11_unwrapkey()
1044 if (rep_pl->data_len > *keybufsize) { in ep11_unwrapkey()
1052 memcpy(keybuf, rep_pl->data, rep_pl->data_len); in ep11_unwrapkey()
1053 *keybufsize = rep_pl->data_len; in ep11_unwrapkey()
1056 kb->head.len = rep_pl->data_len; in ep11_unwrapkey()
1096 } __packed * rep_pl; in ep11_wrapkey() local
1154 rep_pl = (struct wk_rep_pl *)(((u8 *)rep) + sizeof(*rep)); in ep11_wrapkey()
1164 rep, sizeof(*rep) + sizeof(*rep_pl)); in ep11_wrapkey()
1174 rc = check_reply_pl((u8 *)rep_pl, __func__); in ep11_wrapkey()
1177 if (rep_pl->data_tag != 0x04 || rep_pl->data_lenfmt != 0x82) { in ep11_wrapkey()
1182 if (rep_pl->data_len > *datasize) { in ep11_wrapkey()
1190 memcpy(databuf, rep_pl->data, rep_pl->data_len); in ep11_wrapkey()
1191 *datasize = rep_pl->data_len; in ep11_wrapkey()