pkcs11 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dbbe79ed675ee3a36557da0c1daf8c57301fe4feefe884d2de01c6548bc5066b
4
- data.tar.gz: 52d77be573adf0373a715448aefead6abcb988b53c614b2835ae7b5a0a5ce896
3
+ metadata.gz: 4a3c70f36b7a77052520a767fbdcc3d482fa7977ef139f4aa9c5ae975497d1b7
4
+ data.tar.gz: 3c1b495fff8cdde8e218908a3cdf21eda4dff38e921f514b26a5ea29ecf98eaa
5
5
  SHA512:
6
- metadata.gz: 4fa068e4e856d6861eeb11b302d753e19be00b04f245bdada1e322b8067f7dc7704c506a7eab66a026af6ea08dbf6633ccf283a8cf6f82aaf1017e2685bd46f3
7
- data.tar.gz: 55523644e465ac7f4eebf4c3b649189127828e9ea7924d026506261b8827c0be5400ada65e57214035f8cd1657d07fd0b21880004c0b1d819d17e7c8683ff79c
6
+ metadata.gz: b3daa751de0f9b9cf2b6b3a87a821b5822d0cc268cc1886e17ef033155b1ddf4bf834552bdb5c81c4d5a0e4fc6145a25e4e31c1d2ec9aabd1052eae01bfbcaad
7
+ data.tar.gz: 5ae2565b6d539f04cfebebb50caf1f8f73e97e3268785241056bce99bcedfb42ea95c74a06b64cadf05793a869403354902f12669e7d95f6de7c1bf2b464f946
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -0,0 +1,40 @@
1
+ install:
2
+ - SET PATH=C:/Ruby%ruby_version%/bin;%PATH%
3
+ - SET RAKEOPT=-rdevkit
4
+ - ps: |
5
+ if ($env:ruby_version -like "*head*") {
6
+ $(new-object net.webclient).DownloadFile("https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-head/rubyinstaller-$env:ruby_version.exe", "$pwd/ruby-setup.exe")
7
+ cmd /c ruby-setup.exe /verysilent /dir=C:/Ruby$env:ruby_version
8
+ }
9
+ - ruby --version
10
+ - gem --version
11
+ - bundle install
12
+
13
+ # When running ruby-x86, we make use of the softokn3.dll that is part of the
14
+ # pre-installed firefox. The test helper will find it automatically.
15
+ # When running ruby-x64, we equally need a 64 bit softokn3.dll to test against.
16
+ # However it is not part of any installed software on Appveyor,
17
+ # so we download and install a 64 bit firefox version and use it's softokn3.dll.
18
+ - ps: |
19
+ if ($env:ruby_version -like "*x64*") {
20
+ $(new-object net.webclient).DownloadFile('http://ftp.mozilla.org/pub/firefox/releases/68.3.0esr/win64/en-US/Firefox%20Setup%2068.3.0esr.exe', 'C:/firefox-setup.exe')
21
+ cmd /c "C:/firefox-setup.exe" -ms
22
+ $env:SOFTOKN_PATH = 'C:/Program Files/Mozilla Firefox/softokn3.dll'
23
+ $env:PATH = 'C:/Program Files/Mozilla Firefox;' + $env:PATH
24
+ }
25
+
26
+ build: off
27
+
28
+ test_script:
29
+ - bundle exec rake compile test gem
30
+
31
+ environment:
32
+ matrix:
33
+ - ruby_version: head-x64
34
+ RUBY_DLL_PATH: "C:/Program Files/Mozilla Firefox"
35
+ - ruby_version: "25"
36
+ RUBY_DLL_PATH: "C:/Program Files (x86)/Mozilla Firefox"
37
+ - ruby_version: "24-x64"
38
+ RUBY_DLL_PATH: "C:/Program Files/Mozilla Firefox"
39
+ - ruby_version: "22"
40
+ - ruby_version: "23-x64"
@@ -0,0 +1,17 @@
1
+ ext/pk11_const_def.inc
2
+ ext/pk11_struct.doc
3
+ ext/pk11_struct_def.inc
4
+ ext/pk11_struct_impl.inc
5
+ ext/pk11_thread_funcs.c
6
+ ext/pk11_thread_funcs.h
7
+ pkcs11_protect_server/ext/pk11_const_macros.h
8
+ pkcs11_protect_server/ext/pk11_struct_macros.h
9
+ pkcs11_protect_server/ext/pk11_version.h
10
+ pkcs11_protect_server/ext/pk11s_const_def.inc
11
+ pkcs11_protect_server/ext/pk11s_struct.doc
12
+ pkcs11_protect_server/ext/pk11s_struct_def.inc
13
+ pkcs11_protect_server/ext/pk11s_struct_impl.inc
14
+ *.so
15
+ Gemfile.lock
16
+ tmp
17
+ Manifest.txt
@@ -1,11 +1,11 @@
1
1
  language: ruby
2
2
  sudo: false
3
3
  rvm:
4
- - "2.0"
5
- - "2.5.0"
4
+ - "2.2"
5
+ - "2.5.7"
6
6
  - "ruby-head"
7
- - rbx
7
+ - truffleruby
8
8
  matrix:
9
9
  allow_failures:
10
- - rvm: rbx
10
+ - rvm: truffleruby
11
11
  script: bundle exec rake compile test gem
data/Gemfile CHANGED
@@ -5,12 +5,12 @@
5
5
  source "https://rubygems.org/"
6
6
 
7
7
 
8
- gem "yard", ">=0.6", :group => [:development, :test]
8
+ gem "yard", "~>0.6", :group => [:development, :test]
9
9
  gem "rake-compiler", "~>1.0", :group => [:development, :test]
10
10
  gem "rake-compiler-dock", "~>0.6.2", :group => [:development, :test]
11
11
  gem "minitest", "~>5.7", :group => [:development, :test]
12
12
  gem "hoe-bundler", "~>1.0", :group => [:development, :test]
13
- gem "rdoc", "~>4.0", :group => [:development, :test]
14
- gem "hoe", "~>3.16", :group => [:development, :test]
13
+ gem "rdoc", ">=4.0", "<7", :group => [:development, :test]
14
+ gem "hoe", "~>3.20", :group => [:development, :test]
15
15
 
