roqs 0.1.0 → 0.1.2

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: f19a8901d58a30e6f96bc3a69edd4674c5a2c64bc9acc017b806c6617961c0dd
4
- data.tar.gz: 86a3ad02995a7d908818d11d185510faee8ead854611266737af43fe5f2410b1
3
+ metadata.gz: 8809ffb9f3a72a112d288523aa831f4105281f896ba086352ef28f78a3b0e4f7
4
+ data.tar.gz: 0bb0dbb17f690fde9fb5f373bb80f16ae5940345e27c5d9e63b91116f2756dee
5
5
  SHA512:
6
- metadata.gz: fe26fcb62c00f7622d35d2560b3183fab2d2917b4b90755fd58ffeaedbd4ceda0ca1faf405ed4e84a2baea5ab890ce085760bad4826fda434c7cc29964ab53c6
7
- data.tar.gz: 16a08e37b93c050424969e5a64dce0a780379304cabf1d864bfb91d838a73f74bb4b89aebffa45e7edb44344f3061508bef2e2ec656122dd4718556b3d485544
6
+ metadata.gz: 22885f02b93a848cbc2540717873f1cae4442768428e0bdacfce7dcd33c9f589edbcc6088f7ffe1560f9e7af06fef4c0fa6f5ab2380b87730a77a8ca5a934741
7
+ data.tar.gz: 8c22d2469d8159f502b807f98c360b386419944596e082b757bd18df779ce7084d5acce6ea074f1d81d4876a171e6c279bedac535204af9e90910c1e5ab784d7
data/Dockerfile ADDED
@@ -0,0 +1,11 @@
1
+
2
+ FROM --platform=linux/x86_64 ubuntu:jammy
3
+
4
+ RUN apt-get update && apt-get install -y git curl build-essential software-properties-common gnupg2
5
+
6
+ RUN apt-add-repository -y ppa:rael-gc/rvm && apt-get update && apt-get install -y rvm
7
+ RUN /bin/bash -l -c ". /usr/share/rvm/scripts/rvm && rvm install ruby-3.2.1"
8
+
9
+ WORKDIR /opt
10
+
11
+ CMD ["/bin/bash","--login"]
data/lib/roqs/sig.rb CHANGED
@@ -67,6 +67,7 @@ module Roqs
67
67
 
68
68
  rv = SIGWrapper.OQS_SIG_verify(@struct, pMessage, message.length, pSignature, signature.length, pubKey)
69
69
 
70
+ logger.debug "Verify result : #{rv}"
70
71
  rv == Roqs::OQS_SUCCESS
71
72
 
72
73
  end
@@ -94,6 +95,11 @@ module Roqs
94
95
 
95
96
  end
96
97
 
98
+ private
99
+ def logger
100
+ Roqs.logger(:sig)
101
+ end
102
+
97
103
  end
98
104
 
99
105
  end
data/lib/roqs/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Roqs
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.2"
5
5
  end
data/lib/roqs/wrapper.rb CHANGED
@@ -6,6 +6,8 @@ module Roqs
6
6
  class WrapperError < StandardError; end
7
7
 
8
8
  module ClassMethods
9
+ include TR::CondUtils
10
+
9
11
  def load_oqs_lib
10
12
  os = detect_os
11
13
  logger.debug "Found OS #{os}"
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roqs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-11-24 00:00:00.000000000 Z
11
+ date: 2024-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: teLogger
@@ -61,6 +61,7 @@ extra_rdoc_files: []
61
61
  files:
62
62
  - ".rspec"
63
63
  - ".rubocop.yml"
64
+ - Dockerfile
64
65
  - README.md
65
66
  - Rakefile
66
67
  - TEST-RESULT.md
@@ -74,14 +75,14 @@ files:
74
75
  - lib/roqs/struct.rb
75
76
  - lib/roqs/version.rb
76
77
  - lib/roqs/wrapper.rb
77
- - native/linux/x86_64/liboqs.so.0.9.0
78
- - native/macos/x86_64/liboqs.0.7.0.dylib
79
- - native/windows/x64/liboqs.dll
78
+ - native/linux/x86_64/liboqs.so.0.10.0
79
+ - native/macos/.DS_Store
80
+ - native/macos/arm64/liboqs.0.10.0.dylib
80
81
  - sig/roqs.rbs
81
82
  homepage: ''
82
83
  licenses: []
83
84
  metadata: {}
84
- post_install_message:
85
+ post_install_message:
85
86
  rdoc_options: []
86
87
  require_paths:
87
88
  - lib
@@ -96,8 +97,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
97
  - !ruby/object:Gem::Version
97
98
  version: '0'
98
99
  requirements: []
99
- rubygems_version: 3.4.6
100
- signing_key:
100
+ rubygems_version: 3.5.1
101
+ signing_key:
101
102
  specification_version: 4
102
103
  summary: ''
103
104
  test_files: []
Binary file
Binary file
Binary file