Botan 1.10.17

idea_sse2.h
Go to the documentation of this file.
1 /*
2 * IDEA in SSE2
3 * (C) 2009 Jack Lloyd
4 *
5 * Distributed under the terms of the Botan license
6 */
7
8 #ifndef BOTAN_IDEA_SSE2_H__
9 #define BOTAN_IDEA_SSE2_H__
10
11 #include <botan/idea.h>
12
13 namespace Botan {
14
15 /**
16 * IDEA in SSE2
17 */
18 class BOTAN_DLL IDEA_SSE2 : public IDEA
19 {
20 public:
21 size_t parallelism() const { return 8; }
22
23 void encrypt_n(const byte in[], byte out[], size_t blocks) const;
24 void decrypt_n(const byte in[], byte out[], size_t blocks) const;
25
26 BlockCipher* clone() const { return new IDEA_SSE2; }
27 };
28
29 }
30
31 #endif
Botan::IDEA_SSE2::clone
BlockCipher * clone() const
Definition: idea_sse2.h:26
Botan::IDEA
Definition: idea.h:18
Botan::byte
unsigned char byte
Definition: types.h:22
Botan
Definition: algo_base.h:14
Botan::IDEA_SSE2
Definition: idea_sse2.h:18
Botan::IDEA_SSE2::parallelism
size_t parallelism() const
Definition: idea_sse2.h:21
Botan::BlockCipher
Definition: block_cipher.h:18