|
Botan 1.10.17
|
#include <kasumi.h>
Public Types | |
| enum | |
Public Member Functions | |
| size_t | block_size () const |
| void | clear () |
| BlockCipher * | clone () const |
| void | decrypt (byte block[]) const |
| void | decrypt (const byte in[], byte out[]) const |
| void | decrypt_n (const byte in[], byte out[], size_t blocks) const |
| void | encrypt (byte block[]) const |
| void | encrypt (const byte in[], byte out[]) const |
| void | encrypt_n (const byte in[], byte out[], size_t blocks) const |
| KASUMI () | |
| Key_Length_Specification | key_spec () const |
| size_t | maximum_keylength () const |
| size_t | minimum_keylength () const |
| std::string | name () const |
| size_t | parallel_bytes () const |
| virtual size_t | parallelism () const |
| void | set_key (const byte key[], size_t length) |
| void | set_key (const SymmetricKey &key) |
| bool | valid_keylength (size_t length) const |
|
inherited |
Definition at line 107 of file block_cipher.h.
|
inline |
|
inlinevirtualinherited |
Implements Botan::BlockCipher.
Definition at line 108 of file block_cipher.h.
|
inlinevirtual |
Zeroize internal state
Implements Botan::Algorithm.
Definition at line 24 of file kasumi.h.
References Botan::zeroise().
|
inlinevirtual |
Get a new object representing the same algorithm as *this
Implements Botan::BlockCipher.
Definition at line 26 of file kasumi.h.
References KASUMI().
|
inlineinherited |
Decrypt a block.
| block | the ciphertext block to be decrypted Must be of length block_size(). Will hold the result when the function has finished. |
Definition at line 74 of file block_cipher.h.
|
inlineinherited |
Decrypt a block.
| in | The ciphertext block to be decypted as a byte array. Must be of length block_size(). |
| out | The byte array designated to hold the decrypted block. Must be of length block_size(). |
Definition at line 57 of file block_cipher.h.
Decrypt one or more blocks
| in | the input buffer (multiple of block_size()) |
| out | the output buffer (same size as in) |
| blocks | the number of blocks to process |
Implements Botan::BlockCipher.
Definition at line 156 of file kasumi.cpp.
References Botan::Block_Cipher_Fixed_Params< 8, 16 >::BLOCK_SIZE, Botan::load_be(), Botan::rotate_left(), and Botan::store_be().
|
inlineinherited |
Encrypt a block.
| block | the plaintext block to be encrypted Must be of length block_size(). Will hold the result when the function has finished. |
Definition at line 66 of file block_cipher.h.
|
inlineinherited |
Encrypt a block.
| in | The plaintext block to be encrypted as a byte array. Must be of length block_size(). |
| out | The byte array designated to hold the encrypted block. Must be of length block_size(). |
Definition at line 47 of file block_cipher.h.
Encrypt one or more blocks
| in | the input buffer (multiple of block_size()) |
| out | the output buffer (same size as in) |
| blocks | the number of blocks to process |
Implements Botan::BlockCipher.
Definition at line 112 of file kasumi.cpp.
References Botan::Block_Cipher_Fixed_Params< 8, 16 >::BLOCK_SIZE, Botan::load_be(), Botan::rotate_left(), and Botan::store_be().
|
inlinevirtualinherited |
Implements Botan::SymmetricAlgorithm.
Definition at line 110 of file block_cipher.h.
|
inlineinherited |
Definition at line 33 of file sym_algo.h.
|
inlineinherited |
Definition at line 41 of file sym_algo.h.
|
inlinevirtual |
Implements Botan::Algorithm.
Definition at line 25 of file kasumi.h.
|
inlineinherited |
Definition at line 35 of file block_cipher.h.
|
inlinevirtualinherited |
Definition at line 30 of file block_cipher.h.
|
inlineinherited |
Set the symmetric key of this object.
| key | the to be set as a byte array. |
| length | in bytes of key param |
Definition at line 68 of file sym_algo.h.
|
inlineinherited |
Set the symmetric key of this object.
| key | the SymmetricKey to be set. |
Definition at line 60 of file sym_algo.h.
|
inlineinherited |
Check whether a given key length is valid for this algorithm.
| length | the key length to be checked. |
Definition at line 51 of file sym_algo.h.