18 mpz_t c, x, e, n, new_x;
19 mpz_inits(c, x, e, n, new_x, NULL);
25 mpz_powm(new_x, c, e, n);
26 int cmp = mpz_cmp(x, new_x);
29 mpz_clears(c, x, e, n, new_x, NULL);
bytes_t * tc_prepare_document(const bytes_t *doc, tc_hash_type_t hash_type, const key_metainfo_t *metainfo)
void tc_clear_bytes(bytes_t *bytes)
Structure that's stores a pointer that points to data_len bytes.
#define TC_BYTES_TO_MPZ(z, bytes)
enum tc_hash_type tc_hash_type_t
int tc_rsa_verify(bytes_t *signature, bytes_t *doc, key_metainfo_t *info, tc_hash_type_t hashtype)