Attempt to count descramblers used properly
[oscam.git] / module-gbox-helper.h
blobb1e2ab8a009be645767d6ef126e918431f98dd57
1 #ifndef MODULE_GBOX_HELPER_H_
2 #define MODULE_GBOX_HELPER_H_
4 #ifdef MODULE_GBOX
5 uint16_t gbox_get_caid(uint32_t caprovid);
6 uint32_t gbox_get_provid(uint32_t caprovid);
7 uint32_t gbox_get_caprovid(uint16_t caid, uint32_t prid);
8 uint32_t gbox_get_checksum(uint8_t *ecm, uint16_t ecmlen);
9 void gbox_encrypt(uint8_t *buffer, int bufsize, uint32_t key);
10 void gbox_decrypt(uint8_t *buffer, int bufsize, uint32_t localkey);
11 void gbox_compress(uint8_t *buf, int32_t unpacked_len, int32_t *packed_len);
12 void gbox_decompress(uint8_t *buf, int32_t *unpacked_len);
13 #endif
15 #endif