mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 12:07:14 +02: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:
committed by
Jelle Raaijmakers
parent
42f55c7c97
commit
b36a702ad1
Notes:
github-actions[bot]
2025-11-27 20:51:16 +00:00
Author: https://github.com/tete17 Commit: https://github.com/LadybirdBrowser/ladybird/commit/b36a702ad14 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6961 Reviewed-by: https://github.com/gmta ✅
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user