Kprx auth sm: Difference between revisions

From Vita Development Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
Security module that authenticates and decrypts signed elf.
Security module that authenticates and decrypts signed elf.
== Teardown ==


== functions ==
== functions ==

Revision as of 07:26, 11 February 2023

Security module that authenticates and decrypts signed elf.

Teardown

functions

get_metainfo_ac_info

Version offset
3.60 0x80eb8a

check fself authid to get corresponding privileged attr/caps.

Supported authid
Privileged Authid
Game 0x2F00000000000001
Non-Game 0x2F00000000000002

Attempting to start fself with an unsupported authid eventually causes the system to get error code 0x800f0616.

This function itself returns error code 0x800f0624 for unsupported authid.

sceBigmacExec

Version offset
3.60 0x80EF46

typedef struct SceBigmacExecOption {
	int channel;
	int flags; // masked by 0xFFFFFCC0
} SceBigmacExecOption;

/*
 * key      - If option->flags not seted 0x80, pass to bigmac keyslot
 * key_size - 0:1:2:3, 64:128:192:256
 */
int sceBigmacExec(void *dst, const void *src, int size, const void *key, void *iv, int first_algo, int second_algo, int key_size, const SceBigmacExecOption *option);