blob: 91494d8cc14614d905cecf3160a0b8ec2feb809d [file] [log] [blame]
Yahui Han1fbf3292021-11-08 18:17:19 +08001/***************************************************************************
2 * Copyright (c) 2019 Amlogic, Inc. All rights reserved.
3 *
4 * This source code is subject to the terms and conditions defined in the
5 * file 'LICENSE' which is part of this source code package.
6 ***************************************************************************/
7
8#ifndef _AM_CRYPT_H
9#define _AM_CRYPT_H
10
11#ifdef __cplusplus
12extern "C"
13{
14#endif
15
16/****************************************************************************
17 * Function prototypes
18 ***************************************************************************/
19
20void *am_crypt_des_open(const uint8_t *key, const uint8_t *iv, int key_bits);
21
22int am_crypt_des_close(void *cryptor);
23
24int am_crypt_des_crypt(void* cryptor, uint8_t* dst,
hualing chen002e5b92022-02-23 17:51:21 +080025 const uint8_t *src, int *len, int decrypt);
Yahui Han1fbf3292021-11-08 18:17:19 +080026
27#ifdef __cplusplus
28}
29#endif
30
31#endif
32