LibWeb: Implement ED25519 sign for SubtleCrypto

This commit is contained in:
stelar7 2024-03-31 23:04:58 +02:00 committed by Andrew Kaster
commit 9ad10566b2
Notes: sideshowbarker 2024-07-17 12:02:22 +09:00
5 changed files with 46 additions and 14 deletions

View file

@ -266,6 +266,7 @@ private:
class ED25519 : public AlgorithmMethods {
public:
virtual WebIDL::ExceptionOr<JS::NonnullGCPtr<JS::ArrayBuffer>> sign(AlgorithmParams const&, JS::NonnullGCPtr<CryptoKey>, ByteBuffer const&) override;
virtual WebIDL::ExceptionOr<Variant<JS::NonnullGCPtr<CryptoKey>, JS::NonnullGCPtr<CryptoKeyPair>>> generate_key(AlgorithmParams const&, bool, Vector<Bindings::KeyUsage> const&) override;
static NonnullOwnPtr<AlgorithmMethods> create(JS::Realm& realm) { return adopt_own(*new ED25519(realm)); }