diff options
author | Jack Lloyd <[email protected]> | 2016-07-17 11:42:53 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-09-02 05:28:10 -0400 |
commit | 1c0bc3cc6bcbd6318d8ae33d0442ffd24302a044 (patch) | |
tree | da27a2597938f5b5edd1bd43f4d3d0e3c978e8be /src/lib/block/safer/safer_sk.h | |
parent | cd9f852b46f62087dcf7940303a0fe52a009e6c7 (diff) |
Remove deprecated ciphers MARS, RC2, RC5, RC6, SAFER-SK and TEA
XTEA was also deprecated but has been spared, it does seem to be somewhat
common (eg, included in the Go x/crypto library)
Diffstat (limited to 'src/lib/block/safer/safer_sk.h')
-rw-r--r-- | src/lib/block/safer/safer_sk.h | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/src/lib/block/safer/safer_sk.h b/src/lib/block/safer/safer_sk.h deleted file mode 100644 index af944b36c..000000000 --- a/src/lib/block/safer/safer_sk.h +++ /dev/null @@ -1,42 +0,0 @@ -/* -* SAFER-SK -* (C) 1999-2007 Jack Lloyd -* -* Botan is released under the Simplified BSD License (see license.txt) -*/ - -#ifndef BOTAN_SAFER_SK_H__ -#define BOTAN_SAFER_SK_H__ - -#include <botan/block_cipher.h> - -namespace Botan { - -/** -* SAFER-SK -*/ -class BOTAN_DLL SAFER_SK final : public Block_Cipher_Fixed_Params<8, 16> - { - public: - void encrypt_n(const byte in[], byte out[], size_t blocks) const override; - void decrypt_n(const byte in[], byte out[], size_t blocks) const override; - - void clear() override; - std::string name() const override; - BlockCipher* clone() const override; - - /** - * @param rounds the number of rounds to use - must be between 1 - * and 13 - */ - explicit SAFER_SK(size_t rounds); - private: - void key_schedule(const byte[], size_t) override; - - size_t m_rounds; - secure_vector<byte> m_EK; - }; - -} - -#endif |