ffi-libsodium 0.1.9 → 0.1.10

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 51673f8b48fc84e991ecaffc4efa90b4b3781b07
4
- data.tar.gz: f8b74395dced2ad638cfa400cf82e9c7109575ea
3
+ metadata.gz: e8f824b533e203a30b75bd97267e79eefbee9b04
4
+ data.tar.gz: e791838d822463c909f23b885f48d9651e2c8dbc
5
5
  SHA512:
6
- metadata.gz: 399c2fcda894109782abcf759d14f78c7e1ff3f7138b3d125fdd9e1f14a55c20d8e52ccc1e98e0e4d47a4652d4a9aa2d526329205288490bb2a3ee1273074a59
7
- data.tar.gz: 69b562118587dd9a5b54699585adb9ac4ee321553d81528feab392f2c8e9aae961a41c75ae66b40163ec77918c429d99a0b6b0af94591177981922ebe05edcaf
6
+ metadata.gz: de9b091d5911cfe41e0f34d15789a6a3dc4a2c608c760e0148542e7ec7c245531e7e2ac67879df21405dca1ea8931c64b02a817a25be73350395bf1bba7157a3
7
+ data.tar.gz: 1336f51e32015d717ea5b409806fef90d342458528478d8c061a661e458f0c01e1f506c757da58d5b186a9c49817f454abc45b23c6ad0c7afab730598c5c5468
@@ -47,7 +47,6 @@ module Crypto
47
47
 
48
48
  def verify(out, message, key)
49
49
  check_length(out, BYTES, :Authenticator)
50
- message_len = get_size(message)
51
50
  check_length(key, KEYBYTES, :SecretKey)
52
51
 
53
52
  key.readonly if key.is_a?(Sodium::SecretBuffer)
data/lib/random_bytes.rb CHANGED
@@ -5,17 +5,17 @@ module RandomBytes
5
5
  extend FFI::Library
6
6
  ffi_lib :libsodium
7
7
 
8
- attach_function :randombytes_buf, [:buffer_out, :size_t], :void, blocking: true
8
+ attach_function :randombytes_buf, [:buffer_out, :size_t], :void
9
9
 
10
- attach_function :random, :randombytes_random, [], :uint32, blocking: true
11
- attach_function :uniform, :randombytes_uniform, [:uint32], :uint32, blocking: true
10
+ attach_function :random, :randombytes_random, [], :uint32
11
+ attach_function :uniform, :randombytes_uniform, [:uint32], :uint32
12
12
  attach_function :close, :randombytes_close, [], :int
13
13
  attach_function :stir, :randombytes_stir, [], :void
14
14
 
15
15
  module_function
16
16
 
17
17
  def buf(size)
18
- buf = Sodium::Buffer.new(:void, size, true)
18
+ buf = Sodium::Buffer.new(:void, size)
19
19
  randombytes_buf(buf, size)
20
20
  buf
21
21
  end
@@ -1,3 +1,3 @@
1
1
  module Sodium
2
- VERSION = Gem::Version.new('0.1.9')
2
+ VERSION = Gem::Version.new('0.1.10')
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffi-libsodium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hendrik Beskow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-07 00:00:00.000000000 Z
11
+ date: 2014-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi