57 class DER_Hash final {
59 static constexpr size_t LEN = 32;
63 size_t hash()
const noexcept {
65 std::memcpy(&h, m_hash.data(),
sizeof(h));
70 DER_Hash() : m_hash{} {}
73 std::array<uint8_t, LEN> m_hash;
77 size_t operator()(
const DER_Hash& h)
const noexcept {
return h.hash(); }
82 std::unordered_map<DER_Hash, X509_Certificate, DER_Hash_Fn> m_cache;