aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2014-05-16 16:29:24 +0000
committerlloyd <[email protected]>2014-05-16 16:29:24 +0000
commit6c9a2d2ebe59b7c5a501c86f7f080696ac2ea5b3 (patch)
tree292cef2a8c3d644efbf6e7b77d8e7a4aef1dd17a
parent9ac0b0612ea36dd9a2e850745238c20ee6b0444f (diff)
parent7c4f869678ae68faf792ba64064ccc11e2788692 (diff)
merge of 'ae7e800adaf5627c6033a09814b7e3644e7d92b7'
and 'b0a68aa4287f0ccf387bb9e9196d4aa1a682fe77'
-rw-r--r--src/lib/math/mp/mp_shift.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/math/mp/mp_shift.cpp b/src/lib/math/mp/mp_shift.cpp
index 0531658ec..b35f3a00b 100644
--- a/src/lib/math/mp/mp_shift.cpp
+++ b/src/lib/math/mp/mp_shift.cpp
@@ -1,6 +1,6 @@
/*
* MP Shift Algorithms
-* (C) 1999-2007 Jack Lloyd
+* (C) 1999-2007,2014 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
@@ -19,8 +19,7 @@ void bigint_shl1(word x[], size_t x_size, size_t word_shift, size_t bit_shift)
{
if(word_shift)
{
- for(size_t j = 1; j != x_size + 1; ++j)
- x[(x_size - j) + word_shift] = x[x_size - j];
+ copy_mem(x + word_shift, x, x_size);
clear_mem(x, word_shift);
}