LibWeb: Implement the exportKey algorithm for Ed25519

This commit is contained in:
Andreas Kling 2024-11-24 20:48:46 +01:00 committed by Andreas Kling
parent 4d25369f29
commit ed7b1caba2
Notes: github-actions[bot] 2024-11-24 22:29:36 +00:00
4 changed files with 115 additions and 9 deletions

View file

@ -516,6 +516,7 @@ public:
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;
virtual WebIDL::ExceptionOr<GC::Ref<JS::Object>> export_key(Bindings::KeyFormat, GC::Ref<CryptoKey>) override;
static NonnullOwnPtr<AlgorithmMethods> create(JS::Realm& realm) { return adopt_own(*new ED25519(realm)); }