You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/jwt/jwa/eddsa.rb
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -13,12 +13,16 @@ def initialize(alg)
13
13
defsign(data:,signing_key:)
14
14
raise_sign_error!("Key given is a #{signing_key.class} but has to be an RbNaCl::Signatures::Ed25519::SigningKey")unlesssigning_key.is_a?(RbNaCl::Signatures::Ed25519::SigningKey)
15
15
16
+
Deprecations.warning('Using Ed25519 keys is deprecated and will be removed in a future version of ruby-jwt. Please use the ruby-eddsa gem instead.')
17
+
16
18
signing_key.sign(data)
17
19
end
18
20
19
21
defverify(data:,signature:,verification_key:)
20
22
raise_verify_error!("key given is a #{verification_key.class} but has to be a RbNaCl::Signatures::Ed25519::VerifyKey")unlessverification_key.is_a?(RbNaCl::Signatures::Ed25519::VerifyKey)
21
23
24
+
Deprecations.warning('Using Ed25519 keys is deprecated and will be removed in a future version of ruby-jwt. Please use the ruby-eddsa gem instead.')
Copy file name to clipboardExpand all lines: lib/jwt/jwk/okp_rbnacl.rb
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ class OKPRbNaCl < KeyBase
11
11
12
12
definitialize(key,params=nil,options={})
13
13
params ||= {}
14
-
14
+
Deprecations.warning('Using the OKP JWK for Ed25519 keys is deprecated and will be removed in a future version of ruby-jwt. Please use the ruby-eddsa gem instead.')
15
15
# For backwards compatibility when kid was a String
0 commit comments