aboutsummaryrefslogtreecommitdiff
path: root/src/common/Cryptography/BigNumber.h
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2016-08-03 23:33:36 +0200
committerjackpoz <giacomopoz@gmail.com>2016-08-03 23:33:36 +0200
commite4b2e0450f9cf38b8c69c2877068cee4e5f99dbc (patch)
tree450f2d2230bc410d2d0dab73aec945aac8185581 /src/common/Cryptography/BigNumber.h
parent25dc3dd7a2fe1cea41b68559a7ccc0faa5ec5fa3 (diff)
Common/Crypto: Reduce differences between 3.3.5 and 6.x branches
Code functionality shouldn't have been modified.
Diffstat (limited to 'src/common/Cryptography/BigNumber.h')
-rw-r--r--src/common/Cryptography/BigNumber.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/common/Cryptography/BigNumber.h b/src/common/Cryptography/BigNumber.h
index 1d21be1b431..baf338552d0 100644
--- a/src/common/Cryptography/BigNumber.h
+++ b/src/common/Cryptography/BigNumber.h
@@ -21,6 +21,7 @@
#include <memory>
#include "Define.h"
+#include <string>
struct bignum_st;
@@ -76,7 +77,8 @@ class TC_COMMON_API BigNumber
return t %= bn;
}
- bool isZero() const;
+ bool IsZero() const;
+ bool IsNegative() const;
BigNumber ModExp(BigNumber const& bn1, BigNumber const& bn2);
BigNumber Exp(BigNumber const&);
@@ -89,8 +91,8 @@ class TC_COMMON_API BigNumber
std::unique_ptr<uint8[]> AsByteArray(int32 minSize = 0, bool littleEndian = true);
- char * AsHexStr() const;
- char * AsDecStr() const;
+ std::string AsHexStr() const;
+ std::string AsDecStr() const;
private:
struct bignum_st *_bn;