nn::nex::StreamSettings::SetEncryptionKey Member Function

Syntax

void SetEncryptionKey(
     const void * ptr,
     qUnsignedInt32 ptrLen
);

void SetEncryptionKey(
     const qVector< qByte > & key
);

Overloaded Member Functions

SetEncryptionKey ( const void *, qUnsignedInt32 ) Sets an encryption key.
SetEncryptionKey ( const qVector< qByte > & ) Sets an encryption key.

Description of SetEncryptionKey ( const void *, qUnsignedInt32 )

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.

Description of 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