diff options
author | Jack Lloyd <[email protected]> | 2018-04-18 11:35:27 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-04-18 11:35:27 -0400 |
commit | 7e4e69629d61307c0366a3fc7aae675b3a947ca3 (patch) | |
tree | 2b93220bde4554f2c5ccaf1c91e9f66ae1970f96 /src/lib/math | |
parent | b95c70232d9b8434c0cf7bb16aa767c10fbf3522 (diff) |
Remove now unused function
Diffstat (limited to 'src/lib/math')
-rw-r--r-- | src/lib/math/numbertheory/nistp_redc.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/lib/math/numbertheory/nistp_redc.cpp b/src/lib/math/numbertheory/nistp_redc.cpp index d0da7b9f1..9ceb7c167 100644 --- a/src/lib/math/numbertheory/nistp_redc.cpp +++ b/src/lib/math/numbertheory/nistp_redc.cpp @@ -98,25 +98,6 @@ inline uint32_t get_uint32_t(const BigInt& x, size_t i) #endif } -/** -* Treating this MPI as a sequence of 32-bit words in big-endian -* order, set word i to the value x -*/ -template<typename T> -inline void set_uint32_t(BigInt& x, size_t i, T v_in) - { - const uint32_t v = static_cast<uint32_t>(v_in); -#if (BOTAN_MP_WORD_BITS == 32) - x.set_word_at(i, v); -#elif (BOTAN_MP_WORD_BITS == 64) - const word shift_32 = (i % 2) * 32; - const word w = (x.word_at(i/2) & (static_cast<word>(0xFFFFFFFF) << (32-shift_32))) | (static_cast<word>(v) << shift_32); - x.set_word_at(i/2, w); -#else - #error "Not implemented" -#endif - } - inline void set_words(BigInt& x, size_t i, uint32_t R0, uint32_t R1) { #if (BOTAN_MP_WORD_BITS == 32) |