LibWeb: Implement encapsulateBits 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:
Tete17
2025-11-27 19:36:42 +01:00
committed by Jelle Raaijmakers
parent b36a702ad1
commit c790de24dd
Notes: github-actions[bot] 2025-11-27 20:51:09 +00:00
3 changed files with 70 additions and 0 deletions

View File

@@ -77,4 +77,5 @@ interface SubtleCrypto {
// https://wicg.github.io/webcrypto-modern-algos/#partial-subtlecrypto-interface
Promise<EncapsulatedKey> encapsulateKey(AlgorithmIdentifier encapsulationAlgorithm, CryptoKey encapsulationKey, AlgorithmIdentifier sharedKeyAlgorithm, boolean extractable, sequence<KeyUsage> keyUsages);
Promise<EncapsulatedBits> encapsulateBits(AlgorithmIdentifier encapsulationAlgorithm, CryptoKey encapsulationKey);
};