nn::nex::Network::SetP2PDataPacketDefaultSignatureKe Member Function

Syntax

static void SetP2PDataPacketDefaultSignatureKey(
     const qByte * pKeyData,
     qUnsignedInt32 uiKeyLen
);

Parameters

Name Description
in pKeyData Pointer indicating the start of the key data.
in uiKeyLen The key data length (in bytes). If set to 0, the signature will be computed without using any key data.

Return Values

None.

Description

Sets the key data to use when computing a default signature for peer-to-peer communications.

By default, data is checked using signatures in peer-to-peer communications by the NEX library. By calling this function, the key data set by the application is also used when computing the signature, and this slightly increases the security of the communications.

A key with a length between MIN_P2P_SIGNATURE_KEY_LEN and MAX_P2P_SIGNATURE_KEY_LEN can be set.

Be sure to run this function before creating NgsFacade and NetZ class objects.

Revision History

2011/03/18
Initial version.

CONFIDENTIAL