mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibWeb: Implement skeleton of SubtleCrypto.encrypt
No algorithms implement this yet, but this is the high level entry point.
This commit is contained in:
parent
ae4d90c88a
commit
df3d0538a9
Notes:
sideshowbarker
2024-07-17 05:41:34 +09:00
Author: https://github.com/ADKaster
Commit: df3d0538a9
Pull-request: https://github.com/SerenityOS/serenity/pull/23596
Reviewed-by: https://github.com/alimpfard
6 changed files with 76 additions and 1 deletions
|
@ -106,6 +106,11 @@ class AlgorithmMethods {
|
|||
public:
|
||||
virtual ~AlgorithmMethods();
|
||||
|
||||
virtual WebIDL::ExceptionOr<JS::NonnullGCPtr<JS::ArrayBuffer>> encrypt(AlgorithmParams const&, JS::NonnullGCPtr<CryptoKey>, ByteBuffer const&)
|
||||
{
|
||||
return WebIDL::NotSupportedError::create(m_realm, "encrypt 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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue