pkcs11 0.2.5-x64-mingw32 → 0.2.6-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +10 -0
- data/Gemfile +16 -0
- data/History.txt +5 -0
- data/README.rdoc +37 -56
- data/Rakefile +23 -8
- data/appveyor.yml +38 -0
- data/ext/include/pkcs11.h +287 -299
- data/ext/include/pkcs11f.h +900 -912
- data/ext/include/pkcs11t.h +1917 -1885
- data/ext/pk11.c +7 -7
- data/ext/pk11_const.c +1 -1
- data/ext/pk11_const_def.inc +538 -451
- data/ext/pk11_struct.doc +163 -43
- data/ext/pk11_struct_def.inc +62 -18
- data/ext/pk11_struct_impl.inc +62 -18
- data/ext/pk11_version.h +1 -1
- data/lib/2.0/pkcs11_ext.so +0 -0
- data/lib/2.1/pkcs11_ext.so +0 -0
- data/lib/2.2/pkcs11_ext.so +0 -0
- data/lib/2.3/pkcs11_ext.so +0 -0
- data/lib/2.4/pkcs11_ext.so +0 -0
- data/lib/pkcs11/helper.rb +2 -1
- data/pkcs11_luna/Manifest.txt +24 -0
- data/pkcs11_luna/README_LUNA.rdoc +103 -0
- data/test/helper.rb +7 -1
- data/test/test_pkcs11_thread.rb +1 -2
- metadata +75 -51
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/Manifest.txt +0 -57
- metadata.gz.sig +0 -0
data/ext/pk11_struct.doc
CHANGED
@@ -190,28 +190,6 @@ attr_accessor :pPublicData
|
|
190
190
|
# @return [Integer] accessor for kdf (CK_ULONG)
|
191
191
|
attr_accessor :kdf
|
192
192
|
end
|
193
|
-
class PKCS11::CK_ECDH2_DERIVE_PARAMS < PKCS11::CStruct
|
194
|
-
# Size of corresponding C struct in bytes
|
195
|
-
SIZEOF_STRUCT=Integer
|
196
|
-
# @return [String] Binary copy of the C struct
|
197
|
-
def to_s; end
|
198
|
-
# @return [Array<String>] Attributes of this struct
|
199
|
-
def members; end
|
200
|
-
# @return [String, nil] accessor for pSharedData and ulSharedDataLen
|
201
|
-
attr_accessor :pSharedData
|
202
|
-
# @return [String, nil] accessor for pPublicData and ulPublicDataLen
|
203
|
-
attr_accessor :pPublicData
|
204
|
-
# @return [String, nil] accessor for pPublicData2
|
205
|
-
attr_accessor :pPublicData2
|
206
|
-
# @return [Integer] accessor for kdf (CK_ULONG)
|
207
|
-
attr_accessor :kdf
|
208
|
-
# @return [Integer] accessor for ulPrivateDataLen (CK_ULONG)
|
209
|
-
attr_accessor :ulPrivateDataLen
|
210
|
-
# @return [Integer, PKCS11::Object] Object handle (CK_ULONG)
|
211
|
-
attr_accessor :hPrivateData
|
212
|
-
# @return [Integer] accessor for ulPublicDataLen2 (CK_ULONG)
|
213
|
-
attr_accessor :ulPublicDataLen2
|
214
|
-
end
|
215
193
|
class PKCS11::CK_ECMQV_DERIVE_PARAMS < PKCS11::CStruct
|
216
194
|
# Size of corresponding C struct in bytes
|
217
195
|
SIZEOF_STRUCT=Integer
|
@@ -546,22 +524,6 @@ attr_accessor :RandomInfo
|
|
546
524
|
# @return [PKCS11::CK_SSL3_KEY_MAT_OUT, nil] pointer to struct
|
547
525
|
attr_accessor :pReturnedKeyMaterial
|
548
526
|
end
|
549
|
-
class PKCS11::CK_TLS_PRF_PARAMS < PKCS11::CStruct
|
550
|
-
# Size of corresponding C struct in bytes
|
551
|
-
SIZEOF_STRUCT=Integer
|
552
|
-
# @return [String] Binary copy of the C struct
|
553
|
-
def to_s; end
|
554
|
-
# @return [Array<String>] Attributes of this struct
|
555
|
-
def members; end
|
556
|
-
# @return [String, nil] accessor for pSeed and ulSeedLen
|
557
|
-
attr_accessor :pSeed
|
558
|
-
# @return [String, nil] accessor for pLabel and ulLabelLen
|
559
|
-
attr_accessor :pLabel
|
560
|
-
# @return [String, nil] accessor for pOutput
|
561
|
-
attr_accessor :pOutput
|
562
|
-
# @return [Integer, nil] accessor for pulOutputLen (CK_ULONG_PTR)
|
563
|
-
attr_accessor :pulOutputLen
|
564
|
-
end
|
565
527
|
class PKCS11::CK_WTLS_RANDOM_DATA < PKCS11::CStruct
|
566
528
|
# Size of corresponding C struct in bytes
|
567
529
|
SIZEOF_STRUCT=Integer
|
@@ -754,17 +716,37 @@ attr_accessor :ulCounterBits
|
|
754
716
|
# @return [String] accessor for cb (max 16 bytes)
|
755
717
|
attr_accessor :cb
|
756
718
|
end
|
757
|
-
class PKCS11::
|
719
|
+
class PKCS11::CK_GCM_PARAMS < PKCS11::CStruct
|
758
720
|
# Size of corresponding C struct in bytes
|
759
721
|
SIZEOF_STRUCT=Integer
|
760
722
|
# @return [String] Binary copy of the C struct
|
761
723
|
def to_s; end
|
762
724
|
# @return [Array<String>] Attributes of this struct
|
763
725
|
def members; end
|
764
|
-
# @return [
|
765
|
-
attr_accessor :
|
766
|
-
# @return [String] accessor for
|
767
|
-
attr_accessor :
|
726
|
+
# @return [String, nil] accessor for pIv and ulIvLen
|
727
|
+
attr_accessor :pIv
|
728
|
+
# @return [String, nil] accessor for pAAD and ulAADLen
|
729
|
+
attr_accessor :pAAD
|
730
|
+
# @return [Integer] accessor for ulIvBits (CK_ULONG)
|
731
|
+
attr_accessor :ulIvBits
|
732
|
+
# @return [Integer] accessor for ulTagBits (CK_ULONG)
|
733
|
+
attr_accessor :ulTagBits
|
734
|
+
end
|
735
|
+
class PKCS11::CK_CCM_PARAMS < PKCS11::CStruct
|
736
|
+
# Size of corresponding C struct in bytes
|
737
|
+
SIZEOF_STRUCT=Integer
|
738
|
+
# @return [String] Binary copy of the C struct
|
739
|
+
def to_s; end
|
740
|
+
# @return [Array<String>] Attributes of this struct
|
741
|
+
def members; end
|
742
|
+
# @return [String, nil] accessor for pNonce and ulNonceLen
|
743
|
+
attr_accessor :pNonce
|
744
|
+
# @return [String, nil] accessor for pAAD and ulAADLen
|
745
|
+
attr_accessor :pAAD
|
746
|
+
# @return [Integer] accessor for ulDataLen (CK_ULONG)
|
747
|
+
attr_accessor :ulDataLen
|
748
|
+
# @return [Integer] accessor for ulMACLen (CK_ULONG)
|
749
|
+
attr_accessor :ulMACLen
|
768
750
|
end
|
769
751
|
class PKCS11::CK_CAMELLIA_CBC_ENCRYPT_DATA_PARAMS < PKCS11::CStruct
|
770
752
|
# Size of corresponding C struct in bytes
|
@@ -790,3 +772,141 @@ attr_accessor :pData
|
|
790
772
|
# @return [String] accessor for iv (max 16 bytes)
|
791
773
|
attr_accessor :iv
|
792
774
|
end
|
775
|
+
class PKCS11::CK_DSA_PARAMETER_GEN_PARAM < PKCS11::CStruct
|
776
|
+
# Size of corresponding C struct in bytes
|
777
|
+
SIZEOF_STRUCT=Integer
|
778
|
+
# @return [String] Binary copy of the C struct
|
779
|
+
def to_s; end
|
780
|
+
# @return [Array<String>] Attributes of this struct
|
781
|
+
def members; end
|
782
|
+
# @return [String, nil] accessor for pSeed and ulSeedLen
|
783
|
+
attr_accessor :pSeed
|
784
|
+
# @return [Integer] accessor for hash (CK_ULONG)
|
785
|
+
attr_accessor :hash
|
786
|
+
# @return [Integer] accessor for ulIndex (CK_ULONG)
|
787
|
+
attr_accessor :ulIndex
|
788
|
+
end
|
789
|
+
class PKCS11::CK_ECDH_AES_KEY_WRAP_PARAMS < PKCS11::CStruct
|
790
|
+
# Size of corresponding C struct in bytes
|
791
|
+
SIZEOF_STRUCT=Integer
|
792
|
+
# @return [String] Binary copy of the C struct
|
793
|
+
def to_s; end
|
794
|
+
# @return [Array<String>] Attributes of this struct
|
795
|
+
def members; end
|
796
|
+
# @return [String, nil] accessor for pSharedData and ulSharedDataLen
|
797
|
+
attr_accessor :pSharedData
|
798
|
+
# @return [Integer] accessor for ulAESKeyBits (CK_ULONG)
|
799
|
+
attr_accessor :ulAESKeyBits
|
800
|
+
# @return [Integer] accessor for kdf (CK_ULONG)
|
801
|
+
attr_accessor :kdf
|
802
|
+
end
|
803
|
+
class PKCS11::CK_RSA_AES_KEY_WRAP_PARAMS < PKCS11::CStruct
|
804
|
+
# Size of corresponding C struct in bytes
|
805
|
+
SIZEOF_STRUCT=Integer
|
806
|
+
# @return [String] Binary copy of the C struct
|
807
|
+
def to_s; end
|
808
|
+
# @return [Array<String>] Attributes of this struct
|
809
|
+
def members; end
|
810
|
+
# @return [Integer] accessor for ulAESKeyBits (CK_ULONG)
|
811
|
+
attr_accessor :ulAESKeyBits
|
812
|
+
# @return [PKCS11::CK_RSA_PKCS_OAEP_PARAMS, nil] pointer to struct
|
813
|
+
attr_accessor :pOAEPParams
|
814
|
+
end
|
815
|
+
class PKCS11::CK_TLS12_MASTER_KEY_DERIVE_PARAMS < PKCS11::CStruct
|
816
|
+
# Size of corresponding C struct in bytes
|
817
|
+
SIZEOF_STRUCT=Integer
|
818
|
+
# @return [String] Binary copy of the C struct
|
819
|
+
def to_s; end
|
820
|
+
# @return [Array<String>] Attributes of this struct
|
821
|
+
def members; end
|
822
|
+
# @return [PKCS11::CK_SSL3_RANDOM_DATA] inline struct
|
823
|
+
attr_accessor :RandomInfo
|
824
|
+
# @return [PKCS11::CK_VERSION, nil] pointer to struct
|
825
|
+
attr_accessor :pVersion
|
826
|
+
# @return [Integer] accessor for prfHashMechanism (CK_ULONG)
|
827
|
+
attr_accessor :prfHashMechanism
|
828
|
+
end
|
829
|
+
class PKCS11::CK_TLS12_KEY_MAT_PARAMS < PKCS11::CStruct
|
830
|
+
# Size of corresponding C struct in bytes
|
831
|
+
SIZEOF_STRUCT=Integer
|
832
|
+
# @return [String] Binary copy of the C struct
|
833
|
+
def to_s; end
|
834
|
+
# @return [Array<String>] Attributes of this struct
|
835
|
+
def members; end
|
836
|
+
# @return [Integer] accessor for ulMacSizeInBits (CK_ULONG)
|
837
|
+
attr_accessor :ulMacSizeInBits
|
838
|
+
# @return [Integer] accessor for ulKeySizeInBits (CK_ULONG)
|
839
|
+
attr_accessor :ulKeySizeInBits
|
840
|
+
# @return [Integer] accessor for ulIVSizeInBits (CK_ULONG)
|
841
|
+
attr_accessor :ulIVSizeInBits
|
842
|
+
# @return [Boolean] Bool value
|
843
|
+
attr_accessor :bIsExport
|
844
|
+
# @return [PKCS11::CK_SSL3_RANDOM_DATA] inline struct
|
845
|
+
attr_accessor :RandomInfo
|
846
|
+
# @return [PKCS11::CK_SSL3_KEY_MAT_OUT, nil] pointer to struct
|
847
|
+
attr_accessor :pReturnedKeyMaterial
|
848
|
+
# @return [Integer] accessor for prfHashMechanism (CK_ULONG)
|
849
|
+
attr_accessor :prfHashMechanism
|
850
|
+
end
|
851
|
+
class PKCS11::CK_TLS_KDF_PARAMS < PKCS11::CStruct
|
852
|
+
# Size of corresponding C struct in bytes
|
853
|
+
SIZEOF_STRUCT=Integer
|
854
|
+
# @return [String] Binary copy of the C struct
|
855
|
+
def to_s; end
|
856
|
+
# @return [Array<String>] Attributes of this struct
|
857
|
+
def members; end
|
858
|
+
# @return [String, nil] accessor for pLabel
|
859
|
+
attr_accessor :pLabel
|
860
|
+
# @return [String, nil] accessor for pContextData
|
861
|
+
attr_accessor :pContextData
|
862
|
+
# @return [Integer] accessor for prfMechanism (CK_ULONG)
|
863
|
+
attr_accessor :prfMechanism
|
864
|
+
# @return [Integer] accessor for ulLabelLength (CK_ULONG)
|
865
|
+
attr_accessor :ulLabelLength
|
866
|
+
# @return [PKCS11::CK_SSL3_RANDOM_DATA] inline struct
|
867
|
+
attr_accessor :RandomInfo
|
868
|
+
# @return [Integer] accessor for ulContextDataLength (CK_ULONG)
|
869
|
+
attr_accessor :ulContextDataLength
|
870
|
+
end
|
871
|
+
class PKCS11::CK_TLS_MAC_PARAMS < PKCS11::CStruct
|
872
|
+
# Size of corresponding C struct in bytes
|
873
|
+
SIZEOF_STRUCT=Integer
|
874
|
+
# @return [String] Binary copy of the C struct
|
875
|
+
def to_s; end
|
876
|
+
# @return [Array<String>] Attributes of this struct
|
877
|
+
def members; end
|
878
|
+
# @return [Integer] accessor for prfHashMechanism (CK_ULONG)
|
879
|
+
attr_accessor :prfHashMechanism
|
880
|
+
# @return [Integer] accessor for ulMacLength (CK_ULONG)
|
881
|
+
attr_accessor :ulMacLength
|
882
|
+
# @return [Integer] accessor for ulServerOrClient (CK_ULONG)
|
883
|
+
attr_accessor :ulServerOrClient
|
884
|
+
end
|
885
|
+
class PKCS11::CK_GOSTR3410_DERIVE_PARAMS < PKCS11::CStruct
|
886
|
+
# Size of corresponding C struct in bytes
|
887
|
+
SIZEOF_STRUCT=Integer
|
888
|
+
# @return [String] Binary copy of the C struct
|
889
|
+
def to_s; end
|
890
|
+
# @return [Array<String>] Attributes of this struct
|
891
|
+
def members; end
|
892
|
+
# @return [String, nil] accessor for pPublicData and ulPublicDataLen
|
893
|
+
attr_accessor :pPublicData
|
894
|
+
# @return [String, nil] accessor for pUKM and ulUKMLen
|
895
|
+
attr_accessor :pUKM
|
896
|
+
# @return [Integer] accessor for kdf (CK_ULONG)
|
897
|
+
attr_accessor :kdf
|
898
|
+
end
|
899
|
+
class PKCS11::CK_GOSTR3410_KEY_WRAP_PARAMS < PKCS11::CStruct
|
900
|
+
# Size of corresponding C struct in bytes
|
901
|
+
SIZEOF_STRUCT=Integer
|
902
|
+
# @return [String] Binary copy of the C struct
|
903
|
+
def to_s; end
|
904
|
+
# @return [Array<String>] Attributes of this struct
|
905
|
+
def members; end
|
906
|
+
# @return [String, nil] accessor for pWrapOID and ulWrapOIDLen
|
907
|
+
attr_accessor :pWrapOID
|
908
|
+
# @return [String, nil] accessor for pUKM and ulUKMLen
|
909
|
+
attr_accessor :pUKM
|
910
|
+
# @return [Integer, PKCS11::Object] Object handle (CK_ULONG)
|
911
|
+
attr_accessor :hKey
|
912
|
+
end
|
data/ext/pk11_struct_def.inc
CHANGED
@@ -76,15 +76,6 @@ PKCS11_DEFINE_MEMBER(CK_ECDH1_DERIVE_PARAMS, pSharedData);
|
|
76
76
|
PKCS11_DEFINE_MEMBER(CK_ECDH1_DERIVE_PARAMS, pPublicData);
|
77
77
|
PKCS11_DEFINE_MEMBER(CK_ECDH1_DERIVE_PARAMS, kdf);
|
78
78
|
|
79
|
-
PKCS11_DEFINE_STRUCT(CK_ECDH2_DERIVE_PARAMS);
|
80
|
-
PKCS11_DEFINE_MEMBER(CK_ECDH2_DERIVE_PARAMS, pSharedData);
|
81
|
-
PKCS11_DEFINE_MEMBER(CK_ECDH2_DERIVE_PARAMS, pPublicData);
|
82
|
-
PKCS11_DEFINE_MEMBER(CK_ECDH2_DERIVE_PARAMS, pPublicData2);
|
83
|
-
PKCS11_DEFINE_MEMBER(CK_ECDH2_DERIVE_PARAMS, kdf);
|
84
|
-
PKCS11_DEFINE_MEMBER(CK_ECDH2_DERIVE_PARAMS, ulPrivateDataLen);
|
85
|
-
PKCS11_DEFINE_MEMBER(CK_ECDH2_DERIVE_PARAMS, hPrivateData);
|
86
|
-
PKCS11_DEFINE_MEMBER(CK_ECDH2_DERIVE_PARAMS, ulPublicDataLen2);
|
87
|
-
|
88
79
|
PKCS11_DEFINE_STRUCT(CK_ECMQV_DERIVE_PARAMS);
|
89
80
|
PKCS11_DEFINE_MEMBER(CK_ECMQV_DERIVE_PARAMS, pSharedData);
|
90
81
|
PKCS11_DEFINE_MEMBER(CK_ECMQV_DERIVE_PARAMS, pPublicData);
|
@@ -212,12 +203,6 @@ PKCS11_DEFINE_MEMBER(CK_SSL3_KEY_MAT_PARAMS, bIsExport);
|
|
212
203
|
PKCS11_DEFINE_MEMBER(CK_SSL3_KEY_MAT_PARAMS, RandomInfo);
|
213
204
|
PKCS11_DEFINE_MEMBER(CK_SSL3_KEY_MAT_PARAMS, pReturnedKeyMaterial);
|
214
205
|
|
215
|
-
PKCS11_DEFINE_STRUCT(CK_TLS_PRF_PARAMS);
|
216
|
-
PKCS11_DEFINE_MEMBER(CK_TLS_PRF_PARAMS, pSeed);
|
217
|
-
PKCS11_DEFINE_MEMBER(CK_TLS_PRF_PARAMS, pLabel);
|
218
|
-
PKCS11_DEFINE_MEMBER(CK_TLS_PRF_PARAMS, pOutput);
|
219
|
-
PKCS11_DEFINE_MEMBER(CK_TLS_PRF_PARAMS, pulOutputLen);
|
220
|
-
|
221
206
|
PKCS11_DEFINE_STRUCT(CK_WTLS_RANDOM_DATA);
|
222
207
|
PKCS11_DEFINE_MEMBER(CK_WTLS_RANDOM_DATA, pClientRandom);
|
223
208
|
PKCS11_DEFINE_MEMBER(CK_WTLS_RANDOM_DATA, pServerRandom);
|
@@ -288,9 +273,17 @@ PKCS11_DEFINE_STRUCT(CK_AES_CTR_PARAMS);
|
|
288
273
|
PKCS11_DEFINE_MEMBER(CK_AES_CTR_PARAMS, ulCounterBits);
|
289
274
|
PKCS11_DEFINE_MEMBER(CK_AES_CTR_PARAMS, cb);
|
290
275
|
|
291
|
-
PKCS11_DEFINE_STRUCT(
|
292
|
-
PKCS11_DEFINE_MEMBER(
|
293
|
-
PKCS11_DEFINE_MEMBER(
|
276
|
+
PKCS11_DEFINE_STRUCT(CK_GCM_PARAMS);
|
277
|
+
PKCS11_DEFINE_MEMBER(CK_GCM_PARAMS, pIv);
|
278
|
+
PKCS11_DEFINE_MEMBER(CK_GCM_PARAMS, pAAD);
|
279
|
+
PKCS11_DEFINE_MEMBER(CK_GCM_PARAMS, ulIvBits);
|
280
|
+
PKCS11_DEFINE_MEMBER(CK_GCM_PARAMS, ulTagBits);
|
281
|
+
|
282
|
+
PKCS11_DEFINE_STRUCT(CK_CCM_PARAMS);
|
283
|
+
PKCS11_DEFINE_MEMBER(CK_CCM_PARAMS, pNonce);
|
284
|
+
PKCS11_DEFINE_MEMBER(CK_CCM_PARAMS, pAAD);
|
285
|
+
PKCS11_DEFINE_MEMBER(CK_CCM_PARAMS, ulDataLen);
|
286
|
+
PKCS11_DEFINE_MEMBER(CK_CCM_PARAMS, ulMACLen);
|
294
287
|
|
295
288
|
PKCS11_DEFINE_STRUCT(CK_CAMELLIA_CBC_ENCRYPT_DATA_PARAMS);
|
296
289
|
PKCS11_DEFINE_MEMBER(CK_CAMELLIA_CBC_ENCRYPT_DATA_PARAMS, pData);
|
@@ -300,3 +293,54 @@ PKCS11_DEFINE_STRUCT(CK_ARIA_CBC_ENCRYPT_DATA_PARAMS);
|
|
300
293
|
PKCS11_DEFINE_MEMBER(CK_ARIA_CBC_ENCRYPT_DATA_PARAMS, pData);
|
301
294
|
PKCS11_DEFINE_MEMBER(CK_ARIA_CBC_ENCRYPT_DATA_PARAMS, iv);
|
302
295
|
|
296
|
+
PKCS11_DEFINE_STRUCT(CK_DSA_PARAMETER_GEN_PARAM);
|
297
|
+
PKCS11_DEFINE_MEMBER(CK_DSA_PARAMETER_GEN_PARAM, pSeed);
|
298
|
+
PKCS11_DEFINE_MEMBER(CK_DSA_PARAMETER_GEN_PARAM, hash);
|
299
|
+
PKCS11_DEFINE_MEMBER(CK_DSA_PARAMETER_GEN_PARAM, ulIndex);
|
300
|
+
|
301
|
+
PKCS11_DEFINE_STRUCT(CK_ECDH_AES_KEY_WRAP_PARAMS);
|
302
|
+
PKCS11_DEFINE_MEMBER(CK_ECDH_AES_KEY_WRAP_PARAMS, pSharedData);
|
303
|
+
PKCS11_DEFINE_MEMBER(CK_ECDH_AES_KEY_WRAP_PARAMS, ulAESKeyBits);
|
304
|
+
PKCS11_DEFINE_MEMBER(CK_ECDH_AES_KEY_WRAP_PARAMS, kdf);
|
305
|
+
|
306
|
+
PKCS11_DEFINE_STRUCT(CK_RSA_AES_KEY_WRAP_PARAMS);
|
307
|
+
PKCS11_DEFINE_MEMBER(CK_RSA_AES_KEY_WRAP_PARAMS, ulAESKeyBits);
|
308
|
+
PKCS11_DEFINE_MEMBER(CK_RSA_AES_KEY_WRAP_PARAMS, pOAEPParams);
|
309
|
+
|
310
|
+
PKCS11_DEFINE_STRUCT(CK_TLS12_MASTER_KEY_DERIVE_PARAMS);
|
311
|
+
PKCS11_DEFINE_MEMBER(CK_TLS12_MASTER_KEY_DERIVE_PARAMS, RandomInfo);
|
312
|
+
PKCS11_DEFINE_MEMBER(CK_TLS12_MASTER_KEY_DERIVE_PARAMS, pVersion);
|
313
|
+
PKCS11_DEFINE_MEMBER(CK_TLS12_MASTER_KEY_DERIVE_PARAMS, prfHashMechanism);
|
314
|
+
|
315
|
+
PKCS11_DEFINE_STRUCT(CK_TLS12_KEY_MAT_PARAMS);
|
316
|
+
PKCS11_DEFINE_MEMBER(CK_TLS12_KEY_MAT_PARAMS, ulMacSizeInBits);
|
317
|
+
PKCS11_DEFINE_MEMBER(CK_TLS12_KEY_MAT_PARAMS, ulKeySizeInBits);
|
318
|
+
PKCS11_DEFINE_MEMBER(CK_TLS12_KEY_MAT_PARAMS, ulIVSizeInBits);
|
319
|
+
PKCS11_DEFINE_MEMBER(CK_TLS12_KEY_MAT_PARAMS, bIsExport);
|
320
|
+
PKCS11_DEFINE_MEMBER(CK_TLS12_KEY_MAT_PARAMS, RandomInfo);
|
321
|
+
PKCS11_DEFINE_MEMBER(CK_TLS12_KEY_MAT_PARAMS, pReturnedKeyMaterial);
|
322
|
+
PKCS11_DEFINE_MEMBER(CK_TLS12_KEY_MAT_PARAMS, prfHashMechanism);
|
323
|
+
|
324
|
+
PKCS11_DEFINE_STRUCT(CK_TLS_KDF_PARAMS);
|
325
|
+
PKCS11_DEFINE_MEMBER(CK_TLS_KDF_PARAMS, pLabel);
|
326
|
+
PKCS11_DEFINE_MEMBER(CK_TLS_KDF_PARAMS, pContextData);
|
327
|
+
PKCS11_DEFINE_MEMBER(CK_TLS_KDF_PARAMS, prfMechanism);
|
328
|
+
PKCS11_DEFINE_MEMBER(CK_TLS_KDF_PARAMS, ulLabelLength);
|
329
|
+
PKCS11_DEFINE_MEMBER(CK_TLS_KDF_PARAMS, RandomInfo);
|
330
|
+
PKCS11_DEFINE_MEMBER(CK_TLS_KDF_PARAMS, ulContextDataLength);
|
331
|
+
|
332
|
+
PKCS11_DEFINE_STRUCT(CK_TLS_MAC_PARAMS);
|
333
|
+
PKCS11_DEFINE_MEMBER(CK_TLS_MAC_PARAMS, prfHashMechanism);
|
334
|
+
PKCS11_DEFINE_MEMBER(CK_TLS_MAC_PARAMS, ulMacLength);
|
335
|
+
PKCS11_DEFINE_MEMBER(CK_TLS_MAC_PARAMS, ulServerOrClient);
|
336
|
+
|
337
|
+
PKCS11_DEFINE_STRUCT(CK_GOSTR3410_DERIVE_PARAMS);
|
338
|
+
PKCS11_DEFINE_MEMBER(CK_GOSTR3410_DERIVE_PARAMS, pPublicData);
|
339
|
+
PKCS11_DEFINE_MEMBER(CK_GOSTR3410_DERIVE_PARAMS, pUKM);
|
340
|
+
PKCS11_DEFINE_MEMBER(CK_GOSTR3410_DERIVE_PARAMS, kdf);
|
341
|
+
|
342
|
+
PKCS11_DEFINE_STRUCT(CK_GOSTR3410_KEY_WRAP_PARAMS);
|
343
|
+
PKCS11_DEFINE_MEMBER(CK_GOSTR3410_KEY_WRAP_PARAMS, pWrapOID);
|
344
|
+
PKCS11_DEFINE_MEMBER(CK_GOSTR3410_KEY_WRAP_PARAMS, pUKM);
|
345
|
+
PKCS11_DEFINE_MEMBER(CK_GOSTR3410_KEY_WRAP_PARAMS, hKey);
|
346
|
+
|
data/ext/pk11_struct_impl.inc
CHANGED
@@ -76,15 +76,6 @@ PKCS11_IMPLEMENT_STRING_PTR_LEN_ACCESSOR(CK_ECDH1_DERIVE_PARAMS, pSharedData, ul
|
|
76
76
|
PKCS11_IMPLEMENT_STRING_PTR_LEN_ACCESSOR(CK_ECDH1_DERIVE_PARAMS, pPublicData, ulPublicDataLen);
|
77
77
|
PKCS11_IMPLEMENT_ULONG_ACCESSOR(CK_ECDH1_DERIVE_PARAMS, kdf);
|
78
78
|
|
79
|
-
PKCS11_IMPLEMENT_STRUCT_WITH_ALLOCATOR(CK_ECDH2_DERIVE_PARAMS);
|
80
|
-
PKCS11_IMPLEMENT_STRING_PTR_LEN_ACCESSOR(CK_ECDH2_DERIVE_PARAMS, pSharedData, ulSharedDataLen);
|
81
|
-
PKCS11_IMPLEMENT_STRING_PTR_LEN_ACCESSOR(CK_ECDH2_DERIVE_PARAMS, pPublicData, ulPublicDataLen);
|
82
|
-
PKCS11_IMPLEMENT_STRING_PTR_ACCESSOR(CK_ECDH2_DERIVE_PARAMS, pPublicData2);
|
83
|
-
PKCS11_IMPLEMENT_ULONG_ACCESSOR(CK_ECDH2_DERIVE_PARAMS, kdf);
|
84
|
-
PKCS11_IMPLEMENT_ULONG_ACCESSOR(CK_ECDH2_DERIVE_PARAMS, ulPrivateDataLen);
|
85
|
-
PKCS11_IMPLEMENT_HANDLE_ACCESSOR(CK_ECDH2_DERIVE_PARAMS, hPrivateData);
|
86
|
-
PKCS11_IMPLEMENT_ULONG_ACCESSOR(CK_ECDH2_DERIVE_PARAMS, ulPublicDataLen2);
|
87
|
-
|
88
79
|
PKCS11_IMPLEMENT_STRUCT_WITH_ALLOCATOR(CK_ECMQV_DERIVE_PARAMS);
|
89
80
|
PKCS11_IMPLEMENT_STRING_PTR_LEN_ACCESSOR(CK_ECMQV_DERIVE_PARAMS, pSharedData, ulSharedDataLen);
|
90
81
|
PKCS11_IMPLEMENT_STRING_PTR_LEN_ACCESSOR(CK_ECMQV_DERIVE_PARAMS, pPublicData, ulPublicDataLen);
|
@@ -212,12 +203,6 @@ PKCS11_IMPLEMENT_BOOL_ACCESSOR(CK_SSL3_KEY_MAT_PARAMS, bIsExport);
|
|
212
203
|
PKCS11_IMPLEMENT_STRUCT_ACCESSOR(CK_SSL3_KEY_MAT_PARAMS, CK_SSL3_RANDOM_DATA, RandomInfo);
|
213
204
|
PKCS11_IMPLEMENT_STRUCT_PTR_ACCESSOR(CK_SSL3_KEY_MAT_PARAMS, CK_SSL3_KEY_MAT_OUT, pReturnedKeyMaterial);
|
214
205
|
|
215
|
-
PKCS11_IMPLEMENT_STRUCT_WITH_ALLOCATOR(CK_TLS_PRF_PARAMS);
|
216
|
-
PKCS11_IMPLEMENT_STRING_PTR_LEN_ACCESSOR(CK_TLS_PRF_PARAMS, pSeed, ulSeedLen);
|
217
|
-
PKCS11_IMPLEMENT_STRING_PTR_LEN_ACCESSOR(CK_TLS_PRF_PARAMS, pLabel, ulLabelLen);
|
218
|
-
PKCS11_IMPLEMENT_STRING_PTR_ACCESSOR(CK_TLS_PRF_PARAMS, pOutput);
|
219
|
-
PKCS11_IMPLEMENT_ULONG_PTR_ACCESSOR(CK_TLS_PRF_PARAMS, pulOutputLen);
|
220
|
-
|
221
206
|
PKCS11_IMPLEMENT_STRUCT_WITH_ALLOCATOR(CK_WTLS_RANDOM_DATA);
|
222
207
|
PKCS11_IMPLEMENT_STRING_PTR_LEN_ACCESSOR(CK_WTLS_RANDOM_DATA, pClientRandom, ulClientRandomLen);
|
223
208
|
PKCS11_IMPLEMENT_STRING_PTR_LEN_ACCESSOR(CK_WTLS_RANDOM_DATA, pServerRandom, ulServerRandomLen);
|
@@ -288,9 +273,17 @@ PKCS11_IMPLEMENT_STRUCT_WITH_ALLOCATOR(CK_AES_CTR_PARAMS);
|
|
288
273
|
PKCS11_IMPLEMENT_ULONG_ACCESSOR(CK_AES_CTR_PARAMS, ulCounterBits);
|
289
274
|
PKCS11_IMPLEMENT_STRING_ACCESSOR(CK_AES_CTR_PARAMS, cb);
|
290
275
|
|
291
|
-
PKCS11_IMPLEMENT_STRUCT_WITH_ALLOCATOR(
|
292
|
-
|
293
|
-
|
276
|
+
PKCS11_IMPLEMENT_STRUCT_WITH_ALLOCATOR(CK_GCM_PARAMS);
|
277
|
+
PKCS11_IMPLEMENT_STRING_PTR_LEN_ACCESSOR(CK_GCM_PARAMS, pIv, ulIvLen);
|
278
|
+
PKCS11_IMPLEMENT_STRING_PTR_LEN_ACCESSOR(CK_GCM_PARAMS, pAAD, ulAADLen);
|
279
|
+
PKCS11_IMPLEMENT_ULONG_ACCESSOR(CK_GCM_PARAMS, ulIvBits);
|
280
|
+
PKCS11_IMPLEMENT_ULONG_ACCESSOR(CK_GCM_PARAMS, ulTagBits);
|
281
|
+
|
282
|
+
PKCS11_IMPLEMENT_STRUCT_WITH_ALLOCATOR(CK_CCM_PARAMS);
|
283
|
+
PKCS11_IMPLEMENT_STRING_PTR_LEN_ACCESSOR(CK_CCM_PARAMS, pNonce, ulNonceLen);
|
284
|
+
PKCS11_IMPLEMENT_STRING_PTR_LEN_ACCESSOR(CK_CCM_PARAMS, pAAD, ulAADLen);
|
285
|
+
PKCS11_IMPLEMENT_ULONG_ACCESSOR(CK_CCM_PARAMS, ulDataLen);
|
286
|
+
PKCS11_IMPLEMENT_ULONG_ACCESSOR(CK_CCM_PARAMS, ulMACLen);
|
294
287
|
|
295
288
|
PKCS11_IMPLEMENT_STRUCT_WITH_ALLOCATOR(CK_CAMELLIA_CBC_ENCRYPT_DATA_PARAMS);
|
296
289
|
PKCS11_IMPLEMENT_STRING_PTR_LEN_ACCESSOR(CK_CAMELLIA_CBC_ENCRYPT_DATA_PARAMS, pData, length);
|
@@ -300,3 +293,54 @@ PKCS11_IMPLEMENT_STRUCT_WITH_ALLOCATOR(CK_ARIA_CBC_ENCRYPT_DATA_PARAMS);
|
|
300
293
|
PKCS11_IMPLEMENT_STRING_PTR_LEN_ACCESSOR(CK_ARIA_CBC_ENCRYPT_DATA_PARAMS, pData, length);
|
301
294
|
PKCS11_IMPLEMENT_STRING_ACCESSOR(CK_ARIA_CBC_ENCRYPT_DATA_PARAMS, iv);
|
302
295
|
|
296
|
+
PKCS11_IMPLEMENT_STRUCT_WITH_ALLOCATOR(CK_DSA_PARAMETER_GEN_PARAM);
|
297
|
+
PKCS11_IMPLEMENT_STRING_PTR_LEN_ACCESSOR(CK_DSA_PARAMETER_GEN_PARAM, pSeed, ulSeedLen);
|
298
|
+
PKCS11_IMPLEMENT_ULONG_ACCESSOR(CK_DSA_PARAMETER_GEN_PARAM, hash);
|
299
|
+
PKCS11_IMPLEMENT_ULONG_ACCESSOR(CK_DSA_PARAMETER_GEN_PARAM, ulIndex);
|
300
|
+
|
301
|
+
PKCS11_IMPLEMENT_STRUCT_WITH_ALLOCATOR(CK_ECDH_AES_KEY_WRAP_PARAMS);
|
302
|
+
PKCS11_IMPLEMENT_STRING_PTR_LEN_ACCESSOR(CK_ECDH_AES_KEY_WRAP_PARAMS, pSharedData, ulSharedDataLen);
|
303
|
+
PKCS11_IMPLEMENT_ULONG_ACCESSOR(CK_ECDH_AES_KEY_WRAP_PARAMS, ulAESKeyBits);
|
304
|
+
PKCS11_IMPLEMENT_ULONG_ACCESSOR(CK_ECDH_AES_KEY_WRAP_PARAMS, kdf);
|
305
|
+
|
306
|
+
PKCS11_IMPLEMENT_STRUCT_WITH_ALLOCATOR(CK_RSA_AES_KEY_WRAP_PARAMS);
|
307
|
+
PKCS11_IMPLEMENT_ULONG_ACCESSOR(CK_RSA_AES_KEY_WRAP_PARAMS, ulAESKeyBits);
|
308
|
+
PKCS11_IMPLEMENT_STRUCT_PTR_ACCESSOR(CK_RSA_AES_KEY_WRAP_PARAMS, CK_RSA_PKCS_OAEP_PARAMS, pOAEPParams);
|
309
|
+
|
310
|
+
PKCS11_IMPLEMENT_STRUCT_WITH_ALLOCATOR(CK_TLS12_MASTER_KEY_DERIVE_PARAMS);
|
311
|
+
PKCS11_IMPLEMENT_STRUCT_ACCESSOR(CK_TLS12_MASTER_KEY_DERIVE_PARAMS, CK_SSL3_RANDOM_DATA, RandomInfo);
|
312
|
+
PKCS11_IMPLEMENT_STRUCT_PTR_ACCESSOR(CK_TLS12_MASTER_KEY_DERIVE_PARAMS, CK_VERSION, pVersion);
|
313
|
+
PKCS11_IMPLEMENT_ULONG_ACCESSOR(CK_TLS12_MASTER_KEY_DERIVE_PARAMS, prfHashMechanism);
|
314
|
+
|
315
|
+
PKCS11_IMPLEMENT_STRUCT_WITH_ALLOCATOR(CK_TLS12_KEY_MAT_PARAMS);
|
316
|
+
PKCS11_IMPLEMENT_ULONG_ACCESSOR(CK_TLS12_KEY_MAT_PARAMS, ulMacSizeInBits);
|
317
|
+
PKCS11_IMPLEMENT_ULONG_ACCESSOR(CK_TLS12_KEY_MAT_PARAMS, ulKeySizeInBits);
|
318
|
+
PKCS11_IMPLEMENT_ULONG_ACCESSOR(CK_TLS12_KEY_MAT_PARAMS, ulIVSizeInBits);
|
319
|
+
PKCS11_IMPLEMENT_BOOL_ACCESSOR(CK_TLS12_KEY_MAT_PARAMS, bIsExport);
|
320
|
+
PKCS11_IMPLEMENT_STRUCT_ACCESSOR(CK_TLS12_KEY_MAT_PARAMS, CK_SSL3_RANDOM_DATA, RandomInfo);
|
321
|
+
PKCS11_IMPLEMENT_STRUCT_PTR_ACCESSOR(CK_TLS12_KEY_MAT_PARAMS, CK_SSL3_KEY_MAT_OUT, pReturnedKeyMaterial);
|
322
|
+
PKCS11_IMPLEMENT_ULONG_ACCESSOR(CK_TLS12_KEY_MAT_PARAMS, prfHashMechanism);
|
323
|
+
|
324
|
+
PKCS11_IMPLEMENT_STRUCT_WITH_ALLOCATOR(CK_TLS_KDF_PARAMS);
|
325
|
+
PKCS11_IMPLEMENT_STRING_PTR_ACCESSOR(CK_TLS_KDF_PARAMS, pLabel);
|
326
|
+
PKCS11_IMPLEMENT_STRING_PTR_ACCESSOR(CK_TLS_KDF_PARAMS, pContextData);
|
327
|
+
PKCS11_IMPLEMENT_ULONG_ACCESSOR(CK_TLS_KDF_PARAMS, prfMechanism);
|
328
|
+
PKCS11_IMPLEMENT_ULONG_ACCESSOR(CK_TLS_KDF_PARAMS, ulLabelLength);
|
329
|
+
PKCS11_IMPLEMENT_STRUCT_ACCESSOR(CK_TLS_KDF_PARAMS, CK_SSL3_RANDOM_DATA, RandomInfo);
|
330
|
+
PKCS11_IMPLEMENT_ULONG_ACCESSOR(CK_TLS_KDF_PARAMS, ulContextDataLength);
|
331
|
+
|
332
|
+
PKCS11_IMPLEMENT_STRUCT_WITH_ALLOCATOR(CK_TLS_MAC_PARAMS);
|
333
|
+
PKCS11_IMPLEMENT_ULONG_ACCESSOR(CK_TLS_MAC_PARAMS, prfHashMechanism);
|
334
|
+
PKCS11_IMPLEMENT_ULONG_ACCESSOR(CK_TLS_MAC_PARAMS, ulMacLength);
|
335
|
+
PKCS11_IMPLEMENT_ULONG_ACCESSOR(CK_TLS_MAC_PARAMS, ulServerOrClient);
|
336
|
+
|
337
|
+
PKCS11_IMPLEMENT_STRUCT_WITH_ALLOCATOR(CK_GOSTR3410_DERIVE_PARAMS);
|
338
|
+
PKCS11_IMPLEMENT_STRING_PTR_LEN_ACCESSOR(CK_GOSTR3410_DERIVE_PARAMS, pPublicData, ulPublicDataLen);
|
339
|
+
PKCS11_IMPLEMENT_STRING_PTR_LEN_ACCESSOR(CK_GOSTR3410_DERIVE_PARAMS, pUKM, ulUKMLen);
|
340
|
+
PKCS11_IMPLEMENT_ULONG_ACCESSOR(CK_GOSTR3410_DERIVE_PARAMS, kdf);
|
341
|
+
|
342
|
+
PKCS11_IMPLEMENT_STRUCT_WITH_ALLOCATOR(CK_GOSTR3410_KEY_WRAP_PARAMS);
|
343
|
+
PKCS11_IMPLEMENT_STRING_PTR_LEN_ACCESSOR(CK_GOSTR3410_KEY_WRAP_PARAMS, pWrapOID, ulWrapOIDLen);
|
344
|
+
PKCS11_IMPLEMENT_STRING_PTR_LEN_ACCESSOR(CK_GOSTR3410_KEY_WRAP_PARAMS, pUKM, ulUKMLen);
|
345
|
+
PKCS11_IMPLEMENT_HANDLE_ACCESSOR(CK_GOSTR3410_KEY_WRAP_PARAMS, hKey);
|
346
|
+
|