docs(libSceNpEntitlementAccess): note how two titles call sceNpEntitlementAccessGetEntitlementKey #11529

Merged
milescoviello merged 2 commits from upstream-pr/11529 into main 2026-10-28 18:20:42 +00:00
milescoviello commented 2026-10-26 18:06:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-26T18:06:59Z.


What

The sceNpEntitlementAccessGetEntitlementKey entry in docs/dev/debt/libSceNpEntitlementAccess.md takes its three-argument signature and 16-byte key from KytyPS5, plus one PPSA01521 call. Two more titles call it the same way. The entry now adds:

PPSA03984 01.020.000 (at 0x5949837) and PPSA30839 01.003.000 (0x4505EC5), disassembled for this entry, pass service label 0, a pointer into an array of their own with 28-byte elements and a stack output, one call per element in a loop; after a failure (a negative result in PPSA03984, any nonzero one in PPSA30839) they go on with the next element, and on success PPSA03984 reads 16 bytes of the output

Changed: docs/dev/debt/libSceNpEntitlementAccess.md. No code change.

Method: the addresses are virtual addresses in each title's eboot.bin (unwrapped ELF, text at 0). Call sites were found through the import's PLT stub in the relinker output (app.elf, the same text moved up by 0x400000; the bytes at each site were checked against eboot.bin). The loop around each call and the branches on the result were read with objdump. This is static reading only: nothing was run on a console. The listings are game code and are not attached.

Tested

Documentation only. tools/check_conventions.py --base upstream/main passes. Not built, no title run.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5022328720 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11529). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-26T18:06:59Z. --- ### What The `sceNpEntitlementAccessGetEntitlementKey` entry in `docs/dev/debt/libSceNpEntitlementAccess.md` takes its three-argument signature and 16-byte key from KytyPS5, plus one PPSA01521 call. Two more titles call it the same way. The entry now adds: > PPSA03984 01.020.000 (at 0x5949837) and PPSA30839 01.003.000 (0x4505EC5), disassembled for this entry, pass service label 0, a pointer into an array of their own with 28-byte elements and a stack output, one call per element in a loop; after a failure (a negative result in PPSA03984, any nonzero one in PPSA30839) they go on with the next element, and on success PPSA03984 reads 16 bytes of the output Changed: `docs/dev/debt/libSceNpEntitlementAccess.md`. No code change. Method: the addresses are virtual addresses in each title's `eboot.bin` (unwrapped ELF, text at 0). Call sites were found through the import's PLT stub in the `relinker` output (`app.elf`, the same text moved up by 0x400000; the bytes at each site were checked against `eboot.bin`). The loop around each call and the branches on the result were read with `objdump`. This is static reading only: nothing was run on a console. The listings are game code and are not attached. ### Tested Documentation only. `tools/check_conventions.py --base upstream/main` passes. Not built, no title run. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
MarcZX10 commented 2026-10-26 18:14:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-26T18:14:27Z.

Review: APPROVED


The new note adds specific static call-site evidence for the existing three-argument signature: service label, pointer into 28-byte entitlement records, output pointer, iteration after failure, and a 16-byte output read on success. It preserves the distinction between observed caller behavior and unverified console key provisioning/error precedence. Conventions and diff checks pass; hosted product jobs are skipped for this docs-only change.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5656865863 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11529#pullrequestreview-5656865863). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-26T18:14:27Z. **Review:** APPROVED --- The new note adds specific static call-site evidence for the existing three-argument signature: service label, pointer into 28-byte entitlement records, output pointer, iteration after failure, and a 16-byte output read on success. It preserves the distinction between observed caller behavior and unverified console key provisioning/error precedence. Conventions and diff checks pass; hosted product jobs are skipped for this docs-only change.
THEMANnt commented 2026-10-28 10:51:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-28T10:51:25Z.

Review: APPROVED


Reviewed 03ce876c46d0a47603c16ce4a495d4f885380919 against author merge base ea048ce2c35e1fb65ea3331ed73bba35cb27e584 — approve the documentation change.

The 16-byte entitlement-key output and the current no-entitlement path agree with the source: null output is rejected and the stub does not invent key bytes. Added caller-array observations retain their stated limits.

Validation: checked the submitted Markdown diff, pinned implementation references and relative links; git diff --check passed. This changes documentation only. Title disassembly and console observations were not independently reproduced; no runtime regression result is claimed.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5681450193 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11529#pullrequestreview-5681450193). Originally posted by [THEMANnt](https://github.com/THEMANnt) on 2026-10-28T10:51:25Z. **Review:** APPROVED --- Reviewed `03ce876c46d0a47603c16ce4a495d4f885380919` against author merge base `ea048ce2c35e1fb65ea3331ed73bba35cb27e584` — approve the documentation change. The 16-byte entitlement-key output and the current no-entitlement path agree with the source: null output is rejected and the stub does not invent key bytes. Added caller-array observations retain their stated limits. Validation: checked the submitted Markdown diff, pinned implementation references and relative links; `git diff --check` passed. This changes documentation only. Title disassembly and console observations were not independently reproduced; no runtime regression result is claimed.
Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
boykopovar/AnyPS5!11529
No description provided.