namespace SabreTools.Data.Models.STFS
{
///
/// Signature signed by console, for "CON " format STFS files
///
///
public class ConsoleSignature : Signature
{
///
/// Public Key Certificate Size
///
/// Big-endian
public ushort CertificateSize { get; set; }
///
/// Certificate Owner Console ID
///
/// 5 bytes
public byte[] ConsoleID { get; set; } = new byte[5];
///
/// Certificate Owner Console Part Number
///
/// 20 bytes, ASCII string
public byte[] PartNumber { get; set; } = new byte[20];
///
/// Certificate Owner Console Type (1 for devkit, 2 for retail)
///
public byte ConsoleType { get; set; }
///
/// Certificate Date of Generation
///
/// 8 bytes, ASCII string
public byte[] CertificateDate { get; set; } = new byte[8];
///
/// Public Exponent
///
/// 4 bytes
public byte[] PublicExponent { get; set; } = new byte[4];
///
/// Public Modulus
///
/// 128 bytes
public byte[] PublicModulus { get; set; } = new byte[128];
///
/// Certificate Signature
///
/// 256 bytes
public byte[] CertificateSignature { get; set; } = new byte[256];
///
/// Signature
///
/// 128 bytes
public byte[] Signature { get; set; } = new byte[128];
}
}