diff --git a/lib/plug_signature/crypto.ex b/lib/plug_signature/crypto.ex index 00ffc76..3d339b9 100644 --- a/lib/plug_signature/crypto.ex +++ b/lib/plug_signature/crypto.ex @@ -44,11 +44,7 @@ defmodule PlugSignature.Crypto do """ def verify!(payload, "hs2019", signature, rsa_public_key(publicExponent: e, modulus: n)) do # Use PSS padding; requires workaround for https://bugs.erlang.org/browse/ERL-878 - :crypto.verify(:rsa, :sha512, payload, signature, [e, n], - rsa_padding: :rsa_pkcs1_pss_padding, - rsa_pss_saltlen: 94, - rsa_mgf1_md: :sha256 - ) + :crypto.verify(:rsa, :sha512, payload, signature, [e, n], rsa_padding: :rsa_pkcs1_pss_padding) end def verify!(payload, "hs2019", signature, {_point, _ecpk_parameters} = public_key) do @@ -114,11 +110,7 @@ defmodule PlugSignature.Crypto do """ def sign!(payload, "hs2019", rsa_private_key(publicExponent: e, modulus: n, privateExponent: d)) do # Use PSS padding; requires workaround for https://bugs.erlang.org/browse/ERL-878 - :crypto.sign(:rsa, :sha512, payload, [e, n, d], - rsa_padding: :rsa_pkcs1_pss_padding, - rsa_pss_saltlen: 94, - rsa_mgf1_md: :sha256 - ) + :crypto.sign(:rsa, :sha512, payload, [e, n, d], rsa_padding: :rsa_pkcs1_pss_padding) end def sign!(payload, "hs2019", ec_private_key() = private_key) do diff --git a/mix.exs b/mix.exs index 0c4445b..1d17963 100644 --- a/mix.exs +++ b/mix.exs @@ -1,7 +1,7 @@ defmodule PlugSignature.MixProject do use Mix.Project - @version "0.6.0" + @version "0.7.0" def project do [