|
ABY Framework
1.0
Arithmetic Bool Yao Framework
|
Powmod Implementation. More...
#include <stdio.h>#include <stdlib.h>#include <gmp.h>

Go to the source code of this file.
Functions | |
| void | fbpowmod_init_g (const mpz_t base, const mpz_t mod, const int bitsize) |
| void | fbpowmod_init_h (const mpz_t base, const mpz_t mod, const int bitsize) |
| void | fbpowmod_g (mpz_t result, const mpz_t exp) |
| void | fbpowmod_h (mpz_t result, const mpz_t exp) |
| void | fbdbpowmod (mpz_t ret, const mpz_t e1, const mpz_t e2) |
| void | fbdbpowmod_init (const mpz_t b1, const mpz_t b2, const mpz_t mod, const int bitsize) |
| void | dbpowmod (mpz_t ret, const mpz_t b1, const mpz_t e1, const mpz_t b2, const mpz_t e2, const mpz_t mod) |
Variables | |
| mpz_t * | m_table_g |
| mpz_t * | m_table_h |
| mpz_t * | m_prod |
| mpz_t | m_mod |
| int | m_numberOfElements_g |
| int | m_numberOfElements_h |
Powmod Implementation.
| void dbpowmod | ( | mpz_t | ret, |
| const mpz_t | b1, | ||
| const mpz_t | e1, | ||
| const mpz_t | b2, | ||
| const mpz_t | e2, | ||
| const mpz_t | mod | ||
| ) |
double-base exponentiation ret = b1^e1*b2^e2
| void fbdbpowmod | ( | mpz_t | ret, |
| const mpz_t | e1, | ||
| const mpz_t | e2 | ||
| ) |
fixed-base double base encryption requires pre-computed product with fbdbpowmod_init
| void fbpowmod_g | ( | mpz_t | result, |
| const mpz_t | exp | ||
| ) |
fixed-base multiplication requires pre-computed table, created with fbpowmod_init_*
| void fbpowmod_init_g | ( | const mpz_t | base, |
| const mpz_t | mod, | ||
| const int | bitsize | ||
| ) |
initialize fixed base multiplication for a given base and a desired exponent bit size identical functionality for either g or h
1.8.8