bcrypt_pbkdf 1.0.0.alpha1 → 1.0.0
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/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: 6c067a1b6e9be0411ef28af2f0500805b60bcd1b
|
4
|
+
data.tar.gz: db0e842c5ea87ae59bbb32b2f3c4d01df864fedf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0dccb64bf136ec3b06c4519659a8bf42668cb14bb7bfdabd7739d5ec600b10dc9e862d809de5e30c89b0689be51d43384285044c5870c1126cacc60f3375eafb
|
7
|
+
data.tar.gz: 0feeaa34b3957cbc1e0b3e592c58ecd2160f305322464042854a37a8b60d43a3b13914ca10603364cbddfb054e1082e9b3133b278c2908bed85963f33a14c3d0
|
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);
|
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: ruby
|
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
|
@@ -130,7 +130,7 @@ files:
|
|
130
130
|
- lib/bcrypt_pbkdf.rb
|
131
131
|
- test/bcrypt_pnkdf/engine_test.rb
|
132
132
|
- test/test_helper.rb
|
133
|
-
homepage: https://github.com/
|
133
|
+
homepage: https://github.com/net-ssh/bcrypt_pbkdf-ruby
|
134
134
|
licenses:
|
135
135
|
- MIT
|
136
136
|
metadata: {}
|
@@ -151,9 +151,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
151
151
|
version: '0'
|
152
152
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
153
153
|
requirements:
|
154
|
-
- - "
|
154
|
+
- - ">="
|
155
155
|
- !ruby/object:Gem::Version
|
156
|
-
version:
|
156
|
+
version: '0'
|
157
157
|
requirements: []
|
158
158
|
rubyforge_project:
|
159
159
|
rubygems_version: 2.5.1
|