crypto: Fix chacha20-poly1305 cipher. (#41445)

chacha20-poly1305 requires `authTagLength` option. Right now typescript complains about improper typing for this case.
This commit is contained in:
Paul Miller
2020-01-08 13:04:58 -08:00
committed by Armando Aguirre
parent 2f995d071e
commit 621f96a0ea
+1 -1
View File
@@ -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;