mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 07:17:04 +00:00
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:
committed by
Armando Aguirre
parent
2f995d071e
commit
621f96a0ea
Vendored
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user