Botan: src/block/serpent_x86_32/serp_x86_32.h Source File

Botan 1.10.17

serp_x86_32.h
Go to the documentation of this file.
1 /*
2 * Serpent in x86-32 asm
3 * (C) 1999-2007 Jack Lloyd
4 *
5 * Distributed under the terms of the Botan license
6 */
7
8 #ifndef BOTAN_SERPENT_X86_32_H__
9 #define BOTAN_SERPENT_X86_32_H__
10
11 #include <botan/serpent.h>
12
13 namespace Botan {
14
15 /**
16 * Serpent implementation in x86-32 assembly
17 */
18 class BOTAN_DLL Serpent_X86_32 : public Serpent
19 {
20 public:
21 void encrypt_n(const byte in[], byte out[], size_t blocks) const;
22 void decrypt_n(const byte in[], byte out[], size_t blocks) const;
23
24 BlockCipher* clone() const { return new Serpent_X86_32; }
25 private:
26 void key_schedule(const byte[], size_t);
27 };
28
29 }
30
31 #endif
Botan::Serpent
Definition: serpent.h:18
Botan::Serpent_X86_32::clone
BlockCipher * clone() const
Definition: serp_x86_32.h:24
Botan::byte
unsigned char byte
Definition: types.h:22
Botan::Serpent_X86_32
Definition: serp_x86_32.h:18
Botan
Definition: algo_base.h:14
Botan::BlockCipher
Definition: block_cipher.h:18