Botan 3.12.0
Crypto and TLS for C&
Botan::X509_Certificate::Tag Class Referencefinal

#include <x509cert.h>

Public Member Functions

size_t hash () const noexcept
auto operator<=> (const Tag &) const =default

Static Public Attributes

static constexpr size_t TagLen = 32

Detailed Description

A collision resistant binary "tag" of a certificate

The actual value is deliberately not exposed; a Tag can only be hashed to a size_t, or compared with another Tag. This type is intended for use as a key in std::map and std::unordered_map, or to be saved in a std::set or std::unordered_set.

Definition at line 389 of file x509cert.h.

Member Function Documentation

◆ hash()

size_t Botan::X509_Certificate::Tag::hash ( ) const
inlinenoexcept

Definition at line 395 of file x509cert.h.

395 {
396 size_t h = 0;
397 std::memcpy(&h, m_tag.data(), sizeof(h));
398 return h;
399 }

◆ operator<=>()

auto Botan::X509_Certificate::Tag::operator<=> ( const Tag & ) const
default

Member Data Documentation

◆ TagLen

size_t Botan::X509_Certificate::Tag::TagLen = 32
staticconstexpr

Definition at line 391 of file x509cert.h.


The documentation for this class was generated from the following file: