8 #ifndef BOTAN_SYMKEY_H__
9 #define BOTAN_SYMKEY_H__
11 #include <botan/secmem.h>
25 size_t length()
const {
return m_data.size(); }
26 size_t size()
const {
return m_data.size(); }
36 const uint8_t*
begin()
const {
return m_data.data(); }
41 const uint8_t*
end()
const {
return begin() + m_data.size(); }
46 std::string as_string()
const;
58 void set_odd_parity();
90 OctetString(
const std::vector<uint8_t>& in) : m_data(in.begin(), in.end()) {}
102 BOTAN_DLL
bool operator==(
const OctetString& x,
103 const OctetString& y);
111 BOTAN_DLL
bool operator!=(
const OctetString& x,
112 const OctetString& y);
120 BOTAN_DLL OctetString
operator+(
const OctetString& x,
121 const OctetString& y);
129 BOTAN_DLL OctetString
operator^(
const OctetString& x,
130 const OctetString& y);
std::vector< T, Alloc > & operator^=(std::vector< T, Alloc > &out, const std::vector< T, Alloc2 > &in)
secure_vector< uint8_t > bits_of() const
bool operator!=(const AlgorithmIdentifier &a1, const AlgorithmIdentifier &a2)
bool operator==(const AlgorithmIdentifier &a1, const AlgorithmIdentifier &a2)
OID operator+(const OID &oid, uint32_t component)
OctetString operator^(const OctetString &k1, const OctetString &k2)
const uint8_t * end() const
std::vector< T, secure_allocator< T >> secure_vector
const uint8_t * begin() const
OctetString(const std::vector< uint8_t > &in)
OctetString(const secure_vector< uint8_t > &in)