pkcs11 0.2.4-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/.autotest +23 -0
- data/.gemtest +0 -0
- data/.yardopts +1 -0
- data/History.txt +57 -0
- data/MIT-LICENSE +22 -0
- data/Manifest.txt +57 -0
- data/README.rdoc +205 -0
- data/Rakefile +111 -0
- data/ext/extconf.rb +7 -0
- data/ext/generate_constants.rb +57 -0
- data/ext/generate_structs.rb +206 -0
- data/ext/generate_thread_funcs.rb +72 -0
- data/ext/include/cryptoki.h +66 -0
- data/ext/include/ct-kip.h +50 -0
- data/ext/include/otp-pkcs11.h +125 -0
- data/ext/include/pkcs-11v2-20a3.h +124 -0
- data/ext/include/pkcs11.h +299 -0
- data/ext/include/pkcs11f.h +912 -0
- data/ext/include/pkcs11t.h +1885 -0
- data/ext/pk11.c +1675 -0
- data/ext/pk11.h +81 -0
- data/ext/pk11_const.c +205 -0
- data/ext/pk11_const_def.inc +452 -0
- data/ext/pk11_const_macros.h +38 -0
- data/ext/pk11_struct.doc +792 -0
- data/ext/pk11_struct_def.inc +302 -0
- data/ext/pk11_struct_impl.inc +302 -0
- data/ext/pk11_struct_macros.h +435 -0
- data/ext/pk11_thread_funcs.c +411 -0
- data/ext/pk11_thread_funcs.h +482 -0
- data/ext/pk11_version.h +6 -0
- data/lib/2.0/pkcs11_ext.so +0 -0
- data/lib/pkcs11.rb +9 -0
- data/lib/pkcs11/extensions.rb +68 -0
- data/lib/pkcs11/helper.rb +144 -0
- data/lib/pkcs11/library.rb +140 -0
- data/lib/pkcs11/object.rb +171 -0
- data/lib/pkcs11/session.rb +765 -0
- data/lib/pkcs11/slot.rb +102 -0
- data/pkcs11_protect_server/Manifest.txt +14 -0
- data/pkcs11_protect_server/README_PROTECT_SERVER.rdoc +89 -0
- data/test/fixtures/softokn/cert8.db +0 -0
- data/test/fixtures/softokn/key3.db +0 -0
- data/test/fixtures/softokn/secmod.db +0 -0
- data/test/helper.rb +58 -0
- data/test/test_pkcs11.rb +71 -0
- data/test/test_pkcs11_crypt.rb +220 -0
- data/test/test_pkcs11_object.rb +122 -0
- data/test/test_pkcs11_session.rb +123 -0
- data/test/test_pkcs11_slot.rb +78 -0
- data/test/test_pkcs11_structs.rb +166 -0
- data/test/test_pkcs11_thread.rb +44 -0
- metadata +213 -0
- metadata.gz.sig +0 -0
@@ -0,0 +1,38 @@
|
|
1
|
+
#ifndef PK11_CONST_MACROS_INCLUDED
|
2
|
+
#define PK11_CONST_MACROS_INCLUDED
|
3
|
+
|
4
|
+
/**************************************************/
|
5
|
+
/* constant definition */
|
6
|
+
/**************************************************/
|
7
|
+
|
8
|
+
#define PKCS11_DEFINE_CONST(constant) \
|
9
|
+
rb_define_const(MODULE_FOR_CONSTS, #constant, INT2NUM(constant))
|
10
|
+
|
11
|
+
#define PKCS11_DEFINE_CONST_GROUP(group, name, value) \
|
12
|
+
do { \
|
13
|
+
VALUE rvalue, str, old; \
|
14
|
+
rvalue = ULONG2NUM(value); \
|
15
|
+
rb_define_const(MODULE_FOR_CONSTS, name, rvalue); \
|
16
|
+
str = rb_obj_freeze(rb_str_new2(name)); \
|
17
|
+
old = rb_hash_aref(group, rvalue); \
|
18
|
+
if (!NIL_P(old)) rb_warning("%s is equal to %s", RSTRING_PTR(old), name); \
|
19
|
+
rb_hash_aset(group, rvalue, str); \
|
20
|
+
} while(0)
|
21
|
+
|
22
|
+
#define PKCS11_DEFINE_OBJECT_CLASS(constant) \
|
23
|
+
PKCS11_DEFINE_CONST_GROUP(vOBJECT_CLASSES, #constant, constant)
|
24
|
+
#define PKCS11_DEFINE_ATTRIBUTE(constant) \
|
25
|
+
PKCS11_DEFINE_CONST_GROUP(vATTRIBUTES, #constant, constant)
|
26
|
+
#define PKCS11_DEFINE_MECHANISM(constant) \
|
27
|
+
PKCS11_DEFINE_CONST_GROUP(vMECHANISMS, #constant, constant)
|
28
|
+
#define PKCS11_DEFINE_RETURN_VALUE(constant) \
|
29
|
+
do { \
|
30
|
+
VALUE eError = rb_define_class_under(MODULE_FOR_CONSTS, #constant, BASECLASS_FOR_ERRORS); \
|
31
|
+
VALUE rvalue = ULONG2NUM(constant); \
|
32
|
+
VALUE old = rb_hash_aref(vRETURN_VALUES, rvalue); \
|
33
|
+
if (!NIL_P(old)) rb_warning("%s is equal to %s", RSTRING_PTR(old), #constant); \
|
34
|
+
rb_hash_aset(vRETURN_VALUES, rvalue, eError); \
|
35
|
+
} while(0)
|
36
|
+
|
37
|
+
|
38
|
+
#endif
|
data/ext/pk11_struct.doc
ADDED
@@ -0,0 +1,792 @@
|
|
1
|
+
class PKCS11::CK_VERSION < PKCS11::CStruct
|
2
|
+
# Size of corresponding C struct in bytes
|
3
|
+
SIZEOF_STRUCT=Integer
|
4
|
+
# @return [String] Binary copy of the C struct
|
5
|
+
def to_s; end
|
6
|
+
# @return [Array<String>] Attributes of this struct
|
7
|
+
def members; end
|
8
|
+
# @return [Integer] accessor for major (CK_BYTE)
|
9
|
+
attr_accessor :major
|
10
|
+
# @return [Integer] accessor for minor (CK_BYTE)
|
11
|
+
attr_accessor :minor
|
12
|
+
end
|
13
|
+
class PKCS11::CK_INFO < PKCS11::CStruct
|
14
|
+
# Size of corresponding C struct in bytes
|
15
|
+
SIZEOF_STRUCT=Integer
|
16
|
+
# @return [String] Binary copy of the C struct
|
17
|
+
def to_s; end
|
18
|
+
# @return [Array<String>] Attributes of this struct
|
19
|
+
def members; end
|
20
|
+
# @return [PKCS11::CK_VERSION] inline struct
|
21
|
+
attr_accessor :cryptokiVersion
|
22
|
+
# @return [String] accessor for manufacturerID (max 32 bytes)
|
23
|
+
attr_accessor :manufacturerID
|
24
|
+
# @return [Integer] accessor for flags (CK_ULONG)
|
25
|
+
attr_accessor :flags
|
26
|
+
# @return [String] accessor for libraryDescription (max 32 bytes)
|
27
|
+
attr_accessor :libraryDescription
|
28
|
+
# @return [PKCS11::CK_VERSION] inline struct
|
29
|
+
attr_accessor :libraryVersion
|
30
|
+
end
|
31
|
+
class PKCS11::CK_SLOT_INFO < PKCS11::CStruct
|
32
|
+
# Size of corresponding C struct in bytes
|
33
|
+
SIZEOF_STRUCT=Integer
|
34
|
+
# @return [String] Binary copy of the C struct
|
35
|
+
def to_s; end
|
36
|
+
# @return [Array<String>] Attributes of this struct
|
37
|
+
def members; end
|
38
|
+
# @return [String] accessor for slotDescription (max 64 bytes)
|
39
|
+
attr_accessor :slotDescription
|
40
|
+
# @return [String] accessor for manufacturerID (max 32 bytes)
|
41
|
+
attr_accessor :manufacturerID
|
42
|
+
# @return [Integer] accessor for flags (CK_ULONG)
|
43
|
+
attr_accessor :flags
|
44
|
+
# @return [PKCS11::CK_VERSION] inline struct
|
45
|
+
attr_accessor :hardwareVersion
|
46
|
+
# @return [PKCS11::CK_VERSION] inline struct
|
47
|
+
attr_accessor :firmwareVersion
|
48
|
+
end
|
49
|
+
class PKCS11::CK_TOKEN_INFO < PKCS11::CStruct
|
50
|
+
# Size of corresponding C struct in bytes
|
51
|
+
SIZEOF_STRUCT=Integer
|
52
|
+
# @return [String] Binary copy of the C struct
|
53
|
+
def to_s; end
|
54
|
+
# @return [Array<String>] Attributes of this struct
|
55
|
+
def members; end
|
56
|
+
# @return [String] accessor for label (max 32 bytes)
|
57
|
+
attr_accessor :label
|
58
|
+
# @return [String] accessor for manufacturerID (max 32 bytes)
|
59
|
+
attr_accessor :manufacturerID
|
60
|
+
# @return [String] accessor for model (max 16 bytes)
|
61
|
+
attr_accessor :model
|
62
|
+
# @return [String] accessor for serialNumber (max 16 bytes)
|
63
|
+
attr_accessor :serialNumber
|
64
|
+
# @return [Integer] accessor for flags (CK_ULONG)
|
65
|
+
attr_accessor :flags
|
66
|
+
# @return [Integer] accessor for ulMaxSessionCount (CK_ULONG)
|
67
|
+
attr_accessor :ulMaxSessionCount
|
68
|
+
# @return [Integer] accessor for ulSessionCount (CK_ULONG)
|
69
|
+
attr_accessor :ulSessionCount
|
70
|
+
# @return [Integer] accessor for ulMaxRwSessionCount (CK_ULONG)
|
71
|
+
attr_accessor :ulMaxRwSessionCount
|
72
|
+
# @return [Integer] accessor for ulRwSessionCount (CK_ULONG)
|
73
|
+
attr_accessor :ulRwSessionCount
|
74
|
+
# @return [Integer] accessor for ulMaxPinLen (CK_ULONG)
|
75
|
+
attr_accessor :ulMaxPinLen
|
76
|
+
# @return [Integer] accessor for ulMinPinLen (CK_ULONG)
|
77
|
+
attr_accessor :ulMinPinLen
|
78
|
+
# @return [Integer] accessor for ulTotalPublicMemory (CK_ULONG)
|
79
|
+
attr_accessor :ulTotalPublicMemory
|
80
|
+
# @return [Integer] accessor for ulFreePublicMemory (CK_ULONG)
|
81
|
+
attr_accessor :ulFreePublicMemory
|
82
|
+
# @return [Integer] accessor for ulTotalPrivateMemory (CK_ULONG)
|
83
|
+
attr_accessor :ulTotalPrivateMemory
|
84
|
+
# @return [Integer] accessor for ulFreePrivateMemory (CK_ULONG)
|
85
|
+
attr_accessor :ulFreePrivateMemory
|
86
|
+
# @return [PKCS11::CK_VERSION] inline struct
|
87
|
+
attr_accessor :hardwareVersion
|
88
|
+
# @return [PKCS11::CK_VERSION] inline struct
|
89
|
+
attr_accessor :firmwareVersion
|
90
|
+
# @return [String] accessor for utcTime (max 16 bytes)
|
91
|
+
attr_accessor :utcTime
|
92
|
+
end
|
93
|
+
class PKCS11::CK_SESSION_INFO < PKCS11::CStruct
|
94
|
+
# Size of corresponding C struct in bytes
|
95
|
+
SIZEOF_STRUCT=Integer
|
96
|
+
# @return [String] Binary copy of the C struct
|
97
|
+
def to_s; end
|
98
|
+
# @return [Array<String>] Attributes of this struct
|
99
|
+
def members; end
|
100
|
+
# @return [Integer] accessor for slotID (CK_ULONG)
|
101
|
+
attr_accessor :slotID
|
102
|
+
# @return [Integer] accessor for state (CK_ULONG)
|
103
|
+
attr_accessor :state
|
104
|
+
# @return [Integer] accessor for flags (CK_ULONG)
|
105
|
+
attr_accessor :flags
|
106
|
+
# @return [Integer] accessor for ulDeviceError (CK_ULONG)
|
107
|
+
attr_accessor :ulDeviceError
|
108
|
+
end
|
109
|
+
class PKCS11::CK_DATE < PKCS11::CStruct
|
110
|
+
# Size of corresponding C struct in bytes
|
111
|
+
SIZEOF_STRUCT=Integer
|
112
|
+
# @return [String] Binary copy of the C struct
|
113
|
+
def to_s; end
|
114
|
+
# @return [Array<String>] Attributes of this struct
|
115
|
+
def members; end
|
116
|
+
# @return [String] accessor for year (max 4 bytes)
|
117
|
+
attr_accessor :year
|
118
|
+
# @return [String] accessor for month (max 2 bytes)
|
119
|
+
attr_accessor :month
|
120
|
+
# @return [String] accessor for day (max 2 bytes)
|
121
|
+
attr_accessor :day
|
122
|
+
end
|
123
|
+
class PKCS11::CK_MECHANISM_INFO < PKCS11::CStruct
|
124
|
+
# Size of corresponding C struct in bytes
|
125
|
+
SIZEOF_STRUCT=Integer
|
126
|
+
# @return [String] Binary copy of the C struct
|
127
|
+
def to_s; end
|
128
|
+
# @return [Array<String>] Attributes of this struct
|
129
|
+
def members; end
|
130
|
+
# @return [Integer] accessor for ulMinKeySize (CK_ULONG)
|
131
|
+
attr_accessor :ulMinKeySize
|
132
|
+
# @return [Integer] accessor for ulMaxKeySize (CK_ULONG)
|
133
|
+
attr_accessor :ulMaxKeySize
|
134
|
+
# @return [Integer] accessor for flags (CK_ULONG)
|
135
|
+
attr_accessor :flags
|
136
|
+
end
|
137
|
+
class PKCS11::CK_C_INITIALIZE_ARGS < PKCS11::CStruct
|
138
|
+
# Size of corresponding C struct in bytes
|
139
|
+
SIZEOF_STRUCT=Integer
|
140
|
+
# @return [String] Binary copy of the C struct
|
141
|
+
def to_s; end
|
142
|
+
# @return [Array<String>] Attributes of this struct
|
143
|
+
def members; end
|
144
|
+
# @return [String, nil] accessor for pReserved
|
145
|
+
attr_accessor :pReserved
|
146
|
+
# @return [Integer] accessor for flags (CK_ULONG)
|
147
|
+
attr_accessor :flags
|
148
|
+
end
|
149
|
+
class PKCS11::CK_RSA_PKCS_OAEP_PARAMS < PKCS11::CStruct
|
150
|
+
# Size of corresponding C struct in bytes
|
151
|
+
SIZEOF_STRUCT=Integer
|
152
|
+
# @return [String] Binary copy of the C struct
|
153
|
+
def to_s; end
|
154
|
+
# @return [Array<String>] Attributes of this struct
|
155
|
+
def members; end
|
156
|
+
# @return [String, nil] accessor for pSourceData and ulSourceDataLen
|
157
|
+
attr_accessor :pSourceData
|
158
|
+
# @return [Integer] accessor for hashAlg (CK_ULONG)
|
159
|
+
attr_accessor :hashAlg
|
160
|
+
# @return [Integer] accessor for mgf (CK_ULONG)
|
161
|
+
attr_accessor :mgf
|
162
|
+
# @return [Integer] accessor for source (CK_ULONG)
|
163
|
+
attr_accessor :source
|
164
|
+
end
|
165
|
+
class PKCS11::CK_RSA_PKCS_PSS_PARAMS < PKCS11::CStruct
|
166
|
+
# Size of corresponding C struct in bytes
|
167
|
+
SIZEOF_STRUCT=Integer
|
168
|
+
# @return [String] Binary copy of the C struct
|
169
|
+
def to_s; end
|
170
|
+
# @return [Array<String>] Attributes of this struct
|
171
|
+
def members; end
|
172
|
+
# @return [Integer] accessor for hashAlg (CK_ULONG)
|
173
|
+
attr_accessor :hashAlg
|
174
|
+
# @return [Integer] accessor for mgf (CK_ULONG)
|
175
|
+
attr_accessor :mgf
|
176
|
+
# @return [Integer] accessor for sLen (CK_ULONG)
|
177
|
+
attr_accessor :sLen
|
178
|
+
end
|
179
|
+
class PKCS11::CK_ECDH1_DERIVE_PARAMS < PKCS11::CStruct
|
180
|
+
# Size of corresponding C struct in bytes
|
181
|
+
SIZEOF_STRUCT=Integer
|
182
|
+
# @return [String] Binary copy of the C struct
|
183
|
+
def to_s; end
|
184
|
+
# @return [Array<String>] Attributes of this struct
|
185
|
+
def members; end
|
186
|
+
# @return [String, nil] accessor for pSharedData and ulSharedDataLen
|
187
|
+
attr_accessor :pSharedData
|
188
|
+
# @return [String, nil] accessor for pPublicData and ulPublicDataLen
|
189
|
+
attr_accessor :pPublicData
|
190
|
+
# @return [Integer] accessor for kdf (CK_ULONG)
|
191
|
+
attr_accessor :kdf
|
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
|
+
class PKCS11::CK_ECMQV_DERIVE_PARAMS < PKCS11::CStruct
|
216
|
+
# Size of corresponding C struct in bytes
|
217
|
+
SIZEOF_STRUCT=Integer
|
218
|
+
# @return [String] Binary copy of the C struct
|
219
|
+
def to_s; end
|
220
|
+
# @return [Array<String>] Attributes of this struct
|
221
|
+
def members; end
|
222
|
+
# @return [String, nil] accessor for pSharedData and ulSharedDataLen
|
223
|
+
attr_accessor :pSharedData
|
224
|
+
# @return [String, nil] accessor for pPublicData and ulPublicDataLen
|
225
|
+
attr_accessor :pPublicData
|
226
|
+
# @return [String, nil] accessor for pPublicData2
|
227
|
+
attr_accessor :pPublicData2
|
228
|
+
# @return [Integer] accessor for kdf (CK_ULONG)
|
229
|
+
attr_accessor :kdf
|
230
|
+
# @return [Integer] accessor for ulPrivateDataLen (CK_ULONG)
|
231
|
+
attr_accessor :ulPrivateDataLen
|
232
|
+
# @return [Integer, PKCS11::Object] Object handle (CK_ULONG)
|
233
|
+
attr_accessor :hPrivateData
|
234
|
+
# @return [Integer] accessor for ulPublicDataLen2 (CK_ULONG)
|
235
|
+
attr_accessor :ulPublicDataLen2
|
236
|
+
# @return [Integer, PKCS11::Object] Object handle (CK_ULONG)
|
237
|
+
attr_accessor :publicKey
|
238
|
+
end
|
239
|
+
class PKCS11::CK_X9_42_DH1_DERIVE_PARAMS < PKCS11::CStruct
|
240
|
+
# Size of corresponding C struct in bytes
|
241
|
+
SIZEOF_STRUCT=Integer
|
242
|
+
# @return [String] Binary copy of the C struct
|
243
|
+
def to_s; end
|
244
|
+
# @return [Array<String>] Attributes of this struct
|
245
|
+
def members; end
|
246
|
+
# @return [String, nil] accessor for pOtherInfo and ulOtherInfoLen
|
247
|
+
attr_accessor :pOtherInfo
|
248
|
+
# @return [String, nil] accessor for pPublicData and ulPublicDataLen
|
249
|
+
attr_accessor :pPublicData
|
250
|
+
# @return [Integer] accessor for kdf (CK_ULONG)
|
251
|
+
attr_accessor :kdf
|
252
|
+
end
|
253
|
+
class PKCS11::CK_X9_42_DH2_DERIVE_PARAMS < PKCS11::CStruct
|
254
|
+
# Size of corresponding C struct in bytes
|
255
|
+
SIZEOF_STRUCT=Integer
|
256
|
+
# @return [String] Binary copy of the C struct
|
257
|
+
def to_s; end
|
258
|
+
# @return [Array<String>] Attributes of this struct
|
259
|
+
def members; end
|
260
|
+
# @return [String, nil] accessor for pOtherInfo and ulOtherInfoLen
|
261
|
+
attr_accessor :pOtherInfo
|
262
|
+
# @return [String, nil] accessor for pPublicData and ulPublicDataLen
|
263
|
+
attr_accessor :pPublicData
|
264
|
+
# @return [String, nil] accessor for pPublicData2
|
265
|
+
attr_accessor :pPublicData2
|
266
|
+
# @return [Integer] accessor for kdf (CK_ULONG)
|
267
|
+
attr_accessor :kdf
|
268
|
+
# @return [Integer] accessor for ulPrivateDataLen (CK_ULONG)
|
269
|
+
attr_accessor :ulPrivateDataLen
|
270
|
+
# @return [Integer, PKCS11::Object] Object handle (CK_ULONG)
|
271
|
+
attr_accessor :hPrivateData
|
272
|
+
# @return [Integer] accessor for ulPublicDataLen2 (CK_ULONG)
|
273
|
+
attr_accessor :ulPublicDataLen2
|
274
|
+
end
|
275
|
+
class PKCS11::CK_X9_42_MQV_DERIVE_PARAMS < PKCS11::CStruct
|
276
|
+
# Size of corresponding C struct in bytes
|
277
|
+
SIZEOF_STRUCT=Integer
|
278
|
+
# @return [String] Binary copy of the C struct
|
279
|
+
def to_s; end
|
280
|
+
# @return [Array<String>] Attributes of this struct
|
281
|
+
def members; end
|
282
|
+
# @return [String, nil] accessor for pOtherInfo and ulOtherInfoLen
|
283
|
+
attr_accessor :pOtherInfo
|
284
|
+
# @return [String, nil] accessor for pPublicData and ulPublicDataLen
|
285
|
+
attr_accessor :pPublicData
|
286
|
+
# @return [String, nil] accessor for pPublicData2
|
287
|
+
attr_accessor :pPublicData2
|
288
|
+
# @return [Integer] accessor for kdf (CK_ULONG)
|
289
|
+
attr_accessor :kdf
|
290
|
+
# @return [Integer] accessor for ulPrivateDataLen (CK_ULONG)
|
291
|
+
attr_accessor :ulPrivateDataLen
|
292
|
+
# @return [Integer, PKCS11::Object] Object handle (CK_ULONG)
|
293
|
+
attr_accessor :hPrivateData
|
294
|
+
# @return [Integer] accessor for ulPublicDataLen2 (CK_ULONG)
|
295
|
+
attr_accessor :ulPublicDataLen2
|
296
|
+
# @return [Integer, PKCS11::Object] Object handle (CK_ULONG)
|
297
|
+
attr_accessor :publicKey
|
298
|
+
end
|
299
|
+
class PKCS11::CK_KEA_DERIVE_PARAMS < PKCS11::CStruct
|
300
|
+
# Size of corresponding C struct in bytes
|
301
|
+
SIZEOF_STRUCT=Integer
|
302
|
+
# @return [String] Binary copy of the C struct
|
303
|
+
def to_s; end
|
304
|
+
# @return [Array<String>] Attributes of this struct
|
305
|
+
def members; end
|
306
|
+
# @return [String, nil] accessor for pRandomA
|
307
|
+
attr_accessor :pRandomA
|
308
|
+
# @return [String, nil] accessor for pRandomB
|
309
|
+
attr_accessor :pRandomB
|
310
|
+
# @return [String, nil] accessor for pPublicData and ulPublicDataLen
|
311
|
+
attr_accessor :pPublicData
|
312
|
+
# @return [Boolean] Bool value
|
313
|
+
attr_accessor :isSender
|
314
|
+
# @return [Integer] accessor for ulRandomLen (CK_ULONG)
|
315
|
+
attr_accessor :ulRandomLen
|
316
|
+
end
|
317
|
+
class PKCS11::CK_RC2_CBC_PARAMS < PKCS11::CStruct
|
318
|
+
# Size of corresponding C struct in bytes
|
319
|
+
SIZEOF_STRUCT=Integer
|
320
|
+
# @return [String] Binary copy of the C struct
|
321
|
+
def to_s; end
|
322
|
+
# @return [Array<String>] Attributes of this struct
|
323
|
+
def members; end
|
324
|
+
# @return [Integer] accessor for ulEffectiveBits (CK_ULONG)
|
325
|
+
attr_accessor :ulEffectiveBits
|
326
|
+
# @return [String] accessor for iv (max 8 bytes)
|
327
|
+
attr_accessor :iv
|
328
|
+
end
|
329
|
+
class PKCS11::CK_RC2_MAC_GENERAL_PARAMS < PKCS11::CStruct
|
330
|
+
# Size of corresponding C struct in bytes
|
331
|
+
SIZEOF_STRUCT=Integer
|
332
|
+
# @return [String] Binary copy of the C struct
|
333
|
+
def to_s; end
|
334
|
+
# @return [Array<String>] Attributes of this struct
|
335
|
+
def members; end
|
336
|
+
# @return [Integer] accessor for ulEffectiveBits (CK_ULONG)
|
337
|
+
attr_accessor :ulEffectiveBits
|
338
|
+
# @return [Integer] accessor for ulMacLength (CK_ULONG)
|
339
|
+
attr_accessor :ulMacLength
|
340
|
+
end
|
341
|
+
class PKCS11::CK_RC5_PARAMS < PKCS11::CStruct
|
342
|
+
# Size of corresponding C struct in bytes
|
343
|
+
SIZEOF_STRUCT=Integer
|
344
|
+
# @return [String] Binary copy of the C struct
|
345
|
+
def to_s; end
|
346
|
+
# @return [Array<String>] Attributes of this struct
|
347
|
+
def members; end
|
348
|
+
# @return [Integer] accessor for ulWordsize (CK_ULONG)
|
349
|
+
attr_accessor :ulWordsize
|
350
|
+
# @return [Integer] accessor for ulRounds (CK_ULONG)
|
351
|
+
attr_accessor :ulRounds
|
352
|
+
end
|
353
|
+
class PKCS11::CK_RC5_CBC_PARAMS < PKCS11::CStruct
|
354
|
+
# Size of corresponding C struct in bytes
|
355
|
+
SIZEOF_STRUCT=Integer
|
356
|
+
# @return [String] Binary copy of the C struct
|
357
|
+
def to_s; end
|
358
|
+
# @return [Array<String>] Attributes of this struct
|
359
|
+
def members; end
|
360
|
+
# @return [String, nil] accessor for pIv and ulIvLen
|
361
|
+
attr_accessor :pIv
|
362
|
+
# @return [Integer] accessor for ulWordsize (CK_ULONG)
|
363
|
+
attr_accessor :ulWordsize
|
364
|
+
# @return [Integer] accessor for ulRounds (CK_ULONG)
|
365
|
+
attr_accessor :ulRounds
|
366
|
+
end
|
367
|
+
class PKCS11::CK_RC5_MAC_GENERAL_PARAMS < PKCS11::CStruct
|
368
|
+
# Size of corresponding C struct in bytes
|
369
|
+
SIZEOF_STRUCT=Integer
|
370
|
+
# @return [String] Binary copy of the C struct
|
371
|
+
def to_s; end
|
372
|
+
# @return [Array<String>] Attributes of this struct
|
373
|
+
def members; end
|
374
|
+
# @return [Integer] accessor for ulWordsize (CK_ULONG)
|
375
|
+
attr_accessor :ulWordsize
|
376
|
+
# @return [Integer] accessor for ulRounds (CK_ULONG)
|
377
|
+
attr_accessor :ulRounds
|
378
|
+
# @return [Integer] accessor for ulMacLength (CK_ULONG)
|
379
|
+
attr_accessor :ulMacLength
|
380
|
+
end
|
381
|
+
class PKCS11::CK_DES_CBC_ENCRYPT_DATA_PARAMS < PKCS11::CStruct
|
382
|
+
# Size of corresponding C struct in bytes
|
383
|
+
SIZEOF_STRUCT=Integer
|
384
|
+
# @return [String] Binary copy of the C struct
|
385
|
+
def to_s; end
|
386
|
+
# @return [Array<String>] Attributes of this struct
|
387
|
+
def members; end
|
388
|
+
# @return [String, nil] accessor for pData and length
|
389
|
+
attr_accessor :pData
|
390
|
+
# @return [String] accessor for iv (max 8 bytes)
|
391
|
+
attr_accessor :iv
|
392
|
+
end
|
393
|
+
class PKCS11::CK_AES_CBC_ENCRYPT_DATA_PARAMS < PKCS11::CStruct
|
394
|
+
# Size of corresponding C struct in bytes
|
395
|
+
SIZEOF_STRUCT=Integer
|
396
|
+
# @return [String] Binary copy of the C struct
|
397
|
+
def to_s; end
|
398
|
+
# @return [Array<String>] Attributes of this struct
|
399
|
+
def members; end
|
400
|
+
# @return [String, nil] accessor for pData and length
|
401
|
+
attr_accessor :pData
|
402
|
+
# @return [String] accessor for iv (max 16 bytes)
|
403
|
+
attr_accessor :iv
|
404
|
+
end
|
405
|
+
class PKCS11::CK_SKIPJACK_PRIVATE_WRAP_PARAMS < PKCS11::CStruct
|
406
|
+
# Size of corresponding C struct in bytes
|
407
|
+
SIZEOF_STRUCT=Integer
|
408
|
+
# @return [String] Binary copy of the C struct
|
409
|
+
def to_s; end
|
410
|
+
# @return [Array<String>] Attributes of this struct
|
411
|
+
def members; end
|
412
|
+
# @return [String, nil] accessor for pPassword and ulPasswordLen
|
413
|
+
attr_accessor :pPassword
|
414
|
+
# @return [String, nil] accessor for pPublicData and ulPublicDataLen
|
415
|
+
attr_accessor :pPublicData
|
416
|
+
# @return [String, nil] accessor for pRandomA
|
417
|
+
attr_accessor :pRandomA
|
418
|
+
# @return [String, nil] accessor for pPrimeP
|
419
|
+
attr_accessor :pPrimeP
|
420
|
+
# @return [String, nil] accessor for pBaseG
|
421
|
+
attr_accessor :pBaseG
|
422
|
+
# @return [String, nil] accessor for pSubprimeQ
|
423
|
+
attr_accessor :pSubprimeQ
|
424
|
+
# @return [Integer] accessor for ulPAndGLen (CK_ULONG)
|
425
|
+
attr_accessor :ulPAndGLen
|
426
|
+
# @return [Integer] accessor for ulQLen (CK_ULONG)
|
427
|
+
attr_accessor :ulQLen
|
428
|
+
# @return [Integer] accessor for ulRandomLen (CK_ULONG)
|
429
|
+
attr_accessor :ulRandomLen
|
430
|
+
end
|
431
|
+
class PKCS11::CK_SKIPJACK_RELAYX_PARAMS < PKCS11::CStruct
|
432
|
+
# Size of corresponding C struct in bytes
|
433
|
+
SIZEOF_STRUCT=Integer
|
434
|
+
# @return [String] Binary copy of the C struct
|
435
|
+
def to_s; end
|
436
|
+
# @return [Array<String>] Attributes of this struct
|
437
|
+
def members; end
|
438
|
+
# @return [String, nil] accessor for pOldWrappedX and ulOldWrappedXLen
|
439
|
+
attr_accessor :pOldWrappedX
|
440
|
+
# @return [String, nil] accessor for pOldPassword and ulOldPasswordLen
|
441
|
+
attr_accessor :pOldPassword
|
442
|
+
# @return [String, nil] accessor for pOldPublicData and ulOldPublicDataLen
|
443
|
+
attr_accessor :pOldPublicData
|
444
|
+
# @return [String, nil] accessor for pOldRandomA
|
445
|
+
attr_accessor :pOldRandomA
|
446
|
+
# @return [String, nil] accessor for pNewPassword and ulNewPasswordLen
|
447
|
+
attr_accessor :pNewPassword
|
448
|
+
# @return [String, nil] accessor for pNewPublicData and ulNewPublicDataLen
|
449
|
+
attr_accessor :pNewPublicData
|
450
|
+
# @return [String, nil] accessor for pNewRandomA
|
451
|
+
attr_accessor :pNewRandomA
|
452
|
+
# @return [Integer] accessor for ulOldRandomLen (CK_ULONG)
|
453
|
+
attr_accessor :ulOldRandomLen
|
454
|
+
# @return [Integer] accessor for ulNewRandomLen (CK_ULONG)
|
455
|
+
attr_accessor :ulNewRandomLen
|
456
|
+
end
|
457
|
+
class PKCS11::CK_PBE_PARAMS < PKCS11::CStruct
|
458
|
+
# Size of corresponding C struct in bytes
|
459
|
+
SIZEOF_STRUCT=Integer
|
460
|
+
# @return [String] Binary copy of the C struct
|
461
|
+
def to_s; end
|
462
|
+
# @return [Array<String>] Attributes of this struct
|
463
|
+
def members; end
|
464
|
+
# @return [String, nil] accessor for pInitVector
|
465
|
+
attr_accessor :pInitVector
|
466
|
+
# @return [String, nil] accessor for pPassword and ulPasswordLen
|
467
|
+
attr_accessor :pPassword
|
468
|
+
# @return [String, nil] accessor for pSalt and ulSaltLen
|
469
|
+
attr_accessor :pSalt
|
470
|
+
# @return [Integer] accessor for ulIteration (CK_ULONG)
|
471
|
+
attr_accessor :ulIteration
|
472
|
+
end
|
473
|
+
class PKCS11::CK_KEY_WRAP_SET_OAEP_PARAMS < PKCS11::CStruct
|
474
|
+
# Size of corresponding C struct in bytes
|
475
|
+
SIZEOF_STRUCT=Integer
|
476
|
+
# @return [String] Binary copy of the C struct
|
477
|
+
def to_s; end
|
478
|
+
# @return [Array<String>] Attributes of this struct
|
479
|
+
def members; end
|
480
|
+
# @return [String, nil] accessor for pX and ulXLen
|
481
|
+
attr_accessor :pX
|
482
|
+
# @return [Integer] accessor for bBC (CK_BYTE)
|
483
|
+
attr_accessor :bBC
|
484
|
+
end
|
485
|
+
class PKCS11::CK_SSL3_RANDOM_DATA < PKCS11::CStruct
|
486
|
+
# Size of corresponding C struct in bytes
|
487
|
+
SIZEOF_STRUCT=Integer
|
488
|
+
# @return [String] Binary copy of the C struct
|
489
|
+
def to_s; end
|
490
|
+
# @return [Array<String>] Attributes of this struct
|
491
|
+
def members; end
|
492
|
+
# @return [String, nil] accessor for pClientRandom and ulClientRandomLen
|
493
|
+
attr_accessor :pClientRandom
|
494
|
+
# @return [String, nil] accessor for pServerRandom and ulServerRandomLen
|
495
|
+
attr_accessor :pServerRandom
|
496
|
+
end
|
497
|
+
class PKCS11::CK_SSL3_MASTER_KEY_DERIVE_PARAMS < PKCS11::CStruct
|
498
|
+
# Size of corresponding C struct in bytes
|
499
|
+
SIZEOF_STRUCT=Integer
|
500
|
+
# @return [String] Binary copy of the C struct
|
501
|
+
def to_s; end
|
502
|
+
# @return [Array<String>] Attributes of this struct
|
503
|
+
def members; end
|
504
|
+
# @return [PKCS11::CK_SSL3_RANDOM_DATA] inline struct
|
505
|
+
attr_accessor :RandomInfo
|
506
|
+
# @return [PKCS11::CK_VERSION, nil] pointer to struct
|
507
|
+
attr_accessor :pVersion
|
508
|
+
end
|
509
|
+
class PKCS11::CK_SSL3_KEY_MAT_OUT < PKCS11::CStruct
|
510
|
+
# Size of corresponding C struct in bytes
|
511
|
+
SIZEOF_STRUCT=Integer
|
512
|
+
# @return [String] Binary copy of the C struct
|
513
|
+
def to_s; end
|
514
|
+
# @return [Array<String>] Attributes of this struct
|
515
|
+
def members; end
|
516
|
+
# @return [String, nil] accessor for pIVClient
|
517
|
+
attr_accessor :pIVClient
|
518
|
+
# @return [String, nil] accessor for pIVServer
|
519
|
+
attr_accessor :pIVServer
|
520
|
+
# @return [Integer, PKCS11::Object] Object handle (CK_ULONG)
|
521
|
+
attr_accessor :hClientMacSecret
|
522
|
+
# @return [Integer, PKCS11::Object] Object handle (CK_ULONG)
|
523
|
+
attr_accessor :hServerMacSecret
|
524
|
+
# @return [Integer, PKCS11::Object] Object handle (CK_ULONG)
|
525
|
+
attr_accessor :hClientKey
|
526
|
+
# @return [Integer, PKCS11::Object] Object handle (CK_ULONG)
|
527
|
+
attr_accessor :hServerKey
|
528
|
+
end
|
529
|
+
class PKCS11::CK_SSL3_KEY_MAT_PARAMS < PKCS11::CStruct
|
530
|
+
# Size of corresponding C struct in bytes
|
531
|
+
SIZEOF_STRUCT=Integer
|
532
|
+
# @return [String] Binary copy of the C struct
|
533
|
+
def to_s; end
|
534
|
+
# @return [Array<String>] Attributes of this struct
|
535
|
+
def members; end
|
536
|
+
# @return [Integer] accessor for ulMacSizeInBits (CK_ULONG)
|
537
|
+
attr_accessor :ulMacSizeInBits
|
538
|
+
# @return [Integer] accessor for ulKeySizeInBits (CK_ULONG)
|
539
|
+
attr_accessor :ulKeySizeInBits
|
540
|
+
# @return [Integer] accessor for ulIVSizeInBits (CK_ULONG)
|
541
|
+
attr_accessor :ulIVSizeInBits
|
542
|
+
# @return [Boolean] Bool value
|
543
|
+
attr_accessor :bIsExport
|
544
|
+
# @return [PKCS11::CK_SSL3_RANDOM_DATA] inline struct
|
545
|
+
attr_accessor :RandomInfo
|
546
|
+
# @return [PKCS11::CK_SSL3_KEY_MAT_OUT, nil] pointer to struct
|
547
|
+
attr_accessor :pReturnedKeyMaterial
|
548
|
+
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
|
+
class PKCS11::CK_WTLS_RANDOM_DATA < PKCS11::CStruct
|
566
|
+
# Size of corresponding C struct in bytes
|
567
|
+
SIZEOF_STRUCT=Integer
|
568
|
+
# @return [String] Binary copy of the C struct
|
569
|
+
def to_s; end
|
570
|
+
# @return [Array<String>] Attributes of this struct
|
571
|
+
def members; end
|
572
|
+
# @return [String, nil] accessor for pClientRandom and ulClientRandomLen
|
573
|
+
attr_accessor :pClientRandom
|
574
|
+
# @return [String, nil] accessor for pServerRandom and ulServerRandomLen
|
575
|
+
attr_accessor :pServerRandom
|
576
|
+
end
|
577
|
+
class PKCS11::CK_WTLS_MASTER_KEY_DERIVE_PARAMS < PKCS11::CStruct
|
578
|
+
# Size of corresponding C struct in bytes
|
579
|
+
SIZEOF_STRUCT=Integer
|
580
|
+
# @return [String] Binary copy of the C struct
|
581
|
+
def to_s; end
|
582
|
+
# @return [Array<String>] Attributes of this struct
|
583
|
+
def members; end
|
584
|
+
# @return [String, nil] accessor for pVersion
|
585
|
+
attr_accessor :pVersion
|
586
|
+
# @return [Integer] accessor for DigestMechanism (CK_ULONG)
|
587
|
+
attr_accessor :DigestMechanism
|
588
|
+
# @return [PKCS11::CK_WTLS_RANDOM_DATA] inline struct
|
589
|
+
attr_accessor :RandomInfo
|
590
|
+
end
|
591
|
+
class PKCS11::CK_WTLS_PRF_PARAMS < PKCS11::CStruct
|
592
|
+
# Size of corresponding C struct in bytes
|
593
|
+
SIZEOF_STRUCT=Integer
|
594
|
+
# @return [String] Binary copy of the C struct
|
595
|
+
def to_s; end
|
596
|
+
# @return [Array<String>] Attributes of this struct
|
597
|
+
def members; end
|
598
|
+
# @return [String, nil] accessor for pSeed and ulSeedLen
|
599
|
+
attr_accessor :pSeed
|
600
|
+
# @return [String, nil] accessor for pLabel and ulLabelLen
|
601
|
+
attr_accessor :pLabel
|
602
|
+
# @return [String, nil] accessor for pOutput
|
603
|
+
attr_accessor :pOutput
|
604
|
+
# @return [Integer] accessor for DigestMechanism (CK_ULONG)
|
605
|
+
attr_accessor :DigestMechanism
|
606
|
+
# @return [Integer, nil] accessor for pulOutputLen (CK_ULONG_PTR)
|
607
|
+
attr_accessor :pulOutputLen
|
608
|
+
end
|
609
|
+
class PKCS11::CK_WTLS_KEY_MAT_OUT < PKCS11::CStruct
|
610
|
+
# Size of corresponding C struct in bytes
|
611
|
+
SIZEOF_STRUCT=Integer
|
612
|
+
# @return [String] Binary copy of the C struct
|
613
|
+
def to_s; end
|
614
|
+
# @return [Array<String>] Attributes of this struct
|
615
|
+
def members; end
|
616
|
+
# @return [String, nil] accessor for pIV
|
617
|
+
attr_accessor :pIV
|
618
|
+
# @return [Integer, PKCS11::Object] Object handle (CK_ULONG)
|
619
|
+
attr_accessor :hMacSecret
|
620
|
+
# @return [Integer, PKCS11::Object] Object handle (CK_ULONG)
|
621
|
+
attr_accessor :hKey
|
622
|
+
end
|
623
|
+
class PKCS11::CK_WTLS_KEY_MAT_PARAMS < PKCS11::CStruct
|
624
|
+
# Size of corresponding C struct in bytes
|
625
|
+
SIZEOF_STRUCT=Integer
|
626
|
+
# @return [String] Binary copy of the C struct
|
627
|
+
def to_s; end
|
628
|
+
# @return [Array<String>] Attributes of this struct
|
629
|
+
def members; end
|
630
|
+
# @return [Integer] accessor for DigestMechanism (CK_ULONG)
|
631
|
+
attr_accessor :DigestMechanism
|
632
|
+
# @return [Integer] accessor for ulMacSizeInBits (CK_ULONG)
|
633
|
+
attr_accessor :ulMacSizeInBits
|
634
|
+
# @return [Integer] accessor for ulKeySizeInBits (CK_ULONG)
|
635
|
+
attr_accessor :ulKeySizeInBits
|
636
|
+
# @return [Integer] accessor for ulIVSizeInBits (CK_ULONG)
|
637
|
+
attr_accessor :ulIVSizeInBits
|
638
|
+
# @return [Integer] accessor for ulSequenceNumber (CK_ULONG)
|
639
|
+
attr_accessor :ulSequenceNumber
|
640
|
+
# @return [Boolean] Bool value
|
641
|
+
attr_accessor :bIsExport
|
642
|
+
# @return [PKCS11::CK_WTLS_RANDOM_DATA] inline struct
|
643
|
+
attr_accessor :RandomInfo
|
644
|
+
# @return [PKCS11::CK_WTLS_KEY_MAT_OUT, nil] pointer to struct
|
645
|
+
attr_accessor :pReturnedKeyMaterial
|
646
|
+
end
|
647
|
+
class PKCS11::CK_CMS_SIG_PARAMS < PKCS11::CStruct
|
648
|
+
# Size of corresponding C struct in bytes
|
649
|
+
SIZEOF_STRUCT=Integer
|
650
|
+
# @return [String] Binary copy of the C struct
|
651
|
+
def to_s; end
|
652
|
+
# @return [Array<String>] Attributes of this struct
|
653
|
+
def members; end
|
654
|
+
# @return [String, nil] accessor for pContentType
|
655
|
+
attr_accessor :pContentType
|
656
|
+
# @return [String, nil] accessor for pRequestedAttributes and ulRequestedAttributesLen
|
657
|
+
attr_accessor :pRequestedAttributes
|
658
|
+
# @return [String, nil] accessor for pRequiredAttributes and ulRequiredAttributesLen
|
659
|
+
attr_accessor :pRequiredAttributes
|
660
|
+
# @return [Integer, PKCS11::Object] Object handle (CK_ULONG)
|
661
|
+
attr_accessor :certificateHandle
|
662
|
+
# @return [PKCS11::CK_MECHANISM, nil] pointer to struct
|
663
|
+
attr_accessor :pSigningMechanism
|
664
|
+
# @return [PKCS11::CK_MECHANISM, nil] pointer to struct
|
665
|
+
attr_accessor :pDigestMechanism
|
666
|
+
end
|
667
|
+
class PKCS11::CK_KEY_DERIVATION_STRING_DATA < PKCS11::CStruct
|
668
|
+
# Size of corresponding C struct in bytes
|
669
|
+
SIZEOF_STRUCT=Integer
|
670
|
+
# @return [String] Binary copy of the C struct
|
671
|
+
def to_s; end
|
672
|
+
# @return [Array<String>] Attributes of this struct
|
673
|
+
def members; end
|
674
|
+
# @return [String, nil] accessor for pData and ulLen
|
675
|
+
attr_accessor :pData
|
676
|
+
end
|
677
|
+
class PKCS11::CK_PKCS5_PBKD2_PARAMS < PKCS11::CStruct
|
678
|
+
# Size of corresponding C struct in bytes
|
679
|
+
SIZEOF_STRUCT=Integer
|
680
|
+
# @return [String] Binary copy of the C struct
|
681
|
+
def to_s; end
|
682
|
+
# @return [Array<String>] Attributes of this struct
|
683
|
+
def members; end
|
684
|
+
# @return [String, nil] accessor for pSaltSourceData and ulSaltSourceDataLen
|
685
|
+
attr_accessor :pSaltSourceData
|
686
|
+
# @return [String, nil] accessor for pPrfData and ulPrfDataLen
|
687
|
+
attr_accessor :pPrfData
|
688
|
+
# @return [String, nil] accessor for pPassword
|
689
|
+
attr_accessor :pPassword
|
690
|
+
# @return [Integer] accessor for saltSource (CK_ULONG)
|
691
|
+
attr_accessor :saltSource
|
692
|
+
# @return [Integer] accessor for iterations (CK_ULONG)
|
693
|
+
attr_accessor :iterations
|
694
|
+
# @return [Integer] accessor for prf (CK_ULONG)
|
695
|
+
attr_accessor :prf
|
696
|
+
# @return [Integer, nil] accessor for ulPasswordLen (CK_ULONG_PTR)
|
697
|
+
attr_accessor :ulPasswordLen
|
698
|
+
end
|
699
|
+
class PKCS11::CK_OTP_PARAM < PKCS11::CStruct
|
700
|
+
# Size of corresponding C struct in bytes
|
701
|
+
SIZEOF_STRUCT=Integer
|
702
|
+
# @return [String] Binary copy of the C struct
|
703
|
+
def to_s; end
|
704
|
+
# @return [Array<String>] Attributes of this struct
|
705
|
+
def members; end
|
706
|
+
# @return [String, nil] accessor for pValue and ulValueLen
|
707
|
+
attr_accessor :pValue
|
708
|
+
# @return [Integer] accessor for type (CK_ULONG)
|
709
|
+
attr_accessor :type
|
710
|
+
end
|
711
|
+
class PKCS11::CK_OTP_PARAMS < PKCS11::CStruct
|
712
|
+
# Size of corresponding C struct in bytes
|
713
|
+
SIZEOF_STRUCT=Integer
|
714
|
+
# @return [String] Binary copy of the C struct
|
715
|
+
def to_s; end
|
716
|
+
# @return [Array<String>] Attributes of this struct
|
717
|
+
def members; end
|
718
|
+
# @return [Array<PKCS11::CK_OTP_PARAM>] accessor for pParams and ulCount
|
719
|
+
attr_accessor :pParams
|
720
|
+
end
|
721
|
+
class PKCS11::CK_OTP_SIGNATURE_INFO < PKCS11::CStruct
|
722
|
+
# Size of corresponding C struct in bytes
|
723
|
+
SIZEOF_STRUCT=Integer
|
724
|
+
# @return [String] Binary copy of the C struct
|
725
|
+
def to_s; end
|
726
|
+
# @return [Array<String>] Attributes of this struct
|
727
|
+
def members; end
|
728
|
+
# @return [Array<PKCS11::CK_OTP_PARAM>] accessor for pParams and ulCount
|
729
|
+
attr_accessor :pParams
|
730
|
+
end
|
731
|
+
class PKCS11::CK_KIP_PARAMS < PKCS11::CStruct
|
732
|
+
# Size of corresponding C struct in bytes
|
733
|
+
SIZEOF_STRUCT=Integer
|
734
|
+
# @return [String] Binary copy of the C struct
|
735
|
+
def to_s; end
|
736
|
+
# @return [Array<String>] Attributes of this struct
|
737
|
+
def members; end
|
738
|
+
# @return [String, nil] accessor for pSeed and ulSeedLen
|
739
|
+
attr_accessor :pSeed
|
740
|
+
# @return [PKCS11::CK_MECHANISM, nil] pointer to struct
|
741
|
+
attr_accessor :pMechanism
|
742
|
+
# @return [Integer, PKCS11::Object] Object handle (CK_ULONG)
|
743
|
+
attr_accessor :hKey
|
744
|
+
end
|
745
|
+
class PKCS11::CK_AES_CTR_PARAMS < PKCS11::CStruct
|
746
|
+
# Size of corresponding C struct in bytes
|
747
|
+
SIZEOF_STRUCT=Integer
|
748
|
+
# @return [String] Binary copy of the C struct
|
749
|
+
def to_s; end
|
750
|
+
# @return [Array<String>] Attributes of this struct
|
751
|
+
def members; end
|
752
|
+
# @return [Integer] accessor for ulCounterBits (CK_ULONG)
|
753
|
+
attr_accessor :ulCounterBits
|
754
|
+
# @return [String] accessor for cb (max 16 bytes)
|
755
|
+
attr_accessor :cb
|
756
|
+
end
|
757
|
+
class PKCS11::CK_CAMELLIA_CTR_PARAMS < PKCS11::CStruct
|
758
|
+
# Size of corresponding C struct in bytes
|
759
|
+
SIZEOF_STRUCT=Integer
|
760
|
+
# @return [String] Binary copy of the C struct
|
761
|
+
def to_s; end
|
762
|
+
# @return [Array<String>] Attributes of this struct
|
763
|
+
def members; end
|
764
|
+
# @return [Integer] accessor for ulCounterBits (CK_ULONG)
|
765
|
+
attr_accessor :ulCounterBits
|
766
|
+
# @return [String] accessor for cb (max 16 bytes)
|
767
|
+
attr_accessor :cb
|
768
|
+
end
|
769
|
+
class PKCS11::CK_CAMELLIA_CBC_ENCRYPT_DATA_PARAMS < PKCS11::CStruct
|
770
|
+
# Size of corresponding C struct in bytes
|
771
|
+
SIZEOF_STRUCT=Integer
|
772
|
+
# @return [String] Binary copy of the C struct
|
773
|
+
def to_s; end
|
774
|
+
# @return [Array<String>] Attributes of this struct
|
775
|
+
def members; end
|
776
|
+
# @return [String, nil] accessor for pData and length
|
777
|
+
attr_accessor :pData
|
778
|
+
# @return [String] accessor for iv (max 16 bytes)
|
779
|
+
attr_accessor :iv
|
780
|
+
end
|
781
|
+
class PKCS11::CK_ARIA_CBC_ENCRYPT_DATA_PARAMS < PKCS11::CStruct
|
782
|
+
# Size of corresponding C struct in bytes
|
783
|
+
SIZEOF_STRUCT=Integer
|
784
|
+
# @return [String] Binary copy of the C struct
|
785
|
+
def to_s; end
|
786
|
+
# @return [Array<String>] Attributes of this struct
|
787
|
+
def members; end
|
788
|
+
# @return [String, nil] accessor for pData and length
|
789
|
+
attr_accessor :pData
|
790
|
+
# @return [String] accessor for iv (max 16 bytes)
|
791
|
+
attr_accessor :iv
|
792
|
+
end
|