Files
SabreTools.Serialization/SabreTools.Data.Models/WIA/PartitionEntry.cs
2026-05-12 20:33:53 -04:00

26 lines
825 B
C#

namespace SabreTools.Data.Models.WIA
{
/// <summary>
/// Describes a single Wii partition: its AES title key and two sector ranges.
/// Size: 0x30 bytes.
/// </summary>
public sealed class PartitionEntry
{
/// <summary>
/// Decrypted AES-128 partition title key
/// </summary>
/// <remarks>16 bytes</remarks>
public byte[] PartitionKey { get; set; } = new byte[16];
/// <summary>
/// First sector range for this partition (typically encrypted data)
/// </summary>
public PartitionDataEntry DataEntry0 { get; set; } = new();
/// <summary>
/// Second sector range for this partition (typically decrypted/raw data)
/// </summary>
public PartitionDataEntry DataEntry1 { get; set; } = new();
}
}