8 #ifndef BOTAN_SYMKEY_H__
9 #define BOTAN_SYMKEY_H__
11 #include <botan/secmem.h>
25 size_t length()
const {
return bits.size(); }
40 const byte*
end()
const {
return &bits[bits.size()]; }
45 std::string as_string()
const;
57 void set_odd_parity();
63 void change(
const std::string& hex_string);
70 void change(
const byte in[],
size_t length);
113 BOTAN_DLL
bool operator==(
const OctetString& x,
114 const OctetString& y);
122 BOTAN_DLL
bool operator!=(
const OctetString& x,
123 const OctetString& y);
131 BOTAN_DLL OctetString
operator+(
const OctetString& x,
132 const OctetString& y);
140 BOTAN_DLL OctetString
operator^(
const OctetString& x,
141 const OctetString& y);
OctetString(const byte in[], size_t len)
bool operator!=(const OctetString &s1, const OctetString &s2)
OctetString(const MemoryRegion< byte > &in)
bool operator==(const OctetString &s1, const OctetString &s2)
OctetString operator^(const OctetString &k1, const OctetString &k2)
SecureVector< byte > bits_of() const
RandomNumberGenerator * rng
OctetString operator+(const OctetString &k1, const OctetString &k2)
const byte * begin() const
OctetString(const std::string &str="")
void change(const MemoryRegion< byte > &in)
OctetString InitializationVector