vitasdk
Documentation of the vitasdk
utils.h File Reference

Go to the source code of this file.

Data Structures

struct  SceSha1Context
 
struct  SceSha224Context
 
struct  SceSha256Context
 
struct  SceDeflatePartialInputParam
 
struct  SceAesContext
 

Macros

#define SCE_SHA1_BLOCK_SIZE   64
 
#define SCE_SHA1_DIGEST_SIZE   20
 
#define SCE_SHA224_BLOCK_SIZE   64
 
#define SCE_SHA224_DIGEST_SIZE   28
 
#define SCE_SHA256_BLOCK_SIZE   64
 
#define SCE_SHA256_DIGEST_SIZE   32
 

Functions

 VITASDK_BUILD_ASSERT_EQ (0x78, SceSha1Context)
 
 VITASDK_BUILD_ASSERT_EQ (0x90, SceSha224Context)
 
 VITASDK_BUILD_ASSERT_EQ (0x90, SceSha256Context)
 
 VITASDK_BUILD_ASSERT_EQ (0x10, SceDeflatePartialInputParam)
 
 VITASDK_BUILD_ASSERT_EQ (0x3D0, SceAesContext)
 
int ksceSha1BlockInit (SceSha1Context *ctx)
 
int ksceSha1BlockUpdate (SceSha1Context *ctx, const void *plain, SceSize len)
 
int ksceSha1BlockResult (SceSha1Context *ctx, void *result)
 
int ksceSha1Digest (const void *plain, SceSize len, void *digest)
 
int ksceSha224BlockInit (SceSha224Context *ctx)
 
int ksceSha224BlockUpdate (SceSha224Context *ctx, const void *plain, SceSize len)
 
int ksceSha224BlockResult (SceSha224Context *ctx, void *result)
 
int ksceSha224Digest (const void *plain, SceSize len, void *digest)
 
int ksceSha256BlockInit (SceSha256Context *ctx)
 
int ksceSha256BlockUpdate (SceSha256Context *ctx, const void *plain, SceSize len)
 
int ksceSha256BlockResult (SceSha256Context *ctx, void *result)
 
int ksceSha256Digest (const void *plain, SceSize len, void *digest)
 
int ksceHmacSha1Digest (const void *key, SceSize key_len, const void *plain, SceSize len, void *digest)
 
int ksceHmacSha224Digest (const void *key, SceSize key_len, const void *plain, SceSize len, void *digest)
 
int ksceHmacSha256Digest (const void *key, SceSize key_len, const void *plain, SceSize len, void *digest)
 
int ksceGzipDecompress (void *dst, SceSize dst_size, const void *src, uint32_t *crc32)
 
int ksceGzipIsValid (const void *src)
 Check magic of Gzip header. More...
 
int ksceGzipGetInfo (const void *src, const void **extra, const char **name, const char **comment, unsigned short *crc, const void **data)
 Get filename etc. More...
 
const char * ksceGzipGetName (const void *src)
 Get filename string address. More...
 
const char * ksceGzipGetComment (const void *src)
 Get comment string address. More...
 
const void * ksceGzipGetCompressedData (const void *src)
 Get compressed data start address. More...
 
int ksceZlibGetInfo (const void *src, unsigned char *cmf, unsigned char *flg, unsigned int *dictid, const void **data)
 Get filename etc. More...
 
const void * ksceZlibGetCompressedData (const void *src)
 Get compressed data start address. More...
 
int ksceZlibDecompress (void *dst, SceSize dst_size, const void *src, uint32_t *adler32)
 
int ksceDeflateDecompress (void *dst, SceSize dst_size, const void *src, const void **next)
 
int ksceDeflateDecompressPartial (void *dst, SceSize dst_size, const void *src, const void **next, SceDeflatePartialInputParam *cbInfo)
 
int ksceAesInit1 (SceAesContext *ctx, SceSize blocksize, SceSize keysize, const void *key)
 
int ksceAesInit2 (SceAesContext *ctx, SceSize blocksize, SceSize keysize, const void *key)
 
int ksceAesInit3 (SceAesContext *ctx, SceSize blocksize, SceSize keysize, const void *key)
 
int ksceAesDecrypt1 (SceAesContext *ctx, const void *src, void *dst)
 
int ksceAesDecrypt2 (SceAesContext *ctx, const void *src, void *dst)
 
int ksceAesEncrypt1 (SceAesContext *ctx, const void *src, void *dst)
 
int ksceAesEncrypt2 (SceAesContext *ctx, const void *src, void *dst)