_ZN5Botan11ASN1_ObjectD2Ev:
  114|   417k|      virtual ~ASN1_Object() = default;
_ZN5Botan10BER_ObjectC2Ev:
  122|   340k|      BER_Object() : m_type_tag(ASN1_Type::NoObject), m_class_tag(ASN1_Class::Universal) {}
_ZNK5Botan10BER_Object6is_setEv:
  132|   517k|      bool is_set() const { return m_type_tag != ASN1_Type::NoObject; }
_ZNK5Botan10BER_Object7taggingEv:
  134|   252k|      uint32_t tagging() const { return type_tag() | class_tag(); }
_ZNK5Botan10BER_Object8type_tagEv:
  136|   252k|      ASN1_Type type_tag() const { return m_type_tag; }
_ZNK5Botan10BER_Object9class_tagEv:
  138|   252k|      ASN1_Class class_tag() const { return m_class_tag; }
_ZNK5Botan10BER_Object4typeEv:
  140|  23.2k|      ASN1_Type type() const { return m_type_tag; }
_ZNK5Botan10BER_Object9get_classEv:
  142|  2.32k|      ASN1_Class get_class() const { return m_class_tag; }
_ZNK5Botan10BER_Object4bitsEv:
  144|  2.50M|      const uint8_t* bits() const { return m_value.data(); }
_ZNK5Botan10BER_Object6lengthEv:
  146|  5.37M|      size_t length() const { return m_value.size(); }
_ZN5Botan10BER_Object12mutable_bitsEm:
  163|   217k|      uint8_t* mutable_bits(size_t length) {
  164|   217k|         m_value.resize(length);
  165|   217k|         return m_value.data();
  166|   217k|      }
_ZN5Botan3OIDC2Ev:
  212|  37.4k|      explicit OID() {}
_ZN5Botan3OIDC2ESt16initializer_listIjE:
  223|    251|      explicit OID(std::initializer_list<uint32_t> init) : m_id(init) {
  224|    251|         BOTAN_ARG_CHECK(m_id.size() > 2 && m_id[0] <= 2 && (m_id[0] != 2 || m_id[1] <= 39), "Invalid OID");
  ------------------
  |  |   30|    251|   do {                                                          \
  |  |   31|  1.32k|      if(!(expr))                                                \
  |  |  ------------------
  |  |  |  Branch (31:12): [True: 251, False: 0]
  |  |  |  Branch (31:12): [True: 251, False: 0]
  |  |  |  Branch (31:12): [True: 178, False: 73]
  |  |  |  Branch (31:12): [True: 73, False: 0]
  |  |  ------------------
  |  |   32|    251|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   33|    251|   } while(0)
  |  |  ------------------
  |  |  |  Branch (33:12): [Folded - Ignored]
  |  |  ------------------
  ------------------
  225|    251|      }
_ZNK5Botan3OID9has_valueEv:
  265|  1.36k|      bool has_value() const { return (m_id.empty() == false); }
_ZNK5Botan3OID14get_componentsEv:
  271|   172k|      const std::vector<uint32_t>& get_components() const { return m_id; }
_ZNK5Botan3OIDeqERKS0_:
  303|   184k|      bool operator==(const OID& other) const { return m_id == other.m_id; }
_ZNK5Botan11ASN1_String5valueEv:
  407|  3.19k|      const std::string& value() const { return m_utf8_str; }
_ZNK5Botan11ASN1_String5emptyEv:
  411|  4.24k|      bool empty() const { return m_utf8_str.empty(); }
_ZNK5Botan19AlgorithmIdentifier3oidEv:
  447|  5.03k|      const OID& oid() const { return m_oid; }
_ZNK5Botan19AlgorithmIdentifier10parametersEv:
  449|    416|      const std::vector<uint8_t>& parameters() const { return m_parameters; }
_ZNK5Botan19AlgorithmIdentifier20parameters_are_emptyEv:
  461|  4.80k|      bool parameters_are_empty() const { return m_parameters.empty(); }
_ZNK5Botan19AlgorithmIdentifier28parameters_are_null_or_emptyEv:
  463|  4.80k|      bool parameters_are_null_or_empty() const { return parameters_are_empty() || parameters_are_null(); }
  ------------------
  |  Branch (463:58): [True: 3.77k, False: 1.03k]
  |  Branch (463:84): [True: 829, False: 208]
  ------------------
_ZN5BotanorENS_10ASN1_ClassES0_:
   76|   102k|inline ASN1_Class operator|(ASN1_Class x, ASN1_Class y) {
   77|   102k|   return static_cast<ASN1_Class>(static_cast<uint32_t>(x) | static_cast<uint32_t>(y));
   78|   102k|}
_ZN5BotanorENS_9ASN1_TypeENS_10ASN1_ClassE:
   80|   252k|inline uint32_t operator|(ASN1_Type x, ASN1_Class y) { return static_cast<uint32_t>(x) | static_cast<uint32_t>(y); }
_ZN5BotanorENS_10ASN1_ClassENS_9ASN1_TypeE:
   82|  35.2k|inline uint32_t operator|(ASN1_Class x, ASN1_Type y) { return static_cast<uint32_t>(x) | static_cast<uint32_t>(y); }
_ZN5BotanneERKNS_3OIDES2_:
  320|  2.51k|inline bool operator!=(const OID& a, const OID& b) { return !(a == b); }
_ZN5Botan11ASN1_ObjectC2Ev:
  111|   287k|      ASN1_Object() = default;
_ZN5Botan19AlgorithmIdentifierC2Ev:
  439|  6.87k|      AlgorithmIdentifier() = default;
_ZN5Botan11ASN1_ObjectaSERKS0_:
  113|    983|      ASN1_Object& operator=(const ASN1_Object&) = default;
_ZN5Botan11ASN1_ObjectC2ERKS0_:
  112|   129k|      ASN1_Object(const ASN1_Object&) = default;
_ZN5Botan9ASN1_TimeC2Ev:
  354|  11.2k|      ASN1_Time() = default;
_ZN5Botan10BER_ObjectaSEOS0_:
  130|  83.2k|      BER_Object& operator=(BER_Object&& other) = default;
_ZN5Botan10BER_ObjectC2EOS0_:
  128|   102k|      BER_Object(BER_Object&& other) = default;
_ZN5Botan10BER_ObjectaSERKS0_:
  126|  2.95k|      BER_Object& operator=(const BER_Object& other) = default;

_ZN5Botan12ignore_paramIRmEEvOT_:
  111|  6.75k|void ignore_param(T&&) {}
_ZN5Botan13ignore_paramsIJRhEEEvDpOT_:
  114|  4.69k|void ignore_params(T&&... args) {
  115|  4.69k|   (ignore_param(args), ...);
  116|  4.69k|}
_ZN5Botan12ignore_paramIRhEEvOT_:
  111|  4.69k|void ignore_param(T&&) {}
_ZN5Botan13ignore_paramsIJRmEEEvDpOT_:
  114|  6.75k|void ignore_params(T&&... args) {
  115|  6.75k|   (ignore_param(args), ...);
  116|  6.75k|}
_ZN5Botan13ignore_paramsIJRKmEEEvDpOT_:
  114|  10.4k|void ignore_params(T&&... args) {
  115|  10.4k|   (ignore_param(args), ...);
  116|  10.4k|}
_ZN5Botan12ignore_paramIRKmEEvOT_:
  111|  10.4k|void ignore_param(T&&) {}

_ZN5Botan11BER_Decoder15decode_optionalImEERS0_RT_NS_9ASN1_TypeENS_10ASN1_ClassERKS3_:
  313|  5.54k|BER_Decoder& BER_Decoder::decode_optional(T& out, ASN1_Type type_tag, ASN1_Class class_tag, const T& default_value) {
  314|  5.54k|   BER_Object obj = get_next_object();
  315|       |
  316|  5.54k|   if(obj.is_a(type_tag, class_tag)) {
  ------------------
  |  Branch (316:7): [True: 1.47k, False: 4.07k]
  ------------------
  317|  1.47k|      if(class_tag == ASN1_Class::ExplicitContextSpecific) {
  ------------------
  |  Branch (317:10): [True: 0, False: 1.47k]
  ------------------
  318|      0|         BER_Decoder(std::move(obj)).decode(out).verify_end();
  319|  1.47k|      } else {
  320|  1.47k|         push_back(std::move(obj));
  321|  1.47k|         decode(out, type_tag, class_tag);
  322|  1.47k|      }
  323|  4.07k|   } else {
  324|  4.07k|      out = default_value;
  325|  4.07k|      push_back(std::move(obj));
  326|  4.07k|   }
  327|       |
  328|  5.54k|   return (*this);
  329|  5.54k|}
_ZN5Botan11BER_Decoder6decodeERm:
  178|    944|      BER_Decoder& decode(size_t& out) { return decode(out, ASN1_Type::Integer, ASN1_Class::Universal); }
_ZN5Botan11BER_DecoderC2EONS_10BER_ObjectE:
   56|  1.88k|      BER_Decoder(BER_Object&& obj) : BER_Decoder(std::move(obj), nullptr) {}
_ZN5Botan11BER_DecoderC2ERKNS_10BER_ObjectE:
   51|  8.21k|      BER_Decoder(const BER_Object& obj) : BER_Decoder(obj.bits(), obj.length()) {}
_ZN5Botan11BER_Decoder14start_sequenceEv:
  112|  67.3k|      BER_Decoder start_sequence() { return start_cons(ASN1_Type::Sequence, ASN1_Class::Universal); }
_ZN5Botan11BER_Decoder9start_setEv:
  114|  4.81k|      BER_Decoder start_set() { return start_cons(ASN1_Type::Set, ASN1_Class::Universal); }
_ZN5Botan11BER_Decoder22start_context_specificEj:
  116|  2.34k|      BER_Decoder start_context_specific(uint32_t tag) {
  117|  2.34k|         return start_cons(ASN1_Type(tag), ASN1_Class::ContextSpecific);
  118|  2.34k|      }
_ZN5Botan11BER_Decoder6decodeERNS_6BigIntE:
  183|  5.10k|      BER_Decoder& decode(BigInt& out) { return decode(out, ASN1_Type::Integer, ASN1_Class::Universal); }
_ZN5Botan11BER_Decoder6decodeINSt3__19allocatorIhEEEERS0_RNS2_6vectorIhT_EENS_9ASN1_TypeE:
  195|  23.6k|      BER_Decoder& decode(std::vector<uint8_t, Alloc>& out, ASN1_Type real_type) {
  196|  23.6k|         return decode(out, real_type, real_type, ASN1_Class::Universal);
  197|  23.6k|      }
_ZN5Botan11BER_Decoder9raw_bytesINSt3__19allocatorIhEEEERS0_RNS2_6vectorIhT_EE:
  160|  13.4k|      BER_Decoder& raw_bytes(std::vector<uint8_t, Alloc>& out) {
  161|  13.4k|         out.clear();
  162|  13.4k|         uint8_t buf;
  163|  1.82M|         while(m_source->read_byte(buf))
  ------------------
  |  Branch (163:16): [True: 1.81M, False: 13.4k]
  ------------------
  164|  1.81M|            out.push_back(buf);
  165|  13.4k|         return (*this);
  166|  13.4k|      }
_ZN5Botan11BER_Decoder15decode_optionalIbEERS0_RT_NS_9ASN1_TypeENS_10ASN1_ClassERKS3_:
  313|  20.4k|BER_Decoder& BER_Decoder::decode_optional(T& out, ASN1_Type type_tag, ASN1_Class class_tag, const T& default_value) {
  314|  20.4k|   BER_Object obj = get_next_object();
  315|       |
  316|  20.4k|   if(obj.is_a(type_tag, class_tag)) {
  ------------------
  |  Branch (316:7): [True: 418, False: 20.0k]
  ------------------
  317|    418|      if(class_tag == ASN1_Class::ExplicitContextSpecific) {
  ------------------
  |  Branch (317:10): [True: 0, False: 418]
  ------------------
  318|      0|         BER_Decoder(std::move(obj)).decode(out).verify_end();
  319|    418|      } else {
  320|    418|         push_back(std::move(obj));
  321|    418|         decode(out, type_tag, class_tag);
  322|    418|      }
  323|  20.0k|   } else {
  324|  20.0k|      out = default_value;
  325|  20.0k|      push_back(std::move(obj));
  326|  20.0k|   }
  327|       |
  328|  20.4k|   return (*this);
  329|  20.4k|}
_ZN5Botan11BER_Decoder22decode_optional_stringINSt3__19allocatorIhEEEERS0_RNS2_6vectorIhT_EENS_9ASN1_TypeEjNS_10ASN1_ClassE:
  271|    397|                                          ASN1_Class class_tag = ASN1_Class::ContextSpecific) {
  272|    397|         BER_Object obj = get_next_object();
  273|       |
  274|    397|         ASN1_Type type_tag = static_cast<ASN1_Type>(expected_tag);
  275|       |
  276|    397|         if(obj.is_a(type_tag, class_tag)) {
  ------------------
  |  Branch (276:13): [True: 94, False: 303]
  ------------------
  277|     94|            if(class_tag == ASN1_Class::ExplicitContextSpecific) {
  ------------------
  |  Branch (277:16): [True: 0, False: 94]
  ------------------
  278|      0|               BER_Decoder(std::move(obj)).decode(out, real_type).verify_end();
  279|     94|            } else {
  280|     94|               push_back(std::move(obj));
  281|     94|               decode(out, real_type, type_tag, class_tag);
  282|     94|            }
  283|    303|         } else {
  284|    303|            out.clear();
  285|    303|            push_back(std::move(obj));
  286|    303|         }
  287|       |
  288|    397|         return (*this);
  289|    397|      }
_ZN5Botan11BER_Decoder11decode_listINS_3OIDEEERS0_RNSt3__16vectorIT_NS4_9allocatorIS6_EEEENS_9ASN1_TypeENS_10ASN1_ClassE:
  360|    592|BER_Decoder& BER_Decoder::decode_list(std::vector<T>& vec, ASN1_Type type_tag, ASN1_Class class_tag) {
  361|    592|   BER_Decoder list = start_cons(type_tag, class_tag);
  362|       |
  363|  1.31k|   while(list.more_items()) {
  ------------------
  |  Branch (363:10): [True: 727, False: 592]
  ------------------
  364|    727|      T value;
  365|    727|      list.decode(value);
  366|    727|      vec.push_back(std::move(value));
  367|    727|   }
  368|       |
  369|    592|   list.end_cons();
  370|       |
  371|    592|   return (*this);
  372|    592|}
_ZN5Botan11BER_Decoder11decode_listINS_14GeneralSubtreeEEERS0_RNSt3__16vectorIT_NS4_9allocatorIS6_EEEENS_9ASN1_TypeENS_10ASN1_ClassE:
  360|  1.55k|BER_Decoder& BER_Decoder::decode_list(std::vector<T>& vec, ASN1_Type type_tag, ASN1_Class class_tag) {
  361|  1.55k|   BER_Decoder list = start_cons(type_tag, class_tag);
  362|       |
  363|  4.28k|   while(list.more_items()) {
  ------------------
  |  Branch (363:10): [True: 2.73k, False: 1.55k]
  ------------------
  364|  2.73k|      T value;
  365|  2.73k|      list.decode(value);
  366|  2.73k|      vec.push_back(std::move(value));
  367|  2.73k|   }
  368|       |
  369|  1.55k|   list.end_cons();
  370|       |
  371|  1.55k|   return (*this);
  372|  1.55k|}
x509_ext.cpp:_ZN5Botan11BER_Decoder11decode_listINS_14Cert_Extension12_GLOBAL__N_118Policy_InformationEEERS0_RNSt3__16vectorIT_NS6_9allocatorIS8_EEEENS_9ASN1_TypeENS_10ASN1_ClassE:
  360|  1.65k|BER_Decoder& BER_Decoder::decode_list(std::vector<T>& vec, ASN1_Type type_tag, ASN1_Class class_tag) {
  361|  1.65k|   BER_Decoder list = start_cons(type_tag, class_tag);
  362|       |
  363|  2.46k|   while(list.more_items()) {
  ------------------
  |  Branch (363:10): [True: 808, False: 1.65k]
  ------------------
  364|    808|      T value;
  365|    808|      list.decode(value);
  366|    808|      vec.push_back(std::move(value));
  367|    808|   }
  368|       |
  369|  1.65k|   list.end_cons();
  370|       |
  371|  1.65k|   return (*this);
  372|  1.65k|}
_ZN5Botan11BER_Decoder11decode_listINS_14Cert_Extension23CRL_Distribution_Points18Distribution_PointEEERS0_RNSt3__16vectorIT_NS6_9allocatorIS8_EEEENS_9ASN1_TypeENS_10ASN1_ClassE:
  360|  2.10k|BER_Decoder& BER_Decoder::decode_list(std::vector<T>& vec, ASN1_Type type_tag, ASN1_Class class_tag) {
  361|  2.10k|   BER_Decoder list = start_cons(type_tag, class_tag);
  362|       |
  363|  4.10k|   while(list.more_items()) {
  ------------------
  |  Branch (363:10): [True: 1.99k, False: 2.10k]
  ------------------
  364|  1.99k|      T value;
  365|  1.99k|      list.decode(value);
  366|  1.99k|      vec.push_back(std::move(value));
  367|  1.99k|   }
  368|       |
  369|  2.10k|   list.end_cons();
  370|       |
  371|  2.10k|   return (*this);
  372|  2.10k|}
_ZN5Botan11BER_Decoder24decode_optional_implicitINS_15AlternativeNameEEERS0_RT_NS_9ASN1_TypeENS_10ASN1_ClassES6_S7_RKS4_:
  340|  2.10k|                                                   const T& default_value) {
  341|  2.10k|   BER_Object obj = get_next_object();
  342|       |
  343|  2.10k|   if(obj.is_a(type_tag, class_tag)) {
  ------------------
  |  Branch (343:7): [True: 1.10k, False: 1.00k]
  ------------------
  344|  1.10k|      obj.set_tagging(real_type, real_class);
  345|  1.10k|      push_back(std::move(obj));
  346|  1.10k|      decode(out, real_type, real_class);
  347|  1.10k|   } else {
  348|       |      // Not what we wanted, push it back on the stream
  349|  1.00k|      out = default_value;
  350|  1.00k|      push_back(std::move(obj));
  351|  1.00k|   }
  352|       |
  353|  2.10k|   return (*this);
  354|  2.10k|}

_ZN5Botan6BigIntC2Ev:
   39|  8.89k|      BigInt() = default;
_ZNK5Botan6BigInt11is_negativeEv:
  524|  2.24k|      bool is_negative() const { return (sign() == Negative); }
_ZNK5Botan6BigInt4signEv:
  536|  3.77k|      Sign sign() const { return (m_signedness); }
_ZN5Botan6BigInt6encodeERKS0_:
  737|  5.01k|      static std::vector<uint8_t> encode(const BigInt& n) {
  738|  5.01k|         std::vector<uint8_t> output(n.bytes());
  739|  5.01k|         n.binary_encode(output.data());
  740|  5.01k|         return output;
  741|  5.01k|      }
_ZN5Botan6BigIntD2Ev:
  147|  15.6k|      ~BigInt() { const_time_unpoison(); }
_ZNK5Botan6BigInt19const_time_unpoisonEv:
  710|  15.6k|      void const_time_unpoison() const {}
_ZN5Botan6BigIntaSEOS0_:
  152|  6.79k|      BigInt& operator=(BigInt&& other) {
  153|  6.79k|         if(this != &other)
  ------------------
  |  Branch (153:13): [True: 6.79k, False: 0]
  ------------------
  154|  6.79k|            this->swap(other);
  155|       |
  156|  6.79k|         return (*this);
  157|  6.79k|      }
_ZN5Botan6BigInt4swapERS0_:
  168|  6.79k|      void swap(BigInt& other) {
  169|  6.79k|         m_data.swap(other.m_data);
  170|  6.79k|         std::swap(m_signedness, other.m_signedness);
  171|  6.79k|      }
_ZN5Botan6BigInt5clearEv:
  366|  7.32k|      void clear() {
  367|  7.32k|         m_data.set_to_zero();
  368|  7.32k|         m_signedness = Positive;
  369|  7.32k|      }
_ZNK5Botan6BigInt7is_zeroEv:
  424|  1.52k|      bool is_zero() const { return (sig_words() == 0); }
_ZNK5Botan6BigInt7word_atEm:
  514|  26.8k|      word word_at(size_t n) const { return m_data.get_word_at(n); }
_ZNK5Botan6BigInt12reverse_signEv:
  541|  1.52k|      Sign reverse_sign() const {
  542|  1.52k|         if(sign() == Positive)
  ------------------
  |  Branch (542:13): [True: 1.52k, False: 0]
  ------------------
  543|  1.52k|            return Negative;
  544|      0|         return Positive;
  545|  1.52k|      }
_ZN5Botan6BigInt9flip_signEv:
  550|  1.52k|      void flip_sign() { set_sign(reverse_sign()); }
_ZN5Botan6BigInt8set_signENS0_4SignE:
  556|  1.52k|      void set_sign(Sign sign) {
  557|  1.52k|         if(sign == Negative && is_zero())
  ------------------
  |  Branch (557:13): [True: 1.52k, False: 0]
  |  Branch (557:33): [True: 0, False: 1.52k]
  ------------------
  558|      0|            sign = Positive;
  559|       |
  560|  1.52k|         m_signedness = sign;
  561|  1.52k|      }
_ZNK5Botan6BigInt9sig_wordsEv:
  578|  23.8k|      size_t sig_words() const { return m_data.sig_words(); }
_ZNK5Botan6BigInt4Data11get_word_atEm:
  830|  26.8k|            word get_word_at(size_t n) const {
  831|  26.8k|               if(n < m_reg.size())
  ------------------
  |  Branch (831:19): [True: 26.0k, False: 820]
  ------------------
  832|  26.0k|                  return m_reg[n];
  833|    820|               return 0;
  834|  26.8k|            }
_ZN5Botan6BigInt4Data11set_to_zeroEv:
  851|  7.32k|            void set_to_zero() {
  852|  7.32k|               m_reg.resize(m_reg.capacity());
  853|  7.32k|               clear_mem(m_reg.data(), m_reg.size());
  854|  7.32k|               m_sig_words = 0;
  855|  7.32k|            }
_ZN5Botan6BigInt4Data4swapERS1_:
  900|  6.79k|            void swap(Data& other) {
  901|  6.79k|               m_reg.swap(other.m_reg);
  902|  6.79k|               std::swap(m_sig_words, other.m_sig_words);
  903|  6.79k|            }
_ZN5Botan6BigInt4Data4swapERNSt3__16vectorImNS_16secure_allocatorImEEEE:
  905|  6.79k|            void swap(secure_vector<word>& reg) {
  906|  6.79k|               m_reg.swap(reg);
  907|  6.79k|               invalidate_sig_words();
  908|  6.79k|            }
_ZNK5Botan6BigInt4Data20invalidate_sig_wordsEv:
  910|  6.79k|            void invalidate_sig_words() const { m_sig_words = sig_words_npos; }
_ZNK5Botan6BigInt4Data9sig_wordsEv:
  912|  23.8k|            size_t sig_words() const {
  913|  23.8k|               if(m_sig_words == sig_words_npos) {
  ------------------
  |  Branch (913:19): [True: 6.75k, False: 17.1k]
  ------------------
  914|  6.75k|                  m_sig_words = calc_sig_words();
  915|  17.1k|               } else {
  916|  17.1k|                  BOTAN_DEBUG_ASSERT(m_sig_words == calc_sig_words());
  ------------------
  |  |   99|  17.1k|      do {                          \
  |  |  100|  17.1k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (100:15): [Folded - Ignored]
  |  |  ------------------
  ------------------
  917|  17.1k|               }
  918|  23.8k|               return m_sig_words;
  919|  23.8k|            }

_ZN5Botan17DataSource_MemoryC2EPKhm:
  118|  34.8k|      DataSource_Memory(const uint8_t in[], size_t length) : m_source(in, in + length), m_offset(0) {}
_ZN5Botan10DataSourceC2Ev:
   91|   126k|      DataSource() = default;
_ZN5Botan10DataSourceD2Ev:
   92|   126k|      virtual ~DataSource() = default;
_ZN5Botan17DataSource_MemoryC2ENSt3__16vectorIhNS_16secure_allocatorIhEEEE:
  124|  15.6k|      explicit DataSource_Memory(secure_vector<uint8_t> in) : m_source(std::move(in)), m_offset(0) {}

_ZNK5Botan9Exception4whatEv:
   93|  3.07k|      const char* what() const noexcept override { return m_msg.c_str(); }

_ZN5Botan10ct_is_zeroIhEET_S1_:
   35|  98.3k|{
   36|  98.3k|   return expand_top_bit<T>(~x & (x - 1));
   37|  98.3k|}
_ZN5Botan14expand_top_bitIhEET_S1_:
   25|   229k|{
   26|   229k|   return static_cast<T>(0) - (a >> (sizeof(T) * 8 - 1));
   27|   229k|}
_ZN5Botan10ct_is_zeroImEET_S1_:
   35|   126k|{
   36|   126k|   return expand_top_bit<T>(~x & (x - 1));
   37|   126k|}
_ZN5Botan14expand_top_bitImEET_S1_:
   25|   126k|{
   26|   126k|   return static_cast<T>(0) - (a >> (sizeof(T) * 8 - 1));
   27|   126k|}
_ZN5Botan6chooseIhEET_S1_S1_S1_:
  168|   229k|inline constexpr T choose(T mask, T a, T b) {
  169|       |   //return (mask & a) | (~mask & b);
  170|   229k|   return (b ^ (mask & (a ^ b)));
  171|   229k|}
_ZN5Botan8high_bitImEEmT_:
   60|  10.4k|{
   61|  10.4k|   size_t hb = 0;
   62|       |
   63|  73.0k|   for(size_t s = 8 * sizeof(T) / 2; s > 0; s /= 2) {
  ------------------
  |  Branch (63:38): [True: 62.6k, False: 10.4k]
  ------------------
   64|  62.6k|      const size_t z = s * ((~ct_is_zero(n >> s)) & 1);
   65|  62.6k|      hb += z;
   66|  62.6k|      n >>= z;
   67|  62.6k|   }
   68|       |
   69|  10.4k|   hb += n;
   70|       |
   71|  10.4k|   return hb;
   72|  10.4k|}

_ZN5Botan13reverse_bytesEt:
   19|  4.82k|inline constexpr uint16_t reverse_bytes(uint16_t x) {
   20|  4.82k|#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_bswap16)
   21|  4.82k|   return __builtin_bswap16(x);
   22|       |#else
   23|       |   return static_cast<uint16_t>((x << 8) | (x >> 8));
   24|       |#endif
   25|  4.82k|}
_ZN5Botan13reverse_bytesEj:
   33|  2.28k|inline constexpr uint32_t reverse_bytes(uint32_t x) {
   34|  2.28k|#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_bswap32)
   35|  2.28k|   return __builtin_bswap32(x);
   36|       |#else
   37|       |   // MSVC at least recognizes this as a bswap
   38|       |   return ((x & 0x000000FF) << 24) | ((x & 0x0000FF00) << 8) | ((x & 0x00FF0000) >> 8) | ((x & 0xFF000000) >> 24);
   39|       |#endif
   40|  2.28k|}
_ZN5Botan13reverse_bytesEm:
   48|  18.1k|inline constexpr uint64_t reverse_bytes(uint64_t x) {
   49|  18.1k|#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_bswap64)
   50|  18.1k|   return __builtin_bswap64(x);
   51|       |#else
   52|       |   uint32_t hi = static_cast<uint32_t>(x >> 32);
   53|       |   uint32_t lo = static_cast<uint32_t>(x);
   54|       |
   55|       |   hi = reverse_bytes(hi);
   56|       |   lo = reverse_bytes(lo);
   57|       |
   58|       |   return (static_cast<uint64_t>(lo) << 32) | hi;
   59|       |#endif
   60|  18.1k|}

base64.cpp:_ZN5Botan11base_decodeIRNS_12_GLOBAL__N_16Base64EEEmOT_PhPKcmRmbb:
  118|    192|                   bool ignore_ws = true) {
  119|    192|   const size_t decoding_bytes_in = base.decoding_bytes_in();
  120|    192|   const size_t decoding_bytes_out = base.decoding_bytes_out();
  121|       |
  122|    192|   uint8_t* out_ptr = output;
  123|    192|   std::vector<uint8_t> decode_buf(decoding_bytes_in, 0);
  124|    192|   size_t decode_buf_pos = 0;
  125|    192|   size_t final_truncate = 0;
  126|       |
  127|    192|   clear_mem(output, base.decode_max_output(input_length));
  128|       |
  129|  32.3k|   for(size_t i = 0; i != input_length; ++i) {
  ------------------
  |  Branch (129:22): [True: 32.1k, False: 192]
  ------------------
  130|  32.1k|      const uint8_t bin = base.lookup_binary_value(input[i]);
  131|       |
  132|  32.1k|      if(base.check_bad_char(bin, input[i], ignore_ws))  // May throw Invalid_Argument
  ------------------
  |  Branch (132:10): [True: 22.5k, False: 9.68k]
  ------------------
  133|  22.5k|      {
  134|  22.5k|         decode_buf[decode_buf_pos] = bin;
  135|  22.5k|         ++decode_buf_pos;
  136|  22.5k|      }
  137|       |
  138|       |      /*
  139|       |      * If we're at the end of the input, pad with 0s and truncate
  140|       |      */
  141|  32.1k|      if(final_inputs && (i == input_length - 1)) {
  ------------------
  |  Branch (141:10): [True: 32.1k, False: 36]
  |  Branch (141:26): [True: 87, False: 32.0k]
  ------------------
  142|     87|         if(decode_buf_pos) {
  ------------------
  |  Branch (142:13): [True: 38, False: 49]
  ------------------
  143|    115|            for(size_t j = decode_buf_pos; j < decoding_bytes_in; ++j) {
  ------------------
  |  Branch (143:44): [True: 77, False: 38]
  ------------------
  144|     77|               decode_buf[j] = 0;
  145|     77|            }
  146|       |
  147|     38|            final_truncate = decoding_bytes_in - decode_buf_pos;
  148|     38|            decode_buf_pos = decoding_bytes_in;
  149|     38|         }
  150|     87|      }
  151|       |
  152|  32.1k|      if(decode_buf_pos == decoding_bytes_in) {
  ------------------
  |  Branch (152:10): [True: 5.64k, False: 26.5k]
  ------------------
  153|  5.64k|         base.decode(out_ptr, decode_buf.data());
  154|       |
  155|  5.64k|         out_ptr += decoding_bytes_out;
  156|  5.64k|         decode_buf_pos = 0;
  157|  5.64k|         input_consumed = i + 1;
  158|  5.64k|      }
  159|  32.1k|   }
  160|       |
  161|    746|   while(input_consumed < input_length && base.lookup_binary_value(input[input_consumed]) == 0x80) {
  ------------------
  |  Branch (161:10): [True: 581, False: 165]
  |  Branch (161:43): [True: 554, False: 27]
  ------------------
  162|    554|      ++input_consumed;
  163|    554|   }
  164|       |
  165|    192|   size_t written = (out_ptr - output) - base.bytes_to_remove(final_truncate);
  166|       |
  167|    192|   return written;
  168|    192|}
base64.cpp:_ZN5Botan18base_decode_to_vecINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_12_GLOBAL__N_16Base64EEET_OT0_PKcmb:
  183|    192|Vector base_decode_to_vec(Base&& base, const char input[], size_t input_length, bool ignore_ws) {
  184|    192|   const size_t output_length = base.decode_max_output(input_length);
  185|    192|   Vector bin(output_length);
  186|       |
  187|    192|   const size_t written = base_decode_full(base, bin.data(), input, input_length, ignore_ws);
  188|       |
  189|    192|   bin.resize(written);
  190|    192|   return bin;
  191|    192|}
base64.cpp:_ZN5Botan16base_decode_fullIRNS_12_GLOBAL__N_16Base64EEEmOT_PhPKcmb:
  171|    192|size_t base_decode_full(Base&& base, uint8_t output[], const char input[], size_t input_length, bool ignore_ws) {
  172|    192|   size_t consumed = 0;
  173|    192|   const size_t written = base_decode(base, output, input, input_length, consumed, true, ignore_ws);
  174|       |
  175|    192|   if(consumed != input_length) {
  ------------------
  |  Branch (175:7): [True: 27, False: 165]
  ------------------
  176|     27|      throw Invalid_Argument(base.name() + " decoding failed, input did not have full bytes");
  177|     27|   }
  178|       |
  179|    165|   return written;
  180|    192|}

_ZN5Botan2CT4MaskIhE7is_zeroEh:
  123|  98.3k|      static Mask<T> is_zero(T x) { return Mask<T>(ct_is_zero<T>(x)); }
_ZN5Botan2CT4MaskIhEC2Eh:
  279|   332k|      Mask(T m) : m_mask(m) {}
_ZNK5Botan2CT4MaskIhE5valueEv:
  276|   332k|      T value() const { return m_mask; }
_ZN5Botan2CT4MaskIhE3setEv:
   99|  4.69k|      static Mask<T> set() { return Mask<T>(static_cast<T>(~0)); }
_ZN5Botan2CT4MaskIhE15is_within_rangeEhhh:
  150|  98.3k|      static Mask<T> is_within_range(T v, T l, T u) {
  151|       |         //return Mask<T>::is_gte(v, l) & Mask<T>::is_lte(v, u);
  152|       |
  153|  98.3k|         const T v_lt_l = v ^ ((v ^ l) | ((v - l) ^ v));
  154|  98.3k|         const T v_gt_u = u ^ ((u ^ v) | ((u - v) ^ u));
  155|  98.3k|         const T either = v_lt_l | v_gt_u;
  156|  98.3k|         return ~Mask<T>(expand_top_bit(either));
  157|  98.3k|      }
_ZNK5Botan2CT4MaskIhEcoEv:
  213|  98.3k|      Mask<T> operator~() const { return Mask<T>(~value()); }
_ZN5Botan2CT4MaskIhE9is_any_ofEhSt16initializer_listIhE:
  159|  32.7k|      static Mask<T> is_any_of(T v, std::initializer_list<T> accepted) {
  160|  32.7k|         T accept = 0;
  161|       |
  162|   131k|         for(auto a : accepted) {
  ------------------
  |  Branch (162:21): [True: 131k, False: 32.7k]
  ------------------
  163|   131k|            const T diff = a ^ v;
  164|   131k|            const T eq_zero = ~diff & (diff - 1);
  165|   131k|            accept |= eq_zero;
  166|   131k|         }
  167|       |
  168|  32.7k|         return Mask<T>(expand_top_bit(accept));
  169|  32.7k|      }
