summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/dsa
diff options
context:
space:
mode:
authortb <>2022-11-17 19:01:59 +0000
committertb <>2022-11-17 19:01:59 +0000
commit39401085a3fd36d7c2ad32db5f56ac0b9fb95069 (patch)
tree31369c0b26bbeb131ae8a6b5a206ecb70d1c214b /src/lib/libcrypto/dsa
parentad8ed8f2cc739b8c0024967dceb20a06ff5cd86a (diff)
downloadopenbsd-39401085a3fd36d7c2ad32db5f56ac0b9fb95069.tar.gz
openbsd-39401085a3fd36d7c2ad32db5f56ac0b9fb95069.tar.bz2
openbsd-39401085a3fd36d7c2ad32db5f56ac0b9fb95069.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')
0 files changed, 0 insertions, 0 deletions