bcrypt_pbkdf 1.0.0.alpha1-x64-mingw32 → 1.0.0-x64-mingw32

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: abb05534ffa425215690a32fa0eae3f396086bc0
4
- data.tar.gz: 8e9bcca049946fac4465d655a7239939066d7b84
3
+ metadata.gz: 0b57505bd496a5217b20bd7f7b869bb9253591fc
4
+ data.tar.gz: f19d53707b3f8d055227ae93215a19c1f31b1217
5
5
  SHA512:
6
- metadata.gz: 7825f3d7fb0cbb3fb5b5627bf46eee75663e8553acfbf9973de3cc203a16aaa4d6b0bc231eadd64f28d57e763d89fda693172e86cd3473056d965b224201769c
7
- data.tar.gz: 607f0976b46f46fe58bb53080f14ff2b7d7a55203e7b8334f404f16bef2a1a9a020169906484f8379fa08a5aade5d0cd6688782d39188c036fba446cded7cd24
6
+ metadata.gz: a073176b163c9bfd17d29eb2c29d695a1eb5ec7785d353f5e649754ace51826153062a1e7dfc7db0b81858911c8502e926e0d470ddbf59963105d472d37c3e24
7
+ data.tar.gz: 20823d9a7bbbf1666141a6f04c5c97337a7c65242ed3c7d74f3c2fb4c7bfaf86f7f79083703dc46359b8acce180265a69cd873888e3046b18614d6c1c644083e
data/Gemfile.lock CHANGED
@@ -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
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.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);
Binary file
Binary file
Binary file
Binary file
@@ -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: x64-mingw32
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
@@ -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/mfazekas/bcrypt_pbkdf-ruby
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: 1.3.1
159
+ version: '0'
160
160
  requirements: []
161
161
  rubyforge_project:
162
162
  rubygems_version: 2.5.1