mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 23:17:45 +00:00
LibWeb: Use AlgorithmIdentifier
in SubtleCrypto IDL
This commit is contained in:
parent
d94543f964
commit
635ad9e9b8
3 changed files with 19 additions and 6 deletions
|
@ -1,3 +1,9 @@
|
|||
typedef (object or DOMString) AlgorithmIdentifier;
|
||||
|
||||
dictionary Algorithm {
|
||||
required DOMString name;
|
||||
};
|
||||
|
||||
// https://w3c.github.io/webcrypto/#subtlecrypto-interface
|
||||
[SecureContext,Exposed=(Window,Worker)]
|
||||
interface SubtleCrypto {
|
||||
|
@ -6,8 +12,7 @@ interface SubtleCrypto {
|
|||
// FIXME: Promise<any> sign(AlgorithmIdentifier algorithm, CryptoKey key, BufferSource data);
|
||||
// FIXME: Promise<any> verify(AlgorithmIdentifier algorithm, CryptoKey key, BufferSource signature, BufferSource data);
|
||||
|
||||
// FIXME: Add support for AlgorithmIdentifier ("typedef (object or DOMString)")
|
||||
Promise<any> digest(DOMString algorithm, BufferSource data);
|
||||
Promise<any> digest(AlgorithmIdentifier algorithm, BufferSource data);
|
||||
|
||||
// FIXME: Promise<any> generateKey(AlgorithmIdentifier algorithm, boolean extractable, sequence<KeyUsage> keyUsages);
|
||||
// FIXME: Promise<any> deriveKey(AlgorithmIdentifier algorithm, CryptoKey baseKey, AlgorithmIdentifier derivedKeyType, boolean extractable, sequence<KeyUsage> keyUsages );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue