[@types/node] add missing optional padding and saltLength (#27866)

This commit is contained in:
York Yao
2018-08-07 02:59:01 +08:00
committed by Sheetal Nandi
parent 059cf948f8
commit 3bf0d7c946

View File

@@ -5863,8 +5863,8 @@ declare module "crypto" {
export interface Signer extends NodeJS.WritableStream {
update(data: string | Buffer | NodeJS.TypedArray | DataView): Signer;
update(data: string, input_encoding: Utf8AsciiLatin1Encoding): Signer;
sign(private_key: string | { key: string; passphrase: string }): Buffer;
sign(private_key: string | { key: string; passphrase: string }, output_format: HexBase64Latin1Encoding): string;
sign(private_key: string | { key: string; passphrase: string, padding?: number, saltLength?: number }): Buffer;
sign(private_key: string | { key: string; passphrase: string, padding?: number, saltLength?: number }, output_format: HexBase64Latin1Encoding): string;
}
export function createVerify(algorith: string, options?: stream.WritableOptions): Verify;
export interface Verify extends NodeJS.WritableStream {