mirror of
https://github.com/servo/servo
synced 2026-05-08 16:12:15 +02:00
Implement the `getPublicKey` method of the `SubtleCrypto` interface. This patch includes: - Implementing the steps of the `getPublicKey` method. - Adding the new "getPublicKey" operation to the internal object `supportedAlgorithms`, for registering cryptographic algorithms that support "getPublicKey" operation, and used by the `getPublicKey` method to check whether the cryptographic algorithm supports "getPublicKey" operation and perform the operation if it is supported. - Implementing the "getPublicKey" operation of X25519 for demonstrating and testing the functionality of the `getPublicKey` method. Specification: <https://wicg.github.io/webcrypto-modern-algos/#SubtleCrypto-method-getPublicKey> Testing: Pass WPT tests that were expected to fail. Fixes: Part of #43072 Signed-off-by: Kingsley Yung <kingsley@kkoyung.dev>