passphrase is optional in signer (#30360)

This commit is contained in:
Maxim Makarov
2018-11-14 16:11:16 -08:00
committed by Pranav Senthilnathan
parent f843c65f11
commit d70a9a1d9e
5 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -6372,8 +6372,8 @@ declare module "crypto" {
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, padding?: number, saltLength?: number }): Buffer;
sign(private_key: string | { key: string; passphrase: string, padding?: number, saltLength?: number }, 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;
}
function createVerify(algorith: string, options?: stream.WritableOptions): Verify;
interface Verify extends NodeJS.WritableStream {
+2 -2
View File
@@ -3617,8 +3617,8 @@ declare module "crypto" {
export interface Signer extends NodeJS.WritableStream {
update(data: string | Buffer): Signer;
update(data: string | Buffer, 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 }): Buffer;
sign(private_key: string | { key: string; passphrase?: string }, output_format: HexBase64Latin1Encoding): string;
}
export function createVerify(algorith: string): Verify;
export interface Verify extends NodeJS.WritableStream {
+2 -2
View File
@@ -3654,8 +3654,8 @@ declare module "crypto" {
export interface Signer extends NodeJS.WritableStream {
update(data: string | Buffer): Signer;
update(data: string | Buffer, 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 }): Buffer;
sign(private_key: string | { key: string; passphrase?: string }, output_format: HexBase64Latin1Encoding): string;
}
export function createVerify(algorith: string): Verify;
export interface Verify extends NodeJS.WritableStream {
+2 -2
View File
@@ -5327,8 +5327,8 @@ declare module "crypto" {
export interface Signer extends NodeJS.WritableStream {
update(data: string | Buffer | DataView): Signer;
update(data: string | Buffer | DataView, 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 }): Buffer;
sign(private_key: string | { key: string; passphrase?: string }, output_format: HexBase64Latin1Encoding): string;
}
export function createVerify(algorith: string): Verify;
export interface Verify extends NodeJS.WritableStream {
+2 -2
View File
@@ -5488,8 +5488,8 @@ declare module "crypto" {
export interface Signer extends NodeJS.WritableStream {
update(data: string | Buffer | DataView): Signer;
update(data: string | Buffer | DataView, 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 }): Buffer;
sign(private_key: string | { key: string; passphrase?: string }, output_format: HexBase64Latin1Encoding): string;
}
export function createVerify(algorith: string): Verify;
export interface Verify extends NodeJS.WritableStream {