PSPSDK 2024-12-16
|
Data Structures | |
struct | SceKernelTimeval |
This struct is needed because tv_sec size is different from what newlib expect Newlib expects 64bits for seconds and PSP expects 32bits. More... | |
struct | _SceKernelUtilsMt19937Context |
Structure for holding a mersenne twister context. More... | |
struct | _SceKernelUtilsMd5Context |
Structure to hold the MD5 context. More... | |
struct | _SceKernelUtilsSha1Context |
Type to hold a sha1 context. More... | |
Typedefs | |
typedef struct SceKernelTimeval | SceKernelTimeval |
This struct is needed because tv_sec size is different from what newlib expect Newlib expects 64bits for seconds and PSP expects 32bits. | |
typedef struct _SceKernelUtilsMt19937Context | SceKernelUtilsMt19937Context |
Structure for holding a mersenne twister context. | |
typedef struct _SceKernelUtilsMd5Context | SceKernelUtilsMd5Context |
Structure to hold the MD5 context. | |
typedef struct _SceKernelUtilsSha1Context | SceKernelUtilsSha1Context |
Type to hold a sha1 context. | |
Functions | |
time_t | sceKernelLibcTime (time_t *t) |
Get the time in seconds since the epoc (1st Jan 1970) | |
clock_t | sceKernelLibcClock (void) |
Get the processor clock used since the start of the process. | |
int | sceKernelLibcGettimeofday (struct SceKernelTimeval *tp, struct timezone *tzp) |
Get the current time of time and time zone information. | |
void | sceKernelDcacheWritebackAll (void) |
Write back the data cache to memory. | |
void | sceKernelDcacheWritebackInvalidateAll (void) |
Write back and invalidate the data cache. | |
void | sceKernelDcacheWritebackRange (const void *p, unsigned int size) |
Write back a range of addresses from the data cache to memory. | |
void | sceKernelDcacheWritebackInvalidateRange (const void *p, unsigned int size) |
Write back and invalidate a range of addresses in the data cache. | |
void | sceKernelDcacheInvalidateRange (const void *p, unsigned int size) |
Invalidate a range of addresses in data cache. | |
void | sceKernelIcacheInvalidateAll (void) |
Invalidate the instruction cache. | |
void | sceKernelIcacheInvalidateRange (const void *p, unsigned int size) |
Invalidate a range of addresses in the instruction cache. | |
int | sceKernelUtilsMt19937Init (SceKernelUtilsMt19937Context *ctx, u32 seed) |
Function to initialise a mersenne twister context. | |
u32 | sceKernelUtilsMt19937UInt (SceKernelUtilsMt19937Context *ctx) |
Function to return a new psuedo random number. | |
int | sceKernelUtilsMd5Digest (u8 *data, u32 size, u8 *digest) |
Function to perform an MD5 digest of a data block. | |
int | sceKernelUtilsMd5BlockInit (SceKernelUtilsMd5Context *ctx) |
Function to initialise a MD5 digest context. | |
int | sceKernelUtilsMd5BlockUpdate (SceKernelUtilsMd5Context *ctx, u8 *data, u32 size) |
Function to update the MD5 digest with a block of data. | |
int | sceKernelUtilsMd5BlockResult (SceKernelUtilsMd5Context *ctx, u8 *digest) |
Function to get the digest result of the MD5 hash. | |
int | sceKernelUtilsSha1Digest (u8 *data, u32 size, u8 *digest) |
Function to SHA1 hash a data block. | |
int | sceKernelUtilsSha1BlockInit (SceKernelUtilsSha1Context *ctx) |
Function to initialise a context for SHA1 hashing. | |
int | sceKernelUtilsSha1BlockUpdate (SceKernelUtilsSha1Context *ctx, u8 *data, u32 size) |
Function to update the current hash. | |
int | sceKernelUtilsSha1BlockResult (SceKernelUtilsSha1Context *ctx, u8 *digest) |
Function to get the result of the SHA1 hash. | |
This struct is needed because tv_sec size is different from what newlib expect Newlib expects 64bits for seconds and PSP expects 32bits.
Structure to hold the MD5 context.
Structure for holding a mersenne twister context.
Type to hold a sha1 context.
Invalidate a range of addresses in data cache.
Write back the data cache to memory.
Referenced by pspSdkFixupImports().
Write back and invalidate a range of addresses in the data cache.
Write back a range of addresses from the data cache to memory.
Invalidate a range of addresses in the instruction cache.
int sceKernelLibcGettimeofday | ( | struct SceKernelTimeval * | tp, |
struct timezone * | tzp | ||
) |
Get the current time of time and time zone information.
int sceKernelUtilsMd5BlockInit | ( | SceKernelUtilsMd5Context * | ctx | ) |
Function to initialise a MD5 digest context.
ctx | - A context block to initialise |
int sceKernelUtilsMd5BlockResult | ( | SceKernelUtilsMd5Context * | ctx, |
u8 * | digest | ||
) |
Function to get the digest result of the MD5 hash.
ctx | - A filled in context block. |
digest | - A 16 byte array to hold the digest. |
int sceKernelUtilsMd5BlockUpdate | ( | SceKernelUtilsMd5Context * | ctx, |
u8 * | data, | ||
u32 | size | ||
) |
Function to update the MD5 digest with a block of data.
ctx | - A filled in context block. |
data | - The data block to hash. |
size | - The size of the data to hash |
Function to perform an MD5 digest of a data block.
data | - Pointer to a data block to make a digest of. |
size | - Size of the data block. |
digest | - Pointer to a 16byte buffer to store the resulting digest |
int sceKernelUtilsMt19937Init | ( | SceKernelUtilsMt19937Context * | ctx, |
u32 | seed | ||
) |
Function to initialise a mersenne twister context.
ctx | - Pointer to a context |
seed | - A seed for the random function. |
u32 sceKernelUtilsMt19937UInt | ( | SceKernelUtilsMt19937Context * | ctx | ) |
Function to return a new psuedo random number.
ctx | - Pointer to a pre-initialised context. |
int sceKernelUtilsSha1BlockInit | ( | SceKernelUtilsSha1Context * | ctx | ) |
Function to initialise a context for SHA1 hashing.
ctx | - Pointer to a context. |
int sceKernelUtilsSha1BlockResult | ( | SceKernelUtilsSha1Context * | ctx, |
u8 * | digest | ||
) |
Function to get the result of the SHA1 hash.
ctx | - Pointer to a prefilled context. |
digest | - A pointer to a 20 byte array to contain the digest. |
int sceKernelUtilsSha1BlockUpdate | ( | SceKernelUtilsSha1Context * | ctx, |
u8 * | data, | ||
u32 | size | ||
) |
Function to update the current hash.
ctx | - Pointer to a prefilled context. |
data | - The data block to hash. |
size | - The size of the data block |