Commit fe6d707
deps: float 0c27d793 from openssl (ECDSA blinding)
Pending OpenSSL 1.1.0i release.
Refs: https://www.nccgroup.trust/us/our-research/technical-advisory-return-of-the-hidden-number-problem/
PR-URL: #21345
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Shigeki Ohtsu <ohtsu@ohtsu.org>
Reviewed-By: James M Snell <jasnell@gmail.com>
Upstream: openssl/openssl@0c27d793
Original commit message:
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 6cca5a8 commit fe6d707Copy full SHA for fe6d707
File tree
Expand file treeCollapse file tree
1 file changed
+63
-7
lines changedOpen diff view settings
Filter options
- deps/openssl/openssl/crypto/ec
Expand file treeCollapse file tree
1 file changed
+63
-7
lines changedOpen diff view settings
Collapse file
deps/openssl/openssl/crypto/ec/ecdsa_ossl.c
Copy file name to clipboardExpand all lines: deps/openssl/openssl/crypto/ec/ecdsa_ossl.c+63-7Lines changed: 63 additions & 7 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
210 | 210 | |
211 | 211 | |
212 | 212 | |
213 | | - |
| 213 | + |
| 214 | + |
214 | 215 | |
215 | 216 | |
216 | 217 | |
| ||
243 | 244 | |
244 | 245 | |
245 | 246 | |
246 | | - |
247 | | - |
| 247 | + |
| 248 | + |
| 249 | + |
| 250 | + |
| 251 | + |
| 252 | + |
| 253 | + |
| 254 | + |
| 255 | + |
| 256 | + |
| 257 | + |
| 258 | + |
248 | 259 | |
249 | 260 | |
250 | 261 | |
| ||
284 | 295 | |
285 | 296 | |
286 | 297 | |
287 | | - |
| 298 | + |
| 299 | + |
| 300 | + |
| 301 | + |
| 302 | + |
| 303 | + |
| 304 | + |
| 305 | + |
| 306 | + |
| 307 | + |
| 308 | + |
| 309 | + |
| 310 | + |
| 311 | + |
| 312 | + |
| 313 | + |
| 314 | + |
| 315 | + |
| 316 | + |
| 317 | + |
| 318 | + |
| 319 | + |
288 | 320 | |
289 | 321 | |
290 | 322 | |
291 | | - |
| 323 | + |
292 | 324 | |
293 | 325 | |
294 | 326 | |
| 327 | + |
| 328 | + |
| 329 | + |
| 330 | + |
| 331 | + |
| 332 | + |
| 333 | + |
| 334 | + |
| 335 | + |
| 336 | + |
| 337 | + |
| 338 | + |
| 339 | + |
| 340 | + |
| 341 | + |
| 342 | + |
| 343 | + |
| 344 | + |
| 345 | + |
| 346 | + |
| 347 | + |
| 348 | + |
| 349 | + |
| 350 | + |
295 | 351 | |
296 | 352 | |
297 | 353 | |
298 | 354 | |
| 355 | + |
299 | 356 | |
300 | 357 | |
301 | 358 | |
| ||
317 | 374 | |
318 | 375 | |
319 | 376 | |
| 377 | + |
320 | 378 | |
321 | | - |
322 | | - |
323 | 379 | |
324 | 380 | |
325 | 381 | |
|
0 commit comments