bcrypt_pbkdf 1.0.0.alpha1-x86-mingw32 → 1.0.0-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -5
- data/Rakefile +1 -14
- data/bcrypt_pbkdf.gemspec +4 -4
- data/ext/mri/bcrypt_pbkdf_ext.c +2 -2
- data/lib/2.0/bcrypt_pbkdf_ext.so +0 -0
- data/lib/2.1/bcrypt_pbkdf_ext.so +0 -0
- data/lib/2.2/bcrypt_pbkdf_ext.so +0 -0
- data/lib/2.3/bcrypt_pbkdf_ext.so +0 -0
- data/test/bcrypt_pnkdf/engine_test.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16eed1c1b99fab1e95db321fa2b6cdce9a0602bd
|
4
|
+
data.tar.gz: 976d749b43feedf1db6e495a835680f47a7f7dd9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81b4f0784faa018e01984f9bf54ea01693e82940df35cff3bd364f26d9ba66d044017f1e35d2fc41202096ef4fce4fb521578bdaec1839f34991d7e5dc456a90
|
7
|
+
data.tar.gz: bfafe9cf03d51d9784879f2983e9ed1defa04103e17aa534fcb20128c2054a2547e66ec722ec17885c8dae26c77df05195ddfcd8a3ed0a91bc8eb1e0be4f24e4
|
data/Gemfile.lock
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
bcrypt_pbkdf (1.0.0
|
4
|
+
bcrypt_pbkdf (1.0.0)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
9
|
ffi (1.9.10)
|
10
10
|
json (1.8.3)
|
11
|
-
minitest (5.8.
|
11
|
+
minitest (5.8.3)
|
12
12
|
rake (11.1.1)
|
13
13
|
rake-compiler (0.9.7)
|
14
14
|
rake
|
15
|
-
rake-compiler-dock (0.5.
|
15
|
+
rake-compiler-dock (0.5.3)
|
16
16
|
rbnacl (3.3.0)
|
17
17
|
ffi
|
18
18
|
rbnacl-libsodium (1.0.8)
|
@@ -27,10 +27,10 @@ DEPENDENCIES
|
|
27
27
|
bcrypt_pbkdf!
|
28
28
|
minitest (>= 5)
|
29
29
|
rake-compiler (~> 0.9.7)
|
30
|
-
rake-compiler-dock (~> 0.5.
|
30
|
+
rake-compiler-dock (~> 0.5.3)
|
31
31
|
rbnacl (~> 3.3)
|
32
32
|
rbnacl-libsodium (~> 1.0.8)
|
33
33
|
rdoc (~> 3.12)
|
34
34
|
|
35
35
|
BUNDLED WITH
|
36
|
-
1.
|
36
|
+
1.13.6
|
data/Rakefile
CHANGED
@@ -9,10 +9,7 @@ CLEAN.include(
|
|
9
9
|
"tmp",
|
10
10
|
"lib/2.0",
|
11
11
|
"lib/2.1",
|
12
|
-
"lib/
|
13
|
-
"lib/2.3",
|
14
|
-
"lib/bcrypt_pbkdf_ext.so",
|
15
|
-
"lib/bcrypt_pbkdf_ext.bundle",
|
12
|
+
"lib/bcrypt_pbkdf_ext.so"
|
16
13
|
)
|
17
14
|
CLOBBER.include(
|
18
15
|
"doc",
|
@@ -22,7 +19,6 @@ CLOBBER.include(
|
|
22
19
|
task 'gem:windows' do
|
23
20
|
require 'rake_compiler_dock'
|
24
21
|
RakeCompilerDock.sh "bundle && rake cross native gem RUBY_CC_VERSION=2.3.0:2.2.2:2.1.6:2.0.0"
|
25
|
-
#:2.2.2:2.1.6:2.0.0
|
26
22
|
end
|
27
23
|
|
28
24
|
GEMSPEC = Gem::Specification.load("bcrypt_pbkdf.gemspec")
|
@@ -56,13 +52,4 @@ Rake::ExtensionTask.new("bcrypt_pbkdf_ext", GEMSPEC) do |ext|
|
|
56
52
|
ext.ext_dir = 'ext/mri'
|
57
53
|
ext.cross_compile = true
|
58
54
|
ext.cross_platform = ['x86-mingw32', 'x64-mingw32']
|
59
|
-
puts "FAT_DIR:#{ENV["FAT_DIR"]}"
|
60
|
-
puts "RUBY_VERSION:#{RUBY_VERSION}"
|
61
|
-
#if RUBY_VERSION=="2.3.0"
|
62
|
-
# ext.lib_dir = File.join('lib',"2.3")
|
63
|
-
#end
|
64
|
-
#else
|
65
|
-
# ext.lib_dir = File.join(*['lib', ENV['FAT_DIR']].compact)
|
66
|
-
#ext.cross_platform = ['x86-mingw32', 'x64-mingw32']
|
67
|
-
#ext.cross_platform = ['i386-mingw32', 'x64-mingw32']
|
68
55
|
end
|
data/bcrypt_pbkdf.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'bcrypt_pbkdf'
|
3
|
-
s.version = '1.0.0
|
3
|
+
s.version = '1.0.0'
|
4
4
|
|
5
5
|
s.summary = "OpenBSD's bcrypt_pdkfd (a variant of PBKDF2 with bcrypt-based PRF)"
|
6
6
|
s.description = <<-EOF
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.add_development_dependency 'rbnacl', '~> 3.3'
|
16
16
|
s.add_development_dependency 'rbnacl-libsodium', '~> 1.0.8'
|
17
17
|
s.add_development_dependency 'rdoc', '~> 3.12'
|
18
|
-
s.add_development_dependency 'rake-compiler-dock', '~> 0.5.
|
18
|
+
s.add_development_dependency 'rake-compiler-dock', '~> 0.5.3'
|
19
19
|
|
20
20
|
s.has_rdoc = true
|
21
21
|
s.rdoc_options += ['--title', 'bcrypt_pbkdf', '--line-numbers', '--inline-source', '--main', 'README.md']
|
@@ -25,6 +25,6 @@ Gem::Specification.new do |s|
|
|
25
25
|
|
26
26
|
s.authors = ["Miklos Fazekas"]
|
27
27
|
s.email = "mfazekas@szemafor.com"
|
28
|
-
s.homepage = "https://github.com/
|
28
|
+
s.homepage = "https://github.com/net-ssh/bcrypt_pbkdf-ruby"
|
29
29
|
s.license = "MIT"
|
30
|
-
end
|
30
|
+
end
|
data/ext/mri/bcrypt_pbkdf_ext.c
CHANGED
@@ -7,7 +7,7 @@ static VALUE cBCryptPbkdfEngine;
|
|
7
7
|
/* Given a secret and a salt a key and the number of rounds and returns the encrypted secret
|
8
8
|
*/
|
9
9
|
static VALUE bc_crypt_pbkdf(VALUE self, VALUE pass, VALUE salt, VALUE keylen, VALUE rounds) {
|
10
|
-
size_t okeylen =
|
10
|
+
size_t okeylen = NUM2ULONG(keylen);
|
11
11
|
u_int8_t* okey = xmalloc(keylen);
|
12
12
|
VALUE out;
|
13
13
|
|
@@ -15,7 +15,7 @@ static VALUE bc_crypt_pbkdf(VALUE self, VALUE pass, VALUE salt, VALUE keylen, VA
|
|
15
15
|
StringValuePtr(pass), RSTRING_LEN(pass),
|
16
16
|
(const u_int8_t*)StringValuePtr(salt), RSTRING_LEN(salt),
|
17
17
|
okey, okeylen,
|
18
|
-
|
18
|
+
NUM2ULONG(rounds));
|
19
19
|
if (ret < 0)
|
20
20
|
return Qnil;
|
21
21
|
out = rb_str_new((const char*)okey, okeylen);
|
data/lib/2.0/bcrypt_pbkdf_ext.so
CHANGED
Binary file
|
data/lib/2.1/bcrypt_pbkdf_ext.so
CHANGED
Binary file
|
data/lib/2.2/bcrypt_pbkdf_ext.so
CHANGED
Binary file
|
data/lib/2.3/bcrypt_pbkdf_ext.so
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bcrypt_pbkdf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: x86-mingw32
|
6
6
|
authors:
|
7
7
|
- Miklos Fazekas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake-compiler
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.5.
|
89
|
+
version: 0.5.3
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.5.
|
96
|
+
version: 0.5.3
|
97
97
|
description: " This gem implements bcrypt_pdkfd (a variant of PBKDF2 with bcrypt-based
|
98
98
|
PRF)\n"
|
99
99
|
email: mfazekas@szemafor.com
|
@@ -133,7 +133,7 @@ files:
|
|
133
133
|
- lib/bcrypt_pbkdf.rb
|
134
134
|
- test/bcrypt_pnkdf/engine_test.rb
|
135
135
|
- test/test_helper.rb
|
136
|
-
homepage: https://github.com/
|
136
|
+
homepage: https://github.com/net-ssh/bcrypt_pbkdf-ruby
|
137
137
|
licenses:
|
138
138
|
- MIT
|
139
139
|
metadata: {}
|
@@ -154,9 +154,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
154
154
|
version: '0'
|
155
155
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- - "
|
157
|
+
- - ">="
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version:
|
159
|
+
version: '0'
|
160
160
|
requirements: []
|
161
161
|
rubyforge_project:
|
162
162
|
rubygems_version: 2.5.1
|