_ZNK5Botan2CT4MaskIhE6is_setEv:
  271|  4.69k|      bool is_set() const { return unpoisoned_value() != 0; }
_ZNK5Botan2CT4MaskIhE16unpoisoned_valueEv:
  262|  4.69k|      T unpoisoned_value() const {
  263|  4.69k|         T r = value();
  264|  4.69k|         CT::unpoison(r);
  265|  4.69k|         return r;
  266|  4.69k|      }
_ZN5Botan2CT8unpoisonIhEEvRT_:
   66|  4.69k|inline void unpoison(T& p) {
   67|       |#if defined(BOTAN_HAS_VALGRIND)
   68|       |   VALGRIND_MAKE_MEM_DEFINED(&p, sizeof(T));
   69|       |#else
   70|  4.69k|   BOTAN_UNUSED(p);
  ------------------
  |  |  118|  4.69k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   71|  4.69k|#endif
   72|  4.69k|}
_ZNK5Botan2CT4MaskIhE6selectEhh:
  228|   229k|      T select(T x, T y) const { return choose(value(), x, y); }
_ZN5Botan2CT8unpoisonImEEvRT_:
   66|  6.75k|inline void unpoison(T& p) {
   67|       |#if defined(BOTAN_HAS_VALGRIND)
   68|       |   VALGRIND_MAKE_MEM_DEFINED(&p, sizeof(T));
   69|       |#else
   70|  6.75k|   BOTAN_UNUSED(p);
  ------------------
  |  |  118|  6.75k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   71|  6.75k|#endif
   72|  6.75k|}
_ZN5Botan2CT8unpoisonIKmEEvRT_:
   66|  10.4k|inline void unpoison(T& p) {
   67|       |#if defined(BOTAN_HAS_VALGRIND)
   68|       |   VALGRIND_MAKE_MEM_DEFINED(&p, sizeof(T));
   69|       |#else
   70|  10.4k|   BOTAN_UNUSED(p);
  ------------------
  |  |  118|  10.4k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   71|  10.4k|#endif
   72|  10.4k|}
_ZN5Botan2CT4MaskIhE8is_equalEhh:
  128|  98.3k|      static Mask<T> is_equal(T x, T y) { return Mask<T>::is_zero(static_cast<T>(x ^ y)); }

_ZN5Botan8FE_25519C2ESt16initializer_listIiE:
   36|  1.53k|      FE_25519(std::initializer_list<int32_t> x) {
   37|  1.53k|         if(x.size() != 10)
  ------------------
  |  Branch (37:13): [True: 0, False: 1.53k]
  ------------------
   38|      0|            throw Invalid_Argument("Invalid FE_25519 initializer list");
   39|  1.53k|         copy_mem(m_fe, x.begin(), 10);
   40|  1.53k|      }

_ZN5Botan3fmtIJNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEEEENS1_12basic_stringIcS4_NS1_9allocatorIcEEEES5_DpRKT_:
   51|  16.5k|std::string fmt(std::string_view format, const T&... args) {
   52|  16.5k|   std::ostringstream oss;
   53|  16.5k|   oss.imbue(std::locale::classic());
   54|  16.5k|   fmt_detail::do_fmt(oss, format, args...);
   55|  16.5k|   return oss.str();
   56|  16.5k|}
_ZN5Botan10fmt_detail6do_fmtINSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEJEEEvRNS2_19basic_ostringstreamIcS5_NS2_9allocatorIcEEEES6_RKT_DpRKT0_:
   23|  16.5k|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   24|  16.5k|   size_t i = 0;
   25|       |
   26|   123k|   while(i < format.size()) {
  ------------------
  |  Branch (26:10): [True: 123k, False: 0]
  ------------------
   27|   123k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (27:10): [True: 16.5k, False: 106k]
  |  Branch (27:30): [True: 16.5k, False: 0]
  |  Branch (27:59): [True: 16.5k, False: 0]
  ------------------
   28|  16.5k|         oss << val;
   29|  16.5k|         return do_fmt(oss, format.substr(i + 2), rest...);
   30|   106k|      } else {
   31|   106k|         oss << format[i];
   32|   106k|      }
   33|       |
   34|   106k|      i += 1;
   35|   106k|   }
   36|  16.5k|}
_ZN5Botan10fmt_detail6do_fmtERNSt3__119basic_ostringstreamIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_17basic_string_viewIcS4_EE:
   20|  20.5k|inline void do_fmt(std::ostringstream& oss, std::string_view format) { oss << format; }
_ZN5Botan3fmtIJNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEPKcEEENS1_12basic_stringIcS4_NS1_9allocatorIcEEEES5_DpRKT_:
   51|  3.07k|std::string fmt(std::string_view format, const T&... args) {
   52|  3.07k|   std::ostringstream oss;
   53|  3.07k|   oss.imbue(std::locale::classic());
   54|  3.07k|   fmt_detail::do_fmt(oss, format, args...);
   55|  3.07k|   return oss.str();
   56|  3.07k|}
_ZN5Botan10fmt_detail6do_fmtINSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEJPKcEEEvRNS2_19basic_ostringstreamIcS5_NS2_9allocatorIcEEEES6_RKT_DpRKT0_:
   23|  3.07k|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   24|  3.07k|   size_t i = 0;
   25|       |
   26|  3.07k|   while(i < format.size()) {
  ------------------
  |  Branch (26:10): [True: 3.07k, False: 0]
  ------------------
   27|  3.07k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (27:10): [True: 3.07k, False: 0]
  |  Branch (27:30): [True: 3.07k, False: 0]
  |  Branch (27:59): [True: 3.07k, False: 0]
  ------------------
   28|  3.07k|         oss << val;
   29|  3.07k|         return do_fmt(oss, format.substr(i + 2), rest...);
   30|  3.07k|      } else {
   31|      0|         oss << format[i];
   32|      0|      }
   33|       |
   34|      0|      i += 1;
   35|      0|   }
   36|  3.07k|}
_ZN5Botan10fmt_detail6do_fmtIPKcJEEEvRNSt3__119basic_ostringstreamIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_17basic_string_viewIcS7_EERKT_DpRKT0_:
   23|  3.29k|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   24|  3.29k|   size_t i = 0;
   25|       |
   26|  43.4k|   while(i < format.size()) {
  ------------------
  |  Branch (26:10): [True: 43.4k, False: 0]
  ------------------
   27|  43.4k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (27:10): [True: 3.29k, False: 40.1k]
  |  Branch (27:30): [True: 3.29k, False: 0]
  |  Branch (27:59): [True: 3.29k, False: 0]
  ------------------
   28|  3.29k|         oss << val;
   29|  3.29k|         return do_fmt(oss, format.substr(i + 2), rest...);
   30|  40.1k|      } else {
   31|  40.1k|         oss << format[i];
   32|  40.1k|      }
   33|       |
   34|  40.1k|      i += 1;
   35|  40.1k|   }
   36|  3.29k|}
_ZN5Botan3fmtIJPKcNSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEEEENS3_12basic_stringIcS6_NS3_9allocatorIcEEEES7_DpRKT_:
   51|     15|std::string fmt(std::string_view format, const T&... args) {
   52|     15|   std::ostringstream oss;
   53|     15|   oss.imbue(std::locale::classic());
   54|     15|   fmt_detail::do_fmt(oss, format, args...);
   55|     15|   return oss.str();
   56|     15|}
_ZN5Botan10fmt_detail6do_fmtIPKcJNSt3__117basic_string_viewIcNS4_11char_traitsIcEEEEEEEvRNS4_19basic_ostringstreamIcS7_NS4_9allocatorIcEEEES8_RKT_DpRKT0_:
   23|     15|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   24|     15|   size_t i = 0;
   25|       |
   26|     15|   while(i < format.size()) {
  ------------------
  |  Branch (26:10): [True: 15, False: 0]
  ------------------
   27|     15|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (27:10): [True: 15, False: 0]
  |  Branch (27:30): [True: 15, False: 0]
  |  Branch (27:59): [True: 15, False: 0]
  ------------------
   28|     15|         oss << val;
   29|     15|         return do_fmt(oss, format.substr(i + 2), rest...);
   30|     15|      } else {
   31|      0|         oss << format[i];
   32|      0|      }
   33|       |
   34|      0|      i += 1;
   35|      0|   }
   36|     15|}
_ZN5Botan3fmtIJNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEjEEENS1_12basic_stringIcS4_NS1_9allocatorIcEEEES5_DpRKT_:
   51|    342|std::string fmt(std::string_view format, const T&... args) {
   52|    342|   std::ostringstream oss;
   53|    342|   oss.imbue(std::locale::classic());
   54|    342|   fmt_detail::do_fmt(oss, format, args...);
   55|    342|   return oss.str();
   56|    342|}
_ZN5Botan10fmt_detail6do_fmtINSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEJjEEEvRNS2_19basic_ostringstreamIcS5_NS2_9allocatorIcEEEES6_RKT_DpRKT0_:
   23|    342|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   24|    342|   size_t i = 0;
   25|       |
   26|    342|   while(i < format.size()) {
  ------------------
  |  Branch (26:10): [True: 342, False: 0]
  ------------------
   27|    342|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (27:10): [True: 342, False: 0]
  |  Branch (27:30): [True: 342, False: 0]
  |  Branch (27:59): [True: 342, False: 0]
  ------------------
   28|    342|         oss << val;
   29|    342|         return do_fmt(oss, format.substr(i + 2), rest...);
   30|    342|      } else {
   31|      0|         oss << format[i];
   32|      0|      }
   33|       |
   34|      0|      i += 1;
   35|      0|   }
   36|    342|}
_ZN5Botan10fmt_detail6do_fmtIjJEEEvRNSt3__119basic_ostringstreamIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS2_17basic_string_viewIcS5_EERKT_DpRKT0_:
   23|    436|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   24|    436|   size_t i = 0;
   25|       |
   26|  4.22k|   while(i < format.size()) {
  ------------------
  |  Branch (26:10): [True: 4.22k, False: 0]
  ------------------
   27|  4.22k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (27:10): [True: 436, False: 3.78k]
  |  Branch (27:30): [True: 436, False: 0]
  |  Branch (27:59): [True: 436, False: 0]
  ------------------
   28|    436|         oss << val;
   29|    436|         return do_fmt(oss, format.substr(i + 2), rest...);
   30|  3.78k|      } else {
   31|  3.78k|         oss << format[i];
   32|  3.78k|      }
   33|       |
   34|  3.78k|      i += 1;
   35|  3.78k|   }
   36|    436|}
_ZN5Botan3fmtIJjEEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_17basic_string_viewIcS4_EEDpRKT_:
   51|     94|std::string fmt(std::string_view format, const T&... args) {
   52|     94|   std::ostringstream oss;
   53|     94|   oss.imbue(std::locale::classic());
   54|     94|   fmt_detail::do_fmt(oss, format, args...);
   55|     94|   return oss.str();
   56|     94|}
_ZN5Botan3fmtIJNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEES7_NS1_17basic_string_viewIcS4_EEDpRKT_:
   51|    322|std::string fmt(std::string_view format, const T&... args) {
   52|    322|   std::ostringstream oss;
   53|    322|   oss.imbue(std::locale::classic());
   54|    322|   fmt_detail::do_fmt(oss, format, args...);
   55|    322|   return oss.str();
   56|    322|}
_ZN5Botan10fmt_detail6do_fmtINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEJEEEvRNS2_19basic_ostringstreamIcS5_S7_EENS2_17basic_string_viewIcS5_EERKT_DpRKT0_:
   23|    322|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   24|    322|   size_t i = 0;
   25|       |
   26|  4.12k|   while(i < format.size()) {
  ------------------
  |  Branch (26:10): [True: 4.12k, False: 0]
  ------------------
   27|  4.12k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (27:10): [True: 322, False: 3.79k]
  |  Branch (27:30): [True: 322, False: 0]
  |  Branch (27:59): [True: 322, False: 0]
  ------------------
   28|    322|         oss << val;
   29|    322|         return do_fmt(oss, format.substr(i + 2), rest...);
   30|  3.79k|      } else {
   31|  3.79k|         oss << format[i];
   32|  3.79k|      }
   33|       |
   34|  3.79k|      i += 1;
   35|  3.79k|   }
   36|    322|}
_ZN5Botan3fmtIJPKcS2_S2_EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS3_17basic_string_viewIcS6_EEDpRKT_:
   51|    223|std::string fmt(std::string_view format, const T&... args) {
   52|    223|   std::ostringstream oss;
   53|    223|   oss.imbue(std::locale::classic());
   54|    223|   fmt_detail::do_fmt(oss, format, args...);
   55|    223|   return oss.str();
   56|    223|}
_ZN5Botan10fmt_detail6do_fmtIPKcJS3_S3_EEEvRNSt3__119basic_ostringstreamIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_17basic_string_viewIcS7_EERKT_DpRKT0_:
   23|    223|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   24|    223|   size_t i = 0;
   25|       |
   26|    223|   while(i < format.size()) {
  ------------------
  |  Branch (26:10): [True: 223, False: 0]
  ------------------
   27|    223|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (27:10): [True: 223, False: 0]
  |  Branch (27:30): [True: 223, False: 0]
  |  Branch (27:59): [True: 223, False: 0]
  ------------------
   28|    223|         oss << val;
   29|    223|         return do_fmt(oss, format.substr(i + 2), rest...);
   30|    223|      } else {
   31|      0|         oss << format[i];
   32|      0|      }
   33|       |
   34|      0|      i += 1;
   35|      0|   }
   36|    223|}
_ZN5Botan10fmt_detail6do_fmtIPKcJS3_EEEvRNSt3__119basic_ostringstreamIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_17basic_string_viewIcS7_EERKT_DpRKT0_:
   23|    223|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   24|    223|   size_t i = 0;
   25|       |
   26|  1.11k|   while(i < format.size()) {
  ------------------
  |  Branch (26:10): [True: 1.11k, False: 0]
  ------------------
   27|  1.11k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (27:10): [True: 223, False: 892]
  |  Branch (27:30): [True: 223, False: 0]
  |  Branch (27:59): [True: 223, False: 0]
  ------------------
   28|    223|         oss << val;
   29|    223|         return do_fmt(oss, format.substr(i + 2), rest...);
   30|    892|      } else {
   31|    892|         oss << format[i];
   32|    892|      }
   33|       |
   34|    892|      i += 1;
   35|    892|   }
   36|    223|}

_ZN5Botan11make_uint16Ehh:
   63|    198|inline constexpr uint16_t make_uint16(uint8_t i0, uint8_t i1) {
   64|    198|   return static_cast<uint16_t>((static_cast<uint16_t>(i0) << 8) | i1);
   65|    198|}
_ZN5Botan7load_beItEET_PKhm:
  136|  4.82k|inline constexpr uint16_t load_be<uint16_t>(const uint8_t in[], size_t off) {
  137|  4.82k|   in += off * sizeof(uint16_t);
  138|       |
  139|  4.82k|#if defined(BOTAN_ENDIAN_N2B)
  140|  4.82k|   uint16_t x = 0;
  141|  4.82k|   typecast_copy(x, in);
  142|  4.82k|   return BOTAN_ENDIAN_N2B(x);
  ------------------
  |  |   26|  4.82k|   #define BOTAN_ENDIAN_N2B(x) reverse_bytes(x)
  ------------------
  143|       |#else
  144|       |   return make_uint16(in[0], in[1]);
  145|       |#endif
  146|  4.82k|}
_ZN5Botan7load_beIjEET_PKhm:
  174|  1.37k|inline constexpr uint32_t load_be<uint32_t>(const uint8_t in[], size_t off) {
  175|  1.37k|   in += off * sizeof(uint32_t);
  176|  1.37k|#if defined(BOTAN_ENDIAN_N2B)
  177|  1.37k|   uint32_t x = 0;
  178|  1.37k|   typecast_copy(x, in);
  179|  1.37k|   return BOTAN_ENDIAN_N2B(x);
  ------------------
  |  |   26|  1.37k|   #define BOTAN_ENDIAN_N2B(x) reverse_bytes(x)
  ------------------
  180|       |#else
  181|       |   return make_uint32(in[0], in[1], in[2], in[3]);
  182|       |#endif
  183|  1.37k|}
_ZN5Botan7load_beImEET_PKhm:
  210|  11.9k|inline constexpr uint64_t load_be<uint64_t>(const uint8_t in[], size_t off) {
  211|  11.9k|   in += off * sizeof(uint64_t);
  212|  11.9k|#if defined(BOTAN_ENDIAN_N2B)
  213|  11.9k|   uint64_t x = 0;
  214|  11.9k|   typecast_copy(x, in);
  215|  11.9k|   return BOTAN_ENDIAN_N2B(x);
  ------------------
  |  |   26|  11.9k|   #define BOTAN_ENDIAN_N2B(x) reverse_bytes(x)
  ------------------
  216|       |#else
  217|       |   return make_uint64(in[0], in[1], in[2], in[3], in[4], in[5], in[6], in[7]);
  218|       |#endif
  219|  11.9k|}
_ZN5Botan8store_beEjPh:
  437|    917|inline constexpr void store_be(uint32_t in, uint8_t out[4]) {
  438|    917|#if defined(BOTAN_ENDIAN_B2N)
  439|    917|   uint32_t o = BOTAN_ENDIAN_B2N(in);
  ------------------
  |  |   27|    917|   #define BOTAN_ENDIAN_B2N(x) reverse_bytes(x)
  ------------------
  440|    917|   typecast_copy(out, o);
  441|       |#else
  442|       |   out[0] = get_byte<0>(in);
  443|       |   out[1] = get_byte<1>(in);
  444|       |   out[2] = get_byte<2>(in);
  445|       |   out[3] = get_byte<3>(in);
  446|       |#endif
  447|    917|}
_ZN5Botan8store_beEmPh:
  471|  6.14k|inline constexpr void store_be(uint64_t in, uint8_t out[8]) {
  472|  6.14k|#if defined(BOTAN_ENDIAN_B2N)
  473|  6.14k|   uint64_t o = BOTAN_ENDIAN_B2N(in);
  ------------------
  |  |   27|  6.14k|   #define BOTAN_ENDIAN_B2N(x) reverse_bytes(x)
  ------------------
  474|  6.14k|   typecast_copy(out, o);
  475|       |#else
  476|       |   out[0] = get_byte<0>(in);
  477|       |   out[1] = get_byte<1>(in);
  478|       |   out[2] = get_byte<2>(in);
  479|       |   out[3] = get_byte<3>(in);
  480|       |   out[4] = get_byte<4>(in);
  481|       |   out[5] = get_byte<5>(in);
  482|       |   out[6] = get_byte<6>(in);
  483|       |   out[7] = get_byte<7>(in);
  484|       |#endif
  485|  6.14k|}
_ZN5Botan8get_byteILm0EmEEhT0_:
   52|  19.6k|{
   53|  19.6k|   const size_t shift = ((~B) & (sizeof(T) - 1)) << 3;
   54|  19.6k|   return static_cast<uint8_t>((input >> shift) & 0xFF);
   55|  19.6k|}
_ZN5Botan12get_byte_varImEEhmT_:
   40|  17.4k|inline constexpr uint8_t get_byte_var(size_t byte_num, T input) {
   41|  17.4k|   return static_cast<uint8_t>(input >> (((~byte_num) & (sizeof(T) - 1)) << 3));
   42|  17.4k|}

_ZN5Botan8round_upEmm:
   21|  17.2k|inline size_t round_up(size_t n, size_t align_to) {
   22|  17.2k|   BOTAN_ARG_CHECK(align_to != 0, "align_to must not be 0");
  ------------------
  |  |   30|  17.2k|   do {                                                          \
  |  |   31|  17.2k|      if(!(expr))                                                \
  |  |  ------------------
  |  |  |  Branch (31:10): [True: 0, False: 17.2k]
  |  |  ------------------
  |  |   32|  17.2k|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   33|  17.2k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (33:12): [Folded - Ignored]
  |  |  ------------------
  ------------------
   23|       |
   24|  17.2k|   if(n % align_to)
  ------------------
  |  Branch (24:7): [True: 15.1k, False: 2.01k]
  ------------------
   25|  15.1k|      n += align_to - (n % align_to);
   26|  17.2k|   return n;
   27|  17.2k|}

_ZN5Botan11checked_mulEmm:
   47|   275k|inline std::optional<size_t> checked_mul(size_t x, size_t y) {
   48|   275k|#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_add_overflow)
   49|   275k|   size_t z;
   50|   275k|   if(__builtin_mul_overflow(x, y, &z)) [[unlikely]]
  ------------------
  |  Branch (50:7): [True: 0, False: 275k]
  ------------------
   51|       |#elif defined(_MSC_VER)
   52|       |   size_t z;
   53|       |   if(SizeTMult(x, y, &z) != S_OK) [[unlikely]]
   54|       |#else
   55|       |   size_t z = x * y;
   56|       |   if(y && z / y != x) [[unlikely]]
   57|       |#endif
   58|      0|   {
   59|      0|      return std::nullopt;
   60|      0|   }
   61|   275k|   return z;
   62|   275k|}
_ZN5Botan11checked_addEmmPKci:
   30|   149k|inline size_t checked_add(size_t x, size_t y, const char* file, int line) {
   31|   149k|#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_add_overflow)
   32|   149k|   size_t z;
   33|   149k|   if(__builtin_add_overflow(x, y, &z)) [[unlikely]]
  ------------------
  |  Branch (33:7): [True: 0, False: 149k]
  ------------------
   34|       |#elif defined(_MSC_VER)
   35|       |   size_t z;
   36|       |   if(SizeTAdd(x, y, &z) != S_OK) [[unlikely]]
   37|       |#else
   38|       |   size_t z = x + y;
   39|       |   if(z < x) [[unlikely]]
   40|       |#endif
   41|      0|   {
   42|      0|      throw Integer_Overflow_Detected(file, line);
   43|      0|   }
   44|   149k|   return z;
   45|   149k|}

_ZN5Botan9SIMD_4x32C2EDv2_x:
  605|      2|      explicit SIMD_4x32(native_simd_type x) noexcept : m_simd(x) {}
_ZN5Botan9SIMD_4x32C2Ejjjj:
  113|     96|      SIMD_4x32(uint32_t B0, uint32_t B1, uint32_t B2, uint32_t B3) noexcept {
  114|     96|#if defined(BOTAN_SIMD_USE_SSE2)
  115|     96|         m_simd = _mm_set_epi32(B3, B2, B1, B0);
  116|       |#elif defined(BOTAN_SIMD_USE_ALTIVEC)
  117|       |         __vector unsigned int val = {B0, B1, B2, B3};
  118|       |         m_simd = val;
  119|       |#elif defined(BOTAN_SIMD_USE_NEON)
  120|       |         // Better way to do this?
  121|       |         const uint32_t B[4] = {B0, B1, B2, B3};
  122|       |         m_simd = vld1q_u32(B);
  123|       |#endif
  124|     96|      }
_ZN5Botan9SIMD_4x328splat_u8Eh:
  142|      2|      static SIMD_4x32 splat_u8(uint8_t B) noexcept {
  143|      2|#if defined(BOTAN_SIMD_USE_SSE2)
  144|      2|         return SIMD_4x32(_mm_set1_epi8(B));
  145|       |#elif defined(BOTAN_SIMD_USE_NEON)
  146|       |         return SIMD_4x32(vreinterpretq_u32_u8(vdupq_n_u8(B)));
  147|       |#else
  148|       |         const uint32_t B4 = make_uint32(B, B, B, B);
  149|       |         return SIMD_4x32(B4, B4, B4, B4);
  150|       |#endif
  151|      2|      }

_ZN5Botan15multimap_insertINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES7_EEvRNS1_8multimapIT_T0_NS1_4lessIS9_EENS5_INS1_4pairIKS9_SA_EEEEEERSE_RKSA_:
   81|  1.63k|void multimap_insert(std::multimap<K, V>& multimap, const K& key, const V& value) {
   82|  1.63k|   multimap.insert(std::make_pair(key, value));
   83|  1.63k|}
_ZN5Botan15multimap_insertINS_3OIDENS_11ASN1_StringEEEvRNSt3__18multimapIT_T0_NS3_4lessIS5_EENS3_9allocatorINS3_4pairIKS5_S6_EEEEEERSB_RKS6_:
   81|  2.05k|void multimap_insert(std::multimap<K, V>& multimap, const K& key, const V& value) {
   82|  2.05k|   multimap.insert(std::make_pair(key, value));
   83|  2.05k|}

_ZN5Botan13typecast_copyImEEvPT_PKhm:
  140|  11.9k|{
  141|  11.9k|   std::memcpy(out, in, sizeof(T) * N);
  142|  11.9k|}
_ZN5Botan13typecast_copyImEEvPhPT_m:
  133|  6.14k|{
  134|  6.14k|   std::memcpy(out, in, sizeof(T) * N);
  135|  6.14k|}
_ZN5Botan11clear_bytesEPvm:
   92|  7.52k|inline constexpr void clear_bytes(void* ptr, size_t bytes) {
   93|  7.52k|   if(bytes > 0) {
  ------------------
  |  Branch (93:7): [True: 123, False: 7.39k]
  ------------------
   94|    123|      std::memset(ptr, 0, bytes);
   95|    123|   }
   96|  7.52k|}
_ZN5Botan22cast_uint8_ptr_to_charEPKh:
  179|  23.1k|inline const char* cast_uint8_ptr_to_char(const uint8_t* b) { return reinterpret_cast<const char*>(b); }
_ZN5Botan9clear_memIhEEvPT_m:
  109|    192|inline constexpr void clear_mem(T* ptr, size_t n) {
  110|    192|   clear_bytes(ptr, sizeof(T) * n);
  111|    192|}
_ZN5Botan8copy_memIhEEvPT_PKS1_m:
  122|  2.90M|{
  123|  2.90M|   BOTAN_ASSERT_IMPLICATION(n > 0, in != nullptr && out != nullptr, "If n > 0 then args are not null");
  ------------------
  |  |   78|  2.90M|   do {                                                                                          \
  |  |   79|  5.69M|      if((expr1) && !(expr2))                                                                    \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 2.84M, False: 61.5k]
  |  |  |  Branch (79:23): [True: 2.84M, False: 0]
  |  |  |  Branch (79:23): [True: 2.84M, False: 0]
  |  |  ------------------
  |  |   80|  2.90M|         Botan::assertion_failure(#expr1 " implies " #expr2, msg, __func__, __FILE__, __LINE__); \
  |  |   81|  2.90M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (81:12): [Folded - Ignored]
  |  |  ------------------
  ------------------
  124|       |
  125|  2.90M|   if(in != nullptr && out != nullptr && n > 0) {
  ------------------
  |  Branch (125:7): [True: 2.90M, False: 5.47k]
  |  Branch (125:24): [True: 2.87M, False: 26.5k]
  |  Branch (125:42): [True: 2.84M, False: 29.4k]
  ------------------
  126|  2.84M|      std::memmove(out, in, sizeof(T) * n);
  127|  2.84M|   }
  128|  2.90M|}
_ZN5Botan13typecast_copyItEEvPT_PKhm:
  140|  4.82k|{
  141|  4.82k|   std::memcpy(out, in, sizeof(T) * N);
  142|  4.82k|}
_ZN5Botan13typecast_copyItEEvRT_PKh:
  152|  4.82k|{
  153|  4.82k|   typecast_copy(&out, in, 1);
  154|  4.82k|}
_ZN5Botan13typecast_copyIjEEvPT_PKhm:
  140|  1.37k|{
  141|  1.37k|   std::memcpy(out, in, sizeof(T) * N);
  142|  1.37k|}
_ZN5Botan13typecast_copyIjEEvRT_PKh:
  152|  1.37k|{
  153|  1.37k|   typecast_copy(&out, in, 1);
  154|  1.37k|}
_ZN5Botan13typecast_copyImEEvRT_PKh:
  152|  11.9k|{
  153|  11.9k|   typecast_copy(&out, in, 1);
  154|  11.9k|}
_ZN5Botan13typecast_copyIjEEvPhPT_m:
  133|    917|{
  134|    917|   std::memcpy(out, in, sizeof(T) * N);
  135|    917|}
_ZN5Botan13typecast_copyIjEEvPhT_:
  145|    917|inline constexpr void typecast_copy(uint8_t out[], T in) {
  146|    917|   typecast_copy(out, &in, 1);
  147|    917|}
_ZN5Botan13typecast_copyImEEvPhT_:
  145|  6.14k|inline constexpr void typecast_copy(uint8_t out[], T in) {
  146|  6.14k|   typecast_copy(out, &in, 1);
  147|  6.14k|}
_ZN5Botan9clear_memImEEvPT_m:
  109|  7.32k|inline constexpr void clear_mem(T* ptr, size_t n) {
  110|  7.32k|   clear_bytes(ptr, sizeof(T) * n);
  111|  7.32k|}
_ZN5Botan8copy_memIiEEvPT_PKS1_m:
  122|  1.53k|{
  123|  1.53k|   BOTAN_ASSERT_IMPLICATION(n > 0, in != nullptr && out != nullptr, "If n > 0 then args are not null");
  ------------------
  |  |   78|  1.53k|   do {                                                                                          \
  |  |   79|  3.07k|      if((expr1) && !(expr2))                                                                    \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 1.53k, False: 0]
  |  |  |  Branch (79:23): [True: 1.53k, False: 0]
  |  |  |  Branch (79:23): [True: 1.53k, False: 0]
  |  |  ------------------
  |  |   80|  1.53k|         Botan::assertion_failure(#expr1 " implies " #expr2, msg, __func__, __FILE__, __LINE__); \
  |  |   81|  1.53k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (81:12): [Folded - Ignored]
  |  |  ------------------
  ------------------
  124|       |
  125|  1.53k|   if(in != nullptr && out != nullptr && n > 0) {
  ------------------
  |  Branch (125:7): [True: 1.53k, False: 0]
  |  Branch (125:24): [True: 1.53k, False: 0]
  |  Branch (125:42): [True: 1.53k, False: 0]
  ------------------
  126|  1.53k|      std::memmove(out, in, sizeof(T) * n);
  127|  1.53k|   }
  128|  1.53k|}

_ZN5Botan15Key_ConstraintsC2ENS0_4BitsE:
  139|  1.13k|      Key_Constraints(Key_Constraints::Bits bits) : m_value(bits) {}
_ZN5Botan15Key_ConstraintsC2Ej:
  141|    198|      explicit Key_Constraints(uint32_t bits) : m_value(bits) {}

_ZN5Botan7X509_DNC2Ev:
   37|  5.38k|      X509_DN() = default;
_ZN5Botan10ExtensionsC2Ev:
  513|  8.22k|      Extensions() {}
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension10CRL_NumberEEEPKT_RKNS_3OIDE:
  393|    740|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  394|    740|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (394:42): [True: 19, False: 721]
  ------------------
  395|       |            // Unknown_Extension oid_name is empty
  396|     19|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (396:16): [True: 8, False: 11]
  ------------------
  397|      8|               return nullptr;
  398|     11|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (398:32): [True: 11, False: 0]
  ------------------
  399|     11|               return extn_as_T;
  400|     11|            } else {
  401|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  402|      0|            }
  403|     19|         }
  404|       |
  405|    721|         return nullptr;
  406|    740|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension16Authority_Key_IDEEEPKT_RKNS_3OIDE:
  393|    740|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  394|    740|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (394:42): [True: 33, False: 707]
  ------------------
  395|       |            // Unknown_Extension oid_name is empty
  396|     33|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (396:16): [True: 26, False: 7]
  ------------------
  397|     26|               return nullptr;
  398|     26|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (398:32): [True: 7, False: 0]
  ------------------
  399|      7|               return extn_as_T;
  400|      7|            } else {
  401|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  402|      0|            }
  403|     33|         }
  404|       |
  405|    707|         return nullptr;
  406|    740|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension30CRL_Issuing_Distribution_PointEEEPKT_RKNS_3OIDE:
  393|    740|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  394|    740|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (394:42): [True: 291, False: 449]
  ------------------
  395|       |            // Unknown_Extension oid_name is empty
  396|    291|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (396:16): [True: 55, False: 236]
  ------------------
  397|     55|               return nullptr;
  398|    236|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (398:32): [True: 236, False: 0]
  ------------------
  399|    236|               return extn_as_T;
  400|    236|            } else {
  401|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  402|      0|            }
  403|    291|         }
  404|       |
  405|    449|         return nullptr;
  406|    740|      }
_ZNK5Botan7X509_DN7dn_infoEv:
   66|  1.85k|      const std::vector<std::pair<OID, ASN1_String>>& dn_info() const { return m_rdn; }
_ZN5Botan14GeneralSubtreeC2Ev:
  242|  2.73k|      GeneralSubtree() : m_base(), m_minimum(0), m_maximum(std::numeric_limits<std::size_t>::max()) {}
_ZN5Botan15NameConstraintsC2Ev:
  295|  2.46k|      NameConstraints() : m_permitted_subtrees(), m_excluded_subtrees() {}
_ZN5Botan15NameConstraintsC2EONSt3__16vectorINS_14GeneralSubtreeENS1_9allocatorIS3_EEEES7_:
  304|    419|            m_permitted_subtrees(permitted_subtrees), m_excluded_subtrees(excluded_subtrees) {}
_ZN5Botan10Extensions15Extensions_InfoC2EbRKNSt3__16vectorIhNS2_9allocatorIhEEEENS2_10unique_ptrINS_21Certificate_ExtensionENS2_14default_deleteISA_EEEE:
  534|  19.6k|                  m_obj(std::move(ext)), m_bits(encoding), m_critical(critical) {}
_ZNK5Botan10Extensions15Extensions_Info3objEv:
  540|  1.18k|            const Certificate_Extension& obj() const {
  541|  1.18k|               BOTAN_ASSERT_NONNULL(m_obj.get());
  ------------------
  |  |   87|  1.18k|   do {                                                                                   \
  |  |   88|  1.18k|      if((ptr) == nullptr)                                                                \
  |  |  ------------------
  |  |  |  Branch (88:10): [True: 0, False: 1.18k]
  |  |  ------------------
  |  |   89|  1.18k|         Botan::assertion_failure(#ptr " is not null", "", __func__, __FILE__, __LINE__); \
  |  |   90|  1.18k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (90:12): [Folded - Ignored]
  |  |  ------------------
  ------------------
  542|  1.18k|               return *m_obj.get();
  543|  1.18k|            }
_ZN5Botan21Certificate_ExtensionD2Ev:
  367|  31.1k|      virtual ~Certificate_Extension() = default;
_ZN5Botan11GeneralNameC2Ev:
  190|  2.73k|      GeneralName() = default;
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension14CRL_ReasonCodeEEEPKT_RKNS_3OIDE:
  393|  3.36k|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  394|  3.36k|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (394:42): [True: 841, False: 2.52k]
  ------------------
  395|       |            // Unknown_Extension oid_name is empty
  396|    841|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (396:16): [True: 641, False: 200]
  ------------------
  397|    641|               return nullptr;
  398|    641|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (398:32): [True: 200, False: 0]
  ------------------
  399|    200|               return extn_as_T;
  400|    200|            } else {
  401|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  402|      0|            }
  403|    841|         }
  404|       |
  405|  2.52k|         return nullptr;
  406|  3.36k|      }

