-
Notifications
You must be signed in to change notification settings - Fork 20
/
np.h
42 lines (33 loc) · 808 Bytes
/
np.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* Copyright (c) 2011-2013 by naehrwert
* This file is released under the GPLv2.
*/
#ifndef _NP_H_
#define _NP_H_
#include "types.h"
#include "sce.h"
/*! NPDRM config. */
typedef struct _npdrm_config
{
/*! License type. */
u32 license_type;
/*! Application type. */
u32 app_type;
/*! klicensee. */
u8 *klicensee;
/*! Content ID. */
u8 content_id[0x30];
/*! Real file name. */
s8 *real_fname;
} npdrm_config_t;
/*! Set klicensee. */
void np_set_klicensee(u8 *klicensee);
/*! Remove NPDRM layer. */
BOOL np_decrypt_npdrm(sce_buffer_ctxt_t *ctxt);
/*! Add NPDRM layer. */
BOOL np_encrypt_npdrm(sce_buffer_ctxt_t *ctxt);
/*! Create NPDRM control info. */
BOOL np_create_ci(npdrm_config_t *npconf, ci_data_npdrm_t *cinp);
/*! Add NP signature to file. */
BOOL np_sign_file(s8 *fname);
#endif