LibWeb: Implement skeleton of SubtleCrypto.verify

This commit is contained in:
stelar7 2024-03-27 01:50:25 +01:00 committed by Andrew Kaster
parent bc2a5e24bc
commit 6906b7c1e6
Notes: sideshowbarker 2024-07-17 08:34:29 +09:00
4 changed files with 71 additions and 1 deletions

View file

@ -167,6 +167,11 @@ public:
return WebIDL::NotSupportedError::create(m_realm, "sign is not supported"_fly_string);
}
virtual WebIDL::ExceptionOr<JS::NonnullGCPtr<JS::ArrayBuffer>> verify(AlgorithmParams const&, JS::NonnullGCPtr<CryptoKey>, ByteBuffer const&, ByteBuffer const&)
{
return WebIDL::NotSupportedError::create(m_realm, "verify 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);