class JWT::JWA::HmacRbNaClFixed
def verify(data:, signature:, verification_key:)
def verify(data:, signature:, verification_key:) verification_key ||= '' Deprecations.warning("The use of the algorithm #{alg} is deprecated and will be removed in the next major version of ruby-jwt") raise JWT::DecodeError, 'HMAC key expected to be a String' unless verification_key.is_a?(String) hmac.verify(padded_key_bytes(verification_key, hmac.key_bytes), signature.encode('binary'), data.encode('binary')) rescue ::RbNaCl::BadAuthenticatorError, ::RbNaCl::LengthError false end