Botan 3.6.1
Crypto and TLS for C&
|
#include <pkix_enums.h>
Public Types | |
enum | Bits : uint32_t { None = 0 , DigitalSignature = 1 << 15 , NonRepudiation = 1 << 14 , KeyEncipherment = 1 << 13 , DataEncipherment = 1 << 12 , KeyAgreement = 1 << 11 , KeyCertSign = 1 << 10 , CrlSign = 1 << 9 , EncipherOnly = 1 << 8 , DecipherOnly = 1 << 7 , NO_CONSTRAINTS = None , DIGITAL_SIGNATURE = DigitalSignature , NON_REPUDIATION = NonRepudiation , KEY_ENCIPHERMENT = KeyEncipherment , DATA_ENCIPHERMENT = DataEncipherment , KEY_AGREEMENT = KeyAgreement , KEY_CERT_SIGN = KeyCertSign , CRL_SIGN = CrlSign , ENCIPHER_ONLY = EncipherOnly , DECIPHER_ONLY = DecipherOnly } |
Public Member Functions | |
bool | compatible_with (const Public_Key &key) const |
bool | empty () const |
bool | includes (Key_Constraints other) const |
bool | includes (Key_Constraints::Bits other) const |
bool | includes_any (auto &&... bits) const |
Key_Constraints () | |
Key_Constraints (const Key_Constraints &other)=default | |
Key_Constraints (Key_Constraints &&other)=default | |
Key_Constraints (Key_Constraints::Bits bits) | |
Key_Constraints (uint32_t bits) | |
Key_Constraints & | operator= (const Key_Constraints &other)=default |
Key_Constraints & | operator= (Key_Constraints &&other)=default |
bool | operator== (const Key_Constraints &) const =default |
void | operator|= (Key_Constraints::Bits other) |
std::string | to_string () const |
uint32_t | value () const |
Static Public Member Functions | |
static Key_Constraints | ca_constraints () |
X.509v3 Key Constraints. If updating update copy in ffi.h
Definition at line 108 of file pkix_enums.h.
enum Botan::Key_Constraints::Bits : uint32_t |
Definition at line 110 of file pkix_enums.h.
|
default |
|
default |
|
inline |
Definition at line 141 of file pkix_enums.h.
|
inlineexplicit |
Definition at line 143 of file pkix_enums.h.
|
inline |
Definition at line 145 of file pkix_enums.h.
|
inlinestatic |
Return typical constraints for a CA certificate, namely KeyCertSign and CrlSign
Definition at line 151 of file pkix_enums.h.
References CrlSign, and KeyCertSign.
Referenced by Botan::X509_CA::choose_extensions(), Botan::X509::create_cert_req(), and Botan::X509::create_self_signed_cert().
bool Botan::Key_Constraints::compatible_with | ( | const Public_Key & | key | ) | const |
Check that key constraints are permitted for a specific public key.
key | the public key on which the constraints shall be enforced on |
Definition at line 70 of file key_constraint.cpp.
References CrlSign, DataEncipherment, DecipherOnly, DigitalSignature, EncipherOnly, Botan::Encryption, KeyAgreement, Botan::KeyAgreement, KeyCertSign, Botan::KeyEncapsulation, KeyEncipherment, NonRepudiation, Botan::Signature, and Botan::Asymmetric_Key::supports_operation().
|
inline |
Definition at line 167 of file pkix_enums.h.
Referenced by Botan::X509_Certificate::to_string().
|
inline |
Definition at line 162 of file pkix_enums.h.
|
inline |
Definition at line 160 of file pkix_enums.h.
Referenced by Botan::X509_Certificate::allowed_usage(), Botan::X509_Certificate::has_constraints(), and Botan::X509_Certificate::to_string().
|
inline |
Definition at line 165 of file pkix_enums.h.
|
default |
|
default |
|
default |
|
inline |
Definition at line 157 of file pkix_enums.h.
std::string Botan::Key_Constraints::to_string | ( | ) | const |
Definition at line 16 of file key_constraint.cpp.
References CrlSign, DataEncipherment, DecipherOnly, DigitalSignature, EncipherOnly, KeyAgreement, KeyCertSign, KeyEncipherment, None, NonRepudiation, and Botan::string_join().
|
inline |
Definition at line 169 of file pkix_enums.h.