Pengfei Liu | 2afc35d | 2020-01-07 10:47:39 +0800 | [diff] [blame^] | 1 | #ifndef _DVR_CRYPTO_H_ |
| 2 | #define _DVR_CRYPTO_H_ |
| 3 | |
| 4 | #ifdef __cplusplus |
| 5 | extern "C" { |
| 6 | #endif |
| 7 | |
| 8 | typedef uint32_t DVR_CryptoDeviceHandle; |
| 9 | |
| 10 | typedef struct DVR_CryptoParams_s { |
| 11 | } DVR_CryptoParams; |
| 12 | |
| 13 | typedef int (*DVR_CryptoFunction) (DVR_CryptoParams params, void *userdata); |
| 14 | |
| 15 | int dvr_crypto_device_open(DVR_CryptoDeviceHandle *p_handle); |
| 16 | |
| 17 | int dvr_crypto_device_run(DVR_CryptoDeviceHandle handle, |
| 18 | uint8_t *buf_in, uint8_t *buf_out, DVR_CryptoParams *params); |
| 19 | |
| 20 | int dvr_crypto_device_register(DVR_CryptoDeviceHandle handle, DVR_CryptoFunction cb, void *userdata, int is_enc); |
| 21 | |
| 22 | int dvr_crypto_device_close(DVR_CryptoDeviceHandle handle); |
| 23 | |
| 24 | #ifdef __cplusplus |
| 25 | } |
| 26 | #endif |
| 27 | |
| 28 | #endif /*END _DVR_CRYPTO_H_*/ |