Yahui Han | 1fbf329 | 2021-11-08 18:17:19 +0800 | [diff] [blame] | 1 | /*************************************************************************** |
| 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 |
| 12 | extern "C" |
| 13 | { |
| 14 | #endif |
| 15 | |
| 16 | /**************************************************************************** |
| 17 | * Function prototypes |
| 18 | ***************************************************************************/ |
| 19 | |
| 20 | void *am_crypt_des_open(const uint8_t *key, const uint8_t *iv, int key_bits); |
| 21 | |
| 22 | int am_crypt_des_close(void *cryptor); |
| 23 | |
| 24 | int am_crypt_des_crypt(void* cryptor, uint8_t* dst, |
hualing chen | 002e5b9 | 2022-02-23 17:51:21 +0800 | [diff] [blame] | 25 | const uint8_t *src, int *len, int decrypt); |
Yahui Han | 1fbf329 | 2021-11-08 18:17:19 +0800 | [diff] [blame] | 26 | |
| 27 | #ifdef __cplusplus |
| 28 | } |
| 29 | #endif |
| 30 | |
| 31 | #endif |
| 32 | |