| Botan
    1.10.16
    | 
#include <ctr.h>
 
  
 | Public Member Functions | |
| void | cipher (const byte in[], byte out[], size_t length) | 
| void | cipher1 (byte buf[], size_t len) | 
| void | clear () | 
| CTR_BE * | clone () const | 
| CTR_BE (BlockCipher *cipher) | |
| Key_Length_Specification | key_spec () const | 
| size_t | maximum_keylength () const | 
| size_t | minimum_keylength () const | 
| std::string | name () const | 
| void | set_iv (const byte iv[], size_t iv_len) | 
| void | set_key (const SymmetricKey &key) | 
| void | set_key (const byte key[], size_t length) | 
| bool | valid_iv_length (size_t iv_len) const | 
| bool | valid_keylength (size_t length) const | 
| ~CTR_BE () | |
| Botan::CTR_BE::CTR_BE | ( | BlockCipher * | cipher | ) | 
Encrypt or decrypt a message
| in | the plaintext | 
| out | the byte array to hold the output, i.e. the ciphertext | 
| len | the length of both in and out in bytes | 
Implements Botan::StreamCipher.
Definition at line 66 of file ctr.cpp.
References Botan::MemoryRegion< T >::size(), and Botan::xor_buf().
| 
 | inlineinherited | 
Encrypt or decrypt a message
| buf | the plaintext / ciphertext | 
| len | the length of buf in bytes | 
Definition at line 34 of file stream_cipher.h.
Referenced by Botan::Lion::decrypt_n(), and Botan::Lion::encrypt_n().
| 
 | virtual | 
Zeroize internal state
Implements Botan::Algorithm.
Definition at line 36 of file ctr.cpp.
References Botan::Algorithm::clear(), set_iv(), Botan::SymmetricAlgorithm::set_key(), and Botan::zeroise().
| 
 | inlinevirtual | 
Get a new object representing the same algorithm as *this
Implements Botan::StreamCipher.
Definition at line 36 of file ctr.h.
| 
 | inlinevirtual | 
Implements Botan::SymmetricAlgorithm.
Definition at line 29 of file ctr.h.
| 
 | inlineinherited | 
Definition at line 33 of file sym_algo.h.
Referenced by Botan::Cascade_Cipher::decrypt_n(), and Botan::ANSI_X931_RNG::randomize().
| 
 | inlineinherited | 
Definition at line 41 of file sym_algo.h.
| 
 | virtual | 
Implements Botan::Algorithm.
Definition at line 58 of file ctr.cpp.
References Botan::Algorithm::name().
Referenced by set_iv().
| 
 | virtual | 
Resync the cipher using the IV
| iv | the initialization vector | 
| iv_len | the length of the IV in bytes | 
Reimplemented from Botan::StreamCipher.
Definition at line 83 of file ctr.cpp.
References Botan::BlockCipher::block_size(), Botan::MemoryRegion< T >::copy(), Botan::BlockCipher::encrypt_n(), name(), valid_iv_length(), and Botan::zeroise().
Referenced by clear().
| 
 | inlineinherited | 
Set the symmetric key of this object.
| key | the SymmetricKey to be set. | 
Definition at line 60 of file sym_algo.h.
References Botan::OctetString::begin(), and Botan::OctetString::length().
Referenced by Botan::aont_unpackage(), clear(), Botan::OFB::clear(), Botan::DESX::decrypt_n(), Botan::Cascade_Cipher::decrypt_n(), Botan::Lion::decrypt_n(), Botan::PKCS5_PBKDF2::derive_key(), Botan::ECB_Decryption::ECB_Decryption(), Botan::ECB_Encryption::ECB_Encryption(), Botan::Lion::encrypt_n(), Botan::HMAC_RNG::HMAC_RNG(), Botan::MAC_Filter::MAC_Filter(), Botan::ANSI_X931_RNG::randomize(), Botan::Randpool::randomize(), Botan::HMAC_RNG::reseed(), Botan::EAX_Base::set_key(), Botan::XTS_Encryption::set_key(), Botan::XTS_Decryption::set_key(), Botan::Record_Writer::set_keys(), Botan::Record_Reader::set_keys(), Botan::StreamCipher_Filter::StreamCipher_Filter(), Botan::DLIES_Decryptor::~DLIES_Decryptor(), and Botan::DLIES_Encryptor::~DLIES_Encryptor().
| 
 | 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.
| 
 | inlinevirtual | 
| iv_len | the length of the IV in bytes | 
Reimplemented from Botan::StreamCipher.
Definition at line 26 of file ctr.h.
Referenced by set_iv().
| 
 | 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.
Referenced by Botan::aont_unpackage(), Botan::HMAC_RNG::HMAC_RNG(), Botan::Lion::Lion(), and Botan::Randpool::Randpool().
 1.8.13
 1.8.13