16
16
  # vim: syntax=ruby
@@ -1,3 +1,13 @@
1
+ === 0.3.0 / 2019-12-05
2
+
3
+ * Change hash style in documentation and tests.
4
+ It was kind of {:LABEL => value} and is now {LABEL: value}
5
+ * Implement proper String encoding support.
6
+ Now strings retrieved as attribute values and from struct members
7
+ are tagged with binary, ASCII or UTF8 encoding.
8
+ * Remove compatibility to rubies < 2.2.
9
+ * Add support for TruffleRuby
10
+
1
11
  === 0.2.7 / 2018-01-05
2
12
 
3
13
  * Add vendor extension for Safenet Luna called pkcs11_luna.
@@ -3,8 +3,8 @@
3
3
 
4
4
  = PKCS #11/Ruby Interface
5
5
 
6
- * Homepage: http://github.com/larskanis/pkcs11
7
- * API documentation: http://rubydoc.info/gems/pkcs11/frames
6
+ home :: http://github.com/larskanis/pkcs11
7
+ API documentation :: http://rubydoc.info/gems/pkcs11/frames
8
8
 
9
9
  This module allows Ruby programs to interface with "RSA Security Inc.
10
10
  PKCS #11 Cryptographic Token Interface (Cryptoki)".
@@ -43,8 +43,8 @@ While this seems to be true for C, it shouldn't for Ruby.
43
43
  pkcs11.active_slots.first.open do |session|
44
44
  session.login(:USER, "1234")
45
45
  secret_key = session.generate_key(:DES2_KEY_GEN,
46
- :ENCRYPT=>true, :DECRYPT=>true, :SENSITIVE=>true, :TOKEN=>true, :LABEL=>'my key')
47
- cryptogram = session.encrypt( {:DES3_CBC_PAD=>"\0"*8}, secret_key, "some plaintext")
46
+ ENCRYPT: true, DECRYPT: true, SENSITIVE: true, TOKEN: true, LABEL: 'my key')
47
+ cryptogram = session.encrypt( {DES3_CBC_PAD: "\0"*8}, secret_key, "some plaintext")
48
48
  session.logout
49
49
  end
50
50
 
@@ -65,12 +65,11 @@ Browsable HTML can be found at http://www.cryptsoft.com/pkcs11doc.
65
65
  Some vendors extend their libraries beyond the standard, in it's own way.
66
66
  This can be used by vendor specific packages:
67
67
  * Safenet ProtectServer: {http://www.rubydoc.info/gems/pkcs11_protect_server/}
68
- * Safenet Luna: {file:pkcs11_luna/README_LUNA.rdoc}
68
+ * Safenet Luna: {http://www.rubydoc.info/gems/pkcs11_luna/}
69
69
 
70
70
  === Threading
71
71
 
72
- The pkcs11 binding fully supports native, background Ruby threads.
73
- This of course only applies to Rubinius and Ruby 1.9 or higher since earlier versions of Ruby do not support native threads.
72
+ The pkcs11 binding fully supports background Ruby threads while calls to PKCS#11 functions.
74
73
 
75
74
  According to the standard, calling the Cryptoki library from multiple threads simultaneously, requires to open it with flag PKCS11::CKF_OS_LOCKING_OK.
76
75
  Application-supplied synchronization primitives (CreateMutex, DestroyMutex, LockMutex, UnlockMutex) are not supported.
@@ -78,7 +77,7 @@ Application-supplied synchronization primitives (CreateMutex, DestroyMutex, Lock
78
77
 
79
78
  == Compiling for Windows
80
79
 
81
- The pkcs11 source gem can be built on Windows (with help of the RubyInstaller's DevKit[http://rubyinstaller.org/add-ons/devkit/] ) .
80
+ The pkcs11 source gem can be built on Windows (with help of the RubyInstaller's DevKit[http://rubyinstaller.org/add-ons/devkit] ) .
82
81
  Use
83
82
 
84
83
  $ gem install pkcs11 --platform=ruby
@@ -96,9 +95,7 @@ If everything works, there should be some files kind of pkcs11-VERSION-ARCH-ming
96
95
 
97
96
  == ToDo
98
97
 
99
- * encoding support for Ruby 1.9+
100
98
  * support for proprietary extensions of other vendors
101
- * full support for PKCS#11 v2.40
102
99
 
103
100
  == Development Status
104
101
 
data/Rakefile CHANGED
@@ -28,13 +28,12 @@ hoe = Hoe.spec 'pkcs11' do
28
28
  developer('Ryosuke Kutsuna', 'ryosuke@deer-n-horse.jp')
29
29
  developer('GOTOU Yuuzou', 'gotoyuzo@notwork.org')
30
30
  developer('Lars Kanis', 'kanis@comcard.de')
31
- extra_dev_deps << ['yard', '>= 0.6']
31
+ extra_dev_deps << ['yard', '~> 0.6']
32
32
  extra_dev_deps << ['rake-compiler', '~> 1.0']
33
33
  extra_dev_deps << ['rake-compiler-dock', '~> 0.6.2']
34
34
  extra_dev_deps << ['minitest', '~> 5.7']
35
35
  extra_dev_deps << ['hoe-bundler', '~> 1.0']
36
36
 
37
- self.urls = ['http://github.com/larskanis/pkcs11']
38
37
  self.summary = 'PKCS#11 binding for Ruby'
39
38
  self.description = 'This module allows Ruby programs to interface with "RSA Security Inc. PKCS #11 Cryptographic Token Interface (Cryptoki)".'
40
39
 
@@ -43,7 +42,7 @@ hoe = Hoe.spec 'pkcs11' do
43
42
  spec_extras[:extensions] = 'ext/extconf.rb'
44
43
  spec_extras[:files] = `git ls-files`.split("\n").reject{|f| f=~/^pkcs11_/ }
45
44
  spec_extras[:files] += GENERATED_FILES
46
- spec_extras[:has_rdoc] = 'yard'
45
+ spec_extras[:required_ruby_version] = '>= 2.2.0'
47
46
  self.rdoc_locations << "http://www.rubydoc.info/gems/pkcs11"
48
47
  end
49
48
 
@@ -100,13 +99,13 @@ task :docs_of_vendor_extensions do
100
99
  end
101
100
 
102
101
  desc "Generate static HTML documentation with YARD"
103
- task :yardoc=>['ext/pk11_struct.doc', :docs_of_vendor_extensions] do
102
+ task yardoc: ['ext/pk11_struct.doc', :docs_of_vendor_extensions] do
104
103
  luna_docs = "pkcs11_luna/lib/**/*.rb pkcs11_luna/ext/*.c pkcs11_luna/ext/*.doc"
105
104
  sh "yardoc --title \"PKCS#11/Ruby Interface\" --no-private lib/**/*.rb ext/*.c ext/*.doc pkcs11_protect_server/lib/**/*.rb pkcs11_protect_server/ext/*.c pkcs11_protect_server/ext/*.doc #{luna_docs} - pkcs11_protect_server/README_PROTECT_SERVER.rdoc pkcs11_luna/README_LUNA.rdoc"
106
105
  end
107
106
 
108
107
  desc "Publish YARD to wherever you want."
109
- task :publish_yard => [:yardoc] do
108
+ task publish_yard: [:yardoc] do
110
109
  rdoc_locations = hoe.rdoc_locations
111
110
  warn "no rdoc_location values" if rdoc_locations.empty?
112
111
  rdoc_locations.each do |dest|
@@ -2,6 +2,4 @@ require "mkmf"
2
2
 
3
3
  basedir = File.dirname(__FILE__)
4
4
  $CPPFLAGS += " -I \"#{basedir}/include\""
5
- have_func("rb_str_set_len")
6
- have_func("rb_thread_call_without_gvl")
7
5
  create_makefile("pkcs11_ext");
@@ -111,20 +111,26 @@ class StructParser
111
111
  end
112
112
  # find string attributes belonging together
113
113
  struct.attrs.select{|attr| ['CK_BYTE_PTR', 'CK_VOID_PTR', 'CK_UTF8CHAR_PTR', 'CK_CHAR_PTR'].include?(attr.type) }.each do |attr|
114
+ enco = case attr.type
115
+ when 'CK_UTF8CHAR_PTR' then 'utf8'
116
+ when 'CK_CHAR_PTR' then 'usascii'
117
+ when 'CK_BYTE_PTR', 'CK_VOID_PTR' then 'ascii8bit'
118
+ else raise "unexpected type #{attr.type.inspect}"
119
+ end
114
120
  if len_attr=struct.attr_by_sign("CK_ULONG #{attr.name.gsub(/^p([A-Z])/){ "ul"+$1 }}Len")
115
- fd_impl.puts "PKCS11_IMPLEMENT_STRING_PTR_LEN_ACCESSOR(#{struct.name}, #{attr.name}, #{len_attr.name});"
121
+ fd_impl.puts "PKCS11_IMPLEMENT_STRING_PTR_LEN_ACCESSOR(#{struct.name}, #{attr.name}, #{len_attr.name}, #{enco});"
116
122
  fd_def.puts "PKCS11_DEFINE_MEMBER(#{struct.name}, #{attr.name});"
117
- fd_doc.puts"# @return [String, nil] accessor for #{attr.name} and #{len_attr.name}\nattr_accessor :#{attr.name}"
123
+ fd_doc.puts"# @return [#{enco.upcase}-String, nil] accessor for #{attr.name} and #{len_attr.name}\nattr_accessor :#{attr.name}"
118
124
  len_attr.mark = true
119
125
  elsif attr.name=='pData' && (len_attr = struct.attr_by_sign("CK_ULONG length") || struct.attr_by_sign("CK_ULONG ulLen"))
120
- fd_impl.puts "PKCS11_IMPLEMENT_STRING_PTR_LEN_ACCESSOR(#{struct.name}, #{attr.name}, #{len_attr.name});"
126
+ fd_impl.puts "PKCS11_IMPLEMENT_STRING_PTR_LEN_ACCESSOR(#{struct.name}, #{attr.name}, #{len_attr.name}, #{enco});"
121
127
  fd_def.puts "PKCS11_DEFINE_MEMBER(#{struct.name}, #{attr.name});"
122
- fd_doc.puts"# @return [String, nil] accessor for #{attr.name} and #{len_attr.name}\nattr_accessor :#{attr.name}"
128
+ fd_doc.puts"# @return [#{enco.upcase}-String, nil] accessor for #{attr.name} and #{len_attr.name}\nattr_accessor :#{attr.name}"
123
129
  len_attr.mark = true
124
130
  else
125
- fd_impl.puts "PKCS11_IMPLEMENT_STRING_PTR_ACCESSOR(#{struct.name}, #{attr.name});"
131
+ fd_impl.puts "PKCS11_IMPLEMENT_STRING_PTR_ACCESSOR(#{struct.name}, #{attr.name}, #{enco});"
126
132
  fd_def.puts "PKCS11_DEFINE_MEMBER(#{struct.name}, #{attr.name});"
127
- fd_doc.puts"# @return [String, nil] accessor for #{attr.name}\nattr_accessor :#{attr.name}"
133
+ fd_doc.puts"# @return [#{enco.upcase}-String, nil] accessor for #{attr.name}\nattr_accessor :#{attr.name}"
128
134
  end
129
135
  attr.mark = true
130
136
  end
@@ -133,11 +139,16 @@ class StructParser
133
139
  struct.attrs.reject{|a| a.mark }.each do |attr|
134
140
  if attr.qual
135
141
  # Attributes with qualifier
142
+ enco = case attr.type
143
+ when 'CK_BYTE' then 'ascii8bit'
144
+ when 'CK_UTF8CHAR' then 'utf8'
145
+ when 'CK_CHAR' then 'usascii'
146
+ end
136
147
  case attr.type
137
148
  when 'CK_BYTE', 'CK_UTF8CHAR', 'CK_CHAR'
138
- fd_impl.puts "PKCS11_IMPLEMENT_STRING_ACCESSOR(#{struct.name}, #{attr.name});"
149
+ fd_impl.puts "PKCS11_IMPLEMENT_STRING_ACCESSOR(#{struct.name}, #{attr.name}, #{enco});"
139
150
  fd_def.puts "PKCS11_DEFINE_MEMBER(#{struct.name}, #{attr.name});"
140
- fd_doc.puts"# @return [String] accessor for #{attr.name} (max #{attr.qual} bytes)\nattr_accessor :#{attr.name}"
151
+ fd_doc.puts"# @return [#{enco.upcase}-String] accessor for #{attr.name} (max #{attr.qual} bytes)\nattr_accessor :#{attr.name}"
141
152
  else
142
153
  fd_impl.puts "/* unimplemented attr #{attr.type} #{attr.name} #{attr.qual} */"
143
154
  fd_def.puts "/* unimplemented attr #{attr.type} #{attr.name} #{attr.qual} */"
@@ -26,11 +26,9 @@ fd_decl.puts <<-EOT
26
26
  #ifndef #{options.decl.gsub(/[^\w]/, "_").upcase}
27
27
  #define #{options.decl.gsub(/[^\w]/, "_").upcase}
28
28
  #include "pk11.h"
29
- #ifdef HAVE_RB_THREAD_CALL_WITHOUT_GVL
30
29
  EOT
31
30
  fd_impl.puts <<-EOT
32
31
  #include #{File.basename(options.decl).inspect}
33
- #ifdef HAVE_RB_THREAD_CALL_WITHOUT_GVL
34
32
  EOT
35
33
  ARGV.each do |file_h|
36
34
  c_src = IO.read(file_h)
@@ -61,12 +59,8 @@ ARGV.each do |file_h|
61
59
  EOT
62
60
  end
63
61
  end
64
- fd_impl.puts <<-EOT
65
- #endif
66
- EOT
67
62
  fd_decl.puts <<-EOT
68
63
  #endif
69
- #endif
70
64
  EOT
71
65
  end
72
66
  end
data/ext/pk11.c CHANGED
@@ -39,11 +39,6 @@ static VALUE aCK_MECHANISM_members;
39
39
 
40
40
  VALUE pkcs11_return_value_to_class(CK_RV, VALUE);
41
41
 
42
- #if defined(HAVE_RB_THREAD_CALL_WITHOUT_GVL)
43
- extern void *rb_thread_call_without_gvl(void *(*func)(void *), void *data1,
44
- rb_unblock_function_t *ubf, void *data2);
45
- #endif
46
-
47
42
  static void
48
43
  pkcs11_raise(VALUE self, CK_RV rv)
49
44
  {
@@ -67,21 +62,14 @@ typedef struct {
67
62
  if (!sval) rb_raise(ePKCS11Error, #name " is not supported."); \
68
63
  }
69
64
 
70
- #ifdef HAVE_RB_THREAD_CALL_WITHOUT_GVL
71
- #define CallFunction(name, func, rv, ...) \
72
- { \
73
- struct tbr_##name##_params params = { \
74
- func, {__VA_ARGS__}, CKR_FUNCTION_FAILED \
75
- }; \
76
- rb_thread_call_without_gvl(tbf_##name, &params, RUBY_UBF_PROCESS, NULL); \
77
- rv = params.retval; \
78
- }
79
-
80
- #else
81
- #define CallFunction(name, func, rv, ...) \
82
- rv = func(__VA_ARGS__)
83
-
84
- #endif
65
+ #define CallFunction(name, func, rv, ...) \
66
+ { \
67
+ struct tbr_##name##_params params = { \
68
+ func, {__VA_ARGS__}, CKR_FUNCTION_FAILED \
69
+ }; \
70
+ rb_thread_call_without_gvl(tbf_##name, &params, RUBY_UBF_PROCESS, NULL); \
71
+ rv = params.retval; \
72
+ }
85
73
 
86
74
  static void
87
75
  pkcs11_ctx_unload_library(pkcs11_ctx *ctx)
@@ -1476,6 +1464,13 @@ ck_attr_value(VALUE self)
1476
1464
  if (attr->ulValueLen == sizeof(CK_ULONG))
1477
1465
  return ULONG2NUM(*(CK_ULONG_PTR)(attr->pValue));
1478
1466
  break;
1467
+ case CKA_LABEL:
1468
+ case CKA_APPLICATION:
1469
+ case CKA_URL:
1470
+ case CKA_CHAR_SETS:
1471
+ case CKA_ENCODING_METHODS:
1472
+ case CKA_MIME_TYPES:
1473
+ return rb_enc_str_new(attr->pValue, attr->ulValueLen, rb_utf8_encoding());
1479
1474
  }
1480
1475
  return rb_str_new(attr->pValue, attr->ulValueLen);
1481
1476
  }
@@ -1544,8 +1539,8 @@ cCK_MECHANISM_set_pParameter(VALUE self, VALUE value)
1544
1539
  m->ulParameterLen = RSTRING_LEN(value);
1545
1540
  break;
1546
1541
  case T_DATA:
1547
- m->pParameter = DATA_PTR(value);
1548
1542
  m->ulParameterLen = NUM2LONG(rb_const_get(rb_funcall(value, rb_intern("class"), 0), rb_intern("SIZEOF_STRUCT")));
1543
+ m->pParameter = DATA_PTR(value);
1549
1544
  break;
1550
1545
  default:
1551
1546
  rb_raise(rb_eArgError, "invalid argument");
data/ext/pk11.h CHANGED
@@ -1,28 +1,13 @@
1
1
  #ifndef RUBY_PK11_H
2
2
  #define RUBY_PK11_H
3
3
  #include <ruby.h>
4
+ #include <ruby/thread.h>
5
+ #include <ruby/encoding.h>
4
6
 
5
7
  #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
6
8
  #define compile_for_windows
7
9
  #endif
8
10
 
9
- #if !defined(RARRAY_LEN)
10
- # define RARRAY_LEN(ary) (RARRAY(ary)->len)
11
- #endif
12
- #if !defined(RSTRING_LEN)
13
- # define RSTRING_LEN(str) (RSTRING(str)->len)
14
- #endif
15
- #if !defined(RSTRING_PTR)
16
- # define RSTRING_PTR(str) (RSTRING(str)->ptr)
17
- #endif
18
-
19
- #ifndef HAVE_RB_STR_SET_LEN
20
- #define rb_str_set_len(str, length) do { \
21
- RSTRING(str)->ptr[length] = 0; \
22
- RSTRING(str)->len = length; \
23
- } while(0)
24
- #endif
25
-
26
11
  void Init_pkcs11_ext();
27
12
  void Init_pkcs11_const(VALUE, VALUE);
28
13
 
@@ -19,11 +19,11 @@ def to_s; end
19
19
  def members; end
20
20
  # @return [PKCS11::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::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::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::CK_SESSION_INFO < PKCS11::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::CK_MECHANISM_INFO < PKCS11::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
@@ -221,9 +221,9 @@ SIZEOF_STRUCT=Integer
221
221
  def to_s; end
222
222
  # @return [Array<String>] Attributes of this struct
223
223
  def members; end
224
- # @return [String, nil] accessor for pOtherInfo and ulOtherInfoLen
224
+ # @return [ASCII8BIT-String, nil] accessor for pOtherInfo and ulOtherInfoLen
225
225
  attr_accessor :pOtherInfo
226
- # @return [String, nil] accessor for pPublicData and ulPublicDataLen
226
+ # @return [ASCII8BIT-String, nil] accessor for pPublicData and ulPublicDataLen
227
227
  attr_accessor :pPublicData
228
228
  # @return [Integer] accessor for kdf (CK_ULONG)
229
229
  attr_accessor :kdf
@@ -235,11 +235,11 @@ SIZEOF_STRUCT=Integer
235
235
  def to_s; end
236
236
  # @return [Array<String>] Attributes of this struct
237
237
  def members; end
238
- # @return [String, nil] accessor for pOtherInfo and ulOtherInfoLen
238
+ # @return [ASCII8BIT-String, nil] accessor for pOtherInfo and ulOtherInfoLen
239
239
  attr_accessor :pOtherInfo
240
- # @return [String, nil] accessor for pPublicData and ulPublicDataLen
240
+ # @return [ASCII8BIT-String, nil] accessor for pPublicData and ulPublicDataLen
241
241
  attr_accessor :pPublicData
242
- # @return [String, nil] accessor for pPublicData2
242
+ # @return [ASCII8BIT-String, nil] accessor for pPublicData2
243
243
  attr_accessor :pPublicData2
244
244
  # @return [Integer] accessor for kdf (CK_ULONG)
245
245
  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
@@ -281,11 +281,11 @@ SIZEOF_STRUCT=Integer
281
281
  def to_s; end
282
282
  # @return [Array<String>] Attributes of this struct
283
283
  def members; end
284
- # @return [String, nil] accessor for pRandomA
284
+ # @return [ASCII8BIT-String, nil] accessor for pRandomA
285
285
  attr_accessor :pRandomA
286
- # @return [String, nil] accessor for pRandomB
286
+ # @return [ASCII8BIT-String, nil] accessor for pRandomB
287
287
  attr_accessor :pRandomB
288
- # @return [String, nil] accessor for pPublicData and ulPublicDataLen
288
+ # @return [ASCII8BIT-String, nil] accessor for pPublicData and ulPublicDataLen
289
289
  attr_accessor :pPublicData
290
290
  # @return [Boolean] Bool value
291
291
  attr_accessor :isSender
@@ -301,7 +301,7 @@ def to_s; end
301
301
  def members; end
302
302
  # @return [Integer] accessor for ulEffectiveBits (CK_ULONG)
303
303
  attr_accessor :ulEffectiveBits
304
- # @return [String] accessor for iv (max 8 bytes)
304
+ # @return [ASCII8BIT-String] accessor for iv (max 8 bytes)
305
305
  attr_accessor :iv
306
306
  end
307
307
  class PKCS11::CK_RC2_MAC_GENERAL_PARAMS < PKCS11::CStruct
@@ -335,7 +335,7 @@ SIZEOF_STRUCT=Integer
335
335
  def to_s; end
336
336
  # @return [Array<String>] Attributes of this struct
337
337
  def members; end
338
- # @return [String, nil] accessor for pIv and ulIvLen
338
+ # @return [ASCII8BIT-String, nil] accessor for pIv and ulIvLen
339
339
  attr_accessor :pIv
340
340
  # @return [Integer] accessor for ulWordsize (CK_ULONG)
341
341
  attr_accessor :ulWordsize
@@ -363,9 +363,9 @@ SIZEOF_STRUCT=Integer
363
363
  def to_s; end
364
364
  # @return [Array<String>] Attributes of this struct
365
365
  def members; end
366
- # @return [String, nil] accessor for pData and length
366
+ # @return [ASCII8BIT-String, nil] accessor for pData and length
367
367
  attr_accessor :pData
368
- # @return [String] accessor for iv (max 8 bytes)
368
+ # @return [ASCII8BIT-String] accessor for iv (max 8 bytes)
369
369
  attr_accessor :iv
370
370
  end
371
371
  class PKCS11::CK_AES_CBC_ENCRYPT_DATA_PARAMS < PKCS11::CStruct
@@ -375,9 +375,9 @@ SIZEOF_STRUCT=Integer
375
375
  def to_s; end
376
376
  # @return [Array<String>] Attributes of this struct
377
377
  def members; end
378
- # @return [String, nil] accessor for pData and length
378
+ # @return [ASCII8BIT-String, nil] accessor for pData and length
379
379
  attr_accessor :pData
380
- # @return [String] accessor for iv (max 16 bytes)
380
+ # @return [ASCII8BIT-String] accessor for iv (max 16 bytes)
381
381
  attr_accessor :iv
382
382
  end
383
383
  class PKCS11::CK_SKIPJACK_PRIVATE_WRAP_PARAMS < PKCS11::CStruct
@@ -387,17 +387,17 @@ SIZEOF_STRUCT=Integer
387
387
  def to_s; end
388
388
  # @return [Array<String>] Attributes of this struct
389
389
  def members; end
390
- # @return [String, nil] accessor for pPassword and ulPasswordLen
390
+ # @return [ASCII8BIT-String, nil] accessor for pPassword and ulPasswordLen
391
391
  attr_accessor :pPassword
392
- # @return [String, nil] accessor for pPublicData and ulPublicDataLen
392
+ # @return [ASCII8BIT-String, nil] accessor for pPublicData and ulPublicDataLen
393
393
  attr_accessor :pPublicData
394
- # @return [String, nil] accessor for pRandomA
394
+ # @return [ASCII8BIT-String, nil] accessor for pRandomA
395
395
  attr_accessor :pRandomA
396
- # @return [String, nil] accessor for pPrimeP
396
+ # @return [ASCII8BIT-String, nil] accessor for pPrimeP
397
397
  attr_accessor :pPrimeP
398
- # @return [String, nil] accessor for pBaseG
398
+ # @return [ASCII8BIT-String, nil] accessor for pBaseG
399
399
  attr_accessor :pBaseG
400
- # @return [String, nil] accessor for pSubprimeQ
400
+ # @return [ASCII8BIT-String, nil] accessor for pSubprimeQ
401
401
  attr_accessor :pSubprimeQ
402
402
  # @return [Integer] accessor for ulPAndGLen (CK_ULONG)
403
403
  attr_accessor :ulPAndGLen
@@ -413,19 +413,19 @@ SIZEOF_STRUCT=Integer
413
413
  def to_s; end
414
414
  # @return [Array<String>] Attributes of this struct
415
415
  def members; end
416
- # @return [String, nil] accessor for pOldWrappedX and ulOldWrappedXLen
416
+ # @return [ASCII8BIT-String, nil] accessor for pOldWrappedX and ulOldWrappedXLen
417
417
  attr_accessor :pOldWrappedX
418
- # @return [String, nil] accessor for pOldPassword and ulOldPasswordLen
418
+ # @return [ASCII8BIT-String, nil] accessor for pOldPassword and ulOldPasswordLen
419
419
  attr_accessor :pOldPassword
420
- # @return [String, nil] accessor for pOldPublicData and ulOldPublicDataLen
420
+ # @return [ASCII8BIT-String, nil] accessor for pOldPublicData and ulOldPublicDataLen
421
421
  attr_accessor :pOldPublicData
422
- # @return [String, nil] accessor for pOldRandomA
422
+ # @return [ASCII8BIT-String, nil] accessor for pOldRandomA
423
423
  attr_accessor :pOldRandomA
424
- # @return [String, nil] accessor for pNewPassword and ulNewPasswordLen
424
+ # @return [ASCII8BIT-String, nil] accessor for pNewPassword and ulNewPasswordLen
425
425
  attr_accessor :pNewPassword
426
- # @return [String, nil] accessor for pNewPublicData and ulNewPublicDataLen
426
+ # @return [ASCII8BIT-String, nil] accessor for pNewPublicData and ulNewPublicDataLen
427
427
  attr_accessor :pNewPublicData
428
- # @return [String, nil] accessor for pNewRandomA
428
+ # @return [ASCII8BIT-String, nil] accessor for pNewRandomA
429
429
  attr_accessor :pNewRandomA
430
430
  # @return [Integer] accessor for ulOldRandomLen (CK_ULONG)
431
431
  attr_accessor :ulOldRandomLen
@@ -439,11 +439,11 @@ SIZEOF_STRUCT=Integer
439
439
  def to_s; end
440
440
  # @return [Array<String>] Attributes of this struct
441
441
  def members; end
442
- # @return [String, nil] accessor for pInitVector
442
+ # @return [ASCII8BIT-String, nil] accessor for pInitVector
443
443
  attr_accessor :pInitVector
444
- # @return [String, nil] accessor for pPassword and ulPasswordLen
444
+ # @return [UTF8-String, nil] accessor for pPassword and ulPasswordLen
445
445
  attr_accessor :pPassword
446
- # @return [String, nil] accessor for pSalt and ulSaltLen
446
+ # @return [ASCII8BIT-String, nil] accessor for pSalt and ulSaltLen
447
447
  attr_accessor :pSalt
448
448
  # @return [Integer] accessor for ulIteration (CK_ULONG)
449
449
  attr_accessor :ulIteration
@@ -455,7 +455,7 @@ SIZEOF_STRUCT=Integer
455
455
  def to_s; end
456
456
  # @return [Array<String>] Attributes of this struct
457
457
  def members; end
458
- # @return [String, nil] accessor for pX and ulXLen
458
+ # @return [ASCII8BIT-String, nil] accessor for pX and ulXLen
459
459
  attr_accessor :pX
460
460
  # @return [Integer] accessor for bBC (CK_BYTE)
461
461
  attr_accessor :bBC
@@ -467,9 +467,9 @@ SIZEOF_STRUCT=Integer
467
467
  def to_s; end
468
468
  # @return [Array<String>] Attributes of this struct
469
469
  def members; end
470
- # @return [String, nil] accessor for pClientRandom and ulClientRandomLen
470
+ # @return [ASCII8BIT-String, nil] accessor for pClientRandom and ulClientRandomLen
471
471
  attr_accessor :pClientRandom
472
- # @return [String, nil] accessor for pServerRandom and ulServerRandomLen
472
+ # @return [ASCII8BIT-String, nil] accessor for pServerRandom and ulServerRandomLen
473
473
  attr_accessor :pServerRandom
474
474
  end
475
475
  class PKCS11::CK_SSL3_MASTER_KEY_DERIVE_PARAMS < PKCS11::CStruct
@@ -491,9 +491,9 @@ SIZEOF_STRUCT=Integer
491
491
  def to_s; end
492
492
  # @return [Array<String>] Attributes of this struct
493
493
  def members; end
494
- # @return [String, nil] accessor for pIVClient
494
+ # @return [ASCII8BIT-String, nil] accessor for pIVClient
495
495
  attr_accessor :pIVClient
496
- # @return [String, nil] accessor for pIVServer
496
+ # @return [ASCII8BIT-String, nil] accessor for pIVServer
497
497
  attr_accessor :pIVServer
498
498
  # @return [Integer, PKCS11::Object] Object handle (CK_ULONG)
499
499
  attr_accessor :hClientMacSecret
@@ -531,9 +531,9 @@ SIZEOF_STRUCT=Integer
531
531
  def to_s; end
532
532
  # @return [Array<String>] Attributes of this struct
533
533
  def members; end
534
- # @return [String, nil] accessor for pClientRandom and ulClientRandomLen
534
+ # @return [ASCII8BIT-String, nil] accessor for pClientRandom and ulClientRandomLen
535
535
  attr_accessor :pClientRandom
536
- # @return [String, nil] accessor for pServerRandom and ulServerRandomLen
536
+ # @return [ASCII8BIT-String, nil] accessor for pServerRandom and ulServerRandomLen
537
537
  attr_accessor :pServerRandom
538
538
  end
539
539
  class PKCS11::CK_WTLS_MASTER_KEY_DERIVE_PARAMS < PKCS11::CStruct
@@ -543,7 +543,7 @@ SIZEOF_STRUCT=Integer
543
543
  def to_s; end
544
544
  # @return [Array<String>] Attributes of this struct
545
545
  def members; end
546
- # @return [String, nil] accessor for pVersion
546
+ # @return [ASCII8BIT-String, nil] accessor for pVersion
547
547
  attr_accessor :pVersion
548
548
  # @return [Integer] accessor for DigestMechanism (CK_ULONG)
549
549
  attr_accessor :DigestMechanism
@@ -557,11 +557,11 @@ SIZEOF_STRUCT=Integer
557
557
  def to_s; end
558
558
  # @return [Array<String>] Attributes of this struct
559
559
  def members; end
560
- # @return [String, nil] accessor for pSeed and ulSeedLen
560
+ # @return [ASCII8BIT-String, nil] accessor for pSeed and ulSeedLen
561
561
  attr_accessor :pSeed
562
- # @return [String, nil] accessor for pLabel and ulLabelLen
562
+ # @return [ASCII8BIT-String, nil] accessor for pLabel and ulLabelLen
563
563
  attr_accessor :pLabel
564
- # @return [String, nil] accessor for pOutput
564
+ # @return [ASCII8BIT-String, nil] accessor for pOutput
565
565
  attr_accessor :pOutput
566
566
  # @return [Integer] accessor for DigestMechanism (CK_ULONG)
567
567
  attr_accessor :DigestMechanism
@@ -575,7 +575,7 @@ SIZEOF_STRUCT=Integer
575
575
  def to_s; end
576
576
  # @return [Array<String>] Attributes of this struct
577
577
  def members; end
578
- # @return [String, nil] accessor for pIV
578
+ # @return [ASCII8BIT-String, nil] accessor for pIV
579
579
  attr_accessor :pIV
580
580
  # @return [Integer, PKCS11::Object] Object handle (CK_ULONG)
581
581
  attr_accessor :hMacSecret
@@ -613,11 +613,11 @@ 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 pContentType
616
+ # @return [UTF8-String, nil] accessor for pContentType
617
617
  attr_accessor :pContentType
618
- # @return [String, nil] accessor for pRequestedAttributes and ulRequestedAttributesLen
618
+ # @return [ASCII8BIT-String, nil] accessor for pRequestedAttributes and ulRequestedAttributesLen
619
619
  attr_accessor :pRequestedAttributes
620
- # @return [String, nil] accessor for pRequiredAttributes and ulRequiredAttributesLen
620
+ # @return [ASCII8BIT-String, nil] accessor for pRequiredAttributes and ulRequiredAttributesLen
621
621
  attr_accessor :pRequiredAttributes
622
622
  # @return [Integer, PKCS11::Object] Object handle (CK_ULONG)
623
623
  attr_accessor :certificateHandle
@@ -633,7 +633,7 @@ SIZEOF_STRUCT=Integer
633
633
  def to_s; end
634
634
  # @return [Array<String>] Attributes of this struct
635
635
  def members; end
636
- # @return [String, nil] accessor for pData and ulLen
636
+ # @return [ASCII8BIT-String, nil] accessor for pData and ulLen
637
637
  attr_accessor :pData
638
638
  end
639
639
  class PKCS11::CK_PKCS5_PBKD2_PARAMS < PKCS11::CStruct
@@ -643,11 +643,11 @@ SIZEOF_STRUCT=Integer
643
643
  def to_s; end
644
644
  # @return [Array<String>] Attributes of this struct
645
645
  def members; end
646
- # @return [String, nil] accessor for pSaltSourceData and ulSaltSourceDataLen
646
+ # @return [ASCII8BIT-String, nil] accessor for pSaltSourceData and ulSaltSourceDataLen
647
647
  attr_accessor :pSaltSourceData
648
- # @return [String, nil] accessor for pPrfData and ulPrfDataLen
648
+ # @return [ASCII8BIT-String, nil] accessor for pPrfData and ulPrfDataLen
649
649
  attr_accessor :pPrfData
650
- # @return [String, nil] accessor for pPassword
650
+ # @return [UTF8-String, nil] accessor for pPassword
651
651
  attr_accessor :pPassword
652
652
  # @return [Integer] accessor for saltSource (CK_ULONG)
653
653
  attr_accessor :saltSource
@@ -665,7 +665,7 @@ SIZEOF_STRUCT=Integer
665
665
  def to_s; end
666
666
  # @return [Array<String>] Attributes of this struct
667
667
  def members; end
668
- # @return [String, nil] accessor for pValue and ulValueLen
668
+ # @return [ASCII8BIT-String, nil] accessor for pValue and ulValueLen
669
669
  attr_accessor :pValue
670
670
  # @return [Integer] accessor for type (CK_ULONG)
671
671
  attr_accessor :type
@@ -697,7 +697,7 @@ SIZEOF_STRUCT=Integer
697
697
  def to_s; end
698
698
  # @return [Array<String>] Attributes of this struct
699
699
  def members; end
700
- # @return [String, nil] accessor for pSeed and ulSeedLen
700
+ # @return [ASCII8BIT-String, nil] accessor for pSeed and ulSeedLen
701
701
  attr_accessor :pSeed
702
702
  # @return [PKCS11::CK_MECHANISM, nil] pointer to struct
703
703
  attr_accessor :pMechanism
@@ -713,7 +713,7 @@ def to_s; end
713
713
  def members; end
714
714
  # @return [Integer] accessor for ulCounterBits (CK_ULONG)
715
715
  attr_accessor :ulCounterBits
716
- # @return [String] accessor for cb (max 16 bytes)
716
+ # @return [ASCII8BIT-String] accessor for cb (max 16 bytes)
717
717
  attr_accessor :cb
718
718
  end
719
719
  class PKCS11::CK_GCM_PARAMS < PKCS11::CStruct
@@ -723,9 +723,9 @@ SIZEOF_STRUCT=Integer
723
723
  def to_s; end
724
724
  # @return [Array<String>] Attributes of this struct
725
725
  def members; end
726
- # @return [String, nil] accessor for pIv and ulIvLen
726
+ # @return [ASCII8BIT-String, nil] accessor for pIv and ulIvLen
727
727
  attr_accessor :pIv
728
- # @return [String, nil] accessor for pAAD and ulAADLen
728
+ # @return [ASCII8BIT-String, nil] accessor for pAAD and ulAADLen
729
729
  attr_accessor :pAAD
730
730
  # @return [Integer] accessor for ulIvBits (CK_ULONG)
731
731
  attr_accessor :ulIvBits
@@ -739,9 +739,9 @@ SIZEOF_STRUCT=Integer
739
739
  def to_s; end
740
740
  # @return [Array<String>] Attributes of this struct
741
741
  def members; end
742
- # @return [String, nil] accessor for pNonce and ulNonceLen
742
+ # @return [ASCII8BIT-String, nil] accessor for pNonce and ulNonceLen
743
743
  attr_accessor :pNonce
744
- # @return [String, nil] accessor for pAAD and ulAADLen
744
+ # @return [ASCII8BIT-String, nil] accessor for pAAD and ulAADLen
745
745
  attr_accessor :pAAD
746
746
  # @return [Integer] accessor for ulDataLen (CK_ULONG)
747
747
  attr_accessor :ulDataLen
@@ -755,9 +755,9 @@ SIZEOF_STRUCT=Integer
755
755
  def to_s; end
756
756
  # @return [Array<String>] Attributes of this struct
757
757
  def members; end
758
- # @return [String, nil] accessor for pData and length
758
+ # @return [ASCII8BIT-String, nil] accessor for pData and length
759
759
  attr_accessor :pData
760
- # @return [String] accessor for iv (max 16 bytes)
760
+ # @return [ASCII8BIT-String] accessor for iv (max 16 bytes)
761
761
  attr_accessor :iv
762
762
  end
763
763
  class PKCS11::CK_ARIA_CBC_ENCRYPT_DATA_PARAMS < PKCS11::CStruct
@@ -767,9 +767,9 @@ SIZEOF_STRUCT=Integer
767
767
  def to_s; end
768
768
  # @return [Array<String>] Attributes of this struct
769
769
  def members; end
770
- # @return [String, nil] accessor for pData and length
770
+ # @return [ASCII8BIT-String, nil] accessor for pData and length
771
771
  attr_accessor :pData
772
- # @return [String] accessor for iv (max 16 bytes)
772
+ # @return [ASCII8BIT-String] accessor for iv (max 16 bytes)
773
773
  attr_accessor :iv
774
774
  end
775
775
  class PKCS11::CK_DSA_PARAMETER_GEN_PARAM < PKCS11::CStruct
@@ -779,7 +779,7 @@ SIZEOF_STRUCT=Integer
779
779
  def to_s; end
780
780
  # @return [Array<String>] Attributes of this struct
781
781
  def members; end
782
- # @return [String, nil] accessor for pSeed and ulSeedLen
782
+ # @return [ASCII8BIT-String, nil] accessor for pSeed and ulSeedLen
783
783
  attr_accessor :pSeed
784
784
  # @return [Integer] accessor for hash (CK_ULONG)
785
785
  attr_accessor :hash
@@ -793,7 +793,7 @@ SIZEOF_STRUCT=Integer
793
793
  def to_s; end
794
794
  # @return [Array<String>] Attributes of this struct
795
795
  def members; end
796
- # @return [String, nil] accessor for pSharedData and ulSharedDataLen
796
+ # @return [ASCII8BIT-String, nil] accessor for pSharedData and ulSharedDataLen
797
797
  attr_accessor :pSharedData
798
798
  # @return [Integer] accessor for ulAESKeyBits (CK_ULONG)
799
799
  attr_accessor :ulAESKeyBits
@@ -855,9 +855,9 @@ SIZEOF_STRUCT=Integer
855
855
  def to_s; end
856
856
  # @return [Array<String>] Attributes of this struct
857
857
  def members; end
858
- # @return [String, nil] accessor for pLabel
858
+ # @return [ASCII8BIT-String, nil] accessor for pLabel
859
859
  attr_accessor :pLabel
860
- # @return [String, nil] accessor for pContextData
860
+ # @return [ASCII8BIT-String, nil] accessor for pContextData
861
861
  attr_accessor :pContextData
862
862
  # @return [Integer] accessor for prfMechanism (CK_ULONG)
863
863
  attr_accessor :prfMechanism
@@ -889,9 +889,9 @@ SIZEOF_STRUCT=Integer
889
889
  def to_s; end
890
890
  # @return [Array<String>] Attributes of this struct
891
891
  def members; end
892
- # @return [String, nil] accessor for pPublicData and ulPublicDataLen
892
+ # @return [ASCII8BIT-String, nil] accessor for pPublicData and ulPublicDataLen
893
893
  attr_accessor :pPublicData
894
- # @return [String, nil] accessor for pUKM and ulUKMLen
894
+ # @return [ASCII8BIT-String, nil] accessor for pUKM and ulUKMLen
895
895
  attr_accessor :pUKM
896
896
  # @return [Integer] accessor for kdf (CK_ULONG)
897
897
  attr_accessor :kdf
@@ -903,9 +903,9 @@ SIZEOF_STRUCT=Integer
903
903
  def to_s; end
904
904
  # @return [Array<String>] Attributes of this struct
905
905
  def members; end
906
- # @return [String, nil] accessor for pWrapOID and ulWrapOIDLen
906
+ # @return [ASCII8BIT-String, nil] accessor for pWrapOID and ulWrapOIDLen
907
907
  attr_accessor :pWrapOID
908
- # @return [String, nil] accessor for pUKM and ulUKMLen
908
+ # @return [ASCII8BIT-String, nil] accessor for pUKM and ulUKMLen
909
909
  attr_accessor :pUKM
910
910
  # @return [Integer, PKCS11::Object] Object handle (CK_ULONG)
911
911
  attr_accessor :hKey