static void SetP2PDataPacketDefaultSignatureKey( const qByte * pKeyData, qUnsignedInt32 uiKeyLen );
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. |
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.
CONFIDENTIAL