LibXenon
Bare-metal Xbox 360 homebrew library
Loading...
Searching...
No Matches
Functions | Variables
xb360.c File Reference
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <pci/io.h>
#include <time/time.h>
#include <xenon_nand/xenon_sfcx.h>
#include <xenon_nand/xenon_config.h>
#include <xenon_soc/xenon_secotp.h>
#include <xenon_smc/xenon_smc.h>
#include <crypt/hmac_sha1.h>
#include <crypt/rc4.h>
#include "xb360.h"
Include dependency graph for xb360.c:

Go to the source code of this file.

Functions

void print_key (char *name, unsigned char *data)
 
void print_cserial (char *name, unsigned char *data)
 
int cpu_get_key (unsigned char *data)
 
int get_virtual_cpukey (unsigned char *data)
 
int kv_get_key (unsigned char keyid, unsigned char *keybuf, int *keybuflen, unsigned char *keyvault)
 
int kv_read (unsigned char *data, int virtualcpukey)
 
void kv_print_hash_failure ()
 
int kv_get_dvd_key (unsigned char *dvd_key)
 
int kv_get_cserial (unsigned char *serial)
 
void print_cpu_dvd_keys (void)
 
int updateXeLL (char *path)
 
unsigned int xenon_get_DVE ()
 
unsigned int xenon_get_PCIBridgeRevisionID ()
 
unsigned int xenon_get_CPU_PVR ()
 
unsigned int xenon_get_XenosID ()
 
int xenon_get_console_type ()
 
int xenon_logical_nand_data_ok ()
 
int xenon_get_logical_nand_data (void *buf, unsigned int offset, unsigned int len)
 
unsigned int xenon_get_kv_size ()
 
unsigned int xenon_get_kv_offset ()
 
unsigned int xenon_get_ram_size ()
 

Variables

struct XCONFIG_SECURED_SETTINGS secured_settings
 
struct sfc sfc
 

Function Documentation

◆ cpu_get_key()

int cpu_get_key ( unsigned char *  data)

Definition at line 105 of file xb360.c.

◆ get_virtual_cpukey()

int get_virtual_cpukey ( unsigned char *  data)

Definition at line 112 of file xb360.c.

◆ kv_get_cserial()

int kv_get_cserial ( unsigned char *  serial)

Definition at line 327 of file xb360.c.

◆ kv_get_dvd_key()

int kv_get_dvd_key ( unsigned char *  dvd_key)

Definition at line 296 of file xb360.c.

◆ kv_get_key()

int kv_get_key ( unsigned char  keyid,
unsigned char *  keybuf,
int *  keybuflen,
unsigned char *  keyvault 
)

Definition at line 193 of file xb360.c.

◆ kv_print_hash_failure()

void kv_print_hash_failure ( )

Definition at line 277 of file xb360.c.

◆ kv_read()

int kv_read ( unsigned char *  data,
int  virtualcpukey 
)

Definition at line 209 of file xb360.c.

◆ print_cpu_dvd_keys()

void print_cpu_dvd_keys ( void  )

Definition at line 358 of file xb360.c.

◆ print_cserial()

void print_cserial ( char *  name,
unsigned char *  data 
)

Definition at line 96 of file xb360.c.

◆ print_key()

void print_key ( char *  name,
unsigned char *  data 
)

Definition at line 87 of file xb360.c.

◆ updateXeLL()

int updateXeLL ( char *  path)

Definition at line 477 of file xb360.c.

◆ xenon_get_console_type()

int xenon_get_console_type ( void  )

Definition at line 622 of file xb360.c.

◆ xenon_get_CPU_PVR()

unsigned int xenon_get_CPU_PVR ( )

Definition at line 610 of file xb360.c.

◆ xenon_get_DVE()

unsigned int xenon_get_DVE ( )

Definition at line 596 of file xb360.c.

◆ xenon_get_kv_offset()

unsigned int xenon_get_kv_offset ( )

Definition at line 699 of file xb360.c.

◆ xenon_get_kv_size()

unsigned int xenon_get_kv_size ( )

Definition at line 691 of file xb360.c.

◆ xenon_get_logical_nand_data()

int xenon_get_logical_nand_data ( void *  buf,
unsigned int  offset,
unsigned int  len 
)

Definition at line 682 of file xb360.c.

◆ xenon_get_PCIBridgeRevisionID()

unsigned int xenon_get_PCIBridgeRevisionID ( )

Definition at line 605 of file xb360.c.

◆ xenon_get_ram_size()

unsigned int xenon_get_ram_size ( )

Definition at line 707 of file xb360.c.

◆ xenon_get_XenosID()

unsigned int xenon_get_XenosID ( )

Definition at line 617 of file xb360.c.

◆ xenon_logical_nand_data_ok()

int xenon_logical_nand_data_ok ( )

Definition at line 673 of file xb360.c.

Variable Documentation

◆ secured_settings

struct XCONFIG_SECURED_SETTINGS secured_settings
extern

Definition at line 17 of file xenon_config.c.

◆ sfc

struct sfc sfc
extern

Definition at line 10 of file xenon_sfcx.c.