PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
libsecr-common.h File Reference
#include <tamtypes.h>
+ Include dependency graph for libsecr-common.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  SecrBitBlockData
 
struct  SecrBitTableHeader
 
struct  SecrBitTable
 
struct  KELF_Header
 

Typedefs

typedef struct SecrBitBlockData SecrBitBlockData_t
 
typedef struct SecrBitTableHeader SecrBitTableHeader_t
 
typedef struct SecrBitTable SecrBitTable_t
 
typedef struct KELF_Header SecrKELFHeader_t
 

Functions

int SecrCardBootHeader (int port, int slot, void *buffer, SecrBitTable_t *BitTable, s32 *pSize)
 
int SecrCardBootBlock (void *src, void *dst, unsigned int size)
 
void * SecrCardBootFile (int port, int slot, void *buffer)
 
int SecrDiskBootHeader (void *buffer, SecrBitTable_t *BitTable, s32 *pSize)
 
int SecrDiskBootBlock (void *src, void *dst, unsigned int size)
 
void * SecrDiskBootFile (void *buffer)
 
int SecrDownloadHeader (int port, int slot, void *buffer, SecrBitTable_t *BitTable, s32 *pSize)
 
int SecrDownloadBlock (void *src, unsigned int size)
 
void * SecrDownloadFile (int port, int slot, void *buffer)
 
int SecrDownloadGetKbit (int port, int slot, void *kbit)
 
int SecrDownloadGetKc (int port, int slot, void *kbit)
 
int SecrDownloadGetICVPS2 (void *icvps2)
 

Detailed Description

Definitions and imports for secrman module.

Definition in file libsecr-common.h.


Data Structure Documentation

◆ SecrBitBlockData

struct SecrBitBlockData

Encrypted file Data Block info struct

Definition at line 22 of file libsecr-common.h.

Data Fields
u32 size

Size of data block

u32 flags

Flags : 0x01 = signed, 0x02 = encrypted.

u8 checksum[8]

◆ SecrBitTableHeader

struct SecrBitTableHeader

Definition at line 31 of file libsecr-common.h.

Data Fields
u32 headersize

KELF header size (same as SecrKELFHeader_t.KELF_header_size)

u8 block_count

Number of blocks in the KELF file

u8 pad1
u8 pad2
u8 pad3

◆ SecrBitTable

struct SecrBitTable

Encrypted file BIT table struct

Definition at line 43 of file libsecr-common.h.

+ Collaboration diagram for SecrBitTable:
Data Fields
SecrBitTableHeader_t header
SecrBitBlockData_t blocks[63]

KELF section information.

◆ KELF_Header

struct KELF_Header

Encrypted file header struct

Definition at line 51 of file libsecr-common.h.

Data Fields
u8 UserHeader[16]
u32 ELF_size

Size of data blocks = Decrypted elf size

u16 KELF_header_size

KELF header size

u16 unknown5
u16 flags

Controls the layout of the KELF header.

u16 BIT_count

Number of entries in the bit table.

u32 mg_zones

Typedef Documentation

◆ SecrBitBlockData_t

Encrypted file Data Block info struct

◆ SecrBitTable_t

typedef struct SecrBitTable SecrBitTable_t

Encrypted file BIT table struct

◆ SecrKELFHeader_t

typedef struct KELF_Header SecrKELFHeader_t

Encrypted file header struct

Function Documentation

◆ SecrCardBootHeader()

int SecrCardBootHeader ( int  port,
int  slot,
void *  buffer,
SecrBitTable_t BitTable,
s32 *  pSize 
)
extern

Definition at line 122 of file secrman.c.

◆ SecrCardBootBlock()

int SecrCardBootBlock ( void *  src,
void *  dst,
unsigned int  size 
)
extern

Definition at line 213 of file secrman.c.

◆ SecrCardBootFile()

void * SecrCardBootFile ( int  port,
int  slot,
void *  buffer 
)
extern

Definition at line 227 of file secrman.c.

◆ SecrDiskBootHeader()

int SecrDiskBootHeader ( void *  buffer,
SecrBitTable_t BitTable,
s32 *  pSize 
)
extern

Definition at line 164 of file libsecr.c.

◆ SecrDiskBootBlock()

int SecrDiskBootBlock ( void *  src,
void *  dst,
unsigned int  size 
)
extern

Definition at line 184 of file libsecr.c.

◆ SecrDiskBootFile()

void * SecrDiskBootFile ( void *  buffer)
extern

Definition at line 327 of file libsecr.c.

◆ SecrDownloadHeader()

int SecrDownloadHeader ( int  port,
int  slot,
void *  buffer,
SecrBitTable_t BitTable,
s32 *  pSize 
)
extern

Definition at line 74 of file libsecr.c.

◆ SecrDownloadBlock()

int SecrDownloadBlock ( void *  src,
unsigned int  size 
)
extern

Definition at line 96 of file libsecr.c.

◆ SecrDownloadFile()

void * SecrDownloadFile ( int  port,
int  slot,
void *  buffer 
)
extern

Definition at line 269 of file libsecr.c.

◆ SecrDownloadGetKbit()

int SecrDownloadGetKbit ( int  port,
int  slot,
void *  kbit 
)
extern

Definition at line 113 of file libsecr.c.

◆ SecrDownloadGetKc()

int SecrDownloadGetKc ( int  port,
int  slot,
void *  kbit 
)
extern

Definition at line 131 of file libsecr.c.

◆ SecrDownloadGetICVPS2()

int SecrDownloadGetICVPS2 ( void *  icvps2)
extern

Definition at line 149 of file libsecr.c.