diff options
| author | 2010-12-27 01:30:53 +0000 | |
|---|---|---|
| committer | 2010-12-27 01:30:53 +0000 | |
| commit | 88dbe3435e6fad9aa52406ce10f878b7c583dcb7 (patch) | |
| tree | b8310ee692b7d52309aa52ae6eb0c8313aaddd26 /src/modules/rijndael/ablowfish.cpp | |
| parent | More renaming & cleanup. (diff) | |
| download | KVIrc-88dbe3435e6fad9aa52406ce10f878b7c583dcb7.tar.gz KVIrc-88dbe3435e6fad9aa52406ce10f878b7c583dcb7.tar.bz2 KVIrc-88dbe3435e6fad9aa52406ce10f878b7c583dcb7.zip | |
Kill system memmove, ix86 asm and kvi_memmove stuff: modern gcc coupled to glibc can do better these times.
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5235 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/rijndael/ablowfish.cpp')
| -rw-r--r-- | src/modules/rijndael/ablowfish.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/rijndael/ablowfish.cpp b/src/modules/rijndael/ablowfish.cpp index 91820baf3..1c829f3b0 100644 --- a/src/modules/rijndael/ablowfish.cpp +++ b/src/modules/rijndael/ablowfish.cpp @@ -23,7 +23,7 @@ //============================================================================= #include "ablowfish.h" -#include "kvi_memmove.h" +#include "KviMemory.h" #ifdef COMPILE_CRYPT_SUPPORT @@ -318,11 +318,11 @@ BlowFish::BlowFish(unsigned char* ucKey, unsigned int keysize, const SBlock& roC keysize = 56; unsigned char aucLocalKey[56]; unsigned int i, j; - kvi_fastmove(aucLocalKey, ucKey, keysize); + KviMemory::copy(aucLocalKey, ucKey, keysize); //Reflexive Initialization of the Blowfish. //Generating the Subkeys from the Key flood P and S boxes with PI - kvi_fastmove(m_auiP, scm_auiInitP, sizeof(m_auiP)); - kvi_fastmove(m_auiS, scm_auiInitS, sizeof(m_auiS)); + KviMemory::copy(m_auiP, scm_auiInitP, sizeof(m_auiP)); + KviMemory::copy(m_auiS, scm_auiInitS, sizeof(m_auiS)); //Load P boxes with key bytes const unsigned char* p = aucLocalKey; unsigned int x=0; |
