core: encrypt/decrypt WebRTC frames (#1935)

* core: encrypt/decrypt WebRTC frames

* swift API

* add decrypt stub

* change name

* remove unused type

* move functions

* update cabal file

* copy bytes from encrypted string
This commit is contained in:
Evgeny Poberezkin
2023-02-16 20:25:37 +00:00
committed by GitHub
parent a0351d6f99
commit b7575ec01d
4 changed files with 52 additions and 0 deletions

View File

@@ -22,3 +22,5 @@ extern char *chat_recv_msg(chat_ctrl ctl);
extern char *chat_recv_msg_wait(chat_ctrl ctl, int wait);
extern char *chat_parse_markdown(char *str);
extern char *chat_parse_server(char *str);
extern void chat_encrypt_media(char *key, char *frame, int len);
extern void chat_decrypt_media(char *key, char *frame, int len);