Class X25519EcdheRsaSha256
Methods
calculateServerMessageSize
- calculateServerMessageSize(keysize: number): number
-
Parameters
Returns number
encodeClientKeyExchangeMessage
- encodeClientKeyExchangeMessage(output: Buffer): void
encodeServerKeyExchangeMessage
- encodeServerKeyExchangeMessage(privateKey: Buffer): void
verifyServerMessageAndGenerateSharedKey
- verifyServerMessageAndGenerateSharedKey(serverKeyExchangeMessage: Buffer, publicKey: Buffer): false | Buffer
-
Parameters
-
serverKeyExchangeMessage: Buffer
-
publicKey: Buffer
Returns false | Buffer