scrypt 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +1 -1
- data/README.md +1 -1
- data/Rakefile +2 -0
- data/ext/scrypt/Rakefile +2 -0
- data/ext/scrypt/crypto_scrypt.c +6 -2
- data/lib/scrypt/version.rb +1 -1
- data/scrypt.gemspec +1 -1
- metadata +4 -4
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe756474da0dad21e0a4b83ce50f9690f684f411
|
4
|
+
data.tar.gz: d627fbd2339acb7f5985b8cd349de4768c4f59ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdbd4a482f0a98ee68b6062654907ce5f0e23faa8ba68bd11368d7a4784078a547eae8d168e9c03b066fa2b4817d2d6942d32718b85f95a188d68b4a1d733307
|
7
|
+
data.tar.gz: 2ed2b029b66f67efc71f76970f9d20043f74b8fe54a11dff44c8fe759b6c7839f782f35c434b310159edab775d4aba5b544fd1f1d9067a5e69801da4a48bb706
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
m�j���,��@��8�7�=���)��B���hv2ةʅ�>��o�����Fc��爌،�Yj#����䁈c!��-�}sEs���¨�p�AY^��[-�|+'9[��קZ��`c_qBP�G�Bh�G�ϋ8_ѳܞ��Y\��u(Ü��;"���n�4�����j`iX���@�U)W��x�4�����j)�+�z�F�&�R�|&�J���H�V�in``�=�<J͖��2v��,���9sIx��� ��\@����w�
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
scrypt [![Build Status](https://secure.travis-ci.org/pbhogan/scrypt.
|
1
|
+
scrypt [![Build Status](https://secure.travis-ci.org/pbhogan/scrypt.svg)](http://travis-ci.org/pbhogan/scrypt)
|
2
2
|
======
|
3
3
|
|
4
4
|
The scrypt key derivation function is designed to be far more secure against hardware brute-force attacks than alternative functions such as PBKDF2 or bcrypt.
|
data/Rakefile
CHANGED
@@ -29,6 +29,8 @@ namespace "ffi-compiler" do
|
|
29
29
|
t.cflags << "-D_GNU_SOURCE=1" if RbConfig::CONFIG["host_os"].downcase =~ /mingw/
|
30
30
|
t.cflags << "-arch x86_64 -arch i386" if t.platform.mac?
|
31
31
|
t.ldflags << "-arch x86_64 -arch i386" if t.platform.mac?
|
32
|
+
|
33
|
+
t.add_define 'WINDOWS_OS' if FFI::Platform.windows?
|
32
34
|
end
|
33
35
|
end
|
34
36
|
task :compile_ffi => ["ffi-compiler:default"]
|
data/ext/scrypt/Rakefile
CHANGED
@@ -7,4 +7,6 @@ FFI::Compiler::CompileTask.new('scrypt_ext') do |t|
|
|
7
7
|
t.cflags << "-arch x86_64 -arch i386" if t.platform.mac?
|
8
8
|
t.ldflags << "-arch x86_64 -arch i386" if t.platform.mac?
|
9
9
|
t.export '../../lib/scrypt/scrypt_ext.rb'
|
10
|
+
|
11
|
+
t.add_define 'WINDOWS_OS' if FFI::Platform.windows?
|
10
12
|
end
|
data/ext/scrypt/crypto_scrypt.c
CHANGED
@@ -29,8 +29,12 @@
|
|
29
29
|
/* #include "bsdtar_platform.h" */
|
30
30
|
|
31
31
|
#include <sys/types.h>
|
32
|
-
#
|
33
|
-
|
32
|
+
#if !defined(WINDOWS_OS)
|
33
|
+
#include <sys/mman.h>
|
34
|
+
#ifndef HAVE_MMAP
|
35
|
+
#define HAVE_MMAP 1
|
36
|
+
#endif
|
37
|
+
#endif
|
34
38
|
#include <errno.h>
|
35
39
|
#include <stdint.h>
|
36
40
|
#include <stdlib.h>
|
data/lib/scrypt/version.rb
CHANGED
data/scrypt.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
|
|
19
19
|
alternative functions such as PBKDF2 or bcrypt.
|
20
20
|
EOF
|
21
21
|
|
22
|
-
s.add_dependency 'ffi-compiler', '>= 0.0
|
22
|
+
s.add_dependency 'ffi-compiler', '>= 1.0.0'
|
23
23
|
s.add_dependency 'rake'
|
24
24
|
s.add_development_dependency "rspec"
|
25
25
|
s.add_development_dependency "rdoc"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scrypt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patrick Hogan
|
@@ -33,7 +33,7 @@ cert_chain:
|
|
33
33
|
wpN2wi2CVPoj+c4bOYxgvF17WNGDWYdVEXXCRzoqGbA2kLbTH1o9BxI6NBzmfwyH
|
34
34
|
LY7uYxN8Hy8S4Oto/gB1eREHqYwwXt3TmlJ6kAVGbO5y9xblPncdnfwNLCUnPfxN
|
35
35
|
-----END CERTIFICATE-----
|
36
|
-
date: 2016-
|
36
|
+
date: 2016-07-07 00:00:00.000000000 Z
|
37
37
|
dependencies:
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
39
|
name: ffi-compiler
|
@@ -41,14 +41,14 @@ dependencies:
|
|
41
41
|
requirements:
|
42
42
|
- - ">="
|
43
43
|
- !ruby/object:Gem::Version
|
44
|
-
version: 0.0
|
44
|
+
version: 1.0.0
|
45
45
|
type: :runtime
|
46
46
|
prerelease: false
|
47
47
|
version_requirements: !ruby/object:Gem::Requirement
|
48
48
|
requirements:
|
49
49
|
- - ">="
|
50
50
|
- !ruby/object:Gem::Version
|
51
|
-
version: 0.0
|
51
|
+
version: 1.0.0
|
52
52
|
- !ruby/object:Gem::Dependency
|
53
53
|
name: rake
|
54
54
|
requirement: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
Binary file
|