102 static std::shared_ptr<Session> unauthenticated_session(
const std::shared_ptr<Context>& ctx,
103 std::string_view sym_algo =
"CFB(AES-256)",
104 std::string_view hash_algo =
"SHA-256");
121 static std::shared_ptr<Session> authenticated_session(
const std::shared_ptr<Context>& ctx,
123 std::string_view sym_algo =
"CFB(AES-256)",
124 std::string_view hash_algo =
"SHA-256");
139 Session(std::shared_ptr<Context> ctx,
ESYS_TR session_handle) : m_session(std::move(ctx), session_handle) {}
153 ESYS_TR transient_handle() const noexcept {
return m_session.transient_handle(); }
uint32_t ESYS_TR
Forward declaration of TSS2 type for convenience.