diff options
Diffstat (limited to 'ext/crypto/lib.deno_crypto.d.ts')
-rw-r--r-- | ext/crypto/lib.deno_crypto.d.ts | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ext/crypto/lib.deno_crypto.d.ts b/ext/crypto/lib.deno_crypto.d.ts index 673e8f9cb..e5592d5bf 100644 --- a/ext/crypto/lib.deno_crypto.d.ts +++ b/ext/crypto/lib.deno_crypto.d.ts @@ -125,6 +125,10 @@ interface Pbkdf2Params extends Algorithm { salt: BufferSource; } +interface EcdhKeyDeriveParams extends Algorithm { + public: CryptoKey; +} + interface AesKeyGenParams extends Algorithm { length: number; } @@ -219,7 +223,11 @@ interface SubtleCrypto { data: BufferSource, ): Promise<ArrayBuffer>; deriveBits( - algorithm: AlgorithmIdentifier | HkdfParams | Pbkdf2Params, + algorithm: + | AlgorithmIdentifier + | HkdfParams + | Pbkdf2Params + | EcdhKeyDeriveParams, baseKey: CryptoKey, length: number, ): Promise<ArrayBuffer>; |