jose 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +1 -1
- data/lib/jose/jwe/alg_pbes2.rb +2 -2
- data/lib/jose/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97b12e5771a9533cfe90cf343ad9829fea08959e
|
4
|
+
data.tar.gz: 36896efd3b895906a16ff8f751449fba9159dc3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc6941ef61ef94954fe118082d564936fc59b13c53f6ab4b09dd7598355b4572b9dff093fe57e84febf842817c88e454b7d34c1551028ee687fbda36c439697c
|
7
|
+
data.tar.gz: 919c7f009f80b2e22e82083c60f93c39571800b3069d9d86372c7ca9b12d8cb6b18d3f0c322c2dc812fdeee411dd2d42e36956803cf2405d68ffe169514859fe
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# JOSE
|
2
2
|
|
3
|
-
[![Build Status](https://travis-ci.org/potatosalad/ruby-jose.png?branch=master)](https://travis-ci.org/potatosalad/ruby-jose)
|
3
|
+
[![Build Status](https://travis-ci.org/potatosalad/ruby-jose.png?branch=master)](https://travis-ci.org/potatosalad/ruby-jose) [![Gem](https://img.shields.io/gem/v/jose.svg?maxAge=2592000)](https://rubygems.org/gems/jose)
|
4
4
|
|
5
5
|
JSON Object Signing and Encryption (JOSE) for Ruby.
|
6
6
|
|
data/lib/jose/jwe/alg_pbes2.rb
CHANGED
@@ -43,7 +43,7 @@ class JOSE::JWE::ALG_PBES2 < Struct.new(:hmac, :bits, :salt, :iter)
|
|
43
43
|
if salt.nil?
|
44
44
|
return fields.put('alg', alg).put('p2c', p2c)
|
45
45
|
else
|
46
|
-
p2s = JOSE.urlsafe_encode64(unwrap_salt(
|
46
|
+
p2s = JOSE.urlsafe_encode64(unwrap_salt(salt))
|
47
47
|
return fields.put('alg', alg).put('p2c', p2c).put('p2s', p2s)
|
48
48
|
end
|
49
49
|
end
|
@@ -56,7 +56,7 @@ class JOSE::JWE::ALG_PBES2 < Struct.new(:hmac, :bits, :salt, :iter)
|
|
56
56
|
'p2c' => iter
|
57
57
|
}
|
58
58
|
if not salt.nil?
|
59
|
-
extra_fields['p2s'] = JOSE.urlsafe_encode64(unwrap_salt(
|
59
|
+
extra_fields['p2s'] = JOSE.urlsafe_encode64(unwrap_salt(salt))
|
60
60
|
end
|
61
61
|
return JOSE::JWE::ALG.generate_key([:oct, 16], alg, enc.algorithm).merge(extra_fields)
|
62
62
|
end
|
data/lib/jose/version.rb
CHANGED