Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 183d2f8db43a86ba4b3230b527582768a7542bf8
      
https://github.com/WebKit/WebKit/commit/183d2f8db43a86ba4b3230b527582768a7542bf8
  Author: Claudio Saavedra <[email protected]>
  Date:   2026-10-12 (Mon, 12 Oct 2026)

  Changed paths:
    M LayoutTests/platform/glib/TestExpectations
    A 
LayoutTests/platform/glib/imported/w3c/web-platform-tests/WebCryptoAPI/sign_verify/eddsa_small_order_points.https.any-expected.txt
    A 
LayoutTests/platform/glib/imported/w3c/web-platform-tests/WebCryptoAPI/sign_verify/eddsa_small_order_points.https.any.worker-expected.txt
    M Source/WebCore/crypto/gcrypt/CryptoAlgorithmEd25519GCrypt.cpp

  Log Message:
  -----------
  [GCrypt] Ed25519 verify() crashes with a small-order public key
https://bugs.webkit.org/show_bug.cgi?id=280672

Reviewed by Javier Fernandez.

gcry_pk_verify() aborts the process when the Ed25519 public key is a
point of order 1, 2 or 4, such as the identity. Reject small-order public
keys and signature R values before calling it, as the WebCrypto spec
requires anyway, so verification returns false instead.

Tests 3 and 6 of eddsa_small_order_points, which use mixed-order points,
still fail: libgcrypt gives the opposite result for them.

* LayoutTests/platform/glib/TestExpectations:
* 
LayoutTests/platform/glib/imported/w3c/web-platform-tests/WebCryptoAPI/sign_verify/eddsa_small_order_points.https.any-expected.txt:
 Added.
* 
LayoutTests/platform/glib/imported/w3c/web-platform-tests/WebCryptoAPI/sign_verify/eddsa_small_order_points.https.any.worker-expected.txt:
 Added.
* Source/WebCore/crypto/gcrypt/CryptoAlgorithmEd25519GCrypt.cpp:
(WebCore::isSmallOrderPoint):
(WebCore::verifyEd25519):

Canonical link: https://commits.webkit.org/323450@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to