11#ifndef BOTAN_TLS_PSK_13_H_
12#define BOTAN_TLS_PSK_13_H_
14#include <botan/strong_type.h>
15#include <botan/tls_external_psk.h>
16#include <botan/tls_session.h>
17#include <botan/tls_version.h>
18#include <botan/types.h>
53 const std::vector<uint8_t>&
identity()
const {
return m_identity; }
55 std::string identity_as_string()
const;
63 std::chrono::milliseconds age(uint32_t ticket_age_add)
const;
68 std::vector<uint8_t> m_identity;
69 uint32_t m_obfuscated_age;
97 std::span<const uint8_t> identity,
98 std::span<const uint8_t> context,
99 std::string_view hash =
"SHA-256");
113 std::vector<uint8_t> m_identity;
114 std::vector<uint8_t> m_context;
#define BOTAN_PUBLIC_API(maj, min)
#define BOTAN_DEPRECATED(msg)
#define BOTAN_FUTURE_EXPLICIT
PSKImporter(std::span< const uint8_t > key, std::span< const uint8_t > identity, std::span< const uint8_t > context, std::string_view hash="SHA-256")
ExternalPSK derive_imported_psk(Protocol_Version version, std::string_view target_hash) const
PskIdentity(std::vector< uint8_t > identity, const uint32_t obfuscated_age)
uint32_t obfuscated_age() const
const std::vector< uint8_t > & identity() const
Strong< std::string, struct PresharedKeyID_ > PresharedKeyID
holds a PSK identity as used in TLS 1.3
Strong< std::vector< uint8_t >, struct Opaque_Session_Handle_ > Opaque_Session_Handle
holds an opaque session handle as used in TLS 1.3 that could be either a ticket for stateless resumpt...
std::vector< T, secure_allocator< T > > secure_vector