ffi-libsodium 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/crypto/one_time_auth.rb +0 -1
- data/lib/random_bytes.rb +4 -4
- data/lib/sodium/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8f824b533e203a30b75bd97267e79eefbee9b04
|
4
|
+
data.tar.gz: e791838d822463c909f23b885f48d9651e2c8dbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de9b091d5911cfe41e0f34d15789a6a3dc4a2c608c760e0148542e7ec7c245531e7e2ac67879df21405dca1ea8931c64b02a817a25be73350395bf1bba7157a3
|
7
|
+
data.tar.gz: 1336f51e32015d717ea5b409806fef90d342458528478d8c061a661e458f0c01e1f506c757da58d5b186a9c49817f454abc45b23c6ad0c7afab730598c5c5468
|
data/lib/crypto/one_time_auth.rb
CHANGED
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
|
8
|
+
attach_function :randombytes_buf, [:buffer_out, :size_t], :void
|
9
9
|
|
10
|
-
attach_function :random, :randombytes_random, [], :uint32
|
11
|
-
attach_function :uniform, :randombytes_uniform, [:uint32], :uint32
|
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
|
18
|
+
buf = Sodium::Buffer.new(:void, size)
|
19
19
|
randombytes_buf(buf, size)
|
20
20
|
buf
|
21
21
|
end
|
data/lib/sodium/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|