diff options
Diffstat (limited to 'ext/crypto/lib.deno_crypto.d.ts')
-rw-r--r-- | ext/crypto/lib.deno_crypto.d.ts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ext/crypto/lib.deno_crypto.d.ts b/ext/crypto/lib.deno_crypto.d.ts index 4ed7c51f8..682296d3c 100644 --- a/ext/crypto/lib.deno_crypto.d.ts +++ b/ext/crypto/lib.deno_crypto.d.ts @@ -129,6 +129,10 @@ interface Pbkdf2Params extends Algorithm { salt: BufferSource; } +interface AesDerivedKeyParams extends Algorithm { + length: number; +} + interface EcdhKeyDeriveParams extends Algorithm { public: CryptoKey; } @@ -235,6 +239,18 @@ interface SubtleCrypto { baseKey: CryptoKey, length: number, ): Promise<ArrayBuffer>; + deriveKey( + algorithm: AlgorithmIdentifier | HkdfParams | Pbkdf2Params, + baseKey: CryptoKey, + derivedKeyType: + | AlgorithmIdentifier + | AesDerivedKeyParams + | HmacImportParams + | HkdfParams + | Pbkdf2Params, + extractable: boolean, + keyUsages: KeyUsage[], + ): Promise<CryptoKey>; wrapKey( format: KeyFormat, key: CryptoKey, |