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

Snapshots a managed RSA-1024 private key for deterministic DSi header signing. Dispose the provider after its build recipes finish so copied private parameters are cleared; the source RSA remains caller-owned. More...

Inheritance diagram for NdsForge.NdsDsiRsaSignatureProvider:

Public Member Functions

 NdsDsiRsaSignatureProvider (RSA rsa)
 Copies a complete DSi-sized private key rather than retaining the caller's cryptographic object.
void SignHeader (ReadOnlySpan< byte > signedHeader, Span< byte > destination)
 Signs a finalized DSi header prefix into fixed signature-field storage.
Parameters
signedHeaderExactly bytes 0x000-0xDFF in their final serialized form.
destinationExactly 128 bytes corresponding to header offsets 0xF80-0xFFF.

void Dispose ()
 Clears all copied private and public RSA components and permanently disables signing.

Detailed Description

Snapshots a managed RSA-1024 private key for deterministic DSi header signing. Dispose the provider after its build recipes finish so copied private parameters are cleared; the source RSA remains caller-owned.

Definition at line 9 of file NdsDsiRsaSignatureProvider.cs.

Constructor & Destructor Documentation

◆ NdsDsiRsaSignatureProvider()

NdsForge.NdsDsiRsaSignatureProvider.NdsDsiRsaSignatureProvider ( RSA rsa)
inline

Copies a complete DSi-sized private key rather than retaining the caller's cryptographic object.

Parameters
rsaRSA-1024 instance capable of exporting private parameters.

Definition at line 18 of file NdsDsiRsaSignatureProvider.cs.

Member Function Documentation

◆ Dispose()

void NdsForge.NdsDsiRsaSignatureProvider.Dispose ( )
inline

Clears all copied private and public RSA components and permanently disables signing.

Definition at line 54 of file NdsDsiRsaSignatureProvider.cs.

◆ SignHeader()

void NdsForge.NdsDsiRsaSignatureProvider.SignHeader ( ReadOnlySpan< byte > signedHeader,
Span< byte > destination )
inline

Signs a finalized DSi header prefix into fixed signature-field storage.

Parameters
signedHeaderExactly bytes 0x000-0xDFF in their final serialized form.
destinationExactly 128 bytes corresponding to header offsets 0xF80-0xFFF.

Implements NdsForge.INdsDsiSignatureProvider.

Definition at line 34 of file NdsDsiRsaSignatureProvider.cs.


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