|
Botan
1.10.17
|
#include <gmp_wrap.h>
Public Member Functions | |
| size_t | bytes () const |
| void | encode (byte[], size_t) const |
| GMP_MPZ (const GMP_MPZ &) | |
| GMP_MPZ (const BigInt &=0) | |
| GMP_MPZ (const byte[], size_t) | |
| GMP_MPZ & | operator= (const GMP_MPZ &) |
| BigInt | to_bigint () const |
| SecureVector< byte > | to_bytes () const |
| ~GMP_MPZ () | |
Public Attributes | |
| mpz_t | value |
Lightweight GMP mpz_t wrapper. For internal use only.
Definition at line 19 of file gmp_wrap.h.
| Botan::GMP_MPZ::GMP_MPZ | ( | const GMP_MPZ & | other | ) |
| Botan::GMP_MPZ::GMP_MPZ | ( | const BigInt & | in = 0 | ) |
Definition at line 25 of file gmp_wrap.cpp.
References Botan::BigInt::data(), Botan::BigInt::sig_words(), and value.
| Botan::GMP_MPZ::GMP_MPZ | ( | const byte | in[], |
| size_t | length | ||
| ) |
| Botan::GMP_MPZ::~GMP_MPZ | ( | ) |
Definition at line 52 of file gmp_wrap.cpp.
References value.
| size_t Botan::GMP_MPZ::bytes | ( | ) | const |
Definition at line 78 of file gmp_wrap.cpp.
References value.
Referenced by encode(), and to_bigint().
| void Botan::GMP_MPZ::encode | ( | byte | out[], |
| size_t | length | ||
| ) | const |
| BigInt Botan::GMP_MPZ::to_bigint | ( | ) | const |
Definition at line 86 of file gmp_wrap.cpp.
References bytes(), Botan::BigInt::flip_sign(), Botan::BigInt::get_reg(), Botan::BigInt::Positive, and value.
Referenced by to_bytes().
|
inline |
Definition at line 28 of file gmp_wrap.h.
References Botan::BigInt::encode(), and to_bigint().
| mpz_t Botan::GMP_MPZ::value |
Definition at line 22 of file gmp_wrap.h.
Referenced by bytes(), encode(), GMP_MPZ(), operator=(), to_bigint(), and ~GMP_MPZ().
1.8.14