diff options
author | lloyd <[email protected]> | 2007-07-17 23:48:14 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2007-07-17 23:48:14 +0000 |
commit | 5ea451fc8db248c76fe68db87b9c76ffad019655 (patch) | |
tree | 7c5f8717a4521aeeee4fa9c9f38df791b9339102 /src/blowfish.cpp | |
parent | e56d05f6e77044ce4fdc4288dc9bb4eb556d13fd (diff) |
Combine the Blowfish initial sbox contents into a single 1024 element array.
Diffstat (limited to 'src/blowfish.cpp')
-rw-r--r-- | src/blowfish.cpp | 8 |
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); } } |