Lines Matching refs:rep_pl
489 } __packed * rep_pl; in ep11_query_info() local
511 rep_pl = (struct ep11_info_rep_pl *) (((u8 *) rep) + sizeof(*rep)); in ep11_query_info()
521 rep, sizeof(*rep) + sizeof(*rep_pl) + buflen); in ep11_query_info()
531 rc = check_reply_pl((u8 *)rep_pl, __func__); in ep11_query_info()
534 if (rep_pl->data_tag != 0x04 || rep_pl->data_lenfmt != 0x82) { in ep11_query_info()
539 if (rep_pl->data_len > buflen) { in ep11_query_info()
546 memcpy(buf, ((u8 *) rep_pl) + sizeof(*rep_pl), rep_pl->data_len); in ep11_query_info()
701 } __packed * rep_pl; in ep11_genaeskey() local
749 rep_pl = (struct keygen_rep_pl *) (((u8 *) rep) + sizeof(*rep)); in ep11_genaeskey()
759 rep, sizeof(*rep) + sizeof(*rep_pl)); in ep11_genaeskey()
769 rc = check_reply_pl((u8 *)rep_pl, __func__); in ep11_genaeskey()
772 if (rep_pl->data_tag != 0x04 || rep_pl->data_lenfmt != 0x82) { in ep11_genaeskey()
777 if (rep_pl->data_len > *keybufsize) { in ep11_genaeskey()
785 memcpy(keybuf, rep_pl->data, rep_pl->data_len); in ep11_genaeskey()
786 *keybufsize = rep_pl->data_len; in ep11_genaeskey()
789 kb->head.len = rep_pl->data_len; in ep11_genaeskey()
829 } __packed * rep_pl; in ep11_cryptsingle() local
869 rep_pl = (struct crypt_rep_pl *) (((u8 *) rep) + sizeof(*rep)); in ep11_cryptsingle()
889 rc = check_reply_pl((u8 *)rep_pl, __func__); in ep11_cryptsingle()
892 if (rep_pl->data_tag != 0x04) { in ep11_cryptsingle()
897 p = ((u8 *) rep_pl) + sizeof(*rep_pl); in ep11_cryptsingle()
898 if (rep_pl->data_lenfmt <= 127) in ep11_cryptsingle()
899 n = rep_pl->data_lenfmt; in ep11_cryptsingle()
900 else if (rep_pl->data_lenfmt == 0x81) in ep11_cryptsingle()
902 else if (rep_pl->data_lenfmt == 0x82) { in ep11_cryptsingle()
907 __func__, rep_pl->data_lenfmt); in ep11_cryptsingle()
966 } __packed * rep_pl; in ep11_unwrapkey() local
1017 rep_pl = (struct uw_rep_pl *) (((u8 *) rep) + sizeof(*rep)); in ep11_unwrapkey()
1027 rep, sizeof(*rep) + sizeof(*rep_pl)); in ep11_unwrapkey()
1037 rc = check_reply_pl((u8 *)rep_pl, __func__); in ep11_unwrapkey()
1040 if (rep_pl->data_tag != 0x04 || rep_pl->data_lenfmt != 0x82) { in ep11_unwrapkey()
1045 if (rep_pl->data_len > *keybufsize) { in ep11_unwrapkey()
1053 memcpy(keybuf, rep_pl->data, rep_pl->data_len); in ep11_unwrapkey()
1054 *keybufsize = rep_pl->data_len; in ep11_unwrapkey()
1057 kb->head.len = rep_pl->data_len; in ep11_unwrapkey()
1097 } __packed * rep_pl; in ep11_wrapkey() local
1155 rep_pl = (struct wk_rep_pl *) (((u8 *) rep) + sizeof(*rep)); in ep11_wrapkey()
1165 rep, sizeof(*rep) + sizeof(*rep_pl)); in ep11_wrapkey()
1175 rc = check_reply_pl((u8 *)rep_pl, __func__); in ep11_wrapkey()
1178 if (rep_pl->data_tag != 0x04 || rep_pl->data_lenfmt != 0x82) { in ep11_wrapkey()
1183 if (rep_pl->data_len > *datasize) { in ep11_wrapkey()
1191 memcpy(databuf, rep_pl->data, rep_pl->data_len); in ep11_wrapkey()
1192 *datasize = rep_pl->data_len; in ep11_wrapkey()