in lib/node.js [655:705]
declare function publicDecrypt(
key: crypto$key,
buffer: Buffer
): Buffer;
declare function publicEncrypt(
key: crypto$key,
buffer: Buffer
): Buffer;
// `UNUSED` argument strictly enforces arity to enable overloading this
// function with 1-arg and 2-arg variants.
declare function pseudoRandomBytes(size: number, UNUSED: void): Buffer;
declare function pseudoRandomBytes(
size: number,
callback: (err: ?Error, buffer: Buffer) => void
): void;
// `UNUSED` argument strictly enforces arity to enable overloading this
// function with 1-arg and 2-arg variants.
declare function randomBytes(size: number, UNUSED: void): Buffer;
declare function randomBytes(
size: number,
callback: (err: ?Error, buffer: Buffer) => void
): void;
declare function randomFillSync(buffer: Buffer | $TypedArray | DataView): void
declare function randomFillSync(buffer: Buffer | $TypedArray | DataView, offset: number): void
declare function randomFillSync(
buffer: Buffer | $TypedArray | DataView,
offset: number,
size: number
): void
declare function randomFill(
buffer: Buffer | $TypedArray | DataView,
callback: (err: ?Error, buffer: Buffer) => void
): void
declare function randomFill(
buffer: Buffer | $TypedArray | DataView,
offset: number,
callback: (err: ?Error, buffer: Buffer) => void
): void
declare function randomFill(
buffer: Buffer | $TypedArray | DataView,
offset: number,
size: number,
callback: (err: ?Error, buffer: Buffer) => void
): void
declare function timingSafeEqual(
a: Buffer | $TypedArray | DataView,
b: Buffer | $TypedArray | DataView
): boolean;
}
type net$Socket$address = {