gmssl 1.0.0 → 1.0.5

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 (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/gmssl/version.rb +3 -1
  3. data/lib/gmssl.rb +4 -0
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 00a3d566678d8770f1211709eb327dd6de1c8ae8348684072fc238da02ab91ad
4
- data.tar.gz: 56d9d40e8692a661fc0145161cc0755e20fb47b41496ee4f58aba04880dbfd77
3
+ metadata.gz: c9514334537ed45916f2bbf32ae560f6512b5818b5573cf311279a8bade02d6b
4
+ data.tar.gz: ca339c65e15b7e10e406e29850a3df105fa241cad9cd149833bce1814d8c052a
5
5
  SHA512:
6
- metadata.gz: b54f2d188ee574b70baf55a50432bc584a0d9ccd28080e383c5b3605735af391b1fe392f1340f71d9f17148ce2aff23b549fcdf69c80127e3cee364b9da50d06
7
- data.tar.gz: f00f00ff2288a49dd97a20b9fc2d216d22f096b1c51797fb5f5522269d2444e7dda2d7b3531ae213b4a9dfb41548d5ad537a0d2d4421af8934e0ee14e6ed049c
6
+ metadata.gz: 68cae5e537a484ed824cb06a885b83768a3be8add848bdfd61d2c1c6c6b0770cfb9119c5f8a9e0b38e46799415bab6518ba5a3efecef811426500a1b4b46c6a8
7
+ data.tar.gz: 402efb2453cdbeb3ef2aababf311fddb819e165a6ecac2e6ab4851531f5d3a5d6d9be54824706d0dd87ff749ef9f447aeb9138733aa12824334aab7ea86747f9
data/lib/gmssl/version.rb CHANGED
@@ -5,8 +5,10 @@ require 'ffi'
5
5
  module GmSSL
6
6
  module Version
7
7
  extend FFI::Library
8
- file = File.join GmSSL.lib, 'libgmssl.so.3.1'
8
+ file = File.join GmSSL.lib, LIB_FILE
9
9
  ffi_lib file
10
+
10
11
  attach_function :gmssl_version_num, [], :int
12
+ attach_function :gmssl_version_str, [], :string
11
13
  end
12
14
  end
data/lib/gmssl.rb CHANGED
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ LIB_FILE = 'libgmssl.so.3.1'
4
+
3
5
  module GmSSL
4
6
  def self.root
5
7
  File.expand_path '../..', __FILE__
@@ -15,3 +17,5 @@ module GmSSL
15
17
  end
16
18
 
17
19
  require 'gmssl/version'
20
+ require 'gmssl/random'
21
+ require 'gmssl/sm3'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gmssl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - memorycancel
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-01-06 00:00:00.000000000 Z
10
+ date: 2025-01-07 00:00:00.000000000 Z
11
11
  dependencies: []
12
12
  description: GmSSL c to ruby FFI
13
13
  email: memorycancel@gmail.com