We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
According to RFC7518 - section 3.2:
A key of the same size as the hash output (for instance, 256 bits for "HS256") or larger MUST be used with this algorithm
seems to not be respected when MACing. For instance:
iex> JOSE.JWK.generate_key({:oct, 3}) |> JOSE.JWS.sign("some text", %{"alg" => "HS256"}) {%{alg: :jose_jws_alg_hmac}, %{ "payload" => "c29tZSB0ZXh0", "protected" => "eyJhbGciOiJIUzI1NiJ9", "signature" => "a_NlCa7P1CqQsSRPEydkTsMvMntCjl6pMvEPW7vr98s" }}
should fail.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
According to RFC7518 - section 3.2:
seems to not be respected when MACing. For instance:
should fail.
The text was updated successfully, but these errors were encountered: