Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
CTCaer
GitHub Repository: CTCaer/hekate
Path: blob/master/bdk/sec/tsec.h
1476 views
1
/*
2
* Copyright (c) 2018 naehrwert
3
* Copyright (c) 2018-2024 CTCaer
4
*
5
* This program is free software; you can redistribute it and/or modify it
6
* under the terms and conditions of the GNU General Public License,
7
* version 2, as published by the Free Software Foundation.
8
*
9
* This program is distributed in the hope it will be useful, but WITHOUT
10
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12
* more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
*/
17
18
#ifndef _TSEC_H_
19
#define _TSEC_H_
20
21
#include <utils/types.h>
22
23
enum tsec_fw_type
24
{
25
// Retail Hovi Keygen.
26
TSEC_FW_TYPE_OLD = 0, // 1.0.0 - 6.1.0.
27
TSEC_FW_TYPE_EMU = 1, // 6.2.0 emulated environment.
28
TSEC_FW_TYPE_NEW = 2, // 7.0.0+.
29
};
30
31
typedef struct _tsec_ctxt_t
32
{
33
void *fw;
34
u32 size;
35
u32 type;
36
void *pkg1;
37
u32 pkg11_off;
38
} tsec_ctxt_t;
39
40
int tsec_query(void *tsec_keys, tsec_ctxt_t *tsec_ctxt);
41
42
#endif
43
44