mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
update node.d.ts
in publicEncrypt- and privateDecrypt-function is passpharse and padding optional
This commit is contained in:
Vendored
+3
-3
@@ -1672,12 +1672,12 @@ declare module "crypto" {
|
||||
export function pseudoRandomBytes(size: number, callback: (err: Error, buf: Buffer) =>void ): void;
|
||||
export interface RsaPublicKey {
|
||||
key: string;
|
||||
padding: any;
|
||||
padding?: any;
|
||||
}
|
||||
export interface RsaPrivateKey {
|
||||
key: string;
|
||||
passphrase: string,
|
||||
padding: any;
|
||||
passphrase?: string,
|
||||
padding?: any;
|
||||
}
|
||||
export function publicEncrypt(public_key: string|RsaPublicKey, buffer: Buffer): Buffer
|
||||
export function privateDecrypt(private_key: string|RsaPrivateKey, buffer: Buffer): Buffer
|
||||
|
||||
Reference in New Issue
Block a user