2023-05-30 10:28:40 -06:00
|
|
|
|
|
|
|
#ifndef _HWSIGN_H
|
|
|
|
#define _HWSIGN_H
|
|
|
|
|
|
|
|
#include<stdlib.h>
|
|
|
|
#include<stdio.h>
|
|
|
|
//#include <functional>
|
|
|
|
#define API_EXPORT __attribute__((visibility("default")))
|
|
|
|
// void * HWSign_init(const std::function<void(const char * rtp_ptr, const uint32_t rtp_len)> rtp_callback);
|
|
|
|
API_EXPORT int SDF_Device_open();
|
|
|
|
API_EXPORT int SDF_Device_close();
|
|
|
|
|
|
|
|
|
|
|
|
API_EXPORT void * HWSign_init();
|
|
|
|
API_EXPORT void HWSign_release(void* Handle);
|
|
|
|
API_EXPORT int HWSign_rtp_input(void* Handle, const char * buf, const uint32_t len,int tcp, void * param);
|
|
|
|
API_EXPORT int HWSign_rtp_out(void* Handle, char * buf, uint32_t * len, void ** param);
|
|
|
|
|
|
|
|
API_EXPORT void * HWSign_tcp_init();
|
|
|
|
API_EXPORT void HWSign_tcp_release(void* Handle);
|
|
|
|
API_EXPORT int HWSign_tcp_rtp_input(void* Handle, const char * buf, const uint32_t len, void * param);
|
2023-06-30 09:38:13 -06:00
|
|
|
API_EXPORT int HWSign_tcp_rtp_out(void* Handle, char * buf, uint32_t * len, uint16_t* sei_end_offset,uint16_t* append_length,void ** param);
|
2023-05-30 10:28:40 -06:00
|
|
|
|
|
|
|
|
|
|
|
API_EXPORT void * HWVerify_init();
|
|
|
|
API_EXPORT void HWVerify_release(void* Handle);
|
|
|
|
API_EXPORT int HWVerify_rtp_input(void* Handle, const char * buf, const uint32_t len,int tcp, void * param);
|
|
|
|
#endif /* _DECRYPT_H */
|