argon2-kdf 0.1.1 → 0.1.6

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: 2c8e58fa76a8e966254348bb2ba64e24a5a7ee02646b0856bacc4c40e16f8be2
4
- data.tar.gz: 53e606fb96c846524ebf4a280e732e829abc40e3aaa31c180adae8454f25e485
3
+ metadata.gz: 4c06476125b733921b5e0cbf53709f71e88c96130a1a5d3874caa4d2d94b28a0
4
+ data.tar.gz: 306aea1bab00473fed55dcdda11d8a95ca61834dfa67e798e9ce5d408f24c6b2
5
5
  SHA512:
6
- metadata.gz: d8e39d4d6be8256b0ce9562bc39c499b196b5dab263c73ac4830bcce71a4059349de08c9a1200e3d6d3225fdcd4dfdd2df0539456618607a5e4945baf3609412
7
- data.tar.gz: 68dbf7a98e2add7ab7b065cd83b458e5b2ef04623187ef625dff0a440f7a732ff2d3db9e196f62705f2ce06c8f65c9ff7f3ff7315a311867b41eee1ba8a141ec
6
+ metadata.gz: 1a6d60caaa86cb52d94719475c92aa2cd60311e292a6faa6ea80a8003a27c75e5fd23b788c4989a4008c600e38c10a30b5e509786fba9a6614de53e5cd0b5e3c
7
+ data.tar.gz: 0f7bb523e3667ae856143bd05c81e79f33a91bb03e99a60d757f9d8a1023242e4c6c265ecd075b632eec0cdddf54b5b5a083e9ce404a601bf4fcd4f862e6c2a1
data/CHANGELOG.md CHANGED
@@ -1,3 +1,23 @@
1
+ ## 0.1.6 (2021-03-10)
2
+
3
+ - Added ARM shared library for Linux
4
+
5
+ ## 0.1.5 (2021-01-05)
6
+
7
+ - Fixed ARM detection
8
+
9
+ ## 0.1.4 (2020-12-28)
10
+
11
+ - Added ARM shared library for Mac
12
+
13
+ ## 0.1.3 (2020-03-25)
14
+
15
+ - Fixed `Symbol not found` error on Mac 10.13
16
+
17
+ ## 0.1.2 (2020-02-11)
18
+
19
+ - Fixed `Could not find Argon2` error on some Linux platforms
20
+
1
21
  ## 0.1.1 (2020-02-09)
2
22
 
3
23
  - Fixed illegal instruction error on some Linux platforms
data/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  For password hashing, use the [argon2](https://github.com/technion/ruby-argon2) gem
9
9
 
10
- [![Build Status](https://travis-ci.org/ankane/argon2-kdf.svg?branch=master)](https://travis-ci.org/ankane/argon2-kdf) [![Build status](https://ci.appveyor.com/api/projects/status/97dt08xomsq2rsar/branch/master?svg=true)](https://ci.appveyor.com/project/ankane/argon2-kdf/branch/master)
10
+ [![Build Status](https://github.com/ankane/argon2-kdf/workflows/build/badge.svg?branch=master)](https://github.com/ankane/argon2-kdf/actions)
11
11
 
12
12
  ## Installation
13
13
 
data/lib/argon2/kdf.rb CHANGED
@@ -15,9 +15,17 @@ module Argon2
15
15
  if Gem.win_platform?
16
16
  "argon2.dll"
17
17
  elsif RbConfig::CONFIG["host_os"] =~ /darwin/i
18
- "libargon2.dylib"
18
+ if RbConfig::CONFIG["host_cpu"] =~ /arm/i
19
+ "libargon2.arm64.dylib"
20
+ else
21
+ "libargon2.dylib"
22
+ end
19
23
  else
20
- "libargon2.so"
24
+ if RbConfig::CONFIG["host_cpu"] =~ /aarch64/i
25
+ "libargon2.arm64.so"
26
+ else
27
+ "libargon2.so"
28
+ end
21
29
  end
22
30
  vendor_lib = File.expand_path("../../vendor/#{lib_name}", __dir__)
23
31
  self.ffi_lib = [vendor_lib]
@@ -8,8 +8,7 @@ module Argon2
8
8
  dlload Fiddle.dlopen(libs.shift)
9
9
  rescue Fiddle::DLError => e
10
10
  retry if libs.any?
11
- raise e if ENV["ARGON2_KDF_DEBUG"]
12
- raise LoadError, "Could not find Argon2"
11
+ raise e
13
12
  end
14
13
 
15
14
  # https://github.com/P-H-C/phc-winner-argon2/blob/master/include/argon2.h
@@ -1,5 +1,5 @@
1
1
  module Argon2
2
2
  module KDF
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.6"
4
4
  end
5
5
  end
Binary file
Binary file
Binary file
data/vendor/libargon2.so CHANGED
Binary file
metadata CHANGED
@@ -1,72 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: argon2-kdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-10 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: bundler
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: rake
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: minitest
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '5'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '5'
55
- - !ruby/object:Gem::Dependency
56
- name: benchmark-ips
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
- description:
11
+ date: 2021-03-10 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description:
70
14
  email: andrew@chartkick.com
71
15
  executables: []
72
16
  extensions: []
@@ -80,13 +24,15 @@ files:
80
24
  - lib/argon2/kdf/version.rb
81
25
  - vendor/LICENSE
82
26
  - vendor/argon2.dll
27
+ - vendor/libargon2.arm64.dylib
28
+ - vendor/libargon2.arm64.so
83
29
  - vendor/libargon2.dylib
84
30
  - vendor/libargon2.so
85
31
  homepage: https://github.com/ankane/argon2-kdf
86
32
  licenses:
87
33
  - MIT
88
34
  metadata: {}
89
- post_install_message:
35
+ post_install_message:
90
36
  rdoc_options: []
91
37
  require_paths:
92
38
  - lib
@@ -101,8 +47,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
47
  - !ruby/object:Gem::Version
102
48
  version: '0'
103
49
  requirements: []
104
- rubygems_version: 3.1.2
105
- signing_key:
50
+ rubygems_version: 3.2.3
51
+ signing_key:
106
52
  specification_version: 4
107
53
  summary: Argon2 key derivation for Ruby
108
54
  test_files: []