aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-08-15 11:36:16 +0000
committerlloyd <[email protected]>2006-08-15 11:36:16 +0000
commit9878bca6ac9ea94c3cba87a06144e93e12fd933b (patch)
tree4e40bd510f2951d9bc7ed04df9eacfcc52750e2c /modules
parent12a48f7ffac24d0342a9572d489b0b543fa46df7 (diff)
Remove unused variable
Collect the external functions into a single extern "C" block
Diffstat (limited to 'modules')
-rw-r--r--modules/alg_ia32/serpent.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/modules/alg_ia32/serpent.cpp b/modules/alg_ia32/serpent.cpp
index 4bae0a79c..964b677a1 100644
--- a/modules/alg_ia32/serpent.cpp
+++ b/modules/alg_ia32/serpent.cpp
@@ -8,9 +8,13 @@
namespace Botan {
-extern "C" void serpent_encrypt(const byte[16], byte[16], const u32bit[132]);
-extern "C" void serpent_decrypt(const byte[16], byte[16], const u32bit[132]);
-extern "C" void serpent_key_schedule(u32bit[140]);
+extern "C" {
+
+void serpent_encrypt(const byte[16], byte[16], const u32bit[132]);
+void serpent_decrypt(const byte[16], byte[16], const u32bit[132]);
+void serpent_key_schedule(u32bit[140]);
+
+}
/*************************************************
* Serpent Encryption *
@@ -33,8 +37,6 @@ void Serpent::dec(const byte in[], byte out[]) const
*************************************************/
void Serpent::key(const byte key[], u32bit length)
{
- const u32bit PHI = 0x9E3779B9;
-
SecureBuffer<u32bit, 140> W;
for(u32bit j = 0; j != length / 4; ++j)
W[j] = make_u32bit(key[4*j+3], key[4*j+2], key[4*j+1], key[4*j]);