PSPSDK 2024-12-24
Loading...
Searching...
No Matches
pspchnnlsv.h
Go to the documentation of this file.
1/*
2 * PSP Software Development Kit - https://github.com/pspdev
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 */
12#ifndef __PSPCHNNLSV_H__
13#define __PSPCHNNLSV_H__
14
15/* The descriptions are mostly speculation. */
16
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25#include <psptypes.h>
26
30typedef struct _pspChnnlsvContext1 {
32 int mode;
33
35 char buffer1[0x10];
36 char buffer2[0x10];
39
44
53
62int sceChnnlsv_F21A1FCA(pspChnnlsvContext1 *ctx, unsigned char *data, int len);
63
73 unsigned char *hash, unsigned char *cryptkey);
74
86 unsigned char *hashkey, unsigned char *cipherkey);
87
96int sceChnnlsv_850A7FA1(pspChnnlsvContext2 *ctx, unsigned char *data, int len);
97
105
108#ifdef __cplusplus
109}
110#endif
111
112#endif
113
int sceChnnlsv_850A7FA1(pspChnnlsvContext2 *ctx, unsigned char *data, int len)
Process data for integrity check.
int sceChnnlsv_C4C494F8(pspChnnlsvContext1 *ctx, unsigned char *hash, unsigned char *cryptkey)
Finalize hash.
int sceChnnlsv_ABFDFC8B(pspChnnlsvContext2 *ctx, int mode1, int mode2, unsigned char *hashkey, unsigned char *cipherkey)
Prepare a key, and set up integrity check.
struct _pspChnnlsvContext2 pspChnnlsvContext2
int sceChnnlsv_21BE78B4(pspChnnlsvContext2 *ctx)
Check integrity.
struct _pspChnnlsvContext1 pspChnnlsvContext1
int sceChnnlsv_E7833020(pspChnnlsvContext1 *ctx, int mode)
Initialize context.
int sceChnnlsv_F21A1FCA(pspChnnlsvContext1 *ctx, unsigned char *data, int len)
Process data.
float x
Definition psptypes.h:0
Definition pspchnnlsv.h:30
int mode
Cipher mode.
Definition pspchnnlsv.h:32
char buffer2[0x10]
Definition pspchnnlsv.h:36
char buffer1[0x10]
Context data.
Definition pspchnnlsv.h:35
int unknown
Definition pspchnnlsv.h:37
Definition pspchnnlsv.h:40
char unknown[0x100]
Context data.
Definition pspchnnlsv.h:42