mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-13 05:20:25 +00:00
passphrase is optional in signer (#30360)
This commit is contained in:
committed by
Pranav Senthilnathan
parent
f843c65f11
commit
d70a9a1d9e
Vendored
+2
-2
@@ -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 {
|
||||
|
||||
Vendored
+2
-2
@@ -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 {
|
||||
|
||||
Vendored
+2
-2
@@ -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 {
|
||||
|
||||
Vendored
+2
-2
@@ -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 {
|
||||
|
||||
Vendored
+2
-2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user