pkcs11_luna 0.2.7 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/README_LUNA.rdoc +3 -3
- data/Rakefile +5 -6
- data/ext/extconf.rb +0 -3
- data/ext/pk11_struct_macros.h +13 -13
- data/ext/pk11_version.h +1 -1
- data/ext/pk11l.c +67 -79
- data/ext/pk11l_struct.doc +101 -101
- data/ext/pk11l_struct_impl.inc +101 -101
- data/test/test_pkcs11_luna_crypt.rb +30 -30
- metadata +31 -25
- metadata.gz.sig +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f10e59800f3676a72f46239ff5c3926830a08e6f8e10a04b2d5f7db451461f83
|
4
|
+
data.tar.gz: 5dda0058b290db3c96e11dd34179ac40e25818334335510ad2c7bf76b0b2192b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8af055cb2caf442863d8f995c862079ad80c5301a2fb18dc4d66f3675919770ce0ba5ca0a9d65d2a4e06aa9cd92bdba6906b60d138cc8d2548676582759ccd9e
|
7
|
+
data.tar.gz: 13f0379e0ffcd23cb95aa9e8e93c3caf47412b43c1800fd0ab09433c9a333b98932a68ee18f3a30e96bbdcfa6c9240101324d454fd59866ed2e0f045cc888ba5
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/README_LUNA.rdoc
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
= PKCS #11/Ruby Interface for Safenet Luna HSM
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
home :: http://github.com/larskanis/pkcs11
|
4
|
+
API documentation :: http://pkcs11.rubyforge.org/pkcs11/
|
5
|
+
Safenet Luna HSM :: http://www.safenet-inc.com
|
6
6
|
|
7
7
|
This ruby gem is an add-on to ruby-pkcs11[http://github.com/larskanis/pkcs11] .
|
8
8
|
It allows to use Luna specific extensions, which are beyond the PKCS#11 standard.
|
data/Rakefile
CHANGED
@@ -34,10 +34,9 @@ end
|
|
34
34
|
hoe = Hoe.spec 'pkcs11_luna' do
|
35
35
|
developer('SafeNet', 'support@safenet-inc.com')
|
36
36
|
extra_deps << ['pkcs11', "= #{pkcs11_version}"]
|
37
|
-
extra_dev_deps << ['yard', '
|
38
|
-
extra_dev_deps << ['rake-compiler', '
|
37
|
+
extra_dev_deps << ['yard', '~> 0.6']
|
38
|
+
extra_dev_deps << ['rake-compiler', '~> 0.7']
|
39
39
|
|
40
|
-
self.url = 'http://github.com/larskanis/pkcs11'
|
41
40
|
self.summary = 'SafeNet-Luna extensions for PKCS#11-Ruby'
|
42
41
|
self.description = 'This module allows Ruby programs to use vendor extensions for SafeNet Luna.'
|
43
42
|
self.version = pkcs11_version
|
@@ -48,7 +47,7 @@ hoe = Hoe.spec 'pkcs11_luna' do
|
|
48
47
|
spec_extras[:extensions] = 'ext/extconf.rb'
|
49
48
|
spec_extras[:files] = File.read_utf("Manifest.txt").split(/\r?\n\r?/)
|
50
49
|
spec_extras[:files] += GENERATED_FILES
|
51
|
-
spec_extras[:
|
50
|
+
spec_extras[:required_ruby_version] = '>= 2.2.0'
|
52
51
|
end
|
53
52
|
|
54
53
|
Rake::ExtensionTask.new('pkcs11_luna_ext', hoe.spec) do |ext|
|
@@ -61,7 +60,7 @@ end
|
|
61
60
|
|
62
61
|
def copy_from_base_task(filename)
|
63
62
|
file File.join('ext', filename) => File.join(RUBY_PKCS11_EXT_DIR, filename) do |t|
|
64
|
-
cp t.prerequisites.first, t.name, :
|
63
|
+
cp t.prerequisites.first, t.name, verbose: true
|
65
64
|
end
|
66
65
|
end
|
67
66
|
|
@@ -83,6 +82,6 @@ file 'ext/pk11l_const_def.inc' => 'ext/generate_constants.rb' do
|
|
83
82
|
end
|
84
83
|
file 'ext/pk11l.c' => ['ext/pk11l_struct_def.inc', 'ext/pk11l_struct_impl.inc', 'ext/pk11l_const_def.inc']
|
85
84
|
|
86
|
-
task :
|
85
|
+
task doc_files: 'ext/pk11l_struct.doc'
|
87
86
|
|
88
87
|
# vim: syntax=ruby
|
data/ext/extconf.rb
CHANGED
data/ext/pk11_struct_macros.h
CHANGED
@@ -19,10 +19,10 @@ pkcs11_num2ulong(VALUE val)
|
|
19
19
|
}
|
20
20
|
|
21
21
|
static VALUE
|
22
|
-
get_string(VALUE obj, off_t offset, size_t size)
|
22
|
+
get_string(VALUE obj, off_t offset, size_t size, rb_encoding *enc)
|
23
23
|
{
|
24
24
|
char *ptr = (char*)DATA_PTR(obj);
|
25
|
-
return
|
25
|
+
return rb_enc_str_new(ptr+offset, size, enc);
|
26
26
|
}
|
27
27
|
|
28
28
|
static VALUE
|
@@ -86,7 +86,7 @@ set_ulong_ptr(VALUE obj, VALUE value, const char *name, off_t offset)
|
|
86
86
|
*ptr = NULL_PTR;
|
87
87
|
return value;
|
88
88
|
}
|
89
|
-
new_obj = Data_Make_Struct(
|
89
|
+
new_obj = Data_Make_Struct(rb_cData, CK_ULONG, 0, -1, *ptr);
|
90
90
|
rb_iv_set(obj, name, new_obj);
|
91
91
|
**ptr = NUM2ULONG(value);
|
92
92
|
return value;
|
@@ -126,12 +126,12 @@ set_bool(VALUE obj, VALUE value, off_t offset)
|
|
126
126
|
}
|
127
127
|
|
128
128
|
static VALUE
|
129
|
-
get_string_ptr(VALUE obj, const char *name, off_t offset)
|
129
|
+
get_string_ptr(VALUE obj, const char *name, off_t offset, rb_encoding *enc)
|
130
130
|
{
|
131
131
|
char *ptr = (char*)DATA_PTR(obj);
|
132
132
|
char *p = *(char**)(ptr+offset);
|
133
133
|
if (!p) return Qnil;
|
134
|
-
return
|
134
|
+
return rb_enc_str_new_cstr(p, enc);
|
135
135
|
}
|
136
136
|
|
137
137
|
static VALUE
|
@@ -151,14 +151,14 @@ set_string_ptr(VALUE obj, VALUE value, const char *name, off_t offset)
|
|
151
151
|
}
|
152
152
|
|
153
153
|
static VALUE
|
154
|
-
get_string_ptr_len(VALUE obj, const char *name, off_t offset, off_t offset_len)
|
154
|
+
get_string_ptr_len(VALUE obj, const char *name, off_t offset, off_t offset_len, rb_encoding *enc)
|
155
155
|
{
|
156
156
|
unsigned long l;
|
157
157
|
char *ptr = (char*)DATA_PTR(obj);
|
158
158
|
char *p = *(char**)(ptr+offset);
|
159
159
|
if (!p) return Qnil;
|
160
160
|
l = *(unsigned long*)(ptr+offset_len);
|
161
|
-
return
|
161
|
+
return rb_enc_str_new(p, l, enc);
|
162
162
|
}
|
163
163
|
|
164
164
|
static VALUE
|
@@ -290,9 +290,9 @@ static VALUE c##s;\
|
|
290
290
|
static VALUE a##s##_members;\
|
291
291
|
PKCS11_IMPLEMENT_ALLOCATOR(s);
|
292
292
|
|
293
|
-
#define PKCS11_IMPLEMENT_STRING_ACCESSOR(s, f) \
|
293
|
+
#define PKCS11_IMPLEMENT_STRING_ACCESSOR(s, f, enco) \
|
294
294
|
static VALUE c##s##_get_##f(VALUE o){ \
|
295
|
-
return get_string(o, OFFSET_OF(s, f), SIZE_OF(s, f)); \
|
295
|
+
return get_string(o, OFFSET_OF(s, f), SIZE_OF(s, f), rb_##enco##_encoding()); \
|
296
296
|
} \
|
297
297
|
static VALUE c##s##_set_##f(VALUE o, VALUE v){ \
|
298
298
|
return set_string(o, v, OFFSET_OF(s, f), SIZE_OF(s, f)); \
|
@@ -338,17 +338,17 @@ static VALUE c##s##_set_##f(VALUE o, VALUE v){ \
|
|
338
338
|
return set_bool(o, v, OFFSET_OF(s, f)); \
|
339
339
|
}
|
340
340
|
|
341
|
-
#define PKCS11_IMPLEMENT_STRING_PTR_ACCESSOR(s, f) \
|
341
|
+
#define PKCS11_IMPLEMENT_STRING_PTR_ACCESSOR(s, f, enco) \
|
342
342
|
static VALUE c##s##_get_##f(VALUE o){ \
|
343
|
-
return get_string_ptr(o, #f, OFFSET_OF(s, f)); \
|
343
|
+
return get_string_ptr(o, #f, OFFSET_OF(s, f), rb_##enco##_encoding()); \
|
344
344
|
} \
|
345
345
|
static VALUE c##s##_set_##f(VALUE o, VALUE v){ \
|
346
346
|
return set_string_ptr(o, v, #f, OFFSET_OF(s, f)); \
|
347
347
|
}
|
348
348
|
|
349
|
-
#define PKCS11_IMPLEMENT_STRING_PTR_LEN_ACCESSOR(s, f, l) \
|
349
|
+
#define PKCS11_IMPLEMENT_STRING_PTR_LEN_ACCESSOR(s, f, l, enco) \
|
350
350
|
static VALUE c##s##_get_##f(VALUE o){ \
|
351
|
-
return get_string_ptr_len(o, #f, OFFSET_OF(s, f), OFFSET_OF(s, l)); \
|
351
|
+
return get_string_ptr_len(o, #f, OFFSET_OF(s, f), OFFSET_OF(s, l), rb_##enco##_encoding()); \
|
352
352
|
} \
|
353
353
|
static VALUE c##s##_set_##f(VALUE o, VALUE v){ \
|
354
354
|
return set_string_ptr_len(o, v, #f, OFFSET_OF(s, f), OFFSET_OF(s, l)); \
|
data/ext/pk11_version.h
CHANGED
data/ext/pk11l.c
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
#include <ruby.h>
|
2
|
+
#include <ruby/thread.h>
|
3
|
+
#include <ruby/encoding.h>
|
2
4
|
|
3
5
|
|
4
6
|
#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
|
@@ -50,11 +52,6 @@ static VALUE vRETURN_VALUES;
|
|
50
52
|
#define BASECLASS_FOR_ERRORS eLunaError
|
51
53
|
#define BASECLASS_FOR_STRUCTS cLunaCStruct
|
52
54
|
|
53
|
-
#if defined(HAVE_RB_THREAD_CALL_WITHOUT_GVL)
|
54
|
-
extern void *rb_thread_call_without_gvl(void *(*func)(void *), void *data1,
|
55
|
-
rb_unblock_function_t *ubf, void *data2);
|
56
|
-
#endif
|
57
|
-
|
58
55
|
#define PKCS11_DEFINE_METHOD(name, args) \
|
59
56
|
rb_define_method(cPKCS11, #name, pkcs11_luna_##name, args);
|
60
57
|
|
@@ -67,19 +64,14 @@ extern void *rb_thread_call_without_gvl(void *(*func)(void *), void *data1,
|
|
67
64
|
if (!sval) rb_raise(eLunaError, #name " is not supported."); \
|
68
65
|
}
|
69
66
|
|
70
|
-
#
|
71
|
-
|
72
|
-
{ \
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
}
|
79
|
-
#else
|
80
|
-
#define CallFunction(name, func, rv, ...) \
|
81
|
-
rv = func(__VA_ARGS__)
|
82
|
-
#endif
|
67
|
+
#define CallFunction(name, func, rv, ...) \
|
68
|
+
{ \
|
69
|
+
struct tbr_##name##_params params = { \
|
70
|
+
func, {__VA_ARGS__}, CKR_FUNCTION_FAILED \
|
71
|
+
}; \
|
72
|
+
rb_thread_call_without_gvl(tbf_##name, ¶ms, RUBY_UBF_PROCESS, NULL); \
|
73
|
+
rv = params.retval; \
|
74
|
+
}
|
83
75
|
|
84
76
|
#include "cryptoki_v2.h"
|
85
77
|
|
@@ -102,69 +94,65 @@ pkcs11_luna_raise(VALUE self, CK_RV rv)
|
|
102
94
|
rb_raise(eLunaError, "method vendor_raise_on_return_value should never return");
|
103
95
|
}
|
104
96
|
|
105
|
-
|
106
|
-
|
107
|
-
struct
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
return NULL;
|
117
|
-
}
|
97
|
+
struct tbr_CA_GetFunctionList_params {
|
98
|
+
CK_CA_GetFunctionList func;
|
99
|
+
struct { CK_SFNT_CA_FUNCTION_LIST_PTR_PTR ppSfntFunctionList; } params;
|
100
|
+
CK_RV retval;
|
101
|
+
};
|
102
|
+
|
103
|
+
void * tbf_CA_GetFunctionList( void *data ){
|
104
|
+
struct tbr_CA_GetFunctionList_params *p = (struct tbr_CA_GetFunctionList_params*)data;
|
105
|
+
p->retval = p->func( p->params.ppSfntFunctionList );
|
106
|
+
return NULL;
|
107
|
+
}
|
118
108
|
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
struct tbr_CA_OpenApplicationID_params {
|
132
|
-
CK_CA_OpenApplicationID func;
|
133
|
-
struct { CK_SLOT_ID slot_id; CK_ULONG major; CK_ULONG minor; } params;
|
134
|
-
CK_RV retval;
|
135
|
-
};
|
136
|
-
|
137
|
-
void * tbf_CA_OpenApplicationID( void *data ){
|
138
|
-
struct tbr_CA_OpenApplicationID_params *p = (struct tbr_CA_OpenApplicationID_params*)data;
|
139
|
-
p->retval = p->func( p->params.slot_id, p->params.major, p->params.minor );
|
140
|
-
return NULL;
|
141
|
-
}
|
142
|
-
|
143
|
-
struct tbr_CA_CloseApplicationID_params {
|
144
|
-
CK_CA_CloseApplicationID func;
|
145
|
-
struct { CK_SLOT_ID slot_id; CK_ULONG major; CK_ULONG minor; } params;
|
146
|
-
CK_RV retval;
|
147
|
-
};
|
148
|
-
|
149
|
-
void * tbf_CA_CloseApplicationID( void *data ){
|
150
|
-
struct tbr_CA_CloseApplicationID_params *p = (struct tbr_CA_CloseApplicationID_params*)data;
|
151
|
-
p->retval = p->func( p->params.slot_id, p->params.major, p->params.minor);
|
152
|
-
return NULL;
|
153
|
-
}
|
109
|
+
/*struct tbr_CA_SetApplicationID_params {
|
110
|
+
CK_CA_SetApplicationID func;
|
111
|
+
struct { CK_ULONG major; CK_ULONG minor; } params;l
|
112
|
+
CK_RV retval;
|
113
|
+
};
|
114
|
+
|
115
|
+
void * tbf_CA_SetApplicationID( void *data ){
|
116
|
+
struct tbr_CA_SetApplicationID_params *p = (struct tbr_CA_SetApplicationID_params*)data;
|
117
|
+
p->retval = p->func( p->params.major, p->params.minor );
|
118
|
+
return NULL;
|
119
|
+
}
|
154
120
|
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
121
|
+
struct tbr_CA_OpenApplicationID_params {
|
122
|
+
CK_CA_OpenApplicationID func;
|
123
|
+
struct { CK_SLOT_ID slot_id; CK_ULONG major; CK_ULONG minor; } params;
|
124
|
+
CK_RV retval;
|
125
|
+
};
|
126
|
+
|
127
|
+
void * tbf_CA_OpenApplicationID( void *data ){
|
128
|
+
struct tbr_CA_OpenApplicationID_params *p = (struct tbr_CA_OpenApplicationID_params*)data;
|
129
|
+
p->retval = p->func( p->params.slot_id, p->params.major, p->params.minor );
|
130
|
+
return NULL;
|
131
|
+
}
|
132
|
+
|
133
|
+
struct tbr_CA_CloseApplicationID_params {
|
134
|
+
CK_CA_CloseApplicationID func;
|
135
|
+
struct { CK_SLOT_ID slot_id; CK_ULONG major; CK_ULONG minor; } params;
|
136
|
+
CK_RV retval;
|
137
|
+
};
|
138
|
+
|
139
|
+
void * tbf_CA_CloseApplicationID( void *data ){
|
140
|
+
struct tbr_CA_CloseApplicationID_params *p = (struct tbr_CA_CloseApplicationID_params*)data;
|
141
|
+
p->retval = p->func( p->params.slot_id, p->params.major, p->params.minor);
|
142
|
+
return NULL;
|
143
|
+
}
|
144
|
+
|
145
|
+
struct tbr_CA_LogExternal_params {
|
146
|
+
CK_CA_LogExternal func;
|
147
|
+
struct { CK_SLOT_ID slot_id; CK_SESSION_HANDLE hSession; CK_CHAR_PTR pString; CK_ULONG ulLen;} params;
|
148
|
+
CK_RV retval;
|
149
|
+
};
|
150
|
+
|
151
|
+
void * tbf_CA_LogExternal( void *data ){
|
152
|
+
struct tbr_CA_LogExternal_params *p = (struct tbr_CA_LogExternal_params*)data;
|
153
|
+
p->retval = p->func( p->params.slot_id, p->params.hSession, p->params.pString, p->params.ulLen);
|
154
|
+
return NULL;
|
155
|
+
}*/
|
168
156
|
|
169
157
|
|
170
158
|
|
data/ext/pk11l_struct.doc
CHANGED
@@ -19,11 +19,11 @@ def to_s; end
|
|
19
19
|
def members; end
|
20
20
|
# @return [PKCS11::Luna::CK_VERSION] inline struct
|
21
21
|
attr_accessor :cryptokiVersion
|
22
|
-
# @return [String] accessor for manufacturerID (max 32 bytes)
|
22
|
+
# @return [UTF8-String] accessor for manufacturerID (max 32 bytes)
|
23
23
|
attr_accessor :manufacturerID
|
24
24
|
# @return [Integer] accessor for flags (CK_ULONG)
|
25
25
|
attr_accessor :flags
|
26
|
-
# @return [String] accessor for libraryDescription (max 32 bytes)
|
26
|
+
# @return [UTF8-String] accessor for libraryDescription (max 32 bytes)
|
27
27
|
attr_accessor :libraryDescription
|
28
28
|
# @return [PKCS11::Luna::CK_VERSION] inline struct
|
29
29
|
attr_accessor :libraryVersion
|
@@ -35,9 +35,9 @@ SIZEOF_STRUCT=Integer
|
|
35
35
|
def to_s; end
|
36
36
|
# @return [Array<String>] Attributes of this struct
|
37
37
|
def members; end
|
38
|
-
# @return [String] accessor for slotDescription (max 64 bytes)
|
38
|
+
# @return [UTF8-String] accessor for slotDescription (max 64 bytes)
|
39
39
|
attr_accessor :slotDescription
|
40
|
-
# @return [String] accessor for manufacturerID (max 32 bytes)
|
40
|
+
# @return [UTF8-String] accessor for manufacturerID (max 32 bytes)
|
41
41
|
attr_accessor :manufacturerID
|
42
42
|
# @return [Integer] accessor for flags (CK_ULONG)
|
43
43
|
attr_accessor :flags
|
@@ -53,13 +53,13 @@ SIZEOF_STRUCT=Integer
|
|
53
53
|
def to_s; end
|
54
54
|
# @return [Array<String>] Attributes of this struct
|
55
55
|
def members; end
|
56
|
-
# @return [String] accessor for label (max 32 bytes)
|
56
|
+
# @return [UTF8-String] accessor for label (max 32 bytes)
|
57
57
|
attr_accessor :label
|
58
|
-
# @return [String] accessor for manufacturerID (max 32 bytes)
|
58
|
+
# @return [UTF8-String] accessor for manufacturerID (max 32 bytes)
|
59
59
|
attr_accessor :manufacturerID
|
60
|
-
# @return [String] accessor for model (max 16 bytes)
|
60
|
+
# @return [UTF8-String] accessor for model (max 16 bytes)
|
61
61
|
attr_accessor :model
|
62
|
-
# @return [String] accessor for serialNumber (max 16 bytes)
|
62
|
+
# @return [USASCII-String] accessor for serialNumber (max 16 bytes)
|
63
63
|
attr_accessor :serialNumber
|
64
64
|
# @return [Integer] accessor for flags (CK_ULONG)
|
65
65
|
attr_accessor :flags
|
@@ -87,7 +87,7 @@ attr_accessor :ulFreePrivateMemory
|
|
87
87
|
attr_accessor :hardwareVersion
|
88
88
|
# @return [PKCS11::Luna::CK_VERSION] inline struct
|
89
89
|
attr_accessor :firmwareVersion
|
90
|
-
# @return [String] accessor for utcTime (max 16 bytes)
|
90
|
+
# @return [USASCII-String] accessor for utcTime (max 16 bytes)
|
91
91
|
attr_accessor :utcTime
|
92
92
|
end
|
93
93
|
class PKCS11::Luna::CK_SESSION_INFO < PKCS11::Luna::CStruct
|
@@ -113,11 +113,11 @@ SIZEOF_STRUCT=Integer
|
|
113
113
|
def to_s; end
|
114
114
|
# @return [Array<String>] Attributes of this struct
|
115
115
|
def members; end
|
116
|
-
# @return [String] accessor for year (max 4 bytes)
|
116
|
+
# @return [USASCII-String] accessor for year (max 4 bytes)
|
117
117
|
attr_accessor :year
|
118
|
-
# @return [String] accessor for month (max 2 bytes)
|
118
|
+
# @return [USASCII-String] accessor for month (max 2 bytes)
|
119
119
|
attr_accessor :month
|
120
|
-
# @return [String] accessor for day (max 2 bytes)
|
120
|
+
# @return [USASCII-String] accessor for day (max 2 bytes)
|
121
121
|
attr_accessor :day
|
122
122
|
end
|
123
123
|
class PKCS11::Luna::CK_MECHANISM_INFO < PKCS11::Luna::CStruct
|
@@ -141,7 +141,7 @@ SIZEOF_STRUCT=Integer
|
|
141
141
|
def to_s; end
|
142
142
|
# @return [Array<String>] Attributes of this struct
|
143
143
|
def members; end
|
144
|
-
# @return [String, nil] accessor for pReserved
|
144
|
+
# @return [ASCII8BIT-String, nil] accessor for pReserved
|
145
145
|
attr_accessor :pReserved
|
146
146
|
# @return [Integer] accessor for flags (CK_ULONG)
|
147
147
|
attr_accessor :flags
|
@@ -153,7 +153,7 @@ SIZEOF_STRUCT=Integer
|
|
153
153
|
def to_s; end
|
154
154
|
# @return [Array<String>] Attributes of this struct
|
155
155
|
def members; end
|
156
|
-
# @return [String, nil] accessor for pSourceData and ulSourceDataLen
|
156
|
+
# @return [ASCII8BIT-String, nil] accessor for pSourceData and ulSourceDataLen
|
157
157
|
attr_accessor :pSourceData
|
158
158
|
# @return [Integer] accessor for hashAlg (CK_ULONG)
|
159
159
|
attr_accessor :hashAlg
|
@@ -183,9 +183,9 @@ SIZEOF_STRUCT=Integer
|
|
183
183
|
def to_s; end
|
184
184
|
# @return [Array<String>] Attributes of this struct
|
185
185
|
def members; end
|
186
|
-
# @return [String, nil] accessor for pSharedData and ulSharedDataLen
|
186
|
+
# @return [ASCII8BIT-String, nil] accessor for pSharedData and ulSharedDataLen
|
187
187
|
attr_accessor :pSharedData
|
188
|
-
# @return [String, nil] accessor for pPublicData and ulPublicDataLen
|
188
|
+
# @return [ASCII8BIT-String, nil] accessor for pPublicData and ulPublicDataLen
|
189
189
|
attr_accessor :pPublicData
|
190
190
|
# @return [Integer] accessor for kdf (CK_ULONG)
|
191
191
|
attr_accessor :kdf
|
@@ -197,11 +197,11 @@ SIZEOF_STRUCT=Integer
|
|
197
197
|
def to_s; end
|
198
198
|
# @return [Array<String>] Attributes of this struct
|
199
199
|
def members; end
|
200
|
-
# @return [String, nil] accessor for pSharedData and ulSharedDataLen
|
200
|
+
# @return [ASCII8BIT-String, nil] accessor for pSharedData and ulSharedDataLen
|
201
201
|
attr_accessor :pSharedData
|
202
|
-
# @return [String, nil] accessor for pPublicData and ulPublicDataLen
|
202
|
+
# @return [ASCII8BIT-String, nil] accessor for pPublicData and ulPublicDataLen
|
203
203
|
attr_accessor :pPublicData
|
204
|
-
# @return [String, nil] accessor for pPublicData2
|
204
|
+
# @return [ASCII8BIT-String, nil] accessor for pPublicData2
|
205
205
|
attr_accessor :pPublicData2
|
206
206
|
# @return [Integer] accessor for kdf (CK_ULONG)
|
207
207
|
attr_accessor :kdf
|
@@ -219,11 +219,11 @@ SIZEOF_STRUCT=Integer
|
|
219
219
|
def to_s; end
|
220
220
|
# @return [Array<String>] Attributes of this struct
|
221
221
|
def members; end
|
222
|
-
# @return [String, nil] accessor for pSharedData and ulSharedDataLen
|
222
|
+
# @return [ASCII8BIT-String, nil] accessor for pSharedData and ulSharedDataLen
|
223
223
|
attr_accessor :pSharedData
|
224
|
-
# @return [String, nil] accessor for pPublicData and ulPublicDataLen
|
224
|
+
# @return [ASCII8BIT-String, nil] accessor for pPublicData and ulPublicDataLen
|
225
225
|
attr_accessor :pPublicData
|
226
|
-
# @return [String, nil] accessor for pPublicData2
|
226
|
+
# @return [ASCII8BIT-String, nil] accessor for pPublicData2
|
227
227
|
attr_accessor :pPublicData2
|
228
228
|
# @return [Integer] accessor for kdf (CK_ULONG)
|
229
229
|
attr_accessor :kdf
|
@@ -243,9 +243,9 @@ SIZEOF_STRUCT=Integer
|
|
243
243
|
def to_s; end
|
244
244
|
# @return [Array<String>] Attributes of this struct
|
245
245
|
def members; end
|
246
|
-
# @return [String, nil] accessor for pOtherInfo and ulOtherInfoLen
|
246
|
+
# @return [ASCII8BIT-String, nil] accessor for pOtherInfo and ulOtherInfoLen
|
247
247
|
attr_accessor :pOtherInfo
|
248
|
-
# @return [String, nil] accessor for pPublicData and ulPublicDataLen
|
248
|
+
# @return [ASCII8BIT-String, nil] accessor for pPublicData and ulPublicDataLen
|
249
249
|
attr_accessor :pPublicData
|
250
250
|
# @return [Integer] accessor for kdf (CK_ULONG)
|
251
251
|
attr_accessor :kdf
|
@@ -257,11 +257,11 @@ SIZEOF_STRUCT=Integer
|
|
257
257
|
def to_s; end
|
258
258
|
# @return [Array<String>] Attributes of this struct
|
259
259
|
def members; end
|
260
|
-
# @return [String, nil] accessor for pOtherInfo and ulOtherInfoLen
|
260
|
+
# @return [ASCII8BIT-String, nil] accessor for pOtherInfo and ulOtherInfoLen
|
261
261
|
attr_accessor :pOtherInfo
|
262
|
-
# @return [String, nil] accessor for pPublicData and ulPublicDataLen
|
262
|
+
# @return [ASCII8BIT-String, nil] accessor for pPublicData and ulPublicDataLen
|
263
263
|
attr_accessor :pPublicData
|
264
|
-
# @return [String, nil] accessor for pPublicData2
|
264
|
+
# @return [ASCII8BIT-String, nil] accessor for pPublicData2
|
265
265
|
attr_accessor :pPublicData2
|
266
266
|
# @return [Integer] accessor for kdf (CK_ULONG)
|
267
267
|
attr_accessor :kdf
|
@@ -279,11 +279,11 @@ SIZEOF_STRUCT=Integer
|
|
279
279
|
def to_s; end
|
280
280
|
# @return [Array<String>] Attributes of this struct
|
281
281
|
def members; end
|
282
|
-
# @return [String, nil] accessor for pOtherInfo and ulOtherInfoLen
|
282
|
+
# @return [ASCII8BIT-String, nil] accessor for pOtherInfo and ulOtherInfoLen
|
283
283
|
attr_accessor :pOtherInfo
|
284
|
-
# @return [String, nil] accessor for pPublicData and ulPublicDataLen
|
284
|
+
# @return [ASCII8BIT-String, nil] accessor for pPublicData and ulPublicDataLen
|
285
285
|
attr_accessor :pPublicData
|
286
|
-
# @return [String, nil] accessor for pPublicData2
|
286
|
+
# @return [ASCII8BIT-String, nil] accessor for pPublicData2
|
287
287
|
attr_accessor :pPublicData2
|
288
288
|
# @return [Integer] accessor for kdf (CK_ULONG)
|
289
289
|
attr_accessor :kdf
|
@@ -303,11 +303,11 @@ SIZEOF_STRUCT=Integer
|
|
303
303
|
def to_s; end
|
304
304
|
# @return [Array<String>] Attributes of this struct
|
305
305
|
def members; end
|
306
|
-
# @return [String, nil] accessor for pRandomA
|
306
|
+
# @return [ASCII8BIT-String, nil] accessor for pRandomA
|
307
307
|
attr_accessor :pRandomA
|
308
|
-
# @return [String, nil] accessor for pRandomB
|
308
|
+
# @return [ASCII8BIT-String, nil] accessor for pRandomB
|
309
309
|
attr_accessor :pRandomB
|
310
|
-
# @return [String, nil] accessor for pPublicData and ulPublicDataLen
|
310
|
+
# @return [ASCII8BIT-String, nil] accessor for pPublicData and ulPublicDataLen
|
311
311
|
attr_accessor :pPublicData
|
312
312
|
# @return [Boolean] Bool value
|
313
313
|
attr_accessor :isSender
|
@@ -323,7 +323,7 @@ def to_s; end
|
|
323
323
|
def members; end
|
324
324
|
# @return [Integer] accessor for ulEffectiveBits (CK_ULONG)
|
325
325
|
attr_accessor :ulEffectiveBits
|
326
|
-
# @return [String] accessor for iv (max 8 bytes)
|
326
|
+
# @return [ASCII8BIT-String] accessor for iv (max 8 bytes)
|
327
327
|
attr_accessor :iv
|
328
328
|
end
|
329
329
|
class PKCS11::Luna::CK_RC2_MAC_GENERAL_PARAMS < PKCS11::Luna::CStruct
|
@@ -357,7 +357,7 @@ SIZEOF_STRUCT=Integer
|
|
357
357
|
def to_s; end
|
358
358
|
# @return [Array<String>] Attributes of this struct
|
359
359
|
def members; end
|
360
|
-
# @return [String, nil] accessor for pIv and ulIvLen
|
360
|
+
# @return [ASCII8BIT-String, nil] accessor for pIv and ulIvLen
|
361
361
|
attr_accessor :pIv
|
362
362
|
# @return [Integer] accessor for ulWordsize (CK_ULONG)
|
363
363
|
attr_accessor :ulWordsize
|
@@ -385,9 +385,9 @@ SIZEOF_STRUCT=Integer
|
|
385
385
|
def to_s; end
|
386
386
|
# @return [Array<String>] Attributes of this struct
|
387
387
|
def members; end
|
388
|
-
# @return [String, nil] accessor for pData and length
|
388
|
+
# @return [ASCII8BIT-String, nil] accessor for pData and length
|
389
389
|
attr_accessor :pData
|
390
|
-
# @return [String] accessor for iv (max 8 bytes)
|
390
|
+
# @return [ASCII8BIT-String] accessor for iv (max 8 bytes)
|
391
391
|
attr_accessor :iv
|
392
392
|
end
|
393
393
|
class PKCS11::Luna::CK_AES_CBC_ENCRYPT_DATA_PARAMS < PKCS11::Luna::CStruct
|
@@ -397,9 +397,9 @@ SIZEOF_STRUCT=Integer
|
|
397
397
|
def to_s; end
|
398
398
|
# @return [Array<String>] Attributes of this struct
|
399
399
|
def members; end
|
400
|
-
# @return [String, nil] accessor for pData and length
|
400
|
+
# @return [ASCII8BIT-String, nil] accessor for pData and length
|
401
401
|
attr_accessor :pData
|
402
|
-
# @return [String] accessor for iv (max 16 bytes)
|
402
|
+
# @return [ASCII8BIT-String] accessor for iv (max 16 bytes)
|
403
403
|
attr_accessor :iv
|
404
404
|
end
|
405
405
|
class PKCS11::Luna::CK_SKIPJACK_PRIVATE_WRAP_PARAMS < PKCS11::Luna::CStruct
|
@@ -409,17 +409,17 @@ SIZEOF_STRUCT=Integer
|
|
409
409
|
def to_s; end
|
410
410
|
# @return [Array<String>] Attributes of this struct
|
411
411
|
def members; end
|
412
|
-
# @return [String, nil] accessor for pPassword and ulPasswordLen
|
412
|
+
# @return [ASCII8BIT-String, nil] accessor for pPassword and ulPasswordLen
|
413
413
|
attr_accessor :pPassword
|
414
|
-
# @return [String, nil] accessor for pPublicData and ulPublicDataLen
|
414
|
+
# @return [ASCII8BIT-String, nil] accessor for pPublicData and ulPublicDataLen
|
415
415
|
attr_accessor :pPublicData
|
416
|
-
# @return [String, nil] accessor for pRandomA
|
416
|
+
# @return [ASCII8BIT-String, nil] accessor for pRandomA
|
417
417
|
attr_accessor :pRandomA
|
418
|
-
# @return [String, nil] accessor for pPrimeP
|
418
|
+
# @return [ASCII8BIT-String, nil] accessor for pPrimeP
|
419
419
|
attr_accessor :pPrimeP
|
420
|
-
# @return [String, nil] accessor for pBaseG
|
420
|
+
# @return [ASCII8BIT-String, nil] accessor for pBaseG
|
421
421
|
attr_accessor :pBaseG
|
422
|
-
# @return [String, nil] accessor for pSubprimeQ
|
422
|
+
# @return [ASCII8BIT-String, nil] accessor for pSubprimeQ
|
423
423
|
attr_accessor :pSubprimeQ
|
424
424
|
# @return [Integer] accessor for ulPAndGLen (CK_ULONG)
|
425
425
|
attr_accessor :ulPAndGLen
|
@@ -435,19 +435,19 @@ SIZEOF_STRUCT=Integer
|
|
435
435
|
def to_s; end
|
436
436
|
# @return [Array<String>] Attributes of this struct
|
437
437
|
def members; end
|
438
|
-
# @return [String, nil] accessor for pOldWrappedX and ulOldWrappedXLen
|
438
|
+
# @return [ASCII8BIT-String, nil] accessor for pOldWrappedX and ulOldWrappedXLen
|
439
439
|
attr_accessor :pOldWrappedX
|
440
|
-
# @return [String, nil] accessor for pOldPassword and ulOldPasswordLen
|
440
|
+
# @return [ASCII8BIT-String, nil] accessor for pOldPassword and ulOldPasswordLen
|
441
441
|
attr_accessor :pOldPassword
|
442
|
-
# @return [String, nil] accessor for pOldPublicData and ulOldPublicDataLen
|
442
|
+
# @return [ASCII8BIT-String, nil] accessor for pOldPublicData and ulOldPublicDataLen
|
443
443
|
attr_accessor :pOldPublicData
|
444
|
-
# @return [String, nil] accessor for pOldRandomA
|
444
|
+
# @return [ASCII8BIT-String, nil] accessor for pOldRandomA
|
445
445
|
attr_accessor :pOldRandomA
|
446
|
-
# @return [String, nil] accessor for pNewPassword and ulNewPasswordLen
|
446
|
+
# @return [ASCII8BIT-String, nil] accessor for pNewPassword and ulNewPasswordLen
|
447
447
|
attr_accessor :pNewPassword
|
448
|
-
# @return [String, nil] accessor for pNewPublicData and ulNewPublicDataLen
|
448
|
+
# @return [ASCII8BIT-String, nil] accessor for pNewPublicData and ulNewPublicDataLen
|
449
449
|
attr_accessor :pNewPublicData
|
450
|
-
# @return [String, nil] accessor for pNewRandomA
|
450
|
+
# @return [ASCII8BIT-String, nil] accessor for pNewRandomA
|
451
451
|
attr_accessor :pNewRandomA
|
452
452
|
# @return [Integer] accessor for ulOldRandomLen (CK_ULONG)
|
453
453
|
attr_accessor :ulOldRandomLen
|
@@ -461,11 +461,11 @@ SIZEOF_STRUCT=Integer
|
|
461
461
|
def to_s; end
|
462
462
|
# @return [Array<String>] Attributes of this struct
|
463
463
|
def members; end
|
464
|
-
# @return [String, nil] accessor for pInitVector
|
464
|
+
# @return [ASCII8BIT-String, nil] accessor for pInitVector
|
465
465
|
attr_accessor :pInitVector
|
466
|
-
# @return [String, nil] accessor for pPassword and ulPasswordLen
|
466
|
+
# @return [UTF8-String, nil] accessor for pPassword and ulPasswordLen
|
467
467
|
attr_accessor :pPassword
|
468
|
-
# @return [String, nil] accessor for pSalt and ulSaltLen
|
468
|
+
# @return [ASCII8BIT-String, nil] accessor for pSalt and ulSaltLen
|
469
469
|
attr_accessor :pSalt
|
470
470
|
# @return [Integer] accessor for ulIteration (CK_ULONG)
|
471
471
|
attr_accessor :ulIteration
|
@@ -477,7 +477,7 @@ SIZEOF_STRUCT=Integer
|
|
477
477
|
def to_s; end
|
478
478
|
# @return [Array<String>] Attributes of this struct
|
479
479
|
def members; end
|
480
|
-
# @return [String, nil] accessor for pX and ulXLen
|
480
|
+
# @return [ASCII8BIT-String, nil] accessor for pX and ulXLen
|
481
481
|
attr_accessor :pX
|
482
482
|
# @return [Integer] accessor for bBC (CK_BYTE)
|
483
483
|
attr_accessor :bBC
|
@@ -489,9 +489,9 @@ SIZEOF_STRUCT=Integer
|
|
489
489
|
def to_s; end
|
490
490
|
# @return [Array<String>] Attributes of this struct
|
491
491
|
def members; end
|
492
|
-
# @return [String, nil] accessor for pClientRandom and ulClientRandomLen
|
492
|
+
# @return [ASCII8BIT-String, nil] accessor for pClientRandom and ulClientRandomLen
|
493
493
|
attr_accessor :pClientRandom
|
494
|
-
# @return [String, nil] accessor for pServerRandom and ulServerRandomLen
|
494
|
+
# @return [ASCII8BIT-String, nil] accessor for pServerRandom and ulServerRandomLen
|
495
495
|
attr_accessor :pServerRandom
|
496
496
|
end
|
497
497
|
class PKCS11::Luna::CK_SSL3_MASTER_KEY_DERIVE_PARAMS < PKCS11::Luna::CStruct
|
@@ -513,9 +513,9 @@ SIZEOF_STRUCT=Integer
|
|
513
513
|
def to_s; end
|
514
514
|
# @return [Array<String>] Attributes of this struct
|
515
515
|
def members; end
|
516
|
-
# @return [String, nil] accessor for pIVClient
|
516
|
+
# @return [ASCII8BIT-String, nil] accessor for pIVClient
|
517
517
|
attr_accessor :pIVClient
|
518
|
-
# @return [String, nil] accessor for pIVServer
|
518
|
+
# @return [ASCII8BIT-String, nil] accessor for pIVServer
|
519
519
|
attr_accessor :pIVServer
|
520
520
|
# @return [Integer, PKCS11::Object] Object handle (CK_ULONG)
|
521
521
|
attr_accessor :hClientMacSecret
|
@@ -553,11 +553,11 @@ SIZEOF_STRUCT=Integer
|
|
553
553
|
def to_s; end
|
554
554
|
# @return [Array<String>] Attributes of this struct
|
555
555
|
def members; end
|
556
|
-
# @return [String, nil] accessor for pSeed and ulSeedLen
|
556
|
+
# @return [ASCII8BIT-String, nil] accessor for pSeed and ulSeedLen
|
557
557
|
attr_accessor :pSeed
|
558
|
-
# @return [String, nil] accessor for pLabel and ulLabelLen
|
558
|
+
# @return [ASCII8BIT-String, nil] accessor for pLabel and ulLabelLen
|
559
559
|
attr_accessor :pLabel
|
560
|
-
# @return [String, nil] accessor for pOutput
|
560
|
+
# @return [ASCII8BIT-String, nil] accessor for pOutput
|
561
561
|
attr_accessor :pOutput
|
562
562
|
# @return [Integer, nil] accessor for pulOutputLen (CK_ULONG_PTR)
|
563
563
|
attr_accessor :pulOutputLen
|
@@ -569,9 +569,9 @@ SIZEOF_STRUCT=Integer
|
|
569
569
|
def to_s; end
|
570
570
|
# @return [Array<String>] Attributes of this struct
|
571
571
|
def members; end
|
572
|
-
# @return [String, nil] accessor for pClientRandom and ulClientRandomLen
|
572
|
+
# @return [ASCII8BIT-String, nil] accessor for pClientRandom and ulClientRandomLen
|
573
573
|
attr_accessor :pClientRandom
|
574
|
-
# @return [String, nil] accessor for pServerRandom and ulServerRandomLen
|
574
|
+
# @return [ASCII8BIT-String, nil] accessor for pServerRandom and ulServerRandomLen
|
575
575
|
attr_accessor :pServerRandom
|
576
576
|
end
|
577
577
|
class PKCS11::Luna::CK_WTLS_MASTER_KEY_DERIVE_PARAMS < PKCS11::Luna::CStruct
|
@@ -581,7 +581,7 @@ SIZEOF_STRUCT=Integer
|
|
581
581
|
def to_s; end
|
582
582
|
# @return [Array<String>] Attributes of this struct
|
583
583
|
def members; end
|
584
|
-
# @return [String, nil] accessor for pVersion
|
584
|
+
# @return [ASCII8BIT-String, nil] accessor for pVersion
|
585
585
|
attr_accessor :pVersion
|
586
586
|
# @return [Integer] accessor for DigestMechanism (CK_ULONG)
|
587
587
|
attr_accessor :DigestMechanism
|
@@ -595,11 +595,11 @@ SIZEOF_STRUCT=Integer
|
|
595
595
|
def to_s; end
|
596
596
|
# @return [Array<String>] Attributes of this struct
|
597
597
|
def members; end
|
598
|
-
# @return [String, nil] accessor for pSeed and ulSeedLen
|
598
|
+
# @return [ASCII8BIT-String, nil] accessor for pSeed and ulSeedLen
|
599
599
|
attr_accessor :pSeed
|
600
|
-
# @return [String, nil] accessor for pLabel and ulLabelLen
|
600
|
+
# @return [ASCII8BIT-String, nil] accessor for pLabel and ulLabelLen
|
601
601
|
attr_accessor :pLabel
|
602
|
-
# @return [String, nil] accessor for pOutput
|
602
|
+
# @return [ASCII8BIT-String, nil] accessor for pOutput
|
603
603
|
attr_accessor :pOutput
|
604
604
|
# @return [Integer] accessor for DigestMechanism (CK_ULONG)
|
605
605
|
attr_accessor :DigestMechanism
|
@@ -613,7 +613,7 @@ SIZEOF_STRUCT=Integer
|
|
613
613
|
def to_s; end
|
614
614
|
# @return [Array<String>] Attributes of this struct
|
615
615
|
def members; end
|
616
|
-
# @return [String, nil] accessor for pIV
|
616
|
+
# @return [ASCII8BIT-String, nil] accessor for pIV
|
617
617
|
attr_accessor :pIV
|
618
618
|
# @return [Integer, PKCS11::Object] Object handle (CK_ULONG)
|
619
619
|
attr_accessor :hMacSecret
|
@@ -651,11 +651,11 @@ SIZEOF_STRUCT=Integer
|
|
651
651
|
def to_s; end
|
652
652
|
# @return [Array<String>] Attributes of this struct
|
653
653
|
def members; end
|
654
|
-
# @return [String, nil] accessor for pContentType
|
654
|
+
# @return [UTF8-String, nil] accessor for pContentType
|
655
655
|
attr_accessor :pContentType
|
656
|
-
# @return [String, nil] accessor for pRequestedAttributes and ulRequestedAttributesLen
|
656
|
+
# @return [ASCII8BIT-String, nil] accessor for pRequestedAttributes and ulRequestedAttributesLen
|
657
657
|
attr_accessor :pRequestedAttributes
|
658
|
-
# @return [String, nil] accessor for pRequiredAttributes and ulRequiredAttributesLen
|
658
|
+
# @return [ASCII8BIT-String, nil] accessor for pRequiredAttributes and ulRequiredAttributesLen
|
659
659
|
attr_accessor :pRequiredAttributes
|
660
660
|
# @return [Integer, PKCS11::Object] Object handle (CK_ULONG)
|
661
661
|
attr_accessor :certificateHandle
|
@@ -671,7 +671,7 @@ SIZEOF_STRUCT=Integer
|
|
671
671
|
def to_s; end
|
672
672
|
# @return [Array<String>] Attributes of this struct
|
673
673
|
def members; end
|
674
|
-
# @return [String, nil] accessor for pData and ulLen
|
674
|
+
# @return [ASCII8BIT-String, nil] accessor for pData and ulLen
|
675
675
|
attr_accessor :pData
|
676
676
|
end
|
677
677
|
class PKCS11::Luna::CK_PKCS5_PBKD2_PARAMS < PKCS11::Luna::CStruct
|
@@ -681,11 +681,11 @@ SIZEOF_STRUCT=Integer
|
|
681
681
|
def to_s; end
|
682
682
|
# @return [Array<String>] Attributes of this struct
|
683
683
|
def members; end
|
684
|
-
# @return [String, nil] accessor for pSaltSourceData and ulSaltSourceDataLen
|
684
|
+
# @return [ASCII8BIT-String, nil] accessor for pSaltSourceData and ulSaltSourceDataLen
|
685
685
|
attr_accessor :pSaltSourceData
|
686
|
-
# @return [String, nil] accessor for pPrfData and ulPrfDataLen
|
686
|
+
# @return [ASCII8BIT-String, nil] accessor for pPrfData and ulPrfDataLen
|
687
687
|
attr_accessor :pPrfData
|
688
|
-
# @return [String, nil] accessor for pPassword and ulPasswordLen
|
688
|
+
# @return [UTF8-String, nil] accessor for pPassword and ulPasswordLen
|
689
689
|
attr_accessor :pPassword
|
690
690
|
# @return [Integer] accessor for saltSource (CK_ULONG)
|
691
691
|
attr_accessor :saltSource
|
@@ -701,7 +701,7 @@ SIZEOF_STRUCT=Integer
|
|
701
701
|
def to_s; end
|
702
702
|
# @return [Array<String>] Attributes of this struct
|
703
703
|
def members; end
|
704
|
-
# @return [String, nil] accessor for pValue and ulValueLen
|
704
|
+
# @return [ASCII8BIT-String, nil] accessor for pValue and ulValueLen
|
705
705
|
attr_accessor :pValue
|
706
706
|
# @return [Integer] accessor for type (CK_ULONG)
|
707
707
|
attr_accessor :type
|
@@ -737,7 +737,7 @@ SIZEOF_STRUCT=Integer
|
|
737
737
|
def to_s; end
|
738
738
|
# @return [Array<String>] Attributes of this struct
|
739
739
|
def members; end
|
740
|
-
# @return [String, nil] accessor for pSeed and ulSeedLen
|
740
|
+
# @return [ASCII8BIT-String, nil] accessor for pSeed and ulSeedLen
|
741
741
|
attr_accessor :pSeed
|
742
742
|
# @return [PKCS11::Luna::CK_MECHANISM, nil] pointer to struct
|
743
743
|
attr_accessor :pMechanism
|
@@ -753,7 +753,7 @@ def to_s; end
|
|
753
753
|
def members; end
|
754
754
|
# @return [Integer] accessor for ulCounterBits (CK_ULONG)
|
755
755
|
attr_accessor :ulCounterBits
|
756
|
-
# @return [String] accessor for cb (max 16 bytes)
|
756
|
+
# @return [ASCII8BIT-String] accessor for cb (max 16 bytes)
|
757
757
|
attr_accessor :cb
|
758
758
|
end
|
759
759
|
class PKCS11::Luna::CK_CAMELLIA_CTR_PARAMS < PKCS11::Luna::CStruct
|
@@ -765,7 +765,7 @@ def to_s; end
|
|
765
765
|
def members; end
|
766
766
|
# @return [Integer] accessor for ulCounterBits (CK_ULONG)
|
767
767
|
attr_accessor :ulCounterBits
|
768
|
-
# @return [String] accessor for cb (max 16 bytes)
|
768
|
+
# @return [ASCII8BIT-String] accessor for cb (max 16 bytes)
|
769
769
|
attr_accessor :cb
|
770
770
|
end
|
771
771
|
class PKCS11::Luna::CK_CAMELLIA_CBC_ENCRYPT_DATA_PARAMS < PKCS11::Luna::CStruct
|
@@ -775,9 +775,9 @@ SIZEOF_STRUCT=Integer
|
|
775
775
|
def to_s; end
|
776
776
|
# @return [Array<String>] Attributes of this struct
|
777
777
|
def members; end
|
778
|
-
# @return [String, nil] accessor for pData and length
|
778
|
+
# @return [ASCII8BIT-String, nil] accessor for pData and length
|
779
779
|
attr_accessor :pData
|
780
|
-
# @return [String] accessor for iv (max 16 bytes)
|
780
|
+
# @return [ASCII8BIT-String] accessor for iv (max 16 bytes)
|
781
781
|
attr_accessor :iv
|
782
782
|
end
|
783
783
|
class PKCS11::Luna::CK_ARIA_CBC_ENCRYPT_DATA_PARAMS < PKCS11::Luna::CStruct
|
@@ -787,9 +787,9 @@ SIZEOF_STRUCT=Integer
|
|
787
787
|
def to_s; end
|
788
788
|
# @return [Array<String>] Attributes of this struct
|
789
789
|
def members; end
|
790
|
-
# @return [String, nil] accessor for pData and length
|
790
|
+
# @return [ASCII8BIT-String, nil] accessor for pData and length
|
791
791
|
attr_accessor :pData
|
792
|
-
# @return [String] accessor for iv (max 16 bytes)
|
792
|
+
# @return [ASCII8BIT-String] accessor for iv (max 16 bytes)
|
793
793
|
attr_accessor :iv
|
794
794
|
end
|
795
795
|
class PKCS11::Luna::CK_AES_GCM_PARAMS < PKCS11::Luna::CStruct
|
@@ -799,9 +799,9 @@ SIZEOF_STRUCT=Integer
|
|
799
799
|
def to_s; end
|
800
800
|
# @return [Array<String>] Attributes of this struct
|
801
801
|
def members; end
|
802
|
-
# @return [String, nil] accessor for pIv and ulIvLen
|
802
|
+
# @return [ASCII8BIT-String, nil] accessor for pIv and ulIvLen
|
803
803
|
attr_accessor :pIv
|
804
|
-
# @return [String, nil] accessor for pAAD and ulAADLen
|
804
|
+
# @return [ASCII8BIT-String, nil] accessor for pAAD and ulAADLen
|
805
805
|
attr_accessor :pAAD
|
806
806
|
# @return [Integer] accessor for ulIvBits (CK_ULONG)
|
807
807
|
attr_accessor :ulIvBits
|
@@ -815,7 +815,7 @@ SIZEOF_STRUCT=Integer
|
|
815
815
|
def to_s; end
|
816
816
|
# @return [Array<String>] Attributes of this struct
|
817
817
|
def members; end
|
818
|
-
# @return [String, nil] accessor for pSharedData and ulSharedDataLen
|
818
|
+
# @return [ASCII8BIT-String, nil] accessor for pSharedData and ulSharedDataLen
|
819
819
|
attr_accessor :pSharedData
|
820
820
|
# @return [Integer] accessor for kdf (CK_ULONG)
|
821
821
|
attr_accessor :kdf
|
@@ -827,9 +827,9 @@ SIZEOF_STRUCT=Integer
|
|
827
827
|
def to_s; end
|
828
828
|
# @return [Array<String>] Attributes of this struct
|
829
829
|
def members; end
|
830
|
-
# @return [String, nil] accessor for pSharedData1
|
830
|
+
# @return [ASCII8BIT-String, nil] accessor for pSharedData1
|
831
831
|
attr_accessor :pSharedData1
|
832
|
-
# @return [String, nil] accessor for pSharedData2
|
832
|
+
# @return [ASCII8BIT-String, nil] accessor for pSharedData2
|
833
833
|
attr_accessor :pSharedData2
|
834
834
|
# @return [Integer] accessor for dhPrimitive (CK_ULONG)
|
835
835
|
attr_accessor :dhPrimitive
|
@@ -857,9 +857,9 @@ SIZEOF_STRUCT=Integer
|
|
857
857
|
def to_s; end
|
858
858
|
# @return [Array<String>] Attributes of this struct
|
859
859
|
def members; end
|
860
|
-
# @return [String, nil] accessor for pLabel and ulLabelLen
|
860
|
+
# @return [ASCII8BIT-String, nil] accessor for pLabel and ulLabelLen
|
861
861
|
attr_accessor :pLabel
|
862
|
-
# @return [String, nil] accessor for pContext and ulContextLen
|
862
|
+
# @return [ASCII8BIT-String, nil] accessor for pContext and ulContextLen
|
863
863
|
attr_accessor :pContext
|
864
864
|
# @return [Integer] accessor for prfType (CK_ULONG)
|
865
865
|
attr_accessor :prfType
|
@@ -877,7 +877,7 @@ def to_s; end
|
|
877
877
|
def members; end
|
878
878
|
# @return [Integer] accessor for ulCounterBits (CK_ULONG)
|
879
879
|
attr_accessor :ulCounterBits
|
880
|
-
# @return [String] accessor for cb (max 8 bytes)
|
880
|
+
# @return [ASCII8BIT-String] accessor for cb (max 8 bytes)
|
881
881
|
attr_accessor :cb
|
882
882
|
end
|
883
883
|
class PKCS11::Luna::CA_MOFN_STATUS < PKCS11::Luna::CStruct
|
@@ -907,9 +907,9 @@ def to_s; end
|
|
907
907
|
def members; end
|
908
908
|
# @return [Integer] accessor for ulModuleSize (CK_ULONG)
|
909
909
|
attr_accessor :ulModuleSize
|
910
|
-
# @return [String] accessor for developerName (max 32 bytes)
|
910
|
+
# @return [USASCII-String] accessor for developerName (max 32 bytes)
|
911
911
|
attr_accessor :developerName
|
912
|
-
# @return [String] accessor for moduleDescription (max 32 bytes)
|
912
|
+
# @return [USASCII-String] accessor for moduleDescription (max 32 bytes)
|
913
913
|
attr_accessor :moduleDescription
|
914
914
|
# @return [PKCS11::Luna::CK_VERSION] inline struct
|
915
915
|
attr_accessor :moduleVersion
|
@@ -945,9 +945,9 @@ SIZEOF_STRUCT=Integer
|
|
945
945
|
def to_s; end
|
946
946
|
# @return [Array<String>] Attributes of this struct
|
947
947
|
def members; end
|
948
|
-
# @return [String, nil] accessor for pBuffer
|
948
|
+
# @return [ASCII8BIT-String, nil] accessor for pBuffer
|
949
949
|
attr_accessor :pBuffer
|
950
|
-
# @return [String, nil] accessor for pbFileName
|
950
|
+
# @return [ASCII8BIT-String, nil] accessor for pbFileName
|
951
951
|
attr_accessor :pbFileName
|
952
952
|
# @return [Integer] accessor for ulType (CK_ULONG)
|
953
953
|
attr_accessor :ulType
|
@@ -971,9 +971,9 @@ SIZEOF_STRUCT=Integer
|
|
971
971
|
def to_s; end
|
972
972
|
# @return [Array<String>] Attributes of this struct
|
973
973
|
def members; end
|
974
|
-
# @return [String, nil] accessor for pBuffer and ulBufferLen
|
974
|
+
# @return [ASCII8BIT-String, nil] accessor for pBuffer and ulBufferLen
|
975
975
|
attr_accessor :pBuffer
|
976
|
-
# @return [String, nil] accessor for pbFileName
|
976
|
+
# @return [ASCII8BIT-String, nil] accessor for pbFileName
|
977
977
|
attr_accessor :pbFileName
|
978
978
|
# @return [Integer] accessor for ulStorageType (CK_ULONG)
|
979
979
|
attr_accessor :ulStorageType
|
@@ -997,7 +997,7 @@ SIZEOF_STRUCT=Integer
|
|
997
997
|
def to_s; end
|
998
998
|
# @return [Array<String>] Attributes of this struct
|
999
999
|
def members; end
|
1000
|
-
# @return [String] accessor for bMembers (max CK_MAX_CLUSTER_MEMBERS bytes)
|
1000
|
+
# @return [ASCII8BIT-String] accessor for bMembers (max CK_MAX_CLUSTER_MEMBERS bytes)
|
1001
1001
|
attr_accessor :bMembers
|
1002
1002
|
end
|
1003
1003
|
class PKCS11::Luna::CK_LKM_TOKEN_ID < PKCS11::Luna::CStruct
|
@@ -1007,6 +1007,6 @@ SIZEOF_STRUCT=Integer
|
|
1007
1007
|
def to_s; end
|
1008
1008
|
# @return [Array<String>] Attributes of this struct
|
1009
1009
|
def members; end
|
1010
|
-
# @return [String] accessor for id (max AKEP2_NID_SIZE bytes)
|
1010
|
+
# @return [ASCII8BIT-String] accessor for id (max AKEP2_NID_SIZE bytes)
|
1011
1011
|
attr_accessor :id
|
1012
1012
|
end
|