int
byte2clint_l (CLINT n_l,
char *bytes, int len); | conversion of a byte vector to |
UCHAR*
clint2byte_l (CLINT n_l,
int *len); | convert |
int cmp_l (CLINT a_l, CLINT b_l); | size comparison of |
int cpy_l (CLINT dest_l, CLINT src_l); | assignment of |
int equ_l (CLINT a_l, CLINT b_l); | test of equality of |
void fswap_l (CLINT a_l, CLINT b_l); | exchange of |
clint* setmax_l (CLINT n_l); | set |
int
str2clint_l (CLINT n_l,
char *N, USHORT b); | convert a character string to the base |
void u2clint_l (CLINT num_l, USHORT ul); | convert |
void ul2clint_l (CLINT num_l, ULONG ul); | convert |
unsigned int vcheck_l (CLINT n_l); |
|
char* verstr_l (); | output the version of the FLINT/C library in a character string, with identifiers ' |
char*
xclint2str_l (CLINT n_l,
USHORT base, int showbase); | convert from |
int
add_l (CLINT a_l, CLINT b_l,
CLINT s_l) | addition: sum of |
int dec_l (CLINT a_l) | decrement |
int
div_l (CLINT a_l, CLINT b_l,
CLINT q_l, CLINT r_l) | division with remainder: division of |
int inc_l (CLINT a_l) | increment |
int
mul_l (CLINT a_l, CLINT b_l,
CLINT p_l) | multiplication: product of |
int sqr_l (CLINT a_l, CLINT p_l) | square |
int
sub_l (CLINT a_l, CLINT b_l,
CLINT s_l) | subtraction: difference of |
int
uadd_l (CLINT a_l, USHORT b,
CLINT s_l) | mixed addition: sum of |
int
udiv_l (CLINT a_l, USHORT b,
CLINT q_l, CLINT r_l) | mixed division with remainder: division of |
int
umul_l (CLINT a_l, USHORT b,
CLINT p_l) | mixed multiplication: product of |
int
usub_l (CLINT a_l, USHORT b,
CLINT c_l) | mixed subtraction: difference of |
int
madd_l (CLINT a_l, CLINT b_l,
CLINT c_l, CLINT m_l); | modular addition: addition of |
int
mequ_l (CLINT a_l, CLINT b_l,
CLINT m_l); | test for equality of |
int
mexp_l (CLINT bas_l, CLINT e_l,
CLINT p_l,CLINT m_l); | modular exponentiation, automatic use of |
int
mexp2_l (CLINT bas_l, USHORT e,
CLINT p_l, CLINT m_l); | modular exponentiation, exponent |
int
mexp5_l (CLINT bas_l, CLINT exp_l,
CLINT p_l,CLINT m_l); | modular exponentiation, 25-ary method |
int
mexp5m_l (CLINT bas_l, CLINT exp_l,
CLINT p_l, CLINT m_l); | Montgomery exponentiation, 25-ary method, oddmodulus |
int
mexpk_l (CLINT bas_l, CLINT exp_l,
CLINT p_l, CLINT m_l); | modular exponentiation, 2k-ary method, dynamic memory with |
int
mexpkm_l (CLINT bas_l, CLINT exp_l,
CLINT p_l, CLINT m_l); | Montgomery exponentiation, 2k -ary method with odd modulus |
int
mmul_l (CLINT a_l, CLINT b_l,
CLINT c_l, CLINT m_l); | modular multiplication: multiplication of |
int
mod_l (CLINT d_l, CLINT n_l,
CLINT r_l); | residue of |
int
mod2_l (CLINT d_l, ULONG k,
CLINT r_l); | residue of |
int
msqr_l (CLINT a_l, CLINT c_l,
CLINT m_l); | modular squaring of |
int
msub_l (CLINT a_l, CLINT b_l,
CLINT c_l, CLINT m_l); | modular subtraction: subtraction of |
void
mulmon_l (CLINT a_l, CLINT b_l,
CLINT n_l, USHORT nprime,
USHORT log B_r, CLINT p_l); | modular multiplication of |
void
sqrmon_l (CLINT a_l, CLINT n_l,
USHORT nprime, USHORT logB_r,
CLINT p_l); | modular squaring of |
int
umadd_l (CLINT a_l, USHORT b,
CLINT c_l, CLINT m_l); | mixed modular addition: addition of |
int
umexp_l (CLINT bas_l, USHORT e,
CLINT p_l, CLINT m_l); | modular exponentiation, |
int
umexpm_l (CLINT bas_l, USHORT e,
CLINT p_l, CLINT m_l); | modular exponentiation, odd modulus, |
int
ummul_l (CLINT a_l, USHORT b,
CLINT p_l, CLINT m_l); | mixed modular multiplication of |
USHORT umod_l (CLINT d_l, USHORT n); | residue of |
int
umsub_l (CLINT a_l, USHORT b,
CLINT c_l, CLINT m_l); | mixed modular subtraction: subtraction of |
int
wmexp_l (USHORT bas, CLINT e_l,
CLINT p_l, CLINT m_l); | modular exponentiation, |
int
wmexpm_l (USHORT bas, CLINT e_l,
CLINT p_l, CLINT m_l); | Montgomery exponentiation, oddmodulus, |
void
and_l (CLINT a_l, CLINT b_l,
CLINT c_l) | bitwise AND of |
int
clearbit_l (CLINT a_l,
unsigned int pos) | test and clear the bit of |
void
or_l (CLINT a_l, CLINT b_l,
CLINT c_l) | bitwise OR of |
int
setbit_l (CLINT a_l,
unsigned int pos) | test and set the bit of |
int
shift_l (CLINT a_l,
long int noofbits) | left/right shift of |
int shl_l (CLINT a_l) | right shift of |
int shr_l (CLINT a_l) | left shift of |
int
testbit_l (CLINT a_l,
unsigned int pos) | test the bit of |
void
xor_l (CLINT a_l, CLINT b_l,
CLINT c_l) | bitwise exclusive OR (XOR) of |
int
chinrem_l (unsigned noofeq,
clint** coeff_l, CLINT x_l) | solution of simultaneous linear congruences, output in |
void
gcd_l (CLINT a_l, CLINT b_l,
CLINT g_l) | greatest common divisor of |
int introot_l (CLINT a_l, USHORT b, CLINT r_l) | integer part of bth root of |
void
inv_l (CLINT a_l, CLINT n_l,
CLINT g_l, CLINT i_l) | gcd of |
unsigned iroot_l (CLINT a_l, CLINT r_l) | integer part of square root of |
int jacobi_l (CLINT a_l, CLINT b_l) | Legendre/Jacobi symbol, |
void
lcm_l (CLINT a_l, CLINT b_l,
CLINT v_l) | least common multiple of |
int prime_l (CLINT n_l,
unsigned noofsmallprimes,
unsigned iterations) | Miller-Rabin primality test of |
int
primroot_l (CLINT x_l,
unsigned noofprimes,
clint** primes_l) | determine a primitive root modulo n, output in |
int
proot_l (CLINT a_l, CLINT p_l,
CLINT x_l) | square root of |
int
root_l (CLINT a_l, CLINT p_l,
CLINT q_l, CLINT x_l) | square root of |
USHORT
sieve_l (CLINT a_l,
unsigned noofsmallprimes) | division sieve, division of |
void
xgcd_l (CLINT a_l, CLINT b_l,
CLINT g_l,
CLINT u_l, int *sign_u,
CLINT v_l, int *sign_v) | greatest common divisor of |
UCHAR bRand_l (STATEPRNG *xrstate) | generation of a pseudorandom number of type |
UCHAR bRandBBS_l (STATEBBS *xrstate) | generation of a pseudorandom number of type |
int
FindPrime_l (CLINT p_l,
STATEPRNG *xrstate, USHORT l) | deterimine a pseudorandom prime |
int
FindPrimeGcd_l (CLINT p_l,
STATEPRNG *xrstate,
USHORT l, CLINT f_l) | deterimine a pseudorandom prime |
int
FindPrimeMinMaxGcd_l (CLINT p_l,
STATEPRNG *xrstate,
CLINT rmin_l,
CLINT rmax_l, CLINT f_l) | deterimine a pseudorandom prime |
int
GetEntropy_l (CLINT Seed_l,
char *Hashres,int AddEntropy,
char *RndStr, int LenRndStr) | generate entropy for initializing pseudorandom number generator |
int
InitRand_l (STATEPRNG *xrstate,
char *UsrStr, int LenUsrStr,
int AddEntropy, int Generator) | initialize a yet to be specified random number generator with generation of entropy |
int
InitRandAES_l (STATEAES *rstate,
char *UsrStr, int LenUsrStr,
int AddEntropy) | initialize the AES random number generator with generation of entropy |
int
InitRandBBS_l (STATEBBS *rstate,
char *UsrStr, int LenUsrStr,
int AddEntropy) | initialize the Blum-Blum-Shub random number generator with generation of entropy |
int
InitRandRMDSHA1_l (
STATERMDSHA1 *rstate,
char * UsrStr, int LenUsrStr,
int AddEntropy) | initialize the RandRMDSHA-1 random number generator with generation of entropy |
ULONG lRand_l (STATEPRNG *xrstate) | generator for random numbers of type |
void PurgeRand_l (STATEPRNG *xrstate) | delete internal state of a pseudorandom generator |
void PurgeRandAES_l (STATEAES *rstate) | delete internal state of pseudorandom generator RandAES |
void PurgeRandBBS_l (STATEBBS *rstate) | delete internal state of pseudorandom generator RandBBS |
void
PurgeRandRMDSHA1_l (STATERMDSHA1
*rstate) | delete internal state of pseudorandom generator RandRMDSHA1 |
int
Rand_l (CLINT r_l,
STATEPRNG *xrstate, int l) | generation of a pseudorandom number |
void rand_l (CLINT r_l, int l) | CLINT random number with |
clint* rand64_l (void) | 64-bit random number generator |
int
RandAES_l (CLINT r_l,
STATEAES *rstate, int l) |
|
int
RandBBS_l (CLINT r_l,
STATEBBS *rstate, int l) |
|
clint* randBBS_l (CLINT r_l, int l) |
|
int RandlMinMax_l (CLINT r_l, STATEPRNG *xrstate, CLINT rmin_l, CLINT rmax_l) | determine a |
int
RandRMDSHA1_l (CLINT r_l,
STATERMDSHA1 *rstate, int l) |
|
int randbit_l (void) | BBS bit generator |
clint* seed64_l (CLINT seed_l) | initialization of |
void seedBBS_l (CLINT seed_l) | initialization of |
USHORT sRand_l (STATEPRNG *xrstate) | generate a pseudorandom number of type |
int SwitchRandAES_l (STATEAES *rstate) | deterministic random number generator based on AES |
int SwitchRandBBS_l (STATEBBS *rstate) | deterministic random number generator based on BBS |
int
SwitchRandRMDSHA1_l
(STATERMDSHA1 *rstate) | deterministic random number generator based on hash functions SHA-1 and RIPEMD-160 |
UCHAR ucrand64_l (void) | generator for random numbers of type |
UCHAR ucrandBBS_l (void) | BBS generator for random number of type |
ULONG ulrand64_l (void) | generator for random numbers of type |
ULONG ulrandBBS_l (void) | BBS generator for random number of type |
clint* ulseed64_l (ULONG seed) | initialization of |
void ulseedBBS_l (ULONG seed) | initialization of |
USHORT usrand64_l (void) | generator for random numbers of type |
USHORT usrandBBS_l (void) | BBS generator for random number of type |
clint* create_l (void) | generate a |
int create_reg_l (void) | generate the |
void free_l (CLINT n_l); | clear a register by overwriting and release memory |
void free_reg_l (void) | clear all registers of the register bank by overwriting, then release memory |
clint* get_reg_l (unsigned int reg) | generate reference to register |
void purge_l (CLINT n_l) | clear a |
int purge_reg_l (unsigned int reg) | clear a register of the register bank by overwriting |
int purgeall_reg_l (void) | clear all registers of the register bank by overwriting |
void set_noofregs_l (unsigned int nregs) | set number of registers |