docs.unity3d.com
    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.ReferenceEquals(Object, Object)
    Object.GetType()
    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.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023