NdsForge.NET 1.0.1
Read, validate, edit, compare, and build Nintendo DS and DSi images from .NET
Loading...
Searching...
No Matches
NdsForge.NdsKey1KeyTable Class Referencesealed

Holds the 18 round words and four 256-word substitution boxes consumed by the DS KEY1 algorithm. The library deliberately has no built-in retail table: callers obtain the 0x1048 bytes from a source they are authorized to use and can keep that provenance outside build recipes and logs. More...

Public Member Functions

 NdsKey1KeyTable (ReadOnlySpan< byte > data)
 Loads the complete native little-endian key schedule without assuming where it originated.
byte[] Export ()
 Exports the seed schedule exactly as little-endian words for controlled persistence or interop.

Static Public Attributes

const int ByteLength = 0x1048
 Number of little-endian bytes in the complete KEY1 seed schedule.

Detailed Description

Holds the 18 round words and four 256-word substitution boxes consumed by the DS KEY1 algorithm. The library deliberately has no built-in retail table: callers obtain the 0x1048 bytes from a source they are authorized to use and can keep that provenance outside build recipes and logs.

Definition at line 10 of file NdsKey1KeyTable.cs.

Constructor & Destructor Documentation

◆ NdsKey1KeyTable()

NdsForge.NdsKey1KeyTable.NdsKey1KeyTable ( ReadOnlySpan< byte > data)
inline

Loads the complete native little-endian key schedule without assuming where it originated.

Parameters
dataExactly 0x1048 bytes: 18 round words followed by 1024 substitution-box words.

Definition at line 20 of file NdsKey1KeyTable.cs.

Member Function Documentation

◆ Export()

byte[] NdsForge.NdsKey1KeyTable.Export ( )
inline

Exports the seed schedule exactly as little-endian words for controlled persistence or interop.

Returns
A new 0x1048-byte array that cannot mutate this instance.

Definition at line 36 of file NdsKey1KeyTable.cs.

Member Data Documentation

◆ ByteLength

const int NdsForge.NdsKey1KeyTable.ByteLength = 0x1048
static

Number of little-endian bytes in the complete KEY1 seed schedule.

Definition at line 13 of file NdsKey1KeyTable.cs.


The documentation for this class was generated from the following file: