feoblog
feoblog copied to clipboard
Do not permit weak public keys
… this can allow odd behavior.
see: https://crates.io/crates/ed25519-dalek
However, there's a much looser kind of forgery that Ed25519 permits, which we call weak key forgery. An attacker can produce a special public key A (which we call a weak public key) and a signature σ such that σ is a valid signature of any message m, with respect to A, with high probability. This attack is acknowledged in the Ed25519 paper, and caused an exploitable bug in the Scuttlebutt protocol (paper, section 7.1). The VerifyingKey::verify()function permits weak keys.