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 +4 -4
- data/.travis.yml +3 -0
- data/README.md +2 -2
- data/Rakefile +2 -1
- data/bcrypt_pbkdf.gemspec +3 -3
- data/ext/mri/bcrypt_pbkdf_ext.c +1 -1
- data/ext/mri/sha2.h +3 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d58d2ab539b07a468090fbea59f1a861e316597cef84733c28bc0c976ac4473
|
4
|
+
data.tar.gz: 51e4abb54be890b21919fe8da39b76dbdfb92be928418a9ad7c7748121825a36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70eee8150d9a77282d8d27f7ff78d441319e9d8f236674d6bae2eed926be095eda75d0a50f6eac82b75b7a011e6e446b085fe3141e246d29ef4deadf98bd5720
|
7
|
+
data.tar.gz: e0a9ba8474c921e3a287e3c36181d9a1e673a89ab84411ecef1e750939d148bad62087a43cfb29f6cace29c45be0ea27cbc473f4027a8c83e493e0c1ed67850e
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
#
|
1
|
+
# bcrypt_pbkdf-ruby
|
2
2
|
|
3
|
-
|
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
|
data/bcrypt_pbkdf.gemspec
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'bcrypt_pbkdf'
|
3
|
-
s.version = '1.1.0.
|
3
|
+
s.version = '1.1.0.rc2'
|
4
4
|
|
5
|
-
s.summary = "OpenBSD's
|
5
|
+
s.summary = "OpenBSD's bcrypt_pbkdf (a variant of PBKDF2 with bcrypt-based PRF)"
|
6
6
|
s.description = <<-EOF
|
7
|
-
This gem implements
|
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")
|
data/ext/mri/bcrypt_pbkdf_ext.c
CHANGED
@@ -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(
|
11
|
+
u_int8_t* okey = xmalloc(okeylen);
|
12
12
|
VALUE out;
|
13
13
|
|
14
14
|
int ret = bcrypt_pbkdf(
|
data/ext/mri/sha2.h
CHANGED
@@ -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.
|
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-
|
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
|
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
|
146
|
+
summary: OpenBSD's bcrypt_pbkdf (a variant of PBKDF2 with bcrypt-based PRF)
|
147
147
|
test_files: []
|