docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct RelayHMACKey

    HMAC key that the Relay server uses to authentify a connection.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    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.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)