From cb4a46e7fbe62d788e66ed6121c717a2d22a4d7c Mon Sep 17 00:00:00 2001 From: watcherhd Date: Thu, 21 Apr 2011 14:14:52 +0000 Subject: svn.miranda.im is moving to a new home! git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@7 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb --- cryptopp/crypto/misc.cpp | 98 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 cryptopp/crypto/misc.cpp (limited to 'cryptopp/crypto/misc.cpp') diff --git a/cryptopp/crypto/misc.cpp b/cryptopp/crypto/misc.cpp new file mode 100644 index 0000000..92aa7d2 --- /dev/null +++ b/cryptopp/crypto/misc.cpp @@ -0,0 +1,98 @@ +// misc.cpp - written and placed in the public domain by Wei Dai + +#include "pch.h" + +#ifndef CRYPTOPP_IMPORTS + +#include "misc.h" +#include "words.h" +#include + +NAMESPACE_BEGIN(CryptoPP) + +void xorbuf(byte *buf, const byte *mask, size_t count) +{ + size_t i; + + if (IsAligned(buf) && IsAligned(mask)) + { + #if defined(WORD64_AVAILABLE) && !defined(CRYPTOPP_SLOW_WORD64) + if (IsAligned(buf) && IsAligned(mask)) + { + for (i=0; i(output) && IsAligned(input) && IsAligned(mask)) + { + #if defined(WORD64_AVAILABLE) && !defined(CRYPTOPP_SLOW_WORD64) + if (IsAligned(output) && IsAligned(input) && IsAligned(mask)) + { + for (i=0; i