diff options
Diffstat (limited to 'src/lib/math/bigint/bigint.h')
-rw-r--r-- | src/lib/math/bigint/bigint.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/math/bigint/bigint.h b/src/lib/math/bigint/bigint.h index 0d9b43357..2205c7e83 100644 --- a/src/lib/math/bigint/bigint.h +++ b/src/lib/math/bigint/bigint.h @@ -120,6 +120,11 @@ class BOTAN_DLL BigInt std::swap(m_signedness, other.m_signedness); } + void swap_reg(secure_vector<word>& reg) + { + m_reg.swap(reg); + } + /** * += operator * @param y the BigInt to add to this |