LibWeb: Implement decapsulateKey for SubtleCrypto

This commit is contained in:
Tete17
2025-12-06 20:22:19 +01:00
committed by Shannon Booth
parent ebcf85f6e8
commit c9b8b4557d
Notes: github-actions[bot] 2025-12-28 17:58:05 +00:00
4 changed files with 104 additions and 0 deletions

View File

@@ -382,6 +382,11 @@ public:
return WebIDL::NotSupportedError::create(m_realm, "encapsulate is not supported"_utf16);
}
virtual WebIDL::ExceptionOr<GC::Ref<JS::ArrayBuffer>> decapsulate(AlgorithmParams const&, ByteBuffer const&)
{
return WebIDL::NotSupportedError::create(m_realm, "decalpsulate is not supported"_utf16);
}
static NonnullOwnPtr<AlgorithmMethods> create(JS::Realm& realm) { return adopt_own(*new AlgorithmMethods(realm)); }
protected: