summaryrefslogtreecommitdiff
path: root/ext/crypto/lib.deno_crypto.d.ts
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2021-10-08 20:59:36 +0530
committerGitHub <noreply@github.com>2021-10-08 17:29:36 +0200
commita5d3c8b06cba652b902fdfaa3f13ed40483e90c0 (patch)
tree967413a9cdab742cbc7a500006859ac938b79d53 /ext/crypto/lib.deno_crypto.d.ts
parentc49a057599d68b27c88cc123a9fcd6703b49310c (diff)
feat(ext/crypto): implement deriveBits for ECDH (p256) (#11873)
Diffstat (limited to 'ext/crypto/lib.deno_crypto.d.ts')
-rw-r--r--ext/crypto/lib.deno_crypto.d.ts10
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>;