Botan 1.10.17
kasumi.h
Go to the documentation of this file.
1/*
2* KASUMI
3* (C) 1999-2007 Jack Lloyd
4*
5* Distributed under the terms of the Botan license
6*/
7
8#ifndef BOTAN_KASUMI_H__
9#define BOTAN_KASUMI_H__
10
11#include <botan/block_cipher.h>
12
13namespace Botan {
14
15/**
16* KASUMI, the block cipher used in 3G telephony
17*/
18class BOTAN_DLL KASUMI : public Block_Cipher_Fixed_Params<8, 16>
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() { zeroise(EK); }
25 std::string name() const { return "KASUMI"; }
26 BlockCipher* clone() const { return new KASUMI; }
27
28 KASUMI() : EK(64) {}
29 private:
30 void key_schedule(const byte[], size_t);
31
33 };
34
35}
36
37#endif
void clear()
Definition kasumi.h:24
void decrypt_n(const byte in[], byte out[], size_t blocks) const
Definition kasumi.cpp:156
std::string name() const
Definition kasumi.h:25
void encrypt_n(const byte in[], byte out[], size_t blocks) const
Definition kasumi.cpp:112
BlockCipher * clone() const
Definition kasumi.h:26
void zeroise(MemoryRegion< T > &vec)
Definition secmem.h:428