summaryrefslogtreecommitdiff
path: root/extra/yassl/taocrypt/src/twofish.cpp
diff options
context:
space:
mode:
authorGeorgi Kodinov <Georgi.Kodinov@Oracle.com>2012-02-10 11:10:07 +0200
committerGeorgi Kodinov <Georgi.Kodinov@Oracle.com>2012-02-10 11:10:07 +0200
commita25adb1cc830d7e263daa03560a129ac9cd6828a (patch)
tree97ca7c617705640e96a1d84489aac41bfe6585a5 /extra/yassl/taocrypt/src/twofish.cpp
parent12376c17b3d79aea4b905980ba0ae25f669e20ce (diff)
downloadmariadb-git-a25adb1cc830d7e263daa03560a129ac9cd6828a.tar.gz
Bug#13706621 : UNIFY THE YASSL VERSIONS THAT WE USE BY BACKPORTING 5.1
AND 5.5 YASSL FIXES. Took the 5.5 yassl code and applied it to the 5.0 codebase, keeping the compilation files.
Diffstat (limited to 'extra/yassl/taocrypt/src/twofish.cpp')
-rw-r--r--extra/yassl/taocrypt/src/twofish.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/extra/yassl/taocrypt/src/twofish.cpp b/extra/yassl/taocrypt/src/twofish.cpp
index 84dd35f9191..272a0def169 100644
--- a/extra/yassl/taocrypt/src/twofish.cpp
+++ b/extra/yassl/taocrypt/src/twofish.cpp
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2000-2007 MySQL AB
+ Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -54,7 +54,7 @@ void Twofish::Process(byte* out, const byte* in, word32 sz)
out += BLOCK_SIZE;
in += BLOCK_SIZE;
}
- else if (mode_ == CBC)
+ else if (mode_ == CBC) {
if (dir_ == ENCRYPTION)
while (blocks--) {
r_[0] ^= *(word32*)in;
@@ -82,6 +82,7 @@ void Twofish::Process(byte* out, const byte* in, word32 sz)
out += BLOCK_SIZE;
in += BLOCK_SIZE;
}
+ }
}
#endif // DO_TWOFISH_ASM