Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a16a1e8ea319fea611553fd4d6354559dfd49054
      
https://github.com/WebKit/WebKit/commit/a16a1e8ea319fea611553fd4d6354559dfd49054
  Author: Nitin Mahendru <nitinmahen...@apple.com>
  Date:   2024-04-19 (Fri, 19 Apr 2024)

  Changed paths:
    M Source/WebCore/PAL/pal/PALSwift/CryptoKitShim.swift
    M Source/WebCore/PAL/pal/PALSwift/UnsafeOverlays.swift
    M Source/WebCore/crypto/algorithms/CryptoAlgorithmEd25519.cpp
    M Source/WebCore/crypto/algorithms/CryptoAlgorithmEd25519.h
    M Source/WebCore/crypto/algorithms/CryptoAlgorithmX25519.cpp
    M Source/WebCore/crypto/algorithms/CryptoAlgorithmX25519.h
    M Source/WebCore/crypto/cocoa/CryptoAlgorithmECDSAMac.cpp
    M Source/WebCore/crypto/cocoa/CryptoAlgorithmEd25519Cocoa.cpp
    M Source/WebCore/crypto/cocoa/CryptoAlgorithmX25519Cocoa.cpp
    M Source/WebCore/crypto/gcrypt/CryptoAlgorithmEd25519GCrypt.cpp
    M Source/WebCore/crypto/gcrypt/CryptoAlgorithmX25519GCrypt.cpp

  Log Message:
  -----------
  Add CryptoKit implementation for X25519/Ed25519
rdar://126582690
https://bugs.webkit.org/show_bug.cgi?id=272786

Reviewed by Alex Christensen.

ed25519/x25519 cryptokit implementation.
wpt tests run fine with cryptokit enabled.

Also adding sha1 as an option for ecdsa. That was missed in the last
attempt. Some refactoring in the swift shim to group extensions.

* Source/WebCore/PAL/pal/PALSwift/CryptoKitShim.swift:
(EdRv.errCode):
(EdRv.signature):
(EdRv.keyBytes):
(EdKey.sign(_:key:data:)):
(EdKey.verify(_:key:signature:data:)):
(EdKey.deriveBits(_:priv:pub:)):
* Source/WebCore/PAL/pal/PALSwift/UnsafeOverlays.swift:
(Curve25519.signature(_:)):
(Curve25519.isValidSignature(_:data:)):
(Curve25519.sharedSecretFromKeyAgreement(_:)):
* Source/WebCore/crypto/algorithms/CryptoAlgorithmEd25519.cpp:
(WebCore::CryptoAlgorithmEd25519::sign):
(WebCore::CryptoAlgorithmEd25519::verify):
* Source/WebCore/crypto/algorithms/CryptoAlgorithmEd25519.h:
* Source/WebCore/crypto/algorithms/CryptoAlgorithmX25519.cpp:
(WebCore::CryptoAlgorithmX25519::deriveBits):
* Source/WebCore/crypto/algorithms/CryptoAlgorithmX25519.h:
* Source/WebCore/crypto/cocoa/CryptoAlgorithmECDSAMac.cpp:
(WebCore::toCKHashFunction):
(WebCore::verifyHashParameter):
(WebCore::signECDSACryptoKit):
(WebCore::verifyECDSACryptoKit):
* Source/WebCore/crypto/cocoa/CryptoAlgorithmEd25519Cocoa.cpp:
(WebCore::signEd25519):
(WebCore::verifyEd25519):
(WebCore::signEd25519CryptoKit):
(WebCore::verifyEd25519CryptoKit):
(WebCore::CryptoAlgorithmEd25519::platformSign):
(WebCore::CryptoAlgorithmEd25519::platformVerify):
* Source/WebCore/crypto/cocoa/CryptoAlgorithmX25519Cocoa.cpp:
(WebCore::deriveBitsCryptoKit):
(WebCore::deriveBitsCoreCrypto):
(WebCore::CryptoAlgorithmX25519::platformDeriveBits):
* Source/WebCore/crypto/gcrypt/CryptoAlgorithmEd25519GCrypt.cpp:
(WebCore::CryptoAlgorithmEd25519::platformSign):
(WebCore::CryptoAlgorithmEd25519::platformVerify):
* Source/WebCore/crypto/gcrypt/CryptoAlgorithmX25519GCrypt.cpp:
(WebCore::CryptoAlgorithmX25519::platformDeriveBits):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to