Botan  1.11.4
skipjack.h
Go to the documentation of this file.
1 /*
2 * Skipjack
3 * (C) 1999-2007 Jack Lloyd
4 *
5 * Distributed under the terms of the Botan license
6 */
7 
8 #ifndef BOTAN_SKIPJACK_H__
9 #define BOTAN_SKIPJACK_H__
10 
11 #include <botan/block_cipher.h>
12 
13 namespace Botan {
14 
15 /**
16 * Skipjack, a NSA designed cipher used in Fortezza
17 */
18 class BOTAN_DLL Skipjack : public Block_Cipher_Fixed_Params<8, 10>
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  void clear();
25  std::string name() const { return "Skipjack"; }
26  BlockCipher* clone() const { return new Skipjack; }
27  private:
28  void key_schedule(const byte[], size_t);
29 
31  };
32 
33 }
34 
35 #endif