diff --git a/lib/jwt/jwa.rb b/lib/jwt/jwa.rb index 8d515d26..8a975824 100644 --- a/lib/jwt/jwa.rb +++ b/lib/jwt/jwa.rb @@ -9,9 +9,7 @@ end require_relative 'jwa/signing_algorithm' - require_relative 'jwa/ecdsa' -require_relative 'jwa/eddsa' require_relative 'jwa/hmac' require_relative 'jwa/none' require_relative 'jwa/ps' @@ -19,6 +17,10 @@ require_relative 'jwa/unsupported' require_relative 'jwa/wrapper' +if JWT.rbnacl? + require_relative 'jwa/eddsa' +end + if JWT.rbnacl_6_or_greater? require_relative 'jwa/hmac_rbnacl' elsif JWT.rbnacl?