pspsdk-1.0+beta2
pspchnnlsv.h
Go to the documentation of this file.
1 /*
2  * PSP Software Development Kit - http://www.pspdev.org
3  * -----------------------------------------------------------------------
4  * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
5  *
6  * pspchnnlsv.h - Include for the pspChnnlsv library.
7  *
8  * Copyright (c) 2005 Jim Paris <jim@jtan.com>
9  * Copyright (c) 2005 psp123
10  *
11  * $Id: pspchnnlsv.h 2433 2008-10-15 10:00:27Z iwn $
12  */
13 #ifndef __PSPCHNNLSV_H__
14 #define __PSPCHNNLSV_H__
15 
16 /* The descriptions are mostly speculation. */
17 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 #include <psptypes.h>
27 
30 
31 typedef struct _pspChnnlsvContext1 {
33  int mode;
34 
36  char buffer1[0x10];
37  char buffer2[0x10];
38  int unknown;
40 
41 typedef struct _pspChnnlsvContext2 {
43  char unknown[0x100];
45 
53 int sceChnnlsv_E7833020(pspChnnlsvContext1 *ctx, int mode);
54 
63 int sceChnnlsv_F21A1FCA(pspChnnlsvContext1 *ctx, unsigned char *data, int len);
64 
74  unsigned char *hash, unsigned char *cryptkey);
75 
86 int sceChnnlsv_ABFDFC8B(pspChnnlsvContext2 *ctx, int mode1, int mode2,
87  unsigned char *hashkey, unsigned char *cipherkey);
88 
97 int sceChnnlsv_850A7FA1(pspChnnlsvContext2 *ctx, unsigned char *data, int len);
98 
106 
109 #ifdef __cplusplus
110 }
111 #endif
112 
113 #endif
114