Function makeNoiseHandler
- makeNoiseHandler(__namedParameters): {
authenticate: ((data) => void);
decodeFrame: ((newData, onFrame) => void);
decrypt: ((ciphertext) => Buffer);
encodeFrame: ((data) => Buffer);
encrypt: ((plaintext) => Buffer);
finishInit: (() => void);
mixIntoKey: ((data) => void);
processHandshake: ((__namedParameters, noiseKey) => Buffer);
} Parameters
__namedParameters: {
NOISE_HEADER: Uint8Array;
keyPair: KeyPair;
logger: Logger;
mobile: boolean;
}
NOISE_HEADER: Uint8Array
logger: Logger
mobile: boolean
Returns {
authenticate: ((data) => void);
decodeFrame: ((newData, onFrame) => void);
decrypt: ((ciphertext) => Buffer);
encodeFrame: ((data) => Buffer);
encrypt: ((plaintext) => Buffer);
finishInit: (() => void);
mixIntoKey: ((data) => void);
processHandshake: ((__namedParameters, noiseKey) => Buffer);
}
authenticate: ((data) => void)
decodeFrame: ((newData, onFrame) => void)
- (newData, onFrame): void
Parameters
newData: Uint8Array | Buffer
onFrame: ((buff) => void)
Returns void
decrypt: ((ciphertext) => Buffer)
- (ciphertext): Buffer
Returns Buffer
encodeFrame: ((data) => Buffer)
- (data): Buffer
Parameters
data: Uint8Array | Buffer
Returns Buffer
encrypt: ((plaintext) => Buffer)
- (plaintext): Buffer
Returns Buffer
finishInit: (() => void)
mixIntoKey: ((data) => void)
processHandshake: ((__namedParameters, noiseKey) => Buffer)
- (__namedParameters, noiseKey): Buffer
Returns Buffer