|
Botan
1.10.17
|
#include <symkey.h>
Public Member Functions | |
| std::string | as_string () const |
| const byte * | begin () const |
| SecureVector< byte > | bits_of () const |
| void | change (const std::string &hex_string) |
| void | change (const byte in[], size_t length) |
| void | change (const MemoryRegion< byte > &in) |
| const byte * | end () const |
| size_t | length () const |
| OctetString (class RandomNumberGenerator &rng, size_t len) | |
| OctetString (const std::string &str="") | |
| OctetString (const byte in[], size_t len) | |
| OctetString (const MemoryRegion< byte > &in) | |
| OctetString & | operator^= (const OctetString &other) |
| void | set_odd_parity () |
| Botan::OctetString::OctetString | ( | class RandomNumberGenerator & | rng, |
| size_t | len | ||
| ) |
Create a new random OctetString
| rng | is a random number generator |
| len | is the desired length in bytes |
Definition at line 20 of file symkey.cpp.
|
inline |
Create a new OctetString
| str | is a hex encoded string |
Definition at line 89 of file symkey.h.
|
inline |
Create a new OctetString
| in | is an array |
| len | is the length of in in bytes |
Definition at line 96 of file symkey.h.
|
inline |
| std::string Botan::OctetString::as_string | ( | ) | const |
Definition at line 80 of file symkey.cpp.
References Botan::hex_encode(), and Botan::MemoryRegion< T >::size().
|
inline |
Definition at line 35 of file symkey.h.
Referenced by Botan::CryptoBox::decrypt(), Botan::operator^(), operator^=(), Botan::SessionKeys::SessionKeys(), Botan::EAX_Base::set_iv(), Botan::XTS_Encryption::set_iv(), Botan::StreamCipher_Filter::set_iv(), Botan::XTS_Decryption::set_iv(), Botan::XTS_Encryption::set_key(), Botan::SymmetricAlgorithm::set_key(), and Botan::XTS_Decryption::set_key().
|
inline |
Definition at line 30 of file symkey.h.
Referenced by Botan::check_passhash9(), Botan::SSL3_PRF::derive(), Botan::operator+(), Botan::operator==(), Botan::CFB_Encryption::set_iv(), Botan::CTS_Encryption::set_iv(), Botan::CBC_Encryption::set_iv(), Botan::CFB_Decryption::set_iv(), Botan::CTS_Decryption::set_iv(), and Botan::CBC_Decryption::set_iv().
| void Botan::OctetString::change | ( | const std::string & | hex_string | ) |
Change the contents of this octet string
| hex_string | a hex encoded bytestring |
Definition at line 29 of file symkey.cpp.
References Botan::hex_decode(), and Botan::MemoryRegion< T >::resize().
| void Botan::OctetString::change | ( | const byte | in[], |
| size_t | length | ||
| ) |
Change the contents of this octet string
| in | the input |
| length | of in in bytes |
Definition at line 38 of file symkey.cpp.
|
inline |
|
inline |
|
inline |
Definition at line 25 of file symkey.h.
Referenced by Botan::get_cipher(), Botan::operator^(), operator^=(), Botan::rfc3394_keyunwrap(), Botan::rfc3394_keywrap(), Botan::CFB_Encryption::set_iv(), Botan::CTS_Encryption::set_iv(), Botan::XTS_Encryption::set_iv(), Botan::EAX_Base::set_iv(), Botan::CBC_Encryption::set_iv(), Botan::Keyed_Filter::set_iv(), Botan::StreamCipher_Filter::set_iv(), Botan::CFB_Decryption::set_iv(), Botan::CTS_Decryption::set_iv(), Botan::XTS_Decryption::set_iv(), Botan::CBC_Decryption::set_iv(), Botan::XTS_Encryption::set_key(), Botan::SymmetricAlgorithm::set_key(), and Botan::XTS_Decryption::set_key().
| OctetString & Botan::OctetString::operator^= | ( | const OctetString & | other | ) |
XOR the contents of another octet string into this one
| other | octet string |
Definition at line 88 of file symkey.cpp.
References begin(), length(), Botan::CT::min(), Botan::xor_buf(), and Botan::zeroise().
| void Botan::OctetString::set_odd_parity | ( | ) |
Force to have odd parity
Definition at line 47 of file symkey.cpp.
References Botan::MemoryRegion< T >::size().
1.8.14