Botan: src/block/xtea_simd/xtea_simd.h Source File

Botan 1.10.17

xtea_simd.h
Go to the documentation of this file.
1 /*
2 * XTEA in SIMD
3 * (C) 2009 Jack Lloyd
4 *
5 * Distributed under the terms of the Botan license
6 */
7
8 #ifndef BOTAN_XTEA_SIMD_H__
9 #define BOTAN_XTEA_SIMD_H__
10
11 #include <botan/xtea.h>
12
13 namespace Botan {
14
15 /**
16 * XTEA implemented using SIMD operations
17 */
18 class BOTAN_DLL XTEA_SIMD : public XTEA
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 BlockCipher* clone() const { return new XTEA_SIMD; }
26 };
27
28 }
29
30 #endif
Botan::XTEA
Definition: xtea.h:18
Botan::byte
unsigned char byte
Definition: types.h:22
Botan::XTEA_SIMD
Definition: xtea_simd.h:18
Botan::XTEA_SIMD::parallelism
size_t parallelism() const
Definition: xtea_simd.h:21
Botan
Definition: algo_base.h:14
Botan::XTEA_SIMD::clone
BlockCipher * clone() const
Definition: xtea_simd.h:25
Botan::BlockCipher
Definition: block_cipher.h:18