# File lib/jwt.rb, line 133 def decode_verify_signature(key, header, signature, signing_input, options, &keyfinder) algo, key = signature_algorithm_and_key(header, key, &keyfinder) if options[:algorithm] && algo != options[:algorithm] raise JWT::IncorrectAlgorithm, 'Expected a different algorithm' end verify_signature(algo, key, signing_input, signature) end