-
Notifications
You must be signed in to change notification settings - Fork 24
/
XFSPIN.H
1099 lines (917 loc) · 44.1 KB
/
XFSPIN.H
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/****************************************************************************
* *
* xfspin.h XFS - Personal Identification Number Keypad (PIN) definitions *
* *
* Version 3.10 (29/11/2007) *
* *
****************************************************************************/
#ifndef __INC_XFSPIN__H
#define __INC_XFSPIN__H
#ifdef __cplusplus
extern "C" {
#endif
#include "xfsapi.h"
/* be aware of alignment */
#pragma pack(push,1)
/* values of WFSPINCAPS.wClass */
#define WFS_SERVICE_CLASS_PIN (4)
#define WFS_SERVICE_CLASS_VERSION_PIN (0x0A03) /* Version 3.10 */
#define WFS_SERVICE_CLASS_NAME_PIN "PIN"
#define PIN_SERVICE_OFFSET (WFS_SERVICE_CLASS_PIN * 100)
/* PIN Info Commands */
#define WFS_INF_PIN_STATUS (PIN_SERVICE_OFFSET + 1)
#define WFS_INF_PIN_CAPABILITIES (PIN_SERVICE_OFFSET + 2)
#define WFS_INF_PIN_KEY_DETAIL (PIN_SERVICE_OFFSET + 4)
#define WFS_INF_PIN_FUNCKEY_DETAIL (PIN_SERVICE_OFFSET + 5)
#define WFS_INF_PIN_HSM_TDATA (PIN_SERVICE_OFFSET + 6)
#define WFS_INF_PIN_KEY_DETAIL_EX (PIN_SERVICE_OFFSET + 7)
#define WFS_INF_PIN_SECUREKEY_DETAIL (PIN_SERVICE_OFFSET + 8)
#define WFS_INF_PIN_QUERY_LOGICAL_HSM_DETAIL (PIN_SERVICE_OFFSET + 9)
/* PIN Command Verbs */
#define WFS_CMD_PIN_CRYPT (PIN_SERVICE_OFFSET + 1)
#define WFS_CMD_PIN_IMPORT_KEY (PIN_SERVICE_OFFSET + 3)
#define WFS_CMD_PIN_GET_PIN (PIN_SERVICE_OFFSET + 5)
#define WFS_CMD_PIN_GET_PINBLOCK (PIN_SERVICE_OFFSET + 7)
#define WFS_CMD_PIN_GET_DATA (PIN_SERVICE_OFFSET + 8)
#define WFS_CMD_PIN_INITIALIZATION (PIN_SERVICE_OFFSET + 9)
#define WFS_CMD_PIN_LOCAL_DES (PIN_SERVICE_OFFSET + 10)
#define WFS_CMD_PIN_LOCAL_EUROCHEQUE (PIN_SERVICE_OFFSET + 11)
#define WFS_CMD_PIN_LOCAL_VISA (PIN_SERVICE_OFFSET + 12)
#define WFS_CMD_PIN_CREATE_OFFSET (PIN_SERVICE_OFFSET + 13)
#define WFS_CMD_PIN_DERIVE_KEY (PIN_SERVICE_OFFSET + 14)
#define WFS_CMD_PIN_PRESENT_IDC (PIN_SERVICE_OFFSET + 15)
#define WFS_CMD_PIN_LOCAL_BANKSYS (PIN_SERVICE_OFFSET + 16)
#define WFS_CMD_PIN_BANKSYS_IO (PIN_SERVICE_OFFSET + 17)
#define WFS_CMD_PIN_RESET (PIN_SERVICE_OFFSET + 18)
#define WFS_CMD_PIN_HSM_SET_TDATA (PIN_SERVICE_OFFSET + 19)
#define WFS_CMD_PIN_SECURE_MSG_SEND (PIN_SERVICE_OFFSET + 20)
#define WFS_CMD_PIN_SECURE_MSG_RECEIVE (PIN_SERVICE_OFFSET + 21)
#define WFS_CMD_PIN_GET_JOURNAL (PIN_SERVICE_OFFSET + 22)
#define WFS_CMD_PIN_IMPORT_KEY_EX (PIN_SERVICE_OFFSET + 23)
#define WFS_CMD_PIN_ENC_IO (PIN_SERVICE_OFFSET + 24)
#define WFS_CMD_PIN_HSM_INIT (PIN_SERVICE_OFFSET + 25)
#define WFS_CMD_PIN_IMPORT_RSA_PUBLIC_KEY (PIN_SERVICE_OFFSET + 26)
#define WFS_CMD_PIN_EXPORT_RSA_ISSUER_SIGNED_ITEM (PIN_SERVICE_OFFSET + 27)
#define WFS_CMD_PIN_IMPORT_RSA_SIGNED_DES_KEY (PIN_SERVICE_OFFSET + 28)
#define WFS_CMD_PIN_GENERATE_RSA_KEY_PAIR (PIN_SERVICE_OFFSET + 29)
#define WFS_CMD_PIN_EXPORT_RSA_EPP_SIGNED_ITEM (PIN_SERVICE_OFFSET + 30)
#define WFS_CMD_PIN_LOAD_CERTIFICATE (PIN_SERVICE_OFFSET + 31)
#define WFS_CMD_PIN_GET_CERTIFICATE (PIN_SERVICE_OFFSET + 32)
#define WFS_CMD_PIN_REPLACE_CERTIFICATE (PIN_SERVICE_OFFSET + 33)
#define WFS_CMD_PIN_START_KEY_EXCHANGE (PIN_SERVICE_OFFSET + 34)
#define WFS_CMD_PIN_IMPORT_RSA_ENCIPHERED_PKCS7_KEY (PIN_SERVICE_OFFSET + 35)
#define WFS_CMD_PIN_EMV_IMPORT_PUBLIC_KEY (PIN_SERVICE_OFFSET + 36)
#define WFS_CMD_PIN_DIGEST (PIN_SERVICE_OFFSET + 37)
#define WFS_CMD_PIN_SECUREKEY_ENTRY (PIN_SERVICE_OFFSET + 38)
#define WFS_CMD_PIN_GENERATE_KCV (PIN_SERVICE_OFFSET + 39)
#define WFS_CMD_PIN_SET_GUIDANCE_LIGHT (PIN_SERVICE_OFFSET + 41)
#define WFS_CMD_PIN_MAINTAIN_PIN (PIN_SERVICE_OFFSET + 42)
#define WFS_CMD_PIN_KEYPRESS_BEEP (PIN_SERVICE_OFFSET + 43)
#define WFS_CMD_PIN_SET_PINBLOCK_DATA (PIN_SERVICE_OFFSET + 44)
#define WFS_CMD_PIN_SET_LOGICAL_HSM (PIN_SERVICE_OFFSET + 45)
#define WFS_CMD_PIN_IMPORT_KEYBLOCK (PIN_SERVICE_OFFSET + 46)
#define WFS_CMD_PIN_POWER_SAVE_CONTROL (PIN_SERVICE_OFFSET + 47)
/* PIN Messages */
#define WFS_EXEE_PIN_KEY (PIN_SERVICE_OFFSET + 1)
#define WFS_SRVE_PIN_INITIALIZED (PIN_SERVICE_OFFSET + 2)
#define WFS_SRVE_PIN_ILLEGAL_KEY_ACCESS (PIN_SERVICE_OFFSET + 3)
#define WFS_SRVE_PIN_OPT_REQUIRED (PIN_SERVICE_OFFSET + 4)
#define WFS_SRVE_PIN_HSM_TDATA_CHANGED (PIN_SERVICE_OFFSET + 5)
#define WFS_SRVE_PIN_CERTIFICATE_CHANGE (PIN_SERVICE_OFFSET + 6)
#define WFS_SRVE_PIN_HSM_CHANGED (PIN_SERVICE_OFFSET + 7)
#define WFS_EXEE_PIN_ENTERDATA (PIN_SERVICE_OFFSET + 8)
#define WFS_SRVE_PIN_DEVICEPOSITION (PIN_SERVICE_OFFSET + 9)
#define WFS_SRVE_PIN_POWER_SAVE_CHANGE (PIN_SERVICE_OFFSET + 10)
/* values of WFSPINSTATUS.fwDevice */
#define WFS_PIN_DEVONLINE WFS_STAT_DEVONLINE
#define WFS_PIN_DEVOFFLINE WFS_STAT_DEVOFFLINE
#define WFS_PIN_DEVPOWEROFF WFS_STAT_DEVPOWEROFF
#define WFS_PIN_DEVNODEVICE WFS_STAT_DEVNODEVICE
#define WFS_PIN_DEVHWERROR WFS_STAT_DEVHWERROR
#define WFS_PIN_DEVUSERERROR WFS_STAT_DEVUSERERROR
#define WFS_PIN_DEVBUSY WFS_STAT_DEVBUSY
#define WFS_PIN_DEVFRAUDATTEMPT WFS_STAT_DEVFRAUDATTEMPT
/* values of WFSPINSTATUS.fwEncStat */
#define WFS_PIN_ENCREADY (0)
#define WFS_PIN_ENCNOTREADY (1)
#define WFS_PIN_ENCNOTINITIALIZED (2)
#define WFS_PIN_ENCBUSY (3)
#define WFS_PIN_ENCUNDEFINED (4)
#define WFS_PIN_ENCINITIALIZED (5)
#define WFS_PIN_ENCPINTAMPERED (6)
/* Size and max index of dwGuidLights array */
#define WFS_PIN_GUIDLIGHTS_SIZE (32)
#define WFS_PIN_GUIDLIGHTS_MAX (WFS_PIN_GUIDLIGHTS_SIZE - 1)
/* Indices of WFSPINSTATUS.dwGuidLights [...]
WFSPINCAPS.dwGuidLights [...]
*/
#define WFS_PIN_GUIDANCE_PINPAD (0)
/* Values of WFSPINSTATUS.dwGuidLights [...]
WFSPINCAPS.dwGuidLights [...]
*/
#define WFS_PIN_GUIDANCE_NOT_AVAILABLE (0x00000000)
#define WFS_PIN_GUIDANCE_OFF (0x00000001)
#define WFS_PIN_GUIDANCE_ON (0x00000002)
#define WFS_PIN_GUIDANCE_SLOW_FLASH (0x00000004)
#define WFS_PIN_GUIDANCE_MEDIUM_FLASH (0x00000008)
#define WFS_PIN_GUIDANCE_QUICK_FLASH (0x00000010)
#define WFS_PIN_GUIDANCE_CONTINUOUS (0x00000080)
#define WFS_PIN_GUIDANCE_RED (0x00000100)
#define WFS_PIN_GUIDANCE_GREEN (0x00000200)
#define WFS_PIN_GUIDANCE_YELLOW (0x00000400)
#define WFS_PIN_GUIDANCE_BLUE (0x00000800)
#define WFS_PIN_GUIDANCE_CYAN (0x00001000)
#define WFS_PIN_GUIDANCE_MAGENTA (0x00002000)
#define WFS_PIN_GUIDANCE_WHITE (0x00004000)
/* values for WFSPINSTATUS.fwAutoBeepMode and
WFS_PIN_CMD_KEYPRESS_BEEP lpwMode parameter */
#define WFS_PIN_BEEP_ON_ACTIVE (0x0001)
#define WFS_PIN_BEEP_ON_INACTIVE (0x0002)
/* values of WFSPINSTATUS.wDevicePosition
WFSPINDEVICEPOSITION.wPosition */
#define WFS_PIN_DEVICEINPOSITION (0)
#define WFS_PIN_DEVICENOTINPOSITION (1)
#define WFS_PIN_DEVICEPOSUNKNOWN (2)
#define WFS_PIN_DEVICEPOSNOTSUPP (3)
/* values of WFSPINCAPS.wType */
#define WFS_PIN_TYPEEPP (0x0001)
#define WFS_PIN_TYPEEDM (0x0002)
#define WFS_PIN_TYPEHSM (0x0004)
/* values of WFSPINCAPS.fwAlgorithms, WFSPINCRYPT.wAlgorithm */
#define WFS_PIN_CRYPTDESECB (0x0001)
#define WFS_PIN_CRYPTDESCBC (0x0002)
#define WFS_PIN_CRYPTDESCFB (0x0004)
#define WFS_PIN_CRYPTRSA (0x0008)
#define WFS_PIN_CRYPTECMA (0x0010)
#define WFS_PIN_CRYPTDESMAC (0x0020)
#define WFS_PIN_CRYPTTRIDESECB (0x0040)
#define WFS_PIN_CRYPTTRIDESCBC (0x0080)
#define WFS_PIN_CRYPTTRIDESCFB (0x0100)
#define WFS_PIN_CRYPTTRIDESMAC (0x0200)
#define WFS_PIN_CRYPTMAAMAC (0x0400)
/* values of WFSPINCAPS.fwPinFormats */
#define WFS_PIN_FORM3624 (0x0001)
#define WFS_PIN_FORMANSI (0x0002)
#define WFS_PIN_FORMISO0 (0x0004)
#define WFS_PIN_FORMISO1 (0x0008)
#define WFS_PIN_FORMECI2 (0x0010)
#define WFS_PIN_FORMECI3 (0x0020)
#define WFS_PIN_FORMVISA (0x0040)
#define WFS_PIN_FORMDIEBOLD (0x0080)
#define WFS_PIN_FORMDIEBOLDCO (0x0100)
#define WFS_PIN_FORMVISA3 (0x0200)
#define WFS_PIN_FORMBANKSYS (0x0400)
#define WFS_PIN_FORMEMV (0x0800)
#define WFS_PIN_FORMISO3 (0x2000)
/* values of WFSPINCAPS.fwDerivationAlgorithms */
#define WFS_PIN_CHIP_ZKA (0x0001)
/* values of WFSPINCAPS.fwPresentationAlgorithms */
#define WFS_PIN_PRESENT_CLEAR (0x0001)
/* values of WFSPINCAPS.fwDisplay */
#define WFS_PIN_DISPNONE (1)
#define WFS_PIN_DISPLEDTHROUGH (2)
#define WFS_PIN_DISPDISPLAY (3)
/* values of WFSPINCAPS.fwIDKey */
#define WFS_PIN_IDKEYINITIALIZATION (0x0001)
#define WFS_PIN_IDKEYIMPORT (0x0002)
/* values of WFSPINCAPS.fwValidationAlgorithms */
#define WFS_PIN_DES (0x0001)
#define WFS_PIN_EUROCHEQUE (0x0002)
#define WFS_PIN_VISA (0x0004)
#define WFS_PIN_DES_OFFSET (0x0008)
#define WFS_PIN_BANKSYS (0x0010)
/* values of WFSPINCAPS.fwKeyCheckModes and
WFSPINIMPORTKEYEX.wKeyCheckMode */
#define WFS_PIN_KCVNONE (0x0000)
#define WFS_PIN_KCVSELF (0x0001)
#define WFS_PIN_KCVZERO (0x0002)
/* values of WFSPINCAPS.fwAutoBeep */
#define WFS_PIN_BEEP_ACTIVE_AVAILABLE (0x0001)
#define WFS_PIN_BEEP_ACTIVE_SELECTABLE (0x0002)
#define WFS_PIN_BEEP_INACTIVE_AVAILABLE (0x0004)
#define WFS_PIN_BEEP_INACTIVE_SELECTABLE (0x0008)
/* values of WFSPINCAPS.fwKeyBlockImportFormats */
#define WFS_PIN_ANSTR31KEYBLOCK (0x0001)
/* values of WFSPINKEYDETAIL.fwUse and values of WFSPINKEYDETAILEX.dwUse */
#define WFS_PIN_USECRYPT (0x0001)
#define WFS_PIN_USEFUNCTION (0x0002)
#define WFS_PIN_USEMACING (0x0004)
#define WFS_PIN_USEKEYENCKEY (0x0020)
#define WFS_PIN_USENODUPLICATE (0x0040)
#define WFS_PIN_USESVENCKEY (0x0080)
#define WFS_PIN_USECONSTRUCT (0x0100)
#define WFS_PIN_USESECURECONSTRUCT (0x0200)
#define WFS_PIN_USEANSTR31MASTER (0x0400)
/* additional values for WFSPINKEYDETAILEX.dwUse */
#define WFS_PIN_USEPINLOCAL (0x00010000)
#define WFS_PIN_USERSAPUBLIC (0x00020000)
#define WFS_PIN_USERSAPRIVATE (0x00040000)
#define WFS_PIN_USECHIPINFO (0x00100000)
#define WFS_PIN_USECHIPPIN (0x00200000)
#define WFS_PIN_USECHIPPS (0x00400000)
#define WFS_PIN_USECHIPMAC (0x00800000)
#define WFS_PIN_USECHIPLT (0x01000000)
#define WFS_PIN_USECHIPMACLZ (0x02000000)
#define WFS_PIN_USECHIPMACAZ (0x04000000)
#define WFS_PIN_USERSAPUBLICVERIFY (0x08000000)
#define WFS_PIN_USERSAPRIVATESIGN (0x10000000)
/* values of WFSPINFUNCKEYDETAIL.ulFuncMask */
#define WFS_PIN_FK_0 (0x00000001)
#define WFS_PIN_FK_1 (0x00000002)
#define WFS_PIN_FK_2 (0x00000004)
#define WFS_PIN_FK_3 (0x00000008)
#define WFS_PIN_FK_4 (0x00000010)
#define WFS_PIN_FK_5 (0x00000020)
#define WFS_PIN_FK_6 (0x00000040)
#define WFS_PIN_FK_7 (0x00000080)
#define WFS_PIN_FK_8 (0x00000100)
#define WFS_PIN_FK_9 (0x00000200)
#define WFS_PIN_FK_ENTER (0x00000400)
#define WFS_PIN_FK_CANCEL (0x00000800)
#define WFS_PIN_FK_CLEAR (0x00001000)
#define WFS_PIN_FK_BACKSPACE (0x00002000)
#define WFS_PIN_FK_HELP (0x00004000)
#define WFS_PIN_FK_DECPOINT (0x00008000)
#define WFS_PIN_FK_00 (0x00010000)
#define WFS_PIN_FK_000 (0x00020000)
#define WFS_PIN_FK_RES1 (0x00040000)
#define WFS_PIN_FK_RES2 (0x00080000)
#define WFS_PIN_FK_RES3 (0x00100000)
#define WFS_PIN_FK_RES4 (0x00200000)
#define WFS_PIN_FK_RES5 (0x00400000)
#define WFS_PIN_FK_RES6 (0x00800000)
#define WFS_PIN_FK_RES7 (0x01000000)
#define WFS_PIN_FK_RES8 (0x02000000)
#define WFS_PIN_FK_OEM1 (0x04000000)
#define WFS_PIN_FK_OEM2 (0x08000000)
#define WFS_PIN_FK_OEM3 (0x10000000)
#define WFS_PIN_FK_OEM4 (0x20000000)
#define WFS_PIN_FK_OEM5 (0x40000000)
#define WFS_PIN_FK_OEM6 (0x80000000)
/* additional values of WFSPINFUNCKEYDETAIL.ulFuncMask */
#define WFS_PIN_FK_UNUSED (0x00000000)
#define WFS_PIN_FK_A WFS_PIN_FK_RES1
#define WFS_PIN_FK_B WFS_PIN_FK_RES2
#define WFS_PIN_FK_C WFS_PIN_FK_RES3
#define WFS_PIN_FK_D WFS_PIN_FK_RES4
#define WFS_PIN_FK_E WFS_PIN_FK_RES5
#define WFS_PIN_FK_F WFS_PIN_FK_RES6
#define WFS_PIN_FK_SHIFT WFS_PIN_FK_RES7
/* values of WFSPINFUNCKEY.ulFDK */
#define WFS_PIN_FK_FDK01 (0x00000001)
#define WFS_PIN_FK_FDK02 (0x00000002)
#define WFS_PIN_FK_FDK03 (0x00000004)
#define WFS_PIN_FK_FDK04 (0x00000008)
#define WFS_PIN_FK_FDK05 (0x00000010)
#define WFS_PIN_FK_FDK06 (0x00000020)
#define WFS_PIN_FK_FDK07 (0x00000040)
#define WFS_PIN_FK_FDK08 (0x00000080)
#define WFS_PIN_FK_FDK09 (0x00000100)
#define WFS_PIN_FK_FDK10 (0x00000200)
#define WFS_PIN_FK_FDK11 (0x00000400)
#define WFS_PIN_FK_FDK12 (0x00000800)
#define WFS_PIN_FK_FDK13 (0x00001000)
#define WFS_PIN_FK_FDK14 (0x00002000)
#define WFS_PIN_FK_FDK15 (0x00004000)
#define WFS_PIN_FK_FDK16 (0x00008000)
#define WFS_PIN_FK_FDK17 (0x00010000)
#define WFS_PIN_FK_FDK18 (0x00020000)
#define WFS_PIN_FK_FDK19 (0x00040000)
#define WFS_PIN_FK_FDK20 (0x00080000)
#define WFS_PIN_FK_FDK21 (0x00100000)
#define WFS_PIN_FK_FDK22 (0x00200000)
#define WFS_PIN_FK_FDK23 (0x00400000)
#define WFS_PIN_FK_FDK24 (0x00800000)
#define WFS_PIN_FK_FDK25 (0x01000000)
#define WFS_PIN_FK_FDK26 (0x02000000)
#define WFS_PIN_FK_FDK27 (0x04000000)
#define WFS_PIN_FK_FDK28 (0x08000000)
#define WFS_PIN_FK_FDK29 (0x10000000)
#define WFS_PIN_FK_FDK30 (0x20000000)
#define WFS_PIN_FK_FDK31 (0x40000000)
#define WFS_PIN_FK_FDK32 (0x80000000)
/* values of WFSPINCRYPT.wMode */
#define WFS_PIN_MODEENCRYPT (1)
#define WFS_PIN_MODEDECRYPT (2)
#define WFS_PIN_MODERANDOM (3)
/* values of WFSPINENTRY.wCompletion */
#define WFS_PIN_COMPAUTO (0)
#define WFS_PIN_COMPENTER (1)
#define WFS_PIN_COMPCANCEL (2)
#define WFS_PIN_COMPCONTINUE (6)
#define WFS_PIN_COMPCLEAR (7)
#define WFS_PIN_COMPBACKSPACE (8)
#define WFS_PIN_COMPFDK (9)
#define WFS_PIN_COMPHELP (10)
#define WFS_PIN_COMPFK (11)
#define WFS_PIN_COMPCONTFDK (12)
/* values of WFSPINSECMSG.wProtocol */
#define WFS_PIN_PROTISOAS (1)
#define WFS_PIN_PROTISOLZ (2)
#define WFS_PIN_PROTISOPS (3)
#define WFS_PIN_PROTCHIPZKA (4)
#define WFS_PIN_PROTRAWDATA (5)
#define WFS_PIN_PROTPBM (6)
#define WFS_PIN_PROTHSMLDI (7)
#define WFS_PIN_PROTGENAS (8)
#define WFS_PIN_PROTCHIPINCHG (9)
#define WFS_PIN_PROTPINCMP (10)
#define WFS_PIN_PROTISOPINCHG (11)
/* values of WFSPINHSMINIT.wInitMode. */
#define WFS_PIN_INITTEMP (1)
#define WFS_PIN_INITDEFINITE (2)
#define WFS_PIN_INITIRREVERSIBLE (3)
/* values of WFSPINENCIO.wProtocol and WFSPINCAPS.fwPINENCIOProtocols */
#define WFS_PIN_ENC_PROT_CH (0x0001)
#define WFS_PIN_ENC_PROT_GIECB (0x0002)
#define WFS_PIN_ENC_PROT_LUX (0x0004)
/* values for WFS_SRVE_PIN_CERTIFICATE_CHANGE and WFSPINSTATUS.dwCertificateState */
#define WFS_PIN_CERT_SECONDARY (0x00000002)
/* values for WFSPINSTATUS.dwCertificateState*/
#define WFS_PIN_CERT_UNKNOWN (0x00000000)
#define WFS_PIN_CERT_PRIMARY (0x00000001)
#define WFS_PIN_CERT_NOTREADY (0x00000004)
/* Values for WFSPINCAPS.dwRSAAuthenticationScheme and the fast-track Capabilities
lpszExtra parameter, REMOTE_KEY_SCHEME. */
#define WFS_PIN_RSA_AUTH_2PARTY_SIG (0x00000001)
#define WFS_PIN_RSA_AUTH_3PARTY_CERT (0x00000002)
/* Values for WFSPINCAPS.dwSignatureScheme and the fast-track Capabilities lpzExtra parameter, SIGNATURE_CAPABILITIES. */
#define WFS_PIN_SIG_GEN_RSA_KEY_PAIR (0x00000001)
#define WFS_PIN_SIG_RANDOM_NUMBER (0x00000002)
#define WFS_PIN_SIG_EXPORT_EPP_ID (0x00000004)
#define WFS_PIN_SIG_ENHANCED_RKL (0x00000008)
/* values of WFSPINIMPORTRSAPUBLICKEY.dwRSASignatureAlgorithm and
WFSPINCAPS.dwRSASignatureAlgorithm */
#define WFS_PIN_SIGN_NA (0)
#define WFS_PIN_SIGN_RSASSA_PKCS1_V1_5 (0x00000001)
#define WFS_PIN_SIGN_RSASSA_PSS (0x00000002)
/* values of WFSPINIMPORTRSAPUBLICKEYOUTPUT.dwRSAKeyCheckMode */
#define WFS_PIN_RSA_KCV_NONE (0x00000000)
#define WFS_PIN_RSA_KCV_SHA1 (0x00000001)
/* values of WFSPINEXPORTRSAISSUERSIGNEDITEM.wExportItemType and */
/* WFSPINEXPORTRSAEPPSIGNEDITEM.wExportItemType */
#define WFS_PIN_EXPORT_EPP_ID (0x0001)
#define WFS_PIN_EXPORT_PUBLIC_KEY (0x0002)
/* values of WFSPINIMPORTRSASIGNEDDESKEY.dwRSAEncipherAlgorithm and
WFSPINCAPS.dwRSACryptAlgorithm */
#define WFS_PIN_CRYPT_RSAES_PKCS1_V1_5 (0x00000001)
#define WFS_PIN_CRYPT_RSAES_OAEP (0x00000002)
/* values of WFSPINGENERATERSAKEYPAIR.wExponentValue */
#define WFS_PIN_DEFAULT (0)
#define WFS_PIN_EXPONENT_1 (1)
#define WFS_PIN_EXPONENT_4 (2)
#define WFS_PIN_EXPONENT_16 (3)
/* values of WFSPINIMPORTRSASIGNEDDESKEYOUTPUT.wKeyLength and */
/* WFSPINIMPORTRSAENCIPHEREDPKCS7KEYOUTPUT.wKeyLength */
#define WFS_PIN_KEYSINGLE (0x0001)
#define WFS_PIN_KEYDOUBLE (0x0002)
/* values of WFSPINGETCERTIFICATE.wGetCertificate */
#define WFS_PIN_PUBLICENCKEY (1)
#define WFS_PIN_PUBLICVERIFICATIONKEY (2)
/* values for WFSPINEMVIMPORTPUBLICKEY.wImportScheme and WFSPINCAPS.lpwEMVImportSchemes */
#define WFS_PIN_EMV_IMPORT_PLAIN_CA (1)
#define WFS_PIN_EMV_IMPORT_CHKSUM_CA (2)
#define WFS_PIN_EMV_IMPORT_EPI_CA (3)
#define WFS_PIN_EMV_IMPORT_ISSUER (4)
#define WFS_PIN_EMV_IMPORT_ICC (5)
#define WFS_PIN_EMV_IMPORT_ICC_PIN (6)
#define WFS_PIN_EMV_IMPORT_PKCSV1_5_CA (7)
/* values for WFSPINDIGEST.wHashAlgorithm and WFSPINCAPS.fwEMVHashAlgorithm */
#define WFS_PIN_HASH_SHA1_DIGEST (0x0001)
/* values of WFSPINSECUREKEYDETAIL.fwKeyEntryMode */
#define WFS_PIN_SECUREKEY_NOTSUPP (0x0000)
#define WFS_PIN_SECUREKEY_REG_SHIFT (0x0001)
#define WFS_PIN_SECUREKEY_REG_UNIQUE (0x0002)
#define WFS_PIN_SECUREKEY_IRREG_SHIFT (0x0004)
#define WFS_PIN_SECUREKEY_IRREG_UNIQUE (0x0008)
/* XFS PIN Errors */
#define WFS_ERR_PIN_KEYNOTFOUND (-(PIN_SERVICE_OFFSET + 0))
#define WFS_ERR_PIN_MODENOTSUPPORTED (-(PIN_SERVICE_OFFSET + 1))
#define WFS_ERR_PIN_ACCESSDENIED (-(PIN_SERVICE_OFFSET + 2))
#define WFS_ERR_PIN_INVALIDID (-(PIN_SERVICE_OFFSET + 3))
#define WFS_ERR_PIN_DUPLICATEKEY (-(PIN_SERVICE_OFFSET + 4))
#define WFS_ERR_PIN_KEYNOVALUE (-(PIN_SERVICE_OFFSET + 6))
#define WFS_ERR_PIN_USEVIOLATION (-(PIN_SERVICE_OFFSET + 7))
#define WFS_ERR_PIN_NOPIN (-(PIN_SERVICE_OFFSET + 8))
#define WFS_ERR_PIN_INVALIDKEYLENGTH (-(PIN_SERVICE_OFFSET + 9))
#define WFS_ERR_PIN_KEYINVALID (-(PIN_SERVICE_OFFSET + 10))
#define WFS_ERR_PIN_KEYNOTSUPPORTED (-(PIN_SERVICE_OFFSET + 11))
#define WFS_ERR_PIN_NOACTIVEKEYS (-(PIN_SERVICE_OFFSET + 12))
#define WFS_ERR_PIN_NOTERMINATEKEYS (-(PIN_SERVICE_OFFSET + 14))
#define WFS_ERR_PIN_MINIMUMLENGTH (-(PIN_SERVICE_OFFSET + 15))
#define WFS_ERR_PIN_PROTOCOLNOTSUPP (-(PIN_SERVICE_OFFSET + 16))
#define WFS_ERR_PIN_INVALIDDATA (-(PIN_SERVICE_OFFSET + 17))
#define WFS_ERR_PIN_NOTALLOWED (-(PIN_SERVICE_OFFSET + 18))
#define WFS_ERR_PIN_NOKEYRAM (-(PIN_SERVICE_OFFSET + 19))
#define WFS_ERR_PIN_NOCHIPTRANSACTIVE (-(PIN_SERVICE_OFFSET + 20))
#define WFS_ERR_PIN_ALGORITHMNOTSUPP (-(PIN_SERVICE_OFFSET + 21))
#define WFS_ERR_PIN_FORMATNOTSUPP (-(PIN_SERVICE_OFFSET + 22))
#define WFS_ERR_PIN_HSMSTATEINVALID (-(PIN_SERVICE_OFFSET + 23))
#define WFS_ERR_PIN_MACINVALID (-(PIN_SERVICE_OFFSET + 24))
#define WFS_ERR_PIN_PROTINVALID (-(PIN_SERVICE_OFFSET + 25))
#define WFS_ERR_PIN_FORMATINVALID (-(PIN_SERVICE_OFFSET + 26))
#define WFS_ERR_PIN_CONTENTINVALID (-(PIN_SERVICE_OFFSET + 27))
#define WFS_ERR_PIN_SIG_NOT_SUPP (-(PIN_SERVICE_OFFSET + 29))
#define WFS_ERR_PIN_INVALID_MOD_LEN (-(PIN_SERVICE_OFFSET + 31))
#define WFS_ERR_PIN_INVALIDCERTSTATE (-(PIN_SERVICE_OFFSET + 32))
#define WFS_ERR_PIN_KEY_GENERATION_ERROR (-(PIN_SERVICE_OFFSET + 33))
#define WFS_ERR_PIN_EMV_VERIFY_FAILED (-(PIN_SERVICE_OFFSET + 34))
#define WFS_ERR_PIN_RANDOMINVALID (-(PIN_SERVICE_OFFSET + 35))
#define WFS_ERR_PIN_SIGNATUREINVALID (-(PIN_SERVICE_OFFSET + 36))
#define WFS_ERR_PIN_SNSCDINVALID (-(PIN_SERVICE_OFFSET + 37))
#define WFS_ERR_PIN_NORSAKEYPAIR (-(PIN_SERVICE_OFFSET + 38))
#define WFS_ERR_PIN_INVALID_PORT (-(PIN_SERVICE_OFFSET + 39))
#define WFS_ERR_PIN_POWERSAVETOOSHORT (-(PIN_SERVICE_OFFSET + 40))
/*=================================================================*/
/* PIN Info Command Structures and variables */
/*=================================================================*/
typedef struct _wfs_hex_data
{
USHORT usLength;
LPBYTE lpbData;
} WFSXDATA, *LPWFSXDATA;
typedef struct _wfs_pin_status
{
WORD fwDevice;
WORD fwEncStat;
LPSTR lpszExtra;
DWORD dwGuidLights[WFS_PIN_GUIDLIGHTS_SIZE];
WORD fwAutoBeepMode;
DWORD dwCertificateState;
WORD wDevicePosition;
USHORT usPowerSaveRecoveryTime;
} WFSPINSTATUS, *LPWFSPINSTATUS;
typedef struct _wfs_pin_caps
{
WORD wClass;
WORD fwType;
BOOL bCompound;
USHORT usKeyNum;
WORD fwAlgorithms;
WORD fwPinFormats;
WORD fwDerivationAlgorithms;
WORD fwPresentationAlgorithms;
WORD fwDisplay;
BOOL bIDConnect;
WORD fwIDKey;
WORD fwValidationAlgorithms;
WORD fwKeyCheckModes;
LPSTR lpszExtra;
DWORD dwGuidLights[WFS_PIN_GUIDLIGHTS_SIZE];
BOOL bPINCanPersistAfterUse;
WORD fwAutoBeep;
LPSTR lpsHSMVendor;
BOOL bHSMJournaling;
DWORD dwRSAAuthenticationScheme;
DWORD dwRSASignatureAlgorithm;
DWORD dwRSACryptAlgorithm;
DWORD dwRSAKeyCheckMode;
DWORD dwSignatureScheme;
LPWORD lpwEMVImportSchemes;
WORD fwEMVHashAlgorithm;
BOOL bKeyImportThroughParts;
WORD fwENCIOProtocols;
BOOL bTypeCombined;
BOOL bSetPinblockDataRequired;
WORD fwKeyBlockImportFormats;
BOOL bPowerSaveControl;
} WFSPINCAPS, *LPWFSPINCAPS;
typedef struct _wfs_pin_key_detail
{
LPSTR lpsKeyName;
WORD fwUse;
BOOL bLoaded;
LPWFSXDATA lpxKeyBlockHeader;
} WFSPINKEYDETAIL, *LPWFSPINKEYDETAIL;
typedef struct _wfs_pin_fdk
{
ULONG ulFDK;
USHORT usXPosition;
USHORT usYPosition;
} WFSPINFDK, *LPWFSPINFDK;
typedef struct _wfs_pin_func_key_detail
{
ULONG ulFuncMask;
USHORT usNumberFDKs;
LPWFSPINFDK *lppFDKs;
} WFSPINFUNCKEYDETAIL, *LPWFSPINFUNCKEYDETAIL;
typedef struct _wfs_pin_key_detail_ex
{
LPSTR lpsKeyName;
DWORD dwUse;
BYTE bGeneration;
BYTE bVersion;
BYTE bActivatingDate[4];
BYTE bExpiryDate[4];
BOOL bLoaded;
LPWFSXDATA lpxKeyBlockHeader;
} WFSPINKEYDETAILEX, *LPWFSPINKEYDETAILEX;
/* WFS_INF_PIN_SECUREKEY_DETAIL command key layout output structure */
typedef struct _wfs_pin_hex_keys
{
USHORT usXPos;
USHORT usYPos;
USHORT usXSize;
USHORT usYSize;
ULONG ulFK;
ULONG ulShiftFK;
} WFSPINHEXKEYS, *LPWFSPINHEXKEYS;
/* WFS_INF_PIN_SECUREKEY_DETAIL command output structure */
typedef struct _wfs_pin_secure_key_detail
{
WORD fwKeyEntryMode;
LPWFSPINFUNCKEYDETAIL lpFuncKeyDetail;
ULONG ulClearFDK;
ULONG ulCancelFDK;
ULONG ulBackspaceFDK;
ULONG ulEnterFDK;
WORD wColumns;
WORD wRows;
LPWFSPINHEXKEYS *lppHexKeys;
} WFSPINSECUREKEYDETAIL, *LPWFSPINSECUREKEYDETAIL;
/*=================================================================*/
/* PIN Execute Command Structures */
/*=================================================================*/
typedef struct _wfs_pin_crypt
{
WORD wMode;
LPSTR lpsKey;
LPWFSXDATA lpxKeyEncKey;
WORD wAlgorithm;
LPSTR lpsStartValueKey;
LPWFSXDATA lpxStartValue;
BYTE bPadding;
BYTE bCompression;
LPWFSXDATA lpxCryptData;
} WFSPINCRYPT, *LPWFSPINCRYPT;
typedef struct _wfs_pin_import
{
LPSTR lpsKey;
LPSTR lpsEncKey;
LPWFSXDATA lpxIdent;
LPWFSXDATA lpxValue;
WORD fwUse;
} WFSPINIMPORT, *LPWFSPINIMPORT;
typedef struct _wfs_pin_derive
{
WORD wDerivationAlgorithm;
LPSTR lpsKey;
LPSTR lpsKeyGenKey;
LPSTR lpsStartValueKey;
LPWFSXDATA lpxStartValue;
BYTE bPadding;
LPWFSXDATA lpxInputData;
LPWFSXDATA lpxIdent;
} WFSPINDERIVE, *LPWFSPINDERIVE;
typedef struct _wfs_pin_getpin
{
USHORT usMinLen;
USHORT usMaxLen;
BOOL bAutoEnd;
CHAR cEcho;
ULONG ulActiveFDKs;
ULONG ulActiveKeys;
ULONG ulTerminateFDKs;
ULONG ulTerminateKeys;
} WFSPINGETPIN, *LPWFSPINGETPIN;
typedef struct _wfs_pin_entry
{
USHORT usDigits;
WORD wCompletion;
} WFSPINENTRY, *LPWFSPINENTRY;
typedef struct _wfs_pin_local_des
{
LPSTR lpsValidationData;
LPSTR lpsOffset;
BYTE bPadding;
USHORT usMaxPIN;
USHORT usValDigits;
BOOL bNoLeadingZero;
LPSTR lpsKey;
LPWFSXDATA lpxKeyEncKey;
LPSTR lpsDecTable;
} WFSPINLOCALDES, *LPWFSPINLOCALDES;
typedef struct _wfs_pin_create_offset
{
LPSTR lpsValidationData;
BYTE bPadding;
USHORT usMaxPIN;
USHORT usValDigits;
LPSTR lpsKey;
LPWFSXDATA lpxKeyEncKey;
LPSTR lpsDecTable;
} WFSPINCREATEOFFSET, *LPWFSPINCREATEOFFSET;
typedef struct _wfs_pin_local_eurocheque
{
LPSTR lpsEurochequeData;
LPSTR lpsPVV;
WORD wFirstEncDigits;
WORD wFirstEncOffset;
WORD wPVVDigits;
WORD wPVVOffset;
LPSTR lpsKey;
LPWFSXDATA lpxKeyEncKey;
LPSTR lpsDecTable;
} WFSPINLOCALEUROCHEQUE, *LPWFSPINLOCALEUROCHEQUE;
typedef struct _wfs_pin_local_visa
{
LPSTR lpsPAN;
LPSTR lpsPVV;
WORD wPVVDigits;
LPSTR lpsKey;
LPWFSXDATA lpxKeyEncKey;
} WFSPINLOCALVISA, *LPWFSPINLOCALVISA;
typedef struct _wfs_pin_presentidc
{
WORD wPresentAlgorithm;
WORD wChipProtocol;
ULONG ulChipDataLength;
LPBYTE lpbChipData;
LPVOID lpAlgorithmData;
} WFSPINPRESENTIDC, *LPWFSPINPRESENTIDC;
typedef struct _wfs_pin_present_result
{
WORD wChipProtocol;
ULONG ulChipDataLength;
LPBYTE lpbChipData;
} WFSPINPRESENTRESULT, *LPWFSPINPRESENTRESULT;
typedef struct _wfs_pin_presentclear
{
ULONG ulPINPointer;
USHORT usPINOffset;
} WFSPINPRESENTCLEAR, *LPWFSPINPRESENTCLEAR;
typedef struct _wfs_pin_block
{
LPSTR lpsCustomerData;
LPSTR lpsXORData;
BYTE bPadding;
WORD wFormat;
LPSTR lpsKey;
LPSTR lpsKeyEncKey;
} WFSPINBLOCK, *LPWFSPINBLOCK;
typedef struct _wfs_pin_getdata
{
USHORT usMaxLen;
BOOL bAutoEnd;
ULONG ulActiveFDKs;
ULONG ulActiveKeys;
ULONG ulTerminateFDKs;
ULONG ulTerminateKeys;
} WFSPINGETDATA, *LPWFSPINGETDATA;
typedef struct _wfs_pin_key
{
WORD wCompletion;
ULONG ulDigit;
} WFSPINKEY, *LPWFSPINKEY;
typedef struct _wfs_pin_data
{
USHORT usKeys;
LPWFSPINKEY *lpPinKeys;
WORD wCompletion;
} WFSPINDATA, *LPWFSPINDATA;
typedef struct _wfs_pin_init
{
LPWFSXDATA lpxIdent;
LPWFSXDATA lpxKey;
} WFSPININIT, *LPWFSPININIT;
typedef struct _wfs_pin_local_banksys
{
LPWFSXDATA lpxATMVAC;
} WFSPINLOCALBANKSYS, *LPWFSPINLOCALBANKSYS;
typedef struct _wfs_pin_banksys_io
{
ULONG ulLength;
LPBYTE lpbData;
} WFSPINBANKSYSIO, *LPWFSPINBANKSYSIO;
typedef struct _wfs_pin_secure_message
{
WORD wProtocol;
ULONG ulLength;
LPBYTE lpbMsg;
} WFSPINSECMSG, *LPWFSPINSECMSG;
typedef struct _wfs_pin_import_key_ex
{
LPSTR lpsKey;
LPSTR lpsEncKey;
LPWFSXDATA lpxValue;
LPWFSXDATA lpxControlVector;
DWORD dwUse;
WORD wKeyCheckMode;
LPWFSXDATA lpxKeyCheckValue;
} WFSPINIMPORTKEYEX, *LPWFSPINIMPORTKEYEX;
typedef struct _wfs_pin_enc_io
{
WORD wProtocol;
ULONG ulDataLength;
LPVOID lpvData;
} WFSPINENCIO, *LPWFSPINENCIO;
/* WFS_CMD_PIN_SECUREKEY_ENTRY command input structure */
typedef struct _wfs_pin_secure_key_entry
{
USHORT usKeyLen;
BOOL bAutoEnd;
ULONG ulActiveFDKs;
ULONG ulActiveKeys;
ULONG ulTerminateFDKs;
ULONG ulTerminateKeys;
WORD wVerificationType;
} WFSPINSECUREKEYENTRY, *LPWFSPINSECUREKEYENTRY;
/* WFS_CMD_PIN_SECUREKEY_ENTRY command output structure */
typedef struct _wfs_pin_secure_key_entry_out
{
USHORT usDigits;
WORD wCompletion;
LPWFSXDATA lpxKCV;
} WFSPINSECUREKEYENTRYOUT, *LPWFSPINSECUREKEYENTRYOUT;
/* WFS_CDM_PIN_IMPORT_KEYBLOCK command input structure */
typedef struct _wfs_pin_import_key_block
{
LPSTR lpsKey;
LPSTR lpsEncKey;
LPWFSXDATA lpxKeyBlock;
} WFSPINIMPORTKEYBLOCK, *LPWFSPINIMPORTKEYBLOCK;
typedef struct _wfs_pin_import_rsa_public_key
{
LPSTR lpsKey;
LPWFSXDATA lpxValue;
DWORD dwUse;
LPSTR lpsSigKey;
DWORD dwRSASignatureAlgorithm;
LPWFSXDATA lpxSignature;
} WFSPINIMPORTRSAPUBLICKEY, *LPWFSPINIMPORTRSAPUBLICKEY;
typedef struct _wfs_pin_import_rsa_public_key_output
{
DWORD dwRSAKeyCheckMode;
LPWFSXDATA lpxKeyCheckValue;
} WFSPINIMPORTRSAPUBLICKEYOUTPUT, *LPWFSPINIMPORTRSAPUBLICKEYOUTPUT;
typedef struct _wfs_pin_export_rsa_issuer_signed_item
{
WORD wExportItemType;
LPSTR lpsName;
} WFSPINEXPORTRSAISSUERSIGNEDITEM, *LPWFSPINEXPORTRSAISSUERSIGNEDITEM;
typedef struct _wfs_pin_export_rsa_issuer_signed_item_output
{
LPWFSXDATA lpxValue;
DWORD dwRSASignatureAlgorithm;
LPWFSXDATA lpxSignature;
} WFSPINEXPORTRSAISSUERSIGNEDITEMOUTPUT, *LPWFSPINEXPORTRSAISSUERSIGNEDITEMOUTPUT;
typedef struct _wfs_pin_import_rsa_signed_des_key
{
LPSTR lpsKey;
LPSTR lpsDecryptKey;
DWORD dwRSAEncipherAlgorithm;
LPWFSXDATA lpxValue;
DWORD dwUse;
LPSTR lpsSigKey;
DWORD dwRSASignatureAlgorithm;
LPWFSXDATA lpxSignature;
} WFSPINIMPORTRSASIGNEDDESKEY, *LPWFSPINIMPORTRSASIGNEDDESKEY;
typedef struct _wfs_pin_import_rsa_signed_des_key_output
{
WORD wKeyLength;
WORD wKeyCheckMode;
LPWFSXDATA lpxKeyCheckValue;
} WFSPINIMPORTRSASIGNEDDESKEYOUTPUT, *LPWFSPINIMPORTRSASIGNEDDESKEYOUTPUT;
typedef struct _wfs_pin_generate_rsa_key
{
LPSTR lpsKey;
DWORD dwUse;
WORD wModulusLength;
WORD wExponentValue;
} WFSPINGENERATERSAKEYPAIR, *LPWFSPINGENERATERSAKEYPAIR;
typedef struct _wfs_pin_export_rsa_epp_signed_item
{
WORD wExportItemType;
LPSTR lpsName;
LPSTR lpsSigKey;
DWORD dwSignatureAlgorithm;
} WFSPINEXPORTRSAEPPSIGNEDITEM, *LPWFSPINEXPORTRSAEPPSIGNEDITEM;
typedef struct _wfs_pin_export_rsa_epp_signed_item_output
{
LPWFSXDATA lpxValue;
LPWFSXDATA lpxSelfSignature;
LPWFSXDATA lpxSignature;
} WFSPINEXPORTRSAEPPSIGNEDITEMOUTPUT, *LPWFSPINEXPORTRSAEPPSIGNEDITEMOUTPUT;
typedef struct _wfs_pin_load_certificate
{
LPWFSXDATA lpxLoadCertificate;
} WFSPINLOADCERTIFICATE, *LPWFSPINLOADCERTIFICATE;
typedef struct _wfs_pin_load_certificate_output
{
LPWFSXDATA lpxCertificateData;
} WFSPINLOADCERTIFICATEOUTPUT, *LPWFSPINLOADCERTIFICATEOUTPUT;
typedef struct _wfs_pin_get_certificate
{
WORD wGetCertificate;
} WFSPINGETCERTIFICATE, *LPWFSPINGETCERTIFICATE;
typedef struct _wfs_pin_get_certificate_output
{
LPWFSXDATA lpxCertificate;
} WFSPINGETCERTIFICATEOUTPUT, *LPWFSPINGETCERTIFICATEOUTPUT;
typedef struct _wfs_pin_replace_certificate
{
LPWFSXDATA lpxReplaceCertificate;
} WFSPINREPLACECERTIFICATE, *LPWFSPINREPLACECERTIFICATE;
typedef struct _wfs_pin_replace_certificate_output
{
LPWFSXDATA lpxNewCertificateData;
} WFSPINREPLACECERTIFICATEOUTPUT, *LPWFSPINREPLACECERTIFICATEOUTPUT;
typedef struct _wfs_pin_start_key_exchange
{
LPWFSXDATA lpxRandomItem;
} WFSPINSTARTKEYEXCHANGE, *LPWFSPINSTARTKEYEXCHANGE;
typedef struct _wfs_pin_import_rsa_enciphered_pkcs7_key
{
LPWFSXDATA lpxImportRSAKeyIn;
LPSTR lpsKey;
DWORD dwUse;
} WFSPINIMPORTRSAENCIPHEREDPKCS7KEY, *LPWFSPINIMPORTRSAENCIPHEREDPKCS7KEY;
typedef struct _wfs_pin_import_rsa_enciphered_pkcs7_key_output
{
WORD wKeyLength;
LPWFSXDATA lpxRSAData;
}WFSPINIMPORTRSAENCIPHEREDPKCS7KEYOUTPUT, *LPWFSPINIMPORTRSAENCIPHEREDPKCS7KEYOUTPUT;
typedef struct _wfs_pin_emv_import_public_key
{
LPSTR lpsKey;
DWORD dwUse;
WORD wImportScheme;
LPWFSXDATA lpxImportData;
LPSTR lpsSigKey;