[webkit-changes] [WebKit/WebKit] bc83c7: Specific methods for the GCrypt based OKP key gene...

Javier Fernandez Garcia-Boente noreply at github.com
Tue Sep 5 02:51:57 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: bc83c7f25f797f7b4a0cfc8c0bcc0a05e6425361
      https://github.com/WebKit/WebKit/commit/bc83c7f25f797f7b4a0cfc8c0bcc0a05e6425361
  Author: Javier Fernandez <jfernandez at igalia.com>
  Date:   2023-09-05 (Tue, 05 Sep 2023)

  Changed paths:
    M Source/WebCore/crypto/gcrypt/CryptoKeyOKPGCrypt.cpp

  Log Message:
  -----------
  Specific methods for the GCrypt based OKP key generation operation.
https://bugs.webkit.org/show_bug.cgi?id=261106

Reviewed by Žan Doberšek.

This PR defines standalone metods methos for the key generation
operation of the Ed25519 and X25519 algorithms. This approach makes
easier to implement other algorithms that use the OKP key format
as well (eg Ed488 and X488)

It's just a refactoring with no behavior change, hence we don't need
to add new tests.

* Source/WebCore/crypto/gcrypt/CryptoKeyOKPGCrypt.cpp:
(WebCore::gcryptGenerateEd25519Keys):
(WebCore::gcryptGenerateX25519Keys):
(WebCore::CryptoKeyOKP::platformGeneratePair):
(WebCore::CryptoKeyOKP::platformCheckPairedKeys):
(WebCore::CryptoKeyOKP::generateJwkX const):

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




More information about the webkit-changes mailing list