Add blinding to an ECDSA signature · openssl/openssl@0c27d79 · GitHub
Skip to content

Commit 0c27d79

Browse files
committed
Add blinding to an ECDSA signature
Keegan Ryan (NCC Group) has demonstrated a side channel attack on an ECDSA signature operation. During signing the signer calculates: s:= k^-1 * (m + r * priv_key) mod order The addition operation above provides a sufficient signal for a flush+reload attack to derive the private key given sufficient signature operations. As a mitigation (based on a suggestion from Keegan) we add blinding to the operation so that: s := k^-1 * blind^-1 (blind * m + blind * r * priv_key) mod order Since this attack is a localhost side channel only no CVE is assigned. Reviewed-by: Rich Salz <rsalz@openssl.org>
1 parent cd396d2 commit 0c27d79

2 files changed

Lines changed: 67 additions & 7 deletions

File tree

CHANGES

Lines changed: 4 additions & 0 deletions

crypto/ec/ecdsa_ossl.c

Lines changed: 63 additions & 7 deletions

0 commit comments

Comments
 (0)