summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/dsa/dsa_gen.c
diff options
context:
space:
mode:
authortb <>2022-11-17 19:01:59 +0000
committertb <>2022-11-17 19:01:59 +0000
commit3df451964c26e01d8ff57468d02c495bfe18832d (patch)
tree31369c0b26bbeb131ae8a6b5a206ecb70d1c214b /src/lib/libcrypto/dsa/dsa_gen.c
parente34c353ca0475e362c84929492561dab4f74ec0d (diff)
downloadopenbsd-3df451964c26e01d8ff57468d02c495bfe18832d.tar.gz
openbsd-3df451964c26e01d8ff57468d02c495bfe18832d.tar.bz2
openbsd-3df451964c26e01d8ff57468d02c495bfe18832d.zip
Prevent Ed25519 signature malleability
Add a check that ensures that the upper half s of an Ed25519 signature is bounded by the group order, i.e, 0 <= s < order. This is required by the Verify procedure in RFC 8032, section 5.1.7, step 1, and prevents simple modifications of signatures such as adding (a multiple of) the group order to the upper half of the signature. Found with EdDSA testcase 63 of project Wycheproof. ok beck jsing
Diffstat (limited to 'src/lib/libcrypto/dsa/dsa_gen.c')
0 files changed, 0 insertions, 0 deletions