Skip to content
Snippets Groups Projects
Commit 48e76960 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Crypto.DSA: Fix rejection of signatures with offset r and/or s.

Fixes #10077.
parent 2c0c6500
No related branches found
No related tags found
No related merge requests found
......@@ -397,6 +397,9 @@ class State {
//! Verify the signature @[r],@[s] against the message @[h].
int(0..1) raw_verify(Gmp.mpz h, Gmp.mpz r, Gmp.mpz s)
{
if ((r > q) || (s > q)) {
return 0;
}
object(Gmp.mpz)|zero w;
if (catch
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment