This commit is contained in:
max10
2015-11-10 00:08:40 +01:00
parent 0bbcfaf171
commit 890f4e2ea3
11 changed files with 1966 additions and 0 deletions

8
libdvbci/dh_rsa_misc.h Normal file
View File

@@ -0,0 +1,8 @@
#ifndef __DH_RSA_MISC_H_
#define __DH_RSA_MISC_H_
int dh_gen_exp(uint8_t *dest, int dest_len, uint8_t *dh_g, int dh_g_len, uint8_t *dh_p, int dh_p_len);
int dh_mod_exp(uint8_t *dest, int dest_len, uint8_t *base, int base_len, uint8_t *mod, int mod_len, uint8_t *exp, int exp_len);
int dh_dhph_signature(uint8_t *out, uint8_t *nonce, uint8_t *dhph, RSA *r);
#endif