19 #ifndef _AUTH_BIGNUMBER_H
20 #define _AUTH_BIGNUMBER_H
39 void SetHexStr(
char const* str);
41 void SetRand(
int32 numbits);
81 bool IsNegative()
const;
86 int32 GetNumBytes(
void);
88 struct bignum_st *
BN() {
return _bn; }
92 std::unique_ptr<uint8[]> AsByteArray(
int32 minSize = 0,
bool littleEndian =
true);
94 std::string AsHexStr()
const;
95 std::string AsDecStr()
const;
98 struct bignum_st *
_bn;
Definition: BigNumber.h:28
unorm16 & operator+=(const unorm16 other)
Definition: unorm16.h:126
BigNumber operator*(BigNumber const &bn)
Definition: BigNumber.h:60
BigNumber operator+(BigNumber const &bn)
Definition: BigNumber.h:46
unorm16 & operator/=(const int i)
Definition: unorm16.h:153
BigNumber operator-(BigNumber const &bn)
Definition: BigNumber.h:53
struct bignum_st * BN()
Definition: BigNumber.h:88
unorm16 & operator-=(const unorm16 other)
Definition: unorm16.h:135
BigNumber operator%(BigNumber const &bn)
Definition: BigNumber.h:74
Vector2int16 & operator=(const Any &a)
int32_t int32
Definition: Define.h:146
uint32_t uint32
Definition: Define.h:150
uint64_t uint64
Definition: Define.h:149
unorm16 & operator*=(const int i)
Definition: unorm16.h:144
#define TC_COMMON_API
Definition: Define.h:116
struct bignum_st * _bn
Definition: BigNumber.h:98
uint8_t uint8
Definition: Define.h:152
BigNumber operator/(BigNumber const &bn)
Definition: BigNumber.h:67