Botan 3.5.0
Crypto and TLS for C&
asn1_obj.h File Reference

Public Header. More...

#include <botan/exceptn.h>
#include <botan/secmem.h>
#include <chrono>
#include <iosfwd>
#include <optional>
#include <span>
#include <string>
#include <string_view>
#include <unordered_map>
#include <vector>

Go to the source code of this file.

Classes

class  Botan::AlgorithmIdentifier
 
class  Botan::ASN1_Object
 
class  Botan::ASN1_String
 
class  Botan::ASN1_Time
 
class  Botan::BER_Bad_Tag
 
class  Botan::BER_Decoding_Error
 
class  Botan::BER_Object
 
class  Botan::OID
 

Namespaces

namespace  Botan
 
namespace  Botan::ASN1
 

Typedefs

typedef ASN1_Time Botan::X509_Time
 

Enumerations

enum class  Botan::ASN1_Class : uint32_t {
  Botan::Universal = 0b0000'0000 , Botan::Application = 0b0100'0000 , Botan::ContextSpecific = 0b1000'0000 , Botan::Private = 0b1100'0000 ,
  Botan::Constructed = 0b0010'0000 , Botan::ExplicitContextSpecific = Constructed | ContextSpecific , Botan::NoObject = 0xFF00
}
 
enum class  Botan::ASN1_Type : uint32_t {
  Botan::Eoc = 0x00 , Botan::Boolean = 0x01 , Botan::Integer = 0x02 , Botan::BitString = 0x03 ,
  Botan::OctetString = 0x04 , Botan::Null = 0x05 , Botan::ObjectId = 0x06 , Botan::Enumerated = 0x0A ,
  Botan::Sequence = 0x10 , Botan::Set = 0x11 , Botan::Utf8String = 0x0C , Botan::NumericString = 0x12 ,
  Botan::PrintableString = 0x13 , Botan::TeletexString = 0x14 , Botan::Ia5String = 0x16 , Botan::VisibleString = 0x1A ,
  Botan::UniversalString = 0x1C , Botan::BmpString = 0x1E , Botan::UtcTime = 0x17 , Botan::GeneralizedTime = 0x18 ,
  Botan::NoObject = 0xFF00
}
 

Functions

std::string Botan::asn1_class_to_string (ASN1_Class type)
 
std::string Botan::asn1_tag_to_string (ASN1_Type type)
 
bool Botan::intersects (ASN1_Class x, ASN1_Class y)
 
bool Botan::ASN1::maybe_BER (DataSource &source)
 
bool Botan::operator!= (const AlgorithmIdentifier &a1, const AlgorithmIdentifier &a2)
 
bool Botan::operator!= (const ASN1_Time &, const ASN1_Time &)
 
bool Botan::operator!= (const OID &a, const OID &b)
 
bool Botan::operator< (const ASN1_Time &, const ASN1_Time &)
 
bool Botan::operator< (const OID &a, const OID &b)
 
std::ostream & Botan::operator<< (std::ostream &out, const OID &oid)
 
bool Botan::operator<= (const ASN1_Time &, const ASN1_Time &)
 
bool Botan::operator== (const AlgorithmIdentifier &a1, const AlgorithmIdentifier &a2)
 
bool Botan::operator== (const ASN1_Time &, const ASN1_Time &)
 
bool Botan::operator> (const ASN1_Time &, const ASN1_Time &)
 
bool Botan::operator>= (const ASN1_Time &, const ASN1_Time &)
 
ASN1_Class Botan::operator| (ASN1_Class x, ASN1_Class y)
 
uint32_t Botan::operator| (ASN1_Class x, ASN1_Type y)
 
uint32_t Botan::operator| (ASN1_Type x, ASN1_Class y)
 
ASN1_Type Botan::operator| (ASN1_Type x, ASN1_Type y)
 
std::vector< uint8_t > Botan::ASN1::put_in_sequence (const std::vector< uint8_t > &contents)
 
std::vector< uint8_t > Botan::ASN1::put_in_sequence (const uint8_t bits[], size_t len)
 
std::string Botan::ASN1::to_string (const BER_Object &obj)
 

Detailed Description

Public Header.

Definition in file asn1_obj.h.