mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibWeb: Implement encapsulateKey method for SubtleCrypto
None of the current algorithms supports the method but the future post quantum algorithms will do so.
This commit is contained in:
parent
42f55c7c97
commit
b36a702ad1
Notes:
github-actions[bot]
2025-11-27 20:51:16 +00:00
Author: https://github.com/tete17
Commit: b36a702ad1
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6961
Reviewed-by: https://github.com/gmta ✅
4 changed files with 108 additions and 0 deletions
|
|
@ -377,6 +377,11 @@ public:
|
|||
return WebIDL::NotSupportedError::create(m_realm, "unwwrapKey is not supported"_utf16);
|
||||
}
|
||||
|
||||
virtual WebIDL::ExceptionOr<GC::Ref<EncapsulatedBits>> encapsulate(AlgorithmParams const&, GC::Ref<CryptoKey>)
|
||||
{
|
||||
return WebIDL::NotSupportedError::create(m_realm, "encapsulate is not supported"_utf16);
|
||||
}
|
||||
|
||||
static NonnullOwnPtr<AlgorithmMethods> create(JS::Realm& realm) { return adopt_own(*new AlgorithmMethods(realm)); }
|
||||
|
||||
protected:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue