From 621f96a0ea00980154067febdc012dc1f57d1887 Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Wed, 8 Jan 2020 23:04:58 +0200 Subject: [PATCH] crypto: Fix chacha20-poly1305 cipher. (#41445) chacha20-poly1305 requires `authTagLength` option. Right now typescript complains about improper typing for this case. --- types/node/crypto.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/node/crypto.d.ts b/types/node/crypto.d.ts index b6a6c80f91..87555f92cc 100644 --- a/types/node/crypto.d.ts +++ b/types/node/crypto.d.ts @@ -165,7 +165,7 @@ declare module "crypto" { type: KeyObjectType; } - type CipherCCMTypes = 'aes-128-ccm' | 'aes-192-ccm' | 'aes-256-ccm'; + type CipherCCMTypes = 'aes-128-ccm' | 'aes-192-ccm' | 'aes-256-ccm' | 'chacha20-poly1305'; type CipherGCMTypes = 'aes-128-gcm' | 'aes-192-gcm' | 'aes-256-gcm'; type BinaryLike = string | NodeJS.ArrayBufferView;