aboutsummaryrefslogtreecommitdiffstats
path: root/src/bit_ops.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2007-10-19 17:21:28 +0000
committerlloyd <[email protected]>2007-10-19 17:21:28 +0000
commit4c6fa9a9040a68150531da9327b7f40857ffa057 (patch)
tree68829ebc54ff276f464cf4696b496fc9ebdb4a1b /src/bit_ops.cpp
parentd527b430d6f82fef220ff0461e196183ce343fc9 (diff)
bit_ops.h no longer includes loadstor.h
Where loadstor.h was needed but only implicitly included via bit_ops.h, include it directly Add endian reversal functions to bit_ops.h Remove some unneeded includes in big_ops2.cpp and a few other files.
Diffstat (limited to 'src/bit_ops.cpp')
-rw-r--r--src/bit_ops.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/bit_ops.cpp b/src/bit_ops.cpp
index 1847b5773..22a01c037 100644
--- a/src/bit_ops.cpp
+++ b/src/bit_ops.cpp
@@ -3,12 +3,12 @@
* (C) 1999-2007 The Botan Project *
*************************************************/
-#include <botan/bit_ops.h>
+#include <botan/loadstor.h>
namespace Botan {
/*************************************************
-* XOR arrays together *
+* Array XOR *
*************************************************/
void xor_buf(byte data[], const byte mask[], u32bit length)
{
@@ -24,6 +24,9 @@ void xor_buf(byte data[], const byte mask[], u32bit length)
data[j] ^= mask[j];
}
+/*************************************************
+* Array XOR *
+*************************************************/
void xor_buf(byte out[], const byte in[], const byte mask[], u32bit length)
{
while(length >= 8)