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