Botan 2.19.1
Crypto and TLS for C&
|
#include <symkey.h>
Public Member Functions | |
std::string | as_string () const |
const uint8_t * | begin () const |
secure_vector< uint8_t > | bits_of () const |
const uint8_t * | end () const |
size_t | length () const |
OctetString (class RandomNumberGenerator &rng, size_t len) | |
OctetString (const secure_vector< uint8_t > &in) | |
OctetString (const std::string &str="") | |
OctetString (const std::vector< uint8_t > &in) | |
OctetString (const uint8_t in[], size_t len) | |
OctetString & | operator^= (const OctetString &other) |
void | set_odd_parity () |
size_t | size () const |
std::string | to_string () const |
|
explicit |
Create a new OctetString
str | is a hex encoded string |
Definition at line 27 of file symkey.cpp.
References Botan::hex_decode().
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 18 of file symkey.cpp.
References Botan::RandomNumberGenerator::random_vec().
Botan::OctetString::OctetString | ( | const uint8_t | in[], |
size_t | len | ||
) |
Create a new OctetString
in | is an array |
len | is the length of in in bytes |
Definition at line 39 of file symkey.cpp.
|
inline |
Create a new OctetString
in | a bytestring |
Definition at line 89 of file symkey.h.
|
inline |
Create a new OctetString
in | a bytestring |
Definition at line 95 of file symkey.h.
|
inline |
|
inline |
Definition at line 36 of file symkey.h.
Referenced by Botan::aont_package(), Botan::CryptoBox::decrypt_bin(), Botan::ECIES_KA_Operation::derive_secret(), Botan::CryptoBox::encrypt(), Botan::operator^(), operator^=(), and Botan::SymmetricAlgorithm::set_key().
|
inline |
Definition at line 31 of file symkey.h.
Referenced by Botan::check_passhash9(), Botan::TLS::Client_Key_Exchange::Client_Key_Exchange(), Botan::generate_passhash9(), Botan::operator+(), Botan::operator==(), Botan::Cipher_Mode_Filter::set_iv(), Botan::TLS::Callbacks::tls_dh_agree(), and Botan::TLS::Callbacks::tls_ecdh_agree().
|
inline |
Definition at line 41 of file symkey.h.
Referenced by Botan::ECIES_KA_Operation::derive_secret().
|
inline |
Definition at line 25 of file symkey.h.
Referenced by Botan::TLS::Client_Key_Exchange::Client_Key_Exchange(), Botan::get_cipher(), Botan::operator^(), operator^=(), Botan::Keyed_Filter::set_iv(), and Botan::SymmetricAlgorithm::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::xor_buf(), and Botan::zeroise().
void Botan::OctetString::set_odd_parity | ( | ) |
Force to have odd parity
Definition at line 47 of file symkey.cpp.
|
inline |
Definition at line 26 of file symkey.h.
Referenced by Botan::rfc3394_keyunwrap(), and Botan::rfc3394_keywrap().
std::string Botan::OctetString::to_string | ( | ) | const |
Definition at line 80 of file symkey.cpp.
References Botan::hex_encode().