_ZN5Botan16secure_allocatorIhE8allocateEm:
   45|   268k|      T* allocate(std::size_t n) { return static_cast<T*>(allocate_memory(n, sizeof(T))); }
_ZN5Botan16secure_allocatorIhE10deallocateEPhm:
   47|   268k|      void deallocate(T* p, std::size_t n) { deallocate_memory(p, n, sizeof(T)); }
_ZN5BotanneIhhEEbRKNS_16secure_allocatorIT_EERKNS1_IT0_EE:
   56|  83.2k|inline bool operator!=(const secure_allocator<T>&, const secure_allocator<U>&) {
   57|  83.2k|   return false;
   58|  83.2k|}
_ZN5Botan16secure_allocatorImE10deallocateEPmm:
   47|  6.79k|      void deallocate(T* p, std::size_t n) { deallocate_memory(p, n, sizeof(T)); }
_ZN5Botan16secure_allocatorImE8allocateEm:
   45|  6.79k|      T* allocate(std::size_t n) { return static_cast<T*>(allocate_memory(n, sizeof(T))); }
_ZN5BotanpLIhNS_16secure_allocatorIhEEmEERNSt3__16vectorIT_T0_EES8_RKNS3_4pairIPS5_T1_EE:
   98|  14.4k|std::vector<T, Alloc>& operator+=(std::vector<T, Alloc>& out, const std::pair<T*, L>& in) {
   99|  14.4k|   out.insert(out.end(), in.first, in.first + in.second);
  100|  14.4k|   return out;
  101|  14.4k|}

_ZN5Botan9CRL_EntryC2Ev:
   59|  5.23k|      CRL_Entry() = default;

_ZN5Botan14Cert_Extension10CRL_Number10static_oidEv:
  349|  16.1k|      static OID static_oid() { return OID("2.5.29.20"); }
_ZN5Botan14Cert_Extension16Authority_Key_ID10static_oidEv:
  128|  13.9k|      static OID static_oid() { return OID("2.5.29.35"); }
_ZNK5Botan14Cert_Extension16Authority_Key_ID10get_key_idEv:
  126|      7|      const std::vector<uint8_t>& get_key_id() const { return m_key_id; }
_ZN5Botan14Cert_Extension30CRL_Issuing_Distribution_Point10static_oidEv:
  455|  8.68k|      static OID static_oid() { return OID("2.5.29.28"); }
_ZNK5Botan14Cert_Extension30CRL_Issuing_Distribution_Point9get_pointEv:
  453|    236|      const AlternativeName& get_point() const { return m_distribution_point.point(); }
_ZNK5Botan14Cert_Extension23CRL_Distribution_Points18Distribution_Point5pointEv:
  404|    598|            const AlternativeName& point() const { return m_point; }
_ZN5Botan14Cert_Extension17Basic_ConstraintsC2Ebm:
   31|    959|      Basic_Constraints(bool ca = false, size_t limit = 0) : m_is_ca(ca), m_path_limit(limit) {}
_ZN5Botan14Cert_Extension17Basic_Constraints10static_oidEv:
   37|  16.3k|      static OID static_oid() { return OID("2.5.29.19"); }
_ZN5Botan14Cert_Extension9Key_UsageC2Ev:
   62|  1.13k|      explicit Key_Usage() : m_constraints(Key_Constraints::None) {}
_ZN5Botan14Cert_Extension9Key_Usage10static_oidEv:
   66|  18.8k|      static OID static_oid() { return OID("2.5.29.15"); }
_ZN5Botan14Cert_Extension14Subject_Key_ID10static_oidEv:
   98|  19.6k|      static OID static_oid() { return OID("2.5.29.14"); }
_ZNK5Botan14Cert_Extension16Authority_Key_ID8oid_nameEv:
  133|      7|      std::string oid_name() const override { return "X509v3.AuthorityKeyIdentifier"; }
_ZN5Botan14Cert_Extension24Subject_Alternative_Name10static_oidEv:
  150|  17.6k|      static OID static_oid() { return OID("2.5.29.17"); }
_ZN5Botan14Cert_Extension24Subject_Alternative_NameC2ERKNS_15AlternativeNameE:
  158|    691|      explicit Subject_Alternative_Name(const AlternativeName& name = AlternativeName()) : m_alt_name(name) {}
_ZN5Botan14Cert_Extension23Issuer_Alternative_Name10static_oidEv:
  178|  16.9k|      static OID static_oid() { return OID("2.5.29.18"); }
_ZN5Botan14Cert_Extension23Issuer_Alternative_NameC2ERKNS_15AlternativeNameE:
  186|    645|      explicit Issuer_Alternative_Name(const AlternativeName& name = AlternativeName()) : m_alt_name(name) {}
_ZN5Botan14Cert_Extension18Extended_Key_Usage10static_oidEv:
  214|  5.65k|      static OID static_oid() { return OID("2.5.29.37"); }
_ZN5Botan14Cert_Extension16Name_Constraints10static_oidEv:
  250|  12.5k|      static OID static_oid() { return OID("2.5.29.30"); }
_ZN5Botan14Cert_Extension20Certificate_Policies10static_oidEv:
  280|  7.30k|      static OID static_oid() { return OID("2.5.29.32"); }
_ZN5Botan14Cert_Extension28Authority_Information_Access10static_oidEv:
  318|  5.06k|      static OID static_oid() { return OID("1.3.6.1.5.5.7.1.1"); }
_ZN5Botan14Cert_Extension10CRL_NumberC2Ev:
  343|    944|      CRL_Number() : m_has_value(false), m_crl_number(0) {}
_ZNK5Botan14Cert_Extension10CRL_Number8oid_nameEv:
  354|     11|      std::string oid_name() const override { return "X509v3.CRLNumber"; }
_ZN5Botan14Cert_Extension14CRL_ReasonCodeC2ENS_8CRL_CodeE:
  374|  1.24k|      explicit CRL_ReasonCode(CRL_Code r = CRL_Code::Unspecified) : m_reason(r) {}
_ZNK5Botan14Cert_Extension14CRL_ReasonCode10get_reasonEv:
  376|    200|      CRL_Code get_reason() const { return m_reason; }
_ZN5Botan14Cert_Extension14CRL_ReasonCode10static_oidEv:
  378|  17.8k|      static OID static_oid() { return OID("2.5.29.21"); }
_ZNK5Botan14Cert_Extension14CRL_ReasonCode8oid_nameEv:
  383|    200|      std::string oid_name() const override { return "X509v3.ReasonCode"; }
_ZN5Botan14Cert_Extension23CRL_Distribution_Points10static_oidEv:
  422|  10.0k|      static OID static_oid() { return OID("2.5.29.31"); }
_ZNK5Botan14Cert_Extension30CRL_Issuing_Distribution_Point8oid_nameEv:
  460|    236|      std::string oid_name() const override { return "X509v3.CRLIssuingDistributionPoint"; }
_ZN5Botan14Cert_Extension17Unknown_ExtensionC2ERKNS_3OIDEb:
  507|  16.3k|      Unknown_Extension(const OID& oid, bool critical) : m_oid(oid), m_critical(critical) {}
_ZNK5Botan14Cert_Extension17Unknown_Extension8oid_nameEv:
  541|    730|      std::string oid_name() const override { return ""; }
_ZN5Botan14Cert_Extension14Subject_Key_IDC2Ev:
   86|    818|      Subject_Key_ID() = default;
_ZN5Botan14Cert_Extension16Authority_Key_IDC2Ev:
  122|    681|      Authority_Key_ID() = default;
_ZN5Botan14Cert_Extension16Name_ConstraintsC2Ev:
  238|  2.46k|      Name_Constraints() = default;
_ZN5Botan14Cert_Extension23CRL_Distribution_PointsC2Ev:
  414|  2.10k|      CRL_Distribution_Points() = default;
_ZN5Botan14Cert_Extension30CRL_Issuing_Distribution_PointC2Ev:
  444|    639|      CRL_Issuing_Distribution_Point() = default;
_ZN5Botan14Cert_Extension20Certificate_PoliciesC2Ev:
  274|  1.65k|      Certificate_Policies() = default;
_ZN5Botan14Cert_Extension18Extended_Key_UsageC2Ev:
  208|    592|      Extended_Key_Usage() = default;
_ZN5Botan14Cert_Extension28Authority_Information_AccessC2Ev:
  310|    240|      Authority_Information_Access() = default;

_ZN5Botan11X509_ObjectD2Ev:
  103|  4.21k|      virtual ~X509_Object() = default;
_ZNK5Botan11X509_Object11signed_bodyEv:
   42|  2.98k|      const std::vector<uint8_t>& signed_body() const { return m_tbs_bits; }
_ZNK5Botan11X509_Object19signature_algorithmEv:
   47|  2.98k|      const AlgorithmIdentifier& signature_algorithm() const { return m_sig_algo; }
_ZN5Botan11X509_ObjectC2Ev:
  121|  4.21k|      X509_Object() = default;

_Z4fuzzPKhm:
   12|  4.21k|void fuzz(const uint8_t in[], size_t len) {
   13|  4.21k|   try {
   14|  4.21k|      Botan::DataSource_Memory input(in, len);
   15|  4.21k|      Botan::X509_CRL crl(input);
   16|  4.21k|   } catch(Botan::Exception& e) {}
   17|  4.21k|}

LLVMFuzzerInitialize:
   24|      2|extern "C" int LLVMFuzzerInitialize(int*, char***) {
   25|       |   /*
   26|       |   * This disables the mlock pool, as overwrites within the pool are
   27|       |   * opaque to ASan or other instrumentation.
   28|       |   */
   29|      2|   ::setenv("BOTAN_MLOCK_POOL_SIZE", "0", 1);
   30|      2|   return 0;
   31|      2|}
LLVMFuzzerTestOneInput:
   34|  4.22k|extern "C" int LLVMFuzzerTestOneInput(const uint8_t in[], size_t len) {
   35|  4.22k|   if(len <= max_fuzzer_input_size) {
  ------------------
  |  Branch (35:7): [True: 4.21k, False: 9]
  ------------------
   36|  4.21k|      fuzz(in, len);
   37|  4.21k|   }
   38|  4.22k|   return 0;
   39|  4.22k|}

_ZNK5Botan19AlgorithmIdentifier19parameters_are_nullEv:
   50|  1.03k|bool AlgorithmIdentifier::parameters_are_null() const {
   51|  1.03k|   return (m_parameters.size() == 2 && (m_parameters[0] == 0x05) && (m_parameters[1] == 0x00));
  ------------------
  |  Branch (51:12): [True: 942, False: 95]
  |  Branch (51:40): [True: 844, False: 98]
  |  Branch (51:69): [True: 829, False: 15]
  ------------------
   52|  1.03k|}
_ZN5BotaneqERKNS_19AlgorithmIdentifierES2_:
   54|  2.51k|bool operator==(const AlgorithmIdentifier& a1, const AlgorithmIdentifier& a2) {
   55|  2.51k|   if(a1.oid() != a2.oid()) {
  ------------------
  |  Branch (55:7): [True: 22, False: 2.49k]
  ------------------
   56|     22|      return false;
   57|     22|   }
   58|       |
   59|       |   /*
   60|       |   * Treat NULL and empty as equivalent
   61|       |   */
   62|  2.49k|   if(a1.parameters_are_null_or_empty() && a2.parameters_are_null_or_empty()) {
  ------------------
  |  Branch (62:7): [True: 2.31k, False: 179]
  |  Branch (62:44): [True: 2.28k, False: 29]
  ------------------
   63|  2.28k|      return true;
   64|  2.28k|   }
   65|       |
   66|    208|   return (a1.parameters() == a2.parameters());
   67|  2.49k|}
_ZN5BotanneERKNS_19AlgorithmIdentifierES2_:
   69|  2.51k|bool operator!=(const AlgorithmIdentifier& a1, const AlgorithmIdentifier& a2) { return !(a1 == a2); }
_ZN5Botan19AlgorithmIdentifier11decode_fromERNS_11BER_DecoderE:
   81|  5.95k|void AlgorithmIdentifier::decode_from(BER_Decoder& codec) {
   82|  5.95k|   codec.start_sequence().decode(m_oid).raw_bytes(m_parameters).end_cons();
   83|  5.95k|}

_ZNK5Botan10BER_Object11assert_is_aENS_9ASN1_TypeENS_10ASN1_ClassENSt3__117basic_string_viewIcNS3_11char_traitsIcEEEE:
   28|   111k|void BER_Object::assert_is_a(ASN1_Type expected_type_tag, ASN1_Class expected_class_tag, std::string_view descr) const {
   29|   111k|   if(this->is_a(expected_type_tag, expected_class_tag) == false) {
  ------------------
  |  Branch (29:7): [True: 6.58k, False: 105k]
  ------------------
   30|  6.58k|      std::stringstream msg;
   31|       |
   32|  6.58k|      msg << "Tag mismatch when decoding " << descr << " got ";
   33|       |
   34|  6.58k|      if(m_class_tag == ASN1_Class::NoObject && m_type_tag == ASN1_Type::NoObject) {
  ------------------
  |  Branch (34:10): [True: 627, False: 5.95k]
  |  Branch (34:49): [True: 627, False: 0]
  ------------------
   35|    627|         msg << "EOF";
   36|  5.95k|      } else {
   37|  5.95k|         if(m_class_tag == ASN1_Class::Universal || m_class_tag == ASN1_Class::Constructed) {
  ------------------
  |  Branch (37:13): [True: 1.66k, False: 4.28k]
  |  Branch (37:53): [True: 2.96k, False: 1.32k]
  ------------------
   38|  4.63k|            msg << asn1_tag_to_string(m_type_tag);
   39|  4.63k|         } else {
   40|  1.32k|            msg << std::to_string(static_cast<uint32_t>(m_type_tag));
   41|  1.32k|         }
   42|       |
   43|  5.95k|         msg << "/" << asn1_class_to_string(m_class_tag);
   44|  5.95k|      }
   45|       |
   46|  6.58k|      msg << " expected ";
   47|       |
   48|  6.58k|      if(expected_class_tag == ASN1_Class::Universal || expected_class_tag == ASN1_Class::Constructed) {
  ------------------
  |  Branch (48:10): [True: 2.25k, False: 4.32k]
  |  Branch (48:57): [True: 4.17k, False: 151]
  ------------------
   49|  6.43k|         msg << asn1_tag_to_string(expected_type_tag);
   50|  6.43k|      } else {
   51|    151|         msg << std::to_string(static_cast<uint32_t>(expected_type_tag));
   52|    151|      }
   53|       |
   54|  6.58k|      msg << "/" << asn1_class_to_string(expected_class_tag);
   55|       |
   56|  6.58k|      throw BER_Decoding_Error(msg.str());
   57|  6.58k|   }
   58|   111k|}
_ZNK5Botan10BER_Object4is_aENS_9ASN1_TypeENS_10ASN1_ClassE:
   60|   269k|bool BER_Object::is_a(ASN1_Type expected_type_tag, ASN1_Class expected_class_tag) const {
   61|   269k|   return (m_type_tag == expected_type_tag && m_class_tag == expected_class_tag);
  ------------------
  |  Branch (61:12): [True: 133k, False: 135k]
  |  Branch (61:47): [True: 130k, False: 3.93k]
  ------------------
   62|   269k|}
_ZNK5Botan10BER_Object4is_aEiNS_10ASN1_ClassE:
   64|   127k|bool BER_Object::is_a(int expected_type_tag, ASN1_Class expected_class_tag) const {
   65|   127k|   return is_a(ASN1_Type(expected_type_tag), expected_class_tag);
   66|   127k|}
_ZN5Botan10BER_Object11set_taggingENS_9ASN1_TypeENS_10ASN1_ClassE:
   68|   227k|void BER_Object::set_tagging(ASN1_Type type_tag, ASN1_Class class_tag) {
   69|   227k|   m_type_tag = type_tag;
   70|   227k|   m_class_tag = class_tag;
   71|   227k|}
_ZN5Botan20asn1_class_to_stringENS_10ASN1_ClassE:
   73|  12.5k|std::string asn1_class_to_string(ASN1_Class type) {
   74|  12.5k|   switch(type) {
   75|  3.92k|      case ASN1_Class::Universal:
  ------------------
  |  Branch (75:7): [True: 3.92k, False: 8.61k]
  ------------------
   76|  3.92k|         return "UNIVERSAL";
   77|  7.13k|      case ASN1_Class::Constructed:
  ------------------
  |  Branch (77:7): [True: 7.13k, False: 5.40k]
  ------------------
   78|  7.13k|         return "CONSTRUCTED";
   79|    501|      case ASN1_Class::ContextSpecific:
  ------------------
  |  Branch (79:7): [True: 501, False: 12.0k]
  ------------------
   80|    501|         return "CONTEXT_SPECIFIC";
   81|    234|      case ASN1_Class::Application:
  ------------------
  |  Branch (81:7): [True: 234, False: 12.3k]
  ------------------
   82|    234|         return "APPLICATION";
   83|    185|      case ASN1_Class::Private:
  ------------------
  |  Branch (83:7): [True: 185, False: 12.3k]
  ------------------
   84|    185|         return "PRIVATE";
   85|      0|      case ASN1_Class::NoObject:
  ------------------
  |  Branch (85:7): [True: 0, False: 12.5k]
  ------------------
   86|      0|         return "NO_OBJECT";
   87|    556|      default:
  ------------------
  |  Branch (87:7): [True: 556, False: 11.9k]
  ------------------
   88|    556|         return "CLASS(" + std::to_string(static_cast<size_t>(type)) + ")";
   89|  12.5k|   }
   90|  12.5k|}
_ZN5Botan18asn1_tag_to_stringENS_9ASN1_TypeE:
   92|  11.0k|std::string asn1_tag_to_string(ASN1_Type type) {
   93|  11.0k|   switch(type) {
   94|  4.23k|      case ASN1_Type::Sequence:
  ------------------
  |  Branch (94:7): [True: 4.23k, False: 6.82k]
  ------------------
   95|  4.23k|         return "SEQUENCE";
   96|       |
   97|    507|      case ASN1_Type::Set:
  ------------------
  |  Branch (97:7): [True: 507, False: 10.5k]
  ------------------
   98|    507|         return "SET";
   99|       |
  100|    259|      case ASN1_Type::PrintableString:
  ------------------
  |  Branch (100:7): [True: 259, False: 10.8k]
  ------------------
  101|    259|         return "PRINTABLE STRING";
  102|       |
  103|    186|      case ASN1_Type::NumericString:
  ------------------
  |  Branch (103:7): [True: 186, False: 10.8k]
  ------------------
  104|    186|         return "NUMERIC STRING";
  105|       |
  106|    262|      case ASN1_Type::Ia5String:
  ------------------
  |  Branch (106:7): [True: 262, False: 10.8k]
  ------------------
  107|    262|         return "IA5 STRING";
  108|       |
  109|    307|      case ASN1_Type::TeletexString:
  ------------------
  |  Branch (109:7): [True: 307, False: 10.7k]
  ------------------
  110|    307|         return "T61 STRING";
  111|       |
  112|    241|      case ASN1_Type::Utf8String:
  ------------------
  |  Branch (112:7): [True: 241, False: 10.8k]
  ------------------
  113|    241|         return "UTF8 STRING";
  114|       |
  115|    135|      case ASN1_Type::VisibleString:
  ------------------
  |  Branch (115:7): [True: 135, False: 10.9k]
  ------------------
  116|    135|         return "VISIBLE STRING";
  117|       |
  118|    121|      case ASN1_Type::BmpString:
  ------------------
  |  Branch (118:7): [True: 121, False: 10.9k]
  ------------------
  119|    121|         return "BMP STRING";
  120|       |
  121|    147|      case ASN1_Type::UniversalString:
  ------------------
  |  Branch (121:7): [True: 147, False: 10.9k]
  ------------------
  122|    147|         return "UNIVERSAL STRING";
  123|       |
  124|    186|      case ASN1_Type::UtcTime:
  ------------------
  |  Branch (124:7): [True: 186, False: 10.8k]
  ------------------
  125|    186|         return "UTC TIME";
  126|       |
  127|    231|      case ASN1_Type::GeneralizedTime:
  ------------------
  |  Branch (127:7): [True: 231, False: 10.8k]
  ------------------
  128|    231|         return "GENERALIZED TIME";
  129|       |
  130|    679|      case ASN1_Type::OctetString:
  ------------------
  |  Branch (130:7): [True: 679, False: 10.3k]
  ------------------
  131|    679|         return "OCTET STRING";
  132|       |
  133|    584|      case ASN1_Type::BitString:
  ------------------
  |  Branch (133:7): [True: 584, False: 10.4k]
  ------------------
  134|    584|         return "BIT STRING";
  135|       |
  136|    834|      case ASN1_Type::Enumerated:
  ------------------
  |  Branch (136:7): [True: 834, False: 10.2k]
  ------------------
  137|    834|         return "ENUMERATED";
  138|       |
  139|    577|      case ASN1_Type::Integer:
  ------------------
  |  Branch (139:7): [True: 577, False: 10.4k]
  ------------------
  140|    577|         return "INTEGER";
  141|       |
  142|    159|      case ASN1_Type::Null:
  ------------------
  |  Branch (142:7): [True: 159, False: 10.9k]
  ------------------
  143|    159|         return "NULL";
  144|       |
  145|    257|      case ASN1_Type::ObjectId:
  ------------------
  |  Branch (145:7): [True: 257, False: 10.8k]
  ------------------
  146|    257|         return "OBJECT";
  147|       |
  148|    229|      case ASN1_Type::Boolean:
  ------------------
  |  Branch (148:7): [True: 229, False: 10.8k]
  ------------------
  149|    229|         return "BOOLEAN";
  150|       |
  151|     43|      case ASN1_Type::NoObject:
  ------------------
  |  Branch (151:7): [True: 43, False: 11.0k]
  ------------------
  152|     43|         return "NO_OBJECT";
  153|       |
  154|    880|      default:
  ------------------
  |  Branch (154:7): [True: 880, False: 10.1k]
  ------------------
  155|    880|         return "TAG(" + std::to_string(static_cast<uint32_t>(type)) + ")";
  156|  11.0k|   }
  157|  11.0k|}
_ZN5Botan18BER_Decoding_ErrorC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  162|  12.5k|BER_Decoding_Error::BER_Decoding_Error(std::string_view str) : Decoding_Error(fmt("BER: {}", str)) {}
_ZN5Botan11BER_Bad_TagC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEj:
  164|    342|BER_Bad_Tag::BER_Bad_Tag(std::string_view str, uint32_t tagging) : BER_Decoding_Error(fmt("{}: {}", str, tagging)) {}
_ZN5Botan4ASN19to_stringERKNS_10BER_ObjectE:
  184|  23.1k|std::string to_string(const BER_Object& obj) { return std::string(cast_uint8_ptr_to_char(obj.bits()), obj.length()); }
