revert breaks some stupid old compilers
[oscam.git] / oscam-aes.h
blob952cb48eac73bbf65f569b8460d9bd9a3197986e
1 #ifndef OSCAM_AES_H_
2 #define OSCAM_AES_H_
4 void aes_set_key(struct aes_keys *aes, char *key);
5 bool aes_set_key_alloc(struct aes_keys **aes, char *key);
6 void aes_decrypt(struct aes_keys *aes, uchar *buf, int32_t n);
7 void aes_encrypt_idx(struct aes_keys *aes, uchar *buf, int32_t n);
9 void add_aes_entry(AES_ENTRY **list, uint16_t caid, uint32_t ident, int32_t keyid, uchar *aesKey);
10 void parse_aes_entry(AES_ENTRY **list, char *label, char *value);
11 void aes_clear_entries(AES_ENTRY **list);
12 void parse_aes_keys(struct s_reader *rdr, char *value);
13 int32_t aes_decrypt_from_list(AES_ENTRY *list, uint16_t caid, uint32_t provid, int32_t keyid, uchar *buf, int32_t n);
14 int32_t aes_present(AES_ENTRY *list, uint16_t caid, uint32_t provid, int32_t keyid);
16 #endif