blob: 54160eb3e4a62e14ab82e2f0497fbe04d27522fd [file] [log] [blame]
Mingyen Hung96effce2023-09-01 00:39:46 -07001/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
2/*
3 * Copyright (c) 2019 Amlogic, Inc. All rights reserved.
4 */
5
6#ifndef __PARTITION_ENCRYPTION_H__
7#define __PARTITION_ENCRYPTION_H__
8
9typedef enum {
10 ENCRYPT = 0,
11 DECRYPT = 1
12} OP_MODE_T;
13
14int part_dec(const char *name, u8 *in, u64 in_sz,
15 u8 *out, u64 out_sz,
16 u64 off);
17
18int32_t find_enc_parts(const char* part_name);
19
20#endif//#ifndef __PARTITION_ENCRYPTION_H__
21