void SetEncryptionKey( const void * ptr, qUnsignedInt32 ptrLen ); void SetEncryptionKey( const qVector< qByte > & key );
SetEncryptionKey ( const void *, qUnsignedInt32 )
|
Sets an encryption key. |
SetEncryptionKey ( const qVector< qByte > & )
|
Sets an encryption key. |
When using encryption, before using NetZ to execute the Session::JoinSession
or Session::CreateSession
function, execute Stream::GetSettings.SetIsEncryptionRequired(true);
and set a key using Stream::GetSettings.SetEncryptionKey
. If canceling encryption, do so after executing the NetZ::Terminate
function. Operations outside the correct segment result in an assertion, or settings fail.
The length of the key can be between MIN_ENCRYPT_KEY_LEN
and MAX_ENCRYPT_KEY_LEN
bytes.
SetEncryptionKey ( const qVector< qByte > & )
When using encryption, before using NetZ to execute the Session::JoinSession
or Session::CreateSession
function, execute Stream::GetSettings.SetIsEncryptionRequired(true);
and set a key using Stream::GetSettings.SetEncryptionKey
. If canceling encryption, do so after executing the NetZ::Terminate
function. Operations outside the correct segment result in an assertion, or settings fail.
The length of the key can be between MIN_ENCRYPT_KEY_LEN
and MAX_ENCRYPT_KEY_LEN
bytes.
CONFIDENTIAL