Botan  1.11.15
src/lib/block/serpent_x86_32/serp_x86_32.h
Go to the documentation of this file.
00001 /*
00002 * Serpent in x86-32 asm
00003 * (C) 1999-2007 Jack Lloyd
00004 *
00005 * Botan is released under the Simplified BSD License (see license.txt)
00006 */
00007 
00008 #ifndef BOTAN_SERPENT_X86_32_H__
00009 #define BOTAN_SERPENT_X86_32_H__
00010 
00011 #include <botan/serpent.h>
00012 
00013 namespace Botan {
00014 
00015 /**
00016 * Serpent implementation in x86-32 assembly
00017 */
00018 class BOTAN_DLL Serpent_X86_32 : public Serpent
00019    {
00020    public:
00021       void encrypt_n(const byte in[], byte out[], size_t blocks) const;
00022       void decrypt_n(const byte in[], byte out[], size_t blocks) const;
00023 
00024       BlockCipher* clone() const { return new Serpent_X86_32; }
00025    private:
00026       void key_schedule(const byte[], size_t);
00027    };
00028 
00029 }
00030 
00031 #endif