aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/math/bigint/bigint.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-03-21 02:52:11 -0400
committerJack Lloyd <[email protected]>2018-03-21 02:52:11 -0400
commit66e92c60eb5dff1b32995b2692594f8708c5c029 (patch)
treeb5b74a838422fa32d0f2c7e56ae2299a50344d81 /src/lib/math/bigint/bigint.h
parentc22fc530382acb28c3d747baf5eef8f44059182a (diff)
Simplify a common case BigInt constructor
Diffstat (limited to 'src/lib/math/bigint/bigint.h')
-rw-r--r--src/lib/math/bigint/bigint.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/math/bigint/bigint.h b/src/lib/math/bigint/bigint.h
index 3f0eb8523..56b907d80 100644
--- a/src/lib/math/bigint/bigint.h
+++ b/src/lib/math/bigint/bigint.h
@@ -74,9 +74,16 @@ class BOTAN_PUBLIC_API(2,0) BigInt final
* Create a BigInt from an integer in a byte array
* @param buf the byte array holding the value
* @param length size of buf
+ */
+ BigInt(const uint8_t buf[], size_t length);
+
+ /**
+ * Create a BigInt from an integer in a byte array
+ * @param buf the byte array holding the value
+ * @param length size of buf
* @param base is the number base of the integer in buf
*/
- BigInt(const uint8_t buf[], size_t length, Base base = Binary);
+ BigInt(const uint8_t buf[], size_t length, Base base);
/**
* Create a BigInt from an array of words