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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 699545e32ef6f352120451e7fb5ecce89ae3424d
4
- data.tar.gz: 70dcdf9aacdb0d5c4e265685bd34b36e14eae42b
3
+ metadata.gz: 6c067a1b6e9be0411ef28af2f0500805b60bcd1b
4
+ data.tar.gz: db0e842c5ea87ae59bbb32b2f3c4d01df864fedf
5
5
  SHA512:
6
- metadata.gz: 304e2e63516a315074817731ddd5ae1b70cbc3cc6cdc2ff4cab900d236d1cab8775e6ce573fca717d3dc43c0843e924315fcae6c45314e576f3a5b8abbdb778d
7
- data.tar.gz: f1c97087021e5a64e1816b1093550f614c7f003c87e75b98c8ceaa5f0559b334fef40d47d736da5d46a8951b5c6165a2459a0dff5b5eb00ace0b224041f53fff
6
+ metadata.gz: 0dccb64bf136ec3b06c4519659a8bf42668cb14bb7bfdabd7739d5ec600b10dc9e862d809de5e30c89b0689be51d43384285044c5870c1126cacc60f3375eafb
7
+ data.tar.gz: 0feeaa34b3957cbc1e0b3e592c58ecd2160f305322464042854a37a8b60d43a3b13914ca10603364cbddfb054e1082e9b3133b278c2908bed85963f33a14c3d0
@@ -1,18 +1,18 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bcrypt_pbkdf (1.0.0.alpha1)
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.4)
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.2)
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.0)
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.11.2
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/2.2",
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'bcrypt_pbkdf'
3
- s.version = '1.0.0.alpha1'
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.0'
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/mfazekas/bcrypt_pbkdf-ruby"
28
+ s.homepage = "https://github.com/net-ssh/bcrypt_pbkdf-ruby"
29
29
  s.license = "MIT"
30
- end
30
+ end
@@ -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 = NUM2UINT(keylen);
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
- NUM2UINT(rounds));
18
+ NUM2ULONG(rounds));
19
19
  if (ret < 0)
20
20
  return Qnil;
21
21
  out = rb_str_new((const char*)okey, okeylen);
@@ -45,7 +45,7 @@ def bcrypt_pbkdf(password, salt, keylen, rounds)
45
45
 
46
46
  amt = [amt, remlen].min
47
47
  (0...amt).each do |i|
48
- dest = i * stride + (count - 1)
48
+ dest = i * stride + (count -1)
49
49
  key[dest] = out[i] if (dest < keylen)
50
50
  end
51
51
 
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.alpha1
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-03-19 00:00:00.000000000 Z
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.0
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.0
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/mfazekas/bcrypt_pbkdf-ruby
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: 1.3.1
156
+ version: '0'
157
157
  requirements: []
158
158
  rubyforge_project:
159
159
  rubygems_version: 2.5.1