|
Botan 1.10.17
|
#include <gost_28147.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 |
| GOST_28147_89 (const GOST_28147_89_Params ¶ms) | |
| 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 |
GOST 28147-89
Definition at line 52 of file gost_28147.h.
|
inherited |
Definition at line 107 of file block_cipher.h.
| Botan::GOST_28147_89::GOST_28147_89 | ( | const GOST_28147_89_Params & | params | ) |
| params | the sbox parameters to use |
Definition at line 54 of file gost_28147.cpp.
References Botan::rotate_left(), and Botan::GOST_28147_89_Params::sbox_entry().
Referenced by clone(), and Botan::Core_Engine::find_block_cipher().
|
inlinevirtualinherited |
Implements Botan::BlockCipher.
Definition at line 108 of file block_cipher.h.
|
inlinevirtual |
Zeroize internal state
Implements Botan::Algorithm.
Definition at line 58 of file gost_28147.h.
References Botan::zeroise().
|
inlinevirtual |
Get a new object representing the same algorithm as *this
Implements Botan::BlockCipher.
Definition at line 61 of file gost_28147.h.
References GOST_28147_89().
|
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 137 of file gost_28147.cpp.
References Botan::Block_Cipher_Fixed_Params< 8, 32 >::BLOCK_SIZE, GOST_2ROUND, Botan::load_le(), and Botan::store_le().
|
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 107 of file gost_28147.cpp.
References Botan::Block_Cipher_Fixed_Params< 8, 32 >::BLOCK_SIZE, GOST_2ROUND, Botan::load_le(), and Botan::store_le().
|
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.
|
virtual |
Implements Botan::Algorithm.
Definition at line 67 of file gost_28147.cpp.
References Botan::Internal_Error::Internal_Error().
|
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.