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

Botan 1.10.12

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

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