Struct RelayHMACKey
HMAC key that the Relay server uses to authentify a connection.
Inherited Members
Namespace: Unity.Networking.Transport.Relay
Assembly: Unity.Networking.Transport.dll
Syntax
public struct RelayHMACKey
Fields
Value
Raw value of the HMAC key.
Declaration
public byte* Value
Field Value
Type | Description |
---|---|
byte* | HMAC key as a fixed byte array. |
k_Length
Length of the HMAC key.
Declaration
public const int k_Length = 64
Field Value
Type | Description |
---|---|
int | Length in bytes. |
Methods
FromByteArray(byte[])
Convert a byte array to an HMAC key.
Declaration
public static RelayHMACKey FromByteArray(byte[] data)
Parameters
Type | Name | Description |
---|---|---|
byte[] | data | Array to convert. |
Returns
Type | Description |
---|---|
RelayHMACKey | New HMAC key. |
FromBytePointer(byte*, int)
Convert a raw buffer to an HMAC key.
Declaration
public static RelayHMACKey FromBytePointer(byte* data, int length)
Parameters
Type | Name | Description |
---|---|---|
byte* | data | |
int | length | Length of the buffer to convert. |
Returns
Type | Description |
---|---|
RelayHMACKey | New HMAC key. |