This commit is contained in:
spdfrk1 2014-08-05 21:08:07 +02:00 committed by Jaroslav Kysela
parent 88672fd157
commit bf9ce65661

View file

@ -2,30 +2,17 @@
* libaesdec.h
*
* Created on: Jun 22, 2014
* Author: root
* Author: spdfrk1
*/
#ifndef LIBAESDEC_H_
#define LIBAESDEC_H_
// -- alloc & free the key structure
void *aes_get_key_struct(void);
void aes_free_key_struct(void *keys);
// -- set aes keys, 16 bytes each
void aes_set_control_words(void *keys, const unsigned char *even, const unsigned char *odd);
// -- set even aes key, 16 bytes
void aes_set_even_control_word(void *keys, const unsigned char *even);
// -- set odd aes key, 16 bytes
void aes_set_odd_control_word(void *keys, const unsigned char *odd);
// -- get aes keys, 16 bytes each
//void get_control_words(void *keys, unsigned char *even, unsigned char *odd);
// -- decrypt TS packet
void aes_decrypt_packet(void *keys, unsigned char *packet);
#endif /* LIBAESDEC_H_ */