PACS System 0.1.0
PACS DICOM system library
Loading...
Searching...
No Matches
wss_signer.h
Go to the documentation of this file.
1// BSD 3-Clause License
2// Copyright (c) 2021-2025, 🍀☀🌕🌥 🌊
3// See the LICENSE file in the project root for full license information.
4
20#pragma once
21
22#include <kcenon/common/patterns/result.h>
24
25#include <cstdint>
26#include <string>
27#include <string_view>
28#include <vector>
29
31
32struct built_envelope;
33
50 std::string_view cert_pem,
51 std::string_view key_pem,
52 std::string_view key_password);
53
97 std::string_view signed_xml);
98
108std::vector<std::uint8_t> base64_decode_bytes(std::string_view b64);
109
110} // namespace kcenon::pacs::ihe::xds::detail
Typed error codes for IHE XDS.b actors (ITI-41 and siblings)
std::vector< std::uint8_t > base64_decode_bytes(std::string_view b64)
Base64-decode b64 using the same BIO-backed decoder the signer and verifier use internally.
kcenon::common::Result< bool > sign_envelope(built_envelope &env, std::string_view cert_pem, std::string_view key_pem, std::string_view key_password)
Sign the body + timestamp of env in place.
kcenon::common::Result< bool > verify_envelope_integrity(std::string_view signed_xml)
Verify the structural integrity of a previously signed envelope against the certificate embedded in i...