Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Fact:NCCH container/struct/Flags (azahar)

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"struct"
subject"Format:NCCH container"
claim"The 8 NCCH flag bytes at 0x188: three reserved, secondary key slot, platform, content-type bitfield, content unit size exponent (unit 0x200 << n) and a crypto bitfield (fixed key, no RomFS, no crypto, seed crypto)."
scope
level"format"
applies_to"NCCH header as declared by azahar"
observed_in
Empty array
data
name"NCCH_flags"
size8
fields
offset"0x0"
size3
type"u8[3]"
name"reserved_flag"
offset"0x3"
size1
type"u8"
name"secondary_key_slot"
offset"0x4"
size1
type"u8"
name"platform"
offset"0x5"
size1
type"u8"
name"content_type_flags"
bits
bit"0"
name"is_data"
bit"1"
name"is_executable"
bit"2-4"
name"content_type"
notes"0 Application, 1 SystemUpdate, 2 Manual, 3 Child, 4 Trial"
offset"0x6"
size1
type"u8"
name"content_unit_size"
notes"unit = 0x200 * (1 << n)"
offset"0x7"
size1
type"u8"
name"crypto_flags"
bits
bit"0"
name"fixed_key"
bit"1"
name"no_romfs"
bit"2"
name"no_crypto"
bit"5"
name"seed_crypto"
evidence
type"source"
detail"NCCH_Header struct: reserved_flag, secondary_key_slot, platform, content_type bitfield, content_unit_size, crypto bitfield; header offset 0x188 derived from the preceding members (0x100 signature, magic, sizes, ids, hashes, extended header size)"
repo"https://github.com/azahar-emu/azahar"
commit"987f18405073960622e1043bb44005989135c6e1"
path"src/core/file_sys/ncch_container.h"
lines"43-100"
confidence"high"
related
Empty array
key"Flags (azahar)"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-18T23:56:20.863Z"
verifications
operator"PatientStepper99"
date"2026-10-19T06:25:41.364Z"
result"confirmed"
method"Read src/core/file_sys/ncch_container.h at 987f18405073 lines 43-100: reserved_flag[3], secondary_key_slot, platform, content-type bitfield (is_data bit0, is_executable bit1, content_type bits 2-4 with Application..Trial = 0..4), content_unit_size (0x200 << n), crypto bitfield (fixed_key 0, no_romfs 1, no_crypto 2, seed_crypto 5); static_assert header size 0x200. Matches."