bcrypt_pbkdf 1.1.0.rc1 → 1.1.0.rc2

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
  SHA256:
3
- metadata.gz: fcf59d6423fd0649487f1c82e02f3c6df6a3951a9e4aa50a6626de77828d4788
4
- data.tar.gz: 86a554cc8e17b26c8a02cb1e159df19b12e23d475df60df3cb68f981c5cc61bf
3
+ metadata.gz: 3d58d2ab539b07a468090fbea59f1a861e316597cef84733c28bc0c976ac4473
4
+ data.tar.gz: 51e4abb54be890b21919fe8da39b76dbdfb92be928418a9ad7c7748121825a36
5
5
  SHA512:
6
- metadata.gz: ca953363cb720c76895858780fc0d3c8ed8679fad8392508963aa7fac8ac82d2378abd972a1623820c1b12379c8fcc3ad66ba880cc939c2daa18bd99e24f68b4
7
- data.tar.gz: 2fc3b5e3d4de70a259aad2262e0b984af1254673aa552e9897d1ef1ec5974bcaa7867d4b108238cab9cbf3d1c313caf83d046275bc850620190faa7d3242af44
6
+ metadata.gz: 70eee8150d9a77282d8d27f7ff78d441319e9d8f236674d6bae2eed926be095eda75d0a50f6eac82b75b7a011e6e446b085fe3141e246d29ef4deadf98bd5720
7
+ data.tar.gz: e0a9ba8474c921e3a287e3c36181d9a1e673a89ab84411ecef1e750939d148bad62087a43cfb29f6cace29c45be0ea27cbc473f4027a8c83e493e0c1ed67850e
@@ -1,4 +1,7 @@
1
1
  language: ruby
2
+ arch:
3
+ - amd64
4
+ - ppc64le
2
5
  rvm:
3
6
  - 2.3.0
4
7
  - 2.4.0
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # bcrypt_pdkfd-ruby
1
+ # bcrypt_pbkdf-ruby
2
2
 
3
- bcrypt_pdkfd is a ruby gem implementing bcrypt_pdkfd from OpenBSD. This is currently used by net-ssh to read password encrypted Ed25519 keys.
3
+ bcrypt_pbkdf is a ruby gem implementing bcrypt_pbkdf from OpenBSD. This is currently used by net-ssh to read password encrypted Ed25519 keys.
4
4
 
5
5
  [![Build Status](https://travis-ci.org/mfazekas/bcrypt_pbkdf-ruby.png?branch=master)](https://travis-ci.org/mfazekas/bcrypt_pbkdf-ruby)
6
6
 
data/Rakefile CHANGED
@@ -17,6 +17,7 @@ CLEAN.include(
17
17
  "lib/2.5",
18
18
  "lib/2.6",
19
19
  "lib/2.7",
20
+ "lib/3.0",
20
21
  "lib/bcrypt_pbkdf_ext.so"
21
22
  )
22
23
  CLOBBER.include(
@@ -27,7 +28,7 @@ CLOBBER.include(
27
28
  task 'gem:windows' do
28
29
  require 'rake_compiler_dock'
29
30
  sh "bundle package" # Avoid repeated downloads of gems by using gem files from the host.
30
- RakeCompilerDock.sh "bundle && rake cross native gem RUBY_CC_VERSION=2.7.0:2.6.0:2.5.0:2.4.0:2.3.0:2.2.2:2.1.6:2.0.0"
31
+ RakeCompilerDock.sh "bundle && rake cross native gem RUBY_CC_VERSION=3.0.0:2.7.0:2.6.0:2.5.0:2.4.0:2.3.0:2.2.2:2.1.6:2.0.0"
31
32
  end
32
33
 
33
34
  task 'gem:windows:release' do
@@ -1,10 +1,10 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'bcrypt_pbkdf'
3
- s.version = '1.1.0.rc1'
3
+ s.version = '1.1.0.rc2'
4
4
 
5
- s.summary = "OpenBSD's bcrypt_pdkfd (a variant of PBKDF2 with bcrypt-based PRF)"
5
+ s.summary = "OpenBSD's bcrypt_pbkdf (a variant of PBKDF2 with bcrypt-based PRF)"
6
6
  s.description = <<-EOF
7
- This gem implements bcrypt_pdkfd (a variant of PBKDF2 with bcrypt-based PRF)
7
+ This gem implements bcrypt_pbkdf (a variant of PBKDF2 with bcrypt-based PRF)
8
8
  EOF
9
9
 
10
10
  s.files = `git ls-files`.split("\n")
@@ -8,7 +8,7 @@ static VALUE cBCryptPbkdfEngine;
8
8
  */
9
9
  static VALUE bc_crypt_pbkdf(VALUE self, VALUE pass, VALUE salt, VALUE keylen, VALUE rounds) {
10
10
  size_t okeylen = NUM2ULONG(keylen);
11
- u_int8_t* okey = xmalloc(keylen);
11
+ u_int8_t* okey = xmalloc(okeylen);
12
12
  VALUE out;
13
13
 
14
14
  int ret = bcrypt_pbkdf(
@@ -7,7 +7,7 @@
7
7
  #endif
8
8
  #define SHA512_DIGEST_LENGTH crypto_hash_sha512_BYTES
9
9
 
10
- inline void SHA512Init(SHA2_CTX* ctx) { crypto_hash_sha512_init(ctx); }
11
- inline void SHA512Update(SHA2_CTX* ctx, const void *in, size_t inlen) { crypto_hash_sha512_update(ctx, in, inlen); }
12
- inline void SHA512Final(uint8_t* out, SHA2_CTX* ctx) { crypto_hash_sha512_final(ctx, out); }
10
+ inline static void SHA512Init(SHA2_CTX* ctx) { crypto_hash_sha512_init(ctx); }
11
+ inline static void SHA512Update(SHA2_CTX* ctx, const void *in, size_t inlen) { crypto_hash_sha512_update(ctx, in, inlen); }
12
+ inline static void SHA512Final(uint8_t* out, SHA2_CTX* ctx) { crypto_hash_sha512_final(ctx, out); }
13
13
 
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.1.0.rc1
4
+ version: 1.1.0.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miklos Fazekas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-11 00:00:00.000000000 Z
11
+ date: 2020-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake-compiler
@@ -80,7 +80,7 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: 1.0.1
83
- description: " This gem implements bcrypt_pdkfd (a variant of PBKDF2 with bcrypt-based
83
+ description: " This gem implements bcrypt_pbkdf (a variant of PBKDF2 with bcrypt-based
84
84
  PRF)\n"
85
85
  email: mfazekas@szemafor.com
86
86
  executables: []
@@ -143,5 +143,5 @@ requirements: []
143
143
  rubygems_version: 3.0.3
144
144
  signing_key:
145
145
  specification_version: 4
146
- summary: OpenBSD's bcrypt_pdkfd (a variant of PBKDF2 with bcrypt-based PRF)
146
+ summary: OpenBSD's bcrypt_pbkdf (a variant of PBKDF2 with bcrypt-based PRF)
147
147
  test_files: []