2025-09-26 10:57:15 -04:00
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
2025-09-26 13:06:18 -04:00
|
|
|
namespace SabreTools.Data.Models.VPK
|
2025-09-26 10:57:15 -04:00
|
|
|
{
|
|
|
|
|
/// <see href="https://developer.valvesoftware.com/wiki/VPK_(file_format)"/>
|
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
|
|
|
public sealed class SignatureSection
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Always seen as 160 (0xA0) bytes
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint PublicKeySize;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-10-30 20:44:16 -04:00
|
|
|
/// <see cref="PublicKeySize"/>
|
2025-09-26 10:57:15 -04:00
|
|
|
/// </summary>
|
2025-10-31 13:59:28 -04:00
|
|
|
public byte[] PublicKey = [];
|
2025-09-26 10:57:15 -04:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Always seen as 128 (0x80) bytes
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint SignatureSize;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-10-30 20:44:16 -04:00
|
|
|
/// <see cref="SignatureSize"/>
|
2025-09-26 10:57:15 -04:00
|
|
|
/// </summary>
|
2025-10-31 13:59:28 -04:00
|
|
|
public byte[] Signature = [];
|
2025-09-26 10:57:15 -04:00
|
|
|
}
|
2025-10-30 20:44:16 -04:00
|
|
|
}
|