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

Configures the optional DSi hierarchical HMAC-SHA1 tables that cover common NTR content and DSi-mode TWL Programs. Table sizes and offsets remain layout-owned so callers cannot supply internally inconsistent values. More...

Properties

static NdsDsiDigestOptions Default = new() [get]
 Uses the conventional 1 KiB content sector and 32 sector hashes per second-level block.
int SectorSize = 0x400 [get]
 Splits each covered content range into independently authenticated chunks. The value must be a power of two between 512 bytes and 16 MiB so hostile recipes cannot force pathological buffers.
int BlockSectorCount = 0x20 [get]
 Groups this many consecutive 20-byte sector HMACs into one block-table HMAC. Values from one through 65,536 are supported; 32 matches common retail metadata.

Detailed Description

Configures the optional DSi hierarchical HMAC-SHA1 tables that cover common NTR content and DSi-mode TWL Programs. Table sizes and offsets remain layout-owned so callers cannot supply internally inconsistent values.

Definition at line 7 of file NdsDsiDigestOptions.cs.

Property Documentation

◆ BlockSectorCount

int NdsForge.NdsDsiDigestOptions.BlockSectorCount = 0x20
get

Groups this many consecutive 20-byte sector HMACs into one block-table HMAC. Values from one through 65,536 are supported; 32 matches common retail metadata.

Definition at line 22 of file NdsDsiDigestOptions.cs.

◆ Default

NdsDsiDigestOptions NdsForge.NdsDsiDigestOptions.Default = new()
staticget

Uses the conventional 1 KiB content sector and 32 sector hashes per second-level block.

Definition at line 10 of file NdsDsiDigestOptions.cs.

◆ SectorSize

int NdsForge.NdsDsiDigestOptions.SectorSize = 0x400
get

Splits each covered content range into independently authenticated chunks. The value must be a power of two between 512 bytes and 16 MiB so hostile recipes cannot force pathological buffers.

Definition at line 16 of file NdsDsiDigestOptions.cs.


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