izokatu 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. checksums.yaml +7 -0
  2. checksums.yaml.gz.sig +3 -0
  3. data.tar.gz.sig +2 -0
  4. data/.gitignore +19 -0
  5. data/.rspec +3 -0
  6. data/.rubocop.yml +42 -0
  7. data/.yardopts +1 -0
  8. data/Gemfile +8 -0
  9. data/Gemfile.lock +86 -0
  10. data/LICENSE.txt +21 -0
  11. data/README.md +152 -0
  12. data/Rakefile +8 -0
  13. data/bin/console +15 -0
  14. data/bin/setup +8 -0
  15. data/certs/mongalless.pem +26 -0
  16. data/izokatu.gemspec +47 -0
  17. data/lib/izokatu.rb +423 -0
  18. data/lib/izokatu/action_call_options_selector.rb +214 -0
  19. data/lib/izokatu/action_call_selector.rb +132 -0
  20. data/lib/izokatu/callable.rb +13 -0
  21. data/lib/izokatu/ciphers.rb +18 -0
  22. data/lib/izokatu/decrypter.rb +62 -0
  23. data/lib/izokatu/encrypter.rb +67 -0
  24. data/lib/izokatu/exporter.rb +36 -0
  25. data/lib/izokatu/exporter/file_exporter.rb +36 -0
  26. data/lib/izokatu/exporter/function_exporter.rb +16 -0
  27. data/lib/izokatu/exporter/stdout_exporter.rb +18 -0
  28. data/lib/izokatu/helpers.rb +213 -0
  29. data/lib/izokatu/importer/file_importer.rb +47 -0
  30. data/lib/izokatu/importer/function_importer.rb +36 -0
  31. data/lib/izokatu/izokatu_elements_requires.rb +46 -0
  32. data/lib/izokatu/keys_generator.rb +53 -0
  33. data/lib/izokatu/openssl/private_key/auth/ccm/decrypter.rb +67 -0
  34. data/lib/izokatu/openssl/private_key/auth/ccm/encrypter.rb +56 -0
  35. data/lib/izokatu/openssl/private_key/auth/decrypter.rb +79 -0
  36. data/lib/izokatu/openssl/private_key/auth/encrypter.rb +69 -0
  37. data/lib/izokatu/openssl/private_key/default/decrypter.rb +75 -0
  38. data/lib/izokatu/openssl/private_key/default/encrypter.rb +75 -0
  39. data/lib/izokatu/openssl/public_key/ec/decrypter.rb +105 -0
  40. data/lib/izokatu/openssl/public_key/ec/encrypter.rb +106 -0
  41. data/lib/izokatu/openssl/public_key/ec/keys_generator.rb +77 -0
  42. data/lib/izokatu/openssl/public_key/rsa/decrypter.rb +53 -0
  43. data/lib/izokatu/openssl/public_key/rsa/encrypter.rb +55 -0
  44. data/lib/izokatu/openssl/public_key/rsa/keys_generator.rb +64 -0
  45. data/lib/izokatu/rbnacl/decrypter.rb +42 -0
  46. data/lib/izokatu/rbnacl/encrypter.rb +45 -0
  47. data/lib/izokatu/rbnacl/private_key/decrypter.rb +56 -0
  48. data/lib/izokatu/rbnacl/private_key/encrypter.rb +61 -0
  49. data/lib/izokatu/rbnacl/public_key/decrypter.rb +51 -0
  50. data/lib/izokatu/rbnacl/public_key/encrypter.rb +61 -0
  51. data/lib/izokatu/rbnacl/public_key/keys_generator.rb +33 -0
  52. data/lib/izokatu/version.rb +6 -0
  53. metadata +315 -0
  54. metadata.gz.sig +0 -0
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Izokatu
4
+ # Gem version
5
+ VERSION = '0.1.1'
6
+ end
metadata ADDED
@@ -0,0 +1,315 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: izokatu
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - mongalless
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIEWjCCAsKgAwIBAgIBATANBgkqhkiG9w0BAQsFADArMSkwJwYDVQQDDCBoaXRz
14
+ dGFsa2VyNy9EQz1wcm90b25tYWlsL0RDPWNvbTAeFw0yMDExMjkxMjE5MzJaFw0y
15
+ MTExMjkxMjE5MzJaMCsxKTAnBgNVBAMMIGhpdHN0YWxrZXI3L0RDPXByb3Rvbm1h
16
+ aWwvREM9Y29tMIIBojANBgk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iq
32
+ OX4qrBOJfNT0EG/2+TuRFU+8IsXvLNmrBVeaUa3CFEA4hrWQLQU2/SNxdvpuXal5
33
+ Kc0vOe/EBftWGcQtPCEyE14uImM5gc5JOKJu1nHJkpfoUPbZmDzzObQHQ22GDuwR
34
+ kgsSHaCAYaBtkQ9Lkk1ccZwb1WwpucXBRd2NZrO7c7DJQLAuI3CWS/Iljhow0quq
35
+ rhxIlERIpUf5MM1tTlt/k9LnjYlvAqiDHgIXWKcxJaZ0/fLq9lYgi/FTZhL07L2j
36
+ 5MF2YkFP1yWl6vQ9biw=
37
+ -----END CERTIFICATE-----
38
+ date: 2020-11-29 00:00:00.000000000 Z
39
+ dependencies:
40
+ - !ruby/object:Gem::Dependency
41
+ name: ecies
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: 0.3.0
47
+ type: :runtime
48
+ prerelease: false
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: 0.3.0
54
+ - !ruby/object:Gem::Dependency
55
+ name: openssl
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '2.2'
61
+ type: :runtime
62
+ prerelease: false
63
+ version_requirements: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '2.2'
68
+ - !ruby/object:Gem::Dependency
69
+ name: rake
70
+ requirement: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '13.0'
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: 13.0.1
78
+ type: :runtime
79
+ prerelease: false
80
+ version_requirements: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - "~>"
83
+ - !ruby/object:Gem::Version
84
+ version: '13.0'
85
+ - - ">="
86
+ - !ruby/object:Gem::Version
87
+ version: 13.0.1
88
+ - !ruby/object:Gem::Dependency
89
+ name: rbnacl
90
+ requirement: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - "~>"
93
+ - !ruby/object:Gem::Version
94
+ version: '7.1'
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: 7.1.1
98
+ type: :runtime
99
+ prerelease: false
100
+ version_requirements: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - "~>"
103
+ - !ruby/object:Gem::Version
104
+ version: '7.1'
105
+ - - ">="
106
+ - !ruby/object:Gem::Version
107
+ version: 7.1.1
108
+ - !ruby/object:Gem::Dependency
109
+ name: contracts
110
+ requirement: !ruby/object:Gem::Requirement
111
+ requirements:
112
+ - - "~>"
113
+ - !ruby/object:Gem::Version
114
+ version: 0.14.0
115
+ type: :runtime
116
+ prerelease: false
117
+ version_requirements: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - "~>"
120
+ - !ruby/object:Gem::Version
121
+ version: 0.14.0
122
+ - !ruby/object:Gem::Dependency
123
+ name: bundler-audit
124
+ requirement: !ruby/object:Gem::Requirement
125
+ requirements:
126
+ - - "~>"
127
+ - !ruby/object:Gem::Version
128
+ version: 0.7.0.1
129
+ type: :development
130
+ prerelease: false
131
+ version_requirements: !ruby/object:Gem::Requirement
132
+ requirements:
133
+ - - "~>"
134
+ - !ruby/object:Gem::Version
135
+ version: 0.7.0.1
136
+ - !ruby/object:Gem::Dependency
137
+ name: rspec
138
+ requirement: !ruby/object:Gem::Requirement
139
+ requirements:
140
+ - - "~>"
141
+ - !ruby/object:Gem::Version
142
+ version: '3.9'
143
+ type: :development
144
+ prerelease: false
145
+ version_requirements: !ruby/object:Gem::Requirement
146
+ requirements:
147
+ - - "~>"
148
+ - !ruby/object:Gem::Version
149
+ version: '3.9'
150
+ - !ruby/object:Gem::Dependency
151
+ name: rubocop
152
+ requirement: !ruby/object:Gem::Requirement
153
+ requirements:
154
+ - - "~>"
155
+ - !ruby/object:Gem::Version
156
+ version: 0.89.1
157
+ type: :development
158
+ prerelease: false
159
+ version_requirements: !ruby/object:Gem::Requirement
160
+ requirements:
161
+ - - "~>"
162
+ - !ruby/object:Gem::Version
163
+ version: 0.89.1
164
+ - !ruby/object:Gem::Dependency
165
+ name: rubocop-performance
166
+ requirement: !ruby/object:Gem::Requirement
167
+ requirements:
168
+ - - "~>"
169
+ - !ruby/object:Gem::Version
170
+ version: '1.7'
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: 1.7.1
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: '1.7'
181
+ - - ">="
182
+ - !ruby/object:Gem::Version
183
+ version: 1.7.1
184
+ - !ruby/object:Gem::Dependency
185
+ name: rubocop-rspec
186
+ requirement: !ruby/object:Gem::Requirement
187
+ requirements:
188
+ - - "~>"
189
+ - !ruby/object:Gem::Version
190
+ version: '1.43'
191
+ - - ">="
192
+ - !ruby/object:Gem::Version
193
+ version: 1.43.1
194
+ type: :development
195
+ prerelease: false
196
+ version_requirements: !ruby/object:Gem::Requirement
197
+ requirements:
198
+ - - "~>"
199
+ - !ruby/object:Gem::Version
200
+ version: '1.43'
201
+ - - ">="
202
+ - !ruby/object:Gem::Version
203
+ version: 1.43.1
204
+ - !ruby/object:Gem::Dependency
205
+ name: simplecov
206
+ requirement: !ruby/object:Gem::Requirement
207
+ requirements:
208
+ - - "~>"
209
+ - !ruby/object:Gem::Version
210
+ version: 0.19.1
211
+ type: :development
212
+ prerelease: false
213
+ version_requirements: !ruby/object:Gem::Requirement
214
+ requirements:
215
+ - - "~>"
216
+ - !ruby/object:Gem::Version
217
+ version: 0.19.1
218
+ - !ruby/object:Gem::Dependency
219
+ name: yard
220
+ requirement: !ruby/object:Gem::Requirement
221
+ requirements:
222
+ - - "~>"
223
+ - !ruby/object:Gem::Version
224
+ version: '0.9'
225
+ type: :development
226
+ prerelease: false
227
+ version_requirements: !ruby/object:Gem::Requirement
228
+ requirements:
229
+ - - "~>"
230
+ - !ruby/object:Gem::Version
231
+ version: '0.9'
232
+ description:
233
+ email:
234
+ executables: []
235
+ extensions: []
236
+ extra_rdoc_files:
237
+ - README.md
238
+ files:
239
+ - ".gitignore"
240
+ - ".rspec"
241
+ - ".rubocop.yml"
242
+ - ".yardopts"
243
+ - Gemfile
244
+ - Gemfile.lock
245
+ - LICENSE.txt
246
+ - README.md
247
+ - Rakefile
248
+ - bin/console
249
+ - bin/setup
250
+ - certs/mongalless.pem
251
+ - izokatu.gemspec
252
+ - lib/izokatu.rb
253
+ - lib/izokatu/action_call_options_selector.rb
254
+ - lib/izokatu/action_call_selector.rb
255
+ - lib/izokatu/callable.rb
256
+ - lib/izokatu/ciphers.rb
257
+ - lib/izokatu/decrypter.rb
258
+ - lib/izokatu/encrypter.rb
259
+ - lib/izokatu/exporter.rb
260
+ - lib/izokatu/exporter/file_exporter.rb
261
+ - lib/izokatu/exporter/function_exporter.rb
262
+ - lib/izokatu/exporter/stdout_exporter.rb
263
+ - lib/izokatu/helpers.rb
264
+ - lib/izokatu/importer/file_importer.rb
265
+ - lib/izokatu/importer/function_importer.rb
266
+ - lib/izokatu/izokatu_elements_requires.rb
267
+ - lib/izokatu/keys_generator.rb
268
+ - lib/izokatu/openssl/private_key/auth/ccm/decrypter.rb
269
+ - lib/izokatu/openssl/private_key/auth/ccm/encrypter.rb
270
+ - lib/izokatu/openssl/private_key/auth/decrypter.rb
271
+ - lib/izokatu/openssl/private_key/auth/encrypter.rb
272
+ - lib/izokatu/openssl/private_key/default/decrypter.rb
273
+ - lib/izokatu/openssl/private_key/default/encrypter.rb
274
+ - lib/izokatu/openssl/public_key/ec/decrypter.rb
275
+ - lib/izokatu/openssl/public_key/ec/encrypter.rb
276
+ - lib/izokatu/openssl/public_key/ec/keys_generator.rb
277
+ - lib/izokatu/openssl/public_key/rsa/decrypter.rb
278
+ - lib/izokatu/openssl/public_key/rsa/encrypter.rb
279
+ - lib/izokatu/openssl/public_key/rsa/keys_generator.rb
280
+ - lib/izokatu/rbnacl/decrypter.rb
281
+ - lib/izokatu/rbnacl/encrypter.rb
282
+ - lib/izokatu/rbnacl/private_key/decrypter.rb
283
+ - lib/izokatu/rbnacl/private_key/encrypter.rb
284
+ - lib/izokatu/rbnacl/public_key/decrypter.rb
285
+ - lib/izokatu/rbnacl/public_key/encrypter.rb
286
+ - lib/izokatu/rbnacl/public_key/keys_generator.rb
287
+ - lib/izokatu/version.rb
288
+ homepage: https://gitlab.com/mongalless/izokatu
289
+ licenses:
290
+ - MIT
291
+ metadata:
292
+ documentation_uri: https://www.rubydoc.info/gems/izokatu
293
+ homepage_uri: https://gitlab.com/mongalless/izokatu
294
+ source_code_uri: https://gitlab.com/mongalless/izokatu
295
+ post_install_message:
296
+ rdoc_options: []
297
+ require_paths:
298
+ - lib
299
+ required_ruby_version: !ruby/object:Gem::Requirement
300
+ requirements:
301
+ - - ">="
302
+ - !ruby/object:Gem::Version
303
+ version: 2.7.1
304
+ required_rubygems_version: !ruby/object:Gem::Requirement
305
+ requirements:
306
+ - - ">="
307
+ - !ruby/object:Gem::Version
308
+ version: '0'
309
+ requirements: []
310
+ rubygems_version: 3.1.2
311
+ signing_key:
312
+ specification_version: 4
313
+ summary: Ruby library that provides abstact interface for private-key and public-key
314
+ cryptography using RbNaCl and OpenSSL
315
+ test_files: []
Binary file