aboutsummaryrefslogtreecommitdiffstats
path: root/src/blowfish.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2007-07-17 23:48:14 +0000
committerlloyd <[email protected]>2007-07-17 23:48:14 +0000
commit5ea451fc8db248c76fe68db87b9c76ffad019655 (patch)
tree7c5f8717a4521aeeee4fa9c9f38df791b9339102 /src/blowfish.cpp
parente56d05f6e77044ce4fdc4288dc9bb4eb556d13fd (diff)
Combine the Blowfish initial sbox contents into a single 1024 element array.
Diffstat (limited to 'src/blowfish.cpp')
-rw-r--r--src/blowfish.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/blowfish.cpp b/src/blowfish.cpp
index 8fd43ee7e..779053266 100644
--- a/src/blowfish.cpp
+++ b/src/blowfish.cpp
@@ -105,10 +105,10 @@ void Blowfish::generate_sbox(u32bit Box[], u32bit size,
void Blowfish::clear() throw()
{
P.copy(PBOX, 18);
- S1.copy(SBOX1, 256);
- S2.copy(SBOX2, 256);
- S3.copy(SBOX3, 256);
- S4.copy(SBOX4, 256);
+ S1.copy(SBOX + 0, 256);
+ S2.copy(SBOX + 256, 256);
+ S3.copy(SBOX + 512, 256);
+ S4.copy(SBOX + 768, 256);
}
}