Botan  2.9.0
Crypto and TLS for C++11
Namespaces | Functions | Variables
mp_core.h File Reference
#include <botan/types.h>
#include <botan/exceptn.h>
#include <botan/mem_ops.h>
#include <botan/internal/mp_asmi.h>
#include <botan/internal/ct_utils.h>
#include <algorithm>

Go to the source code of this file.

Namespaces

 Botan
 

Functions

void Botan::bigint_add2 (word x[], size_t x_size, const word y[], size_t y_size)
 
word Botan::bigint_add2_nc (word x[], size_t x_size, const word y[], size_t y_size)
 
void Botan::bigint_add3 (word z[], const word x[], size_t x_size, const word y[], size_t y_size)
 
word Botan::bigint_add3_nc (word z[], const word x[], size_t x_size, const word y[], size_t y_size)
 
int32_t Botan::bigint_cmp (const word x[], size_t x_size, const word y[], size_t y_size)
 
void Botan::bigint_cnd_abs (word cnd, word x[], size_t size)
 
word Botan::bigint_cnd_add (word cnd, word x[], word x_size, const word y[], size_t y_size)
 
word Botan::bigint_cnd_add (word cnd, word x[], const word y[], size_t size)
 
void Botan::bigint_cnd_add_or_sub (CT::Mask< word > mask, word x[], const word y[], size_t size)
 
word Botan::bigint_cnd_addsub (CT::Mask< word > mask, word x[], const word y[], const word z[], size_t size)
 
word Botan::bigint_cnd_sub (word cnd, word x[], size_t x_size, const word y[], size_t y_size)
 
word Botan::bigint_cnd_sub (word cnd, word x[], const word y[], size_t size)
 
void Botan::bigint_cnd_swap (word cnd, word x[], word y[], size_t size)
 
void Botan::bigint_comba_mul16 (word z[32], const word x[16], const word y[16])
 
void Botan::bigint_comba_mul24 (word z[48], const word x[24], const word y[24])
 
void Botan::bigint_comba_mul4 (word z[8], const word x[4], const word y[4])
 
void Botan::bigint_comba_mul6 (word z[12], const word x[6], const word y[6])
 
void Botan::bigint_comba_mul8 (word z[16], const word x[8], const word y[8])
 
void Botan::bigint_comba_mul9 (word z[18], const word x[9], const word y[9])
 
void Botan::bigint_comba_sqr16 (word z[32], const word x[16])
 
void Botan::bigint_comba_sqr24 (word z[48], const word x[24])
 
void Botan::bigint_comba_sqr4 (word z[8], const word x[4])
 
void Botan::bigint_comba_sqr6 (word z[12], const word x[6])
 
void Botan::bigint_comba_sqr8 (word z[16], const word x[8])
 
void Botan::bigint_comba_sqr9 (word z[18], const word x[9])
 
CT::Mask< word > Botan::bigint_ct_is_eq (const word x[], size_t x_size, const word y[], size_t y_size)
 
CT::Mask< word > Botan::bigint_ct_is_lt (const word x[], size_t x_size, const word y[], size_t y_size, bool lt_or_equal=false)
 
word Botan::bigint_divop (word n1, word n0, word d)
 
void Botan::bigint_linmul2 (word x[], size_t x_size, word y)
 
void Botan::bigint_linmul3 (word z[], const word x[], size_t x_size, word y)
 
void Botan::bigint_mod_sub (word t[], const word s[], const word mod[], size_t mod_sw, word ws[])
 
template<size_t N>
void Botan::bigint_mod_sub_n (word t[], const word s[], const word mod[], word ws[])
 
word Botan::bigint_modop (word n1, word n0, word d)
 
void Botan::bigint_monty_redc (word z[], const word p[], size_t p_size, word p_dash, word workspace[], size_t ws_size)
 
void Botan::bigint_mul (word z[], size_t z_size, const word x[], size_t x_size, size_t x_sw, const word y[], size_t y_size, size_t y_sw, word workspace[], size_t ws_size)
 
void Botan::bigint_shl1 (word x[], size_t x_size, size_t x_words, size_t word_shift, size_t bit_shift)
 
void Botan::bigint_shl2 (word y[], const word x[], size_t x_size, size_t word_shift, size_t bit_shift)
 
void Botan::bigint_shr1 (word x[], size_t x_size, size_t word_shift, size_t bit_shift)
 
void Botan::bigint_shr2 (word y[], const word x[], size_t x_size, size_t word_shift, size_t bit_shift)
 
void Botan::bigint_sqr (word z[], size_t z_size, const word x[], size_t x_size, size_t x_sw, word workspace[], size_t ws_size)
 
word Botan::bigint_sub2 (word x[], size_t x_size, const word y[], size_t y_size)
 
void Botan::bigint_sub2_rev (word x[], const word y[], size_t y_size)
 
word Botan::bigint_sub3 (word z[], const word x[], size_t x_size, const word y[], size_t y_size)
 
CT::Mask< word > Botan::bigint_sub_abs (word z[], const word x[], const word y[], size_t N, word ws[])
 
int32_t Botan::bigint_sub_abs (word z[], const word x[], size_t x_size, const word y[], size_t y_size)
 

Variables

const word Botan::MP_WORD_MASK = ~static_cast<word>(0)
 
const word Botan::MP_WORD_MAX = MP_WORD_MASK
 
const word Botan::MP_WORD_TOP_BIT = static_cast<word>(1) << (8*sizeof(word) - 1)