_ZN5Botan4ASN19maybe_BERERNS_10DataSourceE:
  189|  4.21k|bool maybe_BER(DataSource& source) {
  190|  4.21k|   uint8_t first_u8;
  191|  4.21k|   if(!source.peek_byte(first_u8)) {
  ------------------
  |  Branch (191:7): [True: 0, False: 4.21k]
  ------------------
  192|      0|      BOTAN_ASSERT_EQUAL(source.read_byte(first_u8), 0, "Expected EOF");
  ------------------
  |  |   69|      0|   do {                                                                                                \
  |  |   70|      0|      if((expr1) != (expr2))                                                                           \
  |  |  ------------------
  |  |  |  Branch (70:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   71|      0|         Botan::assertion_failure(#expr1 " == " #expr2, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   72|      0|   } while(0)
  |  |  ------------------
  |  |  |  Branch (72:12): [Folded - Ignored]
  |  |  ------------------
  ------------------
  193|      0|      throw Stream_IO_Error("ASN1::maybe_BER: Source was empty");
  194|      0|   }
  195|       |
  196|  4.21k|   const auto cons_seq = static_cast<uint8_t>(ASN1_Class::Constructed) | static_cast<uint8_t>(ASN1_Type::Sequence);
  197|  4.21k|   if(first_u8 == cons_seq) {
  ------------------
  |  Branch (197:7): [True: 3.86k, False: 354]
  ------------------
  198|  3.86k|      return true;
  199|  3.86k|   }
  200|    354|   return false;
  201|  4.21k|}

_ZN5Botan3OID11from_stringENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   72|  1.36k|OID OID::from_string(std::string_view str) {
   73|  1.36k|   if(str.empty()) {
  ------------------
  |  Branch (73:7): [True: 0, False: 1.36k]
  ------------------
   74|      0|      throw Invalid_Argument("OID::from_string argument must be non-empty");
   75|      0|   }
   76|       |
   77|  1.36k|   OID o = OID_Map::global_registry().str2oid(str);
   78|  1.36k|   if(o.has_value()) {
  ------------------
  |  Branch (78:7): [True: 1.36k, False: 0]
  ------------------
   79|  1.36k|      return o;
   80|  1.36k|   }
   81|       |
   82|      0|   std::vector<uint32_t> raw = parse_oid_str(str);
   83|       |
   84|      0|   if(!raw.empty()) {
  ------------------
  |  Branch (84:7): [True: 0, False: 0]
  ------------------
   85|      0|      return OID(std::move(raw));
   86|      0|   }
   87|       |
   88|      0|   throw Lookup_Error(fmt("No OID associated with name '{}'", str));
   89|      0|}
_ZN5Botan3OIDC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   94|   186k|OID::OID(std::string_view oid_str) {
   95|   186k|   if(!oid_str.empty()) {
  ------------------
  |  Branch (95:7): [True: 186k, False: 0]
  ------------------
   96|   186k|      m_id = parse_oid_str(oid_str);
   97|   186k|      if(m_id.size() < 2 || m_id[0] > 2 || (m_id[0] < 2 && m_id[1] > 39)) {
  ------------------
  |  Branch (97:10): [True: 0, False: 186k]
  |  Branch (97:29): [True: 0, False: 186k]
  |  Branch (97:45): [True: 5.06k, False: 181k]
  |  Branch (97:60): [True: 0, False: 5.06k]
  ------------------
   98|      0|         throw Decoding_Error(fmt("Invalid OID '{}'", oid_str));
   99|      0|      }
  100|   186k|   }
  101|   186k|}
_ZNK5Botan3OID9to_stringEv:
  106|  25.3k|std::string OID::to_string() const {
  107|  25.3k|   std::ostringstream out;
  108|  25.3k|   out << (*this);
  109|  25.3k|   return out.str();
  110|  25.3k|}
_ZNK5Botan3OID19to_formatted_stringEv:
  112|  3.19k|std::string OID::to_formatted_string() const {
  113|  3.19k|   std::string s = this->human_name_or_empty();
  114|  3.19k|   if(!s.empty()) {
  ------------------
  |  Branch (114:7): [True: 673, False: 2.52k]
  ------------------
  115|    673|      return s;
  116|    673|   }
  117|  2.52k|   return this->to_string();
  118|  3.19k|}
_ZNK5Botan3OID19human_name_or_emptyEv:
  120|  3.19k|std::string OID::human_name_or_empty() const { return OID_Map::global_registry().oid2str(*this); }
_ZN5BotanltERKNS_3OIDES2_:
  127|  73.6k|bool operator<(const OID& a, const OID& b) {
  128|  73.6k|   const std::vector<uint32_t>& oid1 = a.get_components();
  129|  73.6k|   const std::vector<uint32_t>& oid2 = b.get_components();
  130|       |
  131|  73.6k|   return std::lexicographical_compare(oid1.begin(), oid1.end(), oid2.begin(), oid2.end());
  132|  73.6k|}
_ZN5BotanlsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEERKNS_3OIDE:
  134|  25.3k|std::ostream& operator<<(std::ostream& out, const OID& oid) {
  135|  25.3k|   const auto& val = oid.get_components();
  136|       |
  137|   142k|   for(size_t i = 0; i != val.size(); ++i) {
  ------------------
  |  Branch (137:22): [True: 117k, False: 25.3k]
  ------------------
  138|       |      // avoid locale issues with integer formatting
  139|   117k|      out << std::to_string(val[i]);
  140|   117k|      if(i != val.size() - 1) {
  ------------------
  |  Branch (140:10): [True: 91.7k, False: 25.3k]
  ------------------
  141|  91.7k|         out << ".";
  142|  91.7k|      }
  143|   117k|   }
  144|       |
  145|  25.3k|   return out;
  146|  25.3k|}
_ZN5Botan3OID11decode_fromERNS_11BER_DecoderE:
  185|  35.4k|void OID::decode_from(BER_Decoder& decoder) {
  186|  35.4k|   BER_Object obj = decoder.get_next_object();
  187|  35.4k|   if(obj.tagging() != (ASN1_Class::Universal | ASN1_Type::ObjectId)) {
  ------------------
  |  Branch (187:7): [True: 342, False: 35.1k]
  ------------------
  188|    342|      throw BER_Bad_Tag("Error decoding OID, unknown tag", obj.tagging());
  189|    342|   }
  190|       |
  191|  35.1k|   const size_t length = obj.length();
  192|  35.1k|   const uint8_t* bits = obj.bits();
  193|       |
  194|  35.1k|   if(length < 2 && !(length == 1 && bits[0] == 0)) {
  ------------------
  |  Branch (194:7): [True: 2.35k, False: 32.7k]
  |  Branch (194:23): [True: 2.31k, False: 43]
  |  Branch (194:38): [True: 2.19k, False: 116]
  ------------------
  195|    159|      throw BER_Decoding_Error("OID encoding is too short");
  196|    159|   }
  197|       |
  198|  34.9k|   m_id.clear();
  199|  34.9k|   m_id.push_back(bits[0] / 40);
  200|  34.9k|   m_id.push_back(bits[0] % 40);
  201|       |
  202|  34.9k|   size_t i = 0;
  203|   151k|   while(i != length - 1) {
  ------------------
  |  Branch (203:10): [True: 116k, False: 34.8k]
  ------------------
  204|   116k|      uint32_t component = 0;
  205|   149k|      while(i != length - 1) {
  ------------------
  |  Branch (205:13): [True: 135k, False: 13.6k]
  ------------------
  206|   135k|         ++i;
  207|       |
  208|   135k|         if(component >> (32 - 7)) {
  ------------------
  |  Branch (208:13): [True: 84, False: 135k]
  ------------------
  209|     84|            throw Decoding_Error("OID component overflow");
  210|     84|         }
  211|       |
  212|   135k|         component = (component << 7) + (bits[i] & 0x7F);
  213|       |
  214|   135k|         if(!(bits[i] & 0x80)) {
  ------------------
  |  Branch (214:13): [True: 103k, False: 32.3k]
  ------------------
  215|   103k|            break;
  216|   103k|         }
  217|   135k|      }
  218|   116k|      m_id.push_back(component);
  219|   116k|   }
  220|  34.9k|}
asn1_oid.cpp:_ZN5Botan12_GLOBAL__N_113parse_oid_strENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   24|   186k|std::vector<uint32_t> parse_oid_str(std::string_view oid) {
   25|   186k|   try {
   26|   186k|      std::string elem;
   27|   186k|      std::vector<uint32_t> oid_elems;
   28|       |
   29|  1.72M|      for(char c : oid) {
  ------------------
  |  Branch (29:18): [True: 1.72M, False: 186k]
  ------------------
   30|  1.72M|         if(c == '.') {
  ------------------
  |  Branch (30:13): [True: 585k, False: 1.13M]
  ------------------
   31|   585k|            if(elem.empty()) {
  ------------------
  |  Branch (31:16): [True: 0, False: 585k]
  ------------------
   32|      0|               return std::vector<uint32_t>();
   33|      0|            }
   34|   585k|            oid_elems.push_back(to_u32bit(elem));
   35|   585k|            elem.clear();
   36|  1.13M|         } else {
   37|  1.13M|            elem += c;
   38|  1.13M|         }
   39|  1.72M|      }
   40|       |
   41|   186k|      if(!elem.empty()) {
  ------------------
  |  Branch (41:10): [True: 186k, False: 0]
  ------------------
   42|   186k|         oid_elems.push_back(to_u32bit(elem));
   43|   186k|      }
   44|       |
   45|   186k|      return oid_elems;
   46|   186k|   } catch(Invalid_Argument&)  // thrown by to_u32bit
   47|   186k|   {
   48|      0|      return std::vector<uint32_t>();
   49|      0|   }
   50|   186k|}

_ZN5Botan11ASN1_String14is_string_typeENS_9ASN1_TypeE:
   60|  2.68k|bool ASN1_String::is_string_type(ASN1_Type tag) { return is_asn1_string_type(tag); }
_ZN5Botan11ASN1_StringC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEENS_9ASN1_TypeE:
   62|  6.75k|ASN1_String::ASN1_String(std::string_view str, ASN1_Type t) : m_utf8_str(str), m_tag(t) {
   63|  6.75k|   if(!is_utf8_subset_string_type(m_tag)) {
  ------------------
  |  Branch (63:7): [True: 8, False: 6.74k]
  ------------------
   64|      8|      throw Invalid_Argument("ASN1_String only supports encoding to UTF-8 or a UTF-8 subset");
   65|      8|   }
   66|  6.75k|}
_ZN5Botan11ASN1_StringC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   68|  4.69k|ASN1_String::ASN1_String(std::string_view str) : ASN1_String(str, choose_encoding(str)) {}
_ZN5Botan11ASN1_String11decode_fromERNS_11BER_DecoderE:
   86|  4.59k|void ASN1_String::decode_from(BER_Decoder& source) {
   87|  4.59k|   BER_Object obj = source.get_next_object();
   88|       |
   89|  4.59k|   if(!is_asn1_string_type(obj.type())) {
  ------------------
  |  Branch (89:7): [True: 94, False: 4.49k]
  ------------------
   90|     94|      auto typ = static_cast<uint32_t>(obj.type());
   91|     94|      throw Decoding_Error(fmt("ASN1_String: Unknown string type {}", typ));
   92|     94|   }
   93|       |
   94|  4.49k|   m_tag = obj.type();
   95|  4.49k|   m_data.assign(obj.bits(), obj.bits() + obj.length());
   96|       |
   97|  4.49k|   if(m_tag == ASN1_Type::BmpString) {
  ------------------
  |  Branch (97:7): [True: 914, False: 3.58k]
  ------------------
   98|    914|      m_utf8_str = ucs2_to_utf8(m_data.data(), m_data.size());
   99|  3.58k|   } else if(m_tag == ASN1_Type::UniversalString) {
  ------------------
  |  Branch (99:14): [True: 287, False: 3.29k]
  ------------------
  100|    287|      m_utf8_str = ucs4_to_utf8(m_data.data(), m_data.size());
  101|  3.29k|   } else if(m_tag == ASN1_Type::TeletexString) {
  ------------------
  |  Branch (101:14): [True: 690, False: 2.60k]
  ------------------
  102|       |      /*
  103|       |      TeletexString is nominally ITU T.61 not ISO-8859-1 but it seems
  104|       |      the majority of implementations actually used that charset here.
  105|       |      */
  106|    690|      m_utf8_str = latin1_to_utf8(m_data.data(), m_data.size());
  107|  2.60k|   } else {
  108|       |      // All other supported string types are UTF-8 or some subset thereof
  109|  2.60k|      m_utf8_str = ASN1::to_string(obj);
  110|  2.60k|   }
  111|  4.49k|}
asn1_str.cpp:_ZN5Botan12_GLOBAL__N_119is_asn1_string_typeENS_9ASN1_TypeE:
   52|  7.25k|bool is_asn1_string_type(ASN1_Type tag) {
   53|  7.25k|   return (is_utf8_subset_string_type(tag) || tag == ASN1_Type::TeletexString || tag == ASN1_Type::BmpString ||
  ------------------
  |  Branch (53:12): [True: 4.70k, False: 2.55k]
  |  Branch (53:47): [True: 845, False: 1.70k]
  |  Branch (53:82): [True: 961, False: 748]
  ------------------
   54|  7.25k|           tag == ASN1_Type::UniversalString);
  ------------------
  |  Branch (54:12): [True: 292, False: 456]
  ------------------
   55|  7.25k|}
asn1_str.cpp:_ZN5Botan12_GLOBAL__N_126is_utf8_subset_string_typeENS_9ASN1_TypeE:
   47|  14.0k|bool is_utf8_subset_string_type(ASN1_Type tag) {
   48|  14.0k|   return (tag == ASN1_Type::NumericString || tag == ASN1_Type::PrintableString || tag == ASN1_Type::VisibleString ||
  ------------------
  |  Branch (48:12): [True: 805, False: 13.2k]
  |  Branch (48:47): [True: 5.84k, False: 7.35k]
  |  Branch (48:84): [True: 737, False: 6.62k]
  ------------------
   49|  14.0k|           tag == ASN1_Type::Ia5String || tag == ASN1_Type::Utf8String);
  ------------------
  |  Branch (49:12): [True: 1.44k, False: 5.17k]
  |  Branch (49:43): [True: 2.61k, False: 2.56k]
  ------------------
   50|  14.0k|}
asn1_str.cpp:_ZN5Botan12_GLOBAL__N_115choose_encodingENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   23|  4.69k|ASN1_Type choose_encoding(std::string_view str) {
   24|  4.69k|   auto all_printable = CT::Mask<uint8_t>::set();
   25|       |
   26|  4.69k|   for(size_t i = 0; i != str.size(); ++i) {
  ------------------
  |  Branch (26:22): [True: 0, False: 4.69k]
  ------------------
   27|      0|      const uint8_t c = static_cast<uint8_t>(str[i]);
   28|       |
   29|      0|      auto is_alpha_lower = CT::Mask<uint8_t>::is_within_range(c, 'a', 'z');
   30|      0|      auto is_alpha_upper = CT::Mask<uint8_t>::is_within_range(c, 'A', 'Z');
   31|      0|      auto is_decimal = CT::Mask<uint8_t>::is_within_range(c, '0', '9');
   32|       |
   33|      0|      auto is_print_punc = CT::Mask<uint8_t>::is_any_of(c, {' ', '(', ')', '+', ',', '-', '.', '/', ':', '=', '?'});
   34|       |
   35|      0|      auto is_printable = is_alpha_lower | is_alpha_upper | is_decimal | is_print_punc;
   36|       |
   37|      0|      all_printable &= is_printable;
   38|      0|   }
   39|       |
   40|  4.69k|   if(all_printable.is_set()) {
  ------------------
  |  Branch (40:7): [True: 4.69k, False: 0]
  ------------------
   41|  4.69k|      return ASN1_Type::PrintableString;
   42|  4.69k|   } else {
   43|      0|      return ASN1_Type::Utf8String;
   44|      0|   }
   45|  4.69k|}

_ZN5Botan9ASN1_Time11decode_fromERNS_11BER_DecoderE:
   51|  9.24k|void ASN1_Time::decode_from(BER_Decoder& source) {
   52|  9.24k|   BER_Object ber_time = source.get_next_object();
   53|       |
   54|  9.24k|   set_to(ASN1::to_string(ber_time), ber_time.type());
   55|  9.24k|}
_ZN5Botan9ASN1_Time6set_toENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEENS_9ASN1_TypeE:
  153|  9.22k|void ASN1_Time::set_to(std::string_view t_spec, ASN1_Type spec_tag) {
  154|  9.22k|   BOTAN_ARG_CHECK(spec_tag == ASN1_Type::UtcTime || spec_tag == ASN1_Type::GeneralizedTime,
  ------------------
  |  |   30|  9.22k|   do {                                                          \
  |  |   31|  10.0k|      if(!(expr))                                                \
  |  |  ------------------
  |  |  |  Branch (31:12): [True: 8.42k, False: 800]
  |  |  |  Branch (31:12): [True: 645, False: 155]
  |  |  ------------------
  |  |   32|  9.22k|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   33|  9.22k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (33:12): [Folded - Ignored]
  |  |  ------------------
  ------------------
  155|  9.22k|                   "Invalid tag for ASN1_Time");
  156|       |
  157|  9.22k|   if(spec_tag == ASN1_Type::GeneralizedTime) {
  ------------------
  |  Branch (157:7): [True: 645, False: 8.58k]
  ------------------
  158|    645|      BOTAN_ARG_CHECK(t_spec.size() == 15, "Invalid GeneralizedTime input string");
  ------------------
  |  |   30|    645|   do {                                                          \
  |  |   31|    645|      if(!(expr))                                                \
  |  |  ------------------
  |  |  |  Branch (31:10): [True: 18, False: 627]
  |  |  ------------------
  |  |   32|    645|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   33|    645|   } while(0)
  |  |  ------------------
  |  |  |  Branch (33:12): [Folded - Ignored]
  |  |  ------------------
  ------------------
  159|  8.58k|   } else if(spec_tag == ASN1_Type::UtcTime) {
  ------------------
  |  Branch (159:14): [True: 8.42k, False: 155]
  ------------------
  160|  8.42k|      BOTAN_ARG_CHECK(t_spec.size() == 13, "Invalid UTCTime input string");
  ------------------
  |  |   30|  8.42k|   do {                                                          \
  |  |   31|  8.42k|      if(!(expr))                                                \
  |  |  ------------------
  |  |  |  Branch (31:10): [True: 25, False: 8.40k]
  |  |  ------------------
  |  |   32|  8.42k|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   33|  8.42k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (33:12): [Folded - Ignored]
  |  |  ------------------
  ------------------
  161|  8.42k|   }
  162|       |
  163|  9.22k|   BOTAN_ARG_CHECK(t_spec.back() == 'Z', "Botan does not support ASN1 times with timezones other than Z");
  ------------------
  |  |   30|  9.22k|   do {                                                          \
  |  |   31|  9.22k|      if(!(expr))                                                \
  |  |  ------------------
  |  |  |  Branch (31:10): [True: 25, False: 9.20k]
  |  |  ------------------
  |  |   32|  9.22k|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   33|  9.22k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (33:12): [Folded - Ignored]
  |  |  ------------------
  ------------------
  164|       |
  165|  9.22k|   const size_t field_len = 2;
  166|       |
  167|  9.22k|   const size_t year_start = 0;
  168|  9.22k|   const size_t year_len = (spec_tag == ASN1_Type::UtcTime) ? 2 : 4;
  ------------------
  |  Branch (168:28): [True: 8.38k, False: 845]
  ------------------
  169|  9.22k|   const size_t month_start = year_start + year_len;
  170|  9.22k|   const size_t day_start = month_start + field_len;
  171|  9.22k|   const size_t hour_start = day_start + field_len;
  172|  9.22k|   const size_t min_start = hour_start + field_len;
  173|  9.22k|   const size_t sec_start = min_start + field_len;
  174|       |
  175|  9.22k|   m_year = to_u32bit(t_spec.substr(year_start, year_len));
  176|  9.22k|   m_month = to_u32bit(t_spec.substr(month_start, field_len));
  177|  9.22k|   m_day = to_u32bit(t_spec.substr(day_start, field_len));
  178|  9.22k|   m_hour = to_u32bit(t_spec.substr(hour_start, field_len));
  179|  9.22k|   m_minute = to_u32bit(t_spec.substr(min_start, field_len));
  180|  9.22k|   m_second = to_u32bit(t_spec.substr(sec_start, field_len));
  181|  9.22k|   m_tag = spec_tag;
  182|       |
  183|  9.22k|   if(spec_tag == ASN1_Type::UtcTime) {
  ------------------
  |  Branch (183:7): [True: 8.35k, False: 871]
  ------------------
  184|  8.35k|      if(m_year >= 50) {
  ------------------
  |  Branch (184:10): [True: 1.79k, False: 6.56k]
  ------------------
  185|  1.79k|         m_year += 1900;
  186|  6.56k|      } else {
  187|  6.56k|         m_year += 2000;
  188|  6.56k|      }
  189|  8.35k|   }
  190|       |
  191|  9.22k|   if(!passes_sanity_check()) {
  ------------------
  |  Branch (191:7): [True: 65, False: 9.16k]
  ------------------
  192|     65|      throw Invalid_Argument(fmt("ASN1_Time string '{}' does not seem to be valid", t_spec));
  193|     65|   }
  194|  9.22k|}
_ZNK5Botan9ASN1_Time19passes_sanity_checkEv:
  199|  8.97k|bool ASN1_Time::passes_sanity_check() const {
  200|       |   // AppVeyor's trust store includes a cert with expiration date in 3016 ...
  201|  8.97k|   if(m_year < 1950 || m_year > 3100) {
  ------------------
  |  Branch (201:7): [True: 10, False: 8.96k]
  |  Branch (201:24): [True: 5, False: 8.96k]
  ------------------
  202|     15|      return false;
  203|     15|   }
  204|  8.96k|   if(m_month == 0 || m_month > 12) {
  ------------------
  |  Branch (204:7): [True: 6, False: 8.95k]
  |  Branch (204:23): [True: 13, False: 8.94k]
  ------------------
  205|     19|      return false;
  206|     19|   }
  207|       |
  208|  8.94k|   const uint32_t days_in_month[12] = {31, 28 + 1, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
  209|       |
  210|  8.94k|   if(m_day == 0 || m_day > days_in_month[m_month - 1]) {
  ------------------
  |  Branch (210:7): [True: 1, False: 8.94k]
  |  Branch (210:21): [True: 9, False: 8.93k]
  ------------------
  211|     10|      return false;
  212|     10|   }
  213|       |
  214|  8.93k|   if(m_month == 2 && m_day == 29) {
  ------------------
  |  Branch (214:7): [True: 2.07k, False: 6.85k]
  |  Branch (214:23): [True: 526, False: 1.55k]
  ------------------
  215|    526|      if(m_year % 4 != 0) {
  ------------------
  |  Branch (215:10): [True: 2, False: 524]
  ------------------
  216|      2|         return false;  // not a leap year
  217|      2|      }
  218|       |
  219|    524|      if(m_year % 100 == 0 && m_year % 400 != 0) {
  ------------------
  |  Branch (219:10): [True: 193, False: 331]
  |  Branch (219:31): [True: 2, False: 191]
  ------------------
  220|      2|         return false;
  221|      2|      }
  222|    524|   }
  223|       |
  224|  8.92k|   if(m_hour >= 24 || m_minute >= 60 || m_second > 60) {
  ------------------
  |  Branch (224:7): [True: 5, False: 8.92k]
  |  Branch (224:23): [True: 3, False: 8.92k]
  |  Branch (224:41): [True: 6, False: 8.91k]
  ------------------
  225|     14|      return false;
  226|     14|   }
  227|       |
  228|  8.91k|   if(m_tag == ASN1_Type::UtcTime) {
  ------------------
  |  Branch (228:7): [True: 8.32k, False: 591]
  ------------------
  229|       |      /*
  230|       |      UTCTime limits the value of components such that leap seconds
  231|       |      are not covered. See "UNIVERSAL 23" in "Information technology
  232|       |      Abstract Syntax Notation One (ASN.1): Specification of basic notation"
  233|       |
  234|       |      http://www.itu.int/ITU-T/studygroups/com17/languages/
  235|       |      */
  236|  8.32k|      if(m_second > 59) {
  ------------------
  |  Branch (236:10): [True: 3, False: 8.32k]
  ------------------
  237|      3|         return false;
  238|      3|      }
  239|  8.32k|   }
  240|       |
  241|  8.91k|   return true;
  242|  8.91k|}

_ZNK5Botan11BER_Decoder10more_itemsEv:
  195|  89.0k|bool BER_Decoder::more_items() const {
  196|  89.0k|   if(m_source->end_of_data() && !m_pushed.is_set()) {
  ------------------
  |  Branch (196:7): [True: 16.5k, False: 72.4k]
  |  Branch (196:34): [True: 16.5k, False: 0]
  ------------------
  197|  16.5k|      return false;
  198|  16.5k|   }
  199|  72.4k|   return true;
  200|  89.0k|}
_ZN5Botan11BER_Decoder10verify_endEv:
  205|  12.0k|BER_Decoder& BER_Decoder::verify_end() { return verify_end("BER_Decoder::verify_end called, but data remains"); }
_ZN5Botan11BER_Decoder10verify_endENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  210|  12.0k|BER_Decoder& BER_Decoder::verify_end(std::string_view err) {
  211|  12.0k|   if(!m_source->end_of_data() || m_pushed.is_set()) {
  ------------------
  |  Branch (211:7): [True: 239, False: 11.8k]
  |  Branch (211:35): [True: 0, False: 11.8k]
  ------------------
  212|    239|      throw Decoding_Error(err);
  213|    239|   }
  214|  11.8k|   return (*this);
  215|  12.0k|}
_ZN5Botan11BER_Decoder17discard_remainingEv:
  220|    600|BER_Decoder& BER_Decoder::discard_remaining() {
  221|    600|   uint8_t buf;
  222|  3.45k|   while(m_source->read_byte(buf)) {}
  ------------------
  |  Branch (222:10): [True: 2.85k, False: 600]
  ------------------
  223|    600|   return (*this);
  224|    600|}
_ZN5Botan11BER_Decoder15get_next_objectEv:
  229|   230k|BER_Object BER_Decoder::get_next_object() {
  230|   230k|   BER_Object next;
  231|       |
  232|   230k|   if(m_pushed.is_set()) {
  ------------------
  |  Branch (232:7): [True: 27.1k, False: 203k]
  ------------------
  233|  27.1k|      std::swap(next, m_pushed);
  234|  27.1k|      return next;
  235|  27.1k|   }
  236|       |
  237|   226k|   for(;;) {
  238|   226k|      ASN1_Type type_tag;
  239|   226k|      ASN1_Class class_tag;
  240|   226k|      decode_tag(m_source, type_tag, class_tag);
  241|   226k|      next.set_tagging(type_tag, class_tag);
  242|   226k|      if(next.is_set() == false) {  // no more objects
  ------------------
  |  Branch (242:10): [True: 5.18k, False: 221k]
  ------------------
  243|  5.18k|         return next;
  244|  5.18k|      }
  245|       |
  246|   221k|      size_t field_size;
  247|   221k|      const size_t length = decode_length(m_source, field_size, ALLOWED_EOC_NESTINGS);
  248|   221k|      if(!m_source->check_available(length)) {
  ------------------
  |  Branch (248:10): [True: 2.07k, False: 219k]
  ------------------
  249|  2.07k|         throw BER_Decoding_Error("Value truncated");
  250|  2.07k|      }
  251|       |
  252|   219k|      uint8_t* out = next.mutable_bits(length);
  253|   219k|      if(m_source->read(out, length) != length) {
  ------------------
  |  Branch (253:10): [True: 0, False: 219k]
  ------------------
  254|      0|         throw BER_Decoding_Error("Value truncated");
  255|      0|      }
  256|       |
  257|   219k|      if(next.tagging() == static_cast<uint32_t>(ASN1_Type::Eoc)) {
  ------------------
  |  Branch (257:10): [True: 23.3k, False: 196k]
  ------------------
  258|  23.3k|         continue;
  259|   196k|      } else {
  260|   196k|         break;
  261|   196k|      }
  262|   219k|   }
  263|       |
  264|   196k|   return next;
  265|   203k|}
_ZN5Botan11BER_Decoder9push_backERKNS_10BER_ObjectE:
  270|  2.95k|void BER_Decoder::push_back(const BER_Object& obj) {
  271|  2.95k|   if(m_pushed.is_set()) {
  ------------------
  |  Branch (271:7): [True: 0, False: 2.95k]
  ------------------
  272|      0|      throw Invalid_State("BER_Decoder: Only one push back is allowed");
  273|      0|   }
  274|  2.95k|   m_pushed = obj;
  275|  2.95k|}
_ZN5Botan11BER_Decoder9push_backEONS_10BER_ObjectE:
  277|  28.1k|void BER_Decoder::push_back(BER_Object&& obj) {
  278|  28.1k|   if(m_pushed.is_set()) {
  ------------------
  |  Branch (278:7): [True: 0, False: 28.1k]
  ------------------
  279|      0|      throw Invalid_State("BER_Decoder: Only one push back is allowed");
  280|      0|   }
  281|  28.1k|   m_pushed = std::move(obj);
  282|  28.1k|}
_ZN5Botan11BER_Decoder10start_consENS_9ASN1_TypeENS_10ASN1_ClassE:
  284|  80.4k|BER_Decoder BER_Decoder::start_cons(ASN1_Type type_tag, ASN1_Class class_tag) {
  285|  80.4k|   BER_Object obj = get_next_object();
  286|  80.4k|   obj.assert_is_a(type_tag, class_tag | ASN1_Class::Constructed);
  287|  80.4k|   return BER_Decoder(std::move(obj), this);
  288|  80.4k|}
_ZN5Botan11BER_Decoder8end_consEv:
  293|  53.4k|BER_Decoder& BER_Decoder::end_cons() {
  294|  53.4k|   if(!m_parent) {
  ------------------
  |  Branch (294:7): [True: 0, False: 53.4k]
  ------------------
  295|      0|      throw Invalid_State("BER_Decoder::end_cons called with null parent");
  296|      0|   }
  297|  53.4k|   if(!m_source->end_of_data()) {
  ------------------
  |  Branch (297:7): [True: 560, False: 52.9k]
  ------------------
  298|    560|      throw Decoding_Error("BER_Decoder::end_cons called with data left");
  299|    560|   }
  300|  52.9k|   return (*m_parent);
  301|  53.4k|}
_ZN5Botan11BER_DecoderC2EONS_10BER_ObjectEPS0_:
  303|  75.6k|BER_Decoder::BER_Decoder(BER_Object&& obj, BER_Decoder* parent) {
  304|  75.6k|   m_data_src = std::make_unique<DataSource_BERObject>(std::move(obj));
  305|  75.6k|   m_source = m_data_src.get();
  306|  75.6k|   m_parent = parent;
  307|  75.6k|}
_ZN5Botan11BER_DecoderC2ERNS_10DataSourceE:
  312|  3.85k|BER_Decoder::BER_Decoder(DataSource& src) { m_source = &src; }
_ZN5Botan11BER_DecoderC2EPKhm:
  317|  8.21k|BER_Decoder::BER_Decoder(const uint8_t data[], size_t length) {
  318|  8.21k|   m_data_src = std::make_unique<DataSource_Memory>(data, length);
  319|  8.21k|   m_source = m_data_src.get();
  320|  8.21k|}
_ZN5Botan11BER_DecoderC2ERKNSt3__16vectorIhNS1_9allocatorIhEEEE:
  333|  22.3k|BER_Decoder::BER_Decoder(const std::vector<uint8_t>& data) {
  334|  22.3k|   m_data_src = std::make_unique<DataSource_Memory>(data.data(), data.size());
  335|  22.3k|   m_source = m_data_src.get();
  336|  22.3k|}
_ZN5Botan11BER_Decoder6decodeERNS_11ASN1_ObjectENS_9ASN1_TypeENS_10ASN1_ClassE:
  352|  80.8k|BER_Decoder& BER_Decoder::decode(ASN1_Object& obj, ASN1_Type /*unused*/, ASN1_Class /*unused*/) {
  353|  80.8k|   obj.decode_from(*this);
  354|  80.8k|   return (*this);
  355|  80.8k|}
_ZN5Botan11BER_Decoder6decodeERbNS_9ASN1_TypeENS_10ASN1_ClassE:
  379|    418|BER_Decoder& BER_Decoder::decode(bool& out, ASN1_Type type_tag, ASN1_Class class_tag) {
  380|    418|   BER_Object obj = get_next_object();
  381|    418|   obj.assert_is_a(type_tag, class_tag);
  382|       |
  383|    418|   if(obj.length() != 1) {
  ------------------
  |  Branch (383:7): [True: 104, False: 314]
  ------------------
  384|    104|      throw BER_Decoding_Error("BER boolean value had invalid size");
  385|    104|   }
  386|       |
  387|    314|   out = (obj.bits()[0]) ? true : false;
  ------------------
  |  Branch (387:10): [True: 311, False: 3]
  ------------------
  388|    314|   return (*this);
  389|    418|}
_ZN5Botan11BER_Decoder6decodeERmNS_9ASN1_TypeENS_10ASN1_ClassE:
  394|  3.65k|BER_Decoder& BER_Decoder::decode(size_t& out, ASN1_Type type_tag, ASN1_Class class_tag) {
  395|  3.65k|   BigInt integer;
  396|  3.65k|   decode(integer, type_tag, class_tag);
  397|       |
  398|  3.65k|   if(integer.is_negative()) {
  ------------------
  |  Branch (398:7): [True: 373, False: 3.28k]
  ------------------
  399|    373|      throw BER_Decoding_Error("Decoded small integer value was negative");
  400|    373|   }
  401|       |
  402|  3.28k|   if(integer.bits() > 32) {
  ------------------
  |  Branch (402:7): [True: 258, False: 3.02k]
  ------------------
  403|    258|      throw BER_Decoding_Error("Decoded integer value larger than expected");
  404|    258|   }
  405|       |
  406|  3.02k|   out = 0;
  407|  9.47k|   for(size_t i = 0; i != 4; ++i) {
  ------------------
  |  Branch (407:22): [True: 6.45k, False: 3.02k]
  ------------------
  408|  6.45k|      out = (out << 8) | integer.byte_at(3 - i);
  409|  6.45k|   }
  410|       |
  411|  3.02k|   return (*this);
  412|  3.28k|}
_ZN5Botan11BER_Decoder6decodeERNS_6BigIntENS_9ASN1_TypeENS_10ASN1_ClassE:
  440|  8.76k|BER_Decoder& BER_Decoder::decode(BigInt& out, ASN1_Type type_tag, ASN1_Class class_tag) {
  441|  8.76k|   BER_Object obj = get_next_object();
  442|  8.76k|   obj.assert_is_a(type_tag, class_tag);
  443|       |
  444|  8.76k|   if(obj.length() == 0) {
  ------------------
  |  Branch (444:7): [True: 536, False: 8.22k]
  ------------------
  445|    536|      out.clear();
  446|  8.22k|   } else {
  447|  8.22k|      const bool negative = (obj.bits()[0] & 0x80) ? true : false;
  ------------------
  |  Branch (447:29): [True: 1.52k, False: 6.69k]
  ------------------
  448|       |
  449|  8.22k|      if(negative) {
  ------------------
  |  Branch (449:10): [True: 1.52k, False: 6.69k]
  ------------------
  450|  1.52k|         secure_vector<uint8_t> vec(obj.bits(), obj.bits() + obj.length());
  451|  2.30k|         for(size_t i = obj.length(); i > 0; --i) {
  ------------------
  |  Branch (451:39): [True: 2.30k, False: 0]
  ------------------
  452|  2.30k|            if(vec[i - 1]--) {
  ------------------
  |  Branch (452:16): [True: 1.52k, False: 775]
  ------------------
  453|  1.52k|               break;
  454|  1.52k|            }
  455|  2.30k|         }
  456|  41.6k|         for(size_t i = 0; i != obj.length(); ++i) {
  ------------------
  |  Branch (456:28): [True: 40.0k, False: 1.52k]
  ------------------
  457|  40.0k|            vec[i] = ~vec[i];
  458|  40.0k|         }
  459|  1.52k|         out = BigInt(vec.data(), vec.size());
  460|  1.52k|         out.flip_sign();
  461|  6.69k|      } else {
  462|  6.69k|         out = BigInt(obj.bits(), obj.length());
  463|  6.69k|      }
  464|  8.22k|   }
  465|       |
  466|  8.76k|   return (*this);
  467|  8.76k|}
_ZN5Botan11BER_Decoder6decodeERNSt3__16vectorIhNS1_9allocatorIhEEEENS_9ASN1_TypeES7_NS_10ASN1_ClassE:
  517|  23.7k|                                 ASN1_Class class_tag) {
  518|  23.7k|   if(real_type != ASN1_Type::OctetString && real_type != ASN1_Type::BitString) {
  ------------------
  |  Branch (518:7): [True: 3.09k, False: 20.6k]
  |  Branch (518:46): [True: 0, False: 3.09k]
  ------------------
  519|      0|      throw BER_Bad_Tag("Bad tag for {BIT,OCTET} STRING", static_cast<uint32_t>(real_type));
  520|      0|   }
  521|       |
  522|  23.7k|   asn1_decode_binary_string(buffer, get_next_object(), real_type, type_tag, class_tag);
  523|  23.7k|   return (*this);
  524|  23.7k|}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_110decode_tagEPNS_10DataSourceERNS_9ASN1_TypeERNS_10ASN1_ClassE:
   29|   288k|size_t decode_tag(DataSource* ber, ASN1_Type& type_tag, ASN1_Class& class_tag) {
   30|   288k|   uint8_t b;
   31|   288k|   if(!ber->read_byte(b)) {
  ------------------
  |  Branch (31:7): [True: 15.8k, False: 272k]
  ------------------
   32|  15.8k|      type_tag = ASN1_Type::NoObject;
   33|  15.8k|      class_tag = ASN1_Class::NoObject;
   34|  15.8k|      return 0;
   35|  15.8k|   }
   36|       |
   37|   272k|   if((b & 0x1F) != 0x1F) {
  ------------------
  |  Branch (37:7): [True: 268k, False: 3.85k]
  ------------------
   38|   268k|      type_tag = ASN1_Type(b & 0x1F);
   39|   268k|      class_tag = ASN1_Class(b & 0xE0);
   40|   268k|      return 1;
   41|   268k|   }
   42|       |
   43|  3.85k|   size_t tag_bytes = 1;
   44|  3.85k|   class_tag = ASN1_Class(b & 0xE0);
   45|       |
   46|  3.85k|   size_t tag_buf = 0;
   47|  11.8k|   while(true) {
  ------------------
  |  Branch (47:10): [Folded - Ignored]
  ------------------
   48|  11.8k|      if(!ber->read_byte(b)) {
  ------------------
  |  Branch (48:10): [True: 165, False: 11.6k]
  ------------------
   49|    165|         throw BER_Decoding_Error("Long-form tag truncated");
   50|    165|      }
   51|  11.6k|      if(tag_buf & 0xFF000000) {
  ------------------
  |  Branch (51:10): [True: 138, False: 11.5k]
  ------------------
   52|    138|         throw BER_Decoding_Error("Long-form tag overflowed 32 bits");
   53|    138|      }
   54|  11.5k|      ++tag_bytes;
   55|  11.5k|      tag_buf = (tag_buf << 7) | (b & 0x7F);
   56|  11.5k|      if((b & 0x80) == 0) {
  ------------------
  |  Branch (56:10): [True: 3.55k, False: 7.95k]
  ------------------
   57|  3.55k|         break;
   58|  3.55k|      }
   59|  11.5k|   }
   60|  3.55k|   type_tag = ASN1_Type(tag_buf);
   61|  3.55k|   return tag_bytes;
   62|  3.85k|}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_113decode_lengthEPNS_10DataSourceERmm:
   72|   271k|size_t decode_length(DataSource* ber, size_t& field_size, size_t allow_indef) {
   73|   271k|   uint8_t b;
   74|   271k|   if(!ber->read_byte(b)) {
  ------------------
  |  Branch (74:7): [True: 614, False: 271k]
  ------------------
   75|    614|      throw BER_Decoding_Error("Length field not found");
   76|    614|   }
   77|   271k|   field_size = 1;
   78|   271k|   if((b & 0x80) == 0) {
  ------------------
  |  Branch (78:7): [True: 241k, False: 29.9k]
  ------------------
   79|   241k|      return b;
   80|   241k|   }
   81|       |
   82|  29.9k|   field_size += (b & 0x7F);
   83|  29.9k|   if(field_size > 5) {
  ------------------
  |  Branch (83:7): [True: 1.14k, False: 28.7k]
  ------------------
   84|  1.14k|      throw BER_Decoding_Error("Length field is too large");
   85|  1.14k|   }
   86|       |
   87|  28.7k|   if(field_size == 1) {
  ------------------
  |  Branch (87:7): [True: 15.4k, False: 13.2k]
  ------------------
   88|  15.4k|      if(allow_indef == 0) {
  ------------------
  |  Branch (88:10): [True: 20, False: 15.4k]
  ------------------
   89|     20|         throw BER_Decoding_Error("Nested EOC markers too deep, rejecting to avoid stack exhaustion");
   90|  15.4k|      } else {
   91|  15.4k|         return find_eoc(ber, allow_indef - 1);
   92|  15.4k|      }
   93|  15.4k|   }
   94|       |
   95|  13.2k|   size_t length = 0;
   96|       |
   97|  32.6k|   for(size_t i = 0; i != field_size - 1; ++i) {
  ------------------
  |  Branch (97:22): [True: 19.6k, False: 13.0k]
  ------------------
   98|  19.6k|      if(get_byte<0>(length) != 0) {
  ------------------
  |  Branch (98:10): [True: 0, False: 19.6k]
  ------------------
   99|      0|         throw BER_Decoding_Error("Field length overflow");
  100|      0|      }
  101|  19.6k|      if(!ber->read_byte(b)) {
  ------------------
  |  Branch (101:10): [True: 273, False: 19.3k]
  ------------------
  102|    273|         throw BER_Decoding_Error("Corrupted length field");
  103|    273|      }
  104|  19.3k|      length = (length << 8) | b;
  105|  19.3k|   }
  106|  13.0k|   return length;
  107|  13.2k|}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_18find_eocEPNS_10DataSourceEm:
  112|  15.4k|size_t find_eoc(DataSource* ber, size_t allow_indef) {
  113|  15.4k|   secure_vector<uint8_t> buffer(BOTAN_DEFAULT_BUFFER_SIZE), data;
  ------------------
  |  |  372|  15.4k|#define BOTAN_DEFAULT_BUFFER_SIZE 4096
  ------------------
  114|       |
  115|  29.8k|   while(true) {
  ------------------
  |  Branch (115:10): [Folded - Ignored]
  ------------------
  116|  29.8k|      const size_t got = ber->peek(buffer.data(), buffer.size(), data.size());
  117|  29.8k|      if(got == 0) {
  ------------------
  |  Branch (117:10): [True: 15.4k, False: 14.4k]
  ------------------
  118|  15.4k|         break;
  119|  15.4k|      }
  120|       |
  121|  14.4k|      data += std::make_pair(buffer.data(), got);
  122|  14.4k|   }
  123|       |
  124|  15.4k|   DataSource_Memory source(data);
  125|  15.4k|   data.clear();
  126|       |
  127|  15.4k|   size_t length = 0;
  128|  62.1k|   while(true) {
  ------------------
  |  Branch (128:10): [Folded - Ignored]
  ------------------
  129|  61.3k|      ASN1_Type type_tag;
  130|  61.3k|      ASN1_Class class_tag;
  131|  61.3k|      size_t tag_size = decode_tag(&source, type_tag, class_tag);
  132|  61.3k|      if(type_tag == ASN1_Type::NoObject) {
  ------------------
  |  Branch (132:10): [True: 10.8k, False: 50.4k]
  ------------------
  133|  10.8k|         break;
  134|  10.8k|      }
  135|       |
  136|  50.4k|      size_t length_size = 0;
  137|  50.4k|      size_t item_size = decode_length(&source, length_size, allow_indef);
  138|  50.4k|      source.discard_next(item_size);
  139|       |
  140|  50.4k|      length = BOTAN_CHECKED_ADD(length, item_size);
  ------------------
  |  |   72|  50.4k|#define BOTAN_CHECKED_ADD(x, y) checked_add(x, y, __FILE__, __LINE__)
  ------------------
  141|  50.4k|      length = BOTAN_CHECKED_ADD(length, tag_size);
  ------------------
  |  |   72|  50.4k|#define BOTAN_CHECKED_ADD(x, y) checked_add(x, y, __FILE__, __LINE__)
  ------------------
  142|  50.4k|      length = BOTAN_CHECKED_ADD(length, length_size);
  ------------------
  |  |   72|  50.4k|#define BOTAN_CHECKED_ADD(x, y) checked_add(x, y, __FILE__, __LINE__)
  ------------------
  143|       |
  144|  50.4k|      if(type_tag == ASN1_Type::Eoc && class_tag == ASN1_Class::Universal) {
  ------------------
  |  Branch (144:10): [True: 10.1k, False: 40.3k]
  |  Branch (144:40): [True: 3.85k, False: 6.27k]
  ------------------
  145|  3.85k|         break;
  146|  3.85k|      }
  147|  50.4k|   }
  148|  15.4k|   return length;
  149|  15.4k|}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_120DataSource_BERObjectC2EONS_10BER_ObjectE:
  183|  75.6k|      explicit DataSource_BERObject(BER_Object&& obj) : m_obj(std::move(obj)), m_offset(0) {}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_120DataSource_BERObject4readEPhm:
  153|  2.36M|      size_t read(uint8_t out[], size_t length) override {
  154|  2.36M|         BOTAN_ASSERT_NOMSG(m_offset <= m_obj.length());
  ------------------
  |  |   60|  2.36M|   do {                                                                     \
  |  |   61|  2.36M|      if(!(expr))                                                           \
  |  |  ------------------
  |  |  |  Branch (61:10): [True: 0, False: 2.36M]
  |  |  ------------------
  |  |   62|  2.36M|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   63|  2.36M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (63:12): [Folded - Ignored]
  |  |  ------------------
  ------------------
  155|  2.36M|         const size_t got = std::min<size_t>(m_obj.length() - m_offset, length);
  156|  2.36M|         copy_mem(out, m_obj.bits() + m_offset, got);
  157|  2.36M|         m_offset += got;
  158|  2.36M|         return got;
  159|  2.36M|      }
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_120DataSource_BERObject15check_availableEm:
  174|   171k|      bool check_available(size_t n) override {
  175|   171k|         BOTAN_ASSERT_NOMSG(m_offset <= m_obj.length());
  ------------------
  |  |   60|   171k|   do {                                                                     \
  |  |   61|   171k|      if(!(expr))                                                           \
  |  |  ------------------
  |  |  |  Branch (61:10): [True: 0, False: 171k]
  |  |  ------------------
  |  |   62|   171k|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   63|   171k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (63:12): [Folded - Ignored]
  |  |  ------------------
  ------------------
  176|   171k|         return (n <= (m_obj.length() - m_offset));
  177|   171k|      }
ber_dec.cpp:_ZNK5Botan12_GLOBAL__N_120DataSource_BERObject4peekEPhmm:
  161|  4.71k|      size_t peek(uint8_t out[], size_t length, size_t peek_offset) const override {
  162|  4.71k|         BOTAN_ASSERT_NOMSG(m_offset <= m_obj.length());
  ------------------
  |  |   60|  4.71k|   do {                                                                     \
  |  |   61|  4.71k|      if(!(expr))                                                           \
  |  |  ------------------
  |  |  |  Branch (61:10): [True: 0, False: 4.71k]
  |  |  ------------------
  |  |   62|  4.71k|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   63|  4.71k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (63:12): [Folded - Ignored]
  |  |  ------------------
  ------------------
  163|  4.71k|         const size_t bytes_left = m_obj.length() - m_offset;
  164|       |
  165|  4.71k|         if(peek_offset >= bytes_left) {
  ------------------
  |  Branch (165:13): [True: 2.53k, False: 2.18k]
  ------------------
  166|  2.53k|            return 0;
  167|  2.53k|         }
  168|       |
  169|  2.18k|         const size_t got = std::min(bytes_left - peek_offset, length);
  170|  2.18k|         copy_mem(out, m_obj.bits() + m_offset + peek_offset, got);
  171|  2.18k|         return got;
  172|  4.71k|      }
ber_dec.cpp:_ZNK5Botan12_GLOBAL__N_120DataSource_BERObject11end_of_dataEv:
  179|   135k|      bool end_of_data() const override { return get_bytes_read() == m_obj.length(); }
ber_dec.cpp:_ZNK5Botan12_GLOBAL__N_120DataSource_BERObject14get_bytes_readEv:
  181|   135k|      size_t get_bytes_read() const override { return m_offset; }
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_125asn1_decode_binary_stringINSt3__19allocatorIhEEEEvRNS2_6vectorIhT_EERKNS_10BER_ObjectENS_9ASN1_TypeESC_NS_10ASN1_ClassE:
  476|  23.6k|                               ASN1_Class class_tag) {
  477|  23.6k|   obj.assert_is_a(type_tag, class_tag);
  478|       |
  479|  23.6k|   if(real_type == ASN1_Type::OctetString) {
  ------------------
  |  Branch (479:7): [True: 19.9k, False: 3.67k]
  ------------------
  480|  19.9k|      buffer.assign(obj.bits(), obj.bits() + obj.length());
  481|  19.9k|   } else {
  482|  3.67k|      if(obj.length() == 0) {
  ------------------
  |  Branch (482:10): [True: 3, False: 3.67k]
  ------------------
  483|      3|         throw BER_Decoding_Error("Invalid BIT STRING");
  484|      3|      }
  485|  3.67k|      if(obj.bits()[0] >= 8) {
  ------------------
  |  Branch (485:10): [True: 5, False: 3.66k]
  ------------------
  486|      5|         throw BER_Decoding_Error("Bad number of unused bits in BIT STRING");
  487|      5|      }
  488|       |
  489|  3.66k|      buffer.resize(obj.length() - 1);
  490|       |
  491|  3.66k|      if(obj.length() > 1) {
  ------------------
  |  Branch (491:10): [True: 394, False: 3.27k]
  ------------------
  492|    394|         copy_mem(buffer.data(), obj.bits() + 1, obj.length() - 1);
  493|    394|      }
  494|  3.66k|   }
  495|  23.6k|}

_ZN5Botan7OID_MapC2Ev:
   11|      1|OID_Map::OID_Map() {
   12|      1|   m_str2oid = OID_Map::load_str2oid_map();
   13|      1|   m_oid2str = OID_Map::load_oid2str_map();
   14|      1|}
_ZN5Botan7OID_Map15global_registryEv:
   16|  4.55k|OID_Map& OID_Map::global_registry() {
   17|  4.55k|   static OID_Map g_map;
   18|  4.55k|   return g_map;
   19|  4.55k|}
_ZN5Botan7OID_Map7oid2strERKNS_3OIDE:
   56|  3.19k|std::string OID_Map::oid2str(const OID& oid) {
   57|  3.19k|   const std::string oid_str = oid.to_string();
   58|       |
   59|  3.19k|   lock_guard_type<mutex_type> lock(m_mutex);
   60|       |
   61|  3.19k|   auto i = m_oid2str.find(oid_str);
   62|  3.19k|   if(i != m_oid2str.end()) {
  ------------------
  |  Branch (62:7): [True: 673, False: 2.52k]
  ------------------
   63|    673|      return i->second;
   64|    673|   }
   65|       |
   66|  2.52k|   return "";
   67|  3.19k|}
_ZN5Botan7OID_Map7str2oidENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   69|  1.36k|OID OID_Map::str2oid(std::string_view str) {
   70|  1.36k|   lock_guard_type<mutex_type> lock(m_mutex);
   71|  1.36k|   auto i = m_str2oid.find(std::string(str));
   72|  1.36k|   if(i != m_str2oid.end()) {
  ------------------
  |  Branch (72:7): [True: 1.36k, False: 0]
  ------------------
   73|  1.36k|      return i->second;
   74|  1.36k|   }
   75|       |
   76|      0|   return OID();
   77|  1.36k|}

_ZN5Botan7OID_Map16load_oid2str_mapEv:
   17|      1|std::unordered_map<std::string, std::string> OID_Map::load_oid2str_map() {
   18|      1|   return std::unordered_map<std::string, std::string>{
   19|       |
   20|      1|      {"0.3.4401.5.3.1.9.26", "Camellia-192/GCM"},
   21|      1|      {"0.3.4401.5.3.1.9.46", "Camellia-256/GCM"},
   22|      1|      {"0.3.4401.5.3.1.9.6", "Camellia-128/GCM"},
   23|      1|      {"0.4.0.127.0.15.1.1.13.0", "XMSS"},
   24|      1|      {"1.0.14888.3.0.5", "ECKCDSA"},
   25|      1|      {"1.2.156.10197.1.104.100", "SM4/OCB"},
   26|      1|      {"1.2.156.10197.1.104.2", "SM4/CBC"},
   27|      1|      {"1.2.156.10197.1.104.8", "SM4/GCM"},
   28|      1|      {"1.2.156.10197.1.301", "sm2p256v1"},
   29|      1|      {"1.2.156.10197.1.301.1", "SM2"},
   30|      1|      {"1.2.156.10197.1.301.2", "SM2_Kex"},
   31|      1|      {"1.2.156.10197.1.301.3", "SM2_Enc"},
   32|      1|      {"1.2.156.10197.1.401", "SM3"},
   33|      1|      {"1.2.156.10197.1.501", "SM2_Sig/SM3"},
   34|      1|      {"1.2.156.10197.1.504", "RSA/EMSA3(SM3)"},
   35|      1|      {"1.2.250.1.223.101.256.1", "frp256v1"},
   36|      1|      {"1.2.392.200011.61.1.1.1.2", "Camellia-128/CBC"},
   37|      1|      {"1.2.392.200011.61.1.1.1.3", "Camellia-192/CBC"},
   38|      1|      {"1.2.392.200011.61.1.1.1.4", "Camellia-256/CBC"},
   39|      1|      {"1.2.410.200004.1.100.4.3", "ECKCDSA/SHA-1"},
   40|      1|      {"1.2.410.200004.1.100.4.4", "ECKCDSA/SHA-224"},
   41|      1|      {"1.2.410.200004.1.100.4.5", "ECKCDSA/SHA-256"},
   42|      1|      {"1.2.410.200004.1.4", "SEED/CBC"},
   43|      1|      {"1.2.643.100.1", "GOST.OGRN"},
   44|      1|      {"1.2.643.100.111", "GOST.SubjectSigningTool"},
   45|      1|      {"1.2.643.100.112", "GOST.IssuerSigningTool"},
   46|      1|      {"1.2.643.2.2.19", "GOST-34.10"},
   47|      1|      {"1.2.643.2.2.3", "GOST-34.10/GOST-R-34.11-94"},
   48|      1|      {"1.2.643.2.2.35.1", "gost_256A"},
   49|      1|      {"1.2.643.2.2.36.0", "gost_256A"},
   50|      1|      {"1.2.643.3.131.1.1", "GOST.INN"},
   51|      1|      {"1.2.643.7.1.1.1.1", "GOST-34.10-2012-256"},
   52|      1|      {"1.2.643.7.1.1.1.2", "GOST-34.10-2012-512"},
   53|      1|      {"1.2.643.7.1.1.2.2", "Streebog-256"},
   54|      1|      {"1.2.643.7.1.1.2.3", "Streebog-512"},
   55|      1|      {"1.2.643.7.1.1.3.2", "GOST-34.10-2012-256/Streebog-256"},
   56|      1|      {"1.2.643.7.1.1.3.3", "GOST-34.10-2012-512/Streebog-512"},
   57|      1|      {"1.2.643.7.1.2.1.1.1", "gost_256A"},
   58|      1|      {"1.2.643.7.1.2.1.1.2", "gost_256B"},
   59|      1|      {"1.2.643.7.1.2.1.2.1", "gost_512A"},
   60|      1|      {"1.2.643.7.1.2.1.2.2", "gost_512B"},
   61|      1|      {"1.2.840.10040.4.1", "DSA"},
   62|      1|      {"1.2.840.10040.4.3", "DSA/SHA-1"},
   63|      1|      {"1.2.840.10045.2.1", "ECDSA"},
   64|      1|      {"1.2.840.10045.3.1.1", "secp192r1"},
   65|      1|      {"1.2.840.10045.3.1.2", "x962_p192v2"},
   66|      1|      {"1.2.840.10045.3.1.3", "x962_p192v3"},
   67|      1|      {"1.2.840.10045.3.1.4", "x962_p239v1"},
   68|      1|      {"1.2.840.10045.3.1.5", "x962_p239v2"},
   69|      1|      {"1.2.840.10045.3.1.6", "x962_p239v3"},
   70|      1|      {"1.2.840.10045.3.1.7", "secp256r1"},
   71|      1|      {"1.2.840.10045.4.1", "ECDSA/SHA-1"},
   72|      1|      {"1.2.840.10045.4.3.1", "ECDSA/SHA-224"},
   73|      1|      {"1.2.840.10045.4.3.2", "ECDSA/SHA-256"},
   74|      1|      {"1.2.840.10045.4.3.3", "ECDSA/SHA-384"},
   75|      1|      {"1.2.840.10045.4.3.4", "ECDSA/SHA-512"},
   76|      1|      {"1.2.840.10046.2.1", "DH"},
   77|      1|      {"1.2.840.113533.7.66.10", "CAST-128/CBC"},
   78|      1|      {"1.2.840.113533.7.66.15", "KeyWrap.CAST-128"},
   79|      1|      {"1.2.840.113549.1.1.1", "RSA"},
   80|      1|      {"1.2.840.113549.1.1.10", "RSA/EMSA4"},
   81|      1|      {"1.2.840.113549.1.1.11", "RSA/EMSA3(SHA-256)"},
   82|      1|      {"1.2.840.113549.1.1.12", "RSA/EMSA3(SHA-384)"},
   83|      1|      {"1.2.840.113549.1.1.13", "RSA/EMSA3(SHA-512)"},
   84|      1|      {"1.2.840.113549.1.1.14", "RSA/EMSA3(SHA-224)"},
   85|      1|      {"1.2.840.113549.1.1.16", "RSA/EMSA3(SHA-512-256)"},
   86|      1|      {"1.2.840.113549.1.1.4", "RSA/EMSA3(MD5)"},
   87|      1|      {"1.2.840.113549.1.1.5", "RSA/EMSA3(SHA-1)"},
   88|      1|      {"1.2.840.113549.1.1.7", "RSA/OAEP"},
   89|      1|      {"1.2.840.113549.1.1.8", "MGF1"},
   90|      1|      {"1.2.840.113549.1.5.12", "PKCS5.PBKDF2"},
   91|      1|      {"1.2.840.113549.1.5.13", "PBE-PKCS5v20"},
   92|      1|      {"1.2.840.113549.1.9.1", "PKCS9.EmailAddress"},
   93|      1|      {"1.2.840.113549.1.9.14", "PKCS9.ExtensionRequest"},
   94|      1|      {"1.2.840.113549.1.9.16.3.18", "ChaCha20Poly1305"},
   95|      1|      {"1.2.840.113549.1.9.16.3.6", "KeyWrap.TripleDES"},
   96|      1|      {"1.2.840.113549.1.9.16.3.8", "Compression.Zlib"},
   97|      1|      {"1.2.840.113549.1.9.2", "PKCS9.UnstructuredName"},
   98|      1|      {"1.2.840.113549.1.9.3", "PKCS9.ContentType"},
   99|      1|      {"1.2.840.113549.1.9.4", "PKCS9.MessageDigest"},
  100|      1|      {"1.2.840.113549.1.9.7", "PKCS9.ChallengePassword"},
  101|      1|      {"1.2.840.113549.2.10", "HMAC(SHA-384)"},
  102|      1|      {"1.2.840.113549.2.11", "HMAC(SHA-512)"},
  103|      1|      {"1.2.840.113549.2.13", "HMAC(SHA-512-256)"},
  104|      1|      {"1.2.840.113549.2.5", "MD5"},
  105|      1|      {"1.2.840.113549.2.7", "HMAC(SHA-1)"},
  106|      1|      {"1.2.840.113549.2.8", "HMAC(SHA-224)"},
  107|      1|      {"1.2.840.113549.2.9", "HMAC(SHA-256)"},
  108|      1|      {"1.2.840.113549.3.7", "TripleDES/CBC"},
  109|      1|      {"1.3.101.110", "Curve25519"},
  110|      1|      {"1.3.101.112", "Ed25519"},
  111|      1|      {"1.3.132.0.10", "secp256k1"},
  112|      1|      {"1.3.132.0.30", "secp160r2"},
  113|      1|      {"1.3.132.0.31", "secp192k1"},
  114|      1|      {"1.3.132.0.32", "secp224k1"},
  115|      1|      {"1.3.132.0.33", "secp224r1"},
  116|      1|      {"1.3.132.0.34", "secp384r1"},
  117|      1|      {"1.3.132.0.35", "secp521r1"},
  118|      1|      {"1.3.132.0.8", "secp160r1"},
  119|      1|      {"1.3.132.0.9", "secp160k1"},
  120|      1|      {"1.3.132.1.12", "ECDH"},
  121|      1|      {"1.3.14.3.2.26", "SHA-1"},
  122|      1|      {"1.3.14.3.2.7", "DES/CBC"},
  123|      1|      {"1.3.36.3.2.1", "RIPEMD-160"},
  124|      1|      {"1.3.36.3.3.1.2", "RSA/EMSA3(RIPEMD-160)"},
  125|      1|      {"1.3.36.3.3.2.5.2.1", "ECGDSA"},
  126|      1|      {"1.3.36.3.3.2.5.4.1", "ECGDSA/RIPEMD-160"},
  127|      1|      {"1.3.36.3.3.2.5.4.2", "ECGDSA/SHA-1"},
  128|      1|      {"1.3.36.3.3.2.5.4.3", "ECGDSA/SHA-224"},
  129|      1|      {"1.3.36.3.3.2.5.4.4", "ECGDSA/SHA-256"},
  130|      1|      {"1.3.36.3.3.2.5.4.5", "ECGDSA/SHA-384"},
  131|      1|      {"1.3.36.3.3.2.5.4.6", "ECGDSA/SHA-512"},
  132|      1|      {"1.3.36.3.3.2.8.1.1.1", "brainpool160r1"},
  133|      1|      {"1.3.36.3.3.2.8.1.1.11", "brainpool384r1"},
  134|      1|      {"1.3.36.3.3.2.8.1.1.13", "brainpool512r1"},
  135|      1|      {"1.3.36.3.3.2.8.1.1.3", "brainpool192r1"},
  136|      1|      {"1.3.36.3.3.2.8.1.1.5", "brainpool224r1"},
  137|      1|      {"1.3.36.3.3.2.8.1.1.7", "brainpool256r1"},
  138|      1|      {"1.3.36.3.3.2.8.1.1.9", "brainpool320r1"},
  139|      1|      {"1.3.6.1.4.1.11591.15.1", "OpenPGP.Ed25519"},
  140|      1|      {"1.3.6.1.4.1.11591.4.11", "Scrypt"},
  141|      1|      {"1.3.6.1.4.1.25258.1.10.1", "Dilithium-4x4-AES-r3"},
  142|      1|      {"1.3.6.1.4.1.25258.1.10.2", "Dilithium-6x5-AES-r3"},
  143|      1|      {"1.3.6.1.4.1.25258.1.10.3", "Dilithium-8x7-AES-r3"},
  144|      1|      {"1.3.6.1.4.1.25258.1.11.1", "Kyber-512-90s-r3"},
  145|      1|      {"1.3.6.1.4.1.25258.1.11.2", "Kyber-768-90s-r3"},
  146|      1|      {"1.3.6.1.4.1.25258.1.11.3", "Kyber-1024-90s-r3"},
  147|      1|      {"1.3.6.1.4.1.25258.1.3", "McEliece"},
  148|      1|      {"1.3.6.1.4.1.25258.1.5", "XMSS-draft6"},
  149|      1|      {"1.3.6.1.4.1.25258.1.6.1", "GOST-34.10-2012-256/SHA-256"},
  150|      1|      {"1.3.6.1.4.1.25258.1.7.1", "Kyber-512-r3"},
  151|      1|      {"1.3.6.1.4.1.25258.1.7.2", "Kyber-768-r3"},
  152|      1|      {"1.3.6.1.4.1.25258.1.7.3", "Kyber-1024-r3"},
  153|      1|      {"1.3.6.1.4.1.25258.1.8", "XMSS-draft12"},
  154|      1|      {"1.3.6.1.4.1.25258.1.9.1", "Dilithium-4x4-r3"},
  155|      1|      {"1.3.6.1.4.1.25258.1.9.2", "Dilithium-6x5-r3"},
  156|      1|      {"1.3.6.1.4.1.25258.1.9.3", "Dilithium-8x7-r3"},
  157|      1|      {"1.3.6.1.4.1.25258.3.1", "Serpent/CBC"},
  158|      1|      {"1.3.6.1.4.1.25258.3.101", "Serpent/GCM"},
  159|      1|      {"1.3.6.1.4.1.25258.3.102", "Twofish/GCM"},
  160|      1|      {"1.3.6.1.4.1.25258.3.2", "Threefish-512/CBC"},
  161|      1|      {"1.3.6.1.4.1.25258.3.2.1", "AES-128/OCB"},
  162|      1|      {"1.3.6.1.4.1.25258.3.2.2", "AES-192/OCB"},
  163|      1|      {"1.3.6.1.4.1.25258.3.2.3", "AES-256/OCB"},
  164|      1|      {"1.3.6.1.4.1.25258.3.2.4", "Serpent/OCB"},
  165|      1|      {"1.3.6.1.4.1.25258.3.2.5", "Twofish/OCB"},
  166|      1|      {"1.3.6.1.4.1.25258.3.2.6", "Camellia-128/OCB"},
  167|      1|      {"1.3.6.1.4.1.25258.3.2.7", "Camellia-192/OCB"},
  168|      1|      {"1.3.6.1.4.1.25258.3.2.8", "Camellia-256/OCB"},
  169|      1|      {"1.3.6.1.4.1.25258.3.3", "Twofish/CBC"},
  170|      1|      {"1.3.6.1.4.1.25258.3.4.1", "AES-128/SIV"},
  171|      1|      {"1.3.6.1.4.1.25258.3.4.2", "AES-192/SIV"},
  172|      1|      {"1.3.6.1.4.1.25258.3.4.3", "AES-256/SIV"},
  173|      1|      {"1.3.6.1.4.1.25258.3.4.4", "Serpent/SIV"},
  174|      1|      {"1.3.6.1.4.1.25258.3.4.5", "Twofish/SIV"},
  175|      1|      {"1.3.6.1.4.1.25258.3.4.6", "Camellia-128/SIV"},
  176|      1|      {"1.3.6.1.4.1.25258.3.4.7", "Camellia-192/SIV"},
  177|      1|      {"1.3.6.1.4.1.25258.3.4.8", "Camellia-256/SIV"},
  178|      1|      {"1.3.6.1.4.1.25258.3.4.9", "SM4/SIV"},
  179|      1|      {"1.3.6.1.4.1.3029.1.2.1", "ElGamal"},
  180|      1|      {"1.3.6.1.4.1.3029.1.5.1", "OpenPGP.Curve25519"},
  181|      1|      {"1.3.6.1.4.1.311.20.2.2", "Microsoft SmartcardLogon"},
  182|      1|      {"1.3.6.1.4.1.311.20.2.3", "Microsoft UPN"},
  183|      1|      {"1.3.6.1.4.1.8301.3.1.2.9.0.38", "secp521r1"},
  184|      1|      {"1.3.6.1.5.5.7.1.1", "PKIX.AuthorityInformationAccess"},
  185|      1|      {"1.3.6.1.5.5.7.3.1", "PKIX.ServerAuth"},
  186|      1|      {"1.3.6.1.5.5.7.3.2", "PKIX.ClientAuth"},
  187|      1|      {"1.3.6.1.5.5.7.3.3", "PKIX.CodeSigning"},
  188|      1|      {"1.3.6.1.5.5.7.3.4", "PKIX.EmailProtection"},
  189|      1|      {"1.3.6.1.5.5.7.3.5", "PKIX.IPsecEndSystem"},
  190|      1|      {"1.3.6.1.5.5.7.3.6", "PKIX.IPsecTunnel"},
  191|      1|      {"1.3.6.1.5.5.7.3.7", "PKIX.IPsecUser"},
  192|      1|      {"1.3.6.1.5.5.7.3.8", "PKIX.TimeStamping"},
  193|      1|      {"1.3.6.1.5.5.7.3.9", "PKIX.OCSPSigning"},
  194|      1|      {"1.3.6.1.5.5.7.48.1", "PKIX.OCSP"},
  195|      1|      {"1.3.6.1.5.5.7.48.1.1", "PKIX.OCSP.BasicResponse"},
  196|      1|      {"1.3.6.1.5.5.7.48.1.5", "PKIX.OCSP.NoCheck"},
  197|      1|      {"1.3.6.1.5.5.7.48.2", "PKIX.CertificateAuthorityIssuers"},
  198|      1|      {"1.3.6.1.5.5.7.8.5", "PKIX.XMPPAddr"},
  199|      1|      {"2.16.840.1.101.3.4.1.2", "AES-128/CBC"},
  200|      1|      {"2.16.840.1.101.3.4.1.22", "AES-192/CBC"},
  201|      1|      {"2.16.840.1.101.3.4.1.25", "KeyWrap.AES-192"},
  202|      1|      {"2.16.840.1.101.3.4.1.26", "AES-192/GCM"},
  203|      1|      {"2.16.840.1.101.3.4.1.27", "AES-192/CCM"},
  204|      1|      {"2.16.840.1.101.3.4.1.42", "AES-256/CBC"},
  205|      1|      {"2.16.840.1.101.3.4.1.45", "KeyWrap.AES-256"},
  206|      1|      {"2.16.840.1.101.3.4.1.46", "AES-256/GCM"},
  207|      1|      {"2.16.840.1.101.3.4.1.47", "AES-256/CCM"},
  208|      1|      {"2.16.840.1.101.3.4.1.5", "KeyWrap.AES-128"},
  209|      1|      {"2.16.840.1.101.3.4.1.6", "AES-128/GCM"},
  210|      1|      {"2.16.840.1.101.3.4.1.7", "AES-128/CCM"},
  211|      1|      {"2.16.840.1.101.3.4.2.1", "SHA-256"},
  212|      1|      {"2.16.840.1.101.3.4.2.10", "SHA-3(512)"},
  213|      1|      {"2.16.840.1.101.3.4.2.11", "SHAKE-128"},
  214|      1|      {"2.16.840.1.101.3.4.2.12", "SHAKE-256"},
  215|      1|      {"2.16.840.1.101.3.4.2.2", "SHA-384"},
  216|      1|      {"2.16.840.1.101.3.4.2.3", "SHA-512"},
  217|      1|      {"2.16.840.1.101.3.4.2.4", "SHA-224"},
  218|      1|      {"2.16.840.1.101.3.4.2.6", "SHA-512-256"},
  219|      1|      {"2.16.840.1.101.3.4.2.7", "SHA-3(224)"},
  220|      1|      {"2.16.840.1.101.3.4.2.8", "SHA-3(256)"},
  221|      1|      {"2.16.840.1.101.3.4.2.9", "SHA-3(384)"},
  222|      1|      {"2.16.840.1.101.3.4.3.1", "DSA/SHA-224"},
  223|      1|      {"2.16.840.1.101.3.4.3.10", "ECDSA/SHA-3(256)"},
  224|      1|      {"2.16.840.1.101.3.4.3.11", "ECDSA/SHA-3(384)"},
  225|      1|      {"2.16.840.1.101.3.4.3.12", "ECDSA/SHA-3(512)"},
  226|      1|      {"2.16.840.1.101.3.4.3.13", "RSA/EMSA3(SHA-3(224))"},
  227|      1|      {"2.16.840.1.101.3.4.3.14", "RSA/EMSA3(SHA-3(256))"},
  228|      1|      {"2.16.840.1.101.3.4.3.15", "RSA/EMSA3(SHA-3(384))"},
  229|      1|      {"2.16.840.1.101.3.4.3.16", "RSA/EMSA3(SHA-3(512))"},
  230|      1|      {"2.16.840.1.101.3.4.3.2", "DSA/SHA-256"},
  231|      1|      {"2.16.840.1.101.3.4.3.3", "DSA/SHA-384"},
  232|      1|      {"2.16.840.1.101.3.4.3.4", "DSA/SHA-512"},
  233|      1|      {"2.16.840.1.101.3.4.3.5", "DSA/SHA-3(224)"},
  234|      1|      {"2.16.840.1.101.3.4.3.6", "DSA/SHA-3(256)"},
  235|      1|      {"2.16.840.1.101.3.4.3.7", "DSA/SHA-3(384)"},
  236|      1|      {"2.16.840.1.101.3.4.3.8", "DSA/SHA-3(512)"},
  237|      1|      {"2.16.840.1.101.3.4.3.9", "ECDSA/SHA-3(224)"},
  238|      1|      {"2.16.840.1.113730.1.13", "Certificate Comment"},
  239|      1|      {"2.5.29.14", "X509v3.SubjectKeyIdentifier"},
  240|      1|      {"2.5.29.15", "X509v3.KeyUsage"},
  241|      1|      {"2.5.29.16", "X509v3.PrivateKeyUsagePeriod"},
  242|      1|      {"2.5.29.17", "X509v3.SubjectAlternativeName"},
  243|      1|      {"2.5.29.18", "X509v3.IssuerAlternativeName"},
  244|      1|      {"2.5.29.19", "X509v3.BasicConstraints"},
  245|      1|      {"2.5.29.20", "X509v3.CRLNumber"},
  246|      1|      {"2.5.29.21", "X509v3.ReasonCode"},
  247|      1|      {"2.5.29.23", "X509v3.HoldInstructionCode"},
  248|      1|      {"2.5.29.24", "X509v3.InvalidityDate"},
  249|      1|      {"2.5.29.28", "X509v3.CRLIssuingDistributionPoint"},
  250|      1|      {"2.5.29.30", "X509v3.NameConstraints"},
  251|      1|      {"2.5.29.31", "X509v3.CRLDistributionPoints"},
  252|      1|      {"2.5.29.32", "X509v3.CertificatePolicies"},
  253|      1|      {"2.5.29.32.0", "X509v3.AnyPolicy"},
  254|      1|      {"2.5.29.35", "X509v3.AuthorityKeyIdentifier"},
  255|      1|      {"2.5.29.36", "X509v3.PolicyConstraints"},
  256|      1|      {"2.5.29.37", "X509v3.ExtendedKeyUsage"},
  257|      1|      {"2.5.4.10", "X520.Organization"},
  258|      1|      {"2.5.4.11", "X520.OrganizationalUnit"},
  259|      1|      {"2.5.4.12", "X520.Title"},
  260|      1|      {"2.5.4.3", "X520.CommonName"},
  261|      1|      {"2.5.4.4", "X520.Surname"},
  262|      1|      {"2.5.4.42", "X520.GivenName"},
  263|      1|      {"2.5.4.43", "X520.Initials"},
  264|      1|      {"2.5.4.44", "X520.GenerationalQualifier"},
  265|      1|      {"2.5.4.46", "X520.DNQualifier"},
  266|      1|      {"2.5.4.5", "X520.SerialNumber"},
  267|      1|      {"2.5.4.6", "X520.Country"},
  268|      1|      {"2.5.4.65", "X520.Pseudonym"},
  269|      1|      {"2.5.4.7", "X520.Locality"},
  270|      1|      {"2.5.4.8", "X520.State"},
  271|      1|      {"2.5.4.9", "X520.StreetAddress"},
  272|      1|      {"2.5.8.1.1", "RSA"}};
  273|      1|}
_ZN5Botan7OID_Map16load_str2oid_mapEv:
  275|      1|std::unordered_map<std::string, OID> OID_Map::load_str2oid_map() {
  276|      1|   return std::unordered_map<std::string, OID>{
  277|       |
  278|      1|      {"AES-128/CBC", OID({2, 16, 840, 1, 101, 3, 4, 1, 2})},
  279|      1|      {"AES-128/CCM", OID({2, 16, 840, 1, 101, 3, 4, 1, 7})},
  280|      1|      {"AES-128/GCM", OID({2, 16, 840, 1, 101, 3, 4, 1, 6})},
  281|      1|      {"AES-128/OCB", OID({1, 3, 6, 1, 4, 1, 25258, 3, 2, 1})},
  282|      1|      {"AES-128/SIV", OID({1, 3, 6, 1, 4, 1, 25258, 3, 4, 1})},
  283|      1|      {"AES-192/CBC", OID({2, 16, 840, 1, 101, 3, 4, 1, 22})},
  284|      1|      {"AES-192/CCM", OID({2, 16, 840, 1, 101, 3, 4, 1, 27})},
  285|      1|      {"AES-192/GCM", OID({2, 16, 840, 1, 101, 3, 4, 1, 26})},
  286|      1|      {"AES-192/OCB", OID({1, 3, 6, 1, 4, 1, 25258, 3, 2, 2})},
  287|      1|      {"AES-192/SIV", OID({1, 3, 6, 1, 4, 1, 25258, 3, 4, 2})},
  288|      1|      {"AES-256/CBC", OID({2, 16, 840, 1, 101, 3, 4, 1, 42})},
  289|      1|      {"AES-256/CCM", OID({2, 16, 840, 1, 101, 3, 4, 1, 47})},
  290|      1|      {"AES-256/GCM", OID({2, 16, 840, 1, 101, 3, 4, 1, 46})},
  291|      1|      {"AES-256/OCB", OID({1, 3, 6, 1, 4, 1, 25258, 3, 2, 3})},
  292|      1|      {"AES-256/SIV", OID({1, 3, 6, 1, 4, 1, 25258, 3, 4, 3})},
  293|      1|      {"CAST-128/CBC", OID({1, 2, 840, 113533, 7, 66, 10})},
  294|      1|      {"Camellia-128/CBC", OID({1, 2, 392, 200011, 61, 1, 1, 1, 2})},
  295|      1|      {"Camellia-128/GCM", OID({0, 3, 4401, 5, 3, 1, 9, 6})},
  296|      1|      {"Camellia-128/OCB", OID({1, 3, 6, 1, 4, 1, 25258, 3, 2, 6})},
  297|      1|      {"Camellia-128/SIV", OID({1, 3, 6, 1, 4, 1, 25258, 3, 4, 6})},
  298|      1|      {"Camellia-192/CBC", OID({1, 2, 392, 200011, 61, 1, 1, 1, 3})},
  299|      1|      {"Camellia-192/GCM", OID({0, 3, 4401, 5, 3, 1, 9, 26})},
  300|      1|      {"Camellia-192/OCB", OID({1, 3, 6, 1, 4, 1, 25258, 3, 2, 7})},
  301|      1|      {"Camellia-192/SIV", OID({1, 3, 6, 1, 4, 1, 25258, 3, 4, 7})},
  302|      1|      {"Camellia-256/CBC", OID({1, 2, 392, 200011, 61, 1, 1, 1, 4})},
  303|      1|      {"Camellia-256/GCM", OID({0, 3, 4401, 5, 3, 1, 9, 46})},
  304|      1|      {"Camellia-256/OCB", OID({1, 3, 6, 1, 4, 1, 25258, 3, 2, 8})},
  305|      1|      {"Camellia-256/SIV", OID({1, 3, 6, 1, 4, 1, 25258, 3, 4, 8})},
  306|      1|      {"Certificate Comment", OID({2, 16, 840, 1, 113730, 1, 13})},
  307|      1|      {"ChaCha20Poly1305", OID({1, 2, 840, 113549, 1, 9, 16, 3, 18})},
  308|      1|      {"Compression.Zlib", OID({1, 2, 840, 113549, 1, 9, 16, 3, 8})},
  309|      1|      {"Curve25519", OID({1, 3, 101, 110})},
  310|      1|      {"DES/CBC", OID({1, 3, 14, 3, 2, 7})},
  311|      1|      {"DH", OID({1, 2, 840, 10046, 2, 1})},
  312|      1|      {"DSA", OID({1, 2, 840, 10040, 4, 1})},
  313|      1|      {"DSA/SHA-1", OID({1, 2, 840, 10040, 4, 3})},
  314|      1|      {"DSA/SHA-224", OID({2, 16, 840, 1, 101, 3, 4, 3, 1})},
  315|      1|      {"DSA/SHA-256", OID({2, 16, 840, 1, 101, 3, 4, 3, 2})},
  316|      1|      {"DSA/SHA-3(224)", OID({2, 16, 840, 1, 101, 3, 4, 3, 5})},
  317|      1|      {"DSA/SHA-3(256)", OID({2, 16, 840, 1, 101, 3, 4, 3, 6})},
  318|      1|      {"DSA/SHA-3(384)", OID({2, 16, 840, 1, 101, 3, 4, 3, 7})},
  319|      1|      {"DSA/SHA-3(512)", OID({2, 16, 840, 1, 101, 3, 4, 3, 8})},
  320|      1|      {"DSA/SHA-384", OID({2, 16, 840, 1, 101, 3, 4, 3, 3})},
  321|      1|      {"DSA/SHA-512", OID({2, 16, 840, 1, 101, 3, 4, 3, 4})},
  322|      1|      {"Dilithium-4x4-AES-r3", OID({1, 3, 6, 1, 4, 1, 25258, 1, 10, 1})},
  323|      1|      {"Dilithium-4x4-r3", OID({1, 3, 6, 1, 4, 1, 25258, 1, 9, 1})},
  324|      1|      {"Dilithium-6x5-AES-r3", OID({1, 3, 6, 1, 4, 1, 25258, 1, 10, 2})},
  325|      1|      {"Dilithium-6x5-r3", OID({1, 3, 6, 1, 4, 1, 25258, 1, 9, 2})},
  326|      1|      {"Dilithium-8x7-AES-r3", OID({1, 3, 6, 1, 4, 1, 25258, 1, 10, 3})},
  327|      1|      {"Dilithium-8x7-r3", OID({1, 3, 6, 1, 4, 1, 25258, 1, 9, 3})},
  328|      1|      {"ECDH", OID({1, 3, 132, 1, 12})},
  329|      1|      {"ECDSA", OID({1, 2, 840, 10045, 2, 1})},
  330|      1|      {"ECDSA/SHA-1", OID({1, 2, 840, 10045, 4, 1})},
  331|      1|      {"ECDSA/SHA-224", OID({1, 2, 840, 10045, 4, 3, 1})},
  332|      1|      {"ECDSA/SHA-256", OID({1, 2, 840, 10045, 4, 3, 2})},
  333|      1|      {"ECDSA/SHA-3(224)", OID({2, 16, 840, 1, 101, 3, 4, 3, 9})},
  334|      1|      {"ECDSA/SHA-3(256)", OID({2, 16, 840, 1, 101, 3, 4, 3, 10})},
  335|      1|      {"ECDSA/SHA-3(384)", OID({2, 16, 840, 1, 101, 3, 4, 3, 11})},
  336|      1|      {"ECDSA/SHA-3(512)", OID({2, 16, 840, 1, 101, 3, 4, 3, 12})},
  337|      1|      {"ECDSA/SHA-384", OID({1, 2, 840, 10045, 4, 3, 3})},
  338|      1|      {"ECDSA/SHA-512", OID({1, 2, 840, 10045, 4, 3, 4})},
  339|      1|      {"ECGDSA", OID({1, 3, 36, 3, 3, 2, 5, 2, 1})},
  340|      1|      {"ECGDSA/RIPEMD-160", OID({1, 3, 36, 3, 3, 2, 5, 4, 1})},
  341|      1|      {"ECGDSA/SHA-1", OID({1, 3, 36, 3, 3, 2, 5, 4, 2})},
  342|      1|      {"ECGDSA/SHA-224", OID({1, 3, 36, 3, 3, 2, 5, 4, 3})},
  343|      1|      {"ECGDSA/SHA-256", OID({1, 3, 36, 3, 3, 2, 5, 4, 4})},
  344|      1|      {"ECGDSA/SHA-384", OID({1, 3, 36, 3, 3, 2, 5, 4, 5})},
  345|      1|      {"ECGDSA/SHA-512", OID({1, 3, 36, 3, 3, 2, 5, 4, 6})},
  346|      1|      {"ECKCDSA", OID({1, 0, 14888, 3, 0, 5})},
  347|      1|      {"ECKCDSA/SHA-1", OID({1, 2, 410, 200004, 1, 100, 4, 3})},
  348|      1|      {"ECKCDSA/SHA-224", OID({1, 2, 410, 200004, 1, 100, 4, 4})},
  349|      1|      {"ECKCDSA/SHA-256", OID({1, 2, 410, 200004, 1, 100, 4, 5})},
  350|      1|      {"Ed25519", OID({1, 3, 101, 112})},
  351|      1|      {"ElGamal", OID({1, 3, 6, 1, 4, 1, 3029, 1, 2, 1})},
  352|      1|      {"GOST-34.10", OID({1, 2, 643, 2, 2, 19})},
  353|      1|      {"GOST-34.10-2012-256", OID({1, 2, 643, 7, 1, 1, 1, 1})},
  354|      1|      {"GOST-34.10-2012-256/SHA-256", OID({1, 3, 6, 1, 4, 1, 25258, 1, 6, 1})},
  355|      1|      {"GOST-34.10-2012-256/Streebog-256", OID({1, 2, 643, 7, 1, 1, 3, 2})},
  356|      1|      {"GOST-34.10-2012-512", OID({1, 2, 643, 7, 1, 1, 1, 2})},
  357|      1|      {"GOST-34.10-2012-512/Streebog-512", OID({1, 2, 643, 7, 1, 1, 3, 3})},
  358|      1|      {"GOST-34.10/GOST-R-34.11-94", OID({1, 2, 643, 2, 2, 3})},
  359|      1|      {"GOST.INN", OID({1, 2, 643, 3, 131, 1, 1})},
  360|      1|      {"GOST.IssuerSigningTool", OID({1, 2, 643, 100, 112})},
  361|      1|      {"GOST.OGRN", OID({1, 2, 643, 100, 1})},
  362|      1|      {"GOST.SubjectSigningTool", OID({1, 2, 643, 100, 111})},
  363|      1|      {"HMAC(SHA-1)", OID({1, 2, 840, 113549, 2, 7})},
  364|      1|      {"HMAC(SHA-224)", OID({1, 2, 840, 113549, 2, 8})},
  365|      1|      {"HMAC(SHA-256)", OID({1, 2, 840, 113549, 2, 9})},
  366|      1|      {"HMAC(SHA-384)", OID({1, 2, 840, 113549, 2, 10})},
  367|      1|      {"HMAC(SHA-512)", OID({1, 2, 840, 113549, 2, 11})},
  368|      1|      {"HMAC(SHA-512-256)", OID({1, 2, 840, 113549, 2, 13})},
  369|      1|      {"KeyWrap.AES-128", OID({2, 16, 840, 1, 101, 3, 4, 1, 5})},
  370|      1|      {"KeyWrap.AES-192", OID({2, 16, 840, 1, 101, 3, 4, 1, 25})},
  371|      1|      {"KeyWrap.AES-256", OID({2, 16, 840, 1, 101, 3, 4, 1, 45})},
  372|      1|      {"KeyWrap.CAST-128", OID({1, 2, 840, 113533, 7, 66, 15})},
  373|      1|      {"KeyWrap.TripleDES", OID({1, 2, 840, 113549, 1, 9, 16, 3, 6})},
  374|      1|      {"Kyber-1024-90s-r3", OID({1, 3, 6, 1, 4, 1, 25258, 1, 11, 3})},
  375|      1|      {"Kyber-1024-r3", OID({1, 3, 6, 1, 4, 1, 25258, 1, 7, 3})},
  376|      1|      {"Kyber-512-90s-r3", OID({1, 3, 6, 1, 4, 1, 25258, 1, 11, 1})},
  377|      1|      {"Kyber-512-r3", OID({1, 3, 6, 1, 4, 1, 25258, 1, 7, 1})},
  378|      1|      {"Kyber-768-90s-r3", OID({1, 3, 6, 1, 4, 1, 25258, 1, 11, 2})},
  379|      1|      {"Kyber-768-r3", OID({1, 3, 6, 1, 4, 1, 25258, 1, 7, 2})},
  380|      1|      {"MD5", OID({1, 2, 840, 113549, 2, 5})},
  381|      1|      {"MGF1", OID({1, 2, 840, 113549, 1, 1, 8})},
  382|      1|      {"McEliece", OID({1, 3, 6, 1, 4, 1, 25258, 1, 3})},
  383|      1|      {"Microsoft SmartcardLogon", OID({1, 3, 6, 1, 4, 1, 311, 20, 2, 2})},
  384|      1|      {"Microsoft UPN", OID({1, 3, 6, 1, 4, 1, 311, 20, 2, 3})},
  385|      1|      {"OpenPGP.Curve25519", OID({1, 3, 6, 1, 4, 1, 3029, 1, 5, 1})},
  386|      1|      {"OpenPGP.Ed25519", OID({1, 3, 6, 1, 4, 1, 11591, 15, 1})},
  387|      1|      {"PBE-PKCS5v20", OID({1, 2, 840, 113549, 1, 5, 13})},
  388|      1|      {"PBES2", OID({1, 2, 840, 113549, 1, 5, 13})},
  389|      1|      {"PKCS5.PBKDF2", OID({1, 2, 840, 113549, 1, 5, 12})},
  390|      1|      {"PKCS9.ChallengePassword", OID({1, 2, 840, 113549, 1, 9, 7})},
  391|      1|      {"PKCS9.ContentType", OID({1, 2, 840, 113549, 1, 9, 3})},
  392|      1|      {"PKCS9.EmailAddress", OID({1, 2, 840, 113549, 1, 9, 1})},
  393|      1|      {"PKCS9.ExtensionRequest", OID({1, 2, 840, 113549, 1, 9, 14})},
  394|      1|      {"PKCS9.MessageDigest", OID({1, 2, 840, 113549, 1, 9, 4})},
  395|      1|      {"PKCS9.UnstructuredName", OID({1, 2, 840, 113549, 1, 9, 2})},
  396|      1|      {"PKIX.AuthorityInformationAccess", OID({1, 3, 6, 1, 5, 5, 7, 1, 1})},
  397|      1|      {"PKIX.CertificateAuthorityIssuers", OID({1, 3, 6, 1, 5, 5, 7, 48, 2})},
  398|      1|      {"PKIX.ClientAuth", OID({1, 3, 6, 1, 5, 5, 7, 3, 2})},
  399|      1|      {"PKIX.CodeSigning", OID({1, 3, 6, 1, 5, 5, 7, 3, 3})},
  400|      1|      {"PKIX.EmailProtection", OID({1, 3, 6, 1, 5, 5, 7, 3, 4})},
  401|      1|      {"PKIX.IPsecEndSystem", OID({1, 3, 6, 1, 5, 5, 7, 3, 5})},
  402|      1|      {"PKIX.IPsecTunnel", OID({1, 3, 6, 1, 5, 5, 7, 3, 6})},
  403|      1|      {"PKIX.IPsecUser", OID({1, 3, 6, 1, 5, 5, 7, 3, 7})},
  404|      1|      {"PKIX.OCSP", OID({1, 3, 6, 1, 5, 5, 7, 48, 1})},
  405|      1|      {"PKIX.OCSP.BasicResponse", OID({1, 3, 6, 1, 5, 5, 7, 48, 1, 1})},
  406|      1|      {"PKIX.OCSP.NoCheck", OID({1, 3, 6, 1, 5, 5, 7, 48, 1, 5})},
  407|      1|      {"PKIX.OCSPSigning", OID({1, 3, 6, 1, 5, 5, 7, 3, 9})},
  408|      1|      {"PKIX.ServerAuth", OID({1, 3, 6, 1, 5, 5, 7, 3, 1})},
  409|      1|      {"PKIX.TimeStamping", OID({1, 3, 6, 1, 5, 5, 7, 3, 8})},
  410|      1|      {"PKIX.XMPPAddr", OID({1, 3, 6, 1, 5, 5, 7, 8, 5})},
  411|      1|      {"RIPEMD-160", OID({1, 3, 36, 3, 2, 1})},
  412|      1|      {"RSA", OID({1, 2, 840, 113549, 1, 1, 1})},
  413|      1|      {"RSA/EMSA3(MD5)", OID({1, 2, 840, 113549, 1, 1, 4})},
  414|      1|      {"RSA/EMSA3(RIPEMD-160)", OID({1, 3, 36, 3, 3, 1, 2})},
  415|      1|      {"RSA/EMSA3(SHA-1)", OID({1, 2, 840, 113549, 1, 1, 5})},
  416|      1|      {"RSA/EMSA3(SHA-224)", OID({1, 2, 840, 113549, 1, 1, 14})},
  417|      1|      {"RSA/EMSA3(SHA-256)", OID({1, 2, 840, 113549, 1, 1, 11})},
  418|      1|      {"RSA/EMSA3(SHA-3(224))", OID({2, 16, 840, 1, 101, 3, 4, 3, 13})},
  419|      1|      {"RSA/EMSA3(SHA-3(256))", OID({2, 16, 840, 1, 101, 3, 4, 3, 14})},
  420|      1|      {"RSA/EMSA3(SHA-3(384))", OID({2, 16, 840, 1, 101, 3, 4, 3, 15})},
  421|      1|      {"RSA/EMSA3(SHA-3(512))", OID({2, 16, 840, 1, 101, 3, 4, 3, 16})},
  422|      1|      {"RSA/EMSA3(SHA-384)", OID({1, 2, 840, 113549, 1, 1, 12})},
  423|      1|      {"RSA/EMSA3(SHA-512)", OID({1, 2, 840, 113549, 1, 1, 13})},
  424|      1|      {"RSA/EMSA3(SHA-512-256)", OID({1, 2, 840, 113549, 1, 1, 16})},
  425|      1|      {"RSA/EMSA3(SM3)", OID({1, 2, 156, 10197, 1, 504})},
  426|      1|      {"RSA/EMSA4", OID({1, 2, 840, 113549, 1, 1, 10})},
  427|      1|      {"RSA/OAEP", OID({1, 2, 840, 113549, 1, 1, 7})},
  428|      1|      {"SEED/CBC", OID({1, 2, 410, 200004, 1, 4})},
  429|      1|      {"SHA-1", OID({1, 3, 14, 3, 2, 26})},
  430|      1|      {"SHA-224", OID({2, 16, 840, 1, 101, 3, 4, 2, 4})},
  431|      1|      {"SHA-256", OID({2, 16, 840, 1, 101, 3, 4, 2, 1})},
  432|      1|      {"SHA-3(224)", OID({2, 16, 840, 1, 101, 3, 4, 2, 7})},
  433|      1|      {"SHA-3(256)", OID({2, 16, 840, 1, 101, 3, 4, 2, 8})},
  434|      1|      {"SHA-3(384)", OID({2, 16, 840, 1, 101, 3, 4, 2, 9})},
  435|      1|      {"SHA-3(512)", OID({2, 16, 840, 1, 101, 3, 4, 2, 10})},
  436|      1|      {"SHA-384", OID({2, 16, 840, 1, 101, 3, 4, 2, 2})},
  437|      1|      {"SHA-512", OID({2, 16, 840, 1, 101, 3, 4, 2, 3})},
  438|      1|      {"SHA-512-256", OID({2, 16, 840, 1, 101, 3, 4, 2, 6})},
  439|      1|      {"SHAKE-128", OID({2, 16, 840, 1, 101, 3, 4, 2, 11})},
  440|      1|      {"SHAKE-256", OID({2, 16, 840, 1, 101, 3, 4, 2, 12})},
  441|      1|      {"SM2", OID({1, 2, 156, 10197, 1, 301, 1})},
  442|      1|      {"SM2_Enc", OID({1, 2, 156, 10197, 1, 301, 3})},
  443|      1|      {"SM2_Kex", OID({1, 2, 156, 10197, 1, 301, 2})},
  444|      1|      {"SM2_Sig", OID({1, 2, 156, 10197, 1, 301, 1})},
  445|      1|      {"SM2_Sig/SM3", OID({1, 2, 156, 10197, 1, 501})},
  446|      1|      {"SM3", OID({1, 2, 156, 10197, 1, 401})},
  447|      1|      {"SM4/CBC", OID({1, 2, 156, 10197, 1, 104, 2})},
  448|      1|      {"SM4/GCM", OID({1, 2, 156, 10197, 1, 104, 8})},
  449|      1|      {"SM4/OCB", OID({1, 2, 156, 10197, 1, 104, 100})},
  450|      1|      {"SM4/SIV", OID({1, 3, 6, 1, 4, 1, 25258, 3, 4, 9})},
  451|      1|      {"Scrypt", OID({1, 3, 6, 1, 4, 1, 11591, 4, 11})},
  452|      1|      {"Serpent/CBC", OID({1, 3, 6, 1, 4, 1, 25258, 3, 1})},
  453|      1|      {"Serpent/GCM", OID({1, 3, 6, 1, 4, 1, 25258, 3, 101})},
  454|      1|      {"Serpent/OCB", OID({1, 3, 6, 1, 4, 1, 25258, 3, 2, 4})},
  455|      1|      {"Serpent/SIV", OID({1, 3, 6, 1, 4, 1, 25258, 3, 4, 4})},
  456|      1|      {"Streebog-256", OID({1, 2, 643, 7, 1, 1, 2, 2})},
  457|      1|      {"Streebog-512", OID({1, 2, 643, 7, 1, 1, 2, 3})},
  458|      1|      {"Threefish-512/CBC", OID({1, 3, 6, 1, 4, 1, 25258, 3, 2})},
  459|      1|      {"TripleDES/CBC", OID({1, 2, 840, 113549, 3, 7})},
  460|      1|      {"Twofish/CBC", OID({1, 3, 6, 1, 4, 1, 25258, 3, 3})},
  461|      1|      {"Twofish/GCM", OID({1, 3, 6, 1, 4, 1, 25258, 3, 102})},
  462|      1|      {"Twofish/OCB", OID({1, 3, 6, 1, 4, 1, 25258, 3, 2, 5})},
  463|      1|      {"Twofish/SIV", OID({1, 3, 6, 1, 4, 1, 25258, 3, 4, 5})},
  464|      1|      {"X509v3.AnyPolicy", OID({2, 5, 29, 32, 0})},
  465|      1|      {"X509v3.AuthorityKeyIdentifier", OID({2, 5, 29, 35})},
  466|      1|      {"X509v3.BasicConstraints", OID({2, 5, 29, 19})},
  467|      1|      {"X509v3.CRLDistributionPoints", OID({2, 5, 29, 31})},
  468|      1|      {"X509v3.CRLIssuingDistributionPoint", OID({2, 5, 29, 28})},
  469|      1|      {"X509v3.CRLNumber", OID({2, 5, 29, 20})},
  470|      1|      {"X509v3.CertificatePolicies", OID({2, 5, 29, 32})},
  471|      1|      {"X509v3.ExtendedKeyUsage", OID({2, 5, 29, 37})},
  472|      1|      {"X509v3.HoldInstructionCode", OID({2, 5, 29, 23})},
  473|      1|      {"X509v3.InvalidityDate", OID({2, 5, 29, 24})},
  474|      1|      {"X509v3.IssuerAlternativeName", OID({2, 5, 29, 18})},
  475|      1|      {"X509v3.KeyUsage", OID({2, 5, 29, 15})},
  476|      1|      {"X509v3.NameConstraints", OID({2, 5, 29, 30})},
  477|      1|      {"X509v3.PolicyConstraints", OID({2, 5, 29, 36})},
  478|      1|      {"X509v3.PrivateKeyUsagePeriod", OID({2, 5, 29, 16})},
  479|      1|      {"X509v3.ReasonCode", OID({2, 5, 29, 21})},
  480|      1|      {"X509v3.SubjectAlternativeName", OID({2, 5, 29, 17})},
  481|      1|      {"X509v3.SubjectKeyIdentifier", OID({2, 5, 29, 14})},
  482|      1|      {"X520.CommonName", OID({2, 5, 4, 3})},
  483|      1|      {"X520.Country", OID({2, 5, 4, 6})},
  484|      1|      {"X520.DNQualifier", OID({2, 5, 4, 46})},
  485|      1|      {"X520.GenerationalQualifier", OID({2, 5, 4, 44})},
  486|      1|      {"X520.GivenName", OID({2, 5, 4, 42})},
  487|      1|      {"X520.Initials", OID({2, 5, 4, 43})},
  488|      1|      {"X520.Locality", OID({2, 5, 4, 7})},
  489|      1|      {"X520.Organization", OID({2, 5, 4, 10})},
  490|      1|      {"X520.OrganizationalUnit", OID({2, 5, 4, 11})},
  491|      1|      {"X520.Pseudonym", OID({2, 5, 4, 65})},
  492|      1|      {"X520.SerialNumber", OID({2, 5, 4, 5})},
  493|      1|      {"X520.State", OID({2, 5, 4, 8})},
  494|      1|      {"X520.StreetAddress", OID({2, 5, 4, 9})},
  495|      1|      {"X520.Surname", OID({2, 5, 4, 4})},
  496|      1|      {"X520.Title", OID({2, 5, 4, 12})},
  497|      1|      {"XMSS", OID({0, 4, 0, 127, 0, 15, 1, 1, 13, 0})},
  498|      1|      {"XMSS-draft12", OID({1, 3, 6, 1, 4, 1, 25258, 1, 8})},
  499|      1|      {"XMSS-draft6", OID({1, 3, 6, 1, 4, 1, 25258, 1, 5})},
  500|      1|      {"brainpool160r1", OID({1, 3, 36, 3, 3, 2, 8, 1, 1, 1})},
  501|      1|      {"brainpool192r1", OID({1, 3, 36, 3, 3, 2, 8, 1, 1, 3})},
  502|      1|      {"brainpool224r1", OID({1, 3, 36, 3, 3, 2, 8, 1, 1, 5})},
  503|      1|      {"brainpool256r1", OID({1, 3, 36, 3, 3, 2, 8, 1, 1, 7})},
  504|      1|      {"brainpool320r1", OID({1, 3, 36, 3, 3, 2, 8, 1, 1, 9})},
  505|      1|      {"brainpool384r1", OID({1, 3, 36, 3, 3, 2, 8, 1, 1, 11})},
  506|      1|      {"brainpool512r1", OID({1, 3, 36, 3, 3, 2, 8, 1, 1, 13})},
  507|      1|      {"frp256v1", OID({1, 2, 250, 1, 223, 101, 256, 1})},
  508|      1|      {"gost_256A", OID({1, 2, 643, 7, 1, 2, 1, 1, 1})},
  509|      1|      {"gost_256B", OID({1, 2, 643, 7, 1, 2, 1, 1, 2})},
  510|      1|      {"gost_512A", OID({1, 2, 643, 7, 1, 2, 1, 2, 1})},
  511|      1|      {"gost_512B", OID({1, 2, 643, 7, 1, 2, 1, 2, 2})},
  512|      1|      {"secp160k1", OID({1, 3, 132, 0, 9})},
  513|      1|      {"secp160r1", OID({1, 3, 132, 0, 8})},
  514|      1|      {"secp160r2", OID({1, 3, 132, 0, 30})},
  515|      1|      {"secp192k1", OID({1, 3, 132, 0, 31})},
  516|      1|      {"secp192r1", OID({1, 2, 840, 10045, 3, 1, 1})},
  517|      1|      {"secp224k1", OID({1, 3, 132, 0, 32})},
  518|      1|      {"secp224r1", OID({1, 3, 132, 0, 33})},
  519|      1|      {"secp256k1", OID({1, 3, 132, 0, 10})},
  520|      1|      {"secp256r1", OID({1, 2, 840, 10045, 3, 1, 7})},
  521|      1|      {"secp384r1", OID({1, 3, 132, 0, 34})},
  522|      1|      {"secp521r1", OID({1, 3, 132, 0, 35})},
  523|      1|      {"sm2p256v1", OID({1, 2, 156, 10197, 1, 301})},
  524|      1|      {"x962_p192v2", OID({1, 2, 840, 10045, 3, 1, 2})},
  525|      1|      {"x962_p192v3", OID({1, 2, 840, 10045, 3, 1, 3})},
  526|      1|      {"x962_p239v1", OID({1, 2, 840, 10045, 3, 1, 4})},
  527|      1|      {"x962_p239v2", OID({1, 2, 840, 10045, 3, 1, 5})},
  528|      1|      {"x962_p239v3", OID({1, 2, 840, 10045, 3, 1, 6})}};
  529|      1|}

_ZN5Botan13base64_decodeEPKcmb:
  174|    192|secure_vector<uint8_t> base64_decode(const char input[], size_t input_length, bool ignore_ws) {
  175|    192|   return base_decode_to_vec<secure_vector<uint8_t>>(Base64(), input, input_length, ignore_ws);
  176|    192|}
base64.cpp:_ZN5Botan12_GLOBAL__N_16Base6417decode_max_outputEm:
   41|    384|      static inline size_t decode_max_output(size_t input_length) {
   42|    384|         return (round_up(input_length, m_encoding_bytes_out) * m_encoding_bytes_in) / m_encoding_bytes_out;
   43|    384|      }
base64.cpp:_ZN5Botan12_GLOBAL__N_16Base6417decoding_bytes_inEv:
   29|    192|      static inline size_t decoding_bytes_in() noexcept { return m_encoding_bytes_out; }
base64.cpp:_ZN5Botan12_GLOBAL__N_16Base6418decoding_bytes_outEv:
   31|    192|      static inline size_t decoding_bytes_out() noexcept { return m_encoding_bytes_in; }
base64.cpp:_ZN5Botan12_GLOBAL__N_16Base6419lookup_binary_valueEc:
  103|  32.7k|uint8_t Base64::lookup_binary_value(char input) noexcept {
  104|  32.7k|   const uint8_t c = static_cast<uint8_t>(input);
  105|       |
  106|  32.7k|   const auto is_alpha_upper = CT::Mask<uint8_t>::is_within_range(c, uint8_t('A'), uint8_t('Z'));
  107|  32.7k|   const auto is_alpha_lower = CT::Mask<uint8_t>::is_within_range(c, uint8_t('a'), uint8_t('z'));
  108|  32.7k|   const auto is_decimal = CT::Mask<uint8_t>::is_within_range(c, uint8_t('0'), uint8_t('9'));
  109|       |
  110|  32.7k|   const auto is_plus = CT::Mask<uint8_t>::is_equal(c, uint8_t('+'));
  111|  32.7k|   const auto is_slash = CT::Mask<uint8_t>::is_equal(c, uint8_t('/'));
  112|  32.7k|   const auto is_equal = CT::Mask<uint8_t>::is_equal(c, uint8_t('='));
  113|       |
  114|  32.7k|   const auto is_whitespace =
  115|  32.7k|      CT::Mask<uint8_t>::is_any_of(c, {uint8_t(' '), uint8_t('\t'), uint8_t('\n'), uint8_t('\r')});
  116|       |
  117|  32.7k|   const uint8_t c_upper = c - uint8_t('A');
  118|  32.7k|   const uint8_t c_lower = c - uint8_t('a') + 26;
  119|  32.7k|   const uint8_t c_decim = c - uint8_t('0') + 2 * 26;
  120|       |
  121|  32.7k|   uint8_t ret = 0xFF;  // default value
  122|       |
  123|  32.7k|   ret = is_alpha_upper.select(c_upper, ret);
  124|  32.7k|   ret = is_alpha_lower.select(c_lower, ret);
  125|  32.7k|   ret = is_decimal.select(c_decim, ret);
  126|  32.7k|   ret = is_plus.select(62, ret);
  127|  32.7k|   ret = is_slash.select(63, ret);
  128|  32.7k|   ret = is_equal.select(0x81, ret);
  129|  32.7k|   ret = is_whitespace.select(0x80, ret);
  130|       |
  131|  32.7k|   return ret;
  132|  32.7k|}
base64.cpp:_ZN5Botan12_GLOBAL__N_16Base6414check_bad_charEhcb:
  135|  32.1k|bool Base64::check_bad_char(uint8_t bin, char input, bool ignore_ws) {
  136|  32.1k|   if(bin <= 0x3F) {
  ------------------
  |  Branch (136:7): [True: 22.5k, False: 9.68k]
  ------------------
  137|  22.5k|      return true;
  138|  22.5k|   } else if(!(bin == 0x81 || (bin == 0x80 && ignore_ws))) {
  ------------------
  |  Branch (138:16): [True: 7.63k, False: 2.04k]
  |  Branch (138:32): [True: 2.01k, False: 36]
  |  Branch (138:47): [True: 2.01k, False: 0]
  ------------------
  139|     36|      throw Invalid_Argument(fmt("base64_decode: invalid character '{}'", format_char_for_display(input)));
  140|     36|   }
  141|  9.64k|   return false;
  142|  32.1k|}
base64.cpp:_ZN5Botan12_GLOBAL__N_16Base646decodeEPhPKh:
   51|  5.64k|      static void decode(uint8_t* out_ptr, const uint8_t decode_buf[4]) {
   52|  5.64k|         out_ptr[0] = (decode_buf[0] << 2) | (decode_buf[1] >> 4);
   53|  5.64k|         out_ptr[1] = (decode_buf[1] << 4) | (decode_buf[2] >> 2);
   54|  5.64k|         out_ptr[2] = (decode_buf[2] << 6) | decode_buf[3];
   55|  5.64k|      }
base64.cpp:_ZN5Botan12_GLOBAL__N_16Base6415bytes_to_removeEm:
   57|    156|      static inline size_t bytes_to_remove(size_t final_truncate) { return final_truncate; }
base64.cpp:_ZN5Botan12_GLOBAL__N_16Base644nameEv:
   23|     27|      static inline std::string name() noexcept { return "base64"; }

_ZN5Botan6BigIntC2EPKhm:
   91|  6.79k|BigInt::BigInt(const uint8_t input[], size_t length) { binary_decode(input, length); }
_ZNK5Botan6BigInt7byte_atEm:
  119|  6.45k|uint8_t BigInt::byte_at(size_t n) const {
  120|  6.45k|   return get_byte_var(sizeof(word) - (n % sizeof(word)) - 1, word_at(n / sizeof(word)));
  121|  6.45k|}
_ZNK5Botan6BigInt4Data14calc_sig_wordsEv:
  192|  6.75k|size_t BigInt::Data::calc_sig_words() const {
  193|  6.75k|   const size_t sz = m_reg.size();
  194|  6.75k|   size_t sig = sz;
  195|       |
  196|  6.75k|   word sub = 1;
  197|       |
  198|  70.1k|   for(size_t i = 0; i != sz; ++i) {
  ------------------
  |  Branch (198:22): [True: 63.4k, False: 6.75k]
  ------------------
  199|  63.4k|      const word w = m_reg[sz - i - 1];
  200|  63.4k|      sub &= ct_is_zero(w);
  201|  63.4k|      sig -= sub;
  202|  63.4k|   }
  203|       |
  204|       |   /*
  205|       |   * This depends on the data so is poisoned, but unpoison it here as
  206|       |   * later conditionals are made on the size.
  207|       |   */
  208|  6.75k|   CT::unpoison(sig);
  209|       |
  210|  6.75k|   return sig;
  211|  6.75k|}
_ZNK5Botan6BigInt5bytesEv:
  271|  10.0k|size_t BigInt::bytes() const { return round_up(bits(), 8) / 8; }
_ZNK5Botan6BigInt13top_bits_freeEv:
  273|  10.4k|size_t BigInt::top_bits_free() const {
  274|  10.4k|   const size_t words = sig_words();
  275|       |
  276|  10.4k|   const word top_word = word_at(words - 1);
  277|  10.4k|   const size_t bits_used = high_bit(top_word);
  278|  10.4k|   CT::unpoison(bits_used);
  279|  10.4k|   return BOTAN_MP_WORD_BITS - bits_used;
  ------------------
  |  |   50|  10.4k|#define BOTAN_MP_WORD_BITS 64
  ------------------
  280|  10.4k|}
_ZNK5Botan6BigInt4bitsEv:
  282|  11.8k|size_t BigInt::bits() const {
  283|  11.8k|   const size_t words = sig_words();
  284|       |
  285|  11.8k|   if(words == 0) {
  ------------------
  |  Branch (285:7): [True: 1.46k, False: 10.4k]
  ------------------
  286|  1.46k|      return 0;
  287|  1.46k|   }
  288|       |
  289|  10.4k|   const size_t full_words = (words - 1) * BOTAN_MP_WORD_BITS;
  ------------------
  |  |   50|  10.4k|#define BOTAN_MP_WORD_BITS 64
  ------------------
  290|  10.4k|   const size_t top_bits = BOTAN_MP_WORD_BITS - top_bits_free();
  ------------------
  |  |   50|  10.4k|#define BOTAN_MP_WORD_BITS 64
  ------------------
  291|       |
  292|  10.4k|   return full_words + top_bits;
  293|  11.8k|}
_ZNK5Botan6BigInt13binary_encodeEPh:
  367|  5.01k|void BigInt::binary_encode(uint8_t buf[]) const { this->binary_encode(buf, bytes()); }
_ZNK5Botan6BigInt13binary_encodeEPhm:
  372|  5.01k|void BigInt::binary_encode(uint8_t output[], size_t len) const {
  373|  5.01k|   const size_t full_words = len / sizeof(word);
  374|  5.01k|   const size_t extra_bytes = len % sizeof(word);
  375|       |
  376|  11.1k|   for(size_t i = 0; i != full_words; ++i) {
  ------------------
  |  Branch (376:22): [True: 6.14k, False: 5.01k]
  ------------------
  377|  6.14k|      const word w = word_at(i);
  378|  6.14k|      store_be(w, output + (len - (i + 1) * sizeof(word)));
  379|  6.14k|   }
  380|       |
  381|  5.01k|   if(extra_bytes > 0) {
  ------------------
  |  Branch (381:7): [True: 3.79k, False: 1.22k]
  ------------------
  382|  3.79k|      const word w = word_at(full_words);
  383|       |
  384|  14.7k|      for(size_t i = 0; i != extra_bytes; ++i) {
  ------------------
  |  Branch (384:25): [True: 10.9k, False: 3.79k]
  ------------------
  385|  10.9k|         output[extra_bytes - i - 1] = get_byte_var(sizeof(word) - i - 1, w);
  386|  10.9k|      }
  387|  3.79k|   }
  388|  5.01k|}
_ZN5Botan6BigInt13binary_decodeEPKhm:
  393|  6.79k|void BigInt::binary_decode(const uint8_t buf[], size_t length) {
  394|  6.79k|   clear();
  395|       |
  396|  6.79k|   const size_t full_words = length / sizeof(word);
  397|  6.79k|   const size_t extra_bytes = length % sizeof(word);
  398|       |
  399|  6.79k|   secure_vector<word> reg((round_up(full_words + (extra_bytes > 0 ? 1 : 0), 8)));
  ------------------
  |  Branch (399:52): [True: 6.12k, False: 672]
  ------------------
  400|       |
  401|  18.7k|   for(size_t i = 0; i != full_words; ++i) {
  ------------------
  |  Branch (401:22): [True: 11.9k, False: 6.79k]
  ------------------
  402|  11.9k|      reg[i] = load_be<word>(buf + length - sizeof(word) * (i + 1), 0);
  403|  11.9k|   }
  404|       |
  405|  6.79k|   if(extra_bytes > 0) {
  ------------------
  |  Branch (405:7): [True: 6.12k, False: 672]
  ------------------
  406|  21.1k|      for(size_t i = 0; i != extra_bytes; ++i) {
  ------------------
  |  Branch (406:25): [True: 15.0k, False: 6.12k]
  ------------------
  407|  15.0k|         reg[full_words] = (reg[full_words] << 8) | buf[i];
  408|  15.0k|      }
  409|  6.12k|   }
  410|       |
  411|  6.79k|   m_data.swap(reg);
  412|  6.79k|}

_ZN5Botan8PEM_Code6decodeERNS_10DataSourceERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE:
   62|    366|secure_vector<uint8_t> decode(DataSource& source, std::string& label) {
   63|    366|   const size_t RANDOM_CHAR_LIMIT = 8;
   64|       |
   65|    366|   label.clear();
   66|       |
   67|    366|   const std::string PEM_HEADER1 = "-----BEGIN ";
   68|    366|   const std::string PEM_HEADER2 = "-----";
   69|    366|   size_t position = 0;
   70|       |
   71|  13.9k|   while(position != PEM_HEADER1.length()) {
  ------------------
  |  Branch (71:10): [True: 13.6k, False: 322]
  ------------------
   72|  13.6k|      uint8_t b;
   73|  13.6k|      if(!source.read_byte(b)) {
  ------------------
  |  Branch (73:10): [True: 43, False: 13.5k]
  ------------------
   74|     43|         throw Decoding_Error("PEM: No PEM header found");
   75|     43|      }
   76|  13.5k|      if(static_cast<char>(b) == PEM_HEADER1[position]) {
  ------------------
  |  Branch (76:10): [True: 3.78k, False: 9.77k]
  ------------------
   77|  3.78k|         ++position;
   78|  9.77k|      } else if(position >= RANDOM_CHAR_LIMIT) {
  ------------------
  |  Branch (78:17): [True: 1, False: 9.77k]
  ------------------
   79|      1|         throw Decoding_Error("PEM: Malformed PEM header");
   80|  9.77k|      } else {
   81|  9.77k|         position = 0;
   82|  9.77k|      }
   83|  13.5k|   }
   84|    322|   position = 0;
   85|  58.0k|   while(position != PEM_HEADER2.length()) {
  ------------------
  |  Branch (85:10): [True: 57.7k, False: 286]
  ------------------
   86|  57.7k|      uint8_t b;
   87|  57.7k|      if(!source.read_byte(b)) {
  ------------------
  |  Branch (87:10): [True: 32, False: 57.7k]
  ------------------
   88|     32|         throw Decoding_Error("PEM: No PEM header found");
   89|     32|      }
   90|  57.7k|      if(static_cast<char>(b) == PEM_HEADER2[position]) {
  ------------------
  |  Branch (90:10): [True: 1.45k, False: 56.3k]
  ------------------
   91|  1.45k|         ++position;
   92|  56.3k|      } else if(position) {
  ------------------
  |  Branch (92:17): [True: 4, False: 56.2k]
  ------------------
   93|      4|         throw Decoding_Error("PEM: Malformed PEM header");
   94|      4|      }
   95|       |
   96|  57.7k|      if(position == 0) {
  ------------------
  |  Branch (96:10): [True: 56.2k, False: 1.45k]
  ------------------
   97|  56.2k|         label += static_cast<char>(b);
   98|  56.2k|      }
   99|  57.7k|   }
  100|       |
  101|    286|   std::vector<char> b64;
  102|       |
  103|    286|   const std::string PEM_TRAILER = fmt("-----END {}-----", label);
  104|    286|   position = 0;
  105|  78.1k|   while(position != PEM_TRAILER.length()) {
  ------------------
  |  Branch (105:10): [True: 77.9k, False: 192]
  ------------------
  106|  77.9k|      uint8_t b;
  107|  77.9k|      if(!source.read_byte(b)) {
  ------------------
  |  Branch (107:10): [True: 85, False: 77.8k]
  ------------------
  108|     85|         throw Decoding_Error("PEM: No PEM trailer found");
  109|     85|      }
  110|  77.8k|      if(static_cast<char>(b) == PEM_TRAILER[position]) {
  ------------------
  |  Branch (110:10): [True: 20.8k, False: 57.0k]
  ------------------
  111|  20.8k|         ++position;
  112|  57.0k|      } else if(position) {
  ------------------
  |  Branch (112:17): [True: 9, False: 57.0k]
  ------------------
  113|      9|         throw Decoding_Error("PEM: Malformed PEM trailer");
  114|      9|      }
  115|       |
  116|  77.8k|      if(position == 0) {
  ------------------
  |  Branch (116:10): [True: 57.0k, False: 20.8k]
  ------------------
  117|  57.0k|         b64.push_back(b);
  118|  57.0k|      }
  119|  77.8k|   }
  120|       |
  121|    192|   return base64_decode(b64.data(), b64.size());
  122|    286|}
_ZN5Botan8PEM_Code7matchesERNS_10DataSourceENSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEm:
  137|  3.86k|bool matches(DataSource& source, std::string_view extra, size_t search_range) {
  138|  3.86k|   const std::string PEM_HEADER = fmt("-----BEGIN {}", extra);
  139|       |
  140|  3.86k|   secure_vector<uint8_t> search_buf(search_range);
  141|  3.86k|   const size_t got = source.peek(search_buf.data(), search_buf.size(), 0);
  142|       |
  143|  3.86k|   if(got < PEM_HEADER.length()) {
  ------------------
  |  Branch (143:7): [True: 460, False: 3.40k]
  ------------------
  144|    460|      return false;
  145|    460|   }
  146|       |
  147|  3.40k|   size_t index = 0;
  148|       |
  149|  1.97M|   for(size_t j = 0; j != got; ++j) {
  ------------------
  |  Branch (149:22): [True: 1.97M, False: 3.39k]
  ------------------
  150|  1.97M|      if(static_cast<char>(search_buf[j]) == PEM_HEADER[index]) {
  ------------------
  |  Branch (150:10): [True: 6.96k, False: 1.96M]
  ------------------
  151|  6.96k|         ++index;
  152|  1.96M|      } else {
  153|  1.96M|         index = 0;
  154|  1.96M|      }
  155|       |
  156|  1.97M|      if(index == PEM_HEADER.size()) {
  ------------------
  |  Branch (156:10): [True: 12, False: 1.97M]
  ------------------
  157|     12|         return true;
  158|     12|      }
  159|  1.97M|   }
  160|       |
  161|  3.39k|   return false;
  162|  3.40k|}

_ZN5Botan22throw_invalid_argumentEPKcS1_S1_:
   21|    223|void throw_invalid_argument(const char* message, const char* func, const char* file) {
   22|    223|   throw Invalid_Argument(fmt("{} in {}:{}", message, func, file));
   23|    223|}

_ZN5Botan12ucs2_to_utf8EPKhm:
   54|    914|std::string ucs2_to_utf8(const uint8_t ucs2[], size_t len) {
   55|    914|   if(len % 2 != 0) {
  ------------------
  |  Branch (55:7): [True: 20, False: 894]
  ------------------
   56|     20|      throw Decoding_Error("Invalid length for UCS-2 string");
   57|     20|   }
   58|       |
   59|    894|   const size_t chars = len / 2;
   60|       |
   61|    894|   std::string s;
   62|  5.71k|   for(size_t i = 0; i != chars; ++i) {
  ------------------
  |  Branch (62:22): [True: 4.82k, False: 894]
  ------------------
   63|  4.82k|      const uint32_t c = load_be<uint16_t>(ucs2, i);
   64|  4.82k|      append_utf8_for(s, c);
   65|  4.82k|   }
   66|       |
   67|    894|   return s;
   68|    914|}
_ZN5Botan12ucs4_to_utf8EPKhm:
   70|    287|std::string ucs4_to_utf8(const uint8_t ucs4[], size_t len) {
   71|    287|   if(len % 4 != 0) {
  ------------------
  |  Branch (71:7): [True: 18, False: 269]
  ------------------
   72|     18|      throw Decoding_Error("Invalid length for UCS-4 string");
   73|     18|   }
   74|       |
   75|    269|   const size_t chars = len / 4;
   76|       |
   77|    269|   std::string s;
   78|    724|   for(size_t i = 0; i != chars; ++i) {
  ------------------
  |  Branch (78:22): [True: 455, False: 269]
  ------------------
   79|    455|      const uint32_t c = load_be<uint32_t>(ucs4, i);
   80|    455|      append_utf8_for(s, c);
   81|    455|   }
   82|       |
   83|    269|   return s;
   84|    287|}
_ZN5Botan14latin1_to_utf8EPKhm:
   89|    690|std::string latin1_to_utf8(const uint8_t chars[], size_t len) {
   90|    690|   std::string s;
   91|  8.39k|   for(size_t i = 0; i != len; ++i) {
  ------------------
  |  Branch (91:22): [True: 7.70k, False: 690]
  ------------------
   92|  7.70k|      const uint32_t c = static_cast<uint8_t>(chars[i]);
   93|  7.70k|      append_utf8_for(s, c);
   94|  7.70k|   }
   95|    690|   return s;
   96|    690|}
_ZN5Botan23format_char_for_displayEc:
   98|     36|std::string format_char_for_display(char c) {
   99|     36|   std::ostringstream oss;
  100|       |
  101|     36|   oss << "'";
  102|       |
  103|     36|   if(c == '\t') {
  ------------------
  |  Branch (103:7): [True: 0, False: 36]
  ------------------
  104|      0|      oss << "\\t";
  105|     36|   } else if(c == '\n') {
  ------------------
  |  Branch (105:14): [True: 0, False: 36]
  ------------------
  106|      0|      oss << "\\n";
  107|     36|   } else if(c == '\r') {
  ------------------
  |  Branch (107:14): [True: 0, False: 36]
  ------------------
  108|      0|      oss << "\\r";
  109|     36|   } else if(static_cast<unsigned char>(c) >= 128) {
  ------------------
  |  Branch (109:14): [True: 15, False: 21]
  ------------------
  110|     15|      unsigned char z = static_cast<unsigned char>(c);
  111|     15|      oss << "\\x" << std::hex << std::uppercase << static_cast<int>(z);
  112|     21|   } else {
  113|     21|      oss << c;
  114|     21|   }
  115|       |
  116|     36|   oss << "'";
  117|       |
  118|     36|   return oss.str();
  119|     36|}
charset.cpp:_ZN5Botan12_GLOBAL__N_115append_utf8_forERNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEj:
   18|  12.9k|void append_utf8_for(std::string& s, uint32_t c) {
   19|  12.9k|   if(c >= 0xD800 && c < 0xE000) {
  ------------------
  |  Branch (19:7): [True: 1.26k, False: 11.7k]
  |  Branch (19:22): [True: 49, False: 1.21k]
  ------------------
   20|     49|      throw Decoding_Error("Invalid Unicode character");
   21|     49|   }
   22|       |
   23|  12.9k|   if(c <= 0x7F) {
  ------------------
  |  Branch (23:7): [True: 5.95k, False: 6.98k]
  ------------------
   24|  5.95k|      const uint8_t b0 = static_cast<uint8_t>(c);
   25|  5.95k|      s.push_back(static_cast<char>(b0));
   26|  6.98k|   } else if(c <= 0x7FF) {
  ------------------
  |  Branch (26:14): [True: 3.15k, False: 3.82k]
  ------------------
   27|  3.15k|      const uint8_t b0 = 0xC0 | static_cast<uint8_t>(c >> 6);
   28|  3.15k|      const uint8_t b1 = 0x80 | static_cast<uint8_t>(c & 0x3F);
   29|  3.15k|      s.push_back(static_cast<char>(b0));
   30|  3.15k|      s.push_back(static_cast<char>(b1));
   31|  3.82k|   } else if(c <= 0xFFFF) {
  ------------------
  |  Branch (31:14): [True: 3.45k, False: 371]
  ------------------
   32|  3.45k|      const uint8_t b0 = 0xE0 | static_cast<uint8_t>(c >> 12);
   33|  3.45k|      const uint8_t b1 = 0x80 | static_cast<uint8_t>((c >> 6) & 0x3F);
   34|  3.45k|      const uint8_t b2 = 0x80 | static_cast<uint8_t>(c & 0x3F);
   35|  3.45k|      s.push_back(static_cast<char>(b0));
   36|  3.45k|      s.push_back(static_cast<char>(b1));
   37|  3.45k|      s.push_back(static_cast<char>(b2));
   38|  3.45k|   } else if(c <= 0x10FFFF) {
  ------------------
  |  Branch (38:14): [True: 269, False: 102]
  ------------------
   39|    269|      const uint8_t b0 = 0xF0 | static_cast<uint8_t>(c >> 18);
   40|    269|      const uint8_t b1 = 0x80 | static_cast<uint8_t>((c >> 12) & 0x3F);
   41|    269|      const uint8_t b2 = 0x80 | static_cast<uint8_t>((c >> 6) & 0x3F);
   42|    269|      const uint8_t b3 = 0x80 | static_cast<uint8_t>(c & 0x3F);
   43|    269|      s.push_back(static_cast<char>(b0));
   44|    269|      s.push_back(static_cast<char>(b1));
   45|    269|      s.push_back(static_cast<char>(b2));
   46|    269|      s.push_back(static_cast<char>(b3));
   47|    269|   } else {
   48|    102|      throw Decoding_Error("Invalid Unicode character");
   49|    102|   }
   50|  12.9k|}

_ZN5Botan10DataSource9read_byteERh:
   25|  2.57M|size_t DataSource::read_byte(uint8_t& out) { return read(&out, 1); }
_ZNK5Botan10DataSource9peek_byteERh:
   30|  4.21k|size_t DataSource::peek_byte(uint8_t& out) const { return peek(&out, 1, 0); }
_ZN5Botan10DataSource12discard_nextEm:
   35|  49.7k|size_t DataSource::discard_next(size_t n) {
   36|  49.7k|   uint8_t buf[64] = {0};
   37|  49.7k|   size_t discarded = 0;
   38|       |
   39|   144k|   while(n) {
  ------------------
  |  Branch (39:10): [True: 94.9k, False: 49.4k]
  ------------------
   40|  94.9k|      const size_t got = this->read(buf, std::min(n, sizeof(buf)));
   41|  94.9k|      discarded += got;
   42|  94.9k|      n -= got;
   43|       |
   44|  94.9k|      if(got == 0) {
  ------------------
  |  Branch (44:10): [True: 253, False: 94.6k]
  ------------------
   45|    253|         break;
   46|    253|      }
   47|  94.9k|   }
   48|       |
   49|  49.7k|   return discarded;
   50|  49.7k|}
_ZN5Botan17DataSource_Memory4readEPhm:
   55|   518k|size_t DataSource_Memory::read(uint8_t out[], size_t length) {
   56|   518k|   const size_t got = std::min<size_t>(m_source.size() - m_offset, length);
   57|   518k|   copy_mem(out, m_source.data() + m_offset, got);
   58|   518k|   m_offset += got;
   59|   518k|   return got;
   60|   518k|}
_ZN5Botan17DataSource_Memory15check_availableEm:
   62|  47.5k|bool DataSource_Memory::check_available(size_t n) { return (n <= (m_source.size() - m_offset)); }
_ZNK5Botan17DataSource_Memory4peekEPhmm:
   67|  33.2k|size_t DataSource_Memory::peek(uint8_t out[], size_t length, size_t peek_offset) const {
   68|  33.2k|   const size_t bytes_left = m_source.size() - m_offset;
   69|  33.2k|   if(peek_offset >= bytes_left) {
  ------------------
  |  Branch (69:7): [True: 12.9k, False: 20.3k]
  ------------------
   70|  12.9k|      return 0;
   71|  12.9k|   }
   72|       |
   73|  20.3k|   const size_t got = std::min(bytes_left - peek_offset, length);
   74|  20.3k|   copy_mem(out, &m_source[m_offset + peek_offset], got);
   75|  20.3k|   return got;
   76|  33.2k|}
_ZNK5Botan17DataSource_Memory11end_of_dataEv:
   81|  19.0k|bool DataSource_Memory::end_of_data() const { return (m_offset == m_source.size()); }

_ZN5Botan9ExceptionC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   71|  15.0k|Exception::Exception(std::string_view msg) : m_msg(msg) {}
_ZN5Botan9ExceptionC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEERKSt9exception:
   73|  3.07k|Exception::Exception(std::string_view msg, const std::exception& e) : m_msg(fmt("{} failed with {}", msg, e.what())) {}
_ZN5Botan9ExceptionC2EPKcNSt3__117basic_string_viewIcNS3_11char_traitsIcEEEE:
   75|     15|Exception::Exception(const char* prefix, std::string_view msg) : m_msg(fmt("{} {}", prefix, msg)) {}
_ZN5Botan16Invalid_ArgumentC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   77|    388|Invalid_Argument::Invalid_Argument(std::string_view msg) : Exception(msg) {}
_ZN5Botan14Encoding_ErrorC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  123|     15|Encoding_Error::Encoding_Error(std::string_view name) : Exception("Encoding error:", name) {}
_ZN5Botan14Decoding_ErrorC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  125|  14.6k|Decoding_Error::Decoding_Error(std::string_view name) : Exception(name) {}
_ZN5Botan14Decoding_ErrorC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEERKSt9exception:
  130|  3.07k|Decoding_Error::Decoding_Error(std::string_view msg, const std::exception& e) : Exception(msg, e) {}

_ZN5Botan15allocate_memoryEmm:
   20|   275k|BOTAN_MALLOC_FN void* allocate_memory(size_t elems, size_t elem_size) {
   21|   275k|   if(elems == 0 || elem_size == 0) {
  ------------------
  |  Branch (21:7): [True: 0, False: 275k]
  |  Branch (21:21): [True: 0, False: 275k]
  ------------------
   22|      0|      return nullptr;
   23|      0|   }
   24|       |
   25|       |   // Some calloc implementations do not check for overflow (?!?)
   26|       |
   27|   275k|   if(!BOTAN_CHECKED_MUL(elems, elem_size).has_value()) {
  ------------------
  |  |   73|   275k|#define BOTAN_CHECKED_MUL(x, y) checked_mul(x, y)
  ------------------
  |  Branch (27:7): [True: 0, False: 275k]
  ------------------
   28|      0|      throw std::bad_alloc();
   29|      0|   }
   30|       |
   31|       |#if defined(BOTAN_HAS_LOCKING_ALLOCATOR)
   32|       |   if(void* p = mlock_allocator::instance().allocate(elems, elem_size)) {
   33|       |      return p;
   34|       |   }
   35|       |#endif
   36|       |
   37|       |#if defined(BOTAN_TARGET_OS_HAS_ALLOC_CONCEAL)
   38|       |   void* ptr = ::calloc_conceal(elems, elem_size);
   39|       |#else
   40|   275k|   void* ptr = std::calloc(elems, elem_size);  // NOLINT(*-no-malloc)
   41|   275k|#endif
   42|   275k|   if(!ptr) {
  ------------------
  |  Branch (42:7): [True: 0, False: 275k]
  ------------------
   43|      0|      [[unlikely]] throw std::bad_alloc();
   44|      0|   }
   45|   275k|   return ptr;
   46|   275k|}
_ZN5Botan17deallocate_memoryEPvmm:
   48|   275k|void deallocate_memory(void* p, size_t elems, size_t elem_size) {
   49|   275k|   if(p == nullptr) {
  ------------------
  |  Branch (49:7): [True: 0, False: 275k]
  ------------------
   50|      0|      [[unlikely]] return;
   51|      0|   }
   52|       |
   53|   275k|   secure_scrub_memory(p, elems * elem_size);
   54|       |
   55|       |#if defined(BOTAN_HAS_LOCKING_ALLOCATOR)
   56|       |   if(mlock_allocator::instance().deallocate(p, elems, elem_size)) {
   57|       |      return;
   58|       |   }
   59|       |#endif
   60|       |
   61|   275k|   std::free(p);  // NOLINT(*-no-malloc)
   62|   275k|}

_ZN5Botan19secure_scrub_memoryEPvm:
   78|   275k|void secure_scrub_memory(void* ptr, size_t n) {
   79|       |#if defined(BOTAN_TARGET_OS_HAS_RTLSECUREZEROMEMORY)
   80|       |   ::RtlSecureZeroMemory(ptr, n);
   81|       |
   82|       |#elif defined(BOTAN_TARGET_OS_HAS_EXPLICIT_BZERO)
   83|   275k|   ::explicit_bzero(ptr, n);
   84|       |
   85|       |#elif defined(BOTAN_TARGET_OS_HAS_EXPLICIT_MEMSET)
   86|       |   (void)::explicit_memset(ptr, 0, n);
   87|       |
   88|       |#elif defined(BOTAN_USE_VOLATILE_MEMSET_FOR_ZERO) && (BOTAN_USE_VOLATILE_MEMSET_FOR_ZERO == 1)
   89|       |   /*
   90|       |   Call memset through a static volatile pointer, which the compiler
   91|       |   should not elide. This construct should be safe in conforming
   92|       |   compilers, but who knows. I did confirm that on x86-64 GCC 6.1 and
   93|       |   Clang 3.8 both create code that saves the memset address in the
   94|       |   data segment and unconditionally loads and jumps to that address.
   95|       |   */
   96|       |   static void* (*const volatile memset_ptr)(void*, int, size_t) = std::memset;
   97|       |   (memset_ptr)(ptr, 0, n);
   98|       |#else
   99|       |
  100|       |   volatile uint8_t* p = reinterpret_cast<volatile uint8_t*>(ptr);
  101|       |
  102|       |   for(size_t i = 0; i != n; ++i)
  103|       |      p[i] = 0;
  104|       |#endif
  105|   275k|}

_ZN5Botan9to_u32bitENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
   32|   825k|uint32_t to_u32bit(std::string_view str_view) {
   33|   825k|   const std::string str(str_view);
   34|       |
   35|       |   // std::stoul is not strict enough. Ensure that str is digit only [0-9]*
   36|  1.24M|   for(const char chr : str) {
  ------------------
  |  Branch (36:23): [True: 1.24M, False: 825k]
  ------------------
   37|  1.24M|      if(chr < '0' || chr > '9') {
  ------------------
  |  Branch (37:10): [True: 22, False: 1.24M]
  |  Branch (37:23): [True: 7, False: 1.24M]
  ------------------
   38|     29|         throw Invalid_Argument("to_u32bit invalid decimal string '" + str + "'");
   39|     29|      }
   40|  1.24M|   }
   41|       |
   42|   825k|   const unsigned long int x = std::stoul(str);
   43|       |
   44|   825k|   if constexpr(sizeof(unsigned long int) > 4) {
  ------------------
  |  Branch (44:17): [Folded - Ignored]
  ------------------
   45|       |      // x might be uint64
   46|   825k|      if(x > std::numeric_limits<uint32_t>::max()) {
  ------------------
  |  Branch (46:10): [True: 0, False: 825k]
  ------------------
   47|      0|         throw Invalid_Argument("Integer value of " + str + " exceeds 32 bit range");
   48|      0|      }
   49|   825k|   }
   50|       |
   51|   825k|   return static_cast<uint32_t>(x);
   52|   825k|}
_ZN5Botan14ipv4_to_stringEj:
  181|    917|std::string ipv4_to_string(uint32_t ip) {
  182|    917|   std::string str;
  183|    917|   uint8_t bits[4];
  184|    917|   store_be(ip, bits);
  185|       |
  186|  4.58k|   for(size_t i = 0; i != 4; ++i) {
  ------------------
  |  Branch (186:22): [True: 3.66k, False: 917]
  ------------------
  187|  3.66k|      if(i > 0) {
  ------------------
  |  Branch (187:10): [True: 2.75k, False: 917]
  ------------------
  188|  2.75k|         str += ".";
  189|  2.75k|      }
  190|  3.66k|      str += std::to_string(bits[i]);
  191|  3.66k|   }
  192|       |
  193|    917|   return str;
  194|    917|}

_ZN5Botan15AlternativeNameC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEES5_S5_S5_:
   27|  6.07k|                                 std::string_view ip) {
   28|  6.07k|   add_attribute("RFC822", email_addr);
   29|  6.07k|   add_attribute("DNS", dns);
   30|  6.07k|   add_attribute("URI", uri);
   31|  6.07k|   add_attribute("IP", ip);
   32|  6.07k|}
_ZN5Botan15AlternativeName13add_attributeENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEES5_:
   37|  33.7k|void AlternativeName::add_attribute(std::string_view type, std::string_view value) {
   38|  33.7k|   if(type.empty() || value.empty()) {
  ------------------
  |  Branch (38:7): [True: 0, False: 33.7k]
  |  Branch (38:23): [True: 25.1k, False: 8.61k]
  ------------------
   39|  25.1k|      return;
   40|  25.1k|   }
   41|       |
   42|  8.61k|   auto range = m_alt_info.equal_range(type);
   43|  44.5k|   for(auto j = range.first; j != range.second; ++j) {
  ------------------
  |  Branch (43:30): [True: 38.0k, False: 6.49k]
  ------------------
   44|  38.0k|      if(j->second == value) {
  ------------------
  |  Branch (44:10): [True: 2.12k, False: 35.9k]
  ------------------
   45|  2.12k|         return;
   46|  2.12k|      }
   47|  38.0k|   }
   48|       |
   49|  6.49k|   m_alt_info.emplace(type, value);
   50|  6.49k|}
_ZN5Botan15AlternativeName13add_othernameERKNS_3OIDENSt3__117basic_string_viewIcNS4_11char_traitsIcEEEENS_9ASN1_TypeE:
   55|  2.18k|void AlternativeName::add_othername(const OID& oid, std::string_view value, ASN1_Type type) {
   56|  2.18k|   if(value.empty()) {
  ------------------
  |  Branch (56:7): [True: 117, False: 2.06k]
  ------------------
   57|    117|      return;
   58|    117|   }
   59|  2.06k|   multimap_insert(m_othernames, oid, ASN1_String(value, type));
   60|  2.06k|}
_ZNK5Botan15AlternativeName8contentsEv:
   65|    598|std::multimap<std::string, std::string> AlternativeName::contents() const {
   66|    598|   std::multimap<std::string, std::string> names;
   67|       |
   68|  3.07k|   for(const auto& name : m_alt_info) {
  ------------------
  |  Branch (68:25): [True: 3.07k, False: 598]
  ------------------
   69|  3.07k|      names.emplace(name.first, name.second);
   70|  3.07k|   }
   71|       |
   72|  1.63k|   for(const auto& othername : m_othernames) {
  ------------------
  |  Branch (72:30): [True: 1.63k, False: 598]
  ------------------
   73|  1.63k|      multimap_insert(names, othername.first.to_formatted_string(), othername.second.value());
   74|  1.63k|   }
   75|       |
   76|    598|   return names;
   77|    598|}
_ZN5Botan15AlternativeName11decode_fromERNS_11BER_DecoderE:
  177|  2.44k|void AlternativeName::decode_from(BER_Decoder& source) {
  178|  2.44k|   BER_Decoder names = source.start_sequence();
  179|       |
  180|       |   // FIXME this is largely a duplication of GeneralName::decode_from
  181|       |
  182|  26.3k|   while(names.more_items()) {
  ------------------
  |  Branch (182:10): [True: 23.9k, False: 2.40k]
  ------------------
  183|  23.9k|      BER_Object obj = names.get_next_object();
  184|       |
  185|  23.9k|      if(obj.is_a(0, ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (185:10): [True: 3.07k, False: 20.8k]
  ------------------
  186|  3.07k|         BER_Decoder othername(obj);
  187|       |
  188|  3.07k|         OID oid;
  189|  3.07k|         othername.decode(oid);
  190|  3.07k|         if(othername.more_items()) {
  ------------------
  |  Branch (190:13): [True: 2.86k, False: 205]
  ------------------
  191|  2.86k|            BER_Object othername_value_outer = othername.get_next_object();
  192|  2.86k|            othername.verify_end();
  193|       |
  194|  2.86k|            if(othername_value_outer.is_a(0, ASN1_Class::ExplicitContextSpecific) == false) {
  ------------------
  |  Branch (194:16): [True: 36, False: 2.83k]
  ------------------
  195|     36|               throw Decoding_Error("Invalid tags on otherName value");
  196|     36|            }
  197|       |
  198|  2.83k|            BER_Decoder othername_value_inner(othername_value_outer);
  199|       |
  200|  2.83k|            BER_Object value = othername_value_inner.get_next_object();
  201|  2.83k|            othername_value_inner.verify_end();
  202|       |
  203|  2.83k|            if(ASN1_String::is_string_type(value.type()) && value.get_class() == ASN1_Class::Universal) {
  ------------------
  |  Branch (203:16): [True: 2.32k, False: 508]
  |  Branch (203:61): [True: 2.18k, False: 144]
  ------------------
  204|  2.18k|               add_othername(oid, ASN1::to_string(value), value.type());
  205|  2.18k|            }
  206|  2.83k|         }
  207|  3.07k|      }
  208|  23.8k|      if(obj.is_a(1, ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (208:10): [True: 3.25k, False: 20.6k]
  ------------------
  209|  3.25k|         add_attribute("RFC822", ASN1::to_string(obj));
  210|  20.6k|      } else if(obj.is_a(2, ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (210:17): [True: 2.43k, False: 18.1k]
  ------------------
  211|  2.43k|         add_attribute("DNS", ASN1::to_string(obj));
  212|  18.1k|      } else if(obj.is_a(6, ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (212:17): [True: 1.68k, False: 16.4k]
  ------------------
  213|  1.68k|         add_attribute("URI", ASN1::to_string(obj));
  214|  16.4k|      } else if(obj.is_a(4, ASN1_Class::ContextSpecific | ASN1_Class::Constructed)) {
  ------------------
  |  Branch (214:17): [True: 1.97k, False: 14.5k]
  ------------------
  215|  1.97k|         BER_Decoder dec(obj);
  216|  1.97k|         X509_DN dn;
  217|  1.97k|         std::stringstream ss;
  218|       |
  219|  1.97k|         dec.decode(dn);
  220|  1.97k|         ss << dn;
  221|       |
  222|  1.97k|         add_attribute("DN", ss.str());
  223|  14.5k|      } else if(obj.is_a(7, ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (223:17): [True: 757, False: 13.7k]
  ------------------
  224|    757|         if(obj.length() == 4) {
  ------------------
  |  Branch (224:13): [True: 449, False: 308]
  ------------------
  225|    449|            const uint32_t ip = load_be<uint32_t>(obj.bits(), 0);
  226|    449|            add_attribute("IP", ipv4_to_string(ip));
  227|    449|         }
  228|    757|      }
  229|  23.8k|   }
  230|  2.44k|}

_ZN5Botan9CRL_Entry11decode_fromERNS_11BER_DecoderE:
   76|  5.23k|void CRL_Entry::decode_from(BER_Decoder& source) {
   77|  5.23k|   BigInt serial_number_bn;
   78|       |
   79|  5.23k|   auto data = std::make_unique<CRL_Entry_Data>();
   80|       |
   81|  5.23k|   BER_Decoder entry = source.start_sequence();
   82|       |
   83|  5.23k|   entry.decode(serial_number_bn).decode(data->m_time);
   84|  5.23k|   data->m_serial = BigInt::encode(serial_number_bn);
   85|       |
   86|  5.23k|   if(entry.more_items()) {
  ------------------
  |  Branch (86:7): [True: 3.39k, False: 1.84k]
  ------------------
   87|  3.39k|      entry.decode(data->m_extensions);
   88|  3.39k|      if(auto ext = data->m_extensions.get_extension_object_as<Cert_Extension::CRL_ReasonCode>()) {
  ------------------
  |  Branch (88:15): [True: 200, False: 3.19k]
  ------------------
   89|    200|         data->m_reason = ext->get_reason();
   90|  3.19k|      } else {
   91|  3.19k|         data->m_reason = CRL_Code::Unspecified;
   92|  3.19k|      }
   93|  3.39k|   }
   94|       |
   95|  5.23k|   entry.end_cons();
   96|       |
   97|  5.23k|   m_data = std::move(data);
   98|  5.23k|}

_ZN5Botan11GeneralName11decode_fromERNS_11BER_DecoderE:
   34|  2.45k|void GeneralName::decode_from(BER_Decoder& ber) {
   35|  2.45k|   BER_Object obj = ber.get_next_object();
   36|       |
   37|  2.45k|   if(obj.is_a(1, ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (37:7): [True: 605, False: 1.85k]
  ------------------
   38|    605|      m_type = "RFC822";
   39|    605|      m_name = ASN1::to_string(obj);
   40|  1.85k|   } else if(obj.is_a(2, ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (40:14): [True: 253, False: 1.60k]
  ------------------
   41|    253|      m_type = "DNS";
   42|    253|      m_name = ASN1::to_string(obj);
   43|  1.60k|   } else if(obj.is_a(6, ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (43:14): [True: 685, False: 915]
  ------------------
   44|    685|      m_type = "URI";
   45|    685|      m_name = ASN1::to_string(obj);
   46|    915|   } else if(obj.is_a(4, ASN1_Class::ContextSpecific | ASN1_Class::Constructed)) {
  ------------------
  |  Branch (46:14): [True: 425, False: 490]
  ------------------
   47|    425|      m_type = "DN";
   48|    425|      X509_DN dn;
   49|    425|      BER_Decoder dec(obj);
   50|    425|      std::stringstream ss;
   51|       |
   52|    425|      dn.decode_from(dec);
   53|    425|      ss << dn;
   54|       |
   55|    425|      m_name = ss.str();
   56|    490|   } else if(obj.is_a(7, ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (56:14): [True: 372, False: 118]
  ------------------
   57|    372|      if(obj.length() == 8) {
  ------------------
  |  Branch (57:10): [True: 234, False: 138]
  ------------------
   58|    234|         m_type = "IP";
   59|    234|         m_name =
   60|    234|            ipv4_to_string(load_be<uint32_t>(obj.bits(), 0)) + "/" + ipv4_to_string(load_be<uint32_t>(obj.bits(), 1));
   61|    234|      } else if(obj.length() == 32) {
  ------------------
  |  Branch (61:17): [True: 33, False: 105]
  ------------------
   62|     33|         throw Decoding_Error("Unsupported IPv6 name constraint");
   63|    105|      } else {
   64|    105|         throw Decoding_Error("Invalid IP name constraint size " + std::to_string(obj.length()));
   65|    105|      }
   66|    372|   } else {
   67|    118|      throw Decoding_Error("Found unknown GeneralName type");
   68|    118|   }
   69|  2.45k|}
_ZN5Botan14GeneralSubtree11decode_fromERNS_11BER_DecoderE:
  200|  2.73k|void GeneralSubtree::decode_from(BER_Decoder& ber) {
  201|  2.73k|   ber.start_sequence()
  202|  2.73k|      .decode(m_base)
  203|  2.73k|      .decode_optional(m_minimum, ASN1_Type(0), ASN1_Class::ContextSpecific, size_t(0))
  204|  2.73k|      .end_cons();
  205|       |
  206|  2.73k|   if(m_minimum != 0) {
  ------------------
  |  Branch (206:7): [True: 75, False: 2.66k]
  ------------------
  207|     75|      throw Decoding_Error("GeneralSubtree minimum must be 0");
  208|     75|   }
  209|       |
  210|  2.66k|   m_maximum = std::numeric_limits<std::size_t>::max();
  211|  2.66k|}

_ZNK5Botan8X509_CRL9PEM_labelEv:
   31|  3.32k|std::string X509_CRL::PEM_label() const { return "X509 CRL"; }
_ZNK5Botan8X509_CRL20alternate_PEM_labelsEv:
   33|    127|std::vector<std::string> X509_CRL::alternate_PEM_labels() const { return {"CRL"}; }
_ZN5Botan8X509_CRLC2ERNS_10DataSourceE:
   35|  4.21k|X509_CRL::X509_CRL(DataSource& src) { load_data(src); }
_ZN5Botan8X509_CRL12force_decodeEv:
  172|  2.98k|void X509_CRL::force_decode() { m_data.reset(decode_crl_body(signed_body(), signature_algorithm()).release()); }
x509_crl.cpp:_ZN5Botan12_GLOBAL__N_115decode_crl_bodyERKNSt3__16vectorIhNS1_9allocatorIhEEEERKNS_19AlgorithmIdentifierE:
  105|  2.98k|std::unique_ptr<CRL_Data> decode_crl_body(const std::vector<uint8_t>& body, const AlgorithmIdentifier& sig_algo) {
  106|  2.98k|   auto data = std::make_unique<CRL_Data>();
  107|       |
  108|  2.98k|   BER_Decoder tbs_crl(body);
  109|       |
  110|  2.98k|   size_t version;
  111|  2.98k|   tbs_crl.decode_optional(version, ASN1_Type::Integer, ASN1_Class::Universal);
  112|       |
  113|  2.98k|   if(version != 0 && version != 1) {
  ------------------
  |  Branch (113:7): [True: 753, False: 2.23k]
  |  Branch (113:23): [True: 42, False: 711]
  ------------------
  114|     42|      throw Decoding_Error("Unknown X.509 CRL version " + std::to_string(version + 1));
  115|     42|   }
  116|       |
  117|  2.94k|   AlgorithmIdentifier sig_algo_inner;
  118|  2.94k|   tbs_crl.decode(sig_algo_inner);
  119|       |
  120|  2.94k|   if(sig_algo != sig_algo_inner) {
  ------------------
  |  Branch (120:7): [True: 98, False: 2.84k]
  ------------------
  121|     98|      throw Decoding_Error("Algorithm identifier mismatch in CRL");
  122|     98|   }
  123|       |
  124|  2.84k|   tbs_crl.decode(data->m_issuer).decode(data->m_this_update).decode(data->m_next_update);
  125|       |
  126|  2.84k|   BER_Object next = tbs_crl.get_next_object();
  127|       |
  128|  2.84k|   if(next.is_a(ASN1_Type::Sequence, ASN1_Class::Constructed)) {
  ------------------
  |  Branch (128:7): [True: 351, False: 2.49k]
  ------------------
  129|    351|      BER_Decoder cert_list(std::move(next));
  130|       |
  131|  5.59k|      while(cert_list.more_items()) {
  ------------------
  |  Branch (131:13): [True: 5.23k, False: 351]
  ------------------
  132|  5.23k|         CRL_Entry entry;
  133|  5.23k|         cert_list.decode(entry);
  134|  5.23k|         data->m_entries.push_back(entry);
  135|  5.23k|      }
  136|    351|      next = tbs_crl.get_next_object();
  137|    351|   }
  138|       |
  139|  2.84k|   if(next.is_a(0, ASN1_Class::Constructed | ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (139:7): [True: 1.53k, False: 1.31k]
  ------------------
  140|  1.53k|      BER_Decoder crl_options(std::move(next));
  141|  1.53k|      crl_options.decode(data->m_extensions).verify_end();
  142|  1.53k|      next = tbs_crl.get_next_object();
  143|  1.53k|   }
  144|       |
  145|  2.84k|   if(next.is_set()) {
  ------------------
  |  Branch (145:7): [True: 82, False: 2.76k]
  ------------------
  146|     82|      throw Decoding_Error("Unknown tag following extensions in CRL");
  147|     82|   }
  148|       |
  149|  2.76k|   tbs_crl.verify_end();
  150|       |
  151|       |   // Now cache some fields from the extensions
  152|  2.76k|   if(auto ext = data->m_extensions.get_extension_object_as<Cert_Extension::CRL_Number>()) {
  ------------------
  |  Branch (152:12): [True: 11, False: 2.75k]
  ------------------
  153|     11|      data->m_crl_number = ext->get_crl_number();
  154|     11|   }
  155|  2.76k|   if(auto ext = data->m_extensions.get_extension_object_as<Cert_Extension::Authority_Key_ID>()) {
  ------------------
  |  Branch (155:12): [True: 7, False: 2.75k]
  ------------------
  156|      7|      data->m_auth_key_id = ext->get_key_id();
  157|      7|   }
  158|  2.76k|   if(auto ext = data->m_extensions.get_extension_object_as<Cert_Extension::CRL_Issuing_Distribution_Point>()) {
  ------------------
  |  Branch (158:12): [True: 236, False: 2.52k]
  ------------------
  159|    236|      std::stringstream ss;
  160|       |
  161|    969|      for(const auto& pair : ext->get_point().contents()) {
  ------------------
  |  Branch (161:28): [True: 969, False: 236]
  ------------------
  162|    969|         ss << pair.first << ": " << pair.second << " ";
  163|    969|      }
  164|    236|      data->m_issuing_distribution_point = ss.str();
  165|    236|   }
  166|       |
  167|  2.76k|   return data;
  168|  2.84k|}

_ZN5Botan7X509_DN13add_attributeERKNS_3OIDERKNS_11ASN1_StringE:
   96|  4.24k|void X509_DN::add_attribute(const OID& oid, const ASN1_String& str) {
   97|  4.24k|   if(str.empty()) {
  ------------------
  |  Branch (97:7): [True: 189, False: 4.05k]
  ------------------
   98|    189|      return;
   99|    189|   }
  100|       |
  101|  4.05k|   m_rdn.push_back(std::make_pair(oid, str));
  102|  4.05k|   m_dn_bits.clear();
  103|  4.05k|}
_ZN5Botan7X509_DN11decode_fromERNS_11BER_DecoderE:
  341|  4.81k|void X509_DN::decode_from(BER_Decoder& source) {
  342|  4.81k|   std::vector<uint8_t> bits;
  343|       |
  344|  4.81k|   source.start_sequence().raw_bytes(bits).end_cons();
  345|       |
  346|  4.81k|   BER_Decoder sequence(bits);
  347|       |
  348|  4.81k|   m_rdn.clear();
  349|       |
  350|  9.62k|   while(sequence.more_items()) {
  ------------------
  |  Branch (350:10): [True: 4.81k, False: 4.81k]
  ------------------
  351|  4.81k|      BER_Decoder rdn = sequence.start_set();
  352|       |
  353|  9.50k|      while(rdn.more_items()) {
  ------------------
  |  Branch (353:13): [True: 4.69k, False: 4.81k]
  ------------------
  354|  4.69k|         OID oid;
  355|  4.69k|         ASN1_String str;
  356|       |
  357|  4.69k|         rdn.start_sequence()
  358|  4.69k|            .decode(oid)
  359|  4.69k|            .decode(str)  // TODO support Any
  360|  4.69k|            .end_cons();
  361|       |
  362|  4.69k|         add_attribute(oid, str);
  363|  4.69k|      }
  364|  4.81k|   }
  365|       |
  366|       |   // Have to assign last as add_attribute zaps m_dn_bits
  367|  4.81k|   m_dn_bits = bits;
  368|  4.81k|}
_ZN5BotanlsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEERKNS_7X509_DNE:
  402|  1.85k|std::ostream& operator<<(std::ostream& out, const X509_DN& dn) {
  403|  1.85k|   auto info = dn.dn_info();
  404|       |
  405|  3.41k|   for(size_t i = 0; i != info.size(); ++i) {
  ------------------
  |  Branch (405:22): [True: 1.55k, False: 1.85k]
  ------------------
  406|  1.55k|      out << to_short_form(info[i].first) << "=\"";
  407|  15.6k|      for(char c : info[i].second.value()) {
  ------------------
  |  Branch (407:18): [True: 15.6k, False: 1.55k]
  ------------------
  408|  15.6k|         if(c == '\\' || c == '\"') {
  ------------------
  |  Branch (408:13): [True: 247, False: 15.4k]
  |  Branch (408:26): [True: 261, False: 15.1k]
  ------------------
  409|    508|            out << "\\";
  410|    508|         }
  411|  15.6k|         out << c;
  412|  15.6k|      }
  413|  1.55k|      out << "\"";
  414|       |
  415|  1.55k|      if(i + 1 < info.size()) {
  ------------------
  |  Branch (415:10): [True: 402, False: 1.15k]
  ------------------
  416|    402|         out << ",";
  417|    402|      }
  418|  1.55k|   }
  419|  1.85k|   return out;
  420|  1.85k|}
x509_dn.cpp:_ZN5Botan12_GLOBAL__N_113to_short_formERKNS_3OIDE:
  372|  1.55k|std::string to_short_form(const OID& oid) {
  373|  1.55k|   std::string long_id = oid.to_formatted_string();
  374|       |
  375|  1.55k|   if(long_id == "X520.CommonName") {
  ------------------
  |  Branch (375:7): [True: 33, False: 1.52k]
  ------------------
  376|     33|      return "CN";
  377|     33|   }
  378|       |
  379|  1.52k|   if(long_id == "X520.Country") {
  ------------------
  |  Branch (379:7): [True: 62, False: 1.46k]
  ------------------
  380|     62|      return "C";
  381|     62|   }
  382|       |
  383|  1.46k|   if(long_id == "X520.Organization") {
  ------------------
  |  Branch (383:7): [True: 142, False: 1.32k]
  ------------------
  384|    142|      return "O";
  385|    142|   }
  386|       |
  387|  1.32k|   if(long_id == "X520.OrganizationalUnit") {
  ------------------
  |  Branch (387:7): [True: 166, False: 1.15k]
  ------------------
  388|    166|      return "OU";
  389|    166|   }
  390|       |
  391|  1.15k|   return long_id;
  392|  1.32k|}

_ZN5Botan10Extensions15create_extn_objERKNS_3OIDEbRKNSt3__16vectorIhNS4_9allocatorIhEEEE:
   93|  19.6k|                                                                   const std::vector<uint8_t>& body) {
   94|  19.6k|   const std::string oid_str = oid.to_string();
   95|       |
   96|  19.6k|   auto extn = extension_from_oid(oid);
   97|       |
   98|  19.6k|   if(!extn) {
  ------------------
  |  Branch (98:7): [True: 4.82k, False: 14.8k]
  ------------------
   99|       |      // some other unknown extension type
  100|  4.82k|      extn = std::make_unique<Cert_Extension::Unknown_Extension>(oid, critical);
  101|  4.82k|   }
  102|       |
  103|  19.6k|   try {
  104|  19.6k|      extn->decode_inner(body);
  105|  19.6k|   } catch(Decoding_Error&) {
  106|  11.5k|      extn = std::make_unique<Cert_Extension::Unknown_Extension>(oid, critical);
  107|  11.5k|      extn->decode_inner(body);
  108|  11.5k|   }
  109|  19.6k|   return extn;
  110|  19.6k|}
_ZNK5Botan10Extensions20get_extension_objectERKNS_3OIDE:
  188|  5.58k|const Certificate_Extension* Extensions::get_extension_object(const OID& oid) const {
  189|  5.58k|   auto extn = m_extension_info.find(oid);
  190|  5.58k|   if(extn == m_extension_info.end()) {
  ------------------
  |  Branch (190:7): [True: 4.39k, False: 1.18k]
  ------------------
  191|  4.39k|      return nullptr;
  192|  4.39k|   }
  193|       |
  194|  1.18k|   return &extn->second.obj();
  195|  5.58k|}
_ZN5Botan10Extensions11decode_fromERNS_11BER_DecoderE:
  245|  4.93k|void Extensions::decode_from(BER_Decoder& from_source) {
  246|  4.93k|   m_extension_oids.clear();
  247|  4.93k|   m_extension_info.clear();
  248|       |
  249|  4.93k|   BER_Decoder sequence = from_source.start_sequence();
  250|       |
  251|  25.3k|   while(sequence.more_items()) {
  ------------------
  |  Branch (251:10): [True: 20.4k, False: 4.93k]
  ------------------
  252|  20.4k|      OID oid;
  253|  20.4k|      bool critical;
  254|  20.4k|      std::vector<uint8_t> bits;
  255|       |
  256|  20.4k|      sequence.start_sequence()
  257|  20.4k|         .decode(oid)
  258|  20.4k|         .decode_optional(critical, ASN1_Type::Boolean, ASN1_Class::Universal, false)
  259|  20.4k|         .decode(bits, ASN1_Type::OctetString)
  260|  20.4k|         .end_cons();
  261|       |
  262|  20.4k|      auto obj = create_extn_obj(oid, critical, bits);
  263|  20.4k|      Extensions_Info info(critical, bits, std::move(obj));
  264|       |
  265|  20.4k|      m_extension_oids.push_back(oid);
  266|  20.4k|      m_extension_info.emplace(oid, info);
  267|  20.4k|   }
  268|  4.93k|   sequence.verify_end();
  269|  4.93k|}
_ZN5Botan14Cert_Extension17Basic_Constraints12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  298|    959|void Basic_Constraints::decode_inner(const std::vector<uint8_t>& in) {
  299|    959|   BER_Decoder(in)
  300|    959|      .start_sequence()
  301|    959|      .decode_optional(m_is_ca, ASN1_Type::Boolean, ASN1_Class::Universal, false)
  302|    959|      .decode_optional(m_path_limit, ASN1_Type::Integer, ASN1_Class::Universal, NO_CERT_PATH_LIMIT)
  303|    959|      .end_cons();
  304|       |
  305|    959|   if(m_is_ca == false) {
  ------------------
  |  Branch (305:7): [True: 169, False: 790]
  ------------------
  306|    169|      m_path_limit = 0;
  307|    169|   }
  308|    959|}
_ZN5Botan14Cert_Extension9Key_Usage12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  336|  1.13k|void Key_Usage::decode_inner(const std::vector<uint8_t>& in) {
  337|  1.13k|   BER_Decoder ber(in);
  338|       |
  339|  1.13k|   BER_Object obj = ber.get_next_object();
  340|       |
  341|  1.13k|   obj.assert_is_a(ASN1_Type::BitString, ASN1_Class::Universal, "usage constraint");
  342|       |
  343|  1.13k|   if(obj.length() != 2 && obj.length() != 3) {
  ------------------
  |  Branch (343:7): [True: 245, False: 885]
  |  Branch (343:28): [True: 134, False: 111]
  ------------------
  344|    134|      throw BER_Decoding_Error("Bad size for BITSTRING in usage constraint");
  345|    134|   }
  346|       |
  347|    996|   uint16_t usage = 0;
  348|       |
  349|    996|   const uint8_t* bits = obj.bits();
  350|       |
  351|    996|   if(bits[0] >= 8) {
  ------------------
  |  Branch (351:7): [True: 190, False: 806]
  ------------------
  352|    190|      throw BER_Decoding_Error("Invalid unused bits in usage constraint");
  353|    190|   }
  354|       |
  355|    806|   const uint8_t mask = static_cast<uint8_t>(0xFF << bits[0]);
  356|       |
  357|    806|   if(obj.length() == 2) {
  ------------------
  |  Branch (357:7): [True: 129, False: 677]
  ------------------
  358|    129|      usage = make_uint16(bits[1] & mask, 0);
  359|    677|   } else if(obj.length() == 3) {
  ------------------
  |  Branch (359:14): [True: 69, False: 608]
  ------------------
  360|     69|      usage = make_uint16(bits[1], bits[2] & mask);
  361|     69|   }
  362|       |
  363|    806|   m_constraints = Key_Constraints(usage);
  364|    806|}
_ZN5Botan14Cert_Extension14Subject_Key_ID12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  378|    818|void Subject_Key_ID::decode_inner(const std::vector<uint8_t>& in) {
  379|    818|   BER_Decoder(in).decode(m_key_id, ASN1_Type::OctetString).verify_end();
  380|    818|}
_ZN5Botan14Cert_Extension16Authority_Key_ID12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  415|    681|void Authority_Key_ID::decode_inner(const std::vector<uint8_t>& in) {
  416|    681|   BER_Decoder(in).start_sequence().decode_optional_string(m_key_id, ASN1_Type::OctetString, 0);
  417|    681|}
_ZN5Botan14Cert_Extension24Subject_Alternative_Name12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  440|    691|void Subject_Alternative_Name::decode_inner(const std::vector<uint8_t>& in) { BER_Decoder(in).decode(m_alt_name); }
_ZN5Botan14Cert_Extension23Issuer_Alternative_Name12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  445|    645|void Issuer_Alternative_Name::decode_inner(const std::vector<uint8_t>& in) { BER_Decoder(in).decode(m_alt_name); }
_ZN5Botan14Cert_Extension18Extended_Key_Usage12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  459|    592|void Extended_Key_Usage::decode_inner(const std::vector<uint8_t>& in) { BER_Decoder(in).decode_list(m_oids); }
_ZN5Botan14Cert_Extension16Name_Constraints12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  469|  2.46k|void Name_Constraints::decode_inner(const std::vector<uint8_t>& in) {
  470|  2.46k|   std::vector<GeneralSubtree> permit, exclude;
  471|  2.46k|   BER_Decoder ber(in);
  472|  2.46k|   BER_Decoder ext = ber.start_sequence();
  473|  2.46k|   BER_Object per = ext.get_next_object();
  474|       |
  475|  2.46k|   ext.push_back(per);
  476|  2.46k|   if(per.is_a(0, ASN1_Class::Constructed | ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (476:7): [True: 761, False: 1.70k]
  ------------------
  477|    761|      ext.decode_list(permit, ASN1_Type(0), ASN1_Class::Constructed | ASN1_Class::ContextSpecific);
  478|    761|      if(permit.empty()) {
  ------------------
  |  Branch (478:10): [True: 4, False: 757]
  ------------------
  479|      4|         throw Encoding_Error("Empty Name Contraint list");
  480|      4|      }
  481|    761|   }
  482|       |
  483|  2.46k|   BER_Object exc = ext.get_next_object();
  484|  2.46k|   ext.push_back(exc);
  485|  2.46k|   if(per.is_a(1, ASN1_Class::Constructed | ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (485:7): [True: 791, False: 1.67k]
  ------------------
  486|    791|      ext.decode_list(exclude, ASN1_Type(1), ASN1_Class::Constructed | ASN1_Class::ContextSpecific);
  487|    791|      if(exclude.empty()) {
  ------------------
  |  Branch (487:10): [True: 3, False: 788]
  ------------------
  488|      3|         throw Encoding_Error("Empty Name Contraint list");
  489|      3|      }
  490|    791|   }
  491|       |
  492|  2.46k|   ext.end_cons();
  493|       |
  494|  2.46k|   if(permit.empty() && exclude.empty()) {
  ------------------
  |  Branch (494:7): [True: 225, False: 2.23k]
  |  Branch (494:25): [True: 8, False: 217]
  ------------------
  495|      8|      throw Encoding_Error("Empty Name Contraint extension");
  496|      8|   }
  497|       |
  498|  2.45k|   m_name_constraints = NameConstraints(std::move(permit), std::move(exclude));
  499|  2.45k|}
_ZN5Botan14Cert_Extension20Certificate_Policies12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  598|  1.65k|void Certificate_Policies::decode_inner(const std::vector<uint8_t>& in) {
  599|  1.65k|   std::vector<Policy_Information> policies;
  600|       |
  601|  1.65k|   BER_Decoder(in).decode_list(policies);
  602|  1.65k|   m_oids.clear();
  603|  1.65k|   for(const auto& policy : policies) {
  ------------------
  |  Branch (603:27): [True: 369, False: 1.65k]
  ------------------
  604|    369|      m_oids.push_back(policy.oid());
  605|    369|   }
  606|  1.65k|}
_ZN5Botan14Cert_Extension28Authority_Information_Access12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  633|    240|void Authority_Information_Access::decode_inner(const std::vector<uint8_t>& in) {
  634|    240|   BER_Decoder ber = BER_Decoder(in).start_sequence();
  635|       |
  636|  1.10k|   while(ber.more_items()) {
  ------------------
  |  Branch (636:10): [True: 864, False: 240]
  ------------------
  637|    864|      OID oid;
  638|       |
  639|    864|      BER_Decoder info = ber.start_sequence();
  640|       |
  641|    864|      info.decode(oid);
  642|       |
  643|    864|      if(oid == OID::from_string("PKIX.OCSP")) {
  ------------------
  |  Branch (643:10): [True: 129, False: 735]
  ------------------
  644|    129|         BER_Object name = info.get_next_object();
  645|       |
  646|    129|         if(name.is_a(6, ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (646:13): [True: 73, False: 56]
  ------------------
  647|     73|            m_ocsp_responder = ASN1::to_string(name);
  648|     73|         }
  649|    129|      }
  650|    864|      if(oid == OID::from_string("PKIX.CertificateAuthorityIssuers")) {
  ------------------
  |  Branch (650:10): [True: 212, False: 652]
  ------------------
  651|    212|         BER_Object name = info.get_next_object();
  652|       |
  653|    212|         if(name.is_a(6, ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (653:13): [True: 145, False: 67]
  ------------------
  654|    145|            m_ca_issuers.push_back(ASN1::to_string(name));
  655|    145|         }
  656|    212|      }
  657|    864|   }
  658|    240|}
_ZNK5Botan14Cert_Extension10CRL_Number14get_crl_numberEv:
  663|     11|size_t CRL_Number::get_crl_number() const {
  664|     11|   if(!m_has_value) {
  ------------------
  |  Branch (664:7): [True: 0, False: 11]
  ------------------
  665|      0|      throw Invalid_State("CRL_Number::get_crl_number: Not set");
  666|      0|   }
  667|     11|   return m_crl_number;
  668|     11|}
_ZN5Botan14Cert_Extension10CRL_Number12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  692|    944|void CRL_Number::decode_inner(const std::vector<uint8_t>& in) {
  693|    944|   BER_Decoder(in).decode(m_crl_number);
  694|    944|   m_has_value = true;
  695|    944|}
_ZN5Botan14Cert_Extension14CRL_ReasonCode12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  709|  1.24k|void CRL_ReasonCode::decode_inner(const std::vector<uint8_t>& in) {
  710|  1.24k|   size_t reason_code = 0;
  711|  1.24k|   BER_Decoder(in).decode(reason_code, ASN1_Type::Enumerated, ASN1_Class::Universal);
  712|  1.24k|   m_reason = static_cast<CRL_Code>(reason_code);
  713|  1.24k|}
_ZN5Botan14Cert_Extension23CRL_Distribution_Points12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  719|  2.10k|void CRL_Distribution_Points::decode_inner(const std::vector<uint8_t>& buf) {
  720|  2.10k|   BER_Decoder(buf).decode_list(m_distribution_points).verify_end();
  721|       |
  722|  2.10k|   std::stringstream ss;
  723|       |
  724|  2.10k|   for(const auto& distribution_point : m_distribution_points) {
  ------------------
  |  Branch (724:39): [True: 362, False: 2.10k]
  ------------------
  725|    362|      auto contents = distribution_point.point().contents();
  726|       |
  727|  3.74k|      for(const auto& pair : contents) {
  ------------------
  |  Branch (727:28): [True: 3.74k, False: 362]
  ------------------
  728|  3.74k|         ss << pair.first << ": " << pair.second << " ";
  729|  3.74k|      }
  730|    362|   }
  731|       |
  732|  2.10k|   m_crl_distribution_urls.push_back(ss.str());
  733|  2.10k|}
_ZN5Botan14Cert_Extension23CRL_Distribution_Points18Distribution_Point11decode_fromERNS_11BER_DecoderE:
  739|  2.63k|void CRL_Distribution_Points::Distribution_Point::decode_from(BER_Decoder& ber) {
  740|  2.63k|   ber.start_sequence()
  741|  2.63k|      .start_context_specific(0)
  742|  2.63k|      .decode_optional_implicit(m_point,
  743|  2.63k|                                ASN1_Type(0),
  744|  2.63k|                                ASN1_Class::ContextSpecific | ASN1_Class::Constructed,
  745|  2.63k|                                ASN1_Type::Sequence,
  746|  2.63k|                                ASN1_Class::Constructed)
  747|  2.63k|      .end_cons()
  748|  2.63k|      .end_cons();
  749|  2.63k|}
_ZN5Botan14Cert_Extension30CRL_Issuing_Distribution_Point12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  755|    639|void CRL_Issuing_Distribution_Point::decode_inner(const std::vector<uint8_t>& buf) {
  756|    639|   BER_Decoder(buf).decode(m_distribution_point).verify_end();
  757|    639|}
_ZN5Botan14Cert_Extension17Unknown_Extension12decode_innerERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  763|  16.3k|void Unknown_Extension::decode_inner(const std::vector<uint8_t>& bytes) {
  764|       |   // Just treat as an opaque blob at this level
  765|  16.3k|   m_bytes = bytes;
  766|  16.3k|}
x509_ext.cpp:_ZN5Botan12_GLOBAL__N_118extension_from_oidERKNS_3OIDE:
   26|  19.6k|std::unique_ptr<Certificate_Extension> extension_from_oid(const OID& oid) {
   27|  19.6k|   if(oid == Cert_Extension::Subject_Key_ID::static_oid()) {
  ------------------
  |  Branch (27:7): [True: 818, False: 18.8k]
  ------------------
   28|    818|      return std::make_unique<Cert_Extension::Subject_Key_ID>();
   29|    818|   }
   30|       |
   31|  18.8k|   if(oid == Cert_Extension::Key_Usage::static_oid()) {
  ------------------
  |  Branch (31:7): [True: 1.13k, False: 17.6k]
  ------------------
   32|  1.13k|      return std::make_unique<Cert_Extension::Key_Usage>();
   33|  1.13k|   }
   34|       |
   35|  17.6k|   if(oid == Cert_Extension::Subject_Alternative_Name::static_oid()) {
  ------------------
  |  Branch (35:7): [True: 691, False: 16.9k]
  ------------------
   36|    691|      return std::make_unique<Cert_Extension::Subject_Alternative_Name>();
   37|    691|   }
   38|       |
   39|  16.9k|   if(oid == Cert_Extension::Issuer_Alternative_Name::static_oid()) {
  ------------------
  |  Branch (39:7): [True: 645, False: 16.3k]
  ------------------
   40|    645|      return std::make_unique<Cert_Extension::Issuer_Alternative_Name>();
   41|    645|   }
   42|       |
   43|  16.3k|   if(oid == Cert_Extension::Basic_Constraints::static_oid()) {
  ------------------
  |  Branch (43:7): [True: 959, False: 15.3k]
  ------------------
   44|    959|      return std::make_unique<Cert_Extension::Basic_Constraints>();
   45|    959|   }
   46|       |
   47|  15.3k|   if(oid == Cert_Extension::CRL_Number::static_oid()) {
  ------------------
  |  Branch (47:7): [True: 944, False: 14.4k]
  ------------------
   48|    944|      return std::make_unique<Cert_Extension::CRL_Number>();
   49|    944|   }
   50|       |
   51|  14.4k|   if(oid == Cert_Extension::CRL_ReasonCode::static_oid()) {
  ------------------
  |  Branch (51:7): [True: 1.24k, False: 13.2k]
  ------------------
   52|  1.24k|      return std::make_unique<Cert_Extension::CRL_ReasonCode>();
   53|  1.24k|   }
   54|       |
   55|  13.2k|   if(oid == Cert_Extension::Authority_Key_ID::static_oid()) {
  ------------------
  |  Branch (55:7): [True: 681, False: 12.5k]
  ------------------
   56|    681|      return std::make_unique<Cert_Extension::Authority_Key_ID>();
   57|    681|   }
   58|       |
   59|  12.5k|   if(oid == Cert_Extension::Name_Constraints::static_oid()) {
  ------------------
  |  Branch (59:7): [True: 2.46k, False: 10.0k]
  ------------------
   60|  2.46k|      return std::make_unique<Cert_Extension::Name_Constraints>();
   61|  2.46k|   }
   62|       |
   63|  10.0k|   if(oid == Cert_Extension::CRL_Distribution_Points::static_oid()) {
  ------------------
  |  Branch (63:7): [True: 2.10k, False: 7.94k]
  ------------------
   64|  2.10k|      return std::make_unique<Cert_Extension::CRL_Distribution_Points>();
   65|  2.10k|   }
   66|       |
   67|  7.94k|   if(oid == Cert_Extension::CRL_Issuing_Distribution_Point::static_oid()) {
  ------------------
  |  Branch (67:7): [True: 639, False: 7.30k]
  ------------------
   68|    639|      return std::make_unique<Cert_Extension::CRL_Issuing_Distribution_Point>();
   69|    639|   }
   70|       |
   71|  7.30k|   if(oid == Cert_Extension::Certificate_Policies::static_oid()) {
  ------------------
  |  Branch (71:7): [True: 1.65k, False: 5.65k]
  ------------------
   72|  1.65k|      return std::make_unique<Cert_Extension::Certificate_Policies>();
   73|  1.65k|   }
   74|       |
   75|  5.65k|   if(oid == Cert_Extension::Extended_Key_Usage::static_oid()) {
  ------------------
  |  Branch (75:7): [True: 592, False: 5.06k]
  ------------------
   76|    592|      return std::make_unique<Cert_Extension::Extended_Key_Usage>();
   77|    592|   }
   78|       |
   79|  5.06k|   if(oid == Cert_Extension::Authority_Information_Access::static_oid()) {
  ------------------
  |  Branch (79:7): [True: 240, False: 4.82k]
  ------------------
   80|    240|      return std::make_unique<Cert_Extension::Authority_Information_Access>();
   81|    240|   }
   82|       |
   83|  4.82k|   return nullptr;  // unknown
   84|  5.06k|}
x509_ext.cpp:_ZN5Botan14Cert_Extension12_GLOBAL__N_118Policy_Information11decode_fromERNS_11BER_DecoderE:
  569|    808|      void decode_from(BER_Decoder& codec) override {
  570|    808|         codec.start_sequence().decode(m_oid).discard_remaining().end_cons();
  571|    808|      }
x509_ext.cpp:_ZNK5Botan14Cert_Extension12_GLOBAL__N_118Policy_Information3oidEv:
  565|    369|      const OID& oid() const { return m_oid; }
x509_ext.cpp:_ZN5Botan14Cert_Extension12_GLOBAL__N_118Policy_InformationC2Ev:
  561|    808|      Policy_Information() = default;

_ZN5Botan11X509_Object9load_dataERNS_10DataSourceE:
   24|  4.21k|void X509_Object::load_data(DataSource& in) {
   25|  4.21k|   try {
   26|  4.21k|      if(ASN1::maybe_BER(in) && !PEM_Code::matches(in)) {
  ------------------
  |  Branch (26:10): [True: 3.86k, False: 354]
  |  Branch (26:33): [True: 3.85k, False: 12]
  ------------------
   27|  3.85k|         BER_Decoder dec(in);
   28|  3.85k|         decode_from(dec);
   29|  3.85k|      } else {
   30|    366|         std::string got_label;
   31|    366|         DataSource_Memory ber(PEM_Code::decode(in, got_label));
   32|       |
   33|    366|         if(got_label != PEM_label()) {
  ------------------
  |  Branch (33:13): [True: 127, False: 239]
  ------------------
   34|    127|            bool is_alternate = false;
   35|    127|            for(std::string_view alt_label : alternate_PEM_labels()) {
  ------------------
  |  Branch (35:44): [True: 127, False: 126]
  ------------------
   36|    127|               if(got_label == alt_label) {
  ------------------
  |  Branch (36:19): [True: 1, False: 126]
  ------------------
   37|      1|                  is_alternate = true;
   38|      1|                  break;
   39|      1|               }
   40|    127|            }
   41|       |
   42|    127|            if(!is_alternate) {
  ------------------
  |  Branch (42:16): [True: 126, False: 1]
  ------------------
   43|    126|               throw Decoding_Error("Unexpected PEM label for " + PEM_label() + " of " + got_label);
   44|    126|            }
   45|    127|         }
   46|       |
   47|    240|         BER_Decoder dec(ber);
   48|    240|         decode_from(dec);
   49|    240|      }
   50|  4.21k|   } catch(Decoding_Error& e) {
   51|  3.07k|      throw Decoding_Error(PEM_label() + " decoding", e);
   52|  3.07k|   }
   53|  4.21k|}
_ZN5Botan11X509_Object11decode_fromERNS_11BER_DecoderE:
   68|  3.85k|void X509_Object::decode_from(BER_Decoder& from) {
   69|  3.85k|   from.start_sequence()
   70|  3.85k|      .start_sequence()
   71|  3.85k|      .raw_bytes(m_tbs_bits)
   72|  3.85k|      .end_cons()
   73|  3.85k|      .decode(m_sig_algo)
   74|  3.85k|      .decode(m_sig, ASN1_Type::BitString)
   75|  3.85k|      .end_cons();
   76|       |
   77|  3.85k|   force_decode();
   78|  3.85k|}

