LibWeb: Implement the importKey algorithm for Ed25519

This commit is contained in:
Andreas Kling 2024-11-24 20:21:51 +01:00 committed by Andreas Kling
commit 4d25369f29
Notes: github-actions[bot] 2024-11-24 22:29:42 +00:00
6 changed files with 526 additions and 266 deletions

View file

@ -515,6 +515,7 @@ public:
virtual WebIDL::ExceptionOr<JS::Value> verify(AlgorithmParams const&, GC::Ref<CryptoKey>, ByteBuffer const&, ByteBuffer const&) override;
virtual WebIDL::ExceptionOr<Variant<GC::Ref<CryptoKey>, GC::Ref<CryptoKeyPair>>> generate_key(AlgorithmParams const&, bool, Vector<Bindings::KeyUsage> const&) override;
virtual WebIDL::ExceptionOr<GC::Ref<CryptoKey>> import_key(AlgorithmParams const&, Bindings::KeyFormat, CryptoKey::InternalKeyData, bool, Vector<Bindings::KeyUsage> const&) override;
static NonnullOwnPtr<AlgorithmMethods> create(JS::Realm& realm) { return adopt_own(*new ED25519(realm)); }