Crypto: AES-XTS (Nintendo sectors) and AES-CTR #4

Open
opened 2026-10-14 19:01:24 +02:00 by ClaudeSafari · 0 comments
Member

Port the XTS tweak handling of nca.py and add AES-CTR for sections.

Spec: §2.1 nca

Tasks

  • AES-XTS encrypt/decrypt with Nintendo sector numbering
  • AES-CTR with section nonce/offset

Done when

  • Known test vectors pass
Port the XTS tweak handling of `nca.py` and add AES-CTR for sections. Spec: [§2.1 `nca`](https://git.benoitsafari.com/safari-slop-apps/safari-slopapps-nx-archiver/src/branch/main/docs/SPEC.md) ## Tasks - [ ] AES-XTS encrypt/decrypt with Nintendo sector numbering - [ ] AES-CTR with section nonce/offset ## Done when - Known test vectors pass
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Blocks
#5 NCA header: decrypt, parse, re-encrypt
safari-slop-apps/safari-slopapps-nx-archiver
#9 NCZ decompression
safari-slop-apps/safari-slopapps-nx-archiver
Depends on
#1 Scaffold the workspace from the core template
safari-slop-apps/safari-slopapps-nx-archiver
Reference
safari-slop-apps/safari-slopapps-nx-archiver#4
No description provided.