diff options
author | Jack Lloyd <[email protected]> | 2018-12-08 06:40:32 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-12-08 06:40:32 -0500 |
commit | 1605c244695a9d2b871dc46c8dbe6bc3fced45a6 (patch) | |
tree | 83bc48802a45bed6e00313777f2f54330a006419 /src/lib/math/bigint/bigint.h | |
parent | d1961721731654d39ef72bc28fe9167a850326e0 (diff) | |
parent | 9ea9ebe5cb72656717eea35836b0fb827a5cee86 (diff) |
Merge GH #1774 Const time BigInt shifts
Diffstat (limited to 'src/lib/math/bigint/bigint.h')
-rw-r--r-- | src/lib/math/bigint/bigint.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/math/bigint/bigint.h b/src/lib/math/bigint/bigint.h index a987fffda..387bbe8f9 100644 --- a/src/lib/math/bigint/bigint.h +++ b/src/lib/math/bigint/bigint.h @@ -604,6 +604,13 @@ class BOTAN_PUBLIC_API(2,0) BigInt final size_t bits() const; /** + * Get the number of high bits unset in the top (allocated) word + * of this integer. Returns BOTAN_MP_WORD_BITS only iff *this is + * zero. Ignores sign. + */ + size_t top_bits_free() const; + + /** * Return a mutable pointer to the register * @result a pointer to the start of the internal register */ |