Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
44 lines
1.5 KiB
C
44 lines
1.5 KiB
C
/*
|
|
* Copyright (C) 2012 MediaTek, Inc.
|
|
*
|
|
* This software is licensed under the terms of the GNU General Public
|
|
* License version 2, as published by the Free Software Foundation, and
|
|
* may be copied, distributed, and modified under those terms.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
*/
|
|
|
|
#ifndef __MT_SEC_HAL_H__
|
|
#define __MT_SEC_HAL_H__
|
|
|
|
enum hacc_user {
|
|
HACC_USER1 = 0,
|
|
HACC_USER2,
|
|
HACC_USER3,
|
|
HACC_USER4
|
|
};
|
|
|
|
/*int masp_hal_get_uuid(unsigned int *uuid);*/
|
|
int masp_hal_sbc_enabled(void);
|
|
int masp_hal_get_sbc_checksum(unsigned int *pChecksum);
|
|
int masp_hal_set_dm_verity_error(void);
|
|
unsigned char masp_hal_secure_algo_init(void);
|
|
unsigned char masp_hal_secure_algo_deinit(void);
|
|
void masp_hal_secure_algo(unsigned char Direction, unsigned char *ContentAddr,
|
|
unsigned int ContentLen, unsigned char *CustomSeed,
|
|
unsigned char *ResText);
|
|
unsigned int masp_hal_sp_hacc_init(unsigned char *sec_seed, unsigned int size);
|
|
unsigned int masp_hal_sp_hacc_blk_sz(void);
|
|
unsigned char *masp_hal_sp_hacc_enc(unsigned char *buf, unsigned int size,
|
|
unsigned char bAC,
|
|
enum hacc_user user, unsigned char bDoLock);
|
|
unsigned char *masp_hal_sp_hacc_dec(unsigned char *buf, unsigned int size,
|
|
unsigned char bAC,
|
|
enum hacc_user user, unsigned char bDoLock);
|
|
|
|
#endif /* !__MT_SEC_HAL_H__ */
|