botan_math.mp_bigint

Botan BigInt operations

Members

Functions

bigint_add2
void bigint_add2(word* x, size_t x_size, word* y, size_t y_size)

Two operand addition

bigint_add2_nc
word bigint_add2_nc(word* x, size_t x_size, word* y, size_t y_size)

Two operand addition with carry out

bigint_add3
void bigint_add3(word* z, word* x, size_t x_size, word* y, size_t y_size)

Three operand addition

bigint_add3_nc
word bigint_add3_nc(word* z, word* x, size_t x_size, word* y, size_t y_size)

Three operand addition with carry out

bigint_cmp
int bigint_cmp(word* x, size_t x_size, word* y, size_t y_size)

Compare x and y

bigint_divop
word bigint_divop(word n1, word n0, word d)

Compute ((n1<<bits) + n0) / d

bigint_linmul2
void bigint_linmul2(word* x, size_t x_size, word y)
Undocumented in source. Be warned that the author may not have intended to support it.
bigint_linmul3
void bigint_linmul3(word* z, word* x, size_t x_size, word y)
Undocumented in source. Be warned that the author may not have intended to support it.
bigint_modop
word bigint_modop(word n1, word n0, word d)

Compute ((n1<<bits) + n0) % d

bigint_shl1
void bigint_shl1(word* x, size_t x_size, size_t word_shift, size_t bit_shift)
Undocumented in source. Be warned that the author may not have intended to support it.
bigint_shl2
void bigint_shl2(word* y, word* x, size_t x_size, size_t word_shift, size_t bit_shift)
Undocumented in source. Be warned that the author may not have intended to support it.
bigint_shr1
void bigint_shr1(word* x, size_t x_size, size_t word_shift, size_t bit_shift)
Undocumented in source. Be warned that the author may not have intended to support it.
bigint_shr2
void bigint_shr2(word* y, word* x, size_t x_size, size_t word_shift, size_t bit_shift)
Undocumented in source. Be warned that the author may not have intended to support it.
bigint_simple_mul
void bigint_simple_mul(word* z, word* x, size_t x_size, word* y, size_t y_size)
Undocumented in source. Be warned that the author may not have intended to support it.
bigint_simple_sqr
void bigint_simple_sqr(word* z, word* x, size_t x_size)
Undocumented in source. Be warned that the author may not have intended to support it.
bigint_sub2
word bigint_sub2(word* x, size_t x_size, word* y, size_t y_size)

Two operand subtraction

bigint_sub2_rev
void bigint_sub2_rev(word* x, word* y, size_t y_size)

Two operand subtraction, x = y - x; assumes y >= x

bigint_sub3
word bigint_sub3(word* z, word* x, size_t x_size, word* y, size_t y_size)

Three operand subtraction

Variables

MP_WORD_BITS
size_t MP_WORD_BITS;
Undocumented in source.

Meta

License

Botan is released under the Simplified BSD License (see LICENSE.md)