This commit is contained in:
Rian Drake 2026-10-15 14:09:11 +13:00
commit b578433e37

View file

@ -0,0 +1,21 @@
using System;
using System.Runtime.InteropServices;
namespace Brutal.RakNetApi
{
[StructLayout(LayoutKind.Sequential)]
public unsafe partial struct PublicKey
{
/// <summary>How to interpret the public key, see above</summary>
public PublicKeyMode PublicKeyMode;
/// <summary>Pointer to a public key of length cat::EasyHandshake::PUBLIC_KEY_BYTES. See the Encryption sample.</summary>
public byte* RemoteServerPublicKey;
/// <summary>(Optional) Pointer to a public key of length cat::EasyHandshake::PUBLIC_KEY_BYTES</summary>
public byte* MyPublicKey;
/// <summary>(Optional) Pointer to a private key of length cat::EasyHandshake::PRIVATE_KEY_BYTES</summary>
public byte* MyPrivateKey;
}
}