LibWeb: Implement skeleton of SubtleCrypto.deriveBits

This commit is contained in:
stelar7 2024-03-27 19:15:49 +01:00 committed by Andreas Kling
commit daf2c4ce46
Notes: sideshowbarker 2024-07-16 20:44:03 +09:00
4 changed files with 54 additions and 1 deletions

View file

@ -177,6 +177,11 @@ public:
return WebIDL::NotSupportedError::create(m_realm, "digest is not supported"_fly_string);
}
virtual WebIDL::ExceptionOr<JS::NonnullGCPtr<JS::ArrayBuffer>> derive_bits(AlgorithmParams const&, JS::NonnullGCPtr<CryptoKey>, u32)
{
return WebIDL::NotSupportedError::create(m_realm, "deriveBits is not supported"_fly_string);
}
virtual WebIDL::ExceptionOr<JS::NonnullGCPtr<CryptoKey>> import_key(AlgorithmParams const&, Bindings::KeyFormat, CryptoKey::InternalKeyData, bool, Vector<Bindings::KeyUsage> const&)
{
return WebIDL::NotSupportedError::create(m_realm, "importKey is not supported"_fly_string);