Skip to content

Commit

Permalink
Use 'sha256' instead of 'sha' when validating RSA signing existence
Browse files Browse the repository at this point in the history
  • Loading branch information
pavledjo committed Mar 6, 2023
1 parent e0110a1 commit ae93b31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jose_server.erl
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ check_rsa_sign(Fallback) ->
future
end,
SignEntries = [begin
case has_rsa_sign(Padding, Legacy, sha) of
case has_rsa_sign(Padding, Legacy, sha256) of
false ->
{{rsa_sign, Padding}, {Fallback, [{rsa_padding, Padding}]}};
{true, Module} ->
Expand Down

0 comments on commit ae93b31

Please sign in to comment.