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...
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.
| |||||
| void | Dispose () | ||||
| Clears all copied private and public RSA components and permanently disables signing. | |||||
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.
|
inline |
Copies a complete DSi-sized private key rather than retaining the caller's cryptographic object.
| rsa | RSA-1024 instance capable of exporting private parameters. |
Definition at line 18 of file NdsDsiRsaSignatureProvider.cs.
|
inline |
Clears all copied private and public RSA components and permanently disables signing.
Definition at line 54 of file NdsDsiRsaSignatureProvider.cs.
|
inline |
Signs a finalized DSi header prefix into fixed signature-field storage.
| signedHeader | Exactly bytes 0x000-0xDFF in their final serialized form. |
| destination | Exactly 128 bytes corresponding to header offsets 0xF80-0xFFF. |
Implements NdsForge.INdsDsiSignatureProvider.
Definition at line 34 of file NdsDsiRsaSignatureProvider.cs.