LibWeb: Implement skeleton of SubtleCrypto.decrypt

This commit is contained in:
Andrew Kaster
2024-03-14 22:47:06 -06:00
committed by Andrew Kaster
parent df3d0538a9
commit d71bd185c6
4 changed files with 64 additions and 1 deletions

View File

@@ -111,6 +111,11 @@ public:
return WebIDL::NotSupportedError::create(m_realm, "encrypt is not supported"_fly_string);
}
virtual WebIDL::ExceptionOr<JS::NonnullGCPtr<JS::ArrayBuffer>> decrypt(AlgorithmParams const&, JS::NonnullGCPtr<CryptoKey>, ByteBuffer const&)
{
return WebIDL::NotSupportedError::create(m_realm, "decrypt is not supported"_fly_string);
}
virtual WebIDL::ExceptionOr<JS::NonnullGCPtr<JS::ArrayBuffer>> digest(AlgorithmParams const&, ByteBuffer const&)
{
return WebIDL::NotSupportedError::create(m_realm, "digest is not supported"_fly_string);