From 561f10539494ce6cba62d58dab2a6686e04c760b Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sat, 23 Mar 2013 20:53:08 +0000 Subject: CryptoPP: Pruned unused files git-svn-id: http://mc-server.googlecode.com/svn/trunk@1304 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- CryptoPP/blowfish.cpp | 99 --------------------------------------------------- 1 file changed, 99 deletions(-) delete mode 100644 CryptoPP/blowfish.cpp (limited to 'CryptoPP/blowfish.cpp') diff --git a/CryptoPP/blowfish.cpp b/CryptoPP/blowfish.cpp deleted file mode 100644 index aaa637cca..000000000 --- a/CryptoPP/blowfish.cpp +++ /dev/null @@ -1,99 +0,0 @@ -// blowfish.cpp - written and placed in the public domain by Wei Dai - -#include "pch.h" -#include "blowfish.h" -#include "misc.h" - -NAMESPACE_BEGIN(CryptoPP) - -void Blowfish::Base::UncheckedSetKey(const byte *key_string, unsigned int keylength, const NameValuePairs &) -{ - AssertValidKeyLength(keylength); - - unsigned i, j=0, k; - word32 data, dspace[2] = {0, 0}; - - memcpy(pbox, p_init, sizeof(p_init)); - memcpy(sbox, s_init, sizeof(s_init)); - - // Xor key string into encryption key vector - for (i=0 ; i Block; - - word32 left, right; - Block::Get(inBlock)(left)(right); - - const word32 *const s=sbox; - const word32 *p=pbox; - - left ^= p[0]; - - for (unsigned i=0; i