PSPSDK 2026-01-28
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#include <psptypes.h>
22
36
43
44// Backwards compat
47#define sceChnnlsv_E7833020 sceSdSetIndex
48#define sceChnnlsv_F21A1FCA sceSdRemoveValue
49#define sceChnnlsv_C4C494F8 sceSdGetLastIndex
50#define sceChnnlsv_ABFDFC8B sceSdCreateList
51#define sceChnnlsv_850A7FA1 sceSdSetMember
52#define sceChnnlsv_21BE78B4 sceSdCleanList
53
54#ifdef __cplusplus
55extern "C" {
56#endif /* __cplusplus */
57
65int sceSdSetIndex(SceSdContext1 *ctx, int mode);
66
75int sceSdRemoveValue(SceSdContext1 *ctx, unsigned char *data, int len);
76
85int sceSdGetLastIndex(SceSdContext1 *ctx, unsigned char *hash, unsigned char *cryptkey);
86
97int sceSdCreateList(SceSdContext2 *ctx, int mode1, int mode2, unsigned char *hashkey, unsigned char *cipherkey);
98
107int sceSdSetMember(SceSdContext2 *ctx, unsigned char *data, int len);
108
116
119#ifdef __cplusplus
120}
121#endif /* __cplusplus */
122
123#endif /* __PSPCHNNLSV_H__ */
int sceSdCreateList(SceSdContext2 *ctx, int mode1, int mode2, unsigned char *hashkey, unsigned char *cipherkey)
Prepare a key, and set up integrity check.
int sceSdCleanList(SceSdContext2 *ctx)
Check integrity.
int sceSdGetLastIndex(SceSdContext1 *ctx, unsigned char *hash, unsigned char *cryptkey)
Finalize hash.
struct _pspChnnlsvContext1 SceSdContext1
SceSdContext1 pspChnnlsvContext1
Definition pspchnnlsv.h:45
int sceSdSetMember(SceSdContext2 *ctx, unsigned char *data, int len)
Process data for integrity check.
struct _pspChnnlsvContext2 SceSdContext2
int sceSdRemoveValue(SceSdContext1 *ctx, unsigned char *data, int len)
Process data.
int sceSdSetIndex(SceSdContext1 *ctx, int mode)
Initialize context.
SceSdContext2 pspChnnlsvContext2
Definition pspchnnlsv.h:46
uint8_t u8
Definition psptypes.h:38
uint32_t u32
Definition psptypes.h:41
Definition pspchnnlsv.h:26
int mode
Cipher mode.
Definition pspchnnlsv.h:28
u8 data[16]
Context data.
Definition pspchnnlsv.h:30
u32 size
Data size.
Definition pspchnnlsv.h:34
u8 key[16]
Context key.
Definition pspchnnlsv.h:32
Definition pspchnnlsv.h:37
u8 data[16]
Definition pspchnnlsv.h:41
u32 mode
Cipher mode.
Definition pspchnnlsv.h:39
u32 unk4
Definition pspchnnlsv.h:40