Botan 3.6.1
Crypto and TLS for C&
|
#include <symkey.h>
Public Member Functions | |
const uint8_t * | begin () const |
secure_vector< uint8_t > | bits_of () const |
bool | empty () const |
const uint8_t * | end () const |
size_t | length () const |
OctetString (const uint8_t in[], size_t len) | |
OctetString (RandomNumberGenerator &rng, size_t len) | |
OctetString (secure_vector< uint8_t > in) | |
OctetString (std::span< const uint8_t > in) | |
OctetString (std::string_view str="") | |
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 | ( | 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.
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 37 of file symkey.cpp.
|
inlineexplicit |
Create a new OctetString
in | a bytestring |
Definition at line 93 of file symkey.h.
|
inlineexplicit |
Create a new OctetString
in | a bytestring |
Definition at line 99 of file symkey.h.
|
inline |
Definition at line 41 of file symkey.h.
Referenced by Botan::ECIES_KA_Operation::derive_secret(), Botan::operator^(), operator^=(), and Botan::SymmetricAlgorithm::set_key().
|
inline |
Definition at line 36 of file symkey.h.
Referenced by Botan::check_passhash9(), Botan::TLS::Client_Key_Exchange::Client_Key_Exchange(), Botan::TLS::Client_Key_Exchange::Client_Key_Exchange(), Botan::generate_passhash9(), Botan::operator+(), Botan::operator==(), Botan::Cipher_Mode_Filter::set_iv(), and Botan::TLS::Callbacks::tls_ephemeral_key_agreement().
|
inline |
Definition at line 31 of file symkey.h.
Referenced by Botan::TLS::Client_Key_Exchange::Client_Key_Exchange().
|
inline |
Definition at line 46 of file symkey.h.
Referenced by Botan::ECIES_KA_Operation::derive_secret().
|
inline |
Definition at line 27 of file symkey.h.
Referenced by Botan::TLS::Client_Key_Exchange::Client_Key_Exchange(), 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 73 of file symkey.cpp.
References begin(), length(), Botan::xor_buf(), and Botan::zeroise().
void Botan::OctetString::set_odd_parity | ( | ) |
Force to have odd parity
Deprecated. There is no reason to use this outside of interacting with some very old or weird system which requires DES and also which do not automatically ignore the parity bits.
Definition at line 57 of file symkey.cpp.
|
inline |
Definition at line 29 of file symkey.h.
Referenced by Botan::rfc3394_keyunwrap(), and Botan::rfc3394_keywrap().
std::string Botan::OctetString::to_string | ( | ) | const |
Definition at line 66 of file symkey.cpp.
References Botan::hex_encode().