_ZN5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EED2Ev:
   64|  36.5k|      ~AlignmentBuffer() { secure_zeroize_buffer(m_buffer.data(), sizeof(T) * m_buffer.size()); }
_ZN5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EEC2Ev:
   62|  11.3k|      AlignmentBuffer() = default;
_ZN5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE5clearEv:
   71|  46.9k|      void clear() {
   72|  46.9k|         zeroize_buffer(m_buffer.data(), m_buffer.size());
   73|  46.9k|         m_position = 0;
   74|  46.9k|      }
_ZN5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE21handle_unaligned_dataERNS_12BufferSlicerE:
  166|  49.5k|      [[nodiscard]] std::optional<std::span<const T>> handle_unaligned_data(BufferSlicer& slicer) {
  167|       |         // When the final block is to be deferred, we would need to store and
  168|       |         // hold a buffer that contains exactly one block until more data is
  169|       |         // passed or it is explicitly consumed.
  170|  49.5k|         const size_t defer = (defers_final_block()) ? 1 : 0;
  ------------------
  |  Branch (170:31): [True: 0, False: 49.5k]
  ------------------
  171|       |
  172|  49.5k|         if(in_alignment() && slicer.remaining() >= m_buffer.size() + defer) {
  ------------------
  |  Branch (172:13): [True: 24.8k, False: 24.6k]
  |  Branch (172:31): [True: 4.05k, False: 20.7k]
  ------------------
  173|       |            // We are currently in alignment and the passed-in data source
  174|       |            // contains enough data to benefit from aligned processing.
  175|       |            // Therefore, we don't copy anything into the intermittent buffer.
  176|  4.05k|            return std::nullopt;
  177|  4.05k|         }
  178|       |
  179|       |         // Fill the buffer with as much input data as needed to reach alignment
  180|       |         // or until the input source is depleted.
  181|  45.4k|         const auto elements_to_consume = std::min(m_buffer.size() - m_position, slicer.remaining());
  182|  45.4k|         append(slicer.take(elements_to_consume));
  183|       |
  184|       |         // If we collected enough data, we push out one full block. When
  185|       |         // deferring the final block is enabled, we additionally check that
  186|       |         // more input data is available to continue processing a consecutive
  187|       |         // block.
  188|  45.4k|         if(ready_to_consume() && (!defers_final_block() || !slicer.empty())) {
  ------------------
  |  Branch (188:13): [True: 9.20k, False: 36.2k]
  |  Branch (188:36): [True: 9.20k, False: 0]
  |  Branch (188:61): [True: 0, False: 0]
  ------------------
  189|  9.20k|            return consume();
  190|  36.2k|         } else {
  191|  36.2k|            return std::nullopt;
  192|  36.2k|         }
  193|  45.4k|      }
_ZNK5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE18defers_final_blockEv:
  233|  71.9k|      constexpr bool defers_final_block() const {
  234|  71.9k|         return FINAL_BLOCK_STRATEGY == AlignmentBufferFinalBlock::must_be_deferred;
  235|  71.9k|      }
_ZN5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE6appendENSt3__14spanIKhLm18446744073709551615EEE:
   90|  81.0k|      void append(std::span<const T> elements) {
   91|  81.0k|         BOTAN_ASSERT_NOMSG(elements.size() <= elements_until_alignment());
  ------------------
  |  |   77|  81.0k|   do {                                                                     \
  |  |   78|  81.0k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  81.0k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 81.0k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  81.0k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 81.0k]
  |  |  ------------------
  ------------------
   92|  81.0k|         std::copy(elements.begin(), elements.end(), m_buffer.begin() + m_position);
   93|  81.0k|         m_position += elements.size();
   94|  81.0k|      }
_ZNK5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE24elements_until_alignmentEv:
  221|   190k|      size_t elements_until_alignment() const { return m_buffer.size() - m_position; }
_ZNK5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE16ready_to_consumeEv:
  231|   167k|      bool ready_to_consume() const { return m_position == m_buffer.size(); }
_ZN5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE7consumeEv:
  200|  47.8k|      [[nodiscard]] std::span<const T> consume() {
  201|  47.8k|         BOTAN_ASSERT_NOMSG(ready_to_consume());
  ------------------
  |  |   77|  47.8k|   do {                                                                     \
  |  |   78|  47.8k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  47.8k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 47.8k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  47.8k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 47.8k]
  |  |  ------------------
  ------------------
  202|  47.8k|         m_position = 0;
  203|  47.8k|         return m_buffer;
  204|  47.8k|      }
_ZNK5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE12in_alignmentEv:
  226|   112k|      bool in_alignment() const { return m_position == 0; }
_ZNK5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE23aligned_data_to_processERNS_12BufferSlicerE:
  126|  13.2k|      [[nodiscard]] std::tuple<std::span<const uint8_t>, size_t> aligned_data_to_process(BufferSlicer& slicer) const {
  127|  13.2k|         BOTAN_ASSERT_NOMSG(in_alignment());
  ------------------
  |  |   77|  13.2k|   do {                                                                     \
  |  |   78|  13.2k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  13.2k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 13.2k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  13.2k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 13.2k]
  |  |  ------------------
  ------------------
  128|       |
  129|       |         // When the final block is to be deferred, the last block must not be
  130|       |         // selected for processing if there is no (unaligned) extra input data.
  131|  13.2k|         const size_t defer = (defers_final_block()) ? 1 : 0;
  ------------------
  |  Branch (131:31): [True: 0, False: 13.2k]
  ------------------
  132|  13.2k|         const size_t full_blocks_to_process = (slicer.remaining() - defer) / m_buffer.size();
  133|  13.2k|         return {slicer.take(full_blocks_to_process * m_buffer.size()), full_blocks_to_process};
  134|  13.2k|      }
_ZN5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE18fill_up_with_zerosEv:
   79|  38.6k|      void fill_up_with_zeros() {
   80|  38.6k|         if(!ready_to_consume()) {
  ------------------
  |  Branch (80:13): [True: 38.2k, False: 374]
  ------------------
   81|  38.2k|            zeroize_buffer(&m_buffer[m_position], elements_until_alignment());
   82|  38.2k|            m_position = m_buffer.size();
   83|  38.2k|         }
   84|  38.6k|      }
_ZN5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE20directly_modify_lastEm:
  113|  35.5k|      std::span<T> directly_modify_last(size_t elements) {
  114|  35.5k|         BOTAN_ASSERT_NOMSG(size() >= elements);
  ------------------
  |  |   77|  35.5k|   do {                                                                     \
  |  |   78|  35.5k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  35.5k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 35.5k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  35.5k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 35.5k]
  |  |  ------------------
  ------------------
  115|  35.5k|         return std::span(m_buffer).last(elements);
  116|  35.5k|      }
_ZNK5Botan15AlignmentBufferIhLm64ELNS_25AlignmentBufferFinalBlockE0EE4sizeEv:
  217|  35.5k|      constexpr size_t size() const { return m_buffer.size(); }

_ZN5Botan10ct_is_zeroITkNSt3__117unsigned_integralEhEET_S2_:
   37|  3.63k|BOTAN_FORCE_INLINE constexpr T ct_is_zero(T x) {
   38|  3.63k|   return ct_expand_top_bit<T>(~x & (x - 1));
   39|  3.63k|}
_ZN5Botan17ct_expand_top_bitITkNSt3__117unsigned_integralEhEET_S2_:
   28|  3.63k|BOTAN_FORCE_INLINE constexpr T ct_expand_top_bit(T a) {
   29|  3.63k|   const T top = CT::value_barrier<T>(a >> (sizeof(T) * 8 - 1));
   30|  3.63k|   return static_cast<T>(0) - top;
   31|  3.63k|}
_ZN5Botan17ct_expand_top_bitITkNSt3__117unsigned_integralEmEET_S2_:
   28|  15.4k|BOTAN_FORCE_INLINE constexpr T ct_expand_top_bit(T a) {
   29|  15.4k|   const T top = CT::value_barrier<T>(a >> (sizeof(T) * 8 - 1));
   30|  15.4k|   return static_cast<T>(0) - top;
   31|  15.4k|}
_ZN5Botan10ct_is_zeroITkNSt3__117unsigned_integralEmEET_S2_:
   37|  15.4k|BOTAN_FORCE_INLINE constexpr T ct_is_zero(T x) {
   38|  15.4k|   return ct_expand_top_bit<T>(~x & (x - 1));
   39|  15.4k|}
_ZN5Botan8high_bitITkNSt3__117unsigned_integralEjEEmT_:
   73|  3.37k|BOTAN_FORCE_INLINE constexpr size_t high_bit(T n) {
   74|  3.37k|   size_t hb = 0;
   75|       |
   76|  20.2k|   for(size_t s = 8 * sizeof(T) / 2; s > 0; s /= 2) {
  ------------------
  |  Branch (76:38): [True: 16.8k, False: 3.37k]
  ------------------
   77|       |      // Equivalent to: ((n >> s) == 0) ? 0 : s;
   78|  16.8k|      const size_t z = s - ct_if_is_zero_ret<T>(n >> s, s);
   79|  16.8k|      hb += z;
   80|  16.8k|      n >>= z;
   81|  16.8k|   }
   82|       |
   83|  3.37k|   hb += n;
   84|       |
   85|  3.37k|   return hb;
   86|  3.37k|}
_ZN5Botan17ct_if_is_zero_retITkNSt3__117unsigned_integralEjEEmT_m:
   45|  16.8k|BOTAN_FORCE_INLINE constexpr size_t ct_if_is_zero_ret(T x, size_t s) {
   46|       |   /*
   47|       |   Similar to `return ct_is_zero(x) & s` but has to account for possibility that
   48|       |   sizeof(T) is smaller than sizeof(size_t) which would lead to incomplete masking
   49|       |   */
   50|  16.8k|   const T a = ~x & (x - 1);
   51|  16.8k|   const size_t a_top = static_cast<size_t>(CT::value_barrier<T>(a >> (sizeof(T) * 8 - 1)));
   52|  16.8k|   const size_t mask = static_cast<size_t>(0) - a_top;
   53|  16.8k|   return mask & s;
   54|  16.8k|}
_ZN5Botan17ct_if_is_zero_retITkNSt3__117unsigned_integralEmEEmT_m:
   45|  10.6k|BOTAN_FORCE_INLINE constexpr size_t ct_if_is_zero_ret(T x, size_t s) {
   46|       |   /*
   47|       |   Similar to `return ct_is_zero(x) & s` but has to account for possibility that
   48|       |   sizeof(T) is smaller than sizeof(size_t) which would lead to incomplete masking
   49|       |   */
   50|  10.6k|   const T a = ~x & (x - 1);
   51|  10.6k|   const size_t a_top = static_cast<size_t>(CT::value_barrier<T>(a >> (sizeof(T) * 8 - 1)));
   52|  10.6k|   const size_t mask = static_cast<size_t>(0) - a_top;
   53|  10.6k|   return mask & s;
   54|  10.6k|}
_ZN5Botan8high_bitITkNSt3__117unsigned_integralEmEEmT_:
   73|  1.77k|BOTAN_FORCE_INLINE constexpr size_t high_bit(T n) {
   74|  1.77k|   size_t hb = 0;
   75|       |
   76|  12.4k|   for(size_t s = 8 * sizeof(T) / 2; s > 0; s /= 2) {
  ------------------
  |  Branch (76:38): [True: 10.6k, False: 1.77k]
  ------------------
   77|       |      // Equivalent to: ((n >> s) == 0) ? 0 : s;
   78|  10.6k|      const size_t z = s - ct_if_is_zero_ret<T>(n >> s, s);
   79|  10.6k|      hb += z;
   80|  10.6k|      n >>= z;
   81|  10.6k|   }
   82|       |
   83|  1.77k|   hb += n;
   84|       |
   85|  1.77k|   return hb;
   86|  1.77k|}

_ZN5Botan13reverse_bytesITkNSt3__117unsigned_integralEjQooooooeqstT_Li1EeqstS2_Li2EeqstS2_Li4EeqstS2_Li8EEES2_S2_:
   27|   274k|inline constexpr T reverse_bytes(T x) {
   28|       |   if constexpr(sizeof(T) == 1) {
   29|       |      return x;
   30|       |   } else if constexpr(sizeof(T) == 2) {
   31|       |#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_bswap16)
   32|       |      return static_cast<T>(__builtin_bswap16(x));
   33|       |#else
   34|       |      return static_cast<T>((x << 8) | (x >> 8));
   35|       |#endif
   36|   274k|   } else if constexpr(sizeof(T) == 4) {
   37|   274k|#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_bswap32)
   38|   274k|      return static_cast<T>(__builtin_bswap32(x));
   39|       |#else
   40|       |      // MSVC at least recognizes this as a bswap
   41|       |      return static_cast<T>(((x & 0x000000FF) << 24) | ((x & 0x0000FF00) << 8) | ((x & 0x00FF0000) >> 8) |
   42|       |                            ((x & 0xFF000000) >> 24));
   43|       |#endif
   44|       |   } else if constexpr(sizeof(T) == 8) {
   45|       |#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_bswap64)
   46|       |      return static_cast<T>(__builtin_bswap64(x));
   47|       |#else
   48|       |      uint32_t hi = static_cast<uint32_t>(x >> 32);
   49|       |      uint32_t lo = static_cast<uint32_t>(x);
   50|       |
   51|       |      hi = reverse_bytes(hi);
   52|       |      lo = reverse_bytes(lo);
   53|       |
   54|       |      return (static_cast<T>(lo) << 32) | hi;
   55|       |#endif
   56|       |   }
   57|   274k|}
_ZN5Botan13reverse_bytesITkNSt3__117unsigned_integralEtQooooooeqstT_Li1EeqstS2_Li2EeqstS2_Li4EeqstS2_Li8EEES2_S2_:
   27|  44.4k|inline constexpr T reverse_bytes(T x) {
   28|       |   if constexpr(sizeof(T) == 1) {
   29|       |      return x;
   30|  44.4k|   } else if constexpr(sizeof(T) == 2) {
   31|  44.4k|#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_bswap16)
   32|  44.4k|      return static_cast<T>(__builtin_bswap16(x));
   33|       |#else
   34|       |      return static_cast<T>((x << 8) | (x >> 8));
   35|       |#endif
   36|       |   } else if constexpr(sizeof(T) == 4) {
   37|       |#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_bswap32)
   38|       |      return static_cast<T>(__builtin_bswap32(x));
   39|       |#else
   40|       |      // MSVC at least recognizes this as a bswap
   41|       |      return static_cast<T>(((x & 0x000000FF) << 24) | ((x & 0x0000FF00) << 8) | ((x & 0x00FF0000) >> 8) |
   42|       |                            ((x & 0xFF000000) >> 24));
   43|       |#endif
   44|       |   } else if constexpr(sizeof(T) == 8) {
   45|       |#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_bswap64)
   46|       |      return static_cast<T>(__builtin_bswap64(x));
   47|       |#else
   48|       |      uint32_t hi = static_cast<uint32_t>(x >> 32);
   49|       |      uint32_t lo = static_cast<uint32_t>(x);
   50|       |
   51|       |      hi = reverse_bytes(hi);
   52|       |      lo = reverse_bytes(lo);
   53|       |
   54|       |      return (static_cast<T>(lo) << 32) | hi;
   55|       |#endif
   56|       |   }
   57|  44.4k|}
_ZN5Botan13reverse_bytesITkNSt3__117unsigned_integralEmQooooooeqstT_Li1EeqstS2_Li2EeqstS2_Li4EeqstS2_Li8EEES2_S2_:
   27|  37.9k|inline constexpr T reverse_bytes(T x) {
   28|       |   if constexpr(sizeof(T) == 1) {
   29|       |      return x;
   30|       |   } else if constexpr(sizeof(T) == 2) {
   31|       |#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_bswap16)
   32|       |      return static_cast<T>(__builtin_bswap16(x));
   33|       |#else
   34|       |      return static_cast<T>((x << 8) | (x >> 8));
   35|       |#endif
   36|       |   } else if constexpr(sizeof(T) == 4) {
   37|       |#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_bswap32)
   38|       |      return static_cast<T>(__builtin_bswap32(x));
   39|       |#else
   40|       |      // MSVC at least recognizes this as a bswap
   41|       |      return static_cast<T>(((x & 0x000000FF) << 24) | ((x & 0x0000FF00) << 8) | ((x & 0x00FF0000) >> 8) |
   42|       |                            ((x & 0xFF000000) >> 24));
   43|       |#endif
   44|  37.9k|   } else if constexpr(sizeof(T) == 8) {
   45|  37.9k|#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_bswap64)
   46|  37.9k|      return static_cast<T>(__builtin_bswap64(x));
   47|       |#else
   48|       |      uint32_t hi = static_cast<uint32_t>(x >> 32);
   49|       |      uint32_t lo = static_cast<uint32_t>(x);
   50|       |
   51|       |      hi = reverse_bytes(hi);
   52|       |      lo = reverse_bytes(lo);
   53|       |
   54|       |      return (static_cast<T>(lo) << 32) | hi;
   55|       |#endif
   56|  37.9k|   }
   57|  37.9k|}

_ZN5Botan12BufferSlicerC2ENSt3__14spanIKhLm18446744073709551615EEE:
   25|  45.8k|      explicit BufferSlicer(std::span<const uint8_t> buffer) : m_remaining(buffer) {}
_ZNK5Botan12BufferSlicer5emptyEv:
   68|   169k|      bool empty() const { return m_remaining.empty(); }
_ZN5Botan12BufferSlicer9take_byteEv:
   57|  45.7k|      uint8_t take_byte() { return take(1)[0]; }
_ZN5Botan12BufferSlicer4takeEm:
   37|   104k|      std::span<const uint8_t> take(const size_t count) {
   38|   104k|         BOTAN_STATE_CHECK(remaining() >= count);
  ------------------
  |  |   51|   104k|   do {                                                         \
  |  |   52|   104k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|   104k|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 104k]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|   104k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 104k]
  |  |  ------------------
  ------------------
   39|   104k|         auto result = m_remaining.first(count);
   40|   104k|         m_remaining = m_remaining.subspan(count);
   41|   104k|         return result;
   42|   104k|      }
_ZNK5Botan12BufferSlicer9remainingEv:
   66|   188k|      size_t remaining() const { return m_remaining.size(); }

base64.cpp:_ZN5Botan11base_decodeINS_12_GLOBAL__N_16Base64EEEmRKT_PhPKcmRmbb:
  124|     93|                   bool ignore_ws = true) {
  125|       |   // TODO(Botan4) Check if we can use just base. or Base:: here instead
  126|     93|   constexpr size_t decoding_bytes_in = std::remove_reference_t<Base>::decoding_bytes_in();
  127|     93|   constexpr size_t decoding_bytes_out = std::remove_reference_t<Base>::decoding_bytes_out();
  128|       |
  129|     93|   uint8_t* out_ptr = output;
  130|     93|   std::array<uint8_t, decoding_bytes_in> decode_buf{};
  131|     93|   size_t decode_buf_pos = 0;
  132|     93|   size_t final_truncate = 0;
  133|       |
  134|     93|   clear_mem(output, base.decode_max_output(input_length));
  135|       |
  136|  25.6k|   for(size_t i = 0; i != input_length; ++i) {
  ------------------
  |  Branch (136:22): [True: 25.5k, False: 93]
  ------------------
  137|  25.5k|      const uint8_t bin = base.lookup_binary_value(input[i]);
  138|       |
  139|       |      // This call might throw Invalid_Argument
  140|  25.5k|      if(base.check_bad_char(bin, input[i], ignore_ws)) {
  ------------------
  |  Branch (140:10): [True: 11.0k, False: 14.5k]
  ------------------
  141|  11.0k|         decode_buf[decode_buf_pos] = bin;
  142|  11.0k|         ++decode_buf_pos;
  143|  11.0k|      }
  144|       |
  145|       |      /*
  146|       |      * If we're at the end of the input, pad with 0s and truncate
  147|       |      */
  148|  25.5k|      if(final_inputs && (i == input_length - 1)) {
  ------------------
  |  Branch (148:10): [True: 25.5k, False: 32]
  |  Branch (148:26): [True: 54, False: 25.5k]
  ------------------
  149|     54|         if(decode_buf_pos) {
  ------------------
  |  Branch (149:13): [True: 32, False: 22]
  ------------------
  150|     82|            for(size_t j = decode_buf_pos; j < decoding_bytes_in; ++j) {
  ------------------
  |  Branch (150:44): [True: 50, False: 32]
  ------------------
  151|     50|               decode_buf[j] = 0;
  152|     50|            }
  153|       |
  154|     32|            final_truncate = decoding_bytes_in - decode_buf_pos;
  155|     32|            decode_buf_pos = decoding_bytes_in;
  156|     32|         }
  157|     54|      }
  158|       |
  159|  25.5k|      if(decode_buf_pos == decoding_bytes_in) {
  ------------------
  |  Branch (159:10): [True: 2.77k, False: 22.8k]
  ------------------
  160|  2.77k|         base.decode(out_ptr, decode_buf.data());
  161|       |
  162|  2.77k|         out_ptr += decoding_bytes_out;
  163|  2.77k|         decode_buf_pos = 0;
  164|  2.77k|         input_consumed = i + 1;
  165|  2.77k|      }
  166|  25.5k|   }
  167|       |
  168|    449|   while(input_consumed < input_length && base.lookup_binary_value(input[input_consumed]) == 0x80) {
  ------------------
  |  Branch (168:10): [True: 369, False: 80]
  |  Branch (168:43): [True: 356, False: 13]
  ------------------
  169|    356|      ++input_consumed;
  170|    356|   }
  171|       |
  172|     93|   const size_t written = (out_ptr - output) - base.bytes_to_remove(final_truncate);
  173|       |
  174|     93|   return written;
  175|     93|}
base64.cpp:_ZN5Botan16base_decode_fullINS_12_GLOBAL__N_16Base64EEEmRKT_PhPKcmb:
  178|     93|size_t base_decode_full(const Base& base, uint8_t output[], const char input[], size_t input_length, bool ignore_ws) {
  179|     93|   size_t consumed = 0;
  180|     93|   const size_t written = base_decode(base, output, input, input_length, consumed, true, ignore_ws);
  181|       |
  182|     93|   if(consumed != input_length) {
  ------------------
  |  Branch (182:7): [True: 13, False: 80]
  ------------------
  183|     13|      throw Invalid_Argument(base.name() + " decoding failed, input did not have full bytes");
  184|     13|   }
  185|       |
  186|     80|   return written;
  187|     93|}
base64.cpp:_ZN5Botan18base_decode_to_vecINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_12_GLOBAL__N_16Base64EEET_RKT0_PKcmb:
  190|     93|Vector base_decode_to_vec(const Base& base, const char input[], size_t input_length, bool ignore_ws) {
  191|     93|   const size_t output_length = base.decode_max_output(input_length);
  192|     93|   Vector bin(output_length);
  193|       |
  194|     93|   const size_t written = base_decode_full(base, bin.data(), input, input_length, ignore_ws);
  195|       |
  196|     93|   bin.resize(written);
  197|     93|   return bin;
  198|     93|}

_ZN5Botan5CPUID3hasENS_10CPUFeatureE:
   94|  52.7k|      static bool has(CPUID::Feature feat) { return state().has_bit(feat.as_u32()); }
_ZN5Botan5CPUID5stateEv:
  156|  52.7k|      static CPUID_Data& state() {
  157|  52.7k|         static CPUID::CPUID_Data g_cpuid;
  158|  52.7k|         return g_cpuid;
  159|  52.7k|      }
_ZNK5Botan5CPUID10CPUID_Data7has_bitEj:
  144|  52.7k|            bool has_bit(uint32_t bit) const { return (m_processor_features & bit) == bit; }
_ZN5Botan5CPUID6is_setEjNS_10CPUFeatureE:
  127|      4|      static inline bool is_set(uint32_t allowed, CPUID::Feature bit) {
  128|      4|         const uint32_t feat_bit = bit.as_u32();
  129|      4|         return ((allowed & feat_bit) == feat_bit);
  130|      4|      }
cpuid_x86.cpp:_ZN5Botan5CPUID6if_setIZNS0_10CPUID_Data19detect_cpu_featuresEjE16x86_CPUID_1_bitsEEjmT_NS_10CPUFeatureEj:
  117|      6|      static inline uint32_t if_set(uint64_t cpuid, T flag, CPUID::Feature bit, uint32_t allowed) {
  118|      6|         const uint64_t flag64 = static_cast<uint64_t>(flag);
  119|      6|         if((cpuid & flag64) == flag64) {
  ------------------
  |  Branch (119:13): [True: 6, False: 0]
  ------------------
  120|      6|            return (bit.as_u32() & allowed);
  121|      6|         } else {
  122|      0|            return 0;
  123|      0|         }
  124|      6|      }
cpuid_x86.cpp:_ZN5Botan5CPUID6if_setIZNS0_10CPUID_Data19detect_cpu_featuresEjE16x86_CPUID_7_bitsEEjmT_NS_10CPUFeatureEj:
  117|      8|      static inline uint32_t if_set(uint64_t cpuid, T flag, CPUID::Feature bit, uint32_t allowed) {
  118|      8|         const uint64_t flag64 = static_cast<uint64_t>(flag);
  119|      8|         if((cpuid & flag64) == flag64) {
  ------------------
  |  Branch (119:13): [True: 5, False: 3]
  ------------------
  120|      5|            return (bit.as_u32() & allowed);
  121|      5|         } else {
  122|      3|            return 0;
  123|      3|         }
  124|      8|      }
cpuid_x86.cpp:_ZN5Botan5CPUID6if_setIZNS0_10CPUID_Data19detect_cpu_featuresEjE18x86_CPUID_7_1_bitsEEjmT_NS_10CPUFeatureEj:
  117|      3|      static inline uint32_t if_set(uint64_t cpuid, T flag, CPUID::Feature bit, uint32_t allowed) {
  118|      3|         const uint64_t flag64 = static_cast<uint64_t>(flag);
  119|      3|         if((cpuid & flag64) == flag64) {
  ------------------
  |  Branch (119:13): [True: 0, False: 3]
  ------------------
  120|      0|            return (bit.as_u32() & allowed);
  121|      3|         } else {
  122|      3|            return 0;
  123|      3|         }
  124|      3|      }

_ZNK5Botan10CPUFeature6as_u32Ev:
   53|  52.7k|      uint32_t as_u32() const { return static_cast<uint32_t>(m_bit); }
_ZN5Botan10CPUFeatureC2ENS0_3BitE:
   51|  52.7k|      CPUFeature(Bit b) : m_bit(b) {}  // NOLINT(*-explicit-conversions)

_ZN5Botan2CT8is_equalIhEENS0_4MaskIT_EENSt3__14spanIKS3_Lm18446744073709551615EEES8_:
  825|  3.63k|constexpr inline CT::Mask<T> is_equal(std::span<const T> x, std::span<const T> y) {
  826|  3.63k|   if(x.size() != y.size()) {
  ------------------
  |  Branch (826:7): [True: 0, False: 3.63k]
  ------------------
  827|      0|      return CT::Mask<T>::cleared();
  828|      0|   }
  829|       |
  830|  3.63k|   return is_equal(x.data(), y.data(), x.size());
  831|  3.63k|}
_ZN5Botan2CT4MaskIhEC2Eh:
  637|  3.63k|      constexpr explicit Mask(T m) : m_mask(m) {}
_ZN5Botan2CT8is_equalIhEENS0_4MaskIT_EEPKS3_S6_m:
  798|  3.63k|constexpr inline CT::Mask<T> is_equal(const T x[], const T y[], size_t len) {
  799|  3.63k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (799:7): [Folded, False: 3.63k]
  ------------------
  800|      0|      T difference = 0;
  801|       |
  802|      0|      for(size_t i = 0; i != len; ++i) {
  ------------------
  |  Branch (802:25): [True: 0, False: 0]
  ------------------
  803|      0|         difference = difference | (x[i] ^ y[i]);
  804|      0|      }
  805|       |
  806|      0|      return CT::Mask<T>::is_zero(difference);
  807|  3.63k|   } else {
  808|  3.63k|      volatile T difference = 0;
  809|       |
  810|   120k|      for(size_t i = 0; i != len; ++i) {
  ------------------
  |  Branch (810:25): [True: 116k, False: 3.63k]
  ------------------
  811|   116k|         difference = difference | (x[i] ^ y[i]);
  812|   116k|      }
  813|       |
  814|  3.63k|      return CT::Mask<T>::is_zero(difference);
  815|  3.63k|   }
  816|  3.63k|}
_ZN5Botan2CT4MaskIhE7is_zeroEh:
  437|  3.63k|      static constexpr Mask<T> is_zero(T x) { return Mask<T>(ct_is_zero<T>(value_barrier<T>(x))); }
_ZNK5Botan2CT4MaskIhE7as_boolEv:
  614|  3.63k|      constexpr bool as_bool() const { return unpoisoned_value() != 0; }
_ZNK5Botan2CT4MaskIhE16unpoisoned_valueEv:
  598|  3.63k|      constexpr T unpoisoned_value() const {
  599|  3.63k|         T r = value();
  600|  3.63k|         CT::unpoison(r);
  601|  3.63k|         return r;
  602|  3.63k|      }
_ZNK5Botan2CT4MaskIhE5valueEv:
  630|  3.63k|      constexpr T value() const { return value_barrier<T>(m_mask); }
_ZN5Botan2CT8unpoisonITkNSt3__18integralEhEEvRKT_:
  112|  3.63k|constexpr void unpoison(const T& p) {
  113|  3.63k|   unpoison(&p, 1);
  114|  3.63k|}
_ZN5Botan2CT8unpoisonIhEEvPKT_m:
   67|  3.63k|constexpr inline void unpoison(const T* p, size_t n) {
   68|       |#if defined(BOTAN_HAS_VALGRIND)
   69|       |   if(!std::is_constant_evaluated()) {
   70|       |      VALGRIND_MAKE_MEM_DEFINED(p, n * sizeof(T));
   71|       |   }
   72|       |#endif
   73|       |
   74|  3.63k|   BOTAN_UNUSED(p, n);
  ------------------
  |  |  144|  3.63k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   75|  3.63k|}
_ZN5Botan2CT8unpoisonITkNSt3__18integralEmEEvRKT_:
  112|  3.70k|constexpr void unpoison(const T& p) {
  113|  3.70k|   unpoison(&p, 1);
  114|  3.70k|}
_ZN5Botan2CT8unpoisonImEEvPKT_m:
   67|  5.99k|constexpr inline void unpoison(const T* p, size_t n) {
   68|       |#if defined(BOTAN_HAS_VALGRIND)
   69|       |   if(!std::is_constant_evaluated()) {
   70|       |      VALGRIND_MAKE_MEM_DEFINED(p, n * sizeof(T));
   71|       |   }
   72|       |#endif
   73|       |
   74|  5.99k|   BOTAN_UNUSED(p, n);
  ------------------
  |  |  144|  5.99k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   75|  5.99k|}

_ZN5Botan3fmtIJmmEEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_17basic_string_viewIcS4_EEDpRKT_:
   53|    479|std::string fmt(std::string_view format, const T&... args) {
   54|    479|   std::ostringstream oss;
   55|    479|   oss.imbue(std::locale::classic());
   56|    479|   fmt_detail::do_fmt(oss, format, args...);
   57|    479|   return oss.str();
   58|    479|}
_ZN5Botan10fmt_detail6do_fmtImJmEEEvRNSt3__119basic_ostringstreamIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS2_17basic_string_viewIcS5_EERKT_DpRKT0_:
   25|    479|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|    479|   size_t i = 0;
   27|       |
   28|  5.35k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 5.35k, False: 0]
  ------------------
   29|  5.35k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 479, False: 4.87k]
  |  Branch (29:30): [True: 479, False: 0]
  |  Branch (29:59): [True: 479, False: 0]
  ------------------
   30|    479|         oss << val;
   31|    479|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  4.87k|      } else {
   33|  4.87k|         oss << format[i];
   34|  4.87k|      }
   35|       |
   36|  4.87k|      i += 1;
   37|  4.87k|   }
   38|    479|}
_ZN5Botan10fmt_detail6do_fmtImJEEEvRNSt3__119basic_ostringstreamIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS2_17basic_string_viewIcS5_EERKT_DpRKT0_:
   25|    479|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|    479|   size_t i = 0;
   27|       |
   28|  11.6k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 11.6k, False: 0]
  ------------------
   29|  11.6k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 479, False: 11.1k]
  |  Branch (29:30): [True: 479, False: 0]
  |  Branch (29:59): [True: 479, False: 0]
  ------------------
   30|    479|         oss << val;
   31|    479|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  11.1k|      } else {
   33|  11.1k|         oss << format[i];
   34|  11.1k|      }
   35|       |
   36|  11.1k|      i += 1;
   37|  11.1k|   }
   38|    479|}
_ZN5Botan10fmt_detail6do_fmtERNSt3__119basic_ostringstreamIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_17basic_string_viewIcS4_EE:
   20|  12.8k|inline void do_fmt(std::ostringstream& oss, std::string_view format) {
   21|  12.8k|   oss << format;
   22|  12.8k|}
_ZN5Botan3fmtIJNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEES7_NS1_17basic_string_viewIcS4_EEDpRKT_:
   53|    246|std::string fmt(std::string_view format, const T&... args) {
   54|    246|   std::ostringstream oss;
   55|    246|   oss.imbue(std::locale::classic());
   56|    246|   fmt_detail::do_fmt(oss, format, args...);
   57|    246|   return oss.str();
   58|    246|}
_ZN5Botan10fmt_detail6do_fmtINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEJEEEvRNS2_19basic_ostringstreamIcS5_S7_EENS2_17basic_string_viewIcS5_EERKT_DpRKT0_:
   25|    246|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|    246|   size_t i = 0;
   27|       |
   28|  4.14k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 4.14k, False: 0]
  ------------------
   29|  4.14k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 246, False: 3.90k]
  |  Branch (29:30): [True: 246, False: 0]
  |  Branch (29:59): [True: 246, False: 0]
  ------------------
   30|    246|         oss << val;
   31|    246|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  3.90k|      } else {
   33|  3.90k|         oss << format[i];
   34|  3.90k|      }
   35|       |
   36|  3.90k|      i += 1;
   37|  3.90k|   }
   38|    246|}
_ZN5Botan3fmtIJPKcNSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEEEENS3_12basic_stringIcS6_NS3_9allocatorIcEEEES7_DpRKT_:
   53|    540|std::string fmt(std::string_view format, const T&... args) {
   54|    540|   std::ostringstream oss;
   55|    540|   oss.imbue(std::locale::classic());
   56|    540|   fmt_detail::do_fmt(oss, format, args...);
   57|    540|   return oss.str();
   58|    540|}
_ZN5Botan10fmt_detail6do_fmtIPKcJNSt3__117basic_string_viewIcNS4_11char_traitsIcEEEEEEEvRNS4_19basic_ostringstreamIcS7_NS4_9allocatorIcEEEES8_RKT_DpRKT0_:
   25|    540|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|    540|   size_t i = 0;
   27|       |
   28|  4.85k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 4.85k, False: 0]
  ------------------
   29|  4.85k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 540, False: 4.31k]
  |  Branch (29:30): [True: 540, False: 0]
  |  Branch (29:59): [True: 540, False: 0]
  ------------------
   30|    540|         oss << val;
   31|    540|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  4.31k|      } else {
   33|  4.31k|         oss << format[i];
   34|  4.31k|      }
   35|       |
   36|  4.31k|      i += 1;
   37|  4.31k|   }
   38|    540|}
_ZN5Botan10fmt_detail6do_fmtINSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEJEEEvRNS2_19basic_ostringstreamIcS5_NS2_9allocatorIcEEEES6_RKT_DpRKT0_:
   25|  7.40k|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|  7.40k|   size_t i = 0;
   27|       |
   28|   138k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 138k, False: 0]
  ------------------
   29|   138k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 7.40k, False: 130k]
  |  Branch (29:30): [True: 7.40k, False: 0]
  |  Branch (29:59): [True: 7.40k, False: 0]
  ------------------
   30|  7.40k|         oss << val;
   31|  7.40k|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|   130k|      } else {
   33|   130k|         oss << format[i];
   34|   130k|      }
   35|       |
   36|   130k|      i += 1;
   37|   130k|   }
   38|  7.40k|}
_ZN5Botan3fmtIJPKcS2_S2_EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS3_17basic_string_viewIcS6_EEDpRKT_:
   53|     20|std::string fmt(std::string_view format, const T&... args) {
   54|     20|   std::ostringstream oss;
   55|     20|   oss.imbue(std::locale::classic());
   56|     20|   fmt_detail::do_fmt(oss, format, args...);
   57|     20|   return oss.str();
   58|     20|}
_ZN5Botan10fmt_detail6do_fmtIPKcJS3_S3_EEEvRNSt3__119basic_ostringstreamIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_17basic_string_viewIcS7_EERKT_DpRKT0_:
   25|     20|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|     20|   size_t i = 0;
   27|       |
   28|     20|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 20, False: 0]
  ------------------
   29|     20|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 20, False: 0]
  |  Branch (29:30): [True: 20, False: 0]
  |  Branch (29:59): [True: 20, False: 0]
  ------------------
   30|     20|         oss << val;
   31|     20|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|     20|      } else {
   33|      0|         oss << format[i];
   34|      0|      }
   35|       |
   36|      0|      i += 1;
   37|      0|   }
   38|     20|}
_ZN5Botan10fmt_detail6do_fmtIPKcJS3_EEEvRNSt3__119basic_ostringstreamIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_17basic_string_viewIcS7_EERKT_DpRKT0_:
   25|     20|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|     20|   size_t i = 0;
   27|       |
   28|    100|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 100, False: 0]
  ------------------
   29|    100|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 20, False: 80]
  |  Branch (29:30): [True: 20, False: 0]
  |  Branch (29:59): [True: 20, False: 0]
  ------------------
   30|     20|         oss << val;
   31|     20|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|     80|      } else {
   33|     80|         oss << format[i];
   34|     80|      }
   35|       |
   36|     80|      i += 1;
   37|     80|   }
   38|     20|}
_ZN5Botan10fmt_detail6do_fmtIPKcJEEEvRNSt3__119basic_ostringstreamIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_17basic_string_viewIcS7_EERKT_DpRKT0_:
   25|  4.60k|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|  4.60k|   size_t i = 0;
   27|       |
   28|  65.3k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 65.3k, False: 0]
  ------------------
   29|  65.3k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 4.60k, False: 60.7k]
  |  Branch (29:30): [True: 4.60k, False: 0]
  |  Branch (29:59): [True: 4.60k, False: 0]
  ------------------
   30|  4.60k|         oss << val;
   31|  4.60k|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  60.7k|      } else {
   33|  60.7k|         oss << format[i];
   34|  60.7k|      }
   35|       |
   36|  60.7k|      i += 1;
   37|  60.7k|   }
   38|  4.60k|}
_ZN5Botan3fmtIJNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEEEENS1_12basic_stringIcS4_NS1_9allocatorIcEEEES5_DpRKT_:
   53|  6.86k|std::string fmt(std::string_view format, const T&... args) {
   54|  6.86k|   std::ostringstream oss;
   55|  6.86k|   oss.imbue(std::locale::classic());
   56|  6.86k|   fmt_detail::do_fmt(oss, format, args...);
   57|  6.86k|   return oss.str();
   58|  6.86k|}
_ZN5Botan3fmtIJNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEPKcEEENS1_12basic_stringIcS4_NS1_9allocatorIcEEEES5_DpRKT_:
   53|  4.51k|std::string fmt(std::string_view format, const T&... args) {
   54|  4.51k|   std::ostringstream oss;
   55|  4.51k|   oss.imbue(std::locale::classic());
   56|  4.51k|   fmt_detail::do_fmt(oss, format, args...);
   57|  4.51k|   return oss.str();
   58|  4.51k|}
_ZN5Botan10fmt_detail6do_fmtINSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEJPKcEEEvRNS2_19basic_ostringstreamIcS5_NS2_9allocatorIcEEEES6_RKT_DpRKT0_:
   25|  4.51k|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|  4.51k|   size_t i = 0;
   27|       |
   28|  4.51k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 4.51k, False: 0]
  ------------------
   29|  4.51k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 4.51k, False: 0]
  |  Branch (29:30): [True: 4.51k, False: 0]
  |  Branch (29:59): [True: 4.51k, False: 0]
  ------------------
   30|  4.51k|         oss << val;
   31|  4.51k|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  4.51k|      } else {
   33|      0|         oss << format[i];
   34|      0|      }
   35|       |
   36|      0|      i += 1;
   37|      0|   }
   38|  4.51k|}
_ZN5Botan3fmtIJNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEjEEENS1_12basic_stringIcS4_NS1_9allocatorIcEEEES5_DpRKT_:
   53|     29|std::string fmt(std::string_view format, const T&... args) {
   54|     29|   std::ostringstream oss;
   55|     29|   oss.imbue(std::locale::classic());
   56|     29|   fmt_detail::do_fmt(oss, format, args...);
   57|     29|   return oss.str();
   58|     29|}
_ZN5Botan10fmt_detail6do_fmtINSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEJjEEEvRNS2_19basic_ostringstreamIcS5_NS2_9allocatorIcEEEES6_RKT_DpRKT0_:
   25|     29|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|     29|   size_t i = 0;
   27|       |
   28|     29|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 29, False: 0]
  ------------------
   29|     29|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 29, False: 0]
  |  Branch (29:30): [True: 29, False: 0]
  |  Branch (29:59): [True: 29, False: 0]
  ------------------
   30|     29|         oss << val;
   31|     29|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|     29|      } else {
   33|      0|         oss << format[i];
   34|      0|      }
   35|       |
   36|      0|      i += 1;
   37|      0|   }
   38|     29|}
_ZN5Botan10fmt_detail6do_fmtIjJEEEvRNSt3__119basic_ostringstreamIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS2_17basic_string_viewIcS5_EERKT_DpRKT0_:
   25|    124|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|    124|   size_t i = 0;
   27|       |
   28|    277|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 277, False: 0]
  ------------------
   29|    277|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 124, False: 153]
  |  Branch (29:30): [True: 124, False: 0]
  |  Branch (29:59): [True: 124, False: 0]
  ------------------
   30|    124|         oss << val;
   31|    124|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|    153|      } else {
   33|    153|         oss << format[i];
   34|    153|      }
   35|       |
   36|    153|      i += 1;
   37|    153|   }
   38|    124|}
_ZN5Botan3fmtIJjjEEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_17basic_string_viewIcS4_EEDpRKT_:
   53|     95|std::string fmt(std::string_view format, const T&... args) {
   54|     95|   std::ostringstream oss;
   55|     95|   oss.imbue(std::locale::classic());
   56|     95|   fmt_detail::do_fmt(oss, format, args...);
   57|     95|   return oss.str();
   58|     95|}
_ZN5Botan10fmt_detail6do_fmtIjJjEEEvRNSt3__119basic_ostringstreamIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS2_17basic_string_viewIcS5_EERKT_DpRKT0_:
   25|     95|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|     95|   size_t i = 0;
   27|       |
   28|  2.96k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 2.96k, False: 0]
  ------------------
   29|  2.96k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 95, False: 2.86k]
  |  Branch (29:30): [True: 95, False: 0]
  |  Branch (29:59): [True: 95, False: 0]
  ------------------
   30|     95|         oss << val;
   31|     95|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  2.86k|      } else {
   33|  2.86k|         oss << format[i];
   34|  2.86k|      }
   35|       |
   36|  2.86k|      i += 1;
   37|  2.86k|   }
   38|     95|}
_ZN5Botan3fmtIJPKcEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS3_17basic_string_viewIcS6_EEDpRKT_:
   53|     73|std::string fmt(std::string_view format, const T&... args) {
   54|     73|   std::ostringstream oss;
   55|     73|   oss.imbue(std::locale::classic());
   56|     73|   fmt_detail::do_fmt(oss, format, args...);
   57|     73|   return oss.str();
   58|     73|}

_ZN5Botan11checked_mulITkNSt3__117unsigned_integralEmEENS1_8optionalIT_EES3_S3_:
   46|  71.3k|constexpr inline std::optional<T> checked_mul(T a, T b) {
   47|       |   // Multiplication by 1U is a hack to work around C's insane
   48|       |   // integer promotion rules.
   49|       |   // https://stackoverflow.com/questions/24795651
   50|  71.3k|   const T r = (1U * a) * b;
   51|       |   // If a == 0 then the multiply certainly did not overflow
   52|       |   // Otherwise r / a == b unless overflow occurred
   53|  71.3k|   if(a != 0 && r / a != b) {
  ------------------
  |  Branch (53:7): [True: 71.3k, False: 0]
  |  Branch (53:17): [True: 0, False: 71.3k]
  ------------------
   54|      0|      return {};
   55|      0|   }
   56|  71.3k|   return r;
   57|  71.3k|}
_ZN5Botan11checked_addITkNSt3__117unsigned_integralEjEENS1_8optionalIT_EES3_S3_:
   19|  1.71k|constexpr inline std::optional<T> checked_add(T a, T b) {
   20|  1.71k|   const T r = a + b;
   21|  1.71k|   if(r < a || r < b) {
  ------------------
  |  Branch (21:7): [True: 0, False: 1.71k]
  |  Branch (21:16): [True: 0, False: 1.71k]
  ------------------
   22|      0|      return {};
   23|      0|   }
   24|  1.71k|   return r;
   25|  1.71k|}
_ZN5Botan7swar_ltITkNSt3__117unsigned_integralEtEET_S2_S2_:
   91|  89.1k|constexpr T swar_lt(T a, T b) {
   92|       |   // The constant 0x808080... as a T
   93|  89.1k|   constexpr T hi1 = (static_cast<T>(-1) / 255) << 7;
   94|       |   // The constant 0x7F7F7F... as a T
   95|  89.1k|   constexpr T lo7 = static_cast<T>(~hi1);
   96|  89.1k|   T r = (lo7 - a + b) & hi1;
   97|       |   // Currently the mask is 80 if lt, otherwise 00. Convert to FF/00
   98|  89.1k|   return (r << 1) - (r >> 7);
   99|  89.1k|}
_ZN5Botan13swar_in_rangeITkNSt3__117unsigned_integralEmEET_S2_S2_S2_:
  114|  25.9k|constexpr T swar_in_range(T v, T lower, T upper) {
  115|       |   // The constant 0x808080... as a T
  116|  25.9k|   constexpr T hi1 = (static_cast<T>(-1) / 255) << 7;
  117|       |   // The constant 0x7F7F7F... as a T
  118|  25.9k|   constexpr T lo7 = ~hi1;
  119|       |
  120|  25.9k|   const T sub = ((v | hi1) - (lower & lo7)) ^ ((v ^ (~lower)) & hi1);
  121|  25.9k|   const T a_lo = sub & lo7;
  122|  25.9k|   const T a_hi = sub & hi1;
  123|  25.9k|   return (lo7 - a_lo + upper) & hi1 & ~a_hi;
  124|  25.9k|}

_ZN5Botan11make_uint16Ehh:
   92|   144k|inline constexpr uint16_t make_uint16(uint8_t i0, uint8_t i1) {
   93|   144k|   return static_cast<uint16_t>((static_cast<uint16_t>(i0) << 8) | i1);
   94|   144k|}
_ZN5Botan8get_byteILm0EtEEhT0_QltT_stS1_:
   81|  89.1k|{
   82|  89.1k|   const size_t shift = ((~B) & (sizeof(T) - 1)) << 3;
   83|  89.1k|   return static_cast<uint8_t>((input >> shift) & 0xFF);
   84|  89.1k|}
_ZN5Botan8get_byteILm1EtEEhT0_QltT_stS1_:
   81|  89.1k|{
   82|  89.1k|   const size_t shift = ((~B) & (sizeof(T) - 1)) << 3;
   83|  89.1k|   return static_cast<uint8_t>((input >> shift) & 0xFF);
   84|  89.1k|}
_ZN5Botan11make_uint32Ehhhh:
  104|  37.7k|inline constexpr uint32_t make_uint32(uint8_t i0, uint8_t i1, uint8_t i2, uint8_t i3) {
  105|  37.7k|   return ((static_cast<uint32_t>(i0) << 24) | (static_cast<uint32_t>(i1) << 16) | (static_cast<uint32_t>(i2) << 8) |
  106|  37.7k|           (static_cast<uint32_t>(i3)));
  107|  37.7k|}
_ZN5Botan7load_beIhJPKhRmEEEDaDpOT0_:
  504|  2.76M|inline constexpr auto load_be(ParamTs&&... params) {
  505|  2.76M|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|  2.76M|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEhEET0_PKhm:
  454|  2.76M|inline constexpr OutT load_any(const uint8_t in[], size_t off) {
  455|       |   // asserts that *in points to enough bytes to read at offset off
  456|  2.76M|   constexpr size_t out_size = sizeof(OutT);
  457|  2.76M|   return load_any<endianness, OutT>(std::span<const uint8_t, out_size>(in + off * out_size, out_size));
  458|  2.76M|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEhTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm1EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_:
  278|  2.76M|inline constexpr WrappedOutT load_any(InR&& in_range) {
  279|  2.76M|   using OutT = detail::wrapped_type<WrappedOutT>;
  280|  2.76M|   ranges::assert_exact_byte_length<sizeof(OutT)>(in_range);
  281|       |
  282|  2.76M|   return detail::wrap_strong_type_or_enum<WrappedOutT>([&]() -> OutT {
  283|       |      // At compile time we cannot use `typecast_copy` as it uses `std::memcpy`
  284|       |      // internally to copy ranges on a byte-by-byte basis, which is not allowed
  285|       |      // in a `constexpr` context.
  286|  2.76M|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  287|  2.76M|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  2.76M|      } else {
  289|  2.76M|         const std::span in{in_range};
  290|  2.76M|         if constexpr(sizeof(OutT) == 1) {
  291|  2.76M|            return static_cast<OutT>(in[0]);
  292|  2.76M|         } else if constexpr(endianness == std::endian::native) {
  293|  2.76M|            return typecast_copy<OutT>(in);
  294|  2.76M|         } else {
  295|  2.76M|            static_assert(opposite(endianness) == std::endian::native);
  296|  2.76M|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  2.76M|         }
  298|  2.76M|      }
  299|  2.76M|   }());
  300|  2.76M|}
_ZN5Botan6detail24wrap_strong_type_or_enumITkNS0_20unsigned_integralishEhTkNSt3__117unsigned_integralEhEEDaT0_:
  200|  2.76M|constexpr auto wrap_strong_type_or_enum(T t) {
  201|       |   if constexpr(std::is_enum_v<OutT>) {
  202|       |      return static_cast<OutT>(t);
  203|  2.76M|   } else {
  204|  2.76M|      return Botan::wrap_strong_type<OutT>(t);
  205|  2.76M|   }
  206|  2.76M|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEhTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm1EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_ENKUlvE_clEv:
  282|  2.76M|   return detail::wrap_strong_type_or_enum<WrappedOutT>([&]() -> OutT {
  283|       |      // At compile time we cannot use `typecast_copy` as it uses `std::memcpy`
  284|       |      // internally to copy ranges on a byte-by-byte basis, which is not allowed
  285|       |      // in a `constexpr` context.
  286|  2.76M|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (286:10): [Folded, False: 2.76M]
  ------------------
  287|      0|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  2.76M|      } else {
  289|  2.76M|         const std::span in{in_range};
  290|  2.76M|         if constexpr(sizeof(OutT) == 1) {
  291|  2.76M|            return static_cast<OutT>(in[0]);
  292|       |         } else if constexpr(endianness == std::endian::native) {
  293|       |            return typecast_copy<OutT>(in);
  294|       |         } else {
  295|       |            static_assert(opposite(endianness) == std::endian::native);
  296|       |            return reverse_bytes(typecast_copy<OutT>(in));
  297|       |         }
  298|  2.76M|      }
  299|  2.76M|   }());
_ZN5Botan12get_byte_varImEEhmT_:
   69|    909|inline constexpr uint8_t get_byte_var(size_t byte_num, T input) {
   70|    909|   return static_cast<uint8_t>(input >> (((~byte_num) & (sizeof(T) - 1)) << 3));
   71|    909|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEjTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm4EEEQnt15custom_storableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEEvS9_OT1_:
  525|   274k|inline constexpr void store_any(WrappedInT wrapped_in, OutR&& out_range) {
  526|   274k|   const auto in = detail::unwrap_strong_type_or_enum(wrapped_in);
  527|   274k|   using InT = decltype(in);
  528|   274k|   ranges::assert_exact_byte_length<sizeof(in)>(out_range);
  529|   274k|   const std::span out{out_range};
  530|       |
  531|       |   // At compile time we cannot use `typecast_copy` as it uses `std::memcpy`
  532|       |   // internally to copy ranges on a byte-by-byte basis, which is not allowed
  533|       |   // in a `constexpr` context.
  534|   274k|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (534:7): [Folded, False: 274k]
  ------------------
  535|      0|      return fallback_store_any<endianness, InT>(in, std::forward<OutR>(out_range));
  536|   274k|   } else {
  537|       |      if constexpr(sizeof(InT) == 1) {
  538|       |         out[0] = static_cast<uint8_t>(in);
  539|       |      } else if constexpr(endianness == std::endian::native) {
  540|       |         typecast_copy(out, in);
  541|   274k|      } else {
  542|   274k|         static_assert(opposite(endianness) == std::endian::native);
  543|   274k|         typecast_copy(out, reverse_bytes(in));
  544|   274k|      }
  545|   274k|   }
  546|   274k|}
_ZN5Botan6detail26unwrap_strong_type_or_enumITkNS0_20unsigned_integralishEjEEDaT_:
  190|   274k|constexpr auto unwrap_strong_type_or_enum(InT t) {
  191|       |   if constexpr(std::is_enum_v<InT>) {
  192|       |      // TODO: C++23: use std::to_underlying(in) instead
  193|       |      return static_cast<std::underlying_type_t<InT>>(t);
  194|   274k|   } else {
  195|   274k|      return Botan::unwrap_strong_type(t);
  196|   274k|   }
  197|   274k|}
_ZN5Botan7load_beItJPKhRmEEEDaDpOT0_:
  504|  44.1k|inline constexpr auto load_be(ParamTs&&... params) {
  505|  44.1k|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|  44.1k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEtEET0_PKhm:
  454|  44.4k|inline constexpr OutT load_any(const uint8_t in[], size_t off) {
  455|       |   // asserts that *in points to enough bytes to read at offset off
  456|  44.4k|   constexpr size_t out_size = sizeof(OutT);
  457|  44.4k|   return load_any<endianness, OutT>(std::span<const uint8_t, out_size>(in + off * out_size, out_size));
  458|  44.4k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEtTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm2EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_:
  278|  44.4k|inline constexpr WrappedOutT load_any(InR&& in_range) {
  279|  44.4k|   using OutT = detail::wrapped_type<WrappedOutT>;
  280|  44.4k|   ranges::assert_exact_byte_length<sizeof(OutT)>(in_range);
  281|       |
  282|  44.4k|   return detail::wrap_strong_type_or_enum<WrappedOutT>([&]() -> OutT {
  283|       |      // At compile time we cannot use `typecast_copy` as it uses `std::memcpy`
  284|       |      // internally to copy ranges on a byte-by-byte basis, which is not allowed
  285|       |      // in a `constexpr` context.
  286|  44.4k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  287|  44.4k|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  44.4k|      } else {
  289|  44.4k|         const std::span in{in_range};
  290|  44.4k|         if constexpr(sizeof(OutT) == 1) {
  291|  44.4k|            return static_cast<OutT>(in[0]);
  292|  44.4k|         } else if constexpr(endianness == std::endian::native) {
  293|  44.4k|            return typecast_copy<OutT>(in);
  294|  44.4k|         } else {
  295|  44.4k|            static_assert(opposite(endianness) == std::endian::native);
  296|  44.4k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  44.4k|         }
  298|  44.4k|      }
  299|  44.4k|   }());
  300|  44.4k|}
_ZN5Botan6detail24wrap_strong_type_or_enumITkNS0_20unsigned_integralishEtTkNSt3__117unsigned_integralEtEEDaT0_:
  200|  44.4k|constexpr auto wrap_strong_type_or_enum(T t) {
  201|       |   if constexpr(std::is_enum_v<OutT>) {
  202|       |      return static_cast<OutT>(t);
  203|  44.4k|   } else {
  204|  44.4k|      return Botan::wrap_strong_type<OutT>(t);
  205|  44.4k|   }
  206|  44.4k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEtTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm2EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_ENKUlvE_clEv:
  282|  44.4k|   return detail::wrap_strong_type_or_enum<WrappedOutT>([&]() -> OutT {
  283|       |      // At compile time we cannot use `typecast_copy` as it uses `std::memcpy`
  284|       |      // internally to copy ranges on a byte-by-byte basis, which is not allowed
  285|       |      // in a `constexpr` context.
  286|  44.4k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (286:10): [Folded, False: 44.4k]
  ------------------
  287|      0|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  44.4k|      } else {
  289|  44.4k|         const std::span in{in_range};
  290|       |         if constexpr(sizeof(OutT) == 1) {
  291|       |            return static_cast<OutT>(in[0]);
  292|       |         } else if constexpr(endianness == std::endian::native) {
  293|       |            return typecast_copy<OutT>(in);
  294|  44.4k|         } else {
  295|  44.4k|            static_assert(opposite(endianness) == std::endian::native);
  296|  44.4k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  44.4k|         }
  298|  44.4k|      }
  299|  44.4k|   }());
_ZN5Botan6detail26unwrap_strong_type_or_enumITkNS0_20unsigned_integralishEmEEDaT_:
  190|  35.5k|constexpr auto unwrap_strong_type_or_enum(InT t) {
  191|       |   if constexpr(std::is_enum_v<InT>) {
  192|       |      // TODO: C++23: use std::to_underlying(in) instead
  193|       |      return static_cast<std::underlying_type_t<InT>>(t);
  194|  35.5k|   } else {
  195|  35.5k|      return Botan::unwrap_strong_type(t);
  196|  35.5k|   }
  197|  35.5k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_:
  278|    219|inline constexpr WrappedOutT load_any(InR&& in_range) {
  279|    219|   using OutT = detail::wrapped_type<WrappedOutT>;
  280|    219|   ranges::assert_exact_byte_length<sizeof(OutT)>(in_range);
  281|       |
  282|    219|   return detail::wrap_strong_type_or_enum<WrappedOutT>([&]() -> OutT {
  283|       |      // At compile time we cannot use `typecast_copy` as it uses `std::memcpy`
  284|       |      // internally to copy ranges on a byte-by-byte basis, which is not allowed
  285|       |      // in a `constexpr` context.
  286|    219|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  287|    219|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|    219|      } else {
  289|    219|         const std::span in{in_range};
  290|    219|         if constexpr(sizeof(OutT) == 1) {
  291|    219|            return static_cast<OutT>(in[0]);
  292|    219|         } else if constexpr(endianness == std::endian::native) {
  293|    219|            return typecast_copy<OutT>(in);
  294|    219|         } else {
  295|    219|            static_assert(opposite(endianness) == std::endian::native);
  296|    219|            return reverse_bytes(typecast_copy<OutT>(in));
  297|    219|         }
  298|    219|      }
  299|    219|   }());
  300|    219|}
_ZN5Botan6detail24wrap_strong_type_or_enumITkNS0_20unsigned_integralishEmTkNSt3__117unsigned_integralEmEEDaT0_:
  200|  2.37k|constexpr auto wrap_strong_type_or_enum(T t) {
  201|       |   if constexpr(std::is_enum_v<OutT>) {
  202|       |      return static_cast<OutT>(t);
  203|  2.37k|   } else {
  204|  2.37k|      return Botan::wrap_strong_type<OutT>(t);
  205|  2.37k|   }
  206|  2.37k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_ENKUlvE_clEv:
  282|    219|   return detail::wrap_strong_type_or_enum<WrappedOutT>([&]() -> OutT {
  283|       |      // At compile time we cannot use `typecast_copy` as it uses `std::memcpy`
  284|       |      // internally to copy ranges on a byte-by-byte basis, which is not allowed
  285|       |      // in a `constexpr` context.
  286|    219|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (286:10): [Folded, False: 219]
  ------------------
  287|      0|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|    219|      } else {
  289|    219|         const std::span in{in_range};
  290|       |         if constexpr(sizeof(OutT) == 1) {
  291|       |            return static_cast<OutT>(in[0]);
  292|       |         } else if constexpr(endianness == std::endian::native) {
  293|       |            return typecast_copy<OutT>(in);
  294|    219|         } else {
  295|    219|            static_assert(opposite(endianness) == std::endian::native);
  296|    219|            return reverse_bytes(typecast_copy<OutT>(in));
  297|    219|         }
  298|    219|      }
  299|    219|   }());
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS0_20unsigned_integralishEmQoosr3stdE7same_asIS4_T0_Esr3stdE7same_asIT1_S5_EEEvS6_Ph:
  711|  35.5k|inline constexpr void store_any(T in, uint8_t out[]) {
  712|       |   // asserts that *out points to enough bytes to write into
  713|  35.5k|   store_any<endianness, InT>(in, std::span<uint8_t, sizeof(T)>(out, sizeof(T)));
  714|  35.5k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS0_20unsigned_integralishEmTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm8EEEQsr3stdE7same_asIS4_T0_EEEvT1_OT2_:
  646|  35.5k|inline constexpr void store_any(T in, OutR&& out_range) {
  647|  35.5k|   store_any<endianness, T>(in, std::forward<OutR>(out_range));
  648|  35.5k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm8EEEQnt15custom_storableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEEvS9_OT1_:
  525|  35.5k|inline constexpr void store_any(WrappedInT wrapped_in, OutR&& out_range) {
  526|  35.5k|   const auto in = detail::unwrap_strong_type_or_enum(wrapped_in);
  527|  35.5k|   using InT = decltype(in);
  528|  35.5k|   ranges::assert_exact_byte_length<sizeof(in)>(out_range);
  529|  35.5k|   const std::span out{out_range};
  530|       |
  531|       |   // At compile time we cannot use `typecast_copy` as it uses `std::memcpy`
  532|       |   // internally to copy ranges on a byte-by-byte basis, which is not allowed
  533|       |   // in a `constexpr` context.
  534|  35.5k|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (534:7): [Folded, False: 35.5k]
  ------------------
  535|      0|      return fallback_store_any<endianness, InT>(in, std::forward<OutR>(out_range));
  536|  35.5k|   } else {
  537|       |      if constexpr(sizeof(InT) == 1) {
  538|       |         out[0] = static_cast<uint8_t>(in);
  539|       |      } else if constexpr(endianness == std::endian::native) {
  540|       |         typecast_copy(out, in);
  541|  35.5k|      } else {
  542|  35.5k|         static_assert(opposite(endianness) == std::endian::native);
  543|  35.5k|         typecast_copy(out, reverse_bytes(in));
  544|  35.5k|      }
  545|  35.5k|   }
  546|  35.5k|}
_ZN5Botan6detail24wrap_strong_type_or_enumITkNS0_20unsigned_integralishEjTkNSt3__117unsigned_integralEjEEDaT0_:
  200|    247|constexpr auto wrap_strong_type_or_enum(T t) {
  201|       |   if constexpr(std::is_enum_v<OutT>) {
  202|       |      return static_cast<OutT>(t);
  203|    247|   } else {
  204|    247|      return Botan::wrap_strong_type<OutT>(t);
  205|    247|   }
  206|    247|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEjTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm4EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_:
  278|    247|inline constexpr WrappedOutT load_any(InR&& in_range) {
  279|    247|   using OutT = detail::wrapped_type<WrappedOutT>;
  280|    247|   ranges::assert_exact_byte_length<sizeof(OutT)>(in_range);
  281|       |
  282|    247|   return detail::wrap_strong_type_or_enum<WrappedOutT>([&]() -> OutT {
  283|       |      // At compile time we cannot use `typecast_copy` as it uses `std::memcpy`
  284|       |      // internally to copy ranges on a byte-by-byte basis, which is not allowed
  285|       |      // in a `constexpr` context.
  286|    247|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  287|    247|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|    247|      } else {
  289|    247|         const std::span in{in_range};
  290|    247|         if constexpr(sizeof(OutT) == 1) {
  291|    247|            return static_cast<OutT>(in[0]);
  292|    247|         } else if constexpr(endianness == std::endian::native) {
  293|    247|            return typecast_copy<OutT>(in);
  294|    247|         } else {
  295|    247|            static_assert(opposite(endianness) == std::endian::native);
  296|    247|            return reverse_bytes(typecast_copy<OutT>(in));
  297|    247|         }
  298|    247|      }
  299|    247|   }());
  300|    247|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEjTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm4EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_ENKUlvE_clEv:
  282|    247|   return detail::wrap_strong_type_or_enum<WrappedOutT>([&]() -> OutT {
  283|       |      // At compile time we cannot use `typecast_copy` as it uses `std::memcpy`
  284|       |      // internally to copy ranges on a byte-by-byte basis, which is not allowed
  285|       |      // in a `constexpr` context.
  286|    247|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (286:10): [Folded, False: 247]
  ------------------
  287|      0|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|    247|      } else {
  289|    247|         const std::span in{in_range};
  290|       |         if constexpr(sizeof(OutT) == 1) {
  291|       |            return static_cast<OutT>(in[0]);
  292|       |         } else if constexpr(endianness == std::endian::native) {
  293|       |            return typecast_copy<OutT>(in);
  294|    247|         } else {
  295|    247|            static_assert(opposite(endianness) == std::endian::native);
  296|    247|            return reverse_bytes(typecast_copy<OutT>(in));
  297|    247|         }
  298|    247|      }
  299|    247|   }());
_ZN5Botan8store_beINS_6detail10AutoDetectEJRKmPhEEEDaDpOT0_:
  745|  35.5k|inline constexpr auto store_be(ParamTs&&... params) {
  746|  35.5k|   return detail::store_any<std::endian::big, ModifierT>(std::forward<ParamTs>(params)...);
  747|  35.5k|}
_ZN5Botan11copy_out_beITkNS_6ranges14spanable_rangeENSt3__16vectorIjNS_16secure_allocatorIjEEEEEEvNS2_4spanIhLm18446744073709551615EEERKT_:
  773|  35.5k|inline void copy_out_be(std::span<uint8_t> out, const InR& in) {
  774|  35.5k|   using T = std::ranges::range_value_t<InR>;
  775|  35.5k|   std::span<const T> in_s{in};
  776|  35.5k|   const auto remaining_bytes = detail::copy_out_any_word_aligned_portion<std::endian::big>(out, in_s);
  777|       |
  778|       |   // copy remaining bytes as a partial word
  779|  35.5k|   for(size_t i = 0; i < remaining_bytes; ++i) {
  ------------------
  |  Branch (779:22): [True: 0, False: 35.5k]
  ------------------
  780|      0|      out[i] = get_byte_var(i, in_s.front());
  781|      0|   }
  782|  35.5k|}
_ZN5Botan6detail33copy_out_any_word_aligned_portionILNSt3__16endianE64206ETkNS0_20unsigned_integralishEjEEmRNS2_4spanIhLm18446744073709551615EEERNS4_IKT0_Lm18446744073709551615EEE:
  752|  35.5k|inline size_t copy_out_any_word_aligned_portion(std::span<uint8_t>& out, std::span<const T>& in) {
  753|  35.5k|   const size_t full_words = out.size() / sizeof(T);
  754|  35.5k|   const size_t full_word_bytes = full_words * sizeof(T);
  755|  35.5k|   const size_t remaining_bytes = out.size() - full_word_bytes;
  756|  35.5k|   BOTAN_ASSERT_NOMSG(in.size_bytes() >= full_word_bytes + remaining_bytes);
  ------------------
  |  |   77|  35.5k|   do {                                                                     \
  |  |   78|  35.5k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  35.5k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 35.5k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  35.5k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 35.5k]
  |  |  ------------------
  ------------------
  757|       |
  758|       |   // copy full words
  759|  35.5k|   store_any<endianness, T>(out.first(full_word_bytes), in.first(full_words));
  760|  35.5k|   out = out.subspan(full_word_bytes);
  761|  35.5k|   in = in.subspan(full_words);
  762|       |
  763|  35.5k|   return remaining_bytes;
  764|  35.5k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206EjTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm18446744073709551615EEETkNS4_14spanable_rangeENS6_IKjLm18446744073709551615EEEQoosr3stdE7same_asINS0_10AutoDetectET0_Esr3stdE7same_asISB_NS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT2_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISJ_EESK_E4type10value_typeEEEEvOT1_RKSG_:
  603|  35.5k|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  604|  35.5k|   ranges::assert_equal_byte_lengths(out, in);
  605|  35.5k|   using element_type = std::ranges::range_value_t<InR>;
  606|       |
  607|  35.5k|   auto store_elementwise = [&] {
  608|  35.5k|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|  35.5k|      std::span<uint8_t> out_s(out);
  610|  35.5k|      for(auto in_elem : in) {
  611|  35.5k|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|  35.5k|         out_s = out_s.subspan(bytes_per_element);
  613|  35.5k|      }
  614|  35.5k|   };
  615|       |
  616|       |   // At compile time we cannot use `typecast_copy` as it uses `std::memcpy`
  617|       |   // internally to copy ranges on a byte-by-byte basis, which is not allowed
  618|       |   // in a `constexpr` context.
  619|  35.5k|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (619:7): [Folded, False: 35.5k]
  ------------------
  620|      0|      store_elementwise();
  621|  35.5k|   } else {
  622|       |      if constexpr(endianness == std::endian::native && !custom_storable<element_type>) {
  623|       |         typecast_copy(out, in);
  624|  35.5k|      } else {
  625|  35.5k|         store_elementwise();
  626|  35.5k|      }
  627|  35.5k|   }
  628|  35.5k|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE64206EjTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm18446744073709551615EEETkNS4_14spanable_rangeENS6_IKjLm18446744073709551615EEEQoosr3stdE7same_asINS0_10AutoDetectET0_Esr3stdE7same_asISB_NS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT2_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISJ_EESK_E4type10value_typeEEEEvOT1_RKSG_ENKUlvE_clEv:
  607|  35.5k|   auto store_elementwise = [&] {
  608|  35.5k|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|  35.5k|      std::span<uint8_t> out_s(out);
  610|   274k|      for(auto in_elem : in) {
  ------------------
  |  Branch (610:24): [True: 274k, False: 35.5k]
  ------------------
  611|   274k|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|   274k|         out_s = out_s.subspan(bytes_per_element);
  613|   274k|      }
  614|  35.5k|   };
_ZN5Botan6detail9store_anyILNSt3__16endianE64206EjTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm4EEETpTkNS0_20unsigned_integralishEJjEQaagtsZT2_Li0Eooaasr3stdE7same_asINS0_10AutoDetectET0_E10all_same_vIDpT2_Eaa20unsigned_integralishIS9_E10all_same_vIS9_SB_EEEvOT1_SB_:
  582|   274k|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, Ts... ins) {
  583|   274k|   ranges::assert_exact_byte_length<(sizeof(Ts) + ...)>(out);
  584|   274k|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|   274k|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|   274k|      off += sizeof(T);
  587|   274k|   };
  588|       |
  589|   274k|   (store_one(std::span{out}, ins), ...);
  590|   274k|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE64206EjTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm4EEETpTkNS0_20unsigned_integralishEJjEQaagtsZT2_Li0Eooaasr3stdE7same_asINS0_10AutoDetectET0_E10all_same_vIDpT2_Eaa20unsigned_integralishIS9_E10all_same_vIS9_SB_EEEvOT1_SB_ENUlTyS9_T_E_clIjS7_EEDaS9_SE_:
  584|   274k|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|   274k|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|   274k|      off += sizeof(T);
  587|   274k|   };
_ZN5Botan7load_beImJNSt3__14spanIKhLm8EEEEEEDaDpOT0_:
  504|    219|inline constexpr auto load_be(ParamTs&&... params) {
  505|    219|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|    219|}
_ZN5Botan7load_beImJRNSt3__15arrayIhLm8EEEEEEDaDpOT0_:
  504|  2.15k|inline constexpr auto load_be(ParamTs&&... params) {
  505|  2.15k|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|  2.15k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEERNS2_5arrayIhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_:
  278|  2.15k|inline constexpr WrappedOutT load_any(InR&& in_range) {
  279|  2.15k|   using OutT = detail::wrapped_type<WrappedOutT>;
  280|  2.15k|   ranges::assert_exact_byte_length<sizeof(OutT)>(in_range);
  281|       |
  282|  2.15k|   return detail::wrap_strong_type_or_enum<WrappedOutT>([&]() -> OutT {
  283|       |      // At compile time we cannot use `typecast_copy` as it uses `std::memcpy`
  284|       |      // internally to copy ranges on a byte-by-byte basis, which is not allowed
  285|       |      // in a `constexpr` context.
  286|  2.15k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  287|  2.15k|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  2.15k|      } else {
  289|  2.15k|         const std::span in{in_range};
  290|  2.15k|         if constexpr(sizeof(OutT) == 1) {
  291|  2.15k|            return static_cast<OutT>(in[0]);
  292|  2.15k|         } else if constexpr(endianness == std::endian::native) {
  293|  2.15k|            return typecast_copy<OutT>(in);
  294|  2.15k|         } else {
  295|  2.15k|            static_assert(opposite(endianness) == std::endian::native);
  296|  2.15k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  2.15k|         }
  298|  2.15k|      }
  299|  2.15k|   }());
  300|  2.15k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEERNS2_5arrayIhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_ENKUlvE_clEv:
  282|  2.15k|   return detail::wrap_strong_type_or_enum<WrappedOutT>([&]() -> OutT {
  283|       |      // At compile time we cannot use `typecast_copy` as it uses `std::memcpy`
  284|       |      // internally to copy ranges on a byte-by-byte basis, which is not allowed
  285|       |      // in a `constexpr` context.
  286|  2.15k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (286:10): [Folded, False: 2.15k]
  ------------------
  287|      0|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  2.15k|      } else {
  289|  2.15k|         const std::span in{in_range};
  290|       |         if constexpr(sizeof(OutT) == 1) {
  291|       |            return static_cast<OutT>(in[0]);
  292|       |         } else if constexpr(endianness == std::endian::native) {
  293|       |            return typecast_copy<OutT>(in);
  294|  2.15k|         } else {
  295|  2.15k|            static_assert(opposite(endianness) == std::endian::native);
  296|  2.15k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  2.15k|         }
  298|  2.15k|      }
  299|  2.15k|   }());
_ZN5Botan7load_beItJRPKhRmEEEDaDpOT0_:
  504|    346|inline constexpr auto load_be(ParamTs&&... params) {
  505|    346|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|    346|}
_ZN5Botan7load_beIjJRPKhRmEEEDaDpOT0_:
  504|    247|inline constexpr auto load_be(ParamTs&&... params) {
  505|    247|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|    247|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEjEET0_PKhm:
  454|    247|inline constexpr OutT load_any(const uint8_t in[], size_t off) {
  455|       |   // asserts that *in points to enough bytes to read at offset off
  456|    247|   constexpr size_t out_size = sizeof(OutT);
  457|    247|   return load_any<endianness, OutT>(std::span<const uint8_t, out_size>(in + off * out_size, out_size));
  458|    247|}

_ZN5Botan18MerkleDamgard_HashINS_5SHA_1EEC2Ev:
   42|  1.71k|      MerkleDamgard_Hash() { clear(); }
_ZN5Botan18MerkleDamgard_HashINS_5SHA_1EE5clearEv:
   70|  5.14k|      void clear() {
   71|  5.14k|         MD::init(m_digest);
   72|  5.14k|         m_buffer.clear();
   73|  5.14k|         m_count = 0;
   74|  5.14k|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_256EEC2Ev:
   42|  9.68k|      MerkleDamgard_Hash() { clear(); }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_256EE5clearEv:
   70|  41.8k|      void clear() {
   71|  41.8k|         MD::init(m_digest);
   72|  41.8k|         m_buffer.clear();
   73|  41.8k|         m_count = 0;
   74|  41.8k|      }
_ZN5Botan18MerkleDamgard_HashINS_5SHA_1EE6updateENSt3__14spanIKhLm18446744073709551615EEE:
   44|  3.42k|      void update(std::span<const uint8_t> input) {
   45|  3.42k|         BufferSlicer in(input);
   46|       |
   47|  8.57k|         while(!in.empty()) {
  ------------------
  |  Branch (47:16): [True: 5.14k, False: 3.42k]
  ------------------
   48|  5.14k|            if(const auto one_block = m_buffer.handle_unaligned_data(in)) {
  ------------------
  |  Branch (48:27): [True: 0, False: 5.14k]
  ------------------
   49|      0|               MD::compress_n(m_digest, one_block.value(), 1);
   50|      0|            }
   51|       |
   52|  5.14k|            if(m_buffer.in_alignment()) {
  ------------------
  |  Branch (52:16): [True: 1.71k, False: 3.42k]
  ------------------
   53|  1.71k|               const auto [aligned_data, full_blocks] = m_buffer.aligned_data_to_process(in);
   54|  1.71k|               if(full_blocks > 0) {
  ------------------
  |  Branch (54:19): [True: 1.71k, False: 0]
  ------------------
   55|  1.71k|                  MD::compress_n(m_digest, aligned_data, full_blocks);
   56|  1.71k|               }
   57|  1.71k|            }
   58|  5.14k|         }
   59|       |
   60|  3.42k|         m_count += input.size();
   61|  3.42k|      }
_ZN5Botan18MerkleDamgard_HashINS_5SHA_1EE5finalENSt3__14spanIhLm18446744073709551615EEE:
   63|  3.42k|      void final(std::span<uint8_t> output) {
   64|  3.42k|         append_padding_bit();
   65|  3.42k|         append_counter_and_finalize();
   66|  3.42k|         copy_output(output);
   67|  3.42k|         clear();
   68|  3.42k|      }
_ZN5Botan18MerkleDamgard_HashINS_5SHA_1EE18append_padding_bitEv:
   77|  3.42k|      void append_padding_bit() {
   78|  3.42k|         BOTAN_ASSERT_NOMSG(!m_buffer.ready_to_consume());
  ------------------
  |  |   77|  3.42k|   do {                                                                     \
  |  |   78|  3.42k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  3.42k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 3.42k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  3.42k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 3.42k]
  |  |  ------------------
  ------------------
   79|  3.42k|         if constexpr(MD::bit_endianness == MD_Endian::Big) {
   80|  3.42k|            const uint8_t final_byte = 0x80;
   81|  3.42k|            m_buffer.append({&final_byte, 1});
   82|       |         } else {
   83|       |            const uint8_t final_byte = 0x01;
   84|       |            m_buffer.append({&final_byte, 1});
   85|       |         }
   86|  3.42k|      }
_ZN5Botan18MerkleDamgard_HashINS_5SHA_1EE27append_counter_and_finalizeEv:
   88|  3.42k|      void append_counter_and_finalize() {
   89|       |         // Compress the remaining data if the final data block does not provide
   90|       |         // enough space for the counter bytes.
   91|  3.42k|         if(m_buffer.elements_until_alignment() < MD::ctr_bytes) {
  ------------------
  |  Branch (91:13): [True: 0, False: 3.42k]
  ------------------
   92|      0|            m_buffer.fill_up_with_zeros();
   93|      0|            MD::compress_n(m_digest, m_buffer.consume(), 1);
   94|      0|         }
   95|       |
   96|       |         // Make sure that any remaining bytes in the very last block are zero.
   97|  3.42k|         BOTAN_ASSERT_NOMSG(m_buffer.elements_until_alignment() >= MD::ctr_bytes);
  ------------------
  |  |   77|  3.42k|   do {                                                                     \
  |  |   78|  3.42k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  3.42k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 3.42k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  3.42k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 3.42k]
  |  |  ------------------
  ------------------
   98|  3.42k|         m_buffer.fill_up_with_zeros();
   99|       |
  100|       |         // Replace a bunch of the right-most zero-padding with the counter bytes.
  101|  3.42k|         const uint64_t bit_count = m_count * 8;
  102|  3.42k|         auto last_bytes = m_buffer.directly_modify_last(sizeof(bit_count));
  103|  3.42k|         if constexpr(MD::byte_endianness == MD_Endian::Big) {
  104|  3.42k|            store_be(bit_count, last_bytes.data());
  105|       |         } else {
  106|       |            store_le(bit_count, last_bytes.data());
  107|       |         }
  108|       |
  109|       |         // Compress the very last block.
  110|  3.42k|         MD::compress_n(m_digest, m_buffer.consume(), 1);
  111|  3.42k|      }
_ZN5Botan18MerkleDamgard_HashINS_5SHA_1EE11copy_outputENSt3__14spanIhLm18446744073709551615EEE:
  113|  3.42k|      void copy_output(std::span<uint8_t> output) {
  114|  3.42k|         BOTAN_ASSERT_NOMSG(output.size() >= MD::output_bytes);
  ------------------
  |  |   77|  3.42k|   do {                                                                     \
  |  |   78|  3.42k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  3.42k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 3.42k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  3.42k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 3.42k]
  |  |  ------------------
  ------------------
  115|       |
  116|  3.42k|         if constexpr(MD::byte_endianness == MD_Endian::Big) {
  117|  3.42k|            copy_out_be(output.first(MD::output_bytes), m_digest);
  118|       |         } else {
  119|       |            copy_out_le(output.first(MD::output_bytes), m_digest);
  120|       |         }
  121|  3.42k|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_256EE6updateENSt3__14spanIKhLm18446744073709551615EEE:
   44|  34.0k|      void update(std::span<const uint8_t> input) {
   45|  34.0k|         BufferSlicer in(input);
   46|       |
   47|  78.3k|         while(!in.empty()) {
  ------------------
  |  Branch (47:16): [True: 44.3k, False: 34.0k]
  ------------------
   48|  44.3k|            if(const auto one_block = m_buffer.handle_unaligned_data(in)) {
  ------------------
  |  Branch (48:27): [True: 9.20k, False: 35.1k]
  ------------------
   49|  9.20k|               MD::compress_n(m_digest, one_block.value(), 1);
   50|  9.20k|            }
   51|       |
   52|  44.3k|            if(m_buffer.in_alignment()) {
  ------------------
  |  Branch (52:16): [True: 11.5k, False: 32.8k]
  ------------------
   53|  11.5k|               const auto [aligned_data, full_blocks] = m_buffer.aligned_data_to_process(in);
   54|  11.5k|               if(full_blocks > 0) {
  ------------------
  |  Branch (54:19): [True: 3.20k, False: 8.33k]
  ------------------
   55|  3.20k|                  MD::compress_n(m_digest, aligned_data, full_blocks);
   56|  3.20k|               }
   57|  11.5k|            }
   58|  44.3k|         }
   59|       |
   60|  34.0k|         m_count += input.size();
   61|  34.0k|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_256EE5finalENSt3__14spanIhLm18446744073709551615EEE:
   63|  32.1k|      void final(std::span<uint8_t> output) {
   64|  32.1k|         append_padding_bit();
   65|  32.1k|         append_counter_and_finalize();
   66|  32.1k|         copy_output(output);
   67|  32.1k|         clear();
   68|  32.1k|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_256EE18append_padding_bitEv:
   77|  32.1k|      void append_padding_bit() {
   78|  32.1k|         BOTAN_ASSERT_NOMSG(!m_buffer.ready_to_consume());
  ------------------
  |  |   77|  32.1k|   do {                                                                     \
  |  |   78|  32.1k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  32.1k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 32.1k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  32.1k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 32.1k]
  |  |  ------------------
  ------------------
   79|  32.1k|         if constexpr(MD::bit_endianness == MD_Endian::Big) {
   80|  32.1k|            const uint8_t final_byte = 0x80;
   81|  32.1k|            m_buffer.append({&final_byte, 1});
   82|       |         } else {
   83|       |            const uint8_t final_byte = 0x01;
   84|       |            m_buffer.append({&final_byte, 1});
   85|       |         }
   86|  32.1k|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_256EE27append_counter_and_finalizeEv:
   88|  32.1k|      void append_counter_and_finalize() {
   89|       |         // Compress the remaining data if the final data block does not provide
   90|       |         // enough space for the counter bytes.
   91|  32.1k|         if(m_buffer.elements_until_alignment() < MD::ctr_bytes) {
  ------------------
  |  Branch (91:13): [True: 3.08k, False: 29.0k]
  ------------------
   92|  3.08k|            m_buffer.fill_up_with_zeros();
   93|  3.08k|            MD::compress_n(m_digest, m_buffer.consume(), 1);
   94|  3.08k|         }
   95|       |
   96|       |         // Make sure that any remaining bytes in the very last block are zero.
   97|  32.1k|         BOTAN_ASSERT_NOMSG(m_buffer.elements_until_alignment() >= MD::ctr_bytes);
  ------------------
  |  |   77|  32.1k|   do {                                                                     \
  |  |   78|  32.1k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  32.1k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 32.1k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  32.1k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 32.1k]
  |  |  ------------------
  ------------------
   98|  32.1k|         m_buffer.fill_up_with_zeros();
   99|       |
  100|       |         // Replace a bunch of the right-most zero-padding with the counter bytes.
  101|  32.1k|         const uint64_t bit_count = m_count * 8;
  102|  32.1k|         auto last_bytes = m_buffer.directly_modify_last(sizeof(bit_count));
  103|  32.1k|         if constexpr(MD::byte_endianness == MD_Endian::Big) {
  104|  32.1k|            store_be(bit_count, last_bytes.data());
  105|       |         } else {
  106|       |            store_le(bit_count, last_bytes.data());
  107|       |         }
  108|       |
  109|       |         // Compress the very last block.
  110|  32.1k|         MD::compress_n(m_digest, m_buffer.consume(), 1);
  111|  32.1k|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_256EE11copy_outputENSt3__14spanIhLm18446744073709551615EEE:
  113|  32.1k|      void copy_output(std::span<uint8_t> output) {
  114|  32.1k|         BOTAN_ASSERT_NOMSG(output.size() >= MD::output_bytes);
  ------------------
  |  |   77|  32.1k|   do {                                                                     \
  |  |   78|  32.1k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  32.1k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 32.1k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  32.1k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 32.1k]
  |  |  ------------------
  ------------------
  115|       |
  116|  32.1k|         if constexpr(MD::byte_endianness == MD_Endian::Big) {
  117|  32.1k|            copy_out_be(output.first(MD::output_bytes), m_digest);
  118|       |         } else {
  119|       |            copy_out_le(output.first(MD::output_bytes), m_digest);
  120|       |         }
  121|  32.1k|      }

_ZN5Botan15bytes_to_stringENSt3__14spanIKhLm18446744073709551615EEE:
   76|  6.49k|inline std::string bytes_to_string(std::span<const uint8_t> bytes) {
   77|  6.49k|   return std::string(reinterpret_cast<const char*>(bytes.data()), bytes.size());
   78|  6.49k|}
_ZN5Botan14zeroize_bufferITkNSt3__117unsigned_integralEhEEvPT_m:
   37|  85.2k|inline void zeroize_buffer(T buf[], size_t n) {
   38|  85.2k|   if(n > 0) {
  ------------------
  |  Branch (38:7): [True: 85.2k, False: 0]
  ------------------
   39|  85.2k|      std::memset(buf, 0, sizeof(T) * n);
   40|  85.2k|   }
   41|  85.2k|}

_ZN5Botan8round_upEmm:
   26|  5.84k|constexpr inline size_t round_up(size_t n, size_t align_to) {
   27|       |   // Arguably returning n in this case would also be sensible
   28|  5.84k|   BOTAN_ARG_CHECK(align_to != 0, "align_to must not be 0");
  ------------------
  |  |   35|  5.84k|   do {                                                          \
  |  |   36|  5.84k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  5.84k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 5.84k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  5.84k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 5.84k]
  |  |  ------------------
  ------------------
   29|       |
   30|  5.84k|   if(n % align_to > 0) {
  ------------------
  |  Branch (30:7): [True: 4.08k, False: 1.76k]
  ------------------
   31|  4.08k|      const size_t adj = align_to - (n % align_to);
   32|  4.08k|      BOTAN_ARG_CHECK(n + adj >= n, "Integer overflow during rounding");
  ------------------
  |  |   35|  4.08k|   do {                                                          \
  |  |   36|  4.08k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  4.08k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 4.08k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  4.08k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 4.08k]
  |  |  ------------------
  ------------------
   33|  4.08k|      n += adj;
   34|  4.08k|   }
   35|  5.84k|   return n;
   36|  5.84k|}

_ZNK5Botan5SHA_113output_lengthEv:
   34|  3.42k|      size_t output_length() const override { return 20; }

_ZNK5Botan7SHA_25613output_lengthEv:
   75|  32.1k|      size_t output_length() const override { return output_bytes; }

_ZN5Botan9SIMD_4x32C2EDv2_x:
  944|  6.43M|      explicit BOTAN_FN_ISA_SIMD_4X32 SIMD_4x32(native_simd_type x) noexcept : m_simd(x) {}
_ZN5Botan9SIMD_4x327load_beEPKv:
  189|   220k|      static SIMD_4x32 BOTAN_FN_ISA_SIMD_4X32 load_be(const void* in) noexcept {
  190|   220k|#if defined(BOTAN_SIMD_USE_SSSE3) || defined(BOTAN_SIMD_USE_LSX) || defined(BOTAN_SIMD_USE_SIMD128)
  191|   220k|         return load_le(in).bswap();
  192|       |
  193|       |#elif defined(BOTAN_SIMD_USE_ALTIVEC)
  194|       |         uint32_t R0 = Botan::load_be<uint32_t>(reinterpret_cast<const uint8_t*>(in), 0);
  195|       |         uint32_t R1 = Botan::load_be<uint32_t>(reinterpret_cast<const uint8_t*>(in), 1);
  196|       |         uint32_t R2 = Botan::load_be<uint32_t>(reinterpret_cast<const uint8_t*>(in), 2);
  197|       |         uint32_t R3 = Botan::load_be<uint32_t>(reinterpret_cast<const uint8_t*>(in), 3);
  198|       |         __vector unsigned int val = {R0, R1, R2, R3};
  199|       |         return SIMD_4x32(val);
  200|       |
  201|       |#elif defined(BOTAN_SIMD_USE_NEON)
  202|       |         SIMD_4x32 l(vld1q_u32(static_cast<const uint32_t*>(in)));
  203|       |         if constexpr(std::endian::native == std::endian::little) {
  204|       |            return l.bswap();
  205|       |         } else {
  206|       |            return l;
  207|       |         }
  208|       |#endif
  209|   220k|      }
_ZN5Botan9SIMD_4x327load_leEPKv:
  162|  1.12M|      static SIMD_4x32 BOTAN_FN_ISA_SIMD_4X32 load_le(const void* in) noexcept {
  163|  1.12M|#if defined(BOTAN_SIMD_USE_SSSE3)
  164|  1.12M|         return SIMD_4x32(_mm_loadu_si128(reinterpret_cast<const __m128i*>(in)));
  165|       |#elif defined(BOTAN_SIMD_USE_ALTIVEC)
  166|       |         uint32_t R0 = Botan::load_le<uint32_t>(reinterpret_cast<const uint8_t*>(in), 0);
  167|       |         uint32_t R1 = Botan::load_le<uint32_t>(reinterpret_cast<const uint8_t*>(in), 1);
  168|       |         uint32_t R2 = Botan::load_le<uint32_t>(reinterpret_cast<const uint8_t*>(in), 2);
  169|       |         uint32_t R3 = Botan::load_le<uint32_t>(reinterpret_cast<const uint8_t*>(in), 3);
  170|       |         __vector unsigned int val = {R0, R1, R2, R3};
  171|       |         return SIMD_4x32(val);
  172|       |#elif defined(BOTAN_SIMD_USE_NEON)
  173|       |         SIMD_4x32 l(vld1q_u32(static_cast<const uint32_t*>(in)));
  174|       |         if constexpr(std::endian::native == std::endian::big) {
  175|       |            return l.bswap();
  176|       |         } else {
  177|       |            return l;
  178|       |         }
  179|       |#elif defined(BOTAN_SIMD_USE_LSX)
  180|       |         return SIMD_4x32(__lsx_vld(in, 0));
  181|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  182|       |         return SIMD_4x32(wasm_v128_load(in));
  183|       |#endif
  184|  1.12M|      }
_ZNK5Botan9SIMD_4x325bswapEv:
  576|   220k|      BOTAN_FN_ISA_SIMD_4X32 SIMD_4x32 bswap() const noexcept {
  577|   220k|#if defined(BOTAN_SIMD_USE_SSSE3)
  578|   220k|         const auto idx = _mm_set_epi8(12, 13, 14, 15, 8, 9, 10, 11, 4, 5, 6, 7, 0, 1, 2, 3);
  579|       |
  580|   220k|         return SIMD_4x32(_mm_shuffle_epi8(raw(), idx));
  581|       |#elif defined(BOTAN_SIMD_USE_ALTIVEC)
  582|       |   #ifdef BOTAN_SIMD_USE_VSX
  583|       |         return SIMD_4x32(vec_revb(m_simd));
  584|       |   #else
  585|       |         const __vector unsigned char rev[1] = {
  586|       |            {3, 2, 1, 0, 7, 6, 5, 4, 11, 10, 9, 8, 15, 14, 13, 12},
  587|       |         };
  588|       |
  589|       |         return SIMD_4x32(vec_perm(m_simd, m_simd, rev[0]));
  590|       |   #endif
  591|       |
  592|       |#elif defined(BOTAN_SIMD_USE_NEON)
  593|       |         return SIMD_4x32(vreinterpretq_u32_u8(vrev32q_u8(vreinterpretq_u8_u32(m_simd))));
  594|       |#elif defined(BOTAN_SIMD_USE_LSX)
  595|       |         return SIMD_4x32(__lsx_vshuf4i_b(m_simd, 0b00011011));
  596|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  597|       |         return SIMD_4x32(wasm_i8x16_shuffle(m_simd, m_simd, 3, 2, 1, 0, 7, 6, 5, 4, 11, 10, 9, 8, 15, 14, 13, 12));
  598|       |#endif
  599|   220k|      }
_ZNK5Botan9SIMD_4x323rawEv:
  942|  11.0M|      native_simd_type BOTAN_FN_ISA_SIMD_4X32 raw() const noexcept { return m_simd; }
_ZNK5Botan9SIMD_4x32plERKS0_:
  385|   805k|      SIMD_4x32 BOTAN_FN_ISA_SIMD_4X32 operator+(const SIMD_4x32& other) const noexcept {
  386|   805k|         SIMD_4x32 retval(*this);
  387|   805k|         retval += other;
  388|   805k|         return retval;
  389|   805k|      }
_ZN5Botan9SIMD_4x32pLERKS0_:
  427|  1.51M|      void BOTAN_FN_ISA_SIMD_4X32 operator+=(const SIMD_4x32& other) noexcept {
  428|  1.51M|#if defined(BOTAN_SIMD_USE_SSSE3)
  429|  1.51M|         m_simd = _mm_add_epi32(m_simd, other.m_simd);
  430|       |#elif defined(BOTAN_SIMD_USE_ALTIVEC)
  431|       |         m_simd = vec_add(m_simd, other.m_simd);
  432|       |#elif defined(BOTAN_SIMD_USE_NEON)
  433|       |         m_simd = vaddq_u32(m_simd, other.m_simd);
  434|       |#elif defined(BOTAN_SIMD_USE_LSX)
  435|       |         m_simd = __lsx_vadd_w(m_simd, other.m_simd);
  436|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  437|       |         m_simd = wasm_i32x4_add(m_simd, other.m_simd);
  438|       |#endif
  439|  1.51M|      }
_ZNK5Botan9SIMD_4x328store_leEPj:
  219|   100k|      void BOTAN_FN_ISA_SIMD_4X32 store_le(uint32_t out[4]) const noexcept {
  220|   100k|         this->store_le(reinterpret_cast<uint8_t*>(out));
  221|   100k|      }
_ZNK5Botan9SIMD_4x328store_leEPh:
  234|   100k|      void BOTAN_FN_ISA_SIMD_4X32 store_le(uint8_t out[]) const noexcept {
  235|   100k|#if defined(BOTAN_SIMD_USE_SSSE3)
  236|       |
  237|   100k|         _mm_storeu_si128(reinterpret_cast<__m128i*>(out), raw());
  238|       |
  239|       |#elif defined(BOTAN_SIMD_USE_ALTIVEC)
  240|       |
  241|       |         union {
  242|       |               __vector unsigned int V;
  243|       |               uint32_t R[4];
  244|       |         } vec{};
  245|       |
  246|       |         // NOLINTNEXTLINE(*-union-access)
  247|       |         vec.V = raw();
  248|       |         // NOLINTNEXTLINE(*-union-access)
  249|       |         Botan::store_le(out, vec.R[0], vec.R[1], vec.R[2], vec.R[3]);
  250|       |
  251|       |#elif defined(BOTAN_SIMD_USE_NEON)
  252|       |         if constexpr(std::endian::native == std::endian::little) {
  253|       |            vst1q_u8(out, vreinterpretq_u8_u32(m_simd));
  254|       |         } else {
  255|       |            vst1q_u8(out, vreinterpretq_u8_u32(bswap().m_simd));
  256|       |         }
  257|       |#elif defined(BOTAN_SIMD_USE_LSX)
  258|       |         __lsx_vst(raw(), out, 0);
  259|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  260|       |         wasm_v128_store(out, m_simd);
  261|       |#endif
  262|   100k|      }
_ZN5Botan9SIMD_4x327alignr8ERKS0_S2_:
  886|  95.2k|      static inline SIMD_4x32 BOTAN_FN_ISA_SIMD_4X32 alignr8(const SIMD_4x32& a, const SIMD_4x32& b) {
  887|  95.2k|#if defined(BOTAN_SIMD_USE_SSSE3)
  888|  95.2k|         return SIMD_4x32(_mm_alignr_epi8(a.raw(), b.raw(), 8));
  889|       |#elif defined(BOTAN_SIMD_USE_NEON)
  890|       |         return SIMD_4x32(vextq_u32(b.raw(), a.raw(), 2));
  891|       |#elif defined(BOTAN_SIMD_USE_ALTIVEC)
  892|       |         const __vector unsigned char mask = {8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23};
  893|       |         return SIMD_4x32(vec_perm(b.raw(), a.raw(), mask));
  894|       |#elif defined(BOTAN_SIMD_USE_LSX)
  895|       |         return SIMD_4x32(__lsx_vshuf4i_d(a.raw(), b.raw(), 0b0011));
  896|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  897|       |         return SIMD_4x32(
  898|       |            wasm_i8x16_shuffle(b.raw(), a.raw(), 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23));
  899|       |#endif
  900|  95.2k|      }
_ZN5Botan9SIMD_4x32eOERKS0_:
  455|  87.4k|      void BOTAN_FN_ISA_SIMD_4X32 operator^=(const SIMD_4x32& other) noexcept {
  456|  87.4k|#if defined(BOTAN_SIMD_USE_SSSE3)
  457|  87.4k|         m_simd = _mm_xor_si128(m_simd, other.m_simd);
  458|       |#elif defined(BOTAN_SIMD_USE_ALTIVEC)
  459|       |         m_simd = vec_xor(m_simd, other.m_simd);
  460|       |#elif defined(BOTAN_SIMD_USE_NEON)
  461|       |         m_simd = veorq_u32(m_simd, other.m_simd);
  462|       |#elif defined(BOTAN_SIMD_USE_LSX)
  463|       |         m_simd = __lsx_vxor_v(m_simd, other.m_simd);
  464|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  465|       |         m_simd = wasm_v128_xor(m_simd, other.m_simd);
  466|       |#endif
  467|  87.4k|      }
_ZN5Botan9SIMD_4x32C2Ejjjj:
  103|  5.14k|      BOTAN_FN_ISA_SIMD_4X32 SIMD_4x32(uint32_t B0, uint32_t B1, uint32_t B2, uint32_t B3) noexcept {
  104|  5.14k|#if defined(BOTAN_SIMD_USE_SSSE3)
  105|  5.14k|         m_simd = _mm_set_epi32(B3, B2, B1, B0);
  106|       |#elif defined(BOTAN_SIMD_USE_ALTIVEC)
  107|       |         __vector unsigned int val = {B0, B1, B2, B3};
  108|       |         m_simd = val;
  109|       |#elif defined(BOTAN_SIMD_USE_NEON)
  110|       |         // Better way to do this?
  111|       |         const uint32_t B[4] = {B0, B1, B2, B3};
  112|       |         m_simd = vld1q_u32(B);
  113|       |#elif defined(BOTAN_SIMD_USE_LSX)
  114|       |         // Better way to do this?
  115|       |         const uint32_t B[4] = {B0, B1, B2, B3};
  116|       |         m_simd = __lsx_vld(B, 0);
  117|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  118|       |         m_simd = wasm_u32x4_make(B0, B1, B2, B3);
  119|       |#endif
  120|  5.14k|      }
_ZN5Botan9SIMD_4x327alignr4ERKS0_S2_:
  869|   600k|      static inline SIMD_4x32 BOTAN_FN_ISA_SIMD_4X32 alignr4(const SIMD_4x32& a, const SIMD_4x32& b) {
  870|   600k|#if defined(BOTAN_SIMD_USE_SSSE3)
  871|   600k|         return SIMD_4x32(_mm_alignr_epi8(a.raw(), b.raw(), 4));
  872|       |#elif defined(BOTAN_SIMD_USE_NEON)
  873|       |         return SIMD_4x32(vextq_u32(b.raw(), a.raw(), 1));
  874|       |#elif defined(BOTAN_SIMD_USE_ALTIVEC)
  875|       |         const __vector unsigned char mask = {4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19};
  876|       |         return SIMD_4x32(vec_perm(b.raw(), a.raw(), mask));
  877|       |#elif defined(BOTAN_SIMD_USE_LSX)
  878|       |         const auto mask = SIMD_4x32(0x07060504, 0x0B0A0908, 0x0F0E0D0C, 0x13121110);
  879|       |         return SIMD_4x32(__lsx_vshuf_b(a.raw(), b.raw(), mask.raw()));
  880|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  881|       |         return SIMD_4x32(
  882|       |            wasm_i8x16_shuffle(b.raw(), a.raw(), 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19));
  883|       |#endif
  884|   600k|      }
_ZNK5Botan9SIMD_4x3217shift_elems_rightILm2EEES0_vQleT_Li3E:
  641|   800k|      {
  642|   800k|#if defined(BOTAN_SIMD_USE_SSSE3)
  643|   800k|         return SIMD_4x32(_mm_srli_si128(raw(), 4 * I));
  644|       |#elif defined(BOTAN_SIMD_USE_NEON)
  645|       |         return SIMD_4x32(vextq_u32(raw(), vdupq_n_u32(0), I));
  646|       |#elif defined(BOTAN_SIMD_USE_ALTIVEC)
  647|       |         const __vector unsigned int zero = vec_splat_u32(0);
  648|       |
  649|       |         const __vector unsigned char shuf[3] = {
  650|       |            {4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19},
  651|       |            {8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23},
  652|       |            {12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27},
  653|       |         };
  654|       |
  655|       |         return SIMD_4x32(vec_perm(raw(), zero, shuf[I - 1]));
  656|       |#elif defined(BOTAN_SIMD_USE_LSX)
  657|       |         return SIMD_4x32(__lsx_vbsrl_v(raw(), 4 * I));
  658|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  659|       |         if constexpr(I == 0) {
  660|       |            return SIMD_4x32(m_simd);
  661|       |         }
  662|       |
  663|       |         const auto zero = wasm_u32x4_const_splat(0);
  664|       |         if constexpr(I == 1) {
  665|       |            return SIMD_4x32(
  666|       |               wasm_i8x16_shuffle(m_simd, zero, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 16, 16));
  667|       |         }
  668|       |         if constexpr(I == 2) {
  669|       |            return SIMD_4x32(
  670|       |               wasm_i8x16_shuffle(m_simd, zero, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 16, 16, 16, 16, 16, 16));
  671|       |         }
  672|       |
  673|       |         return SIMD_4x32(
  674|       |            wasm_i8x16_shuffle(m_simd, zero, 12, 13, 14, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16));
  675|       |#endif
  676|   800k|      }

_ZN5Botan13generalize_toINSt3__17variantIJNS_3TLS15Client_Hello_13ENS3_20Client_Hello_12_ShimENS3_15Server_Hello_13ENS3_20Server_Hello_12_ShimENS3_19Hello_Retry_RequestENS3_20Encrypted_ExtensionsENS3_14Certificate_13ENS3_22Certificate_Request_13ENS3_21Certificate_Verify_13ENS3_11Finished_13EEEEJS4_S5_EEET_NS2_IJDpT0_EEE:
  102|  4.50k|constexpr GeneralVariantT generalize_to(std::variant<SpecialTs...> specific) {
  103|  4.50k|   static_assert(
  104|  4.50k|      is_generalizable_to<GeneralVariantT>(specific),
  105|  4.50k|      "Desired general type must be implicitly constructible by all types of the specialized std::variant<>");
  106|  4.50k|   return std::visit([](auto s) -> GeneralVariantT { return s; }, std::move(specific));
  107|  4.50k|}
_ZZN5Botan13generalize_toINSt3__17variantIJNS_3TLS15Client_Hello_13ENS3_20Client_Hello_12_ShimENS3_15Server_Hello_13ENS3_20Server_Hello_12_ShimENS3_19Hello_Retry_RequestENS3_20Encrypted_ExtensionsENS3_14Certificate_13ENS3_22Certificate_Request_13ENS3_21Certificate_Verify_13ENS3_11Finished_13EEEEJS4_S5_EEET_NS2_IJDpT0_EEEENKUlSF_E_clIS4_EESE_SF_:
  106|    229|   return std::visit([](auto s) -> GeneralVariantT { return s; }, std::move(specific));
_ZZN5Botan13generalize_toINSt3__17variantIJNS_3TLS15Client_Hello_13ENS3_20Client_Hello_12_ShimENS3_15Server_Hello_13ENS3_20Server_Hello_12_ShimENS3_19Hello_Retry_RequestENS3_20Encrypted_ExtensionsENS3_14Certificate_13ENS3_22Certificate_Request_13ENS3_21Certificate_Verify_13ENS3_11Finished_13EEEEJS4_S5_EEET_NS2_IJDpT0_EEEENKUlSF_E_clIS5_EESE_SF_:
  106|  4.28k|   return std::visit([](auto s) -> GeneralVariantT { return s; }, std::move(specific));
_ZN5Botan13generalize_toINSt3__17variantIJNS_3TLS15Client_Hello_13ENS3_20Client_Hello_12_ShimENS3_15Server_Hello_13ENS3_20Server_Hello_12_ShimENS3_19Hello_Retry_RequestENS3_20Encrypted_ExtensionsENS3_14Certificate_13ENS3_22Certificate_Request_13ENS3_21Certificate_Verify_13ENS3_11Finished_13EEEEJS8_S6_S7_EEET_NS2_IJDpT0_EEE:
  102|  3.48k|constexpr GeneralVariantT generalize_to(std::variant<SpecialTs...> specific) {
  103|  3.48k|   static_assert(
  104|  3.48k|      is_generalizable_to<GeneralVariantT>(specific),
  105|  3.48k|      "Desired general type must be implicitly constructible by all types of the specialized std::variant<>");
  106|  3.48k|   return std::visit([](auto s) -> GeneralVariantT { return s; }, std::move(specific));
  107|  3.48k|}
_ZZN5Botan13generalize_toINSt3__17variantIJNS_3TLS15Client_Hello_13ENS3_20Client_Hello_12_ShimENS3_15Server_Hello_13ENS3_20Server_Hello_12_ShimENS3_19Hello_Retry_RequestENS3_20Encrypted_ExtensionsENS3_14Certificate_13ENS3_22Certificate_Request_13ENS3_21Certificate_Verify_13ENS3_11Finished_13EEEEJS8_S6_S7_EEET_NS2_IJDpT0_EEEENKUlSF_E_clIS6_EESE_SF_:
  106|    407|   return std::visit([](auto s) -> GeneralVariantT { return s; }, std::move(specific));
_ZZN5Botan13generalize_toINSt3__17variantIJNS_3TLS15Client_Hello_13ENS3_20Client_Hello_12_ShimENS3_15Server_Hello_13ENS3_20Server_Hello_12_ShimENS3_19Hello_Retry_RequestENS3_20Encrypted_ExtensionsENS3_14Certificate_13ENS3_22Certificate_Request_13ENS3_21Certificate_Verify_13ENS3_11Finished_13EEEEJS8_S6_S7_EEET_NS2_IJDpT0_EEEENKUlSF_E_clIS7_EESE_SF_:
  106|  3.07k|   return std::visit([](auto s) -> GeneralVariantT { return s; }, std::move(specific));
_ZN5Botan12value_existsINS_3TLS16Signature_SchemeES2_EEbRKNSt3__16vectorIT_NS3_9allocatorIS5_EEEERKT0_:
   44|  1.80k|bool value_exists(const std::vector<T>& vec, const V& val) {
   45|  9.18k|   for(const auto& elem : vec) {
  ------------------
  |  Branch (45:25): [True: 9.18k, False: 20]
  ------------------
   46|  9.18k|      if(elem == val) {
  ------------------
  |  Branch (46:10): [True: 1.78k, False: 7.39k]
  ------------------
   47|  1.78k|         return true;
   48|  1.78k|      }
   49|  9.18k|   }
   50|     20|   return false;
   51|  1.80k|}

_ZN5Botan3TLS15Handshake_LayerC2ENS0_15Connection_SideE:
   31|  7.26k|            m_peer(whoami == Connection_Side::Server ? Connection_Side::Client : Connection_Side::Server)
  ------------------
  |  Branch (31:20): [True: 0, False: 7.26k]
  ------------------
   32|       |            // RFC 8446 4.4.2
   33|       |            //    If the corresponding certificate type extension
   34|       |            //    ("server_certificate_type" or "client_certificate_type") was not
   35|       |            //    negotiated in EncryptedExtensions, or the X.509 certificate type
   36|       |            //    was negotiated, then each CertificateEntry contains a DER-encoded
   37|       |            //    X.509 certificate.
   38|       |            //
   39|       |            // We need the certificate_type info to parse Certificate messages.
   40|       |            ,
   41|  7.26k|            m_certificate_type(Certificate_Type::X509) {}

_ZNK5Botan3TLS21Client_Hello_Internal10extensionsEv:
   88|  5.09k|      const Extensions& extensions() const { return m_extensions; }
_ZNK5Botan3TLS21Client_Hello_Internal14legacy_versionEv:
   74|    601|      Protocol_Version legacy_version() const { return m_legacy_version; }
_ZNK5Botan3TLS21Client_Hello_Internal12comp_methodsEv:
   82|    543|      const std::vector<uint8_t>& comp_methods() const { return m_comp_methods; }
_ZN5Botan3TLS21Client_Hello_Internal10extensionsEv:
   90|    301|      Extensions& extensions() { return m_extensions; }
_ZNK5Botan3TLS21Server_Hello_Internal14legacy_versionEv:
  132|    481|      Protocol_Version legacy_version() const { return m_legacy_version; }
_ZNK5Botan3TLS21Server_Hello_Internal11comp_methodEv:
  140|    433|      uint8_t comp_method() const { return m_comp_method; }
_ZNK5Botan3TLS21Server_Hello_Internal22is_hello_retry_requestEv:
  142|    914|      bool is_hello_retry_request() const { return m_is_hello_retry_request; }
_ZNK5Botan3TLS21Server_Hello_Internal10extensionsEv:
  144|  7.12k|      const Extensions& extensions() const { return m_extensions; }
_ZN5Botan3TLS21Server_Hello_Internal10extensionsEv:
  146|  1.26k|      Extensions& extensions() { return m_extensions; }

_ZN5Botan3TLS15TLS_Data_ReaderC2EPKcNSt3__14spanIKhLm18446744073709551615EEE:
   27|  85.0k|            m_typename(type), m_buf(buf_in), m_offset(0) {}
_ZN5Botan3TLS15TLS_Data_Reader12get_uint16_tEv:
   71|   143k|      uint16_t get_uint16_t() {
   72|   143k|         assert_at_least(2);
   73|   143k|         const uint16_t result = make_uint16(m_buf[m_offset], m_buf[m_offset + 1]);
   74|   143k|         m_offset += 2;
   75|   143k|         return result;
   76|   143k|      }
_ZNK5Botan3TLS15TLS_Data_Reader11assert_doneEv:
   29|  35.0k|      void assert_done() const {
   30|  35.0k|         if(has_remaining()) {
  ------------------
  |  Branch (30:13): [True: 35, False: 35.0k]
  ------------------
   31|     35|            throw_decode_error("Extra bytes at end of message");
   32|     35|         }
   33|  35.0k|      }
_ZNK5Botan3TLS15TLS_Data_Reader13has_remainingEv:
   39|   113k|      bool has_remaining() const { return (remaining_bytes() > 0); }
_ZNK5Botan3TLS15TLS_Data_Reader15remaining_bytesEv:
   37|   695k|      size_t remaining_bytes() const { return m_buf.size() - m_offset; }
_ZN5Botan3TLS15TLS_Data_Reader9get_rangeIhEENSt3__16vectorIT_NS3_9allocatorIS5_EEEEmmm:
  110|  18.5k|      std::vector<T> get_range(size_t len_bytes, size_t min_elems, size_t max_elems) {
  111|  18.5k|         const size_t num_elems = get_num_elems(len_bytes, sizeof(T), min_elems, max_elems);
  112|       |
  113|  18.5k|         return get_elem<T, std::vector<T>>(num_elems);
  114|  18.5k|      }
_ZN5Botan3TLS15TLS_Data_Reader13get_num_elemsEmmmm:
  148|  31.9k|      size_t get_num_elems(size_t len_bytes, size_t T_size, size_t min_elems, size_t max_elems) {
  149|  31.9k|         const size_t byte_length = get_length_field(len_bytes);
  150|       |
  151|  31.9k|         if(byte_length % T_size != 0) {
  ------------------
  |  Branch (151:13): [True: 16, False: 31.9k]
  ------------------
  152|     16|            throw_decode_error("Size isn't multiple of T");
  153|     16|         }
  154|       |
  155|  31.9k|         const size_t num_elems = byte_length / T_size;
  156|       |
  157|  31.9k|         if(num_elems < min_elems || num_elems > max_elems) {
  ------------------
  |  Branch (157:13): [True: 79, False: 31.8k]
  |  Branch (157:38): [True: 26, False: 31.8k]
  ------------------
  158|     56|            throw_decode_error("Length field outside parameters");
  159|     56|         }
  160|       |
  161|  31.9k|         return num_elems;
  162|  31.9k|      }
_ZN5Botan3TLS15TLS_Data_Reader16get_length_fieldEm:
  134|  41.2k|      size_t get_length_field(size_t len_bytes) {
  135|  41.2k|         assert_at_least(len_bytes);
  136|       |
  137|  41.2k|         if(len_bytes == 1) {
  ------------------
  |  Branch (137:13): [True: 25.7k, False: 15.5k]
  ------------------
  138|  25.7k|            return get_byte();
  139|  25.7k|         } else if(len_bytes == 2) {
  ------------------
  |  Branch (139:20): [True: 12.6k, False: 2.90k]
  ------------------
  140|  12.6k|            return get_uint16_t();
  141|  12.6k|         } else if(len_bytes == 3) {
  ------------------
  |  Branch (141:20): [True: 2.85k, False: 46]
  ------------------
  142|  2.85k|            return get_uint24_t();
  143|  2.85k|         }
  144|       |
  145|     46|         throw_decode_error("Bad length size");
  146|     46|      }
_ZN5Botan3TLS15TLS_Data_Reader8get_byteEv:
   83|  98.4k|      uint8_t get_byte() {
   84|  98.4k|         assert_at_least(1);
   85|  98.4k|         const uint8_t result = m_buf[m_offset];
   86|  98.4k|         m_offset += 1;
   87|  98.4k|         return result;
   88|  98.4k|      }
_ZN5Botan3TLS15TLS_Data_Reader12get_uint24_tEv:
   64|  35.1k|      uint32_t get_uint24_t() {
   65|  35.1k|         assert_at_least(3);
   66|  35.1k|         const uint32_t result = make_uint32(0, m_buf[m_offset], m_buf[m_offset + 1], m_buf[m_offset + 2]);
   67|  35.1k|         m_offset += 3;
   68|  35.1k|         return result;
   69|  35.1k|      }
_ZN5Botan3TLS15TLS_Data_Reader8get_elemIhNSt3__16vectorIhNS3_9allocatorIhEEEEEET0_m:
   91|   112k|      Container get_elem(size_t num_elems) {
   92|   112k|         assert_at_least(num_elems * sizeof(T));
   93|       |
   94|   112k|         Container result(num_elems);
   95|       |
   96|  2.88M|         for(size_t i = 0; i != num_elems; ++i) {
  ------------------
  |  Branch (96:28): [True: 2.76M, False: 112k]
  ------------------
   97|  2.76M|            result[i] = load_be<T>(&m_buf[m_offset], i);
   98|  2.76M|         }
   99|       |
  100|   112k|         m_offset += num_elems * sizeof(T);
  101|       |
  102|   112k|         return result;
  103|   112k|      }
_ZNK5Botan3TLS15TLS_Data_Reader11read_so_farEv:
   35|  70.2k|      size_t read_so_far() const { return m_offset; }
_ZN5Botan3TLS15TLS_Data_Reader13get_remainingEv:
   41|  1.87k|      std::vector<uint8_t> get_remaining() {
   42|  1.87k|         const std::span rest = m_buf.subspan(m_offset);
   43|  1.87k|         return std::vector<uint8_t>(rest.begin(), rest.end());
   44|  1.87k|      }
_ZN5Botan3TLS15TLS_Data_Reader20get_data_read_so_farEv:
   46|  1.88k|      std::vector<uint8_t> get_data_read_so_far() {
   47|  1.88k|         const std::span first = m_buf.first(m_offset);
   48|  1.88k|         return std::vector<uint8_t>(first.begin(), first.end());
   49|  1.88k|      }
_ZN5Botan3TLS15TLS_Data_Reader12discard_nextEm:
   51|  33.5k|      void discard_next(size_t bytes) {
   52|  33.5k|         assert_at_least(bytes);
   53|  33.5k|         m_offset += bytes;
   54|  33.5k|      }
_ZN5Botan3TLS15TLS_Data_Reader12get_uint32_tEv:
   56|  2.62k|      uint32_t get_uint32_t() {
   57|  2.62k|         assert_at_least(4);
   58|  2.62k|         const uint32_t result =
   59|  2.62k|            make_uint32(m_buf[m_offset], m_buf[m_offset + 1], m_buf[m_offset + 2], m_buf[m_offset + 3]);
   60|  2.62k|         m_offset += 4;
   61|  2.62k|         return result;
   62|  2.62k|      }
_ZNK5Botan3TLS15TLS_Data_Reader13peek_uint16_tEv:
   78|    652|      uint16_t peek_uint16_t() const {
   79|    652|         assert_at_least(2);
   80|    652|         return make_uint16(m_buf[m_offset], m_buf[m_offset + 1]);
   81|    652|      }
_ZN5Botan3TLS15TLS_Data_Reader20get_tls_length_valueEm:
  105|  9.28k|      std::vector<uint8_t> get_tls_length_value(size_t len_bytes) {
  106|  9.28k|         return get_fixed<uint8_t>(get_length_field(len_bytes));
  107|  9.28k|      }
_ZN5Botan3TLS15TLS_Data_Reader10get_stringEmmm:
  123|  2.44k|      std::string get_string(size_t len_bytes, size_t min_bytes, size_t max_bytes) {
  124|  2.44k|         std::vector<uint8_t> v = get_range_vector<uint8_t>(len_bytes, min_bytes, max_bytes);
  125|  2.44k|         return bytes_to_string(v);
  126|  2.44k|      }
_ZN5Botan3TLS15TLS_Data_Reader9get_fixedIhEENSt3__16vectorIT_NS3_9allocatorIS5_EEEEm:
  129|  86.6k|      std::vector<T> get_fixed(size_t size) {
  130|  86.6k|         return get_elem<T, std::vector<T>>(size);
  131|  86.6k|      }
_ZN5Botan3TLS15TLS_Data_Reader16get_range_vectorIhEENSt3__16vectorIT_NS3_9allocatorIS5_EEEEmmm:
  117|  7.44k|      std::vector<T> get_range_vector(size_t len_bytes, size_t min_elems, size_t max_elems) {
  118|  7.44k|         const size_t num_elems = get_num_elems(len_bytes, sizeof(T), min_elems, max_elems);
  119|       |
  120|  7.44k|         return get_elem<T, std::vector<T>>(num_elems);
  121|  7.44k|      }
_ZN5Botan3TLS15TLS_Data_Reader16get_range_vectorItEENSt3__16vectorIT_NS3_9allocatorIS5_EEEEmmm:
  117|  5.07k|      std::vector<T> get_range_vector(size_t len_bytes, size_t min_elems, size_t max_elems) {
  118|  5.07k|         const size_t num_elems = get_num_elems(len_bytes, sizeof(T), min_elems, max_elems);
  119|       |
  120|  5.07k|         return get_elem<T, std::vector<T>>(num_elems);
  121|  5.07k|      }
_ZN5Botan3TLS15TLS_Data_Reader8get_elemItNSt3__16vectorItNS3_9allocatorItEEEEEET0_m:
   91|  5.86k|      Container get_elem(size_t num_elems) {
   92|  5.86k|         assert_at_least(num_elems * sizeof(T));
   93|       |
   94|  5.86k|         Container result(num_elems);
   95|       |
   96|  49.9k|         for(size_t i = 0; i != num_elems; ++i) {
  ------------------
  |  Branch (96:28): [True: 44.1k, False: 5.86k]
  ------------------
   97|  44.1k|            result[i] = load_be<T>(&m_buf[m_offset], i);
   98|  44.1k|         }
   99|       |
  100|  5.86k|         m_offset += num_elems * sizeof(T);
  101|       |
  102|  5.86k|         return result;
  103|  5.86k|      }
_ZN5Botan3TLS15TLS_Data_Reader9get_rangeItEENSt3__16vectorIT_NS3_9allocatorIS5_EEEEmmm:
  110|    846|      std::vector<T> get_range(size_t len_bytes, size_t min_elems, size_t max_elems) {
  111|    846|         const size_t num_elems = get_num_elems(len_bytes, sizeof(T), min_elems, max_elems);
  112|       |
  113|    846|         return get_elem<T, std::vector<T>>(num_elems);
  114|    846|      }

_ZN5Botan2CT13value_barrierITkNSt3__117unsigned_integralEhQntsr3stdE7same_asIbT_EEES3_S3_:
   43|  10.9k|constexpr inline T value_barrier(T x) {
   44|  10.9k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (44:7): [Folded, False: 10.9k]
  ------------------
   45|      0|      return x;
   46|  10.9k|   } else {
   47|  10.9k|#if defined(BOTAN_CT_VALUE_BARRIER_USE_ASM)
   48|       |      /*
   49|       |      * We may want a "stronger" statement such as
   50|       |      *     asm volatile("" : "+r,m"(x) : : "memory);
   51|       |      * (see https://theunixzoo.co.uk/blog/2021-10-14-preventing-optimisations.html)
   52|       |      * however the current approach seems sufficient with current compilers,
   53|       |      * and is minimally damaging with regards to degrading code generation.
   54|       |      */
   55|  10.9k|      asm("" : "+r"(x) : /* no input */);  // NOLINT(*-no-assembler)
   56|  10.9k|      return x;
   57|       |#elif defined(BOTAN_CT_VALUE_BARRIER_USE_VOLATILE)
   58|       |      volatile T vx = x;
   59|       |      return vx;
   60|       |#else
   61|       |      return x;
   62|       |#endif
   63|  10.9k|   }
   64|  10.9k|}
_ZN5Botan2CT13value_barrierITkNSt3__117unsigned_integralEmQntsr3stdE7same_asIbT_EEES3_S3_:
   43|  27.9k|constexpr inline T value_barrier(T x) {
   44|  27.9k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (44:7): [Folded, False: 27.9k]
  ------------------
   45|      0|      return x;
   46|  27.9k|   } else {
   47|  27.9k|#if defined(BOTAN_CT_VALUE_BARRIER_USE_ASM)
   48|       |      /*
   49|       |      * We may want a "stronger" statement such as
   50|       |      *     asm volatile("" : "+r,m"(x) : : "memory);
   51|       |      * (see https://theunixzoo.co.uk/blog/2021-10-14-preventing-optimisations.html)
   52|       |      * however the current approach seems sufficient with current compilers,
   53|       |      * and is minimally damaging with regards to degrading code generation.
   54|       |      */
   55|  27.9k|      asm("" : "+r"(x) : /* no input */);  // NOLINT(*-no-assembler)
   56|  27.9k|      return x;
   57|       |#elif defined(BOTAN_CT_VALUE_BARRIER_USE_VOLATILE)
   58|       |      volatile T vx = x;
   59|       |      return vx;
   60|       |#else
   61|       |      return x;
   62|       |#endif
   63|  27.9k|   }
   64|  27.9k|}
_ZN5Botan2CT13value_barrierITkNSt3__117unsigned_integralEjQntsr3stdE7same_asIbT_EEES3_S3_:
   43|  16.8k|constexpr inline T value_barrier(T x) {
   44|  16.8k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (44:7): [Folded, False: 16.8k]
  ------------------
   45|      0|      return x;
   46|  16.8k|   } else {
   47|  16.8k|#if defined(BOTAN_CT_VALUE_BARRIER_USE_ASM)
   48|       |      /*
   49|       |      * We may want a "stronger" statement such as
   50|       |      *     asm volatile("" : "+r,m"(x) : : "memory);
   51|       |      * (see https://theunixzoo.co.uk/blog/2021-10-14-preventing-optimisations.html)
   52|       |      * however the current approach seems sufficient with current compilers,
   53|       |      * and is minimally damaging with regards to degrading code generation.
   54|       |      */
   55|  16.8k|      asm("" : "+r"(x) : /* no input */);  // NOLINT(*-no-assembler)
   56|  16.8k|      return x;
   57|       |#elif defined(BOTAN_CT_VALUE_BARRIER_USE_VOLATILE)
   58|       |      volatile T vx = x;
   59|       |      return vx;
   60|       |#else
   61|       |      return x;
   62|       |#endif
   63|  16.8k|   }
   64|  16.8k|}

_ZNK5Botan10BER_Object6is_setEv:
  138|   147k|      bool is_set() const { return m_type_tag != ASN1_Type::NoObject; }
_ZNK5Botan10BER_Object7taggingEv:
  140|  54.5k|      uint32_t tagging() const { return type_tag() | class_tag(); }
_ZNK5Botan10BER_Object8type_tagEv:
  142|  54.5k|      ASN1_Type type_tag() const { return m_type_tag; }
_ZNK5Botan10BER_Object9class_tagEv:
  144|  60.3k|      ASN1_Class class_tag() const { return m_class_tag; }
_ZNK5Botan10BER_Object4typeEv:
  146|  12.7k|      ASN1_Type type() const { return m_type_tag; }
_ZNK5Botan10BER_Object9get_classEv:
  148|  4.55k|      ASN1_Class get_class() const { return m_class_tag; }
_ZNK5Botan10BER_Object4bitsEv:
  150|   288k|      const uint8_t* bits() const { return m_value.data(); }
_ZNK5Botan10BER_Object6lengthEv:
  152|   652k|      size_t length() const { return m_value.size(); }
_ZNK5Botan10BER_Object4dataEv:
  154|  14.3k|      std::span<const uint8_t> data() const { return std::span{m_value}; }
_ZN5Botan10BER_Object12mutable_bitsEm:
  171|  46.0k|      uint8_t* mutable_bits(size_t length) {
  172|  46.0k|         m_value.resize(length);
  173|  46.0k|         return m_value.data();
  174|  46.0k|      }
_ZNK5Botan3OID5emptyEv:
  265|  1.71k|      bool empty() const { return m_id.empty(); }
_ZNK5Botan3OID9has_valueEv:
  271|  1.71k|      bool has_value() const { return !empty(); }
_ZNK5Botan3OIDeqERKS0_:
  301|  1.84k|      bool operator==(const OID& other) const { return m_id == other.m_id; }
_ZNK5Botan11ASN1_String5emptyEv:
  369|    381|      bool empty() const { return m_utf8_str.empty(); }
_ZNK5Botan19AlgorithmIdentifier3oidEv:
  407|  7.11k|      const OID& oid() const { return m_oid; }
_ZNK5Botan19AlgorithmIdentifier10parametersEv:
  409|  1.83k|      const std::vector<uint8_t>& parameters() const { return m_parameters; }
_ZNK5Botan19AlgorithmIdentifier20parameters_are_emptyEv:
  419|  3.51k|      bool parameters_are_empty() const { return m_parameters.empty(); }
_ZNK5Botan19AlgorithmIdentifier28parameters_are_null_or_emptyEv:
  421|  3.51k|      bool parameters_are_null_or_empty() const { return parameters_are_empty() || parameters_are_null(); }
  ------------------
  |  Branch (421:58): [True: 1.72k, False: 1.78k]
  |  Branch (421:84): [True: 1.72k, False: 59]
  ------------------
_ZN5BotanorENS_10ASN1_ClassES0_:
   78|  37.5k|inline ASN1_Class operator|(ASN1_Class x, ASN1_Class y) {
   79|  37.5k|   return static_cast<ASN1_Class>(static_cast<uint32_t>(x) | static_cast<uint32_t>(y));
   80|  37.5k|}
_ZN5BotanorENS_9ASN1_TypeENS_10ASN1_ClassE:
   82|  54.5k|inline uint32_t operator|(ASN1_Type x, ASN1_Class y) {
   83|  54.5k|   return static_cast<uint32_t>(x) | static_cast<uint32_t>(y);
   84|  54.5k|}
_ZN5BotanorENS_10ASN1_ClassENS_9ASN1_TypeE:
   86|  8.47k|inline uint32_t operator|(ASN1_Class x, ASN1_Type y) {
   87|  8.47k|   return static_cast<uint32_t>(x) | static_cast<uint32_t>(y);
   88|  8.47k|}
_ZN5BotanneERKNS_3OIDES2_:
  342|  1.84k|inline bool operator!=(const OID& a, const OID& b) {
  343|  1.84k|   return !(a == b);
  344|  1.84k|}
_ZNKSt3__14hashIN5Botan3OIDEEclERKS2_:
  441|  1.68k|      size_t operator()(const Botan::OID& oid) const noexcept { return static_cast<size_t>(oid.hash_code()); }
_ZN5Botan11ASN1_ObjectC2ERKS0_:
  118|    186|      ASN1_Object(const ASN1_Object&) = default;
_ZN5Botan11ASN1_ObjectD2Ev:
  122|  66.3k|      virtual ~ASN1_Object() = default;
_ZN5Botan11ASN1_ObjectC2EOS0_:
  120|  6.41k|      ASN1_Object(ASN1_Object&&) = default;
_ZN5Botan11ASN1_ObjectC2Ev:
  117|  59.7k|      ASN1_Object() = default;
_ZN5Botan19AlgorithmIdentifierC2Ev:
  399|  8.88k|      AlgorithmIdentifier() = default;
_ZN5Botan3OIDC2Ev:
  220|  9.52k|      explicit OID() = default;
_ZN5Botan10BER_ObjectC2Ev:
  130|  97.0k|      BER_Object() = default;
_ZN5Botan10BER_ObjectaSEOS0_:
  135|  14.3k|      BER_Object& operator=(BER_Object&& other) = default;
_ZN5Botan10BER_ObjectC2EOS0_:
  133|  25.4k|      BER_Object(BER_Object&& other) = default;

_ZN5Botan9ASN1_TimeC2Ev:
   39|  4.51k|      ASN1_Time() = default;

_ZN5Botan13ignore_paramsIJPKhmEEEvDpRKT_:
  142|  3.63k|constexpr void ignore_params([[maybe_unused]] const T&... args) {}
_ZN5Botan13ignore_paramsIJPKmmEEEvDpRKT_:
  142|  5.99k|constexpr void ignore_params([[maybe_unused]] const T&... args) {}
_ZN5Botan13ignore_paramsIJjEEEvDpRKT_:
  142|  1.35k|constexpr void ignore_params([[maybe_unused]] const T&... args) {}

_ZN5Botan11BER_Decoder6Limits3DEREv:
   35|  9.85k|            static Limits DER() { return Limits(false, 0); }
_ZN5Botan11BER_Decoder6LimitsC2Ebm:
   54|  9.85k|                  m_allow_ber(allow_ber), m_max_nested_indef(max_nested_indef) {}
_ZNK5Botan11BER_Decoder6Limits18allow_ber_encodingEv:
   44|   100k|            bool allow_ber_encoding() const { return m_allow_ber; }
_ZNK5Botan11BER_Decoder6Limits20require_der_encodingEv:
   46|  54.3k|            bool require_der_encoding() const { return !allow_ber_encoding(); }
_ZN5Botan11BER_DecoderC2ERKNS_10BER_ObjectENS0_6LimitsE:
   81|     26|            BER_Decoder(obj.data(), limits) {}
_ZNK5Botan11BER_Decoder6limitsEv:
   98|  28.3k|      Limits limits() const { return m_limits; }
_ZN5Botan11BER_Decoder8get_nextERNS_10BER_ObjectE:
  106|  3.69k|      BER_Decoder& get_next(BER_Object& ber) {
  107|  3.69k|         ber = get_next_object();
  108|  3.69k|         return (*this);
  109|  3.69k|      }
_ZN5Botan11BER_Decoder14start_sequenceEv:
  160|  22.9k|      BER_Decoder start_sequence() { return start_cons(ASN1_Type::Sequence, ASN1_Class::Universal); }
_ZN5Botan11BER_Decoder9start_setEv:
  162|    633|      BER_Decoder start_set() { return start_cons(ASN1_Type::Set, ASN1_Class::Universal); }
_ZN5Botan11BER_Decoder6decodeERm:
  225|     26|      BER_Decoder& decode(size_t& out) { return decode(out, ASN1_Type::Integer, ASN1_Class::Universal); }
_ZN5Botan11BER_Decoder6decodeERNS_6BigIntE:
  230|  2.23k|      BER_Decoder& decode(BigInt& out) { return decode(out, ASN1_Type::Integer, ASN1_Class::Universal); }
_ZN5Botan11BER_Decoder6decodeINSt3__19allocatorIhEEEERS0_RNS2_6vectorIhT_EENS_9ASN1_TypeE:
  242|  5.74k|      BER_Decoder& decode(std::vector<uint8_t, Alloc>& out, ASN1_Type real_type) {
  243|  5.74k|         return decode(out, real_type, real_type, ASN1_Class::Universal);
  244|  5.74k|      }
_ZN5Botan11BER_Decoder9raw_bytesINSt3__19allocatorIhEEEERS0_RNS2_6vectorIhT_EE:
  203|  15.5k|      BER_Decoder& raw_bytes(std::vector<uint8_t, Alloc>& out) {
  204|  15.5k|         out.clear();
  205|   194k|         for(;;) {
  206|   194k|            if(auto next = this->read_next_byte()) {
  ------------------
  |  Branch (206:21): [True: 178k, False: 15.5k]
  ------------------
  207|   178k|               out.push_back(*next);
  208|   178k|            } else {
  209|  15.5k|               break;
  210|  15.5k|            }
  211|   194k|         }
  212|  15.5k|         return (*this);
  213|  15.5k|      }
_ZN5Botan11BER_Decoder15decode_optionalImEERS0_RT_NS_9ASN1_TypeENS_10ASN1_ClassERKS3_:
  285|  2.25k|      BER_Decoder& decode_optional(T& out, ASN1_Type type_tag, ASN1_Class class_tag, const T& default_value = T()) {
  286|  2.25k|         std::optional<T> optval;
  287|  2.25k|         this->decode_optional(optval, type_tag, class_tag);
  288|  2.25k|         out = optval ? *optval : default_value;
  ------------------
  |  Branch (288:16): [True: 3, False: 2.25k]
  ------------------
  289|  2.25k|         return (*this);
  290|  2.25k|      }
_ZN5Botan11BER_Decoder15decode_optionalImEERS0_RNSt3__18optionalIT_EENS_9ASN1_TypeENS_10ASN1_ClassE:
  394|  2.25k|BER_Decoder& BER_Decoder::decode_optional(std::optional<T>& optval, ASN1_Type type_tag, ASN1_Class class_tag) {
  395|  2.25k|   BER_Object obj = get_next_object();
  396|       |
  397|  2.25k|   if(obj.is_a(type_tag, class_tag)) {
  ------------------
  |  Branch (397:7): [True: 26, False: 2.23k]
  ------------------
  398|     26|      T out{};
  399|     26|      if(class_tag == ASN1_Class::ExplicitContextSpecific) {
  ------------------
  |  Branch (399:10): [True: 26, False: 0]
  ------------------
  400|     26|         BER_Decoder(obj, m_limits).decode(out).verify_end();
  401|     26|      } else {
  402|      0|         this->push_back(std::move(obj));
  403|      0|         this->decode(out, type_tag, class_tag);
  404|      0|      }
  405|     26|      optval = std::move(out);
  406|  2.23k|   } else {
  407|  2.23k|      this->push_back(std::move(obj));
  408|  2.23k|      optval = std::nullopt;
  409|  2.23k|   }
  410|       |
  411|  2.25k|   return (*this);
  412|  2.25k|}
_ZN5Botan11BER_Decoder22decode_optional_stringINSt3__19allocatorIhEEEERS0_RNS2_6vectorIhT_EENS_9ASN1_TypeEjNS_10ASN1_ClassE:
  345|  3.69k|                                          ASN1_Class class_tag = ASN1_Class::ContextSpecific) {
  346|  3.69k|         BER_Object obj = get_next_object();
  347|       |
  348|  3.69k|         const ASN1_Type type_tag = static_cast<ASN1_Type>(expected_tag);
  349|       |
  350|  3.69k|         if(obj.is_a(type_tag, class_tag)) {
  ------------------
  |  Branch (350:13): [True: 50, False: 3.64k]
  ------------------
  351|     50|            if(class_tag == ASN1_Class::ExplicitContextSpecific) {
  ------------------
  |  Branch (351:16): [True: 0, False: 50]
  ------------------
  352|      0|               BER_Decoder(obj, m_limits).decode(out, real_type).verify_end();
  353|     50|            } else {
  354|     50|               push_back(std::move(obj));
  355|     50|               decode(out, real_type, type_tag, class_tag);
  356|     50|            }
  357|  3.64k|         } else {
  358|  3.64k|            out.clear();
  359|  3.64k|            push_back(std::move(obj));
  360|  3.64k|         }
  361|       |
  362|  3.69k|         return (*this);
  363|  3.69k|      }

_ZN5Botan6BigIntD2Ev:
  185|  2.28k|      ~BigInt() { _const_time_unpoison(); }
_ZN5Botan6BigInt5clearEv:
  415|  2.18k|      void clear() {
  416|  2.18k|         m_data.set_to_zero();
  417|  2.18k|         m_signedness = Positive;
  418|  2.18k|      }
_ZNK5Botan6BigInt6signumEv:
  467|  1.76k|      int signum() const {
  468|  1.76k|         if(sig_words() == 0) {
  ------------------
  |  Branch (468:13): [True: 859, False: 901]
  ------------------
  469|    859|            return 0;
  470|    859|         }
  471|    901|         return (sign() == Negative) ? -1 : 1;
  ------------------
  |  Branch (471:17): [True: 221, False: 680]
  ------------------
  472|  1.76k|      }
_ZNK5Botan6BigInt7is_zeroEv:
  484|    392|      bool is_zero() const { return sig_words() == 0; }
_ZNK5Botan6BigInt7word_atEm:
  574|  2.67k|      word word_at(size_t n) const { return m_data.get_word_at(n); }
_ZNK5Botan6BigInt4signEv:
  604|  1.29k|      Sign sign() const { return (m_signedness); }
_ZNK5Botan6BigInt12reverse_signEv:
  609|    392|      Sign reverse_sign() const {
  610|    392|         if(sign() == Positive) {
  ------------------
  |  Branch (610:13): [True: 392, False: 0]
  ------------------
  611|    392|            return Negative;
  612|    392|         }
  613|      0|         return Positive;
  614|    392|      }
_ZN5Botan6BigInt9flip_signEv:
  619|    392|      BOTAN_DEPRECATED("Deprecated no replacement") void flip_sign() { set_sign(reverse_sign()); }
_ZN5Botan6BigInt8set_signENS0_4SignE:
  625|    392|      void set_sign(Sign sign) {
  626|    392|         if(sign == Negative && is_zero()) {
  ------------------
  |  Branch (626:13): [True: 392, False: 0]
  |  Branch (626:33): [True: 0, False: 392]
  ------------------
  627|      0|            sign = Positive;
  628|      0|         }
  629|       |
  630|    392|         m_signedness = sign;
  631|    392|      }
_ZNK5Botan6BigInt9sig_wordsEv:
  648|  7.42k|      size_t sig_words() const { return m_data.sig_words(); }
_ZN5Botan6BigInt18_assign_from_bytesENSt3__14spanIKhLm18446744073709551615EEE:
  983|  2.18k|      void _assign_from_bytes(std::span<const uint8_t> bytes) { assign_from_bytes(bytes); }
_ZNK5Botan6BigInt4Data10const_dataEv:
 1027|  2.28k|            const word* const_data() const { return m_reg.data(); }
_ZNK5Botan6BigInt4Data11get_word_atEm:
 1038|  2.67k|            word get_word_at(size_t n) const {
 1039|  2.67k|               if(n < m_reg.size()) {
  ------------------
  |  Branch (1039:19): [True: 2.67k, False: 0]
  ------------------
 1040|  2.67k|                  return m_reg[n];
 1041|  2.67k|               }
 1042|      0|               return 0;
 1043|  2.67k|            }
_ZNK5Botan6BigInt4Data4sizeEv:
 1075|  2.28k|            size_t size() const { return m_reg.size(); }
_ZN5Botan6BigInt4Data4swapERNSt3__16vectorImNS_16secure_allocatorImEEEE:
 1095|  2.18k|            void swap(secure_vector<word>& reg) noexcept {
 1096|  2.18k|               m_reg.swap(reg);
 1097|  2.18k|               invalidate_sig_words();
 1098|  2.18k|            }
_ZNK5Botan6BigInt4Data20invalidate_sig_wordsEv:
 1100|  2.18k|            void invalidate_sig_words() const noexcept { m_sig_words = sig_words_npos; }
_ZNK5Botan6BigInt4Data9sig_wordsEv:
 1102|  7.42k|            size_t sig_words() const {
 1103|  7.42k|               if(m_sig_words == sig_words_npos) {
  ------------------
  |  Branch (1103:19): [True: 1.93k, False: 5.49k]
  ------------------
 1104|  1.93k|                  m_sig_words = calc_sig_words();
 1105|  1.93k|               }
 1106|  7.42k|               return m_sig_words;
 1107|  7.42k|            }
_ZNK5Botan6BigInt9serializeINSt3__16vectorIhNS2_9allocatorIhEEEEEET_m:
  747|  1.73k|      T serialize(size_t len) const {
  748|       |         // TODO this supports std::vector and secure_vector
  749|       |         // it would be nice if this also could work with std::array as in
  750|       |         //   bn.serialize_to<std::array<uint8_t, 32>>(32);
  751|  1.73k|         T out(len);
  752|  1.73k|         this->serialize_to(out);
  753|  1.73k|         return out;
  754|  1.73k|      }
_ZN5Botan6BigIntC2Ev:
   45|  2.28k|      BigInt() = default;
_ZNK5Botan6BigInt9serializeINSt3__16vectorIhNS2_9allocatorIhEEEEEET_v:
  760|  1.73k|      T serialize() const {
  761|  1.73k|         return serialize<T>(this->bytes());
  762|  1.73k|      }

_ZN5Botan20Buffered_Computation6updateEPKhm:
   34|  25.1k|      void update(const uint8_t in[], size_t length) { add_data({in, length}); }
_ZN5Botan20Buffered_Computation6updateENSt3__14spanIKhLm18446744073709551615EEE:
   40|  12.3k|      void update(std::span<const uint8_t> in) { add_data(in); }
_ZN5Botan20Buffered_Computation12final_stdvecEv:
   83|  32.1k|      std::vector<uint8_t> final_stdvec() { return final<std::vector<uint8_t>>(); }
_ZN5Botan20Buffered_Computation5finalITkNS_8concepts21resizable_byte_bufferENSt3__16vectorIhNS3_9allocatorIhEEEEEET_v:
   77|  32.1k|      T final() {
   78|  32.1k|         T output(output_length());
   79|  32.1k|         final_result(output);
   80|  32.1k|         return output;
   81|  32.1k|      }
_ZN5Botan20Buffered_ComputationD2Ev:
  130|  36.5k|      virtual ~Buffered_Computation() = default;

_ZN5Botan17DataSource_MemoryC2ERKNSt3__16vectorIhNS1_9allocatorIhEEEE:
  147|  1.71k|      explicit DataSource_Memory(const std::vector<uint8_t>& in) : m_source(in.begin(), in.end()), m_offset(0) {}
_ZN5Botan10DataSourceC2Ev:
  100|  38.5k|      DataSource() = default;
_ZN5Botan10DataSourceD2Ev:
  101|  38.5k|      virtual ~DataSource() = default;
_ZN5Botan17DataSource_MemoryC2ENSt3__16vectorIhNS_16secure_allocatorIhEEEE:
  135|     48|      explicit DataSource_Memory(secure_vector<uint8_t> in) : m_source(std::move(in)), m_offset(0) {}
_ZN5Botan17DataSource_MemoryC2ENSt3__14spanIKhLm18446744073709551615EEE:
  141|  13.6k|      explicit DataSource_Memory(std::span<const uint8_t> in) : m_source(in.begin(), in.end()), m_offset(0) {}

_ZN5Botan11DER_Encoder12DER_SequenceD2Ev:
  244|  32.7k|            ~DER_Sequence() = default;
_ZN5Botan11DER_Encoder14start_sequenceEv:
   67|  10.3k|      DER_Encoder& start_sequence() { return start_cons(ASN1_Type::Sequence, ASN1_Class::Universal); }
_ZN5Botan11DER_Encoder9raw_bytesENSt3__14spanIKhLm18446744073709551615EEE:
   89|  3.42k|      DER_Encoder& raw_bytes(std::span<const uint8_t> val) { return raw_bytes(val.data(), val.size()); }
_ZN5Botan11DER_Encoder10add_objectENS_9ASN1_TypeENS_10ASN1_ClassENSt3__14spanIKhLm18446744073709551615EEE:
  185|  3.42k|      DER_Encoder& add_object(ASN1_Type type_tag, ASN1_Class class_tag, std::span<const uint8_t> rep) {
  186|  3.42k|         return add_object(type_tag, class_tag, rep.data(), rep.size());
  187|  3.42k|      }
_ZN5Botan11DER_Encoder10add_objectENS_9ASN1_TypeENS_10ASN1_ClassERKNSt3__16vectorIhNS3_9allocatorIhEEEE:
  189|  1.71k|      DER_Encoder& add_object(ASN1_Type type_tag, ASN1_Class class_tag, const std::vector<uint8_t>& rep) {
  190|  1.71k|         return add_object(type_tag, class_tag, std::span{rep});
  191|  1.71k|      }
_ZN5Botan11DER_Encoder10add_objectENS_9ASN1_TypeENS_10ASN1_ClassERKNSt3__16vectorIhNS_16secure_allocatorIhEEEE:
  193|  1.71k|      DER_Encoder& add_object(ASN1_Type type_tag, ASN1_Class class_tag, const secure_vector<uint8_t>& rep) {
  194|  1.71k|         return add_object(type_tag, class_tag, std::span{rep});
  195|  1.71k|      }
_ZN5Botan11DER_Encoder12DER_SequenceC2EOS1_:
  229|  22.4k|                  m_type_tag(seq.m_type_tag),
  230|  22.4k|                  m_class_tag(seq.m_class_tag),
  231|  22.4k|                  m_contents(std::move(seq.m_contents)),
  232|  22.4k|                  m_set_contents(std::move(seq.m_set_contents)) {}
_ZN5Botan11DER_Encoder6encodeINSt3__19allocatorIhEEEERS0_RKNS2_6vectorIhT_EENS_9ASN1_TypeE:
   98|  1.71k|      DER_Encoder& encode(const std::vector<uint8_t, Alloc>& vec, ASN1_Type real_type) {
   99|  1.71k|         return encode(vec.data(), vec.size(), real_type);
  100|  1.71k|      }

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

_ZN5Botan10hex_encodeENSt3__14spanIKhLm18446744073709551615EEEb:
   43|  3.42k|inline std::string hex_encode(std::span<const uint8_t> input, bool uppercase = true) {
   44|  3.42k|   return hex_encode(input.data(), input.size(), uppercase);
   45|  3.42k|}

_ZN5Botan11clear_bytesEPvm:
  101|  2.28k|inline constexpr void clear_bytes(void* ptr, size_t bytes) {
  102|  2.28k|   if(bytes > 0) {
  ------------------
  |  Branch (102:7): [True: 92, False: 2.19k]
  ------------------
  103|     92|      std::memset(ptr, 0, bytes);
  104|     92|   }
  105|  2.28k|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeERKNSt3__14spanIhLm4EEEjQaaaasr3stdE23is_trivially_copyable_vIT0_Entsr3std6rangesE5rangeIS7_Esr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISF_EESG_E4type10value_typeEEEEvOSC_RKS7_:
  199|   274k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromT& in) {
  200|   274k|   typecast_copy(out, std::span<const FromT, 1>(&in, 1));
  201|   274k|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeERKNSt3__14spanIhLm4EEETkNS1_16contiguous_rangeENS3_IKjLm1EEEQaasr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISG_EESH_E4type10value_typeEEsr3stdE23is_trivially_copyable_vINS9_IXsr21__is_primary_templateINSA_Iu14__remove_cvrefIDTclL_ZNSC_5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENSI_ISQ_EESR_E4type10value_typeEEEEvOSN_RKSD_:
  176|   274k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|   274k|   ranges::assert_equal_byte_lengths(out, in);
  178|   274k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|   274k|}
_ZN5Botan13typecast_copyItTkNS_6ranges16contiguous_rangeENSt3__14spanIKhLm2EEEQaaaasr3stdE26is_default_constructible_vIT_Esr3stdE23is_trivially_copyable_vIS6_Esr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISE_EESF_E4type10value_typeEEEES6_RKSB_:
  210|  44.4k|inline constexpr ToT typecast_copy(const FromR& src) {
  211|  44.4k|   ToT dst;  // NOLINT(*-member-init)
  212|  44.4k|   typecast_copy(dst, src);
  213|  44.4k|   return dst;
  214|  44.4k|}
_ZN5Botan13typecast_copyItTkNS_6ranges16contiguous_rangeENSt3__14spanIKhLm2EEEQaaaasr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISD_EESE_E4type10value_typeEEsr3stdE23is_trivially_copyable_vIT_Entsr3std6rangesE5rangeISK_EEEvRSK_RKSA_:
  188|  44.4k|inline constexpr void typecast_copy(ToT& out, const FromR& in) {
  189|  44.4k|   typecast_copy(std::span<ToT, 1>(&out, 1), in);
  190|  44.4k|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeENSt3__14spanItLm1EEETkNS1_16contiguous_rangeENS3_IKhLm2EEEQaasr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISE_EESF_E4type10value_typeEEsr3stdE23is_trivially_copyable_vINS7_IXsr21__is_primary_templateINS8_Iu14__remove_cvrefIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENSG_ISO_EESP_E4type10value_typeEEEEvOSL_RKSB_:
  176|  44.4k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  44.4k|   ranges::assert_equal_byte_lengths(out, in);
  178|  44.4k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  44.4k|}
_ZN5Botan13typecast_copyImTkNS_6ranges16contiguous_rangeENSt3__14spanIKhLm8EEEQaaaasr3stdE26is_default_constructible_vIT_Esr3stdE23is_trivially_copyable_vIS6_Esr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISE_EESF_E4type10value_typeEEEES6_RKSB_:
  210|    219|inline constexpr ToT typecast_copy(const FromR& src) {
  211|    219|   ToT dst;  // NOLINT(*-member-init)
  212|    219|   typecast_copy(dst, src);
  213|    219|   return dst;
  214|    219|}
_ZN5Botan13typecast_copyImTkNS_6ranges16contiguous_rangeENSt3__14spanIKhLm8EEEQaaaasr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISD_EESE_E4type10value_typeEEsr3stdE23is_trivially_copyable_vIT_Entsr3std6rangesE5rangeISK_EEEvRSK_RKSA_:
  188|    219|inline constexpr void typecast_copy(ToT& out, const FromR& in) {
  189|    219|   typecast_copy(std::span<ToT, 1>(&out, 1), in);
  190|    219|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeENSt3__14spanImLm1EEETkNS1_16contiguous_rangeENS3_IKhLm8EEEQaasr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISE_EESF_E4type10value_typeEEsr3stdE23is_trivially_copyable_vINS7_IXsr21__is_primary_templateINS8_Iu14__remove_cvrefIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENSG_ISO_EESP_E4type10value_typeEEEEvOSL_RKSB_:
  176|    219|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|    219|   ranges::assert_equal_byte_lengths(out, in);
  178|    219|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|    219|}
_ZN5Botan8copy_memIhQsr3stdE12is_trivial_vIu7__decayIT_EEEEvPS1_PKS1_m:
  144|   413k|inline constexpr void copy_mem(T* out, const T* in, size_t n) {
  145|   413k|   BOTAN_ASSERT_IMPLICATION(n > 0, in != nullptr && out != nullptr, "If n > 0 then args are not null");
  ------------------
  |  |  103|   413k|   do {                                                                                          \
  |  |  104|   413k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                              \
  |  |  105|   774k|      if((expr1) && !(expr2)) {                                                                  \
  |  |  ------------------
  |  |  |  Branch (105:10): [True: 387k, False: 26.8k]
  |  |  |  Branch (105:23): [True: 387k, False: 0]
  |  |  |  Branch (105:23): [True: 387k, False: 0]
  |  |  ------------------
  |  |  106|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                                     \
  |  |  107|      0|         Botan::assertion_failure(#expr1 " implies " #expr2, msg, __func__, __FILE__, __LINE__); \
  |  |  108|      0|      }                                                                                          \
  |  |  109|   413k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (109:12): [Folded, False: 413k]
  |  |  ------------------
  ------------------
  146|       |
  147|   413k|   if(in != nullptr && out != nullptr && n > 0) {
  ------------------
  |  Branch (147:7): [True: 409k, False: 4.76k]
  |  Branch (147:24): [True: 403k, False: 5.70k]
  |  Branch (147:42): [True: 387k, False: 16.3k]
  ------------------
  148|   387k|      std::memmove(out, in, sizeof(T) * n);
  149|   387k|   }
  150|   413k|}
_ZN5Botan19secure_scrub_memoryITkNS_6ranges23contiguous_output_rangeERNSt3__16vectorIhNS2_9allocatorIhEEEEEEvOT_:
   59|   122k|void secure_scrub_memory(ranges::contiguous_output_range auto&& data) {
   60|   122k|   secure_scrub_memory(std::ranges::data(data), ranges::size_bytes(data));
   61|   122k|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeERKNSt3__14spanIhLm8EEEmQaaaasr3stdE23is_trivially_copyable_vIT0_Entsr3std6rangesE5rangeIS7_Esr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISF_EESG_E4type10value_typeEEEEvOSC_RKS7_:
  199|  35.5k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromT& in) {
  200|  35.5k|   typecast_copy(out, std::span<const FromT, 1>(&in, 1));
  201|  35.5k|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeERKNSt3__14spanIhLm8EEETkNS1_16contiguous_rangeENS3_IKmLm1EEEQaasr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISG_EESH_E4type10value_typeEEsr3stdE23is_trivially_copyable_vINS9_IXsr21__is_primary_templateINSA_Iu14__remove_cvrefIDTclL_ZNSC_5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENSI_ISQ_EESR_E4type10value_typeEEEEvOSN_RKSD_:
  176|  35.5k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  35.5k|   ranges::assert_equal_byte_lengths(out, in);
  178|  35.5k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  35.5k|}
_ZN5Botan9clear_memIhEEvPT_m:
  118|     93|inline constexpr void clear_mem(T* ptr, size_t n) {
  119|     93|   clear_bytes(ptr, sizeof(T) * n);
  120|     93|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeENSt3__14spanIjLm1EEETkNS1_16contiguous_rangeENS3_IKhLm4EEEQaasr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISE_EESF_E4type10value_typeEEsr3stdE23is_trivially_copyable_vINS7_IXsr21__is_primary_templateINS8_Iu14__remove_cvrefIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENSG_ISO_EESP_E4type10value_typeEEEEvOSL_RKSB_:
  176|    247|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|    247|   ranges::assert_equal_byte_lengths(out, in);
  178|    247|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|    247|}
_ZN5Botan13typecast_copyIjTkNS_6ranges16contiguous_rangeENSt3__14spanIKhLm4EEEQaaaasr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISD_EESE_E4type10value_typeEEsr3stdE23is_trivially_copyable_vIT_Entsr3std6rangesE5rangeISK_EEEvRSK_RKSA_:
  188|    247|inline constexpr void typecast_copy(ToT& out, const FromR& in) {
  189|    247|   typecast_copy(std::span<ToT, 1>(&out, 1), in);
  190|    247|}
_ZN5Botan13typecast_copyIjTkNS_6ranges16contiguous_rangeENSt3__14spanIKhLm4EEEQaaaasr3stdE26is_default_constructible_vIT_Esr3stdE23is_trivially_copyable_vIS6_Esr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISE_EESF_E4type10value_typeEEEES6_RKSB_:
  210|    247|inline constexpr ToT typecast_copy(const FromR& src) {
  211|    247|   ToT dst;  // NOLINT(*-member-init)
  212|    247|   typecast_copy(dst, src);
  213|    247|   return dst;
  214|    247|}
_ZN5Botan9clear_memImEEvPT_m:
  118|  2.18k|inline constexpr void clear_mem(T* ptr, size_t n) {
  119|  2.18k|   clear_bytes(ptr, sizeof(T) * n);
  120|  2.18k|}
_ZN5Botan8copy_memITkNS_6ranges23contiguous_output_rangeENSt3__14spanIhLm18446744073709551615EEETkNS1_16contiguous_rangeENS3_IKhLm18446744073709551615EEEQaasr3stdE9is_same_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISE_EESF_E4type10value_typeENS7_IXsr21__is_primary_templateINS8_Iu14__remove_cvrefIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENSG_ISO_EESP_E4type10value_typeEEsr3stdE23is_trivially_copyable_vIST_EEEvOSB_RKSL_:
  160|  2.15k|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|  2.15k|   ranges::assert_equal_byte_lengths(out, in);
  162|  2.15k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 2.15k]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|  2.15k|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 2.15k, False: 0]
  ------------------
  165|  2.15k|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|  2.15k|   }
  167|  2.15k|}
_ZN5Botan13typecast_copyImTkNS_6ranges16contiguous_rangeENSt3__14spanIhLm8EEEQaaaasr3stdE26is_default_constructible_vIT_Esr3stdE23is_trivially_copyable_vIS5_Esr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISD_EESE_E4type10value_typeEEEES5_RKSA_:
  210|  2.15k|inline constexpr ToT typecast_copy(const FromR& src) {
  211|  2.15k|   ToT dst;  // NOLINT(*-member-init)
  212|  2.15k|   typecast_copy(dst, src);
  213|  2.15k|   return dst;
  214|  2.15k|}
_ZN5Botan13typecast_copyImTkNS_6ranges16contiguous_rangeENSt3__14spanIhLm8EEEQaaaasr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISC_EESD_E4type10value_typeEEsr3stdE23is_trivially_copyable_vIT_Entsr3std6rangesE5rangeISJ_EEEvRSJ_RKS9_:
  188|  2.15k|inline constexpr void typecast_copy(ToT& out, const FromR& in) {
  189|  2.15k|   typecast_copy(std::span<ToT, 1>(&out, 1), in);
  190|  2.15k|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeENSt3__14spanImLm1EEETkNS1_16contiguous_rangeENS3_IhLm8EEEQaasr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISD_EESE_E4type10value_typeEEsr3stdE23is_trivially_copyable_vINS6_IXsr21__is_primary_templateINS7_Iu14__remove_cvrefIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENSF_ISN_EESO_E4type10value_typeEEEEvOSK_RKSA_:
  176|  2.15k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  2.15k|   ranges::assert_equal_byte_lengths(out, in);
  178|  2.15k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  2.15k|}
_ZN5Botan9clear_memIjEEvPT_m:
  118|      6|inline constexpr void clear_mem(T* ptr, size_t n) {
  119|      6|   clear_bytes(ptr, sizeof(T) * n);
  120|      6|}

_ZN5Botan14Asymmetric_KeyD2Ev:
   62|      2|      virtual ~Asymmetric_Key() = default;

_ZN5Botan15Key_ConstraintsC2Ev:
  158|  2.25k|      Key_Constraints() : m_value(0) {}

_ZNK5Botan7X509_DN8get_bitsEv:
   84|  3.47k|      const std::vector<uint8_t>& get_bits() const { return m_dn_bits; }
_ZN5Botan7X509_DNC2Ev:
   45|  6.01k|      X509_DN() = default;
_ZN5Botan10ExtensionsC2Ev:
  720|  2.25k|      Extensions() = default;
_ZN5Botan15AlternativeNameC2Ev:
  176|  4.51k|      AlternativeName() = default;
_ZN5Botan15NameConstraintsC2Ev:
  479|  2.25k|      NameConstraints() = default;
_ZN5Botan10ExtensionsD2Ev:
  728|  2.25k|      ~Extensions() override = default;
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension9Key_UsageEEEPKT_RKNS_3OIDE:
  594|  1.71k|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  595|  1.71k|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (595:42): [True: 0, False: 1.71k]
  ------------------
  596|       |            // Unknown_Extension oid_name is empty
  597|      0|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (597:16): [True: 0, False: 0]
  ------------------
  598|      0|               return nullptr;
  599|      0|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (599:32): [True: 0, False: 0]
  ------------------
  600|      0|               return extn_as_T;
  601|      0|            } else {
  602|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  603|      0|            }
  604|      0|         }
  605|       |
  606|  1.71k|         return nullptr;
  607|  1.71k|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension14Subject_Key_IDEEEPKT_RKNS_3OIDE:
  594|  1.71k|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  595|  1.71k|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (595:42): [True: 0, False: 1.71k]
  ------------------
  596|       |            // Unknown_Extension oid_name is empty
  597|      0|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (597:16): [True: 0, False: 0]
  ------------------
  598|      0|               return nullptr;
  599|      0|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (599:32): [True: 0, False: 0]
  ------------------
  600|      0|               return extn_as_T;
  601|      0|            } else {
  602|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  603|      0|            }
  604|      0|         }
  605|       |
  606|  1.71k|         return nullptr;
  607|  1.71k|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension16Authority_Key_IDEEEPKT_RKNS_3OIDE:
  594|  1.71k|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  595|  1.71k|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (595:42): [True: 0, False: 1.71k]
  ------------------
  596|       |            // Unknown_Extension oid_name is empty
  597|      0|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (597:16): [True: 0, False: 0]
  ------------------
  598|      0|               return nullptr;
  599|      0|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (599:32): [True: 0, False: 0]
  ------------------
  600|      0|               return extn_as_T;
  601|      0|            } else {
  602|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  603|      0|            }
  604|      0|         }
  605|       |
  606|  1.71k|         return nullptr;
  607|  1.71k|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension16Name_ConstraintsEEEPKT_RKNS_3OIDE:
  594|  1.71k|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  595|  1.71k|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (595:42): [True: 0, False: 1.71k]
  ------------------
  596|       |            // Unknown_Extension oid_name is empty
  597|      0|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (597:16): [True: 0, False: 0]
  ------------------
  598|      0|               return nullptr;
  599|      0|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (599:32): [True: 0, False: 0]
  ------------------
  600|      0|               return extn_as_T;
  601|      0|            } else {
  602|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  603|      0|            }
  604|      0|         }
  605|       |
  606|  1.71k|         return nullptr;
  607|  1.71k|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension18Extended_Key_UsageEEEPKT_RKNS_3OIDE:
  594|  1.71k|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  595|  1.71k|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (595:42): [True: 0, False: 1.71k]
  ------------------
  596|       |            // Unknown_Extension oid_name is empty
  597|      0|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (597:16): [True: 0, False: 0]
  ------------------
  598|      0|               return nullptr;
  599|      0|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (599:32): [True: 0, False: 0]
  ------------------
  600|      0|               return extn_as_T;
  601|      0|            } else {
  602|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  603|      0|            }
  604|      0|         }
  605|       |
  606|  1.71k|         return nullptr;
  607|  1.71k|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension17Basic_ConstraintsEEEPKT_RKNS_3OIDE:
  594|  1.71k|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  595|  1.71k|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (595:42): [True: 0, False: 1.71k]
  ------------------
  596|       |            // Unknown_Extension oid_name is empty
  597|      0|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (597:16): [True: 0, False: 0]
  ------------------
  598|      0|               return nullptr;
  599|      0|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (599:32): [True: 0, False: 0]
  ------------------
  600|      0|               return extn_as_T;
  601|      0|            } else {
  602|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  603|      0|            }
  604|      0|         }
  605|       |
  606|  1.71k|         return nullptr;
  607|  1.71k|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension23Issuer_Alternative_NameEEEPKT_RKNS_3OIDE:
  594|  1.71k|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  595|  1.71k|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (595:42): [True: 0, False: 1.71k]
  ------------------
  596|       |            // Unknown_Extension oid_name is empty
  597|      0|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (597:16): [True: 0, False: 0]
  ------------------
  598|      0|               return nullptr;
  599|      0|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (599:32): [True: 0, False: 0]
  ------------------
  600|      0|               return extn_as_T;
  601|      0|            } else {
  602|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  603|      0|            }
  604|      0|         }
  605|       |
  606|  1.71k|         return nullptr;
  607|  1.71k|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension24Subject_Alternative_NameEEEPKT_RKNS_3OIDE:
  594|  1.71k|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  595|  1.71k|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (595:42): [True: 0, False: 1.71k]
  ------------------
  596|       |            // Unknown_Extension oid_name is empty
  597|      0|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (597:16): [True: 0, False: 0]
  ------------------
  598|      0|               return nullptr;
  599|      0|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (599:32): [True: 0, False: 0]
  ------------------
  600|      0|               return extn_as_T;
  601|      0|            } else {
  602|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  603|      0|            }
  604|      0|         }
  605|       |
  606|  1.71k|         return nullptr;
  607|  1.71k|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension20Certificate_PoliciesEEEPKT_RKNS_3OIDE:
  594|  1.71k|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  595|  1.71k|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (595:42): [True: 0, False: 1.71k]
  ------------------
  596|       |            // Unknown_Extension oid_name is empty
  597|      0|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (597:16): [True: 0, False: 0]
  ------------------
  598|      0|               return nullptr;
  599|      0|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (599:32): [True: 0, False: 0]
  ------------------
  600|      0|               return extn_as_T;
  601|      0|            } else {
  602|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  603|      0|            }
  604|      0|         }
  605|       |
  606|  1.71k|         return nullptr;
  607|  1.71k|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension28Authority_Information_AccessEEEPKT_RKNS_3OIDE:
  594|  1.71k|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  595|  1.71k|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (595:42): [True: 0, False: 1.71k]
  ------------------
  596|       |            // Unknown_Extension oid_name is empty
  597|      0|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (597:16): [True: 0, False: 0]
  ------------------
  598|      0|               return nullptr;
  599|      0|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (599:32): [True: 0, False: 0]
  ------------------
  600|      0|               return extn_as_T;
  601|      0|            } else {
  602|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  603|      0|            }
  604|      0|         }
  605|       |
  606|  1.71k|         return nullptr;
  607|  1.71k|      }
_ZNK5Botan10Extensions23get_extension_object_asINS_14Cert_Extension23CRL_Distribution_PointsEEEPKT_RKNS_3OIDE:
  594|  1.71k|      const T* get_extension_object_as(const OID& oid = T::static_oid()) const {
  595|  1.71k|         if(const Certificate_Extension* extn = get_extension_object(oid)) {
  ------------------
  |  Branch (595:42): [True: 0, False: 1.71k]
  ------------------
  596|       |            // Unknown_Extension oid_name is empty
  597|      0|            if(extn->oid_name().empty()) {
  ------------------
  |  Branch (597:16): [True: 0, False: 0]
  ------------------
  598|      0|               return nullptr;
  599|      0|            } else if(const T* extn_as_T = dynamic_cast<const T*>(extn)) {
  ------------------
  |  Branch (599:32): [True: 0, False: 0]
  ------------------
  600|      0|               return extn_as_T;
  601|      0|            } else {
  602|      0|               throw Decoding_Error("Exception::get_extension_object_as dynamic_cast failed");
  603|      0|            }
  604|      0|         }
  605|       |
  606|  1.71k|         return nullptr;
  607|  1.71k|      }

_ZN5Botan6ranges24assert_exact_byte_lengthILm1ETkNS0_14spanable_rangeENSt3__14spanIKhLm1EEEEEvRKT0_:
   77|  2.76M|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  2.76M|   const std::span s{r};
   79|  2.76M|   if constexpr(statically_spanable_range<R>) {
   80|  2.76M|      static_assert(s.size_bytes() == expected, "memory region does not have expected byte lengths");
   81|       |   } else {
   82|       |      if(s.size_bytes() != expected) {
   83|       |         memory_region_size_violation();
   84|       |      }
   85|       |   }
   86|  2.76M|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm18446744073709551615EEETpTkNS0_14spanable_rangeEJNS3_IKhLm18446744073709551615EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  2.15k|{
  101|  2.15k|   const std::span s0{r0};
  102|       |
  103|       |   if constexpr(statically_spanable_range<R0>) {
  104|       |      constexpr size_t expected_size = s0.size_bytes();
  105|       |      (assert_exact_byte_length<expected_size>(rs), ...);
  106|  2.15k|   } else {
  107|  2.15k|      const size_t expected_size = s0.size_bytes();
  108|  2.15k|      const bool correct_size =
  109|  2.15k|         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|  2.15k|      if(!correct_size) {
  ------------------
  |  Branch (111:10): [True: 0, False: 2.15k]
  ------------------
  112|      0|         memory_region_size_violation();
  113|      0|      }
  114|  2.15k|   }
  115|  2.15k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm4ETkNS0_14spanable_rangeENSt3__14spanIhLm4EEEEEvRKT0_:
   77|   548k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|   548k|   const std::span s{r};
   79|   548k|   if constexpr(statically_spanable_range<R>) {
   80|   548k|      static_assert(s.size_bytes() == expected, "memory region does not have expected byte lengths");
   81|       |   } else {
   82|       |      if(s.size_bytes() != expected) {
   83|       |         memory_region_size_violation();
   84|       |      }
   85|       |   }
   86|   548k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm4EEETpTkNS0_14spanable_rangeEJNS3_IKjLm1EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|   274k|{
  101|   274k|   const std::span s0{r0};
  102|       |
  103|   274k|   if constexpr(statically_spanable_range<R0>) {
  104|   274k|      constexpr size_t expected_size = s0.size_bytes();
  105|   274k|      (assert_exact_byte_length<expected_size>(rs), ...);
  106|       |   } else {
  107|       |      const size_t expected_size = s0.size_bytes();
  108|       |      const bool correct_size =
  109|       |         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|       |      if(!correct_size) {
  112|       |         memory_region_size_violation();
  113|       |      }
  114|       |   }
  115|   274k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm4ETkNS0_14spanable_rangeENSt3__14spanIKjLm1EEEEEvRKT0_:
   77|   274k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|   274k|   const std::span s{r};
   79|   274k|   if constexpr(statically_spanable_range<R>) {
   80|   274k|      static_assert(s.size_bytes() == expected, "memory region does not have expected byte lengths");
   81|       |   } else {
   82|       |      if(s.size_bytes() != expected) {
   83|       |         memory_region_size_violation();
   84|       |      }
   85|       |   }
   86|   274k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIhLm4EEEEEmRKT_:
   59|   274k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|   274k|   return std::span{r}.size_bytes();
   61|   274k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm2ETkNS0_14spanable_rangeENSt3__14spanIKhLm2EEEEEvRKT0_:
   77|  88.9k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  88.9k|   const std::span s{r};
   79|  88.9k|   if constexpr(statically_spanable_range<R>) {
   80|  88.9k|      static_assert(s.size_bytes() == expected, "memory region does not have expected byte lengths");
   81|       |   } else {
   82|       |      if(s.size_bytes() != expected) {
   83|       |         memory_region_size_violation();
   84|       |      }
   85|       |   }
   86|  88.9k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanItLm1EEETpTkNS0_14spanable_rangeEJNS3_IKhLm2EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  44.4k|{
  101|  44.4k|   const std::span s0{r0};
  102|       |
  103|  44.4k|   if constexpr(statically_spanable_range<R0>) {
  104|  44.4k|      constexpr size_t expected_size = s0.size_bytes();
  105|  44.4k|      (assert_exact_byte_length<expected_size>(rs), ...);
  106|       |   } else {
  107|       |      const size_t expected_size = s0.size_bytes();
  108|       |      const bool correct_size =
  109|       |         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|       |      if(!correct_size) {
  112|       |         memory_region_size_violation();
  113|       |      }
  114|       |   }
  115|  44.4k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanItLm1EEEEEmRKT_:
   59|  44.4k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  44.4k|   return std::span{r}.size_bytes();
   61|  44.4k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIhLm18446744073709551615EEEEEmRKT_:
   59|  4.30k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  4.30k|   return std::span{r}.size_bytes();
   61|  4.30k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__14spanIKhLm8EEEEEvRKT0_:
   77|    438|inline constexpr void assert_exact_byte_length(const R& r) {
   78|    438|   const std::span s{r};
   79|    438|   if constexpr(statically_spanable_range<R>) {
   80|    438|      static_assert(s.size_bytes() == expected, "memory region does not have expected byte lengths");
   81|       |   } else {
   82|       |      if(s.size_bytes() != expected) {
   83|       |         memory_region_size_violation();
   84|       |      }
   85|       |   }
   86|    438|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanImLm1EEETpTkNS0_14spanable_rangeEJNS3_IKhLm8EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|    219|{
  101|    219|   const std::span s0{r0};
  102|       |
  103|    219|   if constexpr(statically_spanable_range<R0>) {
  104|    219|      constexpr size_t expected_size = s0.size_bytes();
  105|    219|      (assert_exact_byte_length<expected_size>(rs), ...);
  106|       |   } else {
  107|       |      const size_t expected_size = s0.size_bytes();
  108|       |      const bool correct_size =
  109|       |         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|       |      if(!correct_size) {
  112|       |         memory_region_size_violation();
  113|       |      }
  114|       |   }
  115|    219|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanImLm1EEEEEmRKT_:
   59|  2.37k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  2.37k|   return std::span{r}.size_bytes();
   61|  2.37k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__16vectorIhNS2_9allocatorIhEEEEEEmRKT_:
   59|   122k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|   122k|   return std::span{r}.size_bytes();
   61|   122k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__14spanIhLm8EEEEEvRKT0_:
   77|  37.7k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  37.7k|   const std::span s{r};
   79|  37.7k|   if constexpr(statically_spanable_range<R>) {
   80|  37.7k|      static_assert(s.size_bytes() == expected, "memory region does not have expected byte lengths");
   81|       |   } else {
   82|       |      if(s.size_bytes() != expected) {
   83|       |         memory_region_size_violation();
   84|       |      }
   85|       |   }
   86|  37.7k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm8EEETpTkNS0_14spanable_rangeEJNS3_IKmLm1EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  35.5k|{
  101|  35.5k|   const std::span s0{r0};
  102|       |
  103|  35.5k|   if constexpr(statically_spanable_range<R0>) {
  104|  35.5k|      constexpr size_t expected_size = s0.size_bytes();
  105|  35.5k|      (assert_exact_byte_length<expected_size>(rs), ...);
  106|       |   } else {
  107|       |      const size_t expected_size = s0.size_bytes();
  108|       |      const bool correct_size =
  109|       |         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|       |      if(!correct_size) {
  112|       |         memory_region_size_violation();
  113|       |      }
  114|       |   }
  115|  35.5k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__14spanIKmLm1EEEEEvRKT0_:
   77|  35.5k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  35.5k|   const std::span s{r};
   79|  35.5k|   if constexpr(statically_spanable_range<R>) {
   80|  35.5k|      static_assert(s.size_bytes() == expected, "memory region does not have expected byte lengths");
   81|       |   } else {
   82|       |      if(s.size_bytes() != expected) {
   83|       |         memory_region_size_violation();
   84|       |      }
   85|       |   }
   86|  35.5k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIhLm8EEEEEmRKT_:
   59|  35.5k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  35.5k|   return std::span{r}.size_bytes();
   61|  35.5k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm18446744073709551615EEETpTkNS0_14spanable_rangeEJNS3_IKjLm18446744073709551615EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  35.5k|{
  101|  35.5k|   const std::span s0{r0};
  102|       |
  103|       |   if constexpr(statically_spanable_range<R0>) {
  104|       |      constexpr size_t expected_size = s0.size_bytes();
  105|       |      (assert_exact_byte_length<expected_size>(rs), ...);
  106|  35.5k|   } else {
  107|  35.5k|      const size_t expected_size = s0.size_bytes();
  108|  35.5k|      const bool correct_size =
  109|  35.5k|         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|  35.5k|      if(!correct_size) {
  ------------------
  |  Branch (111:10): [True: 0, False: 35.5k]
  ------------------
  112|      0|         memory_region_size_violation();
  113|      0|      }
  114|  35.5k|   }
  115|  35.5k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm4ETkNS0_14spanable_rangeENSt3__14spanIKhLm4EEEEEvRKT0_:
   77|    494|inline constexpr void assert_exact_byte_length(const R& r) {
   78|    494|   const std::span s{r};
   79|    494|   if constexpr(statically_spanable_range<R>) {
   80|    494|      static_assert(s.size_bytes() == expected, "memory region does not have expected byte lengths");
   81|       |   } else {
   82|       |      if(s.size_bytes() != expected) {
   83|       |         memory_region_size_violation();
   84|       |      }
   85|       |   }
   86|    494|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIjLm1EEETpTkNS0_14spanable_rangeEJNS3_IKhLm4EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|    247|{
  101|    247|   const std::span s0{r0};
  102|       |
  103|    247|   if constexpr(statically_spanable_range<R0>) {
  104|    247|      constexpr size_t expected_size = s0.size_bytes();
  105|    247|      (assert_exact_byte_length<expected_size>(rs), ...);
  106|       |   } else {
  107|       |      const size_t expected_size = s0.size_bytes();
  108|       |      const bool correct_size =
  109|       |         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|       |      if(!correct_size) {
  112|       |         memory_region_size_violation();
  113|       |      }
  114|       |   }
  115|    247|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIjLm1EEEEEmRKT_:
   59|    247|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|    247|   return std::span{r}.size_bytes();
   61|    247|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__15arrayIhLm8EEEEEvRKT0_:
   77|  2.15k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  2.15k|   const std::span s{r};
   79|  2.15k|   if constexpr(statically_spanable_range<R>) {
   80|  2.15k|      static_assert(s.size_bytes() == expected, "memory region does not have expected byte lengths");
   81|       |   } else {
   82|       |      if(s.size_bytes() != expected) {
   83|       |         memory_region_size_violation();
   84|       |      }
   85|       |   }
   86|  2.15k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanImLm1EEETpTkNS0_14spanable_rangeEJNS3_IhLm8EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  2.15k|{
  101|  2.15k|   const std::span s0{r0};
  102|       |
  103|  2.15k|   if constexpr(statically_spanable_range<R0>) {
  104|  2.15k|      constexpr size_t expected_size = s0.size_bytes();
  105|  2.15k|      (assert_exact_byte_length<expected_size>(rs), ...);
  106|       |   } else {
  107|       |      const size_t expected_size = s0.size_bytes();
  108|       |      const bool correct_size =
  109|       |         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|       |      if(!correct_size) {
  112|       |         memory_region_size_violation();
  113|       |      }
  114|       |   }
  115|  2.15k|}

_ZN5Botan16secure_allocatorIhE10deallocateEPhm:
   54|  32.6k|      void deallocate(T* p, std::size_t n) { deallocate_memory(p, n, sizeof(T)); }
_ZN5Botan16secure_allocatorIhE8allocateEm:
   52|  32.6k|      T* allocate(std::size_t n) { return static_cast<T*>(allocate_memory(n, sizeof(T))); }
_ZN5Botan16secure_allocatorImE10deallocateEPmm:
   54|  2.18k|      void deallocate(T* p, std::size_t n) { deallocate_memory(p, n, sizeof(T)); }
_ZN5Botan16secure_allocatorImE8allocateEm:
   52|  2.18k|      T* allocate(std::size_t n) { return static_cast<T*>(allocate_memory(n, sizeof(T))); }
_ZN5BotanpLIhNS_16secure_allocatorIhEEmEERNSt3__16vectorIT_T0_EES8_RKNS3_4pairIPKS5_T1_EE:
  110|  24.0k|std::vector<T, Alloc>& operator+=(std::vector<T, Alloc>& out, const std::pair<const T*, L>& in) {
  111|  24.0k|   out.insert(out.end(), in.first, in.first + in.second);
  112|  24.0k|   return out;
  113|  24.0k|}
_ZN5Botan16secure_allocatorIjE10deallocateEPjm:
   54|  36.5k|      void deallocate(T* p, std::size_t n) { deallocate_memory(p, n, sizeof(T)); }
_ZN5Botan16secure_allocatorIjE8allocateEm:
   52|  36.5k|      T* allocate(std::size_t n) { return static_cast<T*>(allocate_memory(n, sizeof(T))); }

_ZN5Botan6detail11Strong_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEED2Ev:
   81|  17.8k|      ~Strong_Base() = default;
_ZN5Botan16wrap_strong_typeIhRhQoosr3stdE18constructible_fromIT_T0_Eaasr8conceptsE11strong_typeIS2_Esr3stdE18constructible_fromINS2_12wrapped_typeES3_EEEDcOS3_:
  268|  2.76M|[[nodiscard]] constexpr decltype(auto) wrap_strong_type(ParamT&& t) {
  269|  2.76M|   if constexpr(std::same_as<std::remove_cvref_t<ParamT>, T>) {
  270|       |      // Noop, if the parameter type already is the desired return type.
  271|  2.76M|      return std::forward<ParamT>(t);
  272|       |   } else if constexpr(std::constructible_from<T, ParamT>) {
  273|       |      // Implicit conversion from the parameter type to the return type.
  274|       |      return T{std::forward<ParamT>(t)};
  275|       |   } else {
  276|       |      // Explicitly calling the wrapped type's constructor to support
  277|       |      // implicit conversions on types that mark their constructors as explicit.
  278|       |      static_assert(concepts::strong_type<T> && std::constructible_from<typename T::wrapped_type, ParamT>);
  279|       |      return T{typename T::wrapped_type{std::forward<ParamT>(t)}};
  280|       |   }
  281|  2.76M|}
_ZN5Botan18unwrap_strong_typeIRjEEDcOT_:
  243|   274k|[[nodiscard]] constexpr decltype(auto) unwrap_strong_type(T&& t) {
  244|   274k|   if constexpr(!concepts::strong_type<std::remove_cvref_t<T>>) {
  245|       |      // If the parameter type isn't a strong type, return it as is.
  246|   274k|      return std::forward<T>(t);
  247|       |   } else {
  248|       |      // Unwrap the strong type and return the underlying value.
  249|       |      return std::forward<T>(t).get();
  250|       |   }
  251|   274k|}
_ZN5Botan6detail11Strong_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEEC2Ev:
   76|  8.96k|      Strong_Base() = default;
_ZN5Botan6detail11Strong_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEEC2ES6_:
   83|  8.91k|      constexpr explicit Strong_Base(T v) : m_value(std::move(v)) {}
_ZN5Botan6detail11Strong_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEEaSEOS7_:
   80|  8.91k|      Strong_Base& operator=(Strong_Base&&) noexcept = default;
_ZN5Botan16wrap_strong_typeItRtQoosr3stdE18constructible_fromIT_T0_Eaasr8conceptsE11strong_typeIS2_Esr3stdE18constructible_fromINS2_12wrapped_typeES3_EEEDcOS3_:
  268|  44.4k|[[nodiscard]] constexpr decltype(auto) wrap_strong_type(ParamT&& t) {
  269|  44.4k|   if constexpr(std::same_as<std::remove_cvref_t<ParamT>, T>) {
  270|       |      // Noop, if the parameter type already is the desired return type.
  271|  44.4k|      return std::forward<ParamT>(t);
  272|       |   } else if constexpr(std::constructible_from<T, ParamT>) {
  273|       |      // Implicit conversion from the parameter type to the return type.
  274|       |      return T{std::forward<ParamT>(t)};
  275|       |   } else {
  276|       |      // Explicitly calling the wrapped type's constructor to support
  277|       |      // implicit conversions on types that mark their constructors as explicit.
  278|       |      static_assert(concepts::strong_type<T> && std::constructible_from<typename T::wrapped_type, ParamT>);
  279|       |      return T{typename T::wrapped_type{std::forward<ParamT>(t)}};
  280|       |   }
  281|  44.4k|}
_ZN5Botan18unwrap_strong_typeIRmEEDcOT_:
  243|  35.5k|[[nodiscard]] constexpr decltype(auto) unwrap_strong_type(T&& t) {
  244|  35.5k|   if constexpr(!concepts::strong_type<std::remove_cvref_t<T>>) {
  245|       |      // If the parameter type isn't a strong type, return it as is.
  246|  35.5k|      return std::forward<T>(t);
  247|       |   } else {
  248|       |      // Unwrap the strong type and return the underlying value.
  249|       |      return std::forward<T>(t).get();
  250|       |   }
  251|  35.5k|}
_ZN5Botan16wrap_strong_typeImRmQoosr3stdE18constructible_fromIT_T0_Eaasr8conceptsE11strong_typeIS2_Esr3stdE18constructible_fromINS2_12wrapped_typeES3_EEEDcOS3_:
  268|  2.37k|[[nodiscard]] constexpr decltype(auto) wrap_strong_type(ParamT&& t) {
  269|  2.37k|   if constexpr(std::same_as<std::remove_cvref_t<ParamT>, T>) {
  270|       |      // Noop, if the parameter type already is the desired return type.
  271|  2.37k|      return std::forward<ParamT>(t);
  272|       |   } else if constexpr(std::constructible_from<T, ParamT>) {
  273|       |      // Implicit conversion from the parameter type to the return type.
  274|       |      return T{std::forward<ParamT>(t)};
  275|       |   } else {
  276|       |      // Explicitly calling the wrapped type's constructor to support
  277|       |      // implicit conversions on types that mark their constructors as explicit.
  278|       |      static_assert(concepts::strong_type<T> && std::constructible_from<typename T::wrapped_type, ParamT>);
  279|       |      return T{typename T::wrapped_type{std::forward<ParamT>(t)}};
  280|       |   }
  281|  2.37k|}
_ZN5Botan16wrap_strong_typeIjRjQoosr3stdE18constructible_fromIT_T0_Eaasr8conceptsE11strong_typeIS2_Esr3stdE18constructible_fromINS2_12wrapped_typeES3_EEEDcOS3_:
  268|    247|[[nodiscard]] constexpr decltype(auto) wrap_strong_type(ParamT&& t) {
  269|    247|   if constexpr(std::same_as<std::remove_cvref_t<ParamT>, T>) {
  270|       |      // Noop, if the parameter type already is the desired return type.
  271|    247|      return std::forward<ParamT>(t);
  272|       |   } else if constexpr(std::constructible_from<T, ParamT>) {
  273|       |      // Implicit conversion from the parameter type to the return type.
  274|       |      return T{std::forward<ParamT>(t)};
  275|       |   } else {
  276|       |      // Explicitly calling the wrapped type's constructor to support
  277|       |      // implicit conversions on types that mark their constructors as explicit.
  278|       |      static_assert(concepts::strong_type<T> && std::constructible_from<typename T::wrapped_type, ParamT>);
  279|       |      return T{typename T::wrapped_type{std::forward<ParamT>(t)}};
  280|       |   }
  281|    247|}

_ZN5Botan3TLS12Group_ParamsC2Ev:
  141|  1.07k|      constexpr Group_Params() : m_code(Group_Params_Code::NONE) {}
_ZN5Botan3TLS12Group_ParamsC2Et:
  147|  21.6k|      constexpr Group_Params(uint16_t code) : m_code(static_cast<Group_Params_Code>(code)) {}
_ZNK5Botan3TLS12Group_ParamseqENS0_17Group_Params_CodeE:
  154|    111|      constexpr bool operator==(Group_Params_Code code) const { return m_code == code; }
_ZNK5Botan3TLS12Group_ParamseqES1_:
  156|    350|      constexpr bool operator==(Group_Params other) const { return m_code == other.m_code; }
_ZNK5Botan3TLS12Group_Params9wire_codeEv:
  162|  21.0k|      constexpr uint16_t wire_code() const { return static_cast<uint16_t>(m_code); }

_ZN5Botan3TLS13TLS_ExceptionC2ENS0_9AlertTypeENSt3__117basic_string_viewIcNS3_11char_traitsIcEEEE:
   24|  4.80k|            Exception(err_msg), m_alert_type(type) {}

_ZNK5Botan3TLS9Extension14is_implementedEv:
  100|    122|      virtual bool is_implemented() const { return true; }
_ZN5Botan3TLS21Server_Name_Indicator11static_typeEv:
  110|    779|      static Extension_Code static_type() { return Extension_Code::ServerNameIndication; }
_ZNK5Botan3TLS21Server_Name_Indicator4typeEv:
  112|    779|      Extension_Code type() const override { return static_type(); }
_ZNK5Botan3TLS21Server_Name_Indicator5emptyEv:
  122|    588|      bool empty() const override { return false; }
_ZN5Botan3TLS39Application_Layer_Protocol_Notification11static_typeEv:
  135|    393|      static Extension_Code static_type() { return Extension_Code::ApplicationLayerProtocolNegotiation; }
_ZNK5Botan3TLS39Application_Layer_Protocol_Notification4typeEv:
  137|    393|      Extension_Code type() const override { return static_type(); }
_ZNK5Botan3TLS39Application_Layer_Protocol_Notification5emptyEv:
  157|    272|      bool empty() const override { return m_protocols.empty(); }
_ZNK5Botan3TLS21Certificate_Type_Base5emptyEv:
  189|  1.44k|      bool empty() const override {
  190|       |         // RFC 7250 4.1
  191|       |         //    If the client has no remaining certificate types to send in the
  192|       |         //    client hello, other than the default X.509 type, it MUST omit the
  193|       |         //    entire client[/server]_certificate_type extension [...].
  194|  1.44k|         return m_from == Connection_Side::Client && m_certificate_types.size() == 1 &&
  ------------------
  |  Branch (194:17): [True: 0, False: 1.44k]
  |  Branch (194:54): [True: 0, False: 0]
  ------------------
  195|      0|                m_certificate_types.front() == Certificate_Type::X509;
  ------------------
  |  Branch (195:17): [True: 0, False: 0]
  ------------------
  196|  1.44k|      }
_ZN5Botan3TLS23Client_Certificate_Type11static_typeEv:
  212|    655|      static Extension_Code static_type() { return Extension_Code::ClientCertificateType; }
_ZNK5Botan3TLS23Client_Certificate_Type4typeEv:
  214|    655|      Extension_Code type() const override { return static_type(); }
_ZN5Botan3TLS23Server_Certificate_Type11static_typeEv:
  226|    939|      static Extension_Code static_type() { return Extension_Code::ServerCertificateType; }
_ZNK5Botan3TLS23Server_Certificate_Type4typeEv:
  228|    939|      Extension_Code type() const override { return static_type(); }
_ZN5Botan3TLS16Supported_Groups11static_typeEv:
  236|  2.53k|      static Extension_Code static_type() { return Extension_Code::SupportedGroups; }
_ZNK5Botan3TLS16Supported_Groups4typeEv:
  238|  1.94k|      Extension_Code type() const override { return static_type(); }
_ZNK5Botan3TLS16Supported_Groups5emptyEv:
  254|  1.63k|      bool empty() const override { return m_groups.empty(); }
_ZN5Botan3TLS20Signature_Algorithms11static_typeEv:
  265|  3.21k|      static Extension_Code static_type() { return Extension_Code::SignatureAlgorithms; }
_ZNK5Botan3TLS20Signature_Algorithms4typeEv:
  267|  1.63k|      Extension_Code type() const override { return static_type(); }
_ZNK5Botan3TLS20Signature_Algorithms5emptyEv:
  273|  1.34k|      bool empty() const override { return m_schemes.empty(); }
_ZN5Botan3TLS25Signature_Algorithms_Cert11static_typeEv:
  298|    314|      static Extension_Code static_type() { return Extension_Code::CertSignatureAlgorithms; }
_ZNK5Botan3TLS25Signature_Algorithms_Cert4typeEv:
  300|    314|      Extension_Code type() const override { return static_type(); }
_ZNK5Botan3TLS25Signature_Algorithms_Cert5emptyEv:
  306|    303|      bool empty() const override { return m_schemes.empty(); }
_ZN5Botan3TLS24SRTP_Protection_Profiles11static_typeEv:
  321|    266|      static Extension_Code static_type() { return Extension_Code::UseSrtp; }
_ZNK5Botan3TLS24SRTP_Protection_Profiles4typeEv:
  323|    266|      Extension_Code type() const override { return static_type(); }
_ZNK5Botan3TLS24SRTP_Protection_Profiles5emptyEv:
  329|    263|      bool empty() const override { return m_pp.empty(); }
_ZN5Botan3TLS26Certificate_Status_Request11static_typeEv:
  348|  1.25k|      static Extension_Code static_type() { return Extension_Code::CertificateStatusRequest; }
_ZNK5Botan3TLS26Certificate_Status_Request4typeEv:
  350|  1.25k|      Extension_Code type() const override { return static_type(); }
_ZNK5Botan3TLS26Certificate_Status_Request5emptyEv:
  354|    394|      bool empty() const override { return false; }
_ZN5Botan3TLS18Supported_Versions11static_typeEv:
  386|  14.3k|      static Extension_Code static_type() { return Extension_Code::SupportedVersions; }
_ZNK5Botan3TLS18Supported_Versions4typeEv:
  388|    987|      Extension_Code type() const override { return static_type(); }
_ZNK5Botan3TLS18Supported_Versions5emptyEv:
  392|    412|      bool empty() const override { return m_versions.empty(); }
_ZNK5Botan3TLS18Supported_Versions8versionsEv:
  402|    427|      const std::vector<Protocol_Version>& versions() const { return m_versions; }
_ZN5Botan3TLS17Record_Size_Limit11static_typeEv:
  417|    655|      static Extension_Code static_type() { return Extension_Code::RecordSizeLimit; }
_ZNK5Botan3TLS17Record_Size_Limit4typeEv:
  419|    655|      Extension_Code type() const override { return static_type(); }
_ZNK5Botan3TLS17Record_Size_Limit5emptyEv:
  429|    511|      bool empty() const override { return m_limit == 0; }
_ZNK5Botan3TLS17Unknown_Extension5emptyEv:
  446|  10.1k|      bool empty() const override { return false; }
_ZNK5Botan3TLS17Unknown_Extension4typeEv:
  448|  11.6k|      Extension_Code type() const override { return m_type; }
_ZNK5Botan3TLS17Unknown_Extension14is_implementedEv:
  450|  9.93k|      bool is_implemented() const override { return false; }
_ZNK5Botan3TLS10Extensions42contains_implemented_extensions_other_thanERKNSt3__13setINS0_14Extension_CodeENS2_4lessIS4_EENS2_9allocatorIS4_EEEE:
  503|  7.35k|      bool contains_implemented_extensions_other_than(const std::set<Extension_Code>& allowed_extensions) const {
  504|  7.35k|         return contains_other_than(allowed_extensions, true);
  505|  7.35k|      }
_ZNK5Botan3TLS10Extensions10last_addedEv:
  527|     82|      std::optional<Extension_Code> last_added() const {
  528|     82|         if(m_extension_codes.empty()) {
  ------------------
  |  Branch (528:13): [True: 0, False: 82]
  ------------------
  529|      0|            return {};
  530|     82|         } else {
  531|     82|            return m_extension_codes.back();
  532|     82|         }
  533|     82|      }
_ZN5Botan3TLS10ExtensionsC2Ev:
  535|  19.8k|      Extensions() = default;
_ZNK5Botan3TLS10Extensions3hasINS0_18Supported_VersionsEEEbv:
  470|  12.4k|      bool has() const {
  471|  12.4k|         return get<T>() != nullptr;
  472|  12.4k|      }
_ZNK5Botan3TLS10Extensions3getINS0_18Supported_VersionsEEEPT_v:
  465|  13.3k|      T* get() const {
  466|  13.3k|         return dynamic_cast<T*>(get(T::static_type()));
  467|  13.3k|      }
_ZNK5Botan3TLS10Extensions3getINS0_20Signature_AlgorithmsEEEPT_v:
  465|  1.58k|      T* get() const {
  466|  1.58k|         return dynamic_cast<T*>(get(T::static_type()));
  467|  1.58k|      }
_ZNK5Botan3TLS10Extensions3getINS0_16Supported_GroupsEEEPT_v:
  465|    591|      T* get() const {
  466|    591|         return dynamic_cast<T*>(get(T::static_type()));
  467|    591|      }
_ZNK5Botan3TLS10Extensions3hasINS0_20Signature_AlgorithmsEEEbv:
  470|  1.58k|      bool has() const {
  471|  1.58k|         return get<T>() != nullptr;
  472|  1.58k|      }
_ZN5Botan3TLS10ExtensionsC2EOS1_:
  538|  7.23k|      Extensions(Extensions&&) = default;
_ZN5Botan3TLS9ExtensionD2Ev:
  102|  27.1k|      virtual ~Extension() = default;
_ZNK5Botan3TLS10Extensions3hasINS0_3PSKEEEbv:
  470|    808|      bool has() const {
  471|    808|         return get<T>() != nullptr;
  472|    808|      }
_ZNK5Botan3TLS10Extensions3hasINS0_22PSK_Key_Exchange_ModesEEEbv:
  470|     83|      bool has() const {
  471|     83|         return get<T>() != nullptr;
  472|     83|      }
_ZNK5Botan3TLS10Extensions3getINS0_22PSK_Key_Exchange_ModesEEEPT_v:
  465|     83|      T* get() const {
  466|     83|         return dynamic_cast<T*>(get(T::static_type()));
  467|     83|      }
_ZNK5Botan3TLS10Extensions3hasINS0_16Supported_GroupsEEEbv:
  470|    423|      bool has() const {
  471|    423|         return get<T>() != nullptr;
  472|    423|      }
_ZNK5Botan3TLS10Extensions3hasINS0_9Key_ShareEEEbv:
  470|    905|      bool has() const {
  471|    905|         return get<T>() != nullptr;
  472|    905|      }
_ZNK5Botan3TLS10Extensions3getINS0_9Key_ShareEEEPT_v:
  465|  1.07k|      T* get() const {
  466|  1.07k|         return dynamic_cast<T*>(get(T::static_type()));
  467|  1.07k|      }
_ZNK5Botan3TLS10Extensions3getINS0_3PSKEEEPT_v:
  465|    808|      T* get() const {
  466|    808|         return dynamic_cast<T*>(get(T::static_type()));
  467|    808|      }

_ZN5Botan3TLS23Renegotiation_Extension11static_typeEv:
   31|    323|      static Extension_Code static_type() { return Extension_Code::SafeRenegotiation; }
_ZNK5Botan3TLS23Renegotiation_Extension4typeEv:
   33|    323|      Extension_Code type() const override { return static_type(); }
_ZNK5Botan3TLS23Renegotiation_Extension5emptyEv:
   45|     13|      bool empty() const override { return false; }  // always send this
_ZN5Botan3TLS24Session_Ticket_Extension11static_typeEv:
   56|    201|      static Extension_Code static_type() { return Extension_Code::SessionTicket; }
_ZNK5Botan3TLS24Session_Ticket_Extension4typeEv:
   58|    201|      Extension_Code type() const override { return static_type(); }
_ZNK5Botan3TLS24Session_Ticket_Extension5emptyEv:
   82|      8|      bool empty() const override { return false; }
_ZN5Botan3TLS23Supported_Point_Formats11static_typeEv:
   99|    237|      static Extension_Code static_type() { return Extension_Code::EcPointFormats; }
_ZNK5Botan3TLS23Supported_Point_Formats4typeEv:
  101|    237|      Extension_Code type() const override { return static_type(); }
_ZNK5Botan3TLS23Supported_Point_Formats5emptyEv:
  109|      7|      bool empty() const override { return false; }
_ZN5Botan3TLS22Extended_Master_Secret11static_typeEv:
  122|     81|      static Extension_Code static_type() { return Extension_Code::ExtendedMasterSecret; }
_ZNK5Botan3TLS22Extended_Master_Secret4typeEv:
  124|     81|      Extension_Code type() const override { return static_type(); }
_ZNK5Botan3TLS22Extended_Master_Secret5emptyEv:
  128|     13|      bool empty() const override { return false; }
_ZN5Botan3TLS16Encrypt_then_MAC11static_typeEv:
  140|    291|      static Extension_Code static_type() { return Extension_Code::EncryptThenMac; }
_ZNK5Botan3TLS16Encrypt_then_MAC4typeEv:
  142|    291|      Extension_Code type() const override { return static_type(); }
_ZNK5Botan3TLS16Encrypt_then_MAC5emptyEv:
  146|     16|      bool empty() const override { return false; }

_ZN5Botan3TLS23Certificate_Authorities11static_typeEv:
   90|    545|      static Extension_Code static_type() { return Extension_Code::CertificateAuthorities; }
_ZN5Botan3TLS6Cookie11static_typeEv:
   44|     79|      static Extension_Code static_type() { return Extension_Code::Cookie; }
_ZNK5Botan3TLS6Cookie4typeEv:
   46|     79|      Extension_Code type() const override { return static_type(); }
_ZNK5Botan3TLS6Cookie5emptyEv:
   50|     10|      bool empty() const override { return m_cookie.empty(); }
_ZN5Botan3TLS22PSK_Key_Exchange_Modes11static_typeEv:
   67|    460|      static Extension_Code static_type() { return Extension_Code::PskKeyExchangeModes; }
_ZNK5Botan3TLS22PSK_Key_Exchange_Modes4typeEv:
   69|    377|      Extension_Code type() const override { return static_type(); }
_ZNK5Botan3TLS22PSK_Key_Exchange_Modes5emptyEv:
   73|     51|      bool empty() const override { return m_modes.empty(); }
_ZNK5Botan3TLS23Certificate_Authorities4typeEv:
   92|    545|      Extension_Code type() const override { return static_type(); }
_ZNK5Botan3TLS23Certificate_Authorities5emptyEv:
   96|      4|      bool empty() const override { return m_distinguished_names.empty(); }
_ZN5Botan3TLS3PSK11static_typeEv:
  112|  1.73k|      static Extension_Code static_type() { return Extension_Code::PresharedKey; }
_ZNK5Botan3TLS3PSK4typeEv:
  114|    922|      Extension_Code type() const override { return static_type(); }
_ZN5Botan3TLS9Key_Share11static_typeEv:
  212|  2.28k|      static Extension_Code static_type() { return Extension_Code::KeyShare; }
_ZNK5Botan3TLS9Key_Share4typeEv:
  214|  1.21k|      Extension_Code type() const override { return static_type(); }
_ZN5Botan3TLS19EarlyDataIndication11static_typeEv:
  306|    292|      static Extension_Code static_type() { return Extension_Code::EarlyData; }
_ZNK5Botan3TLS19EarlyDataIndication4typeEv:
  308|    292|      Extension_Code type() const override { return static_type(); }

_ZN5Botan3TLS17Handshake_MessageD2Ev:
   50|  77.0k|      virtual ~Handshake_Message() = default;
_ZN5Botan3TLS17Handshake_MessageC2Ev:
   51|  28.5k|      Handshake_Message() = default;
_ZN5Botan3TLS17Handshake_MessageC2EOS1_:
   53|  48.4k|      Handshake_Message(Handshake_Message&&) = default;

_ZN5Botan3TLS8FinishedC2ERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  272|  7.45k|      explicit Finished(const std::vector<uint8_t>& buf) : m_verification_data(buf) {}

_ZNK5Botan3TLS20Encrypted_Extensions4typeEv:
  155|  6.55k|      Handshake_Type type() const override { return Handshake_Type::EncryptedExtensions; }

_ZN5Botan3TLS11PskIdentityC2ENSt3__16vectorIhNS2_9allocatorIhEEEEj:
   41|  2.60k|            m_identity(std::move(identity)), m_obfuscated_age(obfuscated_age) {}

_ZNK5Botan3TLS16Signature_SchemeeqERKS1_:
  106|  9.18k|      bool operator==(const Signature_Scheme& rhs) const { return m_code == rhs.m_code; }

_ZN5Botan3TLS16Protocol_VersionC2Ev:
   54|  8.76k|      Protocol_Version() : m_version(0) {}
_ZN5Botan3TLS16Protocol_VersionC2Et:
   56|  34.8k|      explicit Protocol_Version(uint16_t code) : m_version(code) {}
_ZN5Botan3TLS16Protocol_VersionC2ENS0_12Version_CodeE:
   62|  22.9k|            Protocol_Version(static_cast<uint16_t>(named_version)) {}
_ZN5Botan3TLS16Protocol_VersionC2Ehh:
   69|  8.73k|            Protocol_Version(static_cast<uint16_t>((static_cast<uint16_t>(major) << 8) | minor)) {}
_ZNK5Botan3TLS16Protocol_Version13major_versionEv:
   84|  56.6k|      uint8_t major_version() const { return static_cast<uint8_t>(m_version >> 8); }
_ZNK5Botan3TLS16Protocol_Version13minor_versionEv:
   89|    111|      uint8_t minor_version() const { return static_cast<uint8_t>(m_version & 0xFF); }
_ZNK5Botan3TLS16Protocol_VersioneqERKS1_:
  123|  22.8k|      bool operator==(const Protocol_Version& other) const { return (m_version == other.m_version); }
_ZNK5Botan3TLS16Protocol_VersionneERKS1_:
  128|    884|      bool operator!=(const Protocol_Version& other) const { return (m_version != other.m_version); }
_ZNK5Botan3TLS16Protocol_VersiongeERKS1_:
  138|  7.23k|      bool operator>=(const Protocol_Version& other) const { return (*this == other || *this > other); }
  ------------------
  |  Branch (138:70): [True: 2, False: 7.23k]
  |  Branch (138:88): [True: 2.62k, False: 4.60k]
  ------------------
_ZNK5Botan3TLS16Protocol_VersionltERKS1_:
  143|  6.93k|      bool operator<(const Protocol_Version& other) const { return !(*this >= other); }
_ZNK5Botan3TLS16Protocol_VersionleERKS1_:
  148|  13.0k|      bool operator<=(const Protocol_Version& other) const { return (*this == other || *this < other); }
  ------------------
  |  Branch (148:70): [True: 6.10k, False: 6.93k]
  |  Branch (148:88): [True: 4.33k, False: 2.60k]
  ------------------

_ZN5Botan14Cert_Extension9Key_Usage10static_oidEv:
   84|  1.71k|      static OID static_oid() { return OID({2, 5, 29, 15}); }
_ZN5Botan14Cert_Extension14Subject_Key_ID10static_oidEv:
  116|  1.71k|      static OID static_oid() { return OID({2, 5, 29, 14}); }
_ZN5Botan14Cert_Extension16Authority_Key_ID10static_oidEv:
  146|  1.71k|      static OID static_oid() { return OID({2, 5, 29, 35}); }
_ZN5Botan14Cert_Extension16Name_Constraints10static_oidEv:
  268|  1.71k|      static OID static_oid() { return OID({2, 5, 29, 30}); }
_ZN5Botan14Cert_Extension18Extended_Key_Usage10static_oidEv:
  232|  1.71k|      static OID static_oid() { return OID({2, 5, 29, 37}); }
_ZN5Botan14Cert_Extension17Basic_Constraints10static_oidEv:
   55|  1.71k|      static OID static_oid() { return OID({2, 5, 29, 19}); }
_ZN5Botan14Cert_Extension23Issuer_Alternative_Name10static_oidEv:
  196|  1.71k|      static OID static_oid() { return OID({2, 5, 29, 18}); }
_ZN5Botan14Cert_Extension24Subject_Alternative_Name10static_oidEv:
  168|  1.71k|      static OID static_oid() { return OID({2, 5, 29, 17}); }
_ZN5Botan14Cert_Extension20Certificate_Policies10static_oidEv:
  298|  1.71k|      static OID static_oid() { return OID({2, 5, 29, 32}); }
_ZN5Botan14Cert_Extension28Authority_Information_Access10static_oidEv:
  348|  1.71k|      static OID static_oid() { return OID({1, 3, 6, 1, 5, 5, 7, 1, 1}); }
_ZN5Botan14Cert_Extension23CRL_Distribution_Points10static_oidEv:
  454|  1.71k|      static OID static_oid() { return OID({2, 5, 29, 31}); }

_ZN5Botan4X5098load_keyERKNSt3__16vectorIhNS1_9allocatorIhEEEE:
   59|  1.71k|inline std::unique_ptr<Public_Key> load_key(const std::vector<uint8_t>& enc) {
   60|  1.71k|   DataSource_Memory source(enc);
   61|  1.71k|   return X509::load_key(source);
   62|  1.71k|}

_ZN5Botan11X509_ObjectC2Ev:
  120|  2.84k|      X509_Object() = default;

LLVMFuzzerInitialize:
   28|      2|extern "C" int LLVMFuzzerInitialize(int* /*argc*/, char*** /*argv*/) {
   29|       |   /*
   30|       |   * This disables the mlock pool, as overwrites within the pool are
   31|       |   * opaque to ASan or other instrumentation.
   32|       |   */
   33|      2|   ::setenv("BOTAN_MLOCK_POOL_SIZE", "0", 1);
   34|      2|   return 0;
   35|      2|}
LLVMFuzzerTestOneInput:
   39|  6.09k|extern "C" int LLVMFuzzerTestOneInput(const uint8_t in[], size_t len) {
   40|  6.09k|   if(len <= max_fuzzer_input_size) {
  ------------------
  |  Branch (40:7): [True: 6.08k, False: 8]
  ------------------
   41|  6.08k|      try {
   42|  6.08k|         fuzz(std::span<const uint8_t>(in, len));
   43|  6.08k|      } catch(const std::exception& e) {
   44|      0|         std::cerr << "Uncaught exception from fuzzer driver " << e.what() << "\n";
   45|      0|         abort();
   46|      0|      } catch(...) {
   47|      0|         std::cerr << "Uncaught exception from fuzzer driver (unknown type)\n";
   48|      0|         abort();
   49|      0|      }
   50|  6.08k|   }
   51|  6.09k|   return 0;
   52|  6.09k|}

_Z4fuzzNSt3__14spanIKhLm18446744073709551615EEE:
   25|  6.08k|void fuzz(std::span<const uint8_t> in) {
   26|  6.08k|   static const Botan::TLS::Default_Policy policy;
   27|       |
   28|  6.08k|   try {
   29|  6.08k|      auto hl1 = prepare(in);
   30|  6.08k|      Botan::TLS::Transcript_Hash_State transcript_hash("SHA-256");
   31|  30.5k|      while(hl1.next_message(policy, transcript_hash).has_value()) {};
  ------------------
  |  Branch (31:13): [True: 24.4k, False: 6.08k]
  ------------------
   32|       |
   33|  6.08k|      auto hl2 = prepare(in);
   34|  6.08k|      while(hl2.next_post_handshake_message(policy).has_value()) {};
  ------------------
  |  Branch (34:13): [True: 0, False: 6.08k]
  ------------------
   35|  6.08k|   } catch(const Botan::Exception& e) {}
   36|  6.08k|}
tls_13_handshake_layer.cpp:_ZN12_GLOBAL__N_17prepareENSt3__14spanIKhLm18446744073709551615EEE:
   17|  7.26k|Botan::TLS::Handshake_Layer prepare(std::span<const uint8_t> data) {
   18|  7.26k|   Botan::TLS::Handshake_Layer hl(Botan::TLS::Connection_Side::Client);
   19|  7.26k|   hl.copy_data(data);
   20|  7.26k|   return hl;
   21|  7.26k|}

_ZNK5Botan19AlgorithmIdentifier19parameters_are_nullEv:
   49|  1.78k|bool AlgorithmIdentifier::parameters_are_null() const {
   50|  1.78k|   return (m_parameters.size() == 2 && (m_parameters[0] == 0x05) && (m_parameters[1] == 0x00));
  ------------------
  |  Branch (50:12): [True: 1.73k, False: 49]
  |  Branch (50:40): [True: 1.73k, False: 3]
  |  Branch (50:69): [True: 1.72k, False: 7]
  ------------------
   51|  1.78k|}
_ZN5BotaneqERKNS_19AlgorithmIdentifierES2_:
   53|  1.84k|bool operator==(const AlgorithmIdentifier& a1, const AlgorithmIdentifier& a2) {
   54|  1.84k|   if(a1.oid() != a2.oid()) {
  ------------------
  |  Branch (54:7): [True: 56, False: 1.78k]
  ------------------
   55|     56|      return false;
   56|     56|   }
   57|       |
   58|       |   /*
   59|       |   * Treat NULL and empty as equivalent
   60|       |   */
   61|  1.78k|   if(a1.parameters_are_null_or_empty() && a2.parameters_are_null_or_empty()) {
  ------------------
  |  Branch (61:7): [True: 1.72k, False: 59]
  |  Branch (61:44): [True: 1.72k, False: 0]
  ------------------
   62|  1.72k|      return true;
   63|  1.72k|   }
   64|       |
   65|     59|   return (a1.parameters() == a2.parameters());
   66|  1.78k|}
_ZN5BotanneERKNS_19AlgorithmIdentifierES2_:
   68|  1.84k|bool operator!=(const AlgorithmIdentifier& a1, const AlgorithmIdentifier& a2) {
   69|  1.84k|   return !(a1 == a2);
   70|  1.84k|}
_ZNK5Botan19AlgorithmIdentifier11encode_intoERNS_11DER_EncoderE:
   75|  1.71k|void AlgorithmIdentifier::encode_into(DER_Encoder& codec) const {
   76|  1.71k|   codec.start_sequence().encode(oid()).raw_bytes(parameters()).end_cons();
   77|  1.71k|}
_ZN5Botan19AlgorithmIdentifier11decode_fromERNS_11BER_DecoderE:
   82|  7.98k|void AlgorithmIdentifier::decode_from(BER_Decoder& codec) {
   83|  7.98k|   codec.start_sequence().decode(m_oid).raw_bytes(m_parameters).end_cons();
   84|  7.98k|}

_ZNK5Botan11ASN1_Object10BER_encodeEv:
   20|  1.71k|std::vector<uint8_t> ASN1_Object::BER_encode() const {
   21|  1.71k|   std::vector<uint8_t> output;
   22|  1.71k|   DER_Encoder der(output);
   23|  1.71k|   this->encode_into(der);
   24|  1.71k|   return output;
   25|  1.71k|}
_ZN5Botan10BER_ObjectD2Ev:
   27|   122k|BER_Object::~BER_Object() {
   28|   122k|   secure_scrub_memory(m_value);
   29|   122k|}
_ZNK5Botan10BER_Object11assert_is_aENS_9ASN1_TypeENS_10ASN1_ClassENSt3__117basic_string_viewIcNS3_11char_traitsIcEEEE:
   34|  33.0k|void BER_Object::assert_is_a(ASN1_Type expected_type_tag, ASN1_Class expected_class_tag, std::string_view descr) const {
   35|  33.0k|   if(!this->is_a(expected_type_tag, expected_class_tag)) {
  ------------------
  |  Branch (35:7): [True: 267, False: 32.7k]
  ------------------
   36|    267|      std::stringstream msg;
   37|       |
   38|    267|      msg << "Tag mismatch when decoding " << descr << " got ";
   39|       |
   40|    267|      if(m_class_tag == ASN1_Class::NoObject && m_type_tag == ASN1_Type::NoObject) {
  ------------------
  |  Branch (40:10): [True: 61, False: 206]
  |  Branch (40:49): [True: 61, False: 0]
  ------------------
   41|     61|         msg << "EOF";
   42|    206|      } else {
   43|    206|         if(m_class_tag == ASN1_Class::Universal || m_class_tag == ASN1_Class::Constructed) {
  ------------------
  |  Branch (43:13): [True: 117, False: 89]
  |  Branch (43:53): [True: 55, False: 34]
  ------------------
   44|    172|            msg << asn1_tag_to_string(m_type_tag);
   45|    172|         } else {
   46|     34|            msg << std::to_string(static_cast<uint32_t>(m_type_tag));
   47|     34|         }
   48|       |
   49|    206|         msg << "/" << asn1_class_to_string(m_class_tag);
   50|    206|      }
   51|       |
   52|    267|      msg << " expected ";
   53|       |
   54|    267|      if(expected_class_tag == ASN1_Class::Universal || expected_class_tag == ASN1_Class::Constructed) {
  ------------------
  |  Branch (54:10): [True: 74, False: 193]
  |  Branch (54:57): [True: 193, False: 0]
  ------------------
   55|    267|         msg << asn1_tag_to_string(expected_type_tag);
   56|    267|      } else {
   57|      0|         msg << std::to_string(static_cast<uint32_t>(expected_type_tag));
   58|      0|      }
   59|       |
   60|    267|      msg << "/" << asn1_class_to_string(expected_class_tag);
   61|       |
   62|    267|      throw BER_Decoding_Error(msg.str());
   63|    267|   }
   64|  33.0k|}
_ZNK5Botan10BER_Object4is_aENS_9ASN1_TypeENS_10ASN1_ClassE:
   66|  40.6k|bool BER_Object::is_a(ASN1_Type expected_type_tag, ASN1_Class expected_class_tag) const {
   67|  40.6k|   return (m_type_tag == expected_type_tag && m_class_tag == expected_class_tag);
  ------------------
  |  Branch (67:12): [True: 32.8k, False: 7.84k]
  |  Branch (67:47): [True: 32.8k, False: 17]
  ------------------
   68|  40.6k|}
_ZNK5Botan10BER_Object4is_aEiNS_10ASN1_ClassE:
   70|  1.71k|bool BER_Object::is_a(int expected_type_tag, ASN1_Class expected_class_tag) const {
   71|  1.71k|   return is_a(ASN1_Type(expected_type_tag), expected_class_tag);
   72|  1.71k|}
_ZN5Botan10BER_Object11set_taggingENS_9ASN1_TypeENS_10ASN1_ClassE:
   74|  51.8k|void BER_Object::set_tagging(ASN1_Type type_tag, ASN1_Class class_tag) {
   75|  51.8k|   m_type_tag = type_tag;
   76|  51.8k|   m_class_tag = class_tag;
   77|  51.8k|}
_ZN5Botan20asn1_class_to_stringENS_10ASN1_ClassE:
   79|    473|std::string asn1_class_to_string(ASN1_Class type) {
   80|    473|   switch(type) {
   81|    191|      case ASN1_Class::Universal:
  ------------------
  |  Branch (81:7): [True: 191, False: 282]
  ------------------
   82|    191|         return "UNIVERSAL";
   83|    248|      case ASN1_Class::Constructed:
  ------------------
  |  Branch (83:7): [True: 248, False: 225]
  ------------------
   84|    248|         return "CONSTRUCTED";
   85|      6|      case ASN1_Class::ContextSpecific:
  ------------------
  |  Branch (85:7): [True: 6, False: 467]
  ------------------
   86|      6|         return "CONTEXT_SPECIFIC";
   87|      3|      case ASN1_Class::Application:
  ------------------
  |  Branch (87:7): [True: 3, False: 470]
  ------------------
   88|      3|         return "APPLICATION";
   89|      4|      case ASN1_Class::Private:
  ------------------
  |  Branch (89:7): [True: 4, False: 469]
  ------------------
   90|      4|         return "PRIVATE";
   91|      0|      case ASN1_Class::NoObject:
  ------------------
  |  Branch (91:7): [True: 0, False: 473]
  ------------------
   92|      0|         return "NO_OBJECT";
   93|     21|      default:
  ------------------
  |  Branch (93:7): [True: 21, False: 452]
  ------------------
   94|     21|         return "CLASS(" + std::to_string(static_cast<size_t>(type)) + ")";
   95|    473|   }
   96|    473|}
_ZN5Botan18asn1_tag_to_stringENS_9ASN1_TypeE:
   98|    513|std::string asn1_tag_to_string(ASN1_Type type) {
   99|    513|   switch(type) {
  100|    189|      case ASN1_Type::Sequence:
  ------------------
  |  Branch (100:7): [True: 189, False: 324]
  ------------------
  101|    189|         return "SEQUENCE";
  102|       |
  103|      8|      case ASN1_Type::Set:
  ------------------
  |  Branch (103:7): [True: 8, False: 505]
  ------------------
  104|      8|         return "SET";
  105|       |
  106|      1|      case ASN1_Type::PrintableString:
  ------------------
  |  Branch (106:7): [True: 1, False: 512]
  ------------------
  107|      1|         return "PRINTABLE STRING";
  108|       |
  109|      2|      case ASN1_Type::NumericString:
  ------------------
  |  Branch (109:7): [True: 2, False: 511]
  ------------------
  110|      2|         return "NUMERIC STRING";
  111|       |
  112|      8|      case ASN1_Type::Ia5String:
  ------------------
  |  Branch (112:7): [True: 8, False: 505]
  ------------------
  113|      8|         return "IA5 STRING";
  114|       |
  115|      1|      case ASN1_Type::TeletexString:
  ------------------
  |  Branch (115:7): [True: 1, False: 512]
  ------------------
  116|      1|         return "T61 STRING";
  117|       |
  118|     66|      case ASN1_Type::Utf8String:
  ------------------
  |  Branch (118:7): [True: 66, False: 447]
  ------------------
  119|     66|         return "UTF8 STRING";
  120|       |
  121|      3|      case ASN1_Type::VisibleString:
  ------------------
  |  Branch (121:7): [True: 3, False: 510]
  ------------------
  122|      3|         return "VISIBLE STRING";
  123|       |
  124|      1|      case ASN1_Type::BmpString:
  ------------------
  |  Branch (124:7): [True: 1, False: 512]
  ------------------
  125|      1|         return "BMP STRING";
  126|       |
  127|      3|      case ASN1_Type::UniversalString:
  ------------------
  |  Branch (127:7): [True: 3, False: 510]
  ------------------
  128|      3|         return "UNIVERSAL STRING";
  129|       |
  130|      2|      case ASN1_Type::UtcTime:
  ------------------
  |  Branch (130:7): [True: 2, False: 511]
  ------------------
  131|      2|         return "UTC TIME";
  132|       |
  133|      3|      case ASN1_Type::GeneralizedTime:
  ------------------
  |  Branch (133:7): [True: 3, False: 510]
  ------------------
  134|      3|         return "GENERALIZED TIME";
  135|       |
  136|      4|      case ASN1_Type::OctetString:
  ------------------
  |  Branch (136:7): [True: 4, False: 509]
  ------------------
  137|      4|         return "OCTET STRING";
  138|       |
  139|     16|      case ASN1_Type::BitString:
  ------------------
  |  Branch (139:7): [True: 16, False: 497]
  ------------------
  140|     16|         return "BIT STRING";
  141|       |
  142|      1|      case ASN1_Type::Enumerated:
  ------------------
  |  Branch (142:7): [True: 1, False: 512]
  ------------------
  143|      1|         return "ENUMERATED";
  144|       |
  145|     64|      case ASN1_Type::Integer:
  ------------------
  |  Branch (145:7): [True: 64, False: 449]
  ------------------
  146|     64|         return "INTEGER";
  147|       |
  148|      2|      case ASN1_Type::Null:
  ------------------
  |  Branch (148:7): [True: 2, False: 511]
  ------------------
  149|      2|         return "NULL";
  150|       |
  151|      1|      case ASN1_Type::ObjectId:
  ------------------
  |  Branch (151:7): [True: 1, False: 512]
  ------------------
  152|      1|         return "OBJECT";
  153|       |
  154|      4|      case ASN1_Type::Boolean:
  ------------------
  |  Branch (154:7): [True: 4, False: 509]
  ------------------
  155|      4|         return "BOOLEAN";
  156|       |
  157|      0|      case ASN1_Type::NoObject:
  ------------------
  |  Branch (157:7): [True: 0, False: 513]
  ------------------
  158|      0|         return "NO_OBJECT";
  159|       |
  160|    134|      default:
  ------------------
  |  Branch (160:7): [True: 134, False: 379]
  ------------------
  161|    134|         return "TAG(" + std::to_string(static_cast<uint32_t>(type)) + ")";
  162|    513|   }
  163|    513|}
_ZN5Botan18BER_Decoding_ErrorC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  168|    723|BER_Decoding_Error::BER_Decoding_Error(std::string_view err) : Decoding_Error(fmt("BER: {}", err)) {}
_ZN5Botan11BER_Bad_TagC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEj:
  170|     29|BER_Bad_Tag::BER_Bad_Tag(std::string_view str, uint32_t tagging) : BER_Decoding_Error(fmt("{}: {}", str, tagging)) {}
_ZN5Botan4ASN115put_in_sequenceERKNSt3__16vectorIhNS1_9allocatorIhEEEE:
  177|  5.20k|std::vector<uint8_t> put_in_sequence(const std::vector<uint8_t>& contents) {
  178|  5.20k|   return ASN1::put_in_sequence(contents.data(), contents.size());
  179|  5.20k|}
_ZN5Botan4ASN115put_in_sequenceEPKhm:
  181|  5.20k|std::vector<uint8_t> put_in_sequence(const uint8_t bits[], size_t len) {
  182|  5.20k|   std::vector<uint8_t> output;
  183|  5.20k|   DER_Encoder(output).start_sequence().raw_bytes(bits, len).end_cons();
  184|  5.20k|   return output;
  185|  5.20k|}
_ZN5Botan4ASN19to_stringERKNS_10BER_ObjectE:
  190|  4.10k|std::string to_string(const BER_Object& obj) {
  191|  4.10k|   return bytes_to_string(obj.data());
  192|  4.10k|}
_ZN5Botan4ASN19maybe_BERERNS_10DataSourceE:
  197|  4.55k|bool maybe_BER(DataSource& source) {
  198|  4.55k|   uint8_t first_u8 = 0;
  199|  4.55k|   if(source.peek_byte(first_u8) == 0) {
  ------------------
  |  Branch (199:7): [True: 1, False: 4.55k]
  ------------------
  200|      1|      BOTAN_ASSERT_EQUAL(source.read_byte(first_u8), 0, "Expected EOF");
  ------------------
  |  |   90|      1|   do {                                                                                                \
  |  |   91|      1|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                                    \
  |  |   92|      1|      if((expr1) != (expr2)) {                                                                         \
  |  |  ------------------
  |  |  |  Branch (92:10): [True: 0, False: 1]
  |  |  ------------------
  |  |   93|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                                           \
  |  |   94|      0|         Botan::assertion_failure(#expr1 " == " #expr2, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   95|      0|      }                                                                                                \
  |  |   96|      1|   } while(0)
  |  |  ------------------
  |  |  |  Branch (96:12): [Folded, False: 1]
  |  |  ------------------
  ------------------
  201|      1|      throw Stream_IO_Error("ASN1::maybe_BER: Source was empty");
  202|      1|   }
  203|       |
  204|  4.55k|   const auto cons_seq = static_cast<uint8_t>(ASN1_Class::Constructed) | static_cast<uint8_t>(ASN1_Type::Sequence);
  205|  4.55k|   return first_u8 == cons_seq;
  206|  4.55k|}

_ZN5Botan3OID11from_stringENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   86|  1.71k|OID OID::from_string(std::string_view str) {
   87|  1.71k|   if(str.empty()) {
  ------------------
  |  Branch (87:7): [True: 0, False: 1.71k]
  ------------------
   88|      0|      throw Invalid_Argument("OID::from_string argument must be non-empty");
   89|      0|   }
   90|       |
   91|  1.71k|   OID o = OID_Map::global_registry().str2oid(str);
   92|  1.71k|   if(o.has_value()) {
  ------------------
  |  Branch (92:7): [True: 1.71k, False: 0]
  ------------------
   93|  1.71k|      return o;
   94|  1.71k|   }
   95|       |
   96|       |   // Try to parse as a dotted decimal
   97|      0|   try {
   98|      0|      return OID(str);
   99|      0|   } catch(...) {}
  100|       |
  101|      0|   throw Lookup_Error(fmt("No OID associated with name '{}'", str));
  102|      0|}
_ZN5Botan3OIDC2ESt16initializer_listIjE:
  104|  20.5k|OID::OID(std::initializer_list<uint32_t> init) : m_id(init) {
  105|  20.5k|   oid_valid_check(m_id);
  106|  20.5k|}
_ZNK5Botan3OID9to_stringEv:
  125|  1.67k|std::string OID::to_string() const {
  126|  1.67k|   std::ostringstream out;
  127|       |
  128|  12.0k|   for(size_t i = 0; i != m_id.size(); ++i) {
  ------------------
  |  Branch (128:22): [True: 10.4k, False: 1.67k]
  ------------------
  129|       |      // avoid locale issues with integer formatting
  130|  10.4k|      out << std::to_string(m_id[i]);
  131|  10.4k|      if(i != m_id.size() - 1) {
  ------------------
  |  Branch (131:10): [True: 8.73k, False: 1.67k]
  ------------------
  132|  8.73k|         out << ".";
  133|  8.73k|      }
  134|  10.4k|   }
  135|       |
  136|  1.67k|   return out.str();
  137|  1.67k|}
_ZNK5Botan3OID19to_formatted_stringEv:
  139|  1.71k|std::string OID::to_formatted_string() const {
  140|  1.71k|   std::string s = this->human_name_or_empty();
  141|  1.71k|   if(!s.empty()) {
  ------------------
  |  Branch (141:7): [True: 38, False: 1.67k]
  ------------------
  142|     38|      return s;
  143|     38|   }
  144|  1.67k|   return this->to_string();
  145|  1.71k|}
_ZNK5Botan3OID19human_name_or_emptyEv:
  147|  1.71k|std::string OID::human_name_or_empty() const {
  148|  1.71k|   return OID_Map::global_registry().oid2str(*this);
  149|  1.71k|}
_ZNK5Botan3OID7matchesESt16initializer_listIjE:
  155|    374|bool OID::matches(std::initializer_list<uint32_t> other) const {
  156|       |   // TODO: once all target compilers support it, use std::ranges::equal
  157|    374|   return std::equal(m_id.begin(), m_id.end(), other.begin(), other.end());
  158|    374|}
_ZNK5Botan3OID9hash_codeEv:
  160|  3.39k|uint64_t OID::hash_code() const {
  161|       |   // If this is changed also update gen_oids.py to match
  162|  3.39k|   uint64_t hash = 0x621F302327D9A49A;
  163|  21.0k|   for(auto id : m_id) {
  ------------------
  |  Branch (163:16): [True: 21.0k, False: 3.39k]
  ------------------
  164|  21.0k|      hash *= 193;
  165|  21.0k|      hash += id;
  166|  21.0k|   }
  167|  3.39k|   return hash;
  168|  3.39k|}
_ZNK5Botan3OID11encode_intoERNS_11DER_EncoderE:
  183|  1.71k|void OID::encode_into(DER_Encoder& der) const {
  184|  1.71k|   if(m_id.size() < 2) {
  ------------------
  |  Branch (184:7): [True: 0, False: 1.71k]
  ------------------
  185|      0|      throw Invalid_Argument("OID::encode_into: OID is invalid");
  186|      0|   }
  187|       |
  188|  1.71k|   auto append = [](std::vector<uint8_t>& encoding, uint32_t z) {
  189|  1.71k|      if(z <= 0x7F) {
  190|  1.71k|         encoding.push_back(static_cast<uint8_t>(z));
  191|  1.71k|      } else {
  192|  1.71k|         const size_t z7 = (high_bit(z) + 7 - 1) / 7;
  193|       |
  194|  1.71k|         for(size_t j = 0; j != z7; ++j) {
  195|  1.71k|            uint8_t zp = static_cast<uint8_t>(z >> (7 * (z7 - j - 1)) & 0x7F);
  196|       |
  197|  1.71k|            if(j != z7 - 1) {
  198|  1.71k|               zp |= 0x80;
  199|  1.71k|            }
  200|       |
  201|  1.71k|            encoding.push_back(zp);
  202|  1.71k|         }
  203|  1.71k|      }
  204|  1.71k|   };
  205|       |
  206|  1.71k|   std::vector<uint8_t> encoding;
  207|       |
  208|       |   // We know 40 * root can't overflow because root is between 0 and 2
  209|  1.71k|   auto first = checked_add(40 * m_id[0], m_id[1]);
  210|  1.71k|   BOTAN_ASSERT_NOMSG(first.has_value());
  ------------------
  |  |   77|  1.71k|   do {                                                                     \
  |  |   78|  1.71k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  1.71k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 1.71k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  1.71k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 1.71k]
  |  |  ------------------
  ------------------
  211|       |
  212|  1.71k|   append(encoding, *first);
  213|       |
  214|  3.50k|   for(size_t i = 2; i != m_id.size(); ++i) {
  ------------------
  |  Branch (214:22): [True: 1.79k, False: 1.71k]
  ------------------
  215|  1.79k|      append(encoding, m_id[i]);
  216|  1.79k|   }
  217|  1.71k|   der.add_object(ASN1_Type::ObjectId, ASN1_Class::Universal, encoding);
  218|  1.71k|}
_ZN5Botan3OID11decode_fromERNS_11BER_DecoderE:
  223|  8.48k|void OID::decode_from(BER_Decoder& decoder) {
  224|  8.48k|   const BER_Object obj = decoder.get_next_object();
  225|  8.48k|   if(obj.tagging() != (ASN1_Class::Universal | ASN1_Type::ObjectId)) {
  ------------------
  |  Branch (225:7): [True: 29, False: 8.45k]
  ------------------
  226|     29|      throw BER_Bad_Tag("Error decoding OID, unknown tag", obj.tagging());
  227|     29|   }
  228|       |
  229|  8.45k|   if(obj.length() == 0) {
  ------------------
  |  Branch (229:7): [True: 3, False: 8.45k]
  ------------------
  230|      3|      throw BER_Decoding_Error("OID encoding is too short");
  231|      3|   }
  232|       |
  233|  8.45k|   auto consume = [](BufferSlicer& data) -> uint32_t {
  234|  8.45k|      BOTAN_ASSERT_NOMSG(!data.empty());
  235|  8.45k|      uint32_t b = data.take_byte();
  236|       |
  237|  8.45k|      if(b > 0x7F) {
  238|  8.45k|         b &= 0x7F;
  239|       |
  240|       |         // Even BER requires that the OID have minimal length, ie that
  241|       |         // the first byte of a multibyte encoding cannot be zero
  242|       |         // See X.690 section 8.19.2
  243|  8.45k|         if(b == 0) {
  244|  8.45k|            throw Decoding_Error("Leading zero byte in multibyte OID encoding");
  245|  8.45k|         }
  246|       |
  247|  8.45k|         while(true) {
  248|  8.45k|            if(data.empty()) {
  249|  8.45k|               throw Decoding_Error("Truncated OID value");
  250|  8.45k|            }
  251|       |
  252|  8.45k|            const uint8_t next = data.take_byte();
  253|  8.45k|            const bool more = (next & 0x80) == 0x80;
  254|  8.45k|            const uint8_t value = next & 0x7F;
  255|       |
  256|  8.45k|            if((b >> (32 - 7)) != 0) {
  257|  8.45k|               throw Decoding_Error("OID component overflow");
  258|  8.45k|            }
  259|       |
  260|  8.45k|            b = (b << 7) | value;
  261|       |
  262|  8.45k|            if(!more) {
  263|  8.45k|               break;
  264|  8.45k|            }
  265|  8.45k|         }
  266|  8.45k|      }
  267|       |
  268|  8.45k|      return b;
  269|  8.45k|   };
  270|       |
  271|  8.45k|   BufferSlicer data(obj.data());
  272|  8.45k|   std::vector<uint32_t> parts;
  273|  37.2k|   while(!data.empty()) {
  ------------------
  |  Branch (273:10): [True: 28.7k, False: 8.45k]
  ------------------
  274|  28.7k|      const uint32_t comp = consume(data);
  275|       |
  276|  28.7k|      if(parts.empty()) {
  ------------------
  |  Branch (276:10): [True: 8.43k, False: 20.3k]
  ------------------
  277|       |         // divide into root and second arc
  278|       |
  279|  8.43k|         const uint32_t root_arc = [](uint32_t b0) -> uint32_t {
  280|  8.43k|            if(b0 < 40) {
  281|  8.43k|               return 0;
  282|  8.43k|            } else if(b0 < 80) {
  283|  8.43k|               return 1;
  284|  8.43k|            } else {
  285|  8.43k|               return 2;
  286|  8.43k|            }
  287|  8.43k|         }(comp);
  288|       |
  289|  8.43k|         parts.push_back(root_arc);
  290|  8.43k|         BOTAN_ASSERT_NOMSG(comp >= 40 * root_arc);
  ------------------
  |  |   77|  8.43k|   do {                                                                     \
  |  |   78|  8.43k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  8.43k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 8.43k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  8.43k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 8.43k]
  |  |  ------------------
  ------------------
  291|  8.43k|         parts.push_back(comp - 40 * root_arc);
  292|  20.3k|      } else {
  293|  20.3k|         parts.push_back(comp);
  294|  20.3k|      }
  295|  28.7k|   }
  296|       |
  297|  8.45k|   m_id = parts;
  298|  8.45k|}
asn1_oid.cpp:_ZN5Botan12_GLOBAL__N_115oid_valid_checkENSt3__14spanIKjLm18446744073709551615EEE:
   26|  20.5k|void oid_valid_check(std::span<const uint32_t> oid) {
   27|  20.5k|   BOTAN_ARG_CHECK(oid.size() >= 2, "OID too short to be valid");
  ------------------
  |  |   35|  20.5k|   do {                                                          \
  |  |   36|  20.5k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  20.5k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 20.5k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  20.5k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 20.5k]
  |  |  ------------------
  ------------------
   28|  20.5k|   BOTAN_ARG_CHECK(oid[0] <= 2, "OID root out of range");
  ------------------
  |  |   35|  20.5k|   do {                                                          \
  |  |   36|  20.5k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  20.5k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 20.5k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  20.5k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 20.5k]
  |  |  ------------------
  ------------------
   29|  20.5k|   BOTAN_ARG_CHECK(oid[1] <= 39 || oid[0] == 2, "OID second arc too large");
  ------------------
  |  |   35|  20.5k|   do {                                                          \
  |  |   36|  20.5k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  20.5k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 20.5k, False: 0]
  |  |  |  Branch (37:12): [True: 0, False: 0]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  20.5k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 20.5k]
  |  |  ------------------
  ------------------
   30|       |   // This last is a limitation of using 32 bit integers when decoding
   31|       |   // not a limitation of ASN.1 object identifiers in general
   32|  20.5k|   BOTAN_ARG_CHECK(oid[1] <= 0xFFFFFFAF, "OID second arc too large");
  ------------------
  |  |   35|  20.5k|   do {                                                          \
  |  |   36|  20.5k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  20.5k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 20.5k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  20.5k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 20.5k]
  |  |  ------------------
  ------------------
   33|  20.5k|}
asn1_oid.cpp:_ZZNK5Botan3OID11encode_intoERNS_11DER_EncoderEENK3$_0clERNSt3__16vectorIhNS4_9allocatorIhEEEEj:
  188|  3.50k|   auto append = [](std::vector<uint8_t>& encoding, uint32_t z) {
  189|  3.50k|      if(z <= 0x7F) {
  ------------------
  |  Branch (189:10): [True: 127, False: 3.37k]
  ------------------
  190|    127|         encoding.push_back(static_cast<uint8_t>(z));
  191|  3.37k|      } else {
  192|  3.37k|         const size_t z7 = (high_bit(z) + 7 - 1) / 7;
  193|       |
  194|  11.8k|         for(size_t j = 0; j != z7; ++j) {
  ------------------
  |  Branch (194:28): [True: 8.44k, False: 3.37k]
  ------------------
  195|  8.44k|            uint8_t zp = static_cast<uint8_t>(z >> (7 * (z7 - j - 1)) & 0x7F);
  196|       |
  197|  8.44k|            if(j != z7 - 1) {
  ------------------
  |  Branch (197:16): [True: 5.06k, False: 3.37k]
  ------------------
  198|  5.06k|               zp |= 0x80;
  199|  5.06k|            }
  200|       |
  201|  8.44k|            encoding.push_back(zp);
  202|  8.44k|         }
  203|  3.37k|      }
  204|  3.50k|   };
asn1_oid.cpp:_ZZN5Botan3OID11decode_fromERNS_11BER_DecoderEENK3$_0clERNS_12BufferSlicerE:
  233|  28.7k|   auto consume = [](BufferSlicer& data) -> uint32_t {
  234|  28.7k|      BOTAN_ASSERT_NOMSG(!data.empty());
  ------------------
  |  |   77|  28.7k|   do {                                                                     \
  |  |   78|  28.7k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  28.7k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 28.7k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  28.7k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 28.7k]
  |  |  ------------------
  ------------------
  235|  28.7k|      uint32_t b = data.take_byte();
  236|       |
  237|  28.7k|      if(b > 0x7F) {
  ------------------
  |  Branch (237:10): [True: 11.6k, False: 17.1k]
  ------------------
  238|  11.6k|         b &= 0x7F;
  239|       |
  240|       |         // Even BER requires that the OID have minimal length, ie that
  241|       |         // the first byte of a multibyte encoding cannot be zero
  242|       |         // See X.690 section 8.19.2
  243|  11.6k|         if(b == 0) {
  ------------------
  |  Branch (243:13): [True: 2, False: 11.6k]
  ------------------
  244|      2|            throw Decoding_Error("Leading zero byte in multibyte OID encoding");
  245|      2|         }
  246|       |
  247|  16.9k|         while(true) {
  ------------------
  |  Branch (247:16): [True: 16.9k, Folded]
  ------------------
  248|  16.9k|            if(data.empty()) {
  ------------------
  |  Branch (248:16): [True: 12, False: 16.9k]
  ------------------
  249|     12|               throw Decoding_Error("Truncated OID value");
  250|     12|            }
  251|       |
  252|  16.9k|            const uint8_t next = data.take_byte();
  253|  16.9k|            const bool more = (next & 0x80) == 0x80;
  254|  16.9k|            const uint8_t value = next & 0x7F;
  255|       |
  256|  16.9k|            if((b >> (32 - 7)) != 0) {
  ------------------
  |  Branch (256:16): [True: 4, False: 16.9k]
  ------------------
  257|      4|               throw Decoding_Error("OID component overflow");
  258|      4|            }
  259|       |
  260|  16.9k|            b = (b << 7) | value;
  261|       |
  262|  16.9k|            if(!more) {
  ------------------
  |  Branch (262:16): [True: 11.5k, False: 5.37k]
  ------------------
  263|  11.5k|               break;
  264|  11.5k|            }
  265|  16.9k|         }
  266|  11.6k|      }
  267|       |
  268|  28.7k|      return b;
  269|  28.7k|   };
asn1_oid.cpp:_ZZN5Botan3OID11decode_fromERNS_11BER_DecoderEENK3$_1clEj:
  279|  8.43k|         const uint32_t root_arc = [](uint32_t b0) -> uint32_t {
  280|  8.43k|            if(b0 < 40) {
  ------------------
  |  Branch (280:16): [True: 1.17k, False: 7.26k]
  ------------------
  281|  1.17k|               return 0;
  282|  7.26k|            } else if(b0 < 80) {
  ------------------
  |  Branch (282:23): [True: 1.71k, False: 5.55k]
  ------------------
  283|  1.71k|               return 1;
  284|  5.55k|            } else {
  285|  5.55k|               return 2;
  286|  5.55k|            }
  287|  8.43k|         }(comp);

_ZN5Botan11ASN1_StringC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEENS_9ASN1_TypeE:
  135|    644|ASN1_String::ASN1_String(std::string_view str, ASN1_Type t) : m_utf8_str(str), m_tag(t) {
  136|    644|   if(!is_utf8_subset_string_type(m_tag)) {
  ------------------
  |  Branch (136:7): [True: 0, False: 644]
  ------------------
  137|      0|      throw Invalid_Argument("ASN1_String only supports encoding to UTF-8 or a UTF-8 subset");
  138|      0|   }
  139|       |
  140|    644|   if(!is_valid_asn1_string_content(m_utf8_str, m_tag)) {
  ------------------
  |  Branch (140:7): [True: 0, False: 644]
  ------------------
  141|      0|      throw Invalid_Argument(fmt("ASN1_String: Invalid {} encoding", asn1_tag_to_string(m_tag)));
  142|      0|   }
  143|    644|}
_ZN5Botan11ASN1_StringC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  145|    644|ASN1_String::ASN1_String(std::string_view str) : ASN1_String(str, choose_encoding(str)) {}
_ZN5Botan11ASN1_String11decode_fromERNS_11BER_DecoderE:
  162|    616|void ASN1_String::decode_from(BER_Decoder& source) {
  163|    616|   const BER_Object obj = source.get_next_object();
  164|       |
  165|    616|   if(obj.get_class() != ASN1_Class::Universal || !is_asn1_string_type(obj.type())) {
  ------------------
  |  Branch (165:7): [True: 9, False: 607]
  |  Branch (165:51): [True: 53, False: 554]
  ------------------
  166|     57|      auto typ = static_cast<uint32_t>(obj.type());
  167|     57|      auto cls = static_cast<uint32_t>(obj.get_class());
  168|     57|      throw Decoding_Error(fmt("ASN1_String: Unknown string type {}/{}", typ, cls));
  169|     57|   }
  170|       |
  171|    559|   m_tag = obj.type();
  172|    559|   m_data.assign(obj.bits(), obj.bits() + obj.length());
  173|       |
  174|    559|   if(m_tag == ASN1_Type::BmpString) {
  ------------------
  |  Branch (174:7): [True: 76, False: 483]
  ------------------
  175|     76|      m_utf8_str = ucs2_to_utf8(m_data.data(), m_data.size());
  176|    483|   } else if(m_tag == ASN1_Type::UniversalString) {
  ------------------
  |  Branch (176:14): [True: 102, False: 381]
  ------------------
  177|    102|      m_utf8_str = ucs4_to_utf8(m_data.data(), m_data.size());
  178|    381|   } else if(m_tag == ASN1_Type::TeletexString) {
  ------------------
  |  Branch (178:14): [True: 82, False: 299]
  ------------------
  179|       |      /*
  180|       |      TeletexString is nominally ITU T.61 not ISO-8859-1 but it seems
  181|       |      the majority of implementations actually used that charset here.
  182|       |      */
  183|     82|      m_utf8_str = latin1_to_utf8(m_data.data(), m_data.size());
  184|    299|   } else {
  185|       |      // All other supported string types are UTF-8 or some subset thereof
  186|    299|      m_utf8_str = ASN1::to_string(obj);
  187|       |
  188|    299|      if(!is_valid_asn1_string_content(m_utf8_str, m_tag)) {
  ------------------
  |  Branch (188:10): [True: 74, False: 225]
  ------------------
  189|     74|         throw Decoding_Error(fmt("ASN1_String: Invalid {} encoding", asn1_tag_to_string(m_tag)));
  190|     74|      }
  191|    299|   }
  192|    559|}
asn1_str.cpp:_ZN5Botan12_GLOBAL__N_119is_asn1_string_typeENS_9ASN1_TypeE:
   99|    607|bool is_asn1_string_type(ASN1_Type tag) {
  100|    607|   return (is_utf8_subset_string_type(tag) || tag == ASN1_Type::TeletexString || tag == ASN1_Type::BmpString ||
  ------------------
  |  Branch (100:12): [True: 294, False: 313]
  |  Branch (100:47): [True: 82, False: 231]
  |  Branch (100:82): [True: 76, False: 155]
  ------------------
  101|    155|           tag == ASN1_Type::UniversalString);
  ------------------
  |  Branch (101:12): [True: 102, False: 53]
  ------------------
  102|    607|}
asn1_str.cpp:_ZN5Botan12_GLOBAL__N_126is_utf8_subset_string_typeENS_9ASN1_TypeE:
   94|  2.18k|bool is_utf8_subset_string_type(ASN1_Type tag) {
   95|  2.18k|   return (tag == ASN1_Type::NumericString || tag == ASN1_Type::PrintableString || tag == ASN1_Type::VisibleString ||
  ------------------
  |  Branch (95:12): [True: 36, False: 2.15k]
  |  Branch (95:47): [True: 1.48k, False: 669]
  |  Branch (95:84): [True: 54, False: 615]
  ------------------
   96|    615|           tag == ASN1_Type::Ia5String || tag == ASN1_Type::Utf8String);
  ------------------
  |  Branch (96:12): [True: 86, False: 529]
  |  Branch (96:43): [True: 216, False: 313]
  ------------------
   97|  2.18k|}
asn1_str.cpp:_ZN5Botan12_GLOBAL__N_128is_valid_asn1_string_contentERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_9ASN1_TypeE:
  104|    938|bool is_valid_asn1_string_content(const std::string& str, ASN1_Type tag) {
  105|    938|   BOTAN_ASSERT_NOMSG(is_utf8_subset_string_type(tag));
  ------------------
  |  |   77|    938|   do {                                                                     \
  |  |   78|    938|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|    938|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 938]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|    938|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 938]
  |  |  ------------------
  ------------------
  106|       |
  107|    938|   switch(tag) {
  108|    108|      case ASN1_Type::Utf8String:
  ------------------
  |  Branch (108:7): [True: 108, False: 830]
  ------------------
  109|    108|         return is_valid_utf8(str);
  110|     18|      case ASN1_Type::NumericString:
  ------------------
  |  Branch (110:7): [True: 18, False: 920]
  ------------------
  111|    760|      case ASN1_Type::PrintableString:
  ------------------
  |  Branch (111:7): [True: 742, False: 196]
  ------------------
  112|    803|      case ASN1_Type::Ia5String:
  ------------------
  |  Branch (112:7): [True: 43, False: 895]
  ------------------
  113|    830|      case ASN1_Type::VisibleString:
  ------------------
  |  Branch (113:7): [True: 27, False: 911]
  ------------------
  114|    830|         return g_char_validator.valid_encoding(str, tag);
  115|      0|      default:
  ------------------
  |  Branch (115:7): [True: 0, False: 938]
  ------------------
  116|      0|         return false;
  117|    938|   }
  118|    938|}
asn1_str.cpp:_ZNK5Botan12_GLOBAL__N_131ASN1_String_Codepoint_Validator14valid_encodingENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_9ASN1_TypeE:
   25|  1.47k|      constexpr bool valid_encoding(std::string_view str, ASN1_Type tag) const {
   26|  1.47k|         const uint8_t mask = mask_for(tag);
   27|  1.47k|         for(const char c : str) {
  ------------------
  |  Branch (27:27): [True: 129, False: 1.46k]
  ------------------
   28|    129|            const uint8_t codepoint = static_cast<uint8_t>(c);
   29|    129|            const bool is_valid = (m_table[codepoint] & mask) != 0;
   30|       |
   31|    129|            if(!is_valid) {
  ------------------
  |  Branch (31:16): [True: 10, False: 119]
  ------------------
   32|     10|               return false;
   33|     10|            }
   34|    129|         }
   35|       |
   36|  1.46k|         return true;
   37|  1.47k|      }
asn1_str.cpp:_ZN5Botan12_GLOBAL__N_131ASN1_String_Codepoint_Validator8mask_forENS_9ASN1_TypeE:
   45|  1.47k|      static constexpr uint8_t mask_for(ASN1_Type tag) {
   46|  1.47k|         switch(tag) {
   47|     18|            case ASN1_Type::NumericString:
  ------------------
  |  Branch (47:13): [True: 18, False: 1.45k]
  ------------------
   48|     18|               return Numeric_String;
   49|  1.38k|            case ASN1_Type::PrintableString:
  ------------------
  |  Branch (49:13): [True: 1.38k, False: 88]
  ------------------
   50|  1.38k|               return Printable_String;
   51|     43|            case ASN1_Type::Ia5String:
  ------------------
  |  Branch (51:13): [True: 43, False: 1.43k]
  ------------------
   52|     43|               return IA5_String;
   53|     27|            case ASN1_Type::VisibleString:
  ------------------
  |  Branch (53:13): [True: 27, False: 1.44k]
  ------------------
   54|     27|               return Visible_String;
   55|      0|            default:
  ------------------
  |  Branch (55:13): [True: 0, False: 1.47k]
  ------------------
   56|      0|               return 0;
   57|  1.47k|         }
   58|  1.47k|      }
asn1_str.cpp:_ZN5Botan12_GLOBAL__N_115choose_encodingENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  120|    644|ASN1_Type choose_encoding(std::string_view str) {
  121|    644|   if(g_char_validator.valid_encoding(str, ASN1_Type::PrintableString)) {
  ------------------
  |  Branch (121:7): [True: 644, False: 0]
  ------------------
  122|    644|      return ASN1_Type::PrintableString;
  123|    644|   } else {
  124|      0|      return ASN1_Type::Utf8String;
  125|      0|   }
  126|    644|}

_ZN5Botan9ASN1_Time11decode_fromERNS_11BER_DecoderE:
   59|  3.85k|void ASN1_Time::decode_from(BER_Decoder& source) {
   60|  3.85k|   const BER_Object ber_time = source.get_next_object();
   61|       |
   62|  3.85k|   if(ber_time.get_class() != ASN1_Class::Universal ||
  ------------------
  |  Branch (62:7): [True: 17, False: 3.83k]
  ------------------
   63|  3.83k|      (ber_time.type() != ASN1_Type::UtcTime && ber_time.type() != ASN1_Type::GeneralizedTime)) {
  ------------------
  |  Branch (63:8): [True: 3.80k, False: 33]
  |  Branch (63:49): [True: 29, False: 3.77k]
  ------------------
   64|     38|      throw Decoding_Error(fmt("ASN1_Time: Unexpected tag {}/{}",
   65|     38|                               static_cast<uint32_t>(ber_time.type()),
   66|     38|                               static_cast<uint32_t>(ber_time.get_class())));
   67|     38|   }
   68|       |
   69|  3.81k|   try {
   70|  3.81k|      set_to(ASN1::to_string(ber_time), ber_time.type());
   71|  3.81k|   } catch(Invalid_Argument& e) {
   72|     73|      throw Decoding_Error(fmt("Invalid ASN1_Time encoding: {}", e.what()));
   73|     73|   }
   74|  3.81k|}
_ZN5Botan9ASN1_Time6set_toENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEENS_9ASN1_TypeE:
  176|  3.80k|void ASN1_Time::set_to(std::string_view t_spec, ASN1_Type spec_tag) {
  177|  3.80k|   BOTAN_ARG_CHECK(spec_tag == ASN1_Type::UtcTime || spec_tag == ASN1_Type::GeneralizedTime,
  ------------------
  |  |   35|  3.80k|   do {                                                          \
  |  |   36|  3.80k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  7.58k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 33, False: 3.77k]
  |  |  |  Branch (37:12): [True: 3.77k, False: 0]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  3.80k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 3.80k]
  |  |  ------------------
  ------------------
  178|  3.80k|                   "Invalid tag for ASN1_Time");
  179|       |
  180|  3.80k|   if(spec_tag == ASN1_Type::GeneralizedTime) {
  ------------------
  |  Branch (180:7): [True: 3.77k, False: 33]
  ------------------
  181|  3.77k|      BOTAN_ARG_CHECK(t_spec.size() == 15, "Invalid GeneralizedTime input string");
  ------------------
  |  |   35|  3.77k|   do {                                                          \
  |  |   36|  3.77k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  3.77k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 5, False: 3.77k]
  |  |  ------------------
  |  |   38|      5|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      5|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      5|      }                                                          \
  |  |   41|  3.77k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 3.77k]
  |  |  ------------------
  ------------------
  182|  3.77k|   } else if(spec_tag == ASN1_Type::UtcTime) {
  ------------------
  |  Branch (182:14): [True: 33, False: 0]
  ------------------
  183|     33|      BOTAN_ARG_CHECK(t_spec.size() == 13, "Invalid UTCTime input string");
  ------------------
  |  |   35|     33|   do {                                                          \
  |  |   36|     33|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|     33|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 7, False: 26]
  |  |  ------------------
  |  |   38|      7|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      7|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      7|      }                                                          \
  |  |   41|     33|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 33]
  |  |  ------------------
  ------------------
  184|     33|   }
  185|       |
  186|  3.80k|   BOTAN_ARG_CHECK(t_spec.back() == 'Z', "Botan does not support ASN1 times with timezones other than Z");
  ------------------
  |  |   35|  3.80k|   do {                                                          \
  |  |   36|  3.80k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  3.80k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 7, False: 3.80k]
  |  |  ------------------
  |  |   38|      7|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      7|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      7|      }                                                          \
  |  |   41|  3.80k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 3.80k]
  |  |  ------------------
  ------------------
  187|       |
  188|  3.80k|   const size_t field_len = 2;
  189|       |
  190|  3.80k|   const size_t year_start = 0;
  191|  3.80k|   const size_t year_len = (spec_tag == ASN1_Type::UtcTime) ? 2 : 4;
  ------------------
  |  Branch (191:28): [True: 23, False: 3.78k]
  ------------------
  192|  3.80k|   const size_t month_start = year_start + year_len;
  193|  3.80k|   const size_t day_start = month_start + field_len;
  194|  3.80k|   const size_t hour_start = day_start + field_len;
  195|  3.80k|   const size_t min_start = hour_start + field_len;
  196|  3.80k|   const size_t sec_start = min_start + field_len;
  197|       |
  198|  3.80k|   m_year = to_u32bit(t_spec.substr(year_start, year_len));
  199|  3.80k|   m_month = to_u32bit(t_spec.substr(month_start, field_len));
  200|  3.80k|   m_day = to_u32bit(t_spec.substr(day_start, field_len));
  201|  3.80k|   m_hour = to_u32bit(t_spec.substr(hour_start, field_len));
  202|  3.80k|   m_minute = to_u32bit(t_spec.substr(min_start, field_len));
  203|  3.80k|   m_second = to_u32bit(t_spec.substr(sec_start, field_len));
  204|  3.80k|   m_tag = spec_tag;
  205|       |
  206|  3.80k|   if(spec_tag == ASN1_Type::UtcTime) {
  ------------------
  |  Branch (206:7): [True: 19, False: 3.79k]
  ------------------
  207|     19|      if(m_year >= 50) {
  ------------------
  |  Branch (207:10): [True: 9, False: 10]
  ------------------
  208|      9|         m_year += 1900;
  209|     10|      } else {
  210|     10|         m_year += 2000;
  211|     10|      }
  212|     19|   }
  213|       |
  214|  3.80k|   if(!passes_sanity_check()) {
  ------------------
  |  Branch (214:7): [True: 41, False: 3.76k]
  ------------------
  215|     41|      throw Invalid_Argument(fmt("ASN1_Time string '{}' does not seem to be valid", t_spec));
  216|     41|   }
  217|  3.80k|}
_ZNK5Botan9ASN1_Time19passes_sanity_checkEv:
  222|  3.77k|bool ASN1_Time::passes_sanity_check() const {
  223|       |   // AppVeyor's trust store includes a cert with expiration date in 3016 ...
  224|  3.77k|   if(m_year < 1950 || m_year > 3100) {
  ------------------
  |  Branch (224:7): [True: 10, False: 3.76k]
  |  Branch (224:24): [True: 4, False: 3.76k]
  ------------------
  225|     14|      return false;
  226|     14|   }
  227|  3.76k|   if(m_month == 0 || m_month > 12) {
  ------------------
  |  Branch (227:7): [True: 3, False: 3.76k]
  |  Branch (227:23): [True: 5, False: 3.75k]
  ------------------
  228|      8|      return false;
  229|      8|   }
  230|       |
  231|  3.75k|   const uint32_t days_in_month[12] = {31, 28 + 1, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
  232|       |
  233|  3.75k|   if(m_day == 0 || m_day > days_in_month[m_month - 1]) {
  ------------------
  |  Branch (233:7): [True: 1, False: 3.75k]
  |  Branch (233:21): [True: 8, False: 3.74k]
  ------------------
  234|      9|      return false;
  235|      9|   }
  236|       |
  237|  3.74k|   if(m_month == 2 && m_day == 29) {
  ------------------
  |  Branch (237:7): [True: 60, False: 3.68k]
  |  Branch (237:23): [True: 6, False: 54]
  ------------------
  238|      6|      if(m_year % 4 != 0) {
  ------------------
  |  Branch (238:10): [True: 1, False: 5]
  ------------------
  239|      1|         return false;  // not a leap year
  240|      1|      }
  241|       |
  242|      5|      if(m_year % 100 == 0 && m_year % 400 != 0) {
  ------------------
  |  Branch (242:10): [True: 2, False: 3]
  |  Branch (242:31): [True: 1, False: 1]
  ------------------
  243|      1|         return false;
  244|      1|      }
  245|      5|   }
  246|       |
  247|  3.74k|   if(m_hour >= 24 || m_minute >= 60 || m_second > 60) {
  ------------------
  |  Branch (247:7): [True: 4, False: 3.74k]
  |  Branch (247:23): [True: 1, False: 3.73k]
  |  Branch (247:41): [True: 2, False: 3.73k]
  ------------------
  248|      7|      return false;
  249|      7|   }
  250|       |
  251|  3.73k|   if(m_tag == ASN1_Type::UtcTime) {
  ------------------
  |  Branch (251:7): [True: 10, False: 3.72k]
  ------------------
  252|       |      /*
  253|       |      UTCTime limits the value of components such that leap seconds
  254|       |      are not covered. See "UNIVERSAL 23" in "Information technology
  255|       |      Abstract Syntax Notation One (ASN.1): Specification of basic notation"
  256|       |
  257|       |      http://www.itu.int/ITU-T/studygroups/com17/languages/
  258|       |      */
  259|     10|      if(m_second > 59) {
  ------------------
  |  Branch (259:10): [True: 1, False: 9]
  ------------------
  260|      1|         return false;
  261|      1|      }
  262|     10|   }
  263|       |
  264|  3.73k|   return true;
  265|  3.73k|}

_ZN5Botan11BER_DecoderD2Ev:
  366|  38.2k|BER_Decoder::~BER_Decoder() = default;
_ZNK5Botan11BER_Decoder10more_itemsEv:
  371|  6.68k|bool BER_Decoder::more_items() const {
  372|  6.68k|   if(m_source->end_of_data() && !m_pushed.is_set()) {
  ------------------
  |  Branch (372:7): [True: 5.41k, False: 1.27k]
  |  Branch (372:34): [True: 5.41k, False: 0]
  ------------------
  373|  5.41k|      return false;
  374|  5.41k|   }
  375|  1.27k|   return true;
  376|  6.68k|}
_ZN5Botan11BER_Decoder10verify_endEv:
  381|  4.66k|BER_Decoder& BER_Decoder::verify_end() {
  382|  4.66k|   return verify_end("BER_Decoder::verify_end called, but data remains");
  383|  4.66k|}
_ZN5Botan11BER_Decoder10verify_endENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  388|  6.51k|BER_Decoder& BER_Decoder::verify_end(std::string_view err) {
  389|  6.51k|   if(!m_source->end_of_data() || m_pushed.is_set()) {
  ------------------
  |  Branch (389:7): [True: 19, False: 6.49k]
  |  Branch (389:35): [True: 0, False: 6.49k]
  ------------------
  390|     19|      throw Decoding_Error(err);
  391|     19|   }
  392|  6.49k|   return (*this);
  393|  6.51k|}
_ZN5Botan11BER_Decoder14read_next_byteEv:
  405|   194k|std::optional<uint8_t> BER_Decoder::read_next_byte() {
  406|   194k|   BOTAN_ASSERT_NOMSG(m_source != nullptr);
  ------------------
  |  |   77|   194k|   do {                                                                     \
  |  |   78|   194k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|   194k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 194k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|   194k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 194k]
  |  |  ------------------
  ------------------
  407|   194k|   uint8_t b = 0;
  408|   194k|   if(m_source->read_byte(b) != 0) {
  ------------------
  |  Branch (408:7): [True: 178k, False: 15.5k]
  ------------------
  409|   178k|      return b;
  410|   178k|   } else {
  411|  15.5k|      return {};
  412|  15.5k|   }
  413|   194k|}
_ZN5Botan11BER_Decoder15get_next_objectEv:
  426|  54.2k|BER_Object BER_Decoder::get_next_object() {
  427|  54.2k|   BER_Object next;
  428|       |
  429|  54.2k|   if(m_pushed.is_set()) {
  ------------------
  |  Branch (429:7): [True: 2.35k, False: 51.8k]
  ------------------
  430|  2.35k|      std::swap(next, m_pushed);
  431|  2.35k|      return next;
  432|  2.35k|   }
  433|       |
  434|  51.8k|   for(;;) {
  435|  51.8k|      ASN1_Type type_tag = ASN1_Type::NoObject;
  436|  51.8k|      ASN1_Class class_tag = ASN1_Class::NoObject;
  437|  51.8k|      decode_tag(m_source, type_tag, class_tag);
  438|  51.8k|      next.set_tagging(type_tag, class_tag);
  439|  51.8k|      if(next.is_set() == false) {  // no more objects
  ------------------
  |  Branch (439:10): [True: 5.47k, False: 46.4k]
  ------------------
  440|  5.47k|         return next;
  441|  5.47k|      }
  442|       |
  443|  46.4k|      const size_t allow_indef = m_limits.allow_ber_encoding() ? m_limits.max_nested_indefinite_length() : 0;
  ------------------
  |  Branch (443:34): [True: 0, False: 46.4k]
  ------------------
  444|  46.4k|      const bool der_mode = m_limits.require_der_encoding();
  445|  46.4k|      const auto dl = decode_length(m_source, allow_indef, der_mode, is_constructed(class_tag));
  446|       |
  447|       |      // Per X.690 8.1.5 the only valid EOC encoding is the two-octet
  448|       |      // sequence 0x00 0x00. Reject any other length encoding on a tag of
  449|       |      // (Eoc, Universal) before we consume the "content" bytes.
  450|  46.4k|      if(type_tag == ASN1_Type::Eoc && class_tag == ASN1_Class::Universal &&
  ------------------
  |  Branch (450:10): [True: 135, False: 46.2k]
  |  Branch (450:40): [True: 70, False: 65]
  ------------------
  451|     70|         (dl.content_length() != 0 || dl.indefinite_length())) {
  ------------------
  |  Branch (451:11): [True: 45, False: 25]
  |  Branch (451:39): [True: 0, False: 25]
  ------------------
  452|     45|         throw BER_Decoding_Error("EOC marker with non-zero length");
  453|     45|      }
  454|       |
  455|  46.3k|      if(!m_source->check_available(dl.total_length())) {
  ------------------
  |  Branch (455:10): [True: 152, False: 46.2k]
  ------------------
  456|    152|         throw BER_Decoding_Error("Value truncated");
  457|    152|      }
  458|       |
  459|  46.2k|      uint8_t* out = next.mutable_bits(dl.content_length());
  460|  46.2k|      if(m_source->read(out, dl.content_length()) != dl.content_length()) {
  ------------------
  |  Branch (460:10): [True: 0, False: 46.2k]
  ------------------
  461|      0|         throw BER_Decoding_Error("Value truncated");
  462|      0|      }
  463|       |
  464|  46.2k|      if(dl.indefinite_length()) {
  ------------------
  |  Branch (464:10): [True: 0, False: 46.2k]
  ------------------
  465|       |         // After reading the data consume the 2-byte EOC
  466|      0|         uint8_t eoc[2] = {0xFF, 0xFF};
  467|      0|         if(m_source->read(eoc, 2) != 2 || eoc[0] != 0x00 || eoc[1] != 0x00) {
  ------------------
  |  Branch (467:13): [True: 0, False: 0]
  |  Branch (467:44): [True: 0, False: 0]
  |  Branch (467:62): [True: 0, False: 0]
  ------------------
  468|      0|            throw BER_Decoding_Error("Missing or malformed EOC marker");
  469|      0|         }
  470|      0|      }
  471|       |
  472|  46.2k|      if(next.tagging() == static_cast<uint32_t>(ASN1_Type::Eoc)) {
  ------------------
  |  Branch (472:10): [True: 25, False: 46.2k]
  ------------------
  473|     25|         if(m_limits.require_der_encoding()) {
  ------------------
  |  Branch (473:13): [True: 25, False: 0]
  ------------------
  474|     25|            throw BER_Decoding_Error("Detected EOC marker in DER structure");
  475|     25|         }
  476|      0|         continue;
  477|  46.2k|      } else {
  478|  46.2k|         break;
  479|  46.2k|      }
  480|  46.2k|   }
  481|       |
  482|  46.2k|   return next;
  483|  51.8k|}
_ZN5Botan11BER_Decoder9push_backEONS_10BER_ObjectE:
  507|  5.92k|void BER_Decoder::push_back(BER_Object&& obj) {
  508|  5.92k|   if(m_pushed.is_set()) {
  ------------------
  |  Branch (508:7): [True: 0, False: 5.92k]
  ------------------
  509|      0|      throw Invalid_State("BER_Decoder: Only one push back is allowed");
  510|      0|   }
  511|  5.92k|   m_pushed = std::move(obj);
  512|  5.92k|}
_ZN5Botan11BER_Decoder10start_consENS_9ASN1_TypeENS_10ASN1_ClassE:
  514|  23.5k|BER_Decoder BER_Decoder::start_cons(ASN1_Type type_tag, ASN1_Class class_tag) {
  515|  23.5k|   BER_Object obj = get_next_object();
  516|  23.5k|   obj.assert_is_a(type_tag, class_tag | ASN1_Class::Constructed);
  517|  23.5k|   BER_Decoder child(std::move(obj), this);
  518|  23.5k|   return child;
  519|  23.5k|}
_ZN5Botan11BER_Decoder8end_consEv:
  524|  21.7k|BER_Decoder& BER_Decoder::end_cons() {
  525|  21.7k|   if(m_parent == nullptr) {
  ------------------
  |  Branch (525:7): [True: 0, False: 21.7k]
  ------------------
  526|      0|      throw Invalid_State("BER_Decoder::end_cons called with null parent");
  527|      0|   }
  528|  21.7k|   if(!m_source->end_of_data() || m_pushed.is_set()) {
  ------------------
  |  Branch (528:7): [True: 34, False: 21.7k]
  |  Branch (528:35): [True: 0, False: 21.7k]
  ------------------
  529|     34|      throw Decoding_Error("BER_Decoder::end_cons called with data left");
  530|     34|   }
  531|  21.7k|   return (*m_parent);
  532|  21.7k|}
_ZN5Botan11BER_DecoderC2EONS_10BER_ObjectEPS0_:
  535|  23.0k|      m_limits(parent != nullptr ? parent->limits() : BER_Decoder::Limits::BER()), m_parent(parent) {
  ------------------
  |  Branch (535:16): [True: 23.0k, False: 0]
  ------------------
  536|  23.0k|   m_data_src = std::make_unique<DataSource_BERObject>(std::move(obj));
  537|  23.0k|   m_source = m_data_src.get();
  538|  23.0k|}
_ZN5Botan11BER_DecoderC2ERNS_10DataSourceENS0_6LimitsE:
  543|  4.36k|BER_Decoder::BER_Decoder(DataSource& src, Limits limits) : m_limits(limits), m_source(&src) {}
_ZN5Botan11BER_DecoderC2ENSt3__14spanIKhLm18446744073709551615EEENS0_6LimitsE:
  548|  10.8k|BER_Decoder::BER_Decoder(std::span<const uint8_t> buf, Limits limits) : m_limits(limits) {
  549|  10.8k|   m_data_src = std::make_unique<DataSource_Memory>(buf);
  550|  10.8k|   m_source = m_data_src.get();
  551|  10.8k|}
_ZN5Botan11BER_Decoder6decodeERNS_11ASN1_ObjectENS_9ASN1_TypeENS_10ASN1_ClassE:
  560|  26.3k|BER_Decoder& BER_Decoder::decode(ASN1_Object& obj, ASN1_Type /*unused*/, ASN1_Class /*unused*/) {
  561|  26.3k|   obj.decode_from(*this);
  562|  26.3k|   return (*this);
  563|  26.3k|}
_ZN5Botan11BER_Decoder6decodeERmNS_9ASN1_TypeENS_10ASN1_ClassE:
  610|     26|BER_Decoder& BER_Decoder::decode(size_t& out, ASN1_Type type_tag, ASN1_Class class_tag) {
  611|     26|   BigInt integer;
  612|     26|   decode(integer, type_tag, class_tag);
  613|       |
  614|     26|   if(integer.signum() < 0) {
  ------------------
  |  Branch (614:7): [True: 1, False: 25]
  ------------------
  615|      1|      throw BER_Decoding_Error("Decoded small integer value was negative");
  616|      1|   }
  617|       |
  618|     25|   if(integer.bits() > 32) {
  ------------------
  |  Branch (618:7): [True: 18, False: 7]
  ------------------
  619|     18|      throw BER_Decoding_Error("Decoded integer value larger than expected");
  620|     18|   }
  621|       |
  622|      7|   out = 0;
  623|     31|   for(size_t i = 0; i != 4; ++i) {
  ------------------
  |  Branch (623:22): [True: 24, False: 7]
  ------------------
  624|     24|      out = (out << 8) | integer.byte_at(3 - i);
  625|     24|   }
  626|       |
  627|      7|   return (*this);
  628|     25|}
_ZN5Botan11BER_Decoder6decodeERNS_6BigIntENS_9ASN1_TypeENS_10ASN1_ClassE:
  660|  2.26k|BER_Decoder& BER_Decoder::decode(BigInt& out, ASN1_Type type_tag, ASN1_Class class_tag) {
  661|  2.26k|   const BER_Object obj = get_next_object();
  662|  2.26k|   obj.assert_is_a(type_tag, class_tag);
  663|       |
  664|       |   // DER requires minimal INTEGER encoding (X.690 section 8.3.2)
  665|  2.26k|   if(m_limits.require_der_encoding()) {
  ------------------
  |  Branch (665:7): [True: 2.19k, False: 62]
  ------------------
  666|  2.19k|      if(obj.length() == 0) {
  ------------------
  |  Branch (666:10): [True: 1, False: 2.19k]
  ------------------
  667|      1|         throw BER_Decoding_Error("Detected empty INTEGER encoding in DER structure");
  668|      1|      }
  669|  2.19k|      if(obj.length() > 1) {
  ------------------
  |  Branch (669:10): [True: 211, False: 1.98k]
  ------------------
  670|    211|         if(obj.bits()[0] == 0x00 && (obj.bits()[1] & 0x80) == 0) {
  ------------------
  |  Branch (670:13): [True: 16, False: 195]
  |  Branch (670:38): [True: 2, False: 14]
  ------------------
  671|      2|            throw BER_Decoding_Error("Detected non-minimal INTEGER encoding in DER structure");
  672|      2|         }
  673|    209|         if(obj.bits()[0] == 0xFF && (obj.bits()[1] & 0x80) != 0) {
  ------------------
  |  Branch (673:13): [True: 29, False: 180]
  |  Branch (673:38): [True: 9, False: 20]
  ------------------
  674|      9|            throw BER_Decoding_Error("Detected non-minimal INTEGER encoding in DER structure");
  675|      9|         }
  676|    209|      }
  677|  2.19k|   }
  678|       |
  679|  2.24k|   if(obj.length() == 0) {
  ------------------
  |  Branch (679:7): [True: 0, False: 2.24k]
  ------------------
  680|      0|      out.clear();
  681|  2.24k|   } else {
  682|  2.24k|      const uint8_t first = obj.bits()[0];
  683|  2.24k|      const bool negative = (first & 0x80) == 0x80;
  684|       |
  685|  2.24k|      if(negative) {
  ------------------
  |  Branch (685:10): [True: 392, False: 1.85k]
  ------------------
  686|    392|         secure_vector<uint8_t> vec(obj.bits(), obj.bits() + obj.length());
  687|    586|         for(size_t i = obj.length(); i > 0; --i) {
  ------------------
  |  Branch (687:39): [True: 586, False: 0]
  ------------------
  688|    586|            const bool gt0 = (vec[i - 1] > 0);
  689|    586|            vec[i - 1] -= 1;
  690|    586|            if(gt0) {
  ------------------
  |  Branch (690:16): [True: 392, False: 194]
  ------------------
  691|    392|               break;
  692|    392|            }
  693|    586|         }
  694|  2.37k|         for(size_t i = 0; i != obj.length(); ++i) {
  ------------------
  |  Branch (694:28): [True: 1.98k, False: 392]
  ------------------
  695|  1.98k|            vec[i] = ~vec[i];
  696|  1.98k|         }
  697|    392|         out._assign_from_bytes(vec);
  698|    392|         out.flip_sign();
  699|  1.85k|      } else {
  700|  1.85k|         out._assign_from_bytes(obj.data());
  701|  1.85k|      }
  702|  2.24k|   }
  703|       |
  704|  2.24k|   return (*this);
  705|  2.26k|}
_ZN5Botan11BER_Decoder6decodeERNSt3__16vectorIhNS1_9allocatorIhEEEENS_9ASN1_TypeES7_NS_10ASN1_ClassE:
  782|  5.79k|                                 ASN1_Class class_tag) {
  783|  5.79k|   if(real_type != ASN1_Type::OctetString && real_type != ASN1_Type::BitString) {
  ------------------
  |  Branch (783:7): [True: 5.79k, False: 0]
  |  Branch (783:46): [True: 0, False: 5.79k]
  ------------------
  784|      0|      throw BER_Bad_Tag("Bad tag for {BIT,OCTET} STRING", static_cast<uint32_t>(real_type));
  785|      0|   }
  786|       |
  787|  5.79k|   asn1_decode_binary_string(
  788|  5.79k|      buffer, get_next_object(), real_type, type_tag, class_tag, m_limits.require_der_encoding());
  789|  5.79k|   return (*this);
  790|  5.79k|}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_110decode_tagEPNS_10DataSourceERNS_9ASN1_TypeERNS_10ASN1_ClassE:
   27|  51.8k|size_t decode_tag(DataSource* ber, ASN1_Type& type_tag, ASN1_Class& class_tag) {
   28|  51.8k|   auto b = ber->read_byte();
   29|       |
   30|  51.8k|   if(!b) {
  ------------------
  |  Branch (30:7): [True: 5.47k, False: 46.4k]
  ------------------
   31|  5.47k|      type_tag = ASN1_Type::NoObject;
   32|  5.47k|      class_tag = ASN1_Class::NoObject;
   33|  5.47k|      return 0;
   34|  5.47k|   }
   35|       |
   36|  46.4k|   if((*b & 0x1F) != 0x1F) {
  ------------------
  |  Branch (36:7): [True: 46.1k, False: 311]
  ------------------
   37|  46.1k|      type_tag = ASN1_Type(*b & 0x1F);
   38|  46.1k|      class_tag = ASN1_Class(*b & 0xE0);
   39|  46.1k|      return 1;
   40|  46.1k|   }
   41|       |
   42|    311|   size_t tag_bytes = 1;
   43|    311|   class_tag = ASN1_Class(*b & 0xE0);
   44|       |
   45|    311|   uint32_t tag_buf = 0;
   46|  1.10k|   while(true) {
  ------------------
  |  Branch (46:10): [True: 1.10k, Folded]
  ------------------
   47|  1.10k|      b = ber->read_byte();
   48|  1.10k|      if(!b) {
  ------------------
  |  Branch (48:10): [True: 14, False: 1.09k]
  ------------------
   49|     14|         throw BER_Decoding_Error("Long-form tag truncated");
   50|     14|      }
   51|  1.09k|      if((tag_buf >> 24) != 0) {
  ------------------
  |  Branch (51:10): [True: 10, False: 1.08k]
  ------------------
   52|     10|         throw BER_Decoding_Error("Long-form tag overflowed 32 bits");
   53|     10|      }
   54|       |      // This is required even by BER (see X.690 section 8.1.2.4.2 sentence c).
   55|       |      // Bits 7-1 of the first subsequent octet must not be all zero; this rules
   56|       |      // out both 0x80 (continuation with no data) and 0x00 (a long-form encoding
   57|       |      // of tag value 0, which collides with the EOC marker).
   58|  1.08k|      if(tag_bytes == 1 && (*b & 0x7F) == 0) {
  ------------------
  |  Branch (58:10): [True: 309, False: 775]
  |  Branch (58:28): [True: 2, False: 307]
  ------------------
   59|      2|         throw BER_Decoding_Error("Long form tag with leading zero");
   60|      2|      }
   61|  1.08k|      ++tag_bytes;
   62|  1.08k|      tag_buf = (tag_buf << 7) | (*b & 0x7F);
   63|  1.08k|      if((*b & 0x80) == 0) {
  ------------------
  |  Branch (63:10): [True: 285, False: 797]
  ------------------
   64|    285|         break;
   65|    285|      }
   66|  1.08k|   }
   67|       |   // Per X.690 8.1.2.2, tag values 0-30 shall be encoded in the short form.
   68|       |   // Long-form encoding is reserved for tag values >= 31 (X.690 8.1.2.3).
   69|       |   // This is unconditional and applies to BER as well as DER.
   70|    285|   if(tag_buf <= 30) {
  ------------------
  |  Branch (70:7): [True: 6, False: 279]
  ------------------
   71|      6|      throw BER_Decoding_Error("Long-form tag encoding used for small tag value");
   72|      6|   }
   73|       |
   74|    279|   if(tag_buf == static_cast<uint32_t>(ASN1_Type::NoObject)) {
  ------------------
  |  Branch (74:7): [True: 1, False: 278]
  ------------------
   75|      1|      throw BER_Decoding_Error("Tag value collides with internal sentinel");
   76|      1|   }
   77|       |
   78|       |   // NOLINTNEXTLINE(clang-analyzer-optin.core.EnumCastOutOfRange)
   79|    278|   type_tag = ASN1_Type(tag_buf);
   80|    278|   return tag_bytes;
   81|    279|}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_113decode_lengthEPNS_10DataSourceEmbb:
  126|  46.3k|BerDecodedLength decode_length(DataSource* ber, size_t allow_indef, bool der_mode, bool constructed) {
  127|  46.3k|   uint8_t b = 0;
  128|  46.3k|   if(ber->read_byte(b) == 0) {
  ------------------
  |  Branch (128:7): [True: 57, False: 46.3k]
  ------------------
  129|     57|      throw BER_Decoding_Error("Length field not found");
  130|     57|   }
  131|  46.3k|   if((b & 0x80) == 0) {
  ------------------
  |  Branch (131:7): [True: 46.1k, False: 177]
  ------------------
  132|  46.1k|      return BerDecodedLength(b, 1);
  133|  46.1k|   }
  134|       |
  135|    177|   const size_t num_length_bytes = (b & 0x7F);
  136|    177|   if(num_length_bytes > 4) {
  ------------------
  |  Branch (136:7): [True: 32, False: 145]
  ------------------
  137|     32|      throw BER_Decoding_Error("Length field is too large");
  138|     32|   }
  139|       |
  140|    145|   const size_t field_size = 1 + num_length_bytes;
  141|       |
  142|    145|   if(num_length_bytes == 0) {
  ------------------
  |  Branch (142:7): [True: 19, False: 126]
  ------------------
  143|     19|      if(der_mode) {
  ------------------
  |  Branch (143:10): [True: 19, False: 0]
  ------------------
  144|     19|         throw BER_Decoding_Error("Detected indefinite-length encoding in DER structure");
  145|     19|      } else if(!constructed) {
  ------------------
  |  Branch (145:17): [True: 0, False: 0]
  ------------------
  146|       |         // Indefinite length is only valid for constructed types (X.690 8.1.3.2)
  147|      0|         throw BER_Decoding_Error("Indefinite-length encoding used with non-constructed type");
  148|      0|      } else if(allow_indef == 0) {
  ------------------
  |  Branch (148:17): [True: 0, False: 0]
  ------------------
  149|      0|         throw BER_Decoding_Error("Nested EOC markers too deep, rejecting to avoid stack exhaustion");
  150|      0|      } else {
  151|       |         // find_eoc returns bytes up to and including the EOC marker.
  152|       |         // Return the content length; the caller consumes the EOC separately.
  153|      0|         const size_t eoc_len = find_eoc(ber, /*base_offset=*/0, allow_indef - 1);
  154|      0|         if(eoc_len < 2) {
  ------------------
  |  Branch (154:13): [True: 0, False: 0]
  ------------------
  155|      0|            throw BER_Decoding_Error("Invalid EOC encoding");
  156|      0|         }
  157|      0|         return BerDecodedLength::indefinite(eoc_len - 2, field_size);
  158|      0|      }
  159|     19|   }
  160|       |
  161|    126|   size_t length = 0;
  162|       |
  163|    498|   for(size_t i = 0; i != num_length_bytes; ++i) {
  ------------------
  |  Branch (163:22): [True: 378, False: 120]
  ------------------
  164|    378|      if(ber->read_byte(b) == 0) {
  ------------------
  |  Branch (164:10): [True: 6, False: 372]
  ------------------
  165|      6|         throw BER_Decoding_Error("Corrupted length field");
  166|      6|      }
  167|       |      // Can't overflow since we already checked that num_length_bytes <= 4
  168|    372|      length = (length << 8) | b;
  169|    372|   }
  170|       |
  171|       |   // DER requires shortest possible length encoding
  172|    120|   if(der_mode) {
  ------------------
  |  Branch (172:7): [True: 120, False: 0]
  ------------------
  173|    120|      if(length < 128) {
  ------------------
  |  Branch (173:10): [True: 7, False: 113]
  ------------------
  174|      7|         throw BER_Decoding_Error("Detected non-canonical length encoding in DER structure");
  175|      7|      }
  176|    113|      if(num_length_bytes > 1 && length < (size_t(1) << ((num_length_bytes - 1) * 8))) {
  ------------------
  |  Branch (176:10): [True: 102, False: 11]
  |  Branch (176:34): [True: 3, False: 99]
  ------------------
  177|      3|         throw BER_Decoding_Error("Detected non-canonical length encoding in DER structure");
  178|      3|      }
  179|    113|   }
  180|       |
  181|    110|   return BerDecodedLength(length, field_size);
  182|    120|}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_116BerDecodedLengthC2Emm:
   99|  46.2k|            BerDecodedLength(content_length, field_length, false) {}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_116BerDecodedLengthC2Emmb:
  116|  46.2k|            m_content_length(content_length), m_field_length(field_length), m_indefinite(indefinite) {}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_114is_constructedENS_10ASN1_ClassE:
   20|  52.1k|bool is_constructed(ASN1_Class class_tag) {
   21|  52.1k|   return (static_cast<uint32_t>(class_tag) & static_cast<uint32_t>(ASN1_Class::Constructed)) != 0;
   22|  52.1k|}
ber_dec.cpp:_ZNK5Botan12_GLOBAL__N_116BerDecodedLength14content_lengthEv:
  105|   138k|      size_t content_length() const { return m_content_length; }
ber_dec.cpp:_ZNK5Botan12_GLOBAL__N_116BerDecodedLength17indefinite_lengthEv:
  112|  46.0k|      bool indefinite_length() const { return m_indefinite; }
ber_dec.cpp:_ZNK5Botan12_GLOBAL__N_116BerDecodedLength12total_lengthEv:
  108|  46.2k|      size_t total_length() const { return m_indefinite ? m_content_length + 2 : m_content_length; }
  ------------------
  |  Branch (108:44): [True: 0, False: 46.2k]
  ------------------
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_120DataSource_BERObjectC2EONS_10BER_ObjectE:
  357|  23.0k|      explicit DataSource_BERObject(BER_Object&& obj) : m_obj(std::move(obj)) {}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_120DataSource_BERObject4readEPhm:
  327|   267k|      size_t read(uint8_t out[], size_t length) override {
  328|   267k|         BOTAN_ASSERT_NOMSG(m_offset <= m_obj.length());
  ------------------
  |  |   77|   267k|   do {                                                                     \
  |  |   78|   267k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|   267k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 267k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|   267k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 267k]
  |  |  ------------------
  ------------------
  329|   267k|         const size_t got = std::min<size_t>(m_obj.length() - m_offset, length);
  330|   267k|         copy_mem(out, m_obj.bits() + m_offset, got);
  331|   267k|         m_offset += got;
  332|   267k|         return got;
  333|   267k|      }
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_120DataSource_BERObject15check_availableEm:
  348|  24.1k|      bool check_available(size_t n) override {
  349|  24.1k|         BOTAN_ASSERT_NOMSG(m_offset <= m_obj.length());
  ------------------
  |  |   77|  24.1k|   do {                                                                     \
  |  |   78|  24.1k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  24.1k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 24.1k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  24.1k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 24.1k]
  |  |  ------------------
  ------------------
  350|  24.1k|         return (n <= (m_obj.length() - m_offset));
  351|  24.1k|      }
ber_dec.cpp:_ZNK5Botan12_GLOBAL__N_120DataSource_BERObject11end_of_dataEv:
  353|  22.7k|      bool end_of_data() const override { return get_bytes_read() == m_obj.length(); }
ber_dec.cpp:_ZNK5Botan12_GLOBAL__N_120DataSource_BERObject14get_bytes_readEv:
  355|  22.7k|      size_t get_bytes_read() const override { return m_offset; }
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_114is_constructedERKNS_10BER_ObjectE:
  709|  5.75k|bool is_constructed(const BER_Object& obj) {
  710|  5.75k|   return is_constructed(obj.class_tag());
  711|  5.75k|}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_125asn1_decode_binary_stringINSt3__19allocatorIhEEEEvRNS2_6vectorIhT_EERKNS_10BER_ObjectENS_9ASN1_TypeESC_NS_10ASN1_ClassEb:
  719|  5.76k|                               bool require_der) {
  720|  5.76k|   obj.assert_is_a(type_tag, class_tag);
  721|       |
  722|       |   // DER requires BIT STRING and OCTET STRING to use primitive encoding
  723|  5.76k|   if(require_der && is_constructed(obj)) {
  ------------------
  |  Branch (723:7): [True: 5.75k, False: 13]
  |  Branch (723:22): [True: 0, False: 5.75k]
  ------------------
  724|      0|      throw BER_Decoding_Error("Detected constructed string encoding in DER structure");
  725|      0|   }
  726|       |
  727|  5.76k|   if(real_type == ASN1_Type::OctetString) {
  ------------------
  |  Branch (727:7): [True: 0, False: 5.76k]
  ------------------
  728|      0|      buffer.assign(obj.bits(), obj.bits() + obj.length());
  729|  5.76k|   } else {
  730|  5.76k|      if(obj.length() == 0) {
  ------------------
  |  Branch (730:10): [True: 1, False: 5.76k]
  ------------------
  731|      1|         throw BER_Decoding_Error("Invalid BIT STRING");
  732|      1|      }
  733|       |
  734|  5.76k|      const uint8_t unused_bits = obj.bits()[0];
  735|       |
  736|  5.76k|      if(unused_bits >= 8) {
  ------------------
  |  Branch (736:10): [True: 7, False: 5.75k]
  ------------------
  737|      7|         throw BER_Decoding_Error("Bad number of unused bits in BIT STRING");
  738|      7|      }
  739|       |
  740|       |      // Empty BIT STRING with unused bits > 0 ...
  741|  5.75k|      if(unused_bits > 0 && obj.length() < 2) {
  ------------------
  |  Branch (741:10): [True: 1.27k, False: 4.48k]
  |  Branch (741:29): [True: 1, False: 1.27k]
  ------------------
  742|      1|         throw BER_Decoding_Error("Invalid BIT STRING");
  743|      1|      }
  744|       |
  745|       |      // DER requires unused bits in BIT STRING to be zero (X.690 section 11.2.2)
  746|  5.75k|      if(require_der && unused_bits > 0) {
  ------------------
  |  Branch (746:10): [True: 5.74k, False: 13]
  |  Branch (746:25): [True: 1.27k, False: 4.47k]
  ------------------
  747|  1.27k|         const uint8_t last_byte = obj.bits()[obj.length() - 1];
  748|  1.27k|         if((last_byte & ((1 << unused_bits) - 1)) != 0) {
  ------------------
  |  Branch (748:13): [True: 5, False: 1.26k]
  ------------------
  749|      5|            throw BER_Decoding_Error("Detected non-zero padding bits in BIT STRING in DER structure");
  750|      5|         }
  751|  1.27k|      }
  752|       |
  753|  5.75k|      buffer.resize(obj.length() - 1);
  754|       |
  755|  5.75k|      if(obj.length() > 1) {
  ------------------
  |  Branch (755:10): [True: 5.60k, False: 148]
  ------------------
  756|  5.60k|         copy_mem(buffer.data(), obj.bits() + 1, obj.length() - 1);
  757|  5.60k|      }
  758|  5.75k|   }
  759|  5.76k|}

_ZN5Botan11DER_EncoderC2ERNSt3__16vectorIhNS1_9allocatorIhEEEE:
   72|  6.91k|DER_Encoder::DER_Encoder(std::vector<uint8_t>& vec) {
   73|  6.91k|   m_append_output = [&vec](const uint8_t b[], size_t l) { vec.insert(vec.end(), b, b + l); };
   74|  6.91k|}
_ZN5Botan11DER_Encoder12DER_Sequence13push_contentsERS0_:
   79|  10.3k|void DER_Encoder::DER_Sequence::push_contents(DER_Encoder& der) {
   80|  10.3k|   const auto real_class_tag = m_class_tag | ASN1_Class::Constructed;
   81|       |
   82|  10.3k|   if(m_type_tag == ASN1_Type::Set && m_class_tag == ASN1_Class::Universal) {
  ------------------
  |  Branch (82:7): [True: 0, False: 10.3k]
  |  Branch (82:39): [True: 0, False: 0]
  ------------------
   83|      0|      std::sort(m_set_contents.begin(), m_set_contents.end());
   84|      0|      for(const auto& set_elem : m_set_contents) {
  ------------------
  |  Branch (84:32): [True: 0, False: 0]
  ------------------
   85|      0|         m_contents += set_elem;
   86|      0|      }
   87|      0|      m_set_contents.clear();
   88|      0|   }
   89|       |
   90|  10.3k|   der.add_object(m_type_tag, real_class_tag, m_contents.data(), m_contents.size());
   91|  10.3k|   m_contents.clear();
   92|  10.3k|}
_ZN5Botan11DER_Encoder12DER_Sequence9add_bytesEPKhm:
   97|  8.63k|void DER_Encoder::DER_Sequence::add_bytes(const uint8_t data[], size_t length) {
   98|  8.63k|   if(m_type_tag == ASN1_Type::Set && m_class_tag == ASN1_Class::Universal) {
  ------------------
  |  Branch (98:7): [True: 0, False: 8.63k]
  |  Branch (98:39): [True: 0, False: 0]
  ------------------
   99|      0|      m_set_contents.push_back(secure_vector<uint8_t>(data, data + length));
  100|  8.63k|   } else {
  101|  8.63k|      m_contents += std::make_pair(data, length);
  102|  8.63k|   }
  103|  8.63k|}
_ZN5Botan11DER_Encoder12DER_Sequence9add_bytesEPKhmS3_m:
  105|  6.85k|void DER_Encoder::DER_Sequence::add_bytes(const uint8_t hdr[], size_t hdr_len, const uint8_t val[], size_t val_len) {
  106|  6.85k|   if(m_type_tag == ASN1_Type::Set && m_class_tag == ASN1_Class::Universal) {
  ------------------
  |  Branch (106:7): [True: 0, False: 6.85k]
  |  Branch (106:39): [True: 0, False: 0]
  ------------------
  107|      0|      secure_vector<uint8_t> m;
  108|      0|      m.reserve(hdr_len + val_len);
  109|      0|      m += std::make_pair(hdr, hdr_len);
  110|      0|      m += std::make_pair(val, val_len);
  111|      0|      m_set_contents.push_back(std::move(m));
  112|  6.85k|   } else {
  113|  6.85k|      m_contents += std::make_pair(hdr, hdr_len);
  114|  6.85k|      m_contents += std::make_pair(val, val_len);
  115|  6.85k|   }
  116|  6.85k|}
_ZN5Botan11DER_Encoder12DER_SequenceC2ENS_9ASN1_TypeENS_10ASN1_ClassE:
  129|  10.3k|      m_type_tag(type_tag), m_class_tag(class_tag) {}
_ZN5Botan11DER_Encoder10start_consENS_9ASN1_TypeENS_10ASN1_ClassE:
  165|  10.3k|DER_Encoder& DER_Encoder::start_cons(ASN1_Type type_tag, ASN1_Class class_tag) {
  166|  10.3k|   m_subsequences.push_back(DER_Sequence(type_tag, class_tag));
  167|  10.3k|   return (*this);
  168|  10.3k|}
_ZN5Botan11DER_Encoder8end_consEv:
  173|  10.3k|DER_Encoder& DER_Encoder::end_cons() {
  174|  10.3k|   if(m_subsequences.empty()) {
  ------------------
  |  Branch (174:7): [True: 0, False: 10.3k]
  ------------------
  175|      0|      throw Invalid_State("DER_Encoder::end_cons: No such sequence");
  176|      0|   }
  177|       |
  178|  10.3k|   DER_Sequence last_seq = std::move(m_subsequences[m_subsequences.size() - 1]);
  179|  10.3k|   m_subsequences.pop_back();
  180|  10.3k|   last_seq.push_contents(*this);
  181|       |
  182|  10.3k|   return (*this);
  183|  10.3k|}
_ZN5Botan11DER_Encoder9raw_bytesEPKhm:
  202|  8.63k|DER_Encoder& DER_Encoder::raw_bytes(const uint8_t bytes[], size_t length) {
  203|  8.63k|   if(!m_subsequences.empty()) {
  ------------------
  |  Branch (203:7): [True: 8.63k, False: 0]
  ------------------
  204|  8.63k|      m_subsequences[m_subsequences.size() - 1].add_bytes(bytes, length);
  205|  8.63k|   } else if(m_append_output) {
  ------------------
  |  Branch (205:14): [True: 0, False: 0]
  ------------------
  206|      0|      m_append_output(bytes, length);
  207|      0|   } else {
  208|      0|      m_default_outbuf += std::make_pair(bytes, length);
  209|      0|   }
  210|       |
  211|  8.63k|   return (*this);
  212|  8.63k|}
_ZN5Botan11DER_Encoder10add_objectENS_9ASN1_TypeENS_10ASN1_ClassEPKhm:
  244|  13.7k|DER_Encoder& DER_Encoder::add_object(ASN1_Type type_tag, ASN1_Class class_tag, const uint8_t rep[], size_t length) {
  245|  13.7k|   std::vector<uint8_t> hdr;
  246|  13.7k|   encode_tag(hdr, type_tag, class_tag);
  247|  13.7k|   encode_length(hdr, length);
  248|       |
  249|  13.7k|   if(!m_subsequences.empty()) {
  ------------------
  |  Branch (249:7): [True: 6.85k, False: 6.91k]
  ------------------
  250|  6.85k|      m_subsequences[m_subsequences.size() - 1].add_bytes(hdr.data(), hdr.size(), rep, length);
  251|  6.91k|   } else if(m_append_output) {
  ------------------
  |  Branch (251:14): [True: 6.91k, False: 0]
  ------------------
  252|  6.91k|      m_append_output(hdr.data(), hdr.size());
  253|  6.91k|      m_append_output(rep, length);
  254|  6.91k|   } else {
  255|      0|      m_default_outbuf += hdr;
  256|      0|      m_default_outbuf += std::make_pair(rep, length);
  257|      0|   }
  258|       |
  259|  13.7k|   return (*this);
  260|  13.7k|}
_ZN5Botan11DER_Encoder6encodeEPKhmNS_9ASN1_TypeE:
  293|  1.71k|DER_Encoder& DER_Encoder::encode(const uint8_t bytes[], size_t length, ASN1_Type real_type) {
  294|  1.71k|   return encode(bytes, length, real_type, real_type, ASN1_Class::Universal);
  295|  1.71k|}
_ZN5Botan11DER_Encoder6encodeEPKhmNS_9ASN1_TypeES3_NS_10ASN1_ClassE:
  350|  1.71k|   const uint8_t bytes[], size_t length, ASN1_Type real_type, ASN1_Type type_tag, ASN1_Class class_tag) {
  351|  1.71k|   if(real_type != ASN1_Type::OctetString && real_type != ASN1_Type::BitString) {
  ------------------
  |  Branch (351:7): [True: 1.71k, False: 0]
  |  Branch (351:46): [True: 0, False: 1.71k]
  ------------------
  352|      0|      throw Invalid_Argument("DER_Encoder: Invalid tag for byte/bit string");
  353|      0|   }
  354|       |
  355|  1.71k|   if(real_type == ASN1_Type::BitString) {
  ------------------
  |  Branch (355:7): [True: 1.71k, False: 0]
  ------------------
  356|  1.71k|      secure_vector<uint8_t> encoded;
  357|  1.71k|      encoded.push_back(0);
  358|  1.71k|      encoded += std::make_pair(bytes, length);
  359|  1.71k|      return add_object(type_tag, class_tag, encoded);
  360|  1.71k|   } else {
  361|      0|      return add_object(type_tag, class_tag, bytes, length);
  362|      0|   }
  363|  1.71k|}
_ZN5Botan11DER_Encoder6encodeERKNS_11ASN1_ObjectE:
  365|  3.42k|DER_Encoder& DER_Encoder::encode(const ASN1_Object& obj) {
  366|  3.42k|   obj.encode_into(*this);
  367|  3.42k|   return (*this);
  368|  3.42k|}
der_enc.cpp:_ZN5Botan12_GLOBAL__N_110encode_tagERNSt3__16vectorIhNS1_9allocatorIhEEEENS_9ASN1_TypeENS_10ASN1_ClassE:
   25|  13.7k|void encode_tag(std::vector<uint8_t>& encoded_tag, ASN1_Type type_tag_e, ASN1_Class class_tag_e) {
   26|  13.7k|   const uint32_t type_tag = static_cast<uint32_t>(type_tag_e);
   27|  13.7k|   const uint32_t class_tag = static_cast<uint32_t>(class_tag_e);
   28|       |
   29|  13.7k|   if((class_tag | 0xE0) != 0xE0) {
  ------------------
  |  Branch (29:7): [True: 0, False: 13.7k]
  ------------------
   30|      0|      throw Encoding_Error(fmt("DER_Encoder: Invalid class tag {}", std::to_string(class_tag)));
   31|      0|   }
   32|       |
   33|  13.7k|   if(type_tag <= 30) {
  ------------------
  |  Branch (33:7): [True: 13.7k, False: 0]
  ------------------
   34|  13.7k|      encoded_tag.push_back(static_cast<uint8_t>(type_tag | class_tag));
   35|  13.7k|   } else {
   36|      0|      size_t blocks = high_bit(static_cast<uint32_t>(type_tag)) + 6;
   37|      0|      blocks = (blocks - (blocks % 7)) / 7;
   38|       |
   39|      0|      BOTAN_ASSERT_NOMSG(blocks > 0);
  ------------------
  |  |   77|      0|   do {                                                                     \
  |  |   78|      0|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|      0|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|      0|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
   40|       |
   41|      0|      encoded_tag.push_back(static_cast<uint8_t>(class_tag | 0x1F));
   42|      0|      for(size_t i = 0; i != blocks - 1; ++i) {
  ------------------
  |  Branch (42:25): [True: 0, False: 0]
  ------------------
   43|      0|         encoded_tag.push_back(0x80 | ((type_tag >> 7 * (blocks - i - 1)) & 0x7F));
   44|      0|      }
   45|      0|      encoded_tag.push_back(type_tag & 0x7F);
   46|      0|   }
   47|  13.7k|}
der_enc.cpp:_ZN5Botan12_GLOBAL__N_113encode_lengthERNSt3__16vectorIhNS1_9allocatorIhEEEEm:
   52|  13.7k|void encode_length(std::vector<uint8_t>& encoded_length, size_t length) {
   53|  13.7k|   if(length <= 127) {
  ------------------
  |  Branch (53:7): [True: 13.7k, False: 0]
  ------------------
   54|  13.7k|      encoded_length.push_back(static_cast<uint8_t>(length));
   55|  13.7k|   } else {
   56|      0|      const size_t bytes_needed = significant_bytes(length);
   57|       |
   58|      0|      encoded_length.push_back(static_cast<uint8_t>(0x80 | bytes_needed));
   59|       |
   60|      0|      for(size_t i = sizeof(length) - bytes_needed; i < sizeof(length); ++i) {
  ------------------
  |  Branch (60:53): [True: 0, False: 0]
  ------------------
   61|      0|         encoded_length.push_back(get_byte_var(i, length));
   62|      0|      }
   63|      0|   }
   64|  13.7k|}
der_enc.cpp:_ZZN5Botan11DER_EncoderC1ERNSt3__16vectorIhNS1_9allocatorIhEEEEENK3$_0clEPKhm:
   73|  13.8k|   m_append_output = [&vec](const uint8_t b[], size_t l) { vec.insert(vec.end(), b, b + l); };

_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|  3.42k|OID_Map& OID_Map::global_registry() {
   17|  3.42k|   static OID_Map g_map;
   18|  3.42k|   return g_map;
   19|  3.42k|}
_ZN5Botan7OID_Map7oid2strERKNS_3OIDE:
   69|  1.71k|std::string OID_Map::oid2str(const OID& oid) {
   70|  1.71k|   if(auto name = lookup_static_oid(oid)) {
  ------------------
  |  Branch (70:12): [True: 38, False: 1.67k]
  ------------------
   71|     38|      return std::string(*name);
   72|     38|   }
   73|       |
   74|  1.67k|   const lock_guard_type<mutex_type> lock(m_mutex);
   75|       |
   76|  1.67k|   auto i = m_oid2str.find(oid);
   77|  1.67k|   if(i != m_oid2str.end()) {
  ------------------
  |  Branch (77:7): [True: 0, False: 1.67k]
  ------------------
   78|      0|      return i->second;
   79|      0|   }
   80|       |
   81|  1.67k|   return "";
   82|  1.67k|}
_ZN5Botan7OID_Map7str2oidENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   84|  1.71k|OID OID_Map::str2oid(std::string_view str) {
   85|  1.71k|   if(auto oid = lookup_static_oid_name(str)) {
  ------------------
  |  Branch (85:12): [True: 1.71k, False: 0]
  ------------------
   86|  1.71k|      return std::move(*oid);
   87|  1.71k|   }
   88|       |
   89|      0|   const lock_guard_type<mutex_type> lock(m_mutex);
   90|      0|   auto i = m_str2oid.find(std::string(str));
   91|      0|   if(i != m_str2oid.end()) {
  ------------------
  |  Branch (91:7): [True: 0, False: 0]
  ------------------
   92|      0|      return i->second;
   93|      0|   }
   94|       |
   95|      0|   return OID();
   96|      0|}

_ZN5Botan7OID_Map17lookup_static_oidERKNS_3OIDE:
   48|  1.71k|std::optional<std::string_view> OID_Map::lookup_static_oid(const OID& oid) {
   49|  1.71k|   const uint32_t hc = static_cast<uint32_t>(oid.hash_code() % 858701);
   50|       |
   51|  1.71k|   switch(hc) {
   52|      1|      case 0x01506:
  ------------------
  |  Branch (52:7): [True: 1, False: 1.71k]
  ------------------
   53|      1|         return if_match(oid, {1, 2, 840, 10045, 4, 3, 1}, "ECDSA/SHA-224");
   54|      1|      case 0x01507:
  ------------------
  |  Branch (54:7): [True: 1, False: 1.71k]
  ------------------
   55|      1|         return if_match(oid, {1, 2, 840, 10045, 4, 3, 2}, "ECDSA/SHA-256");
   56|      1|      case 0x01508:
  ------------------
  |  Branch (56:7): [True: 1, False: 1.71k]
  ------------------
   57|      1|         return if_match(oid, {1, 2, 840, 10045, 4, 3, 3}, "ECDSA/SHA-384");
   58|      0|      case 0x01509:
  ------------------
  |  Branch (58:7): [True: 0, False: 1.71k]
  ------------------
   59|      0|         return if_match(oid, {1, 2, 840, 10045, 4, 3, 4}, "ECDSA/SHA-512");
   60|      1|      case 0x04C1E:
  ------------------
  |  Branch (60:7): [True: 1, False: 1.71k]
  ------------------
   61|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 3029, 1, 2, 1}, "ElGamal");
   62|      1|      case 0x04E61:
  ------------------
  |  Branch (62:7): [True: 1, False: 1.71k]
  ------------------
   63|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 3029, 1, 5, 1}, "OpenPGP.Curve25519");
   64|      1|      case 0x0779B:
  ------------------
  |  Branch (64:7): [True: 1, False: 1.71k]
  ------------------
   65|      1|         return if_match(oid, {1, 2, 840, 113549, 2, 5}, "MD5");
   66|      1|      case 0x0779D:
  ------------------
  |  Branch (66:7): [True: 1, False: 1.71k]
  ------------------
   67|      1|         return if_match(oid, {1, 2, 840, 113549, 2, 7}, "HMAC(SHA-1)");
   68|      1|      case 0x0779E:
  ------------------
  |  Branch (68:7): [True: 1, False: 1.71k]
  ------------------
   69|      1|         return if_match(oid, {1, 2, 840, 113549, 2, 8}, "HMAC(SHA-224)");
   70|      1|      case 0x0779F:
  ------------------
  |  Branch (70:7): [True: 1, False: 1.71k]
  ------------------
   71|      1|         return if_match(oid, {1, 2, 840, 113549, 2, 9}, "HMAC(SHA-256)");
   72|      1|      case 0x077A0:
  ------------------
  |  Branch (72:7): [True: 1, False: 1.71k]
  ------------------
   73|      1|         return if_match(oid, {1, 2, 840, 113549, 2, 10}, "HMAC(SHA-384)");
   74|      1|      case 0x077A1:
  ------------------
  |  Branch (74:7): [True: 1, False: 1.71k]
  ------------------
   75|      1|         return if_match(oid, {1, 2, 840, 113549, 2, 11}, "HMAC(SHA-512)");
   76|      1|      case 0x077A3:
  ------------------
  |  Branch (76:7): [True: 1, False: 1.71k]
  ------------------
   77|      1|         return if_match(oid, {1, 2, 840, 113549, 2, 13}, "HMAC(SHA-512-256)");
   78|      1|      case 0x0785E:
  ------------------
  |  Branch (78:7): [True: 1, False: 1.71k]
  ------------------
   79|      1|         return if_match(oid, {1, 2, 840, 113549, 3, 7}, "TripleDES/CBC");
   80|      1|      case 0x0C904:
  ------------------
  |  Branch (80:7): [True: 1, False: 1.71k]
  ------------------
   81|      1|         return if_match(oid, {1, 0, 14888, 3, 0, 5}, "ECKCDSA");
   82|      1|      case 0x11547:
  ------------------
  |  Branch (82:7): [True: 1, False: 1.71k]
  ------------------
   83|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 12, 1, 1}, "SphincsPlus-shake-128s-r3.1");
   84|      1|      case 0x11548:
  ------------------
  |  Branch (84:7): [True: 1, False: 1.71k]
  ------------------
   85|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 12, 1, 2}, "SphincsPlus-shake-128f-r3.1");
   86|      1|      case 0x11549:
  ------------------
  |  Branch (86:7): [True: 1, False: 1.71k]
  ------------------
   87|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 12, 1, 3}, "SphincsPlus-shake-192s-r3.1");
   88|      1|      case 0x1154A:
  ------------------
  |  Branch (88:7): [True: 1, False: 1.71k]
  ------------------
   89|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 12, 1, 4}, "SphincsPlus-shake-192f-r3.1");
   90|      1|      case 0x1154B:
  ------------------
  |  Branch (90:7): [True: 1, False: 1.71k]
  ------------------
   91|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 12, 1, 5}, "SphincsPlus-shake-256s-r3.1");
   92|      1|      case 0x1154C:
  ------------------
  |  Branch (92:7): [True: 1, False: 1.71k]
  ------------------
   93|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 12, 1, 6}, "SphincsPlus-shake-256f-r3.1");
   94|      1|      case 0x11608:
  ------------------
  |  Branch (94:7): [True: 1, False: 1.71k]
  ------------------
   95|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 12, 2, 1}, "SphincsPlus-sha2-128s-r3.1");
   96|      1|      case 0x11609:
  ------------------
  |  Branch (96:7): [True: 1, False: 1.71k]
  ------------------
   97|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 12, 2, 2}, "SphincsPlus-sha2-128f-r3.1");
   98|      1|      case 0x1160A:
  ------------------
  |  Branch (98:7): [True: 1, False: 1.71k]
  ------------------
   99|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 12, 2, 3}, "SphincsPlus-sha2-192s-r3.1");
  100|      1|      case 0x1160B:
  ------------------
  |  Branch (100:7): [True: 1, False: 1.71k]
  ------------------
  101|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 12, 2, 4}, "SphincsPlus-sha2-192f-r3.1");
  102|      1|      case 0x1160C:
  ------------------
  |  Branch (102:7): [True: 1, False: 1.71k]
  ------------------
  103|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 12, 2, 5}, "SphincsPlus-sha2-256s-r3.1");
  104|      1|      case 0x1160D:
  ------------------
  |  Branch (104:7): [True: 1, False: 1.71k]
  ------------------
  105|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 12, 2, 6}, "SphincsPlus-sha2-256f-r3.1");
  106|      1|      case 0x116C9:
  ------------------
  |  Branch (106:7): [True: 1, False: 1.71k]
  ------------------
  107|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 12, 3, 1}, "SphincsPlus-haraka-128s-r3.1");
  108|      1|      case 0x116CA:
  ------------------
  |  Branch (108:7): [True: 1, False: 1.71k]
  ------------------
  109|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 12, 3, 2}, "SphincsPlus-haraka-128f-r3.1");
  110|      1|      case 0x116CB:
  ------------------
  |  Branch (110:7): [True: 1, False: 1.71k]
  ------------------
  111|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 12, 3, 3}, "SphincsPlus-haraka-192s-r3.1");
  112|      1|      case 0x116CC:
  ------------------
  |  Branch (112:7): [True: 1, False: 1.71k]
  ------------------
  113|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 12, 3, 4}, "SphincsPlus-haraka-192f-r3.1");
  114|      1|      case 0x116CD:
  ------------------
  |  Branch (114:7): [True: 1, False: 1.71k]
  ------------------
  115|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 12, 3, 5}, "SphincsPlus-haraka-256s-r3.1");
  116|      1|      case 0x116CE:
  ------------------
  |  Branch (116:7): [True: 1, False: 1.71k]
  ------------------
  117|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 12, 3, 6}, "SphincsPlus-haraka-256f-r3.1");
  118|      0|      case 0x1533B:
  ------------------
  |  Branch (118:7): [True: 0, False: 1.71k]
  ------------------
  119|      0|         return if_match(oid, {1, 2, 156, 10197, 1, 104, 2}, "SM4/CBC");
  120|      1|      case 0x15341:
  ------------------
  |  Branch (120:7): [True: 1, False: 1.71k]
  ------------------
  121|      1|         return if_match(oid, {1, 2, 156, 10197, 1, 104, 8}, "SM4/GCM");
  122|      1|      case 0x1539D:
  ------------------
  |  Branch (122:7): [True: 1, False: 1.71k]
  ------------------
  123|      1|         return if_match(oid, {1, 2, 156, 10197, 1, 104, 100}, "SM4/OCB");
  124|      1|      case 0x187D7:
  ------------------
  |  Branch (124:7): [True: 1, False: 1.71k]
  ------------------
  125|      1|         return if_match(oid, {1, 3, 14, 3, 2, 7}, "DES/CBC");
  126|      2|      case 0x187EA:
  ------------------
  |  Branch (126:7): [True: 2, False: 1.71k]
  ------------------
  127|      2|         return if_match(oid, {1, 3, 14, 3, 2, 26}, "SHA-1");
  128|      1|      case 0x19933:
  ------------------
  |  Branch (128:7): [True: 1, False: 1.71k]
  ------------------
  129|      1|         return if_match(oid, {1, 3, 132, 0, 8}, "secp160r1");
  130|      1|      case 0x19934:
  ------------------
  |  Branch (130:7): [True: 1, False: 1.71k]
  ------------------
  131|      1|         return if_match(oid, {1, 3, 132, 0, 9}, "secp160k1");
  132|      1|      case 0x19935:
  ------------------
  |  Branch (132:7): [True: 1, False: 1.71k]
  ------------------
  133|      1|         return if_match(oid, {1, 3, 132, 0, 10}, "secp256k1");
  134|      1|      case 0x19949:
  ------------------
  |  Branch (134:7): [True: 1, False: 1.71k]
  ------------------
  135|      1|         return if_match(oid, {1, 3, 132, 0, 30}, "secp160r2");
  136|      1|      case 0x1994A:
  ------------------
  |  Branch (136:7): [True: 1, False: 1.71k]
  ------------------
  137|      1|         return if_match(oid, {1, 3, 132, 0, 31}, "secp192k1");
  138|      1|      case 0x1994B:
  ------------------
  |  Branch (138:7): [True: 1, False: 1.71k]
  ------------------
  139|      1|         return if_match(oid, {1, 3, 132, 0, 32}, "secp224k1");
  140|      1|      case 0x1994C:
  ------------------
  |  Branch (140:7): [True: 1, False: 1.71k]
  ------------------
  141|      1|         return if_match(oid, {1, 3, 132, 0, 33}, "secp224r1");
  142|      1|      case 0x1994D:
  ------------------
  |  Branch (142:7): [True: 1, False: 1.71k]
  ------------------
  143|      1|         return if_match(oid, {1, 3, 132, 0, 34}, "secp384r1");
  144|      1|      case 0x1994E:
  ------------------
  |  Branch (144:7): [True: 1, False: 1.71k]
  ------------------
  145|      1|         return if_match(oid, {1, 3, 132, 0, 35}, "secp521r1");
  146|      1|      case 0x199F8:
  ------------------
  |  Branch (146:7): [True: 1, False: 1.71k]
  ------------------
  147|      1|         return if_match(oid, {1, 3, 132, 1, 12}, "ECDH");
  148|      1|      case 0x1E7BF:
  ------------------
  |  Branch (148:7): [True: 1, False: 1.71k]
  ------------------
  149|      1|         return if_match(oid, {1, 2, 156, 10197, 1, 301, 1}, "SM2");
  150|      0|      case 0x1E7C0:
  ------------------
  |  Branch (150:7): [True: 0, False: 1.71k]
  ------------------
  151|      0|         return if_match(oid, {1, 2, 156, 10197, 1, 301, 2}, "SM2_Kex");
  152|      0|      case 0x1E7C1:
  ------------------
  |  Branch (152:7): [True: 0, False: 1.71k]
  ------------------
  153|      0|         return if_match(oid, {1, 2, 156, 10197, 1, 301, 3}, "SM2_Enc");
  154|      1|      case 0x21960:
  ------------------
  |  Branch (154:7): [True: 1, False: 1.71k]
  ------------------
  155|      1|         return if_match(oid, {1, 3, 36, 3, 3, 1, 2}, "RSA/PKCS1v15(RIPEMD-160)");
  156|      1|      case 0x2198A:
  ------------------
  |  Branch (156:7): [True: 1, False: 1.71k]
  ------------------
  157|      1|         return if_match(oid, {1, 2, 840, 113533, 7, 66, 10}, "CAST-128/CBC");
  158|      1|      case 0x2198F:
  ------------------
  |  Branch (158:7): [True: 1, False: 1.71k]
  ------------------
  159|      1|         return if_match(oid, {1, 2, 840, 113533, 7, 66, 15}, "KeyWrap.CAST-128");
  160|      1|      case 0x227C0:
  ------------------
  |  Branch (160:7): [True: 1, False: 1.71k]
  ------------------
  161|      1|         return if_match(oid, {1, 3, 101, 110}, "X25519");
  162|      2|      case 0x227C1:
  ------------------
  |  Branch (162:7): [True: 2, False: 1.71k]
  ------------------
  163|      2|         return if_match(oid, {1, 3, 101, 111}, "X448");
  164|      1|      case 0x227C2:
  ------------------
  |  Branch (164:7): [True: 1, False: 1.71k]
  ------------------
  165|      1|         return if_match(oid, {1, 3, 101, 112}, "Ed25519");
  166|      2|      case 0x227C3:
  ------------------
  |  Branch (166:7): [True: 2, False: 1.71k]
  ------------------
  167|      2|         return if_match(oid, {1, 3, 101, 113}, "Ed448");
  168|      1|      case 0x27565:
  ------------------
  |  Branch (168:7): [True: 1, False: 1.71k]
  ------------------
  169|      1|         return if_match(oid, {1, 3, 6, 1, 5, 5, 7, 48, 1, 1}, "PKIX.OCSP.BasicResponse");
  170|      1|      case 0x27569:
  ------------------
  |  Branch (170:7): [True: 1, False: 1.71k]
  ------------------
  171|      1|         return if_match(oid, {1, 3, 6, 1, 5, 5, 7, 48, 1, 5}, "PKIX.OCSP.NoCheck");
  172|      1|      case 0x29F7C:
  ------------------
  |  Branch (172:7): [True: 1, False: 1.71k]
  ------------------
  173|      1|         return if_match(oid, {1, 2, 410, 200004, 1, 100, 4, 3}, "ECKCDSA/SHA-1");
  174|      1|      case 0x29F7D:
  ------------------
  |  Branch (174:7): [True: 1, False: 1.71k]
  ------------------
  175|      1|         return if_match(oid, {1, 2, 410, 200004, 1, 100, 4, 4}, "ECKCDSA/SHA-224");
  176|      1|      case 0x29F7E:
  ------------------
  |  Branch (176:7): [True: 1, False: 1.71k]
  ------------------
  177|      1|         return if_match(oid, {1, 2, 410, 200004, 1, 100, 4, 5}, "ECKCDSA/SHA-256");
  178|      2|      case 0x2AC3B:
  ------------------
  |  Branch (178:7): [True: 2, False: 1.71k]
  ------------------
  179|      2|         return if_match(oid, {2, 5, 29, 32, 0}, "X509v3.AnyPolicy");
  180|      2|      case 0x2B000:
  ------------------
  |  Branch (180:7): [True: 2, False: 1.71k]
  ------------------
  181|      2|         return if_match(oid, {2, 5, 29, 37, 0}, "X509v3.AnyExtendedKeyUsage");
  182|      1|      case 0x2B5C9:
  ------------------
  |  Branch (182:7): [True: 1, False: 1.71k]
  ------------------
  183|      1|         return if_match(oid, {1, 2, 840, 10045, 2, 1}, "ECDSA");
  184|      1|      case 0x2B74B:
  ------------------
  |  Branch (184:7): [True: 1, False: 1.71k]
  ------------------
  185|      1|         return if_match(oid, {1, 2, 840, 10045, 4, 1}, "ECDSA/SHA-1");
  186|      1|      case 0x3474A:
  ------------------
  |  Branch (186:7): [True: 1, False: 1.71k]
  ------------------
  187|      1|         return if_match(oid, {1, 2, 840, 10046, 2, 1}, "DH");
  188|      1|      case 0x38D6D:
  ------------------
  |  Branch (188:7): [True: 1, False: 1.71k]
  ------------------
  189|      1|         return if_match(oid, {1, 2, 643, 7, 1, 2, 1, 1, 1}, "gost_256A");
  190|      1|      case 0x38D6E:
  ------------------
  |  Branch (190:7): [True: 1, False: 1.71k]
  ------------------
  191|      1|         return if_match(oid, {1, 2, 643, 7, 1, 2, 1, 1, 2}, "gost_256B");
  192|      1|      case 0x38E2E:
  ------------------
  |  Branch (192:7): [True: 1, False: 1.71k]
  ------------------
  193|      1|         return if_match(oid, {1, 2, 643, 7, 1, 2, 1, 2, 1}, "gost_512A");
  194|      1|      case 0x38E2F:
  ------------------
  |  Branch (194:7): [True: 1, False: 1.71k]
  ------------------
  195|      1|         return if_match(oid, {1, 2, 643, 7, 1, 2, 1, 2, 2}, "gost_512B");
  196|      0|      case 0x38F2C:
  ------------------
  |  Branch (196:7): [True: 0, False: 1.71k]
  ------------------
  197|      0|         return if_match(oid, {1, 2, 643, 2, 2, 3}, "GOST-34.10/GOST-R-34.11-94");
  198|      1|      case 0x38F3C:
  ------------------
  |  Branch (198:7): [True: 1, False: 1.71k]
  ------------------
  199|      1|         return if_match(oid, {1, 2, 643, 2, 2, 19}, "GOST-34.10");
  200|      1|      case 0x3D7B8:
  ------------------
  |  Branch (200:7): [True: 1, False: 1.71k]
  ------------------
  201|      1|         return if_match(oid, {0, 3, 4401, 5, 3, 1, 9, 6}, "Camellia-128/GCM");
  202|      1|      case 0x3D7CC:
  ------------------
  |  Branch (202:7): [True: 1, False: 1.71k]
  ------------------
  203|      1|         return if_match(oid, {0, 3, 4401, 5, 3, 1, 9, 26}, "Camellia-192/GCM");
  204|      1|      case 0x3D7E0:
  ------------------
  |  Branch (204:7): [True: 1, False: 1.71k]
  ------------------
  205|      1|         return if_match(oid, {0, 3, 4401, 5, 3, 1, 9, 46}, "Camellia-256/GCM");
  206|      1|      case 0x3F20F:
  ------------------
  |  Branch (206:7): [True: 1, False: 1.71k]
  ------------------
  207|      1|         return if_match(oid, {1, 3, 36, 3, 2, 1}, "RIPEMD-160");
  208|      1|      case 0x4266E:
  ------------------
  |  Branch (208:7): [True: 1, False: 1.71k]
  ------------------
  209|      1|         return if_match(oid, {0, 4, 0, 127, 0, 15, 1, 1, 13, 0}, "XMSS");
  210|      1|      case 0x478C4:
  ------------------
  |  Branch (210:7): [True: 1, False: 1.71k]
  ------------------
  211|      1|         return if_match(oid, {1, 2, 410, 200004, 1, 4}, "SEED/CBC");
  212|      1|      case 0x47D98:
  ------------------
  |  Branch (212:7): [True: 1, False: 1.71k]
  ------------------
  213|      1|         return if_match(oid, {1, 2, 156, 10197, 1, 301}, "sm2p256v1");
  214|      1|      case 0x47DFC:
  ------------------
  |  Branch (214:7): [True: 1, False: 1.71k]
  ------------------
  215|      1|         return if_match(oid, {1, 2, 156, 10197, 1, 401}, "SM3");
  216|      1|      case 0x47E60:
  ------------------
  |  Branch (216:7): [True: 1, False: 1.71k]
  ------------------
  217|      1|         return if_match(oid, {1, 2, 156, 10197, 1, 501}, "SM2_Sig/SM3");
  218|      1|      case 0x47E63:
  ------------------
  |  Branch (218:7): [True: 1, False: 1.71k]
  ------------------
  219|      1|         return if_match(oid, {1, 2, 156, 10197, 1, 504}, "RSA/PKCS1v15(SM3)");
  220|      1|      case 0x52B13:
  ------------------
  |  Branch (220:7): [True: 1, False: 1.71k]
  ------------------
  221|      1|         return if_match(oid, {1, 2, 643, 3, 131, 1, 1}, "GOST.INN");
  222|      1|      case 0x635AE:
  ------------------
  |  Branch (222:7): [True: 1, False: 1.71k]
  ------------------
  223|      1|         return if_match(oid, {1, 2, 250, 1, 223, 101, 256, 1}, "frp256v1");
  224|      1|      case 0x6A784:
  ------------------
  |  Branch (224:7): [True: 1, False: 1.71k]
  ------------------
  225|      1|         return if_match(oid, {1, 2, 840, 113549, 1, 12, 10, 1, 1}, "PKCS12.KeyBag");
  226|      1|      case 0x6A785:
  ------------------
  |  Branch (226:7): [True: 1, False: 1.71k]
  ------------------
  227|      1|         return if_match(oid, {1, 2, 840, 113549, 1, 12, 10, 1, 2}, "PKCS12.PKCS8ShroudedKeyBag");
  228|      1|      case 0x6A786:
  ------------------
  |  Branch (228:7): [True: 1, False: 1.71k]
  ------------------
  229|      1|         return if_match(oid, {1, 2, 840, 113549, 1, 12, 10, 1, 3}, "PKCS12.CertBag");
  230|      1|      case 0x6A787:
  ------------------
  |  Branch (230:7): [True: 1, False: 1.71k]
  ------------------
  231|      1|         return if_match(oid, {1, 2, 840, 113549, 1, 12, 10, 1, 4}, "PKCS12.CRLBag");
  232|      1|      case 0x6A788:
  ------------------
  |  Branch (232:7): [True: 1, False: 1.71k]
  ------------------
  233|      1|         return if_match(oid, {1, 2, 840, 113549, 1, 12, 10, 1, 5}, "PKCS12.SecretBag");
  234|      1|      case 0x6A789:
  ------------------
  |  Branch (234:7): [True: 1, False: 1.71k]
  ------------------
  235|      1|         return if_match(oid, {1, 2, 840, 113549, 1, 12, 10, 1, 6}, "PKCS12.SafeContentsBag");
  236|      1|      case 0x6EB86:
  ------------------
  |  Branch (236:7): [True: 1, False: 1.71k]
  ------------------
  237|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 6, 1}, "GOST-34.10-2012-256/SHA-256");
  238|      1|      case 0x6EC47:
  ------------------
  |  Branch (238:7): [True: 1, False: 1.71k]
  ------------------
  239|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 7, 1}, "Kyber-512-r3");
  240|      1|      case 0x6EC48:
  ------------------
  |  Branch (240:7): [True: 1, False: 1.71k]
  ------------------
  241|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 7, 2}, "Kyber-768-r3");
  242|      1|      case 0x6EC49:
  ------------------
  |  Branch (242:7): [True: 1, False: 1.71k]
  ------------------
  243|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 7, 3}, "Kyber-1024-r3");
  244|      1|      case 0x6EDC9:
  ------------------
  |  Branch (244:7): [True: 1, False: 1.71k]
  ------------------
  245|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 9, 1}, "Dilithium-4x4-r3");
  246|      1|      case 0x6EDCA:
  ------------------
  |  Branch (246:7): [True: 1, False: 1.71k]
  ------------------
  247|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 9, 2}, "Dilithium-6x5-r3");
  248|      1|      case 0x6EDCB:
  ------------------
  |  Branch (248:7): [True: 1, False: 1.71k]
  ------------------
  249|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 9, 3}, "Dilithium-8x7-r3");
  250|      1|      case 0x6EE8A:
  ------------------
  |  Branch (250:7): [True: 1, False: 1.71k]
  ------------------
  251|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 10, 1}, "Dilithium-4x4-AES-r3");
  252|      1|      case 0x6EE8B:
  ------------------
  |  Branch (252:7): [True: 1, False: 1.71k]
  ------------------
  253|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 10, 2}, "Dilithium-6x5-AES-r3");
  254|      1|      case 0x6EE8C:
  ------------------
  |  Branch (254:7): [True: 1, False: 1.71k]
  ------------------
  255|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 10, 3}, "Dilithium-8x7-AES-r3");
  256|      1|      case 0x6EF4B:
  ------------------
  |  Branch (256:7): [True: 1, False: 1.71k]
  ------------------
  257|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 11, 1}, "Kyber-512-90s-r3");
  258|      1|      case 0x6EF4C:
  ------------------
  |  Branch (258:7): [True: 1, False: 1.71k]
  ------------------
  259|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 11, 2}, "Kyber-768-90s-r3");
  260|      2|      case 0x6EF4D:
  ------------------
  |  Branch (260:7): [True: 2, False: 1.71k]
  ------------------
  261|      2|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 11, 3}, "Kyber-1024-90s-r3");
  262|      1|      case 0x6F18E:
  ------------------
  |  Branch (262:7): [True: 1, False: 1.71k]
  ------------------
  263|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 14, 1}, "FrodoKEM-640-SHAKE");
  264|      1|      case 0x6F18F:
  ------------------
  |  Branch (264:7): [True: 1, False: 1.71k]
  ------------------
  265|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 14, 2}, "FrodoKEM-976-SHAKE");
  266|      1|      case 0x6F190:
  ------------------
  |  Branch (266:7): [True: 1, False: 1.71k]
  ------------------
  267|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 14, 3}, "FrodoKEM-1344-SHAKE");
  268|      1|      case 0x6F24F:
  ------------------
  |  Branch (268:7): [True: 1, False: 1.71k]
  ------------------
  269|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 15, 1}, "FrodoKEM-640-AES");
  270|      1|      case 0x6F250:
  ------------------
  |  Branch (270:7): [True: 1, False: 1.71k]
  ------------------
  271|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 15, 2}, "FrodoKEM-976-AES");
  272|      1|      case 0x6F251:
  ------------------
  |  Branch (272:7): [True: 1, False: 1.71k]
  ------------------
  273|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 15, 3}, "FrodoKEM-1344-AES");
  274|      1|      case 0x6F310:
  ------------------
  |  Branch (274:7): [True: 1, False: 1.71k]
  ------------------
  275|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 16, 1}, "eFrodoKEM-640-SHAKE");
  276|      1|      case 0x6F311:
  ------------------
  |  Branch (276:7): [True: 1, False: 1.71k]
  ------------------
  277|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 16, 2}, "eFrodoKEM-976-SHAKE");
  278|      1|      case 0x6F312:
  ------------------
  |  Branch (278:7): [True: 1, False: 1.71k]
  ------------------
  279|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 16, 3}, "eFrodoKEM-1344-SHAKE");
  280|      1|      case 0x6F3D1:
  ------------------
  |  Branch (280:7): [True: 1, False: 1.71k]
  ------------------
  281|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 17, 1}, "eFrodoKEM-640-AES");
  282|      1|      case 0x6F3D2:
  ------------------
  |  Branch (282:7): [True: 1, False: 1.71k]
  ------------------
  283|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 17, 2}, "eFrodoKEM-976-AES");
  284|      1|      case 0x6F3D3:
  ------------------
  |  Branch (284:7): [True: 1, False: 1.71k]
  ------------------
  285|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 17, 3}, "eFrodoKEM-1344-AES");
  286|      1|      case 0x6F492:
  ------------------
  |  Branch (286:7): [True: 1, False: 1.71k]
  ------------------
  287|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 18, 1}, "ClassicMcEliece_6688128pc");
  288|      1|      case 0x6F493:
  ------------------
  |  Branch (288:7): [True: 1, False: 1.71k]
  ------------------
  289|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 18, 2}, "ClassicMcEliece_6688128pcf");
  290|      1|      case 0x6F494:
  ------------------
  |  Branch (290:7): [True: 1, False: 1.71k]
  ------------------
  291|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 18, 3}, "ClassicMcEliece_6960119pc");
  292|      1|      case 0x6F495:
  ------------------
  |  Branch (292:7): [True: 1, False: 1.71k]
  ------------------
  293|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 18, 4}, "ClassicMcEliece_6960119pcf");
  294|      1|      case 0x6F496:
  ------------------
  |  Branch (294:7): [True: 1, False: 1.71k]
  ------------------
  295|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 18, 5}, "ClassicMcEliece_8192128pc");
  296|      1|      case 0x6F497:
  ------------------
  |  Branch (296:7): [True: 1, False: 1.71k]
  ------------------
  297|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 18, 6}, "ClassicMcEliece_8192128pcf");
  298|      1|      case 0x6F79D:
  ------------------
  |  Branch (298:7): [True: 1, False: 1.71k]
  ------------------
  299|      1|         return if_match(oid, {2, 16, 840, 1, 113730, 1, 13}, "Certificate Comment");
  300|      0|      case 0x701A0:
  ------------------
  |  Branch (300:7): [True: 0, False: 1.71k]
  ------------------
  301|      0|         return if_match(oid, {1, 3, 36, 3, 3, 2, 5, 2, 1}, "ECGDSA");
  302|      1|      case 0x70322:
  ------------------
  |  Branch (302:7): [True: 1, False: 1.71k]
  ------------------
  303|      1|         return if_match(oid, {1, 3, 36, 3, 3, 2, 5, 4, 1}, "ECGDSA/RIPEMD-160");
  304|      1|      case 0x70323:
  ------------------
  |  Branch (304:7): [True: 1, False: 1.71k]
  ------------------
  305|      1|         return if_match(oid, {1, 3, 36, 3, 3, 2, 5, 4, 2}, "ECGDSA/SHA-1");
  306|      1|      case 0x70324:
  ------------------
  |  Branch (306:7): [True: 1, False: 1.71k]
  ------------------
  307|      1|         return if_match(oid, {1, 3, 36, 3, 3, 2, 5, 4, 3}, "ECGDSA/SHA-224");
  308|      1|      case 0x70325:
  ------------------
  |  Branch (308:7): [True: 1, False: 1.71k]
  ------------------
  309|      1|         return if_match(oid, {1, 3, 36, 3, 3, 2, 5, 4, 4}, "ECGDSA/SHA-256");
  310|      1|      case 0x70326:
  ------------------
  |  Branch (310:7): [True: 1, False: 1.71k]
  ------------------
  311|      1|         return if_match(oid, {1, 3, 36, 3, 3, 2, 5, 4, 5}, "ECGDSA/SHA-384");
  312|      1|      case 0x70327:
  ------------------
  |  Branch (312:7): [True: 1, False: 1.71k]
  ------------------
  313|      1|         return if_match(oid, {1, 3, 36, 3, 3, 2, 5, 4, 6}, "ECGDSA/SHA-512");
  314|      0|      case 0x72B21:
  ------------------
  |  Branch (314:7): [True: 0, False: 1.71k]
  ------------------
  315|      0|         return if_match(oid, {1, 2, 643, 7, 1, 1, 1, 1}, "GOST-34.10-2012-256");
  316|      1|      case 0x72B22:
  ------------------
  |  Branch (316:7): [True: 1, False: 1.71k]
  ------------------
  317|      1|         return if_match(oid, {1, 2, 643, 7, 1, 1, 1, 2}, "GOST-34.10-2012-512");
  318|      1|      case 0x72BE3:
  ------------------
  |  Branch (318:7): [True: 1, False: 1.71k]
  ------------------
  319|      1|         return if_match(oid, {1, 2, 643, 7, 1, 1, 2, 2}, "Streebog-256");
  320|      1|      case 0x72BE4:
  ------------------
  |  Branch (320:7): [True: 1, False: 1.71k]
  ------------------
  321|      1|         return if_match(oid, {1, 2, 643, 7, 1, 1, 2, 3}, "Streebog-512");
  322|      1|      case 0x72CA4:
  ------------------
  |  Branch (322:7): [True: 1, False: 1.71k]
  ------------------
  323|      1|         return if_match(oid, {1, 2, 643, 7, 1, 1, 3, 2}, "GOST-34.10-2012-256/Streebog-256");
  324|      1|      case 0x72CA5:
  ------------------
  |  Branch (324:7): [True: 1, False: 1.71k]
  ------------------
  325|      1|         return if_match(oid, {1, 2, 643, 7, 1, 1, 3, 3}, "GOST-34.10-2012-512/Streebog-512");
  326|      1|      case 0x7C7C7:
  ------------------
  |  Branch (326:7): [True: 1, False: 1.71k]
  ------------------
  327|      1|         return if_match(oid, {1, 2, 840, 113549, 1, 9, 22, 1}, "PKCS9.X509Certificate");
  328|      1|      case 0x7C7C8:
  ------------------
  |  Branch (328:7): [True: 1, False: 1.71k]
  ------------------
  329|      1|         return if_match(oid, {1, 2, 840, 113549, 1, 9, 22, 2}, "PKCS9.SDSICertificate");
  330|      1|      case 0x7C888:
  ------------------
  |  Branch (330:7): [True: 1, False: 1.71k]
  ------------------
  331|      1|         return if_match(oid, {1, 2, 840, 113549, 1, 9, 23, 1}, "PKCS9.X509CRL");
  332|      2|      case 0x7E10F:
  ------------------
  |  Branch (332:7): [True: 2, False: 1.71k]
  ------------------
  333|      2|         return if_match(oid, {2, 5, 4, 3}, "X520.CommonName");
  334|      2|      case 0x7E110:
  ------------------
  |  Branch (334:7): [True: 2, False: 1.71k]
  ------------------
  335|      2|         return if_match(oid, {2, 5, 4, 4}, "X520.Surname");
  336|      2|      case 0x7E111:
  ------------------
  |  Branch (336:7): [True: 2, False: 1.71k]
  ------------------
  337|      2|         return if_match(oid, {2, 5, 4, 5}, "X520.SerialNumber");
  338|      2|      case 0x7E112:
  ------------------
  |  Branch (338:7): [True: 2, False: 1.71k]
  ------------------
  339|      2|         return if_match(oid, {2, 5, 4, 6}, "X520.Country");
  340|      2|      case 0x7E113:
  ------------------
  |  Branch (340:7): [True: 2, False: 1.71k]
  ------------------
  341|      2|         return if_match(oid, {2, 5, 4, 7}, "X520.Locality");
  342|      2|      case 0x7E114:
  ------------------
  |  Branch (342:7): [True: 2, False: 1.71k]
  ------------------
  343|      2|         return if_match(oid, {2, 5, 4, 8}, "X520.State");
  344|      2|      case 0x7E115:
  ------------------
  |  Branch (344:7): [True: 2, False: 1.71k]
  ------------------
  345|      2|         return if_match(oid, {2, 5, 4, 9}, "X520.StreetAddress");
  346|      2|      case 0x7E116:
  ------------------
  |  Branch (346:7): [True: 2, False: 1.71k]
  ------------------
  347|      2|         return if_match(oid, {2, 5, 4, 10}, "X520.Organization");
  348|      2|      case 0x7E117:
  ------------------
  |  Branch (348:7): [True: 2, False: 1.71k]
  ------------------
  349|      2|         return if_match(oid, {2, 5, 4, 11}, "X520.OrganizationalUnit");
  350|      2|      case 0x7E118:
  ------------------
  |  Branch (350:7): [True: 2, False: 1.71k]
  ------------------
  351|      2|         return if_match(oid, {2, 5, 4, 12}, "X520.Title");
  352|      2|      case 0x7E136:
  ------------------
  |  Branch (352:7): [True: 2, False: 1.71k]
  ------------------
  353|      2|         return if_match(oid, {2, 5, 4, 42}, "X520.GivenName");
  354|      2|      case 0x7E137:
  ------------------
  |  Branch (354:7): [True: 2, False: 1.71k]
  ------------------
  355|      2|         return if_match(oid, {2, 5, 4, 43}, "X520.Initials");
  356|      2|      case 0x7E138:
  ------------------
  |  Branch (356:7): [True: 2, False: 1.71k]
  ------------------
  357|      2|         return if_match(oid, {2, 5, 4, 44}, "X520.GenerationalQualifier");
  358|      3|      case 0x7E13A:
  ------------------
  |  Branch (358:7): [True: 3, False: 1.71k]
  ------------------
  359|      3|         return if_match(oid, {2, 5, 4, 46}, "X520.DNQualifier");
  360|      2|      case 0x7E14D:
  ------------------
  |  Branch (360:7): [True: 2, False: 1.71k]
  ------------------
  361|      2|         return if_match(oid, {2, 5, 4, 65}, "X520.Pseudonym");
  362|      2|      case 0x7F3F3:
  ------------------
  |  Branch (362:7): [True: 2, False: 1.71k]
  ------------------
  363|      2|         return if_match(oid, {2, 5, 29, 14}, "X509v3.SubjectKeyIdentifier");
  364|      2|      case 0x7F3F4:
  ------------------
  |  Branch (364:7): [True: 2, False: 1.71k]
  ------------------
  365|      2|         return if_match(oid, {2, 5, 29, 15}, "X509v3.KeyUsage");
  366|      2|      case 0x7F3F5:
  ------------------
  |  Branch (366:7): [True: 2, False: 1.71k]
  ------------------
  367|      2|         return if_match(oid, {2, 5, 29, 16}, "X509v3.PrivateKeyUsagePeriod");
  368|      3|      case 0x7F3F6:
  ------------------
  |  Branch (368:7): [True: 3, False: 1.71k]
  ------------------
  369|      3|         return if_match(oid, {2, 5, 29, 17}, "X509v3.SubjectAlternativeName");
  370|      2|      case 0x7F3F7:
  ------------------
  |  Branch (370:7): [True: 2, False: 1.71k]
  ------------------
  371|      2|         return if_match(oid, {2, 5, 29, 18}, "X509v3.IssuerAlternativeName");
  372|      2|      case 0x7F3F8:
  ------------------
  |  Branch (372:7): [True: 2, False: 1.71k]
  ------------------
  373|      2|         return if_match(oid, {2, 5, 29, 19}, "X509v3.BasicConstraints");
  374|      2|      case 0x7F3F9:
  ------------------
  |  Branch (374:7): [True: 2, False: 1.71k]
  ------------------
  375|      2|         return if_match(oid, {2, 5, 29, 20}, "X509v3.CRLNumber");
  376|      2|      case 0x7F3FA:
  ------------------
  |  Branch (376:7): [True: 2, False: 1.71k]
  ------------------
  377|      2|         return if_match(oid, {2, 5, 29, 21}, "X509v3.ReasonCode");
  378|      2|      case 0x7F3FC:
  ------------------
  |  Branch (378:7): [True: 2, False: 1.71k]
  ------------------
  379|      2|         return if_match(oid, {2, 5, 29, 23}, "X509v3.HoldInstructionCode");
  380|      2|      case 0x7F3FD:
  ------------------
  |  Branch (380:7): [True: 2, False: 1.71k]
  ------------------
  381|      2|         return if_match(oid, {2, 5, 29, 24}, "X509v3.InvalidityDate");
  382|      2|      case 0x7F401:
  ------------------
  |  Branch (382:7): [True: 2, False: 1.71k]
  ------------------
  383|      2|         return if_match(oid, {2, 5, 29, 28}, "X509v3.CRLIssuingDistributionPoint");
  384|      2|      case 0x7F403:
  ------------------
  |  Branch (384:7): [True: 2, False: 1.71k]
  ------------------
  385|      2|         return if_match(oid, {2, 5, 29, 30}, "X509v3.NameConstraints");
  386|      2|      case 0x7F404:
  ------------------
  |  Branch (386:7): [True: 2, False: 1.71k]
  ------------------
  387|      2|         return if_match(oid, {2, 5, 29, 31}, "X509v3.CRLDistributionPoints");
  388|      2|      case 0x7F405:
  ------------------
  |  Branch (388:7): [True: 2, False: 1.71k]
  ------------------
  389|      2|         return if_match(oid, {2, 5, 29, 32}, "X509v3.CertificatePolicies");
  390|      2|      case 0x7F408:
  ------------------
  |  Branch (390:7): [True: 2, False: 1.71k]
  ------------------
  391|      2|         return if_match(oid, {2, 5, 29, 35}, "X509v3.AuthorityKeyIdentifier");
  392|      2|      case 0x7F409:
  ------------------
  |  Branch (392:7): [True: 2, False: 1.71k]
  ------------------
  393|      2|         return if_match(oid, {2, 5, 29, 36}, "X509v3.PolicyConstraints");
  394|      2|      case 0x7F40A:
  ------------------
  |  Branch (394:7): [True: 2, False: 1.71k]
  ------------------
  395|      2|         return if_match(oid, {2, 5, 29, 37}, "X509v3.ExtendedKeyUsage");
  396|      2|      case 0x7F41D:
  ------------------
  |  Branch (396:7): [True: 2, False: 1.71k]
  ------------------
  397|      2|         return if_match(oid, {2, 5, 29, 56}, "X509v3.NoRevocationAvailable");
  398|      1|      case 0x80B84:
  ------------------
  |  Branch (398:7): [True: 1, False: 1.71k]
  ------------------
  399|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 2, 1}, "AES-128/OCB");
  400|      1|      case 0x80B85:
  ------------------
  |  Branch (400:7): [True: 1, False: 1.71k]
  ------------------
  401|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 2, 2}, "AES-192/OCB");
  402|      1|      case 0x80B86:
  ------------------
  |  Branch (402:7): [True: 1, False: 1.71k]
  ------------------
  403|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 2, 3}, "AES-256/OCB");
  404|      1|      case 0x80B87:
  ------------------
  |  Branch (404:7): [True: 1, False: 1.71k]
  ------------------
  405|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 2, 4}, "Serpent/OCB");
  406|      1|      case 0x80B88:
  ------------------
  |  Branch (406:7): [True: 1, False: 1.71k]
  ------------------
  407|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 2, 5}, "Twofish/OCB");
  408|      1|      case 0x80B89:
  ------------------
  |  Branch (408:7): [True: 1, False: 1.71k]
  ------------------
  409|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 2, 6}, "Camellia-128/OCB");
  410|      1|      case 0x80B8A:
  ------------------
  |  Branch (410:7): [True: 1, False: 1.71k]
  ------------------
  411|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 2, 7}, "Camellia-192/OCB");
  412|      1|      case 0x80B8B:
  ------------------
  |  Branch (412:7): [True: 1, False: 1.71k]
  ------------------
  413|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 2, 8}, "Camellia-256/OCB");
  414|      1|      case 0x80D06:
  ------------------
  |  Branch (414:7): [True: 1, False: 1.71k]
  ------------------
  415|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 4, 1}, "AES-128/SIV");
  416|      1|      case 0x80D07:
  ------------------
  |  Branch (416:7): [True: 1, False: 1.71k]
  ------------------
  417|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 4, 2}, "AES-192/SIV");
  418|      1|      case 0x80D08:
  ------------------
  |  Branch (418:7): [True: 1, False: 1.71k]
  ------------------
  419|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 4, 3}, "AES-256/SIV");
  420|      1|      case 0x80D09:
  ------------------
  |  Branch (420:7): [True: 1, False: 1.71k]
  ------------------
  421|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 4, 4}, "Serpent/SIV");
  422|      2|      case 0x80D0A:
  ------------------
  |  Branch (422:7): [True: 2, False: 1.71k]
  ------------------
  423|      2|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 4, 5}, "Twofish/SIV");
  424|      1|      case 0x80D0B:
  ------------------
  |  Branch (424:7): [True: 1, False: 1.71k]
  ------------------
  425|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 4, 6}, "Camellia-128/SIV");
  426|      1|      case 0x80D0C:
  ------------------
  |  Branch (426:7): [True: 1, False: 1.71k]
  ------------------
  427|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 4, 7}, "Camellia-192/SIV");
  428|      1|      case 0x80D0D:
  ------------------
  |  Branch (428:7): [True: 1, False: 1.71k]
  ------------------
  429|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 4, 8}, "Camellia-256/SIV");
  430|      1|      case 0x80D0E:
  ------------------
  |  Branch (430:7): [True: 1, False: 1.71k]
  ------------------
  431|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 4, 9}, "SM4/SIV");
  432|      0|      case 0x84C6A:
  ------------------
  |  Branch (432:7): [True: 0, False: 1.71k]
  ------------------
  433|      0|         return if_match(oid, {1, 2, 392, 200011, 61, 1, 1, 1, 2}, "Camellia-128/CBC");
  434|      1|      case 0x84C6B:
  ------------------
  |  Branch (434:7): [True: 1, False: 1.71k]
  ------------------
  435|      1|         return if_match(oid, {1, 2, 392, 200011, 61, 1, 1, 1, 3}, "Camellia-192/CBC");
  436|      1|      case 0x84C6C:
  ------------------
  |  Branch (436:7): [True: 1, False: 1.71k]
  ------------------
  437|      1|         return if_match(oid, {1, 2, 392, 200011, 61, 1, 1, 1, 4}, "Camellia-256/CBC");
  438|      1|      case 0x88CD3:
  ------------------
  |  Branch (438:7): [True: 1, False: 1.71k]
  ------------------
  439|      1|         return if_match(oid, {1, 2, 840, 113549, 1, 9, 16, 3, 6}, "KeyWrap.TripleDES");
  440|      1|      case 0x88CD5:
  ------------------
  |  Branch (440:7): [True: 1, False: 1.71k]
  ------------------
  441|      1|         return if_match(oid, {1, 2, 840, 113549, 1, 9, 16, 3, 8}, "Compression.Zlib");
  442|      1|      case 0x88CDE:
  ------------------
  |  Branch (442:7): [True: 1, False: 1.71k]
  ------------------
  443|      1|         return if_match(oid, {1, 2, 840, 113549, 1, 9, 16, 3, 17}, "HSS-LMS");
  444|      1|      case 0x88CDF:
  ------------------
  |  Branch (444:7): [True: 1, False: 1.71k]
  ------------------
  445|      1|         return if_match(oid, {1, 2, 840, 113549, 1, 9, 16, 3, 18}, "ChaCha20Poly1305");
  446|      1|      case 0x92296:
  ------------------
  |  Branch (446:7): [True: 1, False: 1.71k]
  ------------------
  447|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 1, 2}, "AES-128/CBC");
  448|      1|      case 0x92299:
  ------------------
  |  Branch (448:7): [True: 1, False: 1.71k]
  ------------------
  449|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 1, 5}, "KeyWrap.AES-128");
  450|      1|      case 0x9229A:
  ------------------
  |  Branch (450:7): [True: 1, False: 1.71k]
  ------------------
  451|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 1, 6}, "AES-128/GCM");
  452|      2|      case 0x9229B:
  ------------------
  |  Branch (452:7): [True: 2, False: 1.71k]
  ------------------
  453|      2|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 1, 7}, "AES-128/CCM");
  454|      1|      case 0x922AA:
  ------------------
  |  Branch (454:7): [True: 1, False: 1.71k]
  ------------------
  455|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 1, 22}, "AES-192/CBC");
  456|      1|      case 0x922AD:
  ------------------
  |  Branch (456:7): [True: 1, False: 1.71k]
  ------------------
  457|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 1, 25}, "KeyWrap.AES-192");
  458|      1|      case 0x922AE:
  ------------------
  |  Branch (458:7): [True: 1, False: 1.71k]
  ------------------
  459|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 1, 26}, "AES-192/GCM");
  460|      1|      case 0x922AF:
  ------------------
  |  Branch (460:7): [True: 1, False: 1.71k]
  ------------------
  461|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 1, 27}, "AES-192/CCM");
  462|      1|      case 0x922BE:
  ------------------
  |  Branch (462:7): [True: 1, False: 1.71k]
  ------------------
  463|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 1, 42}, "AES-256/CBC");
  464|      1|      case 0x922C1:
  ------------------
  |  Branch (464:7): [True: 1, False: 1.71k]
  ------------------
  465|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 1, 45}, "KeyWrap.AES-256");
  466|      1|      case 0x922C2:
  ------------------
  |  Branch (466:7): [True: 1, False: 1.71k]
  ------------------
  467|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 1, 46}, "AES-256/GCM");
  468|      1|      case 0x922C3:
  ------------------
  |  Branch (468:7): [True: 1, False: 1.71k]
  ------------------
  469|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 1, 47}, "AES-256/CCM");
  470|      1|      case 0x92356:
  ------------------
  |  Branch (470:7): [True: 1, False: 1.71k]
  ------------------
  471|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 2, 1}, "SHA-256");
  472|      1|      case 0x92357:
  ------------------
  |  Branch (472:7): [True: 1, False: 1.71k]
  ------------------
  473|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 2, 2}, "SHA-384");
  474|      1|      case 0x92358:
  ------------------
  |  Branch (474:7): [True: 1, False: 1.71k]
  ------------------
  475|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 2, 3}, "SHA-512");
  476|      1|      case 0x92359:
  ------------------
  |  Branch (476:7): [True: 1, False: 1.71k]
  ------------------
  477|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 2, 4}, "SHA-224");
  478|      1|      case 0x9235B:
  ------------------
  |  Branch (478:7): [True: 1, False: 1.71k]
  ------------------
  479|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 2, 6}, "SHA-512-256");
  480|      1|      case 0x9235C:
  ------------------
  |  Branch (480:7): [True: 1, False: 1.71k]
  ------------------
  481|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 2, 7}, "SHA-3(224)");
  482|      1|      case 0x9235D:
  ------------------
  |  Branch (482:7): [True: 1, False: 1.71k]
  ------------------
  483|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 2, 8}, "SHA-3(256)");
  484|      1|      case 0x9235E:
  ------------------
  |  Branch (484:7): [True: 1, False: 1.71k]
  ------------------
  485|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 2, 9}, "SHA-3(384)");
  486|      1|      case 0x9235F:
  ------------------
  |  Branch (486:7): [True: 1, False: 1.71k]
  ------------------
  487|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 2, 10}, "SHA-3(512)");
  488|      1|      case 0x92360:
  ------------------
  |  Branch (488:7): [True: 1, False: 1.71k]
  ------------------
  489|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 2, 11}, "SHAKE-128");
  490|      1|      case 0x92361:
  ------------------
  |  Branch (490:7): [True: 1, False: 1.71k]
  ------------------
  491|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 2, 12}, "SHAKE-256");
  492|      1|      case 0x92417:
  ------------------
  |  Branch (492:7): [True: 1, False: 1.71k]
  ------------------
  493|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 1}, "DSA/SHA-224");
  494|      1|      case 0x92418:
  ------------------
  |  Branch (494:7): [True: 1, False: 1.71k]
  ------------------
  495|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 2}, "DSA/SHA-256");
  496|      1|      case 0x92419:
  ------------------
  |  Branch (496:7): [True: 1, False: 1.71k]
  ------------------
  497|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 3}, "DSA/SHA-384");
  498|      1|      case 0x9241A:
  ------------------
  |  Branch (498:7): [True: 1, False: 1.71k]
  ------------------
  499|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 4}, "DSA/SHA-512");
  500|      1|      case 0x9241B:
  ------------------
  |  Branch (500:7): [True: 1, False: 1.71k]
  ------------------
  501|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 5}, "DSA/SHA-3(224)");
  502|      1|      case 0x9241C:
  ------------------
  |  Branch (502:7): [True: 1, False: 1.71k]
  ------------------
  503|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 6}, "DSA/SHA-3(256)");
  504|      1|      case 0x9241D:
  ------------------
  |  Branch (504:7): [True: 1, False: 1.71k]
  ------------------
  505|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 7}, "DSA/SHA-3(384)");
  506|      1|      case 0x9241E:
  ------------------
  |  Branch (506:7): [True: 1, False: 1.71k]
  ------------------
  507|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 8}, "DSA/SHA-3(512)");
  508|      1|      case 0x9241F:
  ------------------
  |  Branch (508:7): [True: 1, False: 1.71k]
  ------------------
  509|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 9}, "ECDSA/SHA-3(224)");
  510|      1|      case 0x92420:
  ------------------
  |  Branch (510:7): [True: 1, False: 1.71k]
  ------------------
  511|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 10}, "ECDSA/SHA-3(256)");
  512|      1|      case 0x92421:
  ------------------
  |  Branch (512:7): [True: 1, False: 1.71k]
  ------------------
  513|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 11}, "ECDSA/SHA-3(384)");
  514|      1|      case 0x92422:
  ------------------
  |  Branch (514:7): [True: 1, False: 1.71k]
  ------------------
  515|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 12}, "ECDSA/SHA-3(512)");
  516|      1|      case 0x92423:
  ------------------
  |  Branch (516:7): [True: 1, False: 1.71k]
  ------------------
  517|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 13}, "RSA/PKCS1v15(SHA-3(224))");
  518|      1|      case 0x92424:
  ------------------
  |  Branch (518:7): [True: 1, False: 1.71k]
  ------------------
  519|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 14}, "RSA/PKCS1v15(SHA-3(256))");
  520|      1|      case 0x92425:
  ------------------
  |  Branch (520:7): [True: 1, False: 1.71k]
  ------------------
  521|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 15}, "RSA/PKCS1v15(SHA-3(384))");
  522|      1|      case 0x92426:
  ------------------
  |  Branch (522:7): [True: 1, False: 1.71k]
  ------------------
  523|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 16}, "RSA/PKCS1v15(SHA-3(512))");
  524|      1|      case 0x92427:
  ------------------
  |  Branch (524:7): [True: 1, False: 1.71k]
  ------------------
  525|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 17}, "ML-DSA-4x4");
  526|      1|      case 0x92428:
  ------------------
  |  Branch (526:7): [True: 1, False: 1.71k]
  ------------------
  527|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 18}, "ML-DSA-6x5");
  528|      1|      case 0x92429:
  ------------------
  |  Branch (528:7): [True: 1, False: 1.71k]
  ------------------
  529|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 19}, "ML-DSA-8x7");
  530|      1|      case 0x9242A:
  ------------------
  |  Branch (530:7): [True: 1, False: 1.71k]
  ------------------
  531|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 20}, "SLH-DSA-SHA2-128s");
  532|      1|      case 0x9242B:
  ------------------
  |  Branch (532:7): [True: 1, False: 1.71k]
  ------------------
  533|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 21}, "SLH-DSA-SHA2-128f");
  534|      1|      case 0x9242C:
  ------------------
  |  Branch (534:7): [True: 1, False: 1.71k]
  ------------------
  535|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 22}, "SLH-DSA-SHA2-192s");
  536|      1|      case 0x9242D:
  ------------------
  |  Branch (536:7): [True: 1, False: 1.71k]
  ------------------
  537|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 23}, "SLH-DSA-SHA2-192f");
  538|      1|      case 0x9242E:
  ------------------
  |  Branch (538:7): [True: 1, False: 1.71k]
  ------------------
  539|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 24}, "SLH-DSA-SHA2-256s");
  540|      1|      case 0x9242F:
  ------------------
  |  Branch (540:7): [True: 1, False: 1.71k]
  ------------------
  541|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 25}, "SLH-DSA-SHA2-256f");
  542|      1|      case 0x92430:
  ------------------
  |  Branch (542:7): [True: 1, False: 1.71k]
  ------------------
  543|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 26}, "SLH-DSA-SHAKE-128s");
  544|      1|      case 0x92431:
  ------------------
  |  Branch (544:7): [True: 1, False: 1.71k]
  ------------------
  545|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 27}, "SLH-DSA-SHAKE-128f");
  546|      1|      case 0x92432:
  ------------------
  |  Branch (546:7): [True: 1, False: 1.71k]
  ------------------
  547|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 28}, "SLH-DSA-SHAKE-192s");
  548|      1|      case 0x92433:
  ------------------
  |  Branch (548:7): [True: 1, False: 1.71k]
  ------------------
  549|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 29}, "SLH-DSA-SHAKE-192f");
  550|      1|      case 0x92434:
  ------------------
  |  Branch (550:7): [True: 1, False: 1.71k]
  ------------------
  551|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 30}, "SLH-DSA-SHAKE-256s");
  552|      1|      case 0x92435:
  ------------------
  |  Branch (552:7): [True: 1, False: 1.71k]
  ------------------
  553|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 3, 31}, "SLH-DSA-SHAKE-256f");
  554|      1|      case 0x924D8:
  ------------------
  |  Branch (554:7): [True: 1, False: 1.71k]
  ------------------
  555|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 4, 1}, "ML-KEM-512");
  556|      1|      case 0x924D9:
  ------------------
  |  Branch (556:7): [True: 1, False: 1.71k]
  ------------------
  557|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 4, 2}, "ML-KEM-768");
  558|      1|      case 0x924DA:
  ------------------
  |  Branch (558:7): [True: 1, False: 1.71k]
  ------------------
  559|      1|         return if_match(oid, {2, 16, 840, 1, 101, 3, 4, 4, 3}, "ML-KEM-1024");
  560|      1|      case 0x9479F:
  ------------------
  |  Branch (560:7): [True: 1, False: 1.71k]
  ------------------
  561|      1|         return if_match(oid, {1, 3, 6, 1, 5, 5, 7, 1, 1}, "PKIX.AuthorityInformationAccess");
  562|      1|      case 0x947A5:
  ------------------
  |  Branch (562:7): [True: 1, False: 1.71k]
  ------------------
  563|      1|         return if_match(oid, {1, 3, 6, 1, 5, 5, 7, 1, 7}, "PKIX.IpAddrBlocks");
  564|      1|      case 0x947A6:
  ------------------
  |  Branch (564:7): [True: 1, False: 1.71k]
  ------------------
  565|      1|         return if_match(oid, {1, 3, 6, 1, 5, 5, 7, 1, 8}, "PKIX.AutonomousSysIds");
  566|      1|      case 0x947B8:
  ------------------
  |  Branch (566:7): [True: 1, False: 1.71k]
  ------------------
  567|      1|         return if_match(oid, {1, 3, 6, 1, 5, 5, 7, 1, 26}, "PKIX.TNAuthList");
  568|      1|      case 0x94921:
  ------------------
  |  Branch (568:7): [True: 1, False: 1.71k]
  ------------------
  569|      1|         return if_match(oid, {1, 3, 6, 1, 5, 5, 7, 3, 1}, "PKIX.ServerAuth");
  570|      1|      case 0x94922:
  ------------------
  |  Branch (570:7): [True: 1, False: 1.71k]
  ------------------
  571|      1|         return if_match(oid, {1, 3, 6, 1, 5, 5, 7, 3, 2}, "PKIX.ClientAuth");
  572|      1|      case 0x94923:
  ------------------
  |  Branch (572:7): [True: 1, False: 1.71k]
  ------------------
  573|      1|         return if_match(oid, {1, 3, 6, 1, 5, 5, 7, 3, 3}, "PKIX.CodeSigning");
  574|      1|      case 0x94924:
  ------------------
  |  Branch (574:7): [True: 1, False: 1.71k]
  ------------------
  575|      1|         return if_match(oid, {1, 3, 6, 1, 5, 5, 7, 3, 4}, "PKIX.EmailProtection");
  576|      1|      case 0x94925:
  ------------------
  |  Branch (576:7): [True: 1, False: 1.71k]
  ------------------
  577|      1|         return if_match(oid, {1, 3, 6, 1, 5, 5, 7, 3, 5}, "PKIX.IPsecEndSystem");
  578|      1|      case 0x94926:
  ------------------
  |  Branch (578:7): [True: 1, False: 1.71k]
  ------------------
  579|      1|         return if_match(oid, {1, 3, 6, 1, 5, 5, 7, 3, 6}, "PKIX.IPsecTunnel");
  580|      1|      case 0x94927:
  ------------------
  |  Branch (580:7): [True: 1, False: 1.71k]
  ------------------
  581|      1|         return if_match(oid, {1, 3, 6, 1, 5, 5, 7, 3, 7}, "PKIX.IPsecUser");
  582|      1|      case 0x94928:
  ------------------
  |  Branch (582:7): [True: 1, False: 1.71k]
  ------------------
  583|      1|         return if_match(oid, {1, 3, 6, 1, 5, 5, 7, 3, 8}, "PKIX.TimeStamping");
  584|      1|      case 0x94929:
  ------------------
  |  Branch (584:7): [True: 1, False: 1.71k]
  ------------------
  585|      1|         return if_match(oid, {1, 3, 6, 1, 5, 5, 7, 3, 9}, "PKIX.OCSPSigning");
  586|      1|      case 0x94CEA:
  ------------------
  |  Branch (586:7): [True: 1, False: 1.71k]
  ------------------
  587|      1|         return if_match(oid, {1, 3, 6, 1, 5, 5, 7, 8, 5}, "PKIX.XMPPAddr");
  588|      1|      case 0x954DB:
  ------------------
  |  Branch (588:7): [True: 1, False: 1.71k]
  ------------------
  589|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 311, 20, 2, 2}, "Microsoft SmartcardLogon");
  590|      1|      case 0x954DC:
  ------------------
  |  Branch (590:7): [True: 1, False: 1.71k]
  ------------------
  591|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 311, 20, 2, 3}, "Microsoft UPN");
  592|      1|      case 0x96B0E:
  ------------------
  |  Branch (592:7): [True: 1, False: 1.71k]
  ------------------
  593|      1|         return if_match(oid, {1, 3, 6, 1, 5, 5, 7, 48, 1}, "PKIX.OCSP");
  594|      1|      case 0x96B0F:
  ------------------
  |  Branch (594:7): [True: 1, False: 1.71k]
  ------------------
  595|      1|         return if_match(oid, {1, 3, 6, 1, 5, 5, 7, 48, 2}, "PKIX.CertificateAuthorityIssuers");
  596|      0|      case 0x96C77:
  ------------------
  |  Branch (596:7): [True: 0, False: 1.71k]
  ------------------
  597|      0|         return if_match(oid, {1, 2, 840, 113549, 1, 12, 1, 3}, "PBE-SHA1-3DES");
  598|      1|      case 0x96C78:
  ------------------
  |  Branch (598:7): [True: 1, False: 1.71k]
  ------------------
  599|      1|         return if_match(oid, {1, 2, 840, 113549, 1, 12, 1, 4}, "PBE-SHA1-2DES");
  600|      1|      case 0x9A008:
  ------------------
  |  Branch (600:7): [True: 1, False: 1.71k]
  ------------------
  601|      1|         return if_match(oid, {1, 3, 36, 3, 3, 2, 8, 1, 1, 1}, "brainpool160r1");
  602|      1|      case 0x9A00A:
  ------------------
  |  Branch (602:7): [True: 1, False: 1.71k]
  ------------------
  603|      1|         return if_match(oid, {1, 3, 36, 3, 3, 2, 8, 1, 1, 3}, "brainpool192r1");
  604|      1|      case 0x9A00C:
  ------------------
  |  Branch (604:7): [True: 1, False: 1.71k]
  ------------------
  605|      1|         return if_match(oid, {1, 3, 36, 3, 3, 2, 8, 1, 1, 5}, "brainpool224r1");
  606|      1|      case 0x9A00E:
  ------------------
  |  Branch (606:7): [True: 1, False: 1.71k]
  ------------------
  607|      1|         return if_match(oid, {1, 3, 36, 3, 3, 2, 8, 1, 1, 7}, "brainpool256r1");
  608|      1|      case 0x9A010:
  ------------------
  |  Branch (608:7): [True: 1, False: 1.71k]
  ------------------
  609|      1|         return if_match(oid, {1, 3, 36, 3, 3, 2, 8, 1, 1, 9}, "brainpool320r1");
  610|      1|      case 0x9A012:
  ------------------
  |  Branch (610:7): [True: 1, False: 1.71k]
  ------------------
  611|      1|         return if_match(oid, {1, 3, 36, 3, 3, 2, 8, 1, 1, 11}, "brainpool384r1");
  612|      1|      case 0x9A014:
  ------------------
  |  Branch (612:7): [True: 1, False: 1.71k]
  ------------------
  613|      1|         return if_match(oid, {1, 3, 36, 3, 3, 2, 8, 1, 1, 13}, "brainpool512r1");
  614|      1|      case 0xA0D61:
  ------------------
  |  Branch (614:7): [True: 1, False: 1.71k]
  ------------------
  615|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 3}, "McEliece");
  616|      1|      case 0xA0D63:
  ------------------
  |  Branch (616:7): [True: 1, False: 1.71k]
  ------------------
  617|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 5}, "XMSS-draft6");
  618|      1|      case 0xA0D66:
  ------------------
  |  Branch (618:7): [True: 1, False: 1.71k]
  ------------------
  619|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 8}, "XMSS-draft12");
  620|      1|      case 0xA0D6B:
  ------------------
  |  Branch (620:7): [True: 1, False: 1.71k]
  ------------------
  621|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 1, 13}, "HSS-LMS-Private-Key");
  622|      1|      case 0xA0EE1:
  ------------------
  |  Branch (622:7): [True: 1, False: 1.71k]
  ------------------
  623|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 1}, "Serpent/CBC");
  624|      1|      case 0xA0EE2:
  ------------------
  |  Branch (624:7): [True: 1, False: 1.71k]
  ------------------
  625|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 2}, "Threefish-512/CBC");
  626|      1|      case 0xA0EE3:
  ------------------
  |  Branch (626:7): [True: 1, False: 1.71k]
  ------------------
  627|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 3}, "Twofish/CBC");
  628|      1|      case 0xA0F45:
  ------------------
  |  Branch (628:7): [True: 1, False: 1.71k]
  ------------------
  629|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 101}, "Serpent/GCM");
  630|      1|      case 0xA0F46:
  ------------------
  |  Branch (630:7): [True: 1, False: 1.71k]
  ------------------
  631|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 3, 102}, "Twofish/GCM");
  632|      1|      case 0xA0FA2:
  ------------------
  |  Branch (632:7): [True: 1, False: 1.71k]
  ------------------
  633|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 4, 1}, "numsp256d1");
  634|      1|      case 0xA0FA3:
  ------------------
  |  Branch (634:7): [True: 1, False: 1.71k]
  ------------------
  635|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 4, 2}, "numsp384d1");
  636|      1|      case 0xA0FA4:
  ------------------
  |  Branch (636:7): [True: 1, False: 1.71k]
  ------------------
  637|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 25258, 4, 3}, "numsp512d1");
  638|      1|      case 0xA244B:
  ------------------
  |  Branch (638:7): [True: 1, False: 1.71k]
  ------------------
  639|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 22554, 5, 1, 1}, "ClassicMcEliece_348864");
  640|      0|      case 0xA244C:
  ------------------
  |  Branch (640:7): [True: 0, False: 1.71k]
  ------------------
  641|      0|         return if_match(oid, {1, 3, 6, 1, 4, 1, 22554, 5, 1, 2}, "ClassicMcEliece_348864f");
  642|      2|      case 0xA244D:
  ------------------
  |  Branch (642:7): [True: 2, False: 1.71k]
  ------------------
  643|      2|         return if_match(oid, {1, 3, 6, 1, 4, 1, 22554, 5, 1, 3}, "ClassicMcEliece_460896");
  644|      1|      case 0xA244E:
  ------------------
  |  Branch (644:7): [True: 1, False: 1.71k]
  ------------------
  645|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 22554, 5, 1, 4}, "ClassicMcEliece_460896f");
  646|      1|      case 0xA244F:
  ------------------
  |  Branch (646:7): [True: 1, False: 1.71k]
  ------------------
  647|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 22554, 5, 1, 5}, "ClassicMcEliece_6688128");
  648|      1|      case 0xA2450:
  ------------------
  |  Branch (648:7): [True: 1, False: 1.71k]
  ------------------
  649|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 22554, 5, 1, 6}, "ClassicMcEliece_6688128f");
  650|      1|      case 0xA2451:
  ------------------
  |  Branch (650:7): [True: 1, False: 1.71k]
  ------------------
  651|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 22554, 5, 1, 7}, "ClassicMcEliece_6960119");
  652|      1|      case 0xA2452:
  ------------------
  |  Branch (652:7): [True: 1, False: 1.71k]
  ------------------
  653|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 22554, 5, 1, 8}, "ClassicMcEliece_6960119f");
  654|      1|      case 0xA2453:
  ------------------
  |  Branch (654:7): [True: 1, False: 1.71k]
  ------------------
  655|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 22554, 5, 1, 9}, "ClassicMcEliece_8192128");
  656|      1|      case 0xA2454:
  ------------------
  |  Branch (656:7): [True: 1, False: 1.71k]
  ------------------
  657|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 22554, 5, 1, 10}, "ClassicMcEliece_8192128f");
  658|      1|      case 0xAF989:
  ------------------
  |  Branch (658:7): [True: 1, False: 1.71k]
  ------------------
  659|      1|         return if_match(oid, {1, 2, 840, 113549, 1, 1, 1}, "RSA");
  660|      1|      case 0xAF98A:
  ------------------
  |  Branch (660:7): [True: 1, False: 1.71k]
  ------------------
  661|      1|         return if_match(oid, {1, 2, 840, 113549, 1, 1, 2}, "RSA/PKCS1v15(MD2)");
  662|      1|      case 0xAF98C:
  ------------------
  |  Branch (662:7): [True: 1, False: 1.71k]
  ------------------
  663|      1|         return if_match(oid, {1, 2, 840, 113549, 1, 1, 4}, "RSA/PKCS1v15(MD5)");
  664|      1|      case 0xAF98D:
  ------------------
  |  Branch (664:7): [True: 1, False: 1.71k]
  ------------------
  665|      1|         return if_match(oid, {1, 2, 840, 113549, 1, 1, 5}, "RSA/PKCS1v15(SHA-1)");
  666|      1|      case 0xAF98F:
  ------------------
  |  Branch (666:7): [True: 1, False: 1.71k]
  ------------------
  667|      1|         return if_match(oid, {1, 2, 840, 113549, 1, 1, 7}, "RSA/OAEP");
  668|      1|      case 0xAF990:
  ------------------
  |  Branch (668:7): [True: 1, False: 1.71k]
  ------------------
  669|      1|         return if_match(oid, {1, 2, 840, 113549, 1, 1, 8}, "MGF1");
  670|      1|      case 0xAF992:
  ------------------
  |  Branch (670:7): [True: 1, False: 1.71k]
  ------------------
  671|      1|         return if_match(oid, {1, 2, 840, 113549, 1, 1, 10}, "RSA/PSS");
  672|      1|      case 0xAF993:
  ------------------
  |  Branch (672:7): [True: 1, False: 1.71k]
  ------------------
  673|      1|         return if_match(oid, {1, 2, 840, 113549, 1, 1, 11}, "RSA/PKCS1v15(SHA-256)");
  674|      1|      case 0xAF994:
  ------------------
  |  Branch (674:7): [True: 1, False: 1.71k]
  ------------------
  675|      1|         return if_match(oid, {1, 2, 840, 113549, 1, 1, 12}, "RSA/PKCS1v15(SHA-384)");
  676|      1|      case 0xAF995:
  ------------------
  |  Branch (676:7): [True: 1, False: 1.71k]
  ------------------
  677|      1|         return if_match(oid, {1, 2, 840, 113549, 1, 1, 13}, "RSA/PKCS1v15(SHA-512)");
  678|      1|      case 0xAF996:
  ------------------
  |  Branch (678:7): [True: 1, False: 1.71k]
  ------------------
  679|      1|         return if_match(oid, {1, 2, 840, 113549, 1, 1, 14}, "RSA/PKCS1v15(SHA-224)");
  680|      1|      case 0xAF998:
  ------------------
  |  Branch (680:7): [True: 1, False: 1.71k]
  ------------------
  681|      1|         return if_match(oid, {1, 2, 840, 113549, 1, 1, 16}, "RSA/PKCS1v15(SHA-512-256)");
  682|      1|      case 0xAFC98:
  ------------------
  |  Branch (682:7): [True: 1, False: 1.71k]
  ------------------
  683|      1|         return if_match(oid, {1, 2, 840, 113549, 1, 5, 12}, "PKCS5.PBKDF2");
  684|      1|      case 0xAFC99:
  ------------------
  |  Branch (684:7): [True: 1, False: 1.71k]
  ------------------
  685|      1|         return if_match(oid, {1, 2, 840, 113549, 1, 5, 13}, "PBE-PKCS5v20");
  686|      1|      case 0xAFE0F:
  ------------------
  |  Branch (686:7): [True: 1, False: 1.71k]
  ------------------
  687|      1|         return if_match(oid, {1, 2, 840, 113549, 1, 7, 1}, "PKCS7.Data");
  688|      1|      case 0xAFE14:
  ------------------
  |  Branch (688:7): [True: 1, False: 1.71k]
  ------------------
  689|      1|         return if_match(oid, {1, 2, 840, 113549, 1, 7, 6}, "PKCS7.EncryptedData");
  690|      1|      case 0xAFF91:
  ------------------
  |  Branch (690:7): [True: 1, False: 1.71k]
  ------------------
  691|      1|         return if_match(oid, {1, 2, 840, 113549, 1, 9, 1}, "PKCS9.EmailAddress");
  692|      1|      case 0xAFF92:
  ------------------
  |  Branch (692:7): [True: 1, False: 1.71k]
  ------------------
  693|      1|         return if_match(oid, {1, 2, 840, 113549, 1, 9, 2}, "PKCS9.UnstructuredName");
  694|      1|      case 0xAFF93:
  ------------------
  |  Branch (694:7): [True: 1, False: 1.71k]
  ------------------
  695|      1|         return if_match(oid, {1, 2, 840, 113549, 1, 9, 3}, "PKCS9.ContentType");
  696|      1|      case 0xAFF94:
  ------------------
  |  Branch (696:7): [True: 1, False: 1.71k]
  ------------------
  697|      1|         return if_match(oid, {1, 2, 840, 113549, 1, 9, 4}, "PKCS9.MessageDigest");
  698|      1|      case 0xAFF97:
  ------------------
  |  Branch (698:7): [True: 1, False: 1.71k]
  ------------------
  699|      1|         return if_match(oid, {1, 2, 840, 113549, 1, 9, 7}, "PKCS9.ChallengePassword");
  700|      1|      case 0xAFF9E:
  ------------------
  |  Branch (700:7): [True: 1, False: 1.71k]
  ------------------
  701|      1|         return if_match(oid, {1, 2, 840, 113549, 1, 9, 14}, "PKCS9.ExtensionRequest");
  702|      1|      case 0xAFFA4:
  ------------------
  |  Branch (702:7): [True: 1, False: 1.71k]
  ------------------
  703|      1|         return if_match(oid, {1, 2, 840, 113549, 1, 9, 20}, "PKCS9.FriendlyName");
  704|      1|      case 0xAFFA5:
  ------------------
  |  Branch (704:7): [True: 1, False: 1.71k]
  ------------------
  705|      1|         return if_match(oid, {1, 2, 840, 113549, 1, 9, 21}, "PKCS9.LocalKeyId");
  706|      1|      case 0xC0226:
  ------------------
  |  Branch (706:7): [True: 1, False: 1.71k]
  ------------------
  707|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 11591, 4, 11}, "Scrypt");
  708|      1|      case 0xC0A67:
  ------------------
  |  Branch (708:7): [True: 1, False: 1.71k]
  ------------------
  709|      1|         return if_match(oid, {1, 3, 6, 1, 4, 1, 11591, 15, 1}, "OpenPGP.Ed25519");
  710|      0|      case 0xC4CE5:
  ------------------
  |  Branch (710:7): [True: 0, False: 1.71k]
  ------------------
  711|      0|         return if_match(oid, {1, 2, 643, 100, 1}, "GOST.OGRN");
  712|      1|      case 0xC4D53:
  ------------------
  |  Branch (712:7): [True: 1, False: 1.71k]
  ------------------
  713|      1|         return if_match(oid, {1, 2, 643, 100, 111}, "GOST.SubjectSigningTool");
  714|      1|      case 0xC4D54:
  ------------------
  |  Branch (714:7): [True: 1, False: 1.71k]
  ------------------
  715|      1|         return if_match(oid, {1, 2, 643, 100, 112}, "GOST.IssuerSigningTool");
  716|      1|      case 0xC9C50:
  ------------------
  |  Branch (716:7): [True: 1, False: 1.71k]
  ------------------
  717|      1|         return if_match(oid, {1, 2, 840, 10045, 3, 1, 1}, "secp192r1");
  718|      1|      case 0xC9C51:
  ------------------
  |  Branch (718:7): [True: 1, False: 1.71k]
  ------------------
  719|      1|         return if_match(oid, {1, 2, 840, 10045, 3, 1, 2}, "x962_p192v2");
  720|      1|      case 0xC9C52:
  ------------------
  |  Branch (720:7): [True: 1, False: 1.71k]
  ------------------
  721|      1|         return if_match(oid, {1, 2, 840, 10045, 3, 1, 3}, "x962_p192v3");
  722|      1|      case 0xC9C53:
  ------------------
  |  Branch (722:7): [True: 1, False: 1.71k]
  ------------------
  723|      1|         return if_match(oid, {1, 2, 840, 10045, 3, 1, 4}, "x962_p239v1");
  724|      1|      case 0xC9C54:
  ------------------
  |  Branch (724:7): [True: 1, False: 1.71k]
  ------------------
  725|      1|         return if_match(oid, {1, 2, 840, 10045, 3, 1, 5}, "x962_p239v2");
  726|      1|      case 0xC9C55:
  ------------------
  |  Branch (726:7): [True: 1, False: 1.71k]
  ------------------
  727|      1|         return if_match(oid, {1, 2, 840, 10045, 3, 1, 6}, "x962_p239v3");
  728|      1|      case 0xC9C56:
  ------------------
  |  Branch (728:7): [True: 1, False: 1.71k]
  ------------------
  729|      1|         return if_match(oid, {1, 2, 840, 10045, 3, 1, 7}, "secp256r1");
  730|      1|      case 0xCFA13:
  ------------------
  |  Branch (730:7): [True: 1, False: 1.71k]
  ------------------
  731|      1|         return if_match(oid, {1, 2, 840, 10040, 4, 1}, "DSA");
  732|      1|      case 0xCFA15:
  ------------------
  |  Branch (732:7): [True: 1, False: 1.71k]
  ------------------
  733|      1|         return if_match(oid, {1, 2, 840, 10040, 4, 3}, "DSA/SHA-1");
  734|  1.34k|      default:
  ------------------
  |  Branch (734:7): [True: 1.34k, False: 374]
  ------------------
  735|  1.34k|         return {};
  736|  1.71k|   }
  737|  1.71k|}
_ZN5Botan7OID_Map22lookup_static_oid_nameENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  740|  1.71k|std::optional<OID> OID_Map::lookup_static_oid_name(std::string_view req) {
  741|  1.71k|   const uint32_t hc = hash_oid_name(req);
  742|       |
  743|  1.71k|   switch(hc) {
  744|      0|      case 0x00545:
  ------------------
  |  Branch (744:7): [True: 0, False: 1.71k]
  ------------------
  745|      0|         return if_match(req, "Twofish/GCM", {1, 3, 6, 1, 4, 1, 25258, 3, 102});
  746|      0|      case 0x00CF3:
  ------------------
  |  Branch (746:7): [True: 0, False: 1.71k]
  ------------------
  747|      0|         return if_match(req, "SphincsPlus-sha2-192f-r3.1", {1, 3, 6, 1, 4, 1, 25258, 1, 12, 2, 4});
  748|      0|      case 0x015FE:
  ------------------
  |  Branch (748:7): [True: 0, False: 1.71k]
  ------------------
  749|      0|         return if_match(req, "FrodoKEM-640-SHAKE", {1, 3, 6, 1, 4, 1, 25258, 1, 14, 1});
  750|      0|      case 0x01F9E:
  ------------------
  |  Branch (750:7): [True: 0, False: 1.71k]
  ------------------
  751|      0|         return if_match(req, "MD5", {1, 2, 840, 113549, 2, 5});
  752|      0|      case 0x02293:
  ------------------
  |  Branch (752:7): [True: 0, False: 1.71k]
  ------------------
  753|      0|         return if_match(req, "SphincsPlus-shake-192f-r3.1", {1, 3, 6, 1, 4, 1, 25258, 1, 12, 1, 4});
  754|      0|      case 0x02B93:
  ------------------
  |  Branch (754:7): [True: 0, False: 1.71k]
  ------------------
  755|      0|         return if_match(req, "Microsoft SmartcardLogon", {1, 3, 6, 1, 4, 1, 311, 20, 2, 2});
  756|      0|      case 0x041D5:
  ------------------
  |  Branch (756:7): [True: 0, False: 1.71k]
  ------------------
  757|      0|         return if_match(req, "secp160k1", {1, 3, 132, 0, 9});
  758|      0|      case 0x044B3:
  ------------------
  |  Branch (758:7): [True: 0, False: 1.71k]
  ------------------
  759|      0|         return if_match(req, "Camellia-256/SIV", {1, 3, 6, 1, 4, 1, 25258, 3, 4, 8});
  760|      0|      case 0x048B2:
  ------------------
  |  Branch (760:7): [True: 0, False: 1.71k]
  ------------------
  761|      0|         return if_match(req, "secp160r1", {1, 3, 132, 0, 8});
  762|      0|      case 0x048B3:
  ------------------
  |  Branch (762:7): [True: 0, False: 1.71k]
  ------------------
  763|      0|         return if_match(req, "secp160r2", {1, 3, 132, 0, 30});
  764|      0|      case 0x05CDA:
  ------------------
  |  Branch (764:7): [True: 0, False: 1.71k]
  ------------------
  765|      0|         return if_match(req, "X520.Country", {2, 5, 4, 6});
  766|      0|      case 0x07783:
  ------------------
  |  Branch (766:7): [True: 0, False: 1.71k]
  ------------------
  767|      0|         return if_match(req, "PKIX.ServerAuth", {1, 3, 6, 1, 5, 5, 7, 3, 1});
  768|      0|      case 0x086C7:
  ------------------
  |  Branch (768:7): [True: 0, False: 1.71k]
  ------------------
  769|      0|         return if_match(req, "numsp384d1", {1, 3, 6, 1, 4, 1, 25258, 4, 2});
  770|      0|      case 0x08A92:
  ------------------
  |  Branch (770:7): [True: 0, False: 1.71k]
  ------------------
  771|      0|         return if_match(req, "RSA/PKCS1v15(SHA-1)", {1, 2, 840, 113549, 1, 1, 5});
  772|      0|      case 0x09EA0:
  ------------------
  |  Branch (772:7): [True: 0, False: 1.71k]
  ------------------
  773|      0|         return if_match(req, "DES/CBC", {1, 3, 14, 3, 2, 7});
  774|      0|      case 0x0B2D6:
  ------------------
  |  Branch (774:7): [True: 0, False: 1.71k]
  ------------------
  775|      0|         return if_match(req, "ECDSA/SHA-3(512)", {2, 16, 840, 1, 101, 3, 4, 3, 12});
  776|      0|      case 0x0BA72:
  ------------------
  |  Branch (776:7): [True: 0, False: 1.71k]
  ------------------
  777|      0|         return if_match(req, "SphincsPlus-sha2-128s-r3.1", {1, 3, 6, 1, 4, 1, 25258, 1, 12, 2, 1});
  778|      0|      case 0x0BE23:
  ------------------
  |  Branch (778:7): [True: 0, False: 1.71k]
  ------------------
  779|      0|         return if_match(req, "ECGDSA", {1, 3, 36, 3, 3, 2, 5, 2, 1});
  780|      0|      case 0x0C109:
  ------------------
  |  Branch (780:7): [True: 0, False: 1.71k]
  ------------------
  781|      0|         return if_match(req, "PKCS9.FriendlyName", {1, 2, 840, 113549, 1, 9, 20});
  782|      0|      case 0x0D012:
  ------------------
  |  Branch (782:7): [True: 0, False: 1.71k]
  ------------------
  783|      0|         return if_match(req, "SphincsPlus-shake-128s-r3.1", {1, 3, 6, 1, 4, 1, 25258, 1, 12, 1, 1});
  784|      0|      case 0x0DCE9:
  ------------------
  |  Branch (784:7): [True: 0, False: 1.71k]
  ------------------
  785|      0|         return if_match(req, "ClassicMcEliece_8192128f", {1, 3, 6, 1, 4, 1, 22554, 5, 1, 10});
  786|      0|      case 0x0E52A:
  ------------------
  |  Branch (786:7): [True: 0, False: 1.71k]
  ------------------
  787|      0|         return if_match(req, "numsp512d1", {1, 3, 6, 1, 4, 1, 25258, 4, 3});
  788|      0|      case 0x0F9CC:
  ------------------
  |  Branch (788:7): [True: 0, False: 1.71k]
  ------------------
  789|      0|         return if_match(req, "PKCS9.UnstructuredName", {1, 2, 840, 113549, 1, 9, 2});
  790|      0|      case 0x0FF45:
  ------------------
  |  Branch (790:7): [True: 0, False: 1.71k]
  ------------------
  791|      0|         return if_match(req, "Camellia-256/GCM", {0, 3, 4401, 5, 3, 1, 9, 46});
  792|      0|      case 0x1033D:
  ------------------
  |  Branch (792:7): [True: 0, False: 1.71k]
  ------------------
  793|      0|         return if_match(req, "DSA/SHA-3(384)", {2, 16, 840, 1, 101, 3, 4, 3, 7});
  794|      0|      case 0x1139D:
  ------------------
  |  Branch (794:7): [True: 0, False: 1.71k]
  ------------------
  795|      0|         return if_match(req, "secp192k1", {1, 3, 132, 0, 31});
  796|      0|      case 0x113D6:
  ------------------
  |  Branch (796:7): [True: 0, False: 1.71k]
  ------------------
  797|      0|         return if_match(req, "X520.DNQualifier", {2, 5, 4, 46});
  798|      0|      case 0x11A7A:
  ------------------
  |  Branch (798:7): [True: 0, False: 1.71k]
  ------------------
  799|      0|         return if_match(req, "secp192r1", {1, 2, 840, 10045, 3, 1, 1});
  800|      0|      case 0x12096:
  ------------------
  |  Branch (800:7): [True: 0, False: 1.71k]
  ------------------
  801|      0|         return if_match(req, "SM2_Kex", {1, 2, 156, 10197, 1, 301, 2});
  802|      0|      case 0x13FC1:
  ------------------
  |  Branch (802:7): [True: 0, False: 1.71k]
  ------------------
  803|      0|         return if_match(req, "X520.GenerationalQualifier", {2, 5, 4, 44});
  804|      0|      case 0x1445B:
  ------------------
  |  Branch (804:7): [True: 0, False: 1.71k]
  ------------------
  805|      0|         return if_match(req, "PKCS5.PBKDF2", {1, 2, 840, 113549, 1, 5, 12});
  806|      0|      case 0x1495D:
  ------------------
  |  Branch (806:7): [True: 0, False: 1.71k]
  ------------------
  807|      0|         return if_match(req, "eFrodoKEM-1344-AES", {1, 3, 6, 1, 4, 1, 25258, 1, 17, 3});
  808|      0|      case 0x14E30:
  ------------------
  |  Branch (808:7): [True: 0, False: 1.71k]
  ------------------
  809|      0|         return if_match(req, "ClassicMcEliece_460896", {1, 3, 6, 1, 4, 1, 22554, 5, 1, 3});
  810|      0|      case 0x14FB1:
  ------------------
  |  Branch (810:7): [True: 0, False: 1.71k]
  ------------------
  811|      0|         return if_match(req, "XMSS-draft12", {1, 3, 6, 1, 4, 1, 25258, 1, 8});
  812|      0|      case 0x156E3:
  ------------------
  |  Branch (812:7): [True: 0, False: 1.71k]
  ------------------
  813|      0|         return if_match(req, "Compression.Zlib", {1, 2, 840, 113549, 1, 9, 16, 3, 8});
  814|      0|      case 0x1579E:
  ------------------
  |  Branch (814:7): [True: 0, False: 1.71k]
  ------------------
  815|      0|         return if_match(req, "Streebog-512", {1, 2, 643, 7, 1, 1, 2, 3});
  816|      0|      case 0x1701A:
  ------------------
  |  Branch (816:7): [True: 0, False: 1.71k]
  ------------------
  817|      0|         return if_match(req, "X509v3.AnyExtendedKeyUsage", {2, 5, 29, 37, 0});
  818|      0|      case 0x175EF:
  ------------------
  |  Branch (818:7): [True: 0, False: 1.71k]
  ------------------
  819|      0|         return if_match(req, "Kyber-1024-90s-r3", {1, 3, 6, 1, 4, 1, 25258, 1, 11, 3});
  820|      0|      case 0x17709:
  ------------------
  |  Branch (820:7): [True: 0, False: 1.71k]
  ------------------
  821|      0|         return if_match(req, "X520.GivenName", {2, 5, 4, 42});
  822|      0|      case 0x17AD9:
  ------------------
  |  Branch (822:7): [True: 0, False: 1.71k]
  ------------------
  823|      0|         return if_match(req, "RSA/PKCS1v15(SM3)", {1, 2, 156, 10197, 1, 504});
  824|      0|      case 0x17CE2:
  ------------------
  |  Branch (824:7): [True: 0, False: 1.71k]
  ------------------
  825|      0|         return if_match(req, "SLH-DSA-SHA2-256f", {2, 16, 840, 1, 101, 3, 4, 3, 25});
  826|      0|      case 0x17CEF:
  ------------------
  |  Branch (826:7): [True: 0, False: 1.71k]
  ------------------
  827|      0|         return if_match(req, "SLH-DSA-SHA2-256s", {2, 16, 840, 1, 101, 3, 4, 3, 24});
  828|      0|      case 0x18618:
  ------------------
  |  Branch (828:7): [True: 0, False: 1.71k]
  ------------------
  829|      0|         return if_match(req, "FrodoKEM-976-AES", {1, 3, 6, 1, 4, 1, 25258, 1, 15, 2});
  830|      0|      case 0x19480:
  ------------------
  |  Branch (830:7): [True: 0, False: 1.71k]
  ------------------
  831|      0|         return if_match(req, "eFrodoKEM-1344-SHAKE", {1, 3, 6, 1, 4, 1, 25258, 1, 16, 3});
  832|      0|      case 0x1958A:
  ------------------
  |  Branch (832:7): [True: 0, False: 1.71k]
  ------------------
  833|      0|         return if_match(req, "X509v3.InvalidityDate", {2, 5, 29, 24});
  834|      0|      case 0x19851:
  ------------------
  |  Branch (834:7): [True: 0, False: 1.71k]
  ------------------
  835|      0|         return if_match(req, "DSA/SHA-1", {1, 2, 840, 10040, 4, 3});
  836|      0|      case 0x1B2E7:
  ------------------
  |  Branch (836:7): [True: 0, False: 1.71k]
  ------------------
  837|      0|         return if_match(req, "KeyWrap.AES-128", {2, 16, 840, 1, 101, 3, 4, 1, 5});
  838|      0|      case 0x1B9BE:
  ------------------
  |  Branch (838:7): [True: 0, False: 1.71k]
  ------------------
  839|      0|         return if_match(req, "KeyWrap.AES-192", {2, 16, 840, 1, 101, 3, 4, 1, 25});
  840|      0|      case 0x1D439:
  ------------------
  |  Branch (840:7): [True: 0, False: 1.71k]
  ------------------
  841|      0|         return if_match(req, "SphincsPlus-haraka-192f-r3.1", {1, 3, 6, 1, 4, 1, 25258, 1, 12, 3, 4});
  842|      0|      case 0x2065B:
  ------------------
  |  Branch (842:7): [True: 0, False: 1.71k]
  ------------------
  843|      0|         return if_match(req, "KeyWrap.CAST-128", {1, 2, 840, 113533, 7, 66, 15});
  844|      0|      case 0x216A0:
  ------------------
  |  Branch (844:7): [True: 0, False: 1.71k]
  ------------------
  845|      0|         return if_match(req, "ML-KEM-512", {2, 16, 840, 1, 101, 3, 4, 4, 1});
  846|      0|      case 0x2216B:
  ------------------
  |  Branch (846:7): [True: 0, False: 1.71k]
  ------------------
  847|      0|         return if_match(req, "GOST-34.10-2012-512", {1, 2, 643, 7, 1, 1, 1, 2});
  848|      0|      case 0x22C2C:
  ------------------
  |  Branch (848:7): [True: 0, False: 1.71k]
  ------------------
  849|      0|         return if_match(req, "ElGamal", {1, 3, 6, 1, 4, 1, 3029, 1, 2, 1});
  850|      0|      case 0x2559A:
  ------------------
  |  Branch (850:7): [True: 0, False: 1.71k]
  ------------------
  851|      0|         return if_match(req, "X520.Initials", {2, 5, 4, 43});
  852|      0|      case 0x271AC:
  ------------------
  |  Branch (852:7): [True: 0, False: 1.71k]
  ------------------
  853|      0|         return if_match(req, "PKIX.AutonomousSysIds", {1, 3, 6, 1, 5, 5, 7, 1, 8});
  854|      0|      case 0x2808B:
  ------------------
  |  Branch (854:7): [True: 0, False: 1.71k]
  ------------------
  855|      0|         return if_match(req, "PKCS7.Data", {1, 2, 840, 113549, 1, 7, 1});
  856|      0|      case 0x281B8:
  ------------------
  |  Branch (856:7): [True: 0, False: 1.71k]
  ------------------
  857|      0|         return if_match(req, "SphincsPlus-haraka-128s-r3.1", {1, 3, 6, 1, 4, 1, 25258, 1, 12, 3, 1});
  858|      0|      case 0x29999:
  ------------------
  |  Branch (858:7): [True: 0, False: 1.71k]
  ------------------
  859|      0|         return if_match(req, "DSA/SHA-3(256)", {2, 16, 840, 1, 101, 3, 4, 3, 6});
  860|      0|      case 0x2A83D:
  ------------------
  |  Branch (860:7): [True: 0, False: 1.71k]
  ------------------
  861|      0|         return if_match(req, "SHA-224", {2, 16, 840, 1, 101, 3, 4, 2, 4});
  862|      0|      case 0x2AB30:
  ------------------
  |  Branch (862:7): [True: 0, False: 1.71k]
  ------------------
  863|      0|         return if_match(req, "SHA-256", {2, 16, 840, 1, 101, 3, 4, 2, 1});
  864|      0|      case 0x2ABEF:
  ------------------
  |  Branch (864:7): [True: 0, False: 1.71k]
  ------------------
  865|      0|         return if_match(req, "KeyWrap.AES-256", {2, 16, 840, 1, 101, 3, 4, 1, 45});
  866|      0|      case 0x2BAEF:
  ------------------
  |  Branch (866:7): [True: 0, False: 1.71k]
  ------------------
  867|      0|         return if_match(req, "SM2_Sig/SM3", {1, 2, 156, 10197, 1, 501});
  868|      0|      case 0x2C39A:
  ------------------
  |  Branch (868:7): [True: 0, False: 1.71k]
  ------------------
  869|      0|         return if_match(req, "ECGDSA/RIPEMD-160", {1, 3, 36, 3, 3, 2, 5, 4, 1});
  870|      0|      case 0x2C54F:
  ------------------
  |  Branch (870:7): [True: 0, False: 1.71k]
  ------------------
  871|      0|         return if_match(req, "ECDSA/SHA-3(224)", {2, 16, 840, 1, 101, 3, 4, 3, 9});
  872|      0|      case 0x2EEA6:
  ------------------
  |  Branch (872:7): [True: 0, False: 1.71k]
  ------------------
  873|      0|         return if_match(req, "RSA/PKCS1v15(RIPEMD-160)", {1, 3, 36, 3, 3, 1, 2});
  874|      0|      case 0x2EFBA:
  ------------------
  |  Branch (874:7): [True: 0, False: 1.71k]
  ------------------
  875|      0|         return if_match(req, "Kyber-512-r3", {1, 3, 6, 1, 4, 1, 25258, 1, 7, 1});
  876|      0|      case 0x2F0AD:
  ------------------
  |  Branch (876:7): [True: 0, False: 1.71k]
  ------------------
  877|      0|         return if_match(req, "PKCS7.EncryptedData", {1, 2, 840, 113549, 1, 7, 6});
  878|      0|      case 0x2F219:
  ------------------
  |  Branch (878:7): [True: 0, False: 1.71k]
  ------------------
  879|      0|         return if_match(req, "PBE-SHA1-2DES", {1, 2, 840, 113549, 1, 12, 1, 4});
  880|      0|      case 0x3133E:
  ------------------
  |  Branch (880:7): [True: 0, False: 1.71k]
  ------------------
  881|      0|         return if_match(req, "SLH-DSA-SHA2-128f", {2, 16, 840, 1, 101, 3, 4, 3, 21});
  882|      0|      case 0x3134B:
  ------------------
  |  Branch (882:7): [True: 0, False: 1.71k]
  ------------------
  883|      0|         return if_match(req, "SLH-DSA-SHA2-128s", {2, 16, 840, 1, 101, 3, 4, 3, 20});
  884|      0|      case 0x3160D:
  ------------------
  |  Branch (884:7): [True: 0, False: 1.71k]
  ------------------
  885|      0|         return if_match(req, "RSA/PKCS1v15(SHA-3(224))", {2, 16, 840, 1, 101, 3, 4, 3, 13});
  886|      0|      case 0x319E0:
  ------------------
  |  Branch (886:7): [True: 0, False: 1.71k]
  ------------------
  887|      0|         return if_match(req, "GOST-34.10-2012-256/Streebog-256", {1, 2, 643, 7, 1, 1, 3, 2});
  888|      0|      case 0x31B3D:
  ------------------
  |  Branch (888:7): [True: 0, False: 1.71k]
  ------------------
  889|      0|         return if_match(req, "HMAC(SHA-512)", {1, 2, 840, 113549, 2, 11});
  890|      0|      case 0x31C6D:
  ------------------
  |  Branch (890:7): [True: 0, False: 1.71k]
  ------------------
  891|      0|         return if_match(req, "secp384r1", {1, 3, 132, 0, 34});
  892|      0|      case 0x32899:
  ------------------
  |  Branch (892:7): [True: 0, False: 1.71k]
  ------------------
  893|      0|         return if_match(req, "TripleDES/CBC", {1, 2, 840, 113549, 3, 7});
  894|      0|      case 0x33D04:
  ------------------
  |  Branch (894:7): [True: 0, False: 1.71k]
  ------------------
  895|      0|         return if_match(req, "PKCS12.SecretBag", {1, 2, 840, 113549, 1, 12, 10, 1, 5});
  896|      0|      case 0x3615D:
  ------------------
  |  Branch (896:7): [True: 0, False: 1.71k]
  ------------------
  897|      0|         return if_match(req, "FrodoKEM-976-SHAKE", {1, 3, 6, 1, 4, 1, 25258, 1, 14, 2});
  898|      0|      case 0x361B8:
  ------------------
  |  Branch (898:7): [True: 0, False: 1.71k]
  ------------------
  899|      0|         return if_match(req, "Ed25519", {1, 3, 101, 112});
  900|      0|      case 0x3649D:
  ------------------
  |  Branch (900:7): [True: 0, False: 1.71k]
  ------------------
  901|      0|         return if_match(req, "SHAKE-128", {2, 16, 840, 1, 101, 3, 4, 2, 11});
  902|      0|      case 0x36693:
  ------------------
  |  Branch (902:7): [True: 0, False: 1.71k]
  ------------------
  903|      0|         return if_match(req, "ClassicMcEliece_348864", {1, 3, 6, 1, 4, 1, 22554, 5, 1, 1});
  904|      0|      case 0x373C7:
  ------------------
  |  Branch (904:7): [True: 0, False: 1.71k]
  ------------------
  905|      0|         return if_match(req, "ML-DSA-4x4", {2, 16, 840, 1, 101, 3, 4, 3, 17});
  906|      0|      case 0x3750B:
  ------------------
  |  Branch (906:7): [True: 0, False: 1.71k]
  ------------------
  907|      0|         return if_match(req, "ClassicMcEliece_8192128", {1, 3, 6, 1, 4, 1, 22554, 5, 1, 9});
  908|      0|      case 0x39890:
  ------------------
  |  Branch (908:7): [True: 0, False: 1.71k]
  ------------------
  909|      0|         return if_match(req, "Ed448", {1, 3, 101, 113});
  910|      0|      case 0x3A438:
  ------------------
  |  Branch (910:7): [True: 0, False: 1.71k]
  ------------------
  911|      0|         return if_match(req, "SHA-384", {2, 16, 840, 1, 101, 3, 4, 2, 2});
  912|      0|      case 0x3A963:
  ------------------
  |  Branch (912:7): [True: 0, False: 1.71k]
  ------------------
  913|      0|         return if_match(req, "DH", {1, 2, 840, 10046, 2, 1});
  914|      0|      case 0x3AC83:
  ------------------
  |  Branch (914:7): [True: 0, False: 1.71k]
  ------------------
  915|      0|         return if_match(req, "MGF1", {1, 2, 840, 113549, 1, 1, 8});
  916|      0|      case 0x3ACBA:
  ------------------
  |  Branch (916:7): [True: 0, False: 1.71k]
  ------------------
  917|      0|         return if_match(req, "X509v3.IssuerAlternativeName", {2, 5, 29, 18});
  918|      0|      case 0x3B273:
  ------------------
  |  Branch (918:7): [True: 0, False: 1.71k]
  ------------------
  919|      0|         return if_match(req, "KeyWrap.TripleDES", {1, 2, 840, 113549, 1, 9, 16, 3, 6});
  920|      0|      case 0x3B91E:
  ------------------
  |  Branch (920:7): [True: 0, False: 1.71k]
  ------------------
  921|      0|         return if_match(req, "X509v3.PrivateKeyUsagePeriod", {2, 5, 29, 16});
  922|      0|      case 0x3BC8A:
  ------------------
  |  Branch (922:7): [True: 0, False: 1.71k]
  ------------------
  923|      0|         return if_match(req, "SLH-DSA-SHAKE-192f", {2, 16, 840, 1, 101, 3, 4, 3, 29});
  924|      0|      case 0x3BC97:
  ------------------
  |  Branch (924:7): [True: 0, False: 1.71k]
  ------------------
  925|      0|         return if_match(req, "SLH-DSA-SHAKE-192s", {2, 16, 840, 1, 101, 3, 4, 3, 28});
  926|      0|      case 0x3D127:
  ------------------
  |  Branch (926:7): [True: 0, False: 1.71k]
  ------------------
  927|      0|         return if_match(req, "DSA", {1, 2, 840, 10040, 4, 1});
  928|      0|      case 0x3E249:
  ------------------
  |  Branch (928:7): [True: 0, False: 1.71k]
  ------------------
  929|      0|         return if_match(req, "HSS-LMS", {1, 2, 840, 113549, 1, 9, 16, 3, 17});
  930|      0|      case 0x3E7D5:
  ------------------
  |  Branch (930:7): [True: 0, False: 1.71k]
  ------------------
  931|      0|         return if_match(req, "RSA/PKCS1v15(SHA-3(256))", {2, 16, 840, 1, 101, 3, 4, 3, 14});
  932|      0|      case 0x3F748:
  ------------------
  |  Branch (932:7): [True: 0, False: 1.71k]
  ------------------
  933|      0|         return if_match(req, "GOST.OGRN", {1, 2, 643, 100, 1});
  934|      0|      case 0x3F99F:
  ------------------
  |  Branch (934:7): [True: 0, False: 1.71k]
  ------------------
  935|      0|         return if_match(req, "X509v3.BasicConstraints", {2, 5, 29, 19});
  936|      0|      case 0x40726:
  ------------------
  |  Branch (936:7): [True: 0, False: 1.71k]
  ------------------
  937|      0|         return if_match(req, "SHA-3(512)", {2, 16, 840, 1, 101, 3, 4, 2, 10});
  938|      0|      case 0x407BF:
  ------------------
  |  Branch (938:7): [True: 0, False: 1.71k]
  ------------------
  939|      0|         return if_match(req, "ML-KEM-768", {2, 16, 840, 1, 101, 3, 4, 4, 2});
  940|      0|      case 0x41334:
  ------------------
  |  Branch (940:7): [True: 0, False: 1.71k]
  ------------------
  941|      0|         return if_match(req, "ECDSA/SHA-3(384)", {2, 16, 840, 1, 101, 3, 4, 3, 11});
  942|      0|      case 0x42DF3:
  ------------------
  |  Branch (942:7): [True: 0, False: 1.71k]
  ------------------
  943|      0|         return if_match(req, "X509v3.CRLDistributionPoints", {2, 5, 29, 31});
  944|      0|      case 0x437FB:
  ------------------
  |  Branch (944:7): [True: 0, False: 1.71k]
  ------------------
  945|      0|         return if_match(req, "brainpool160r1", {1, 3, 36, 3, 3, 2, 8, 1, 1, 1});
  946|      0|      case 0x441F5:
  ------------------
  |  Branch (946:7): [True: 0, False: 1.71k]
  ------------------
  947|      0|         return if_match(req, "gost_256A", {1, 2, 643, 7, 1, 2, 1, 1, 1});
  948|      0|      case 0x441F6:
  ------------------
  |  Branch (948:7): [True: 0, False: 1.71k]
  ------------------
  949|      0|         return if_match(req, "gost_256B", {1, 2, 643, 7, 1, 2, 1, 1, 2});
  950|      0|      case 0x44221:
  ------------------
  |  Branch (950:7): [True: 0, False: 1.71k]
  ------------------
  951|      0|         return if_match(req, "GOST-34.10-2012-512/Streebog-512", {1, 2, 643, 7, 1, 1, 3, 3});
  952|      0|      case 0x44322:
  ------------------
  |  Branch (952:7): [True: 0, False: 1.71k]
  ------------------
  953|      0|         return if_match(req, "ClassicMcEliece_6960119pc", {1, 3, 6, 1, 4, 1, 25258, 1, 18, 3});
  954|      0|      case 0x44973:
  ------------------
  |  Branch (954:7): [True: 0, False: 1.71k]
  ------------------
  955|      0|         return if_match(req, "Kyber-512-90s-r3", {1, 3, 6, 1, 4, 1, 25258, 1, 11, 1});
  956|      0|      case 0x45C27:
  ------------------
  |  Branch (956:7): [True: 0, False: 1.71k]
  ------------------
  957|      0|         return if_match(req, "RSA/PKCS1v15(SHA-512-256)", {1, 2, 840, 113549, 1, 1, 16});
  958|      0|      case 0x45C85:
  ------------------
  |  Branch (958:7): [True: 0, False: 1.71k]
  ------------------
  959|      0|         return if_match(req, "X509v3.ReasonCode", {2, 5, 29, 21});
  960|      0|      case 0x45DA5:
  ------------------
  |  Branch (960:7): [True: 0, False: 1.71k]
  ------------------
  961|      0|         return if_match(req, "SHAKE-256", {2, 16, 840, 1, 101, 3, 4, 2, 12});
  962|      0|      case 0x4663C:
  ------------------
  |  Branch (962:7): [True: 0, False: 1.71k]
  ------------------
  963|      0|         return if_match(req, "X509v3.PolicyConstraints", {2, 5, 29, 36});
  964|      0|      case 0x480F7:
  ------------------
  |  Branch (964:7): [True: 0, False: 1.71k]
  ------------------
  965|      0|         return if_match(req, "Serpent/OCB", {1, 3, 6, 1, 4, 1, 25258, 3, 2, 4});
  966|      0|      case 0x48627:
  ------------------
  |  Branch (966:7): [True: 0, False: 1.71k]
  ------------------
  967|      0|         return if_match(req, "Dilithium-4x4-AES-r3", {1, 3, 6, 1, 4, 1, 25258, 1, 10, 1});
  968|      0|      case 0x48861:
  ------------------
  |  Branch (968:7): [True: 0, False: 1.71k]
  ------------------
  969|      0|         return if_match(req, "ChaCha20Poly1305", {1, 2, 840, 113549, 1, 9, 16, 3, 18});
  970|      0|      case 0x4A292:
  ------------------
  |  Branch (970:7): [True: 0, False: 1.71k]
  ------------------
  971|      0|         return if_match(req, "frp256v1", {1, 2, 250, 1, 223, 101, 256, 1});
  972|      0|      case 0x4A9EE:
  ------------------
  |  Branch (972:7): [True: 0, False: 1.71k]
  ------------------
  973|      0|         return if_match(req, "ClassicMcEliece_6960119f", {1, 3, 6, 1, 4, 1, 22554, 5, 1, 8});
  974|      0|      case 0x4BF87:
  ------------------
  |  Branch (974:7): [True: 0, False: 1.71k]
  ------------------
  975|      0|         return if_match(req, "PKIX.TNAuthList", {1, 3, 6, 1, 5, 5, 7, 1, 26});
  976|      0|      case 0x4C088:
  ------------------
  |  Branch (976:7): [True: 0, False: 1.71k]
  ------------------
  977|      0|         return if_match(req, "eFrodoKEM-976-AES", {1, 3, 6, 1, 4, 1, 25258, 1, 17, 2});
  978|      0|      case 0x4C513:
  ------------------
  |  Branch (978:7): [True: 0, False: 1.71k]
  ------------------
  979|      0|         return if_match(req, "DSA/SHA-224", {2, 16, 840, 1, 101, 3, 4, 3, 1});
  980|      0|      case 0x4C806:
  ------------------
  |  Branch (980:7): [True: 0, False: 1.71k]
  ------------------
  981|      0|         return if_match(req, "DSA/SHA-256", {2, 16, 840, 1, 101, 3, 4, 3, 2});
  982|      0|      case 0x4D740:
  ------------------
  |  Branch (982:7): [True: 0, False: 1.71k]
  ------------------
  983|      0|         return if_match(req, "X509v3.AnyPolicy", {2, 5, 29, 32, 0});
  984|      0|      case 0x4DE49:
  ------------------
  |  Branch (984:7): [True: 0, False: 1.71k]
  ------------------
  985|      0|         return if_match(req, "RSA/PKCS1v15(SHA-512)", {1, 2, 840, 113549, 1, 1, 13});
  986|      0|      case 0x4ED5D:
  ------------------
  |  Branch (986:7): [True: 0, False: 1.71k]
  ------------------
  987|      0|         return if_match(req, "CAST-128/CBC", {1, 2, 840, 113533, 7, 66, 10});
  988|      0|      case 0x4FCDC:
  ------------------
  |  Branch (988:7): [True: 0, False: 1.71k]
  ------------------
  989|      0|         return if_match(req, "RSA", {1, 2, 840, 113549, 1, 1, 1});
  990|      0|      case 0x501CB:
  ------------------
  |  Branch (990:7): [True: 0, False: 1.71k]
  ------------------
  991|      0|         return if_match(req, "ECDSA/SHA-224", {1, 2, 840, 10045, 4, 3, 1});
  992|      0|      case 0x50395:
  ------------------
  |  Branch (992:7): [True: 0, False: 1.71k]
  ------------------
  993|      0|         return if_match(req, "GOST-34.10/GOST-R-34.11-94", {1, 2, 643, 2, 2, 3});
  994|      0|      case 0x504BE:
  ------------------
  |  Branch (994:7): [True: 0, False: 1.71k]
  ------------------
  995|      0|         return if_match(req, "ECDSA/SHA-256", {1, 2, 840, 10045, 4, 3, 2});
  996|      0|      case 0x509C3:
  ------------------
  |  Branch (996:7): [True: 0, False: 1.71k]
  ------------------
  997|      0|         return if_match(req, "brainpool192r1", {1, 3, 36, 3, 3, 2, 8, 1, 1, 3});
  998|      0|      case 0x509F9:
  ------------------
  |  Branch (998:7): [True: 0, False: 1.71k]
  ------------------
  999|      0|         return if_match(req, "PKCS9.ContentType", {1, 2, 840, 113549, 1, 9, 3});
 1000|      0|      case 0x50B26:
  ------------------
  |  Branch (1000:7): [True: 0, False: 1.71k]
  ------------------
 1001|      0|         return if_match(req, "FrodoKEM-640-AES", {1, 3, 6, 1, 4, 1, 25258, 1, 15, 1});
 1002|      0|      case 0x50D78:
  ------------------
  |  Branch (1002:7): [True: 0, False: 1.71k]
  ------------------
 1003|      0|         return if_match(req, "x962_p192v2", {1, 2, 840, 10045, 3, 1, 2});
 1004|      0|      case 0x50D79:
  ------------------
  |  Branch (1004:7): [True: 0, False: 1.71k]
  ------------------
 1005|      0|         return if_match(req, "x962_p192v3", {1, 2, 840, 10045, 3, 1, 3});
 1006|      0|      case 0x51DC6:
  ------------------
  |  Branch (1006:7): [True: 0, False: 1.71k]
  ------------------
 1007|      0|         return if_match(req, "AES-128/OCB", {1, 3, 6, 1, 4, 1, 25258, 3, 2, 1});
 1008|      0|      case 0x52DB6:
  ------------------
  |  Branch (1008:7): [True: 0, False: 1.71k]
  ------------------
 1009|      0|         return if_match(req, "HMAC(SHA-224)", {1, 2, 840, 113549, 2, 8});
 1010|      0|      case 0x53E11:
  ------------------
  |  Branch (1010:7): [True: 0, False: 1.71k]
  ------------------
 1011|      0|         return if_match(req, "FrodoKEM-1344-SHAKE", {1, 3, 6, 1, 4, 1, 25258, 1, 14, 3});
 1012|      0|      case 0x54012:
  ------------------
  |  Branch (1012:7): [True: 0, False: 1.71k]
  ------------------
 1013|      0|         return if_match(req, "PKIX.TimeStamping", {1, 3, 6, 1, 5, 5, 7, 3, 8});
 1014|      0|      case 0x5407A:
  ------------------
  |  Branch (1014:7): [True: 0, False: 1.71k]
  ------------------
 1015|      0|         return if_match(req, "Serpent/CBC", {1, 3, 6, 1, 4, 1, 25258, 3, 1});
 1016|      0|      case 0x5576D:
  ------------------
  |  Branch (1016:7): [True: 0, False: 1.71k]
  ------------------
 1017|      0|         return if_match(req, "SphincsPlus-sha2-128f-r3.1", {1, 3, 6, 1, 4, 1, 25258, 1, 12, 2, 2});
 1018|      0|      case 0x55EF6:
  ------------------
  |  Branch (1018:7): [True: 0, False: 1.71k]
  ------------------
 1019|      0|         return if_match(req, "AES-192/OCB", {1, 3, 6, 1, 4, 1, 25258, 3, 2, 2});
 1020|      0|      case 0x55FFA:
  ------------------
  |  Branch (1020:7): [True: 0, False: 1.71k]
  ------------------
 1021|      0|         return if_match(req, "ML-DSA-6x5", {2, 16, 840, 1, 101, 3, 4, 3, 18});
 1022|      0|      case 0x56826:
  ------------------
  |  Branch (1022:7): [True: 0, False: 1.71k]
  ------------------
 1023|      0|         return if_match(req, "brainpool320r1", {1, 3, 36, 3, 3, 2, 8, 1, 1, 9});
 1024|      0|      case 0x56D0D:
  ------------------
  |  Branch (1024:7): [True: 0, False: 1.71k]
  ------------------
 1025|      0|         return if_match(req, "SphincsPlus-shake-128f-r3.1", {1, 3, 6, 1, 4, 1, 25258, 1, 12, 1, 2});
 1026|      0|      case 0x57077:
  ------------------
  |  Branch (1026:7): [True: 0, False: 1.71k]
  ------------------
 1027|      0|         return if_match(req, "XMSS-draft6", {1, 3, 6, 1, 4, 1, 25258, 1, 5});
 1028|      0|      case 0x5818B:
  ------------------
  |  Branch (1028:7): [True: 0, False: 1.71k]
  ------------------
 1029|      0|         return if_match(req, "ECGDSA/SHA-224", {1, 3, 36, 3, 3, 2, 5, 4, 3});
 1030|      0|      case 0x5847E:
  ------------------
  |  Branch (1030:7): [True: 0, False: 1.71k]
  ------------------
 1031|      0|         return if_match(req, "ECGDSA/SHA-256", {1, 3, 36, 3, 3, 2, 5, 4, 4});
 1032|      0|      case 0x5898B:
  ------------------
  |  Branch (1032:7): [True: 0, False: 1.71k]
  ------------------
 1033|      0|         return if_match(req, "SHA-512", {2, 16, 840, 1, 101, 3, 4, 2, 3});
 1034|      0|      case 0x58991:
  ------------------
  |  Branch (1034:7): [True: 0, False: 1.71k]
  ------------------
 1035|      0|         return if_match(req, "PKIX.OCSP.NoCheck", {1, 3, 6, 1, 5, 5, 7, 48, 1, 5});
 1036|      0|      case 0x59717:
  ------------------
  |  Branch (1036:7): [True: 0, False: 1.71k]
  ------------------
 1037|      0|         return if_match(req, "X509v3.SubjectKeyIdentifier", {2, 5, 29, 14});
 1038|      0|      case 0x5A1E1:
  ------------------
  |  Branch (1038:7): [True: 0, False: 1.71k]
  ------------------
 1039|      0|         return if_match(req, "PKCS12.KeyBag", {1, 2, 840, 113549, 1, 12, 10, 1, 1});
 1040|      0|      case 0x5A570:
  ------------------
  |  Branch (1040:7): [True: 0, False: 1.71k]
  ------------------
 1041|      0|         return if_match(req, "X520.CommonName", {2, 5, 4, 3});
 1042|      0|      case 0x5A990:
  ------------------
  |  Branch (1042:7): [True: 0, False: 1.71k]
  ------------------
 1043|      0|         return if_match(req, "ECDSA/SHA-3(256)", {2, 16, 840, 1, 101, 3, 4, 3, 10});
 1044|      0|      case 0x5AB0E:
  ------------------
  |  Branch (1044:7): [True: 0, False: 1.71k]
  ------------------
 1045|      0|         return if_match(req, "SphincsPlus-sha2-256s-r3.1", {1, 3, 6, 1, 4, 1, 25258, 1, 12, 2, 5});
 1046|      0|      case 0x5AC4A:
  ------------------
  |  Branch (1046:7): [True: 0, False: 1.71k]
  ------------------
 1047|      0|         return if_match(req, "X520.Surname", {2, 5, 4, 4});
 1048|      0|      case 0x5AF2C:
  ------------------
  |  Branch (1048:7): [True: 0, False: 1.71k]
  ------------------
 1049|      0|         return if_match(req, "ClassicMcEliece_8192128pc", {1, 3, 6, 1, 4, 1, 25258, 1, 18, 5});
 1050|      0|      case 0x5BC39:
  ------------------
  |  Branch (1050:7): [True: 0, False: 1.71k]
  ------------------
 1051|      0|         return if_match(req, "X509v3.KeyUsage", {2, 5, 29, 15});
 1052|      0|      case 0x5BDDB:
  ------------------
  |  Branch (1052:7): [True: 0, False: 1.71k]
  ------------------
 1053|      0|         return if_match(req, "numsp256d1", {1, 3, 6, 1, 4, 1, 25258, 4, 1});
 1054|      0|      case 0x5C0AE:
  ------------------
  |  Branch (1054:7): [True: 0, False: 1.71k]
  ------------------
 1055|      0|         return if_match(req, "SphincsPlus-shake-256s-r3.1", {1, 3, 6, 1, 4, 1, 25258, 1, 12, 1, 5});
 1056|      0|      case 0x5C10E:
  ------------------
  |  Branch (1056:7): [True: 0, False: 1.71k]
  ------------------
 1057|      0|         return if_match(req, "DSA/SHA-384", {2, 16, 840, 1, 101, 3, 4, 3, 3});
 1058|      0|      case 0x5CFE5:
  ------------------
  |  Branch (1058:7): [True: 0, False: 1.71k]
  ------------------
 1059|      0|         return if_match(req, "PKCS9.X509Certificate", {1, 2, 840, 113549, 1, 9, 22, 1});
 1060|      0|      case 0x5D1CF:
  ------------------
  |  Branch (1060:7): [True: 0, False: 1.71k]
  ------------------
 1061|      0|         return if_match(req, "X520.SerialNumber", {2, 5, 4, 5});
 1062|      0|      case 0x5D375:
  ------------------
  |  Branch (1062:7): [True: 0, False: 1.71k]
  ------------------
 1063|      0|         return if_match(req, "SM4/OCB", {1, 2, 156, 10197, 1, 104, 100});
 1064|      0|      case 0x5DD49:
  ------------------
  |  Branch (1064:7): [True: 0, False: 1.71k]
  ------------------
 1065|      0|         return if_match(req, "AES-128/CBC", {2, 16, 840, 1, 101, 3, 4, 1, 2});
 1066|      0|      case 0x5DE4E:
  ------------------
  |  Branch (1066:7): [True: 0, False: 1.71k]
  ------------------
 1067|      0|         return if_match(req, "AES-128/CCM", {2, 16, 840, 1, 101, 3, 4, 1, 7});
 1068|      0|      case 0x5DF23:
  ------------------
  |  Branch (1068:7): [True: 0, False: 1.71k]
  ------------------
 1069|      0|         return if_match(req, "HMAC(SHA-512-256)", {1, 2, 840, 113549, 2, 13});
 1070|      0|      case 0x5ED04:
  ------------------
  |  Branch (1070:7): [True: 0, False: 1.71k]
  ------------------
 1071|      0|         return if_match(req, "SM2", {1, 2, 156, 10197, 1, 301, 1});
 1072|      0|      case 0x5ED05:
  ------------------
  |  Branch (1072:7): [True: 0, False: 1.71k]
  ------------------
 1073|      0|         return if_match(req, "SM3", {1, 2, 156, 10197, 1, 401});
 1074|      0|      case 0x5FDC6:
  ------------------
  |  Branch (1074:7): [True: 0, False: 1.71k]
  ------------------
 1075|      0|         return if_match(req, "ECDSA/SHA-384", {1, 2, 840, 10045, 4, 3, 3});
 1076|      0|      case 0x6199F:
  ------------------
  |  Branch (1076:7): [True: 0, False: 1.71k]
  ------------------
 1077|      0|         return if_match(req, "SHA-3(224)", {2, 16, 840, 1, 101, 3, 4, 2, 7});
 1078|      0|      case 0x61E79:
  ------------------
  |  Branch (1078:7): [True: 0, False: 1.71k]
  ------------------
 1079|      0|         return if_match(req, "AES-192/CBC", {2, 16, 840, 1, 101, 3, 4, 1, 22});
 1080|      0|      case 0x61F7E:
  ------------------
  |  Branch (1080:7): [True: 0, False: 1.71k]
  ------------------
 1081|      0|         return if_match(req, "AES-192/CCM", {2, 16, 840, 1, 101, 3, 4, 1, 27});
 1082|      0|      case 0x64947:
  ------------------
  |  Branch (1082:7): [True: 0, False: 1.71k]
  ------------------
 1083|      0|         return if_match(req, "OpenPGP.Ed25519", {1, 3, 6, 1, 4, 1, 11591, 15, 1});
 1084|      0|      case 0x652E7:
  ------------------
  |  Branch (1084:7): [True: 0, False: 1.71k]
  ------------------
 1085|      0|         return if_match(req, "sm2p256v1", {1, 2, 156, 10197, 1, 301});
 1086|      0|      case 0x6697B:
  ------------------
  |  Branch (1086:7): [True: 0, False: 1.71k]
  ------------------
 1087|      0|         return if_match(req, "FrodoKEM-1344-AES", {1, 3, 6, 1, 4, 1, 25258, 1, 15, 3});
 1088|      0|      case 0x67B2C:
  ------------------
  |  Branch (1088:7): [True: 0, False: 1.71k]
  ------------------
 1089|      0|         return if_match(req, "X520.State", {2, 5, 4, 8});
 1090|      0|      case 0x67B9B:
  ------------------
  |  Branch (1090:7): [True: 0, False: 1.71k]
  ------------------
 1091|      0|         return if_match(req, "HMAC(SHA-384)", {1, 2, 840, 113549, 2, 10});
 1092|      0|      case 0x67D86:
  ------------------
  |  Branch (1092:7): [True: 0, False: 1.71k]
  ------------------
 1093|      0|         return if_match(req, "ECGDSA/SHA-384", {1, 3, 36, 3, 3, 2, 5, 4, 5});
 1094|      0|      case 0x68A0B:
  ------------------
  |  Branch (1094:7): [True: 0, False: 1.71k]
  ------------------
 1095|      0|         return if_match(req, "Camellia-128/OCB", {1, 3, 6, 1, 4, 1, 25258, 3, 2, 6});
 1096|      0|      case 0x68E33:
  ------------------
  |  Branch (1096:7): [True: 0, False: 1.71k]
  ------------------
 1097|      0|         return if_match(req, "PKCS9.ExtensionRequest", {1, 2, 840, 113549, 1, 9, 14});
 1098|  1.71k|      case 0x69126:
  ------------------
  |  Branch (1098:7): [True: 1.71k, False: 0]
  ------------------
 1099|  1.71k|         return if_match(req, "X509v3.SubjectAlternativeName", {2, 5, 29, 17});
 1100|      0|      case 0x692F8:
  ------------------
  |  Branch (1100:7): [True: 0, False: 1.71k]
  ------------------
 1101|      0|         return if_match(req, "SM4/CBC", {1, 2, 156, 10197, 1, 104, 2});
 1102|      0|      case 0x695E1:
  ------------------
  |  Branch (1102:7): [True: 0, False: 1.71k]
  ------------------
 1103|      0|         return if_match(req, "Dilithium-4x4-r3", {1, 3, 6, 1, 4, 1, 25258, 1, 9, 1});
 1104|      0|      case 0x696DC:
  ------------------
  |  Branch (1104:7): [True: 0, False: 1.71k]
  ------------------
 1105|      0|         return if_match(req, "PKIX.IpAddrBlocks", {1, 3, 6, 1, 5, 5, 7, 1, 7});
 1106|      0|      case 0x6A7CA:
  ------------------
  |  Branch (1106:7): [True: 0, False: 1.71k]
  ------------------
 1107|      0|         return if_match(req, "ECDSA", {1, 2, 840, 10045, 2, 1});
 1108|      0|      case 0x6BD26:
  ------------------
  |  Branch (1108:7): [True: 0, False: 1.71k]
  ------------------
 1109|      0|         return if_match(req, "GOST.INN", {1, 2, 643, 3, 131, 1, 1});
 1110|      0|      case 0x6CB3B:
  ------------------
  |  Branch (1110:7): [True: 0, False: 1.71k]
  ------------------
 1111|      0|         return if_match(req, "Camellia-192/OCB", {1, 3, 6, 1, 4, 1, 25258, 3, 2, 7});
 1112|      0|      case 0x6E602:
  ------------------
  |  Branch (1112:7): [True: 0, False: 1.71k]
  ------------------
 1113|      0|         return if_match(req, "Dilithium-8x7-r3", {1, 3, 6, 1, 4, 1, 25258, 1, 9, 3});
 1114|      0|      case 0x6F0C2:
  ------------------
  |  Branch (1114:7): [True: 0, False: 1.71k]
  ------------------
 1115|      0|         return if_match(req, "RSA/PKCS1v15(SHA-224)", {1, 2, 840, 113549, 1, 1, 14});
 1116|      0|      case 0x6F9F8:
  ------------------
  |  Branch (1116:7): [True: 0, False: 1.71k]
  ------------------
 1117|      0|         return if_match(req, "PKCS12.SafeContentsBag", {1, 2, 840, 113549, 1, 12, 10, 1, 6});
 1118|      0|      case 0x6FB26:
  ------------------
  |  Branch (1118:7): [True: 0, False: 1.71k]
  ------------------
 1119|      0|         return if_match(req, "PKIX.AuthorityInformationAccess", {1, 3, 6, 1, 5, 5, 7, 1, 1});
 1120|      0|      case 0x70BB6:
  ------------------
  |  Branch (1120:7): [True: 0, False: 1.71k]
  ------------------
 1121|      0|         return if_match(req, "brainpool384r1", {1, 3, 36, 3, 3, 2, 8, 1, 1, 11});
 1122|      0|      case 0x70EA6:
  ------------------
  |  Branch (1122:7): [True: 0, False: 1.71k]
  ------------------
 1123|      0|         return if_match(req, "PKCS12.PKCS8ShroudedKeyBag", {1, 2, 840, 113549, 1, 12, 10, 1, 2});
 1124|      0|      case 0x71EB3:
  ------------------
  |  Branch (1124:7): [True: 0, False: 1.71k]
  ------------------
 1125|      0|         return if_match(req, "SphincsPlus-haraka-128f-r3.1", {1, 3, 6, 1, 4, 1, 25258, 1, 12, 3, 2});
 1126|      0|      case 0x7382C:
  ------------------
  |  Branch (1126:7): [True: 0, False: 1.71k]
  ------------------
 1127|      0|         return if_match(req, "ML-KEM-1024", {2, 16, 840, 1, 101, 3, 4, 4, 3});
 1128|      0|      case 0x743BD:
  ------------------
  |  Branch (1128:7): [True: 0, False: 1.71k]
  ------------------
 1129|      0|         return if_match(req, "AES-256/OCB", {1, 3, 6, 1, 4, 1, 25258, 3, 2, 3});
 1130|      0|      case 0x7498E:
  ------------------
  |  Branch (1130:7): [True: 0, False: 1.71k]
  ------------------
 1131|      0|         return if_match(req, "Camellia-128/CBC", {1, 2, 392, 200011, 61, 1, 1, 1, 2});
 1132|      0|      case 0x74C2E:
  ------------------
  |  Branch (1132:7): [True: 0, False: 1.71k]
  ------------------
 1133|      0|         return if_match(req, "ML-DSA-8x7", {2, 16, 840, 1, 101, 3, 4, 3, 19});
 1134|      0|      case 0x7505F:
  ------------------
  |  Branch (1134:7): [True: 0, False: 1.71k]
  ------------------
 1135|      0|         return if_match(req, "PKIX.XMPPAddr", {1, 3, 6, 1, 5, 5, 7, 8, 5});
 1136|      0|      case 0x7517A:
  ------------------
  |  Branch (1136:7): [True: 0, False: 1.71k]
  ------------------
 1137|      0|         return if_match(req, "RSA/PKCS1v15(MD2)", {1, 2, 840, 113549, 1, 1, 2});
 1138|      0|      case 0x7546B:
  ------------------
  |  Branch (1138:7): [True: 0, False: 1.71k]
  ------------------
 1139|      0|         return if_match(req, "RSA/PKCS1v15(MD5)", {1, 2, 840, 113549, 1, 1, 4});
 1140|      0|      case 0x75921:
  ------------------
  |  Branch (1140:7): [True: 0, False: 1.71k]
  ------------------
 1141|      0|         return if_match(req, "ClassicMcEliece_348864f", {1, 3, 6, 1, 4, 1, 22554, 5, 1, 2});
 1142|      0|      case 0x76784:
  ------------------
  |  Branch (1142:7): [True: 0, False: 1.71k]
  ------------------
 1143|      0|         return if_match(req, "SHA-3(384)", {2, 16, 840, 1, 101, 3, 4, 2, 9});
 1144|      0|      case 0x768FD:
  ------------------
  |  Branch (1144:7): [True: 0, False: 1.71k]
  ------------------
 1145|      0|         return if_match(req, "PKCS9.LocalKeyId", {1, 2, 840, 113549, 1, 9, 21});
 1146|      0|      case 0x76A19:
  ------------------
  |  Branch (1146:7): [True: 0, False: 1.71k]
  ------------------
 1147|      0|         return if_match(req, "brainpool512r1", {1, 3, 36, 3, 3, 2, 8, 1, 1, 13});
 1148|      0|      case 0x77254:
  ------------------
  |  Branch (1148:7): [True: 0, False: 1.71k]
  ------------------
 1149|      0|         return if_match(req, "SphincsPlus-haraka-256s-r3.1", {1, 3, 6, 1, 4, 1, 25258, 1, 12, 3, 5});
 1150|      0|      case 0x77ADC:
  ------------------
  |  Branch (1150:7): [True: 0, False: 1.71k]
  ------------------
 1151|      0|         return if_match(req, "secp224k1", {1, 3, 132, 0, 32});
 1152|      0|      case 0x781B9:
  ------------------
  |  Branch (1152:7): [True: 0, False: 1.71k]
  ------------------
 1153|      0|         return if_match(req, "secp224r1", {1, 3, 132, 0, 33});
 1154|      0|      case 0x78ABE:
  ------------------
  |  Branch (1154:7): [True: 0, False: 1.71k]
  ------------------
 1155|      0|         return if_match(req, "Camellia-192/CBC", {1, 2, 392, 200011, 61, 1, 1, 1, 3});
 1156|      0|      case 0x792F2:
  ------------------
  |  Branch (1156:7): [True: 0, False: 1.71k]
  ------------------
 1157|      0|         return if_match(req, "ClassicMcEliece_6688128pc", {1, 3, 6, 1, 4, 1, 25258, 1, 18, 1});
 1158|      0|      case 0x7A661:
  ------------------
  |  Branch (1158:7): [True: 0, False: 1.71k]
  ------------------
 1159|      0|         return if_match(req, "DSA/SHA-512", {2, 16, 840, 1, 101, 3, 4, 3, 4});
 1160|      0|      case 0x7A977:
  ------------------
  |  Branch (1160:7): [True: 0, False: 1.71k]
  ------------------
 1161|      0|         return if_match(req, "X509v3.ExtendedKeyUsage", {2, 5, 29, 37});
 1162|      0|      case 0x7AE67:
  ------------------
  |  Branch (1162:7): [True: 0, False: 1.71k]
  ------------------
 1163|      0|         return if_match(req, "SM2_Enc", {1, 2, 156, 10197, 1, 301, 3});
 1164|      0|      case 0x7B602:
  ------------------
  |  Branch (1164:7): [True: 0, False: 1.71k]
  ------------------
 1165|      0|         return if_match(req, "Twofish/OCB", {1, 3, 6, 1, 4, 1, 25258, 3, 2, 5});
 1166|      0|      case 0x7B9A1:
  ------------------
  |  Branch (1166:7): [True: 0, False: 1.71k]
  ------------------
 1167|      0|         return if_match(req, "SphincsPlus-sha2-192s-r3.1", {1, 3, 6, 1, 4, 1, 25258, 1, 12, 2, 3});
 1168|      0|      case 0x7BB0A:
  ------------------
  |  Branch (1168:7): [True: 0, False: 1.71k]
  ------------------
 1169|      0|         return if_match(req, "SLH-DSA-SHAKE-256f", {2, 16, 840, 1, 101, 3, 4, 3, 31});
 1170|      0|      case 0x7BB17:
  ------------------
  |  Branch (1170:7): [True: 0, False: 1.71k]
  ------------------
 1171|      0|         return if_match(req, "SLH-DSA-SHAKE-256s", {2, 16, 840, 1, 101, 3, 4, 3, 30});
 1172|      0|      case 0x7BCF3:
  ------------------
  |  Branch (1172:7): [True: 0, False: 1.71k]
  ------------------
 1173|      0|         return if_match(req, "PKIX.EmailProtection", {1, 3, 6, 1, 5, 5, 7, 3, 4});
 1174|      0|      case 0x7CC2C:
  ------------------
  |  Branch (1174:7): [True: 0, False: 1.71k]
  ------------------
 1175|      0|         return if_match(req, "SHA-512-256", {2, 16, 840, 1, 101, 3, 4, 2, 6});
 1176|      0|      case 0x7CF41:
  ------------------
  |  Branch (1176:7): [True: 0, False: 1.71k]
  ------------------
 1177|      0|         return if_match(req, "SphincsPlus-shake-192s-r3.1", {1, 3, 6, 1, 4, 1, 25258, 1, 12, 1, 3});
 1178|      0|      case 0x7DB91:
  ------------------
  |  Branch (1178:7): [True: 0, False: 1.71k]
  ------------------
 1179|      0|         return if_match(req, "GOST-34.10", {1, 2, 643, 2, 2, 19});
 1180|      0|      case 0x7E319:
  ------------------
  |  Branch (1180:7): [True: 0, False: 1.71k]
  ------------------
 1181|      0|         return if_match(req, "ECDSA/SHA-512", {1, 2, 840, 10045, 4, 3, 4});
 1182|      0|      case 0x7E874:
  ------------------
  |  Branch (1182:7): [True: 0, False: 1.71k]
  ------------------
 1183|      0|         return if_match(req, "ClassicMcEliece_6688128f", {1, 3, 6, 1, 4, 1, 22554, 5, 1, 6});
 1184|      0|      case 0x7EAAF:
  ------------------
  |  Branch (1184:7): [True: 0, False: 1.71k]
  ------------------
 1185|      0|         return if_match(req, "eFrodoKEM-640-SHAKE", {1, 3, 6, 1, 4, 1, 25258, 1, 16, 1});
 1186|      0|      case 0x7F51F:
  ------------------
  |  Branch (1186:7): [True: 0, False: 1.71k]
  ------------------
 1187|      0|         return if_match(req, "PKIX.IPsecTunnel", {1, 3, 6, 1, 5, 5, 7, 3, 6});
 1188|      0|      case 0x80272:
  ------------------
  |  Branch (1188:7): [True: 0, False: 1.71k]
  ------------------
 1189|      0|         return if_match(req, "X520.Organization", {2, 5, 4, 10});
 1190|      0|      case 0x80340:
  ------------------
  |  Branch (1190:7): [True: 0, False: 1.71k]
  ------------------
 1191|      0|         return if_match(req, "AES-256/CBC", {2, 16, 840, 1, 101, 3, 4, 1, 42});
 1192|      0|      case 0x80445:
  ------------------
  |  Branch (1192:7): [True: 0, False: 1.71k]
  ------------------
 1193|      0|         return if_match(req, "AES-256/CCM", {2, 16, 840, 1, 101, 3, 4, 1, 47});
 1194|      0|      case 0x811F7:
  ------------------
  |  Branch (1194:7): [True: 0, False: 1.71k]
  ------------------
 1195|      0|         return if_match(req, "HMAC(SHA-256)", {1, 2, 840, 113549, 2, 9});
 1196|      0|      case 0x82434:
  ------------------
  |  Branch (1196:7): [True: 0, False: 1.71k]
  ------------------
 1197|      0|         return if_match(req, "PKCS9.X509CRL", {1, 2, 840, 113549, 1, 9, 23, 1});
 1198|      0|      case 0x82B47:
  ------------------
  |  Branch (1198:7): [True: 0, False: 1.71k]
  ------------------
 1199|      0|         return if_match(req, "Threefish-512/CBC", {1, 3, 6, 1, 4, 1, 25258, 3, 2});
 1200|      0|      case 0x83EA7:
  ------------------
  |  Branch (1200:7): [True: 0, False: 1.71k]
  ------------------
 1201|      0|         return if_match(req, "RSA/PKCS1v15(SHA-384)", {1, 2, 840, 113549, 1, 1, 12});
 1202|      0|      case 0x84596:
  ------------------
  |  Branch (1202:7): [True: 0, False: 1.71k]
  ------------------
 1203|      0|         return if_match(req, "eFrodoKEM-640-AES", {1, 3, 6, 1, 4, 1, 25258, 1, 17, 1});
 1204|      0|      case 0x8469F:
  ------------------
  |  Branch (1204:7): [True: 0, False: 1.71k]
  ------------------
 1205|      0|         return if_match(req, "ClassicMcEliece_6960119pcf", {1, 3, 6, 1, 4, 1, 25258, 1, 18, 4});
 1206|      0|      case 0x84CA4:
  ------------------
  |  Branch (1206:7): [True: 0, False: 1.71k]
  ------------------
 1207|      0|         return if_match(req, "secp256k1", {1, 3, 132, 0, 10});
 1208|      0|      case 0x85381:
  ------------------
  |  Branch (1208:7): [True: 0, False: 1.71k]
  ------------------
 1209|      0|         return if_match(req, "secp256r1", {1, 2, 840, 10045, 3, 1, 7});
 1210|      0|      case 0x854FC:
  ------------------
  |  Branch (1210:7): [True: 0, False: 1.71k]
  ------------------
 1211|      0|         return if_match(req, "PKIX.IPsecUser", {1, 3, 6, 1, 5, 5, 7, 3, 7});
 1212|      0|      case 0x85F51:
  ------------------
  |  Branch (1212:7): [True: 0, False: 1.71k]
  ------------------
 1213|      0|         return if_match(req, "Serpent/SIV", {1, 3, 6, 1, 4, 1, 25258, 3, 4, 4});
 1214|      0|      case 0x862D9:
  ------------------
  |  Branch (1214:7): [True: 0, False: 1.71k]
  ------------------
 1215|      0|         return if_match(req, "ECGDSA/SHA-512", {1, 3, 36, 3, 3, 2, 5, 4, 6});
 1216|      0|      case 0x87585:
  ------------------
  |  Branch (1216:7): [True: 0, False: 1.71k]
  ------------------
 1217|      0|         return if_match(req, "Twofish/CBC", {1, 3, 6, 1, 4, 1, 25258, 3, 3});
 1218|      0|      case 0x877D1:
  ------------------
  |  Branch (1218:7): [True: 0, False: 1.71k]
  ------------------
 1219|      0|         return if_match(req, "PKCS9.EmailAddress", {1, 2, 840, 113549, 1, 9, 1});
 1220|      0|      case 0x87D27:
  ------------------
  |  Branch (1220:7): [True: 0, False: 1.71k]
  ------------------
 1221|      0|         return if_match(req, "PKIX.CertificateAuthorityIssuers", {1, 3, 6, 1, 5, 5, 7, 48, 2});
 1222|      0|      case 0x87E42:
  ------------------
  |  Branch (1222:7): [True: 0, False: 1.71k]
  ------------------
 1223|      0|         return if_match(req, "X509v3.AuthorityKeyIdentifier", {2, 5, 29, 35});
 1224|      0|      case 0x889B1:
  ------------------
  |  Branch (1224:7): [True: 0, False: 1.71k]
  ------------------
 1225|      0|         return if_match(req, "ECDSA/SHA-1", {1, 2, 840, 10045, 4, 1});
 1226|      0|      case 0x89658:
  ------------------
  |  Branch (1226:7): [True: 0, False: 1.71k]
  ------------------
 1227|      0|         return if_match(req, "PBE-PKCS5v20", {1, 2, 840, 113549, 1, 5, 13});
 1228|      0|      case 0x8976D:
  ------------------
  |  Branch (1228:7): [True: 0, False: 1.71k]
  ------------------
 1229|      0|         return if_match(req, "PKCS9.MessageDigest", {1, 2, 840, 113549, 1, 9, 4});
 1230|      0|      case 0x8B002:
  ------------------
  |  Branch (1230:7): [True: 0, False: 1.71k]
  ------------------
 1231|      0|         return if_match(req, "Camellia-256/OCB", {1, 3, 6, 1, 4, 1, 25258, 3, 2, 8});
 1232|      0|      case 0x8B935:
  ------------------
  |  Branch (1232:7): [True: 0, False: 1.71k]
  ------------------
 1233|      0|         return if_match(req, "ClassicMcEliece_6688128", {1, 3, 6, 1, 4, 1, 22554, 5, 1, 5});
 1234|      0|      case 0x8BB11:
  ------------------
  |  Branch (1234:7): [True: 0, False: 1.71k]
  ------------------
 1235|      0|         return if_match(req, "X509v3.NoRevocationAvailable", {2, 5, 29, 56});
 1236|      0|      case 0x8CE3D:
  ------------------
  |  Branch (1236:7): [True: 0, False: 1.71k]
  ------------------
 1237|      0|         return if_match(req, "PKCS9.ChallengePassword", {1, 2, 840, 113549, 1, 9, 7});
 1238|      0|      case 0x8D45C:
  ------------------
  |  Branch (1238:7): [True: 0, False: 1.71k]
  ------------------
 1239|      0|         return if_match(req, "ECKCDSA", {1, 0, 14888, 3, 0, 5});
 1240|      0|      case 0x8E0C1:
  ------------------
  |  Branch (1240:7): [True: 0, False: 1.71k]
  ------------------
 1241|      0|         return if_match(req, "X509v3.CertificatePolicies", {2, 5, 29, 32});
 1242|      0|      case 0x8E39A:
  ------------------
  |  Branch (1242:7): [True: 0, False: 1.71k]
  ------------------
 1243|      0|         return if_match(req, "HSS-LMS-Private-Key", {1, 3, 6, 1, 4, 1, 25258, 1, 13});
 1244|      0|      case 0x8EC51:
  ------------------
  |  Branch (1244:7): [True: 0, False: 1.71k]
  ------------------
 1245|      0|         return if_match(req, "Kyber-768-r3", {1, 3, 6, 1, 4, 1, 25258, 1, 7, 2});
 1246|      0|      case 0x8F94A:
  ------------------
  |  Branch (1246:7): [True: 0, False: 1.71k]
  ------------------
 1247|      0|         return if_match(req, "Dilithium-6x5-r3", {1, 3, 6, 1, 4, 1, 25258, 1, 9, 2});
 1248|      0|      case 0x8FC20:
  ------------------
  |  Branch (1248:7): [True: 0, False: 1.71k]
  ------------------
 1249|      0|         return if_match(req, "AES-128/SIV", {1, 3, 6, 1, 4, 1, 25258, 3, 4, 1});
 1250|      0|      case 0x8FDE0:
  ------------------
  |  Branch (1250:7): [True: 0, False: 1.71k]
  ------------------
 1251|      0|         return if_match(req, "SHA-3(256)", {2, 16, 840, 1, 101, 3, 4, 2, 8});
 1252|      0|      case 0x919E3:
  ------------------
  |  Branch (1252:7): [True: 0, False: 1.71k]
  ------------------
 1253|      0|         return if_match(req, "Serpent/GCM", {1, 3, 6, 1, 4, 1, 25258, 3, 101});
 1254|      0|      case 0x91C1A:
  ------------------
  |  Branch (1254:7): [True: 0, False: 1.71k]
  ------------------
 1255|      0|         return if_match(req, "X25519", {1, 3, 101, 110});
 1256|      0|      case 0x91DC4:
  ------------------
  |  Branch (1256:7): [True: 0, False: 1.71k]
  ------------------
 1257|      0|         return if_match(req, "McEliece", {1, 3, 6, 1, 4, 1, 25258, 1, 3});
 1258|      0|      case 0x93467:
  ------------------
  |  Branch (1258:7): [True: 0, False: 1.71k]
  ------------------
 1259|      0|         return if_match(req, "Dilithium-6x5-AES-r3", {1, 3, 6, 1, 4, 1, 25258, 1, 10, 2});
 1260|      0|      case 0x93D50:
  ------------------
  |  Branch (1260:7): [True: 0, False: 1.71k]
  ------------------
 1261|      0|         return if_match(req, "AES-192/SIV", {1, 3, 6, 1, 4, 1, 25258, 3, 4, 2});
 1262|      0|      case 0x95166:
  ------------------
  |  Branch (1262:7): [True: 0, False: 1.71k]
  ------------------
 1263|      0|         return if_match(req, "SLH-DSA-SHAKE-128f", {2, 16, 840, 1, 101, 3, 4, 3, 27});
 1264|      0|      case 0x95173:
  ------------------
  |  Branch (1264:7): [True: 0, False: 1.71k]
  ------------------
 1265|      0|         return if_match(req, "SLH-DSA-SHAKE-128s", {2, 16, 840, 1, 101, 3, 4, 3, 26});
 1266|      0|      case 0x952D6:
  ------------------
  |  Branch (1266:7): [True: 0, False: 1.71k]
  ------------------
 1267|      0|         return if_match(req, "PKIX.OCSP", {1, 3, 6, 1, 5, 5, 7, 48, 1});
 1268|      0|      case 0x959B9:
  ------------------
  |  Branch (1268:7): [True: 0, False: 1.71k]
  ------------------
 1269|      0|         return if_match(req, "PKIX.IPsecEndSystem", {1, 3, 6, 1, 5, 5, 7, 3, 5});
 1270|      0|      case 0x96F85:
  ------------------
  |  Branch (1270:7): [True: 0, False: 1.71k]
  ------------------
 1271|      0|         return if_match(req, "Camellia-256/CBC", {1, 2, 392, 200011, 61, 1, 1, 1, 4});
 1272|      0|      case 0x97D5E:
  ------------------
  |  Branch (1272:7): [True: 0, False: 1.71k]
  ------------------
 1273|      0|         return if_match(req, "HMAC(SHA-1)", {1, 2, 840, 113549, 2, 7});
 1274|      0|      case 0x9805C:
  ------------------
  |  Branch (1274:7): [True: 0, False: 1.71k]
  ------------------
 1275|      0|         return if_match(req, "SEED/CBC", {1, 2, 410, 200004, 1, 4});
 1276|      0|      case 0x980E7:
  ------------------
  |  Branch (1276:7): [True: 0, False: 1.71k]
  ------------------
 1277|      0|         return if_match(req, "SphincsPlus-haraka-192s-r3.1", {1, 3, 6, 1, 4, 1, 25258, 1, 12, 3, 3});
 1278|      0|      case 0x980F5:
  ------------------
  |  Branch (1278:7): [True: 0, False: 1.71k]
  ------------------
 1279|      0|         return if_match(req, "GOST.SubjectSigningTool", {1, 2, 643, 100, 111});
 1280|      0|      case 0x98B03:
  ------------------
  |  Branch (1280:7): [True: 0, False: 1.71k]
  ------------------
 1281|      0|         return if_match(req, "XMSS", {0, 4, 0, 127, 0, 15, 1, 1, 13, 0});
 1282|      0|      case 0x9A6B2:
  ------------------
  |  Branch (1282:7): [True: 0, False: 1.71k]
  ------------------
 1283|      0|         return if_match(req, "ECKCDSA/SHA-1", {1, 2, 410, 200004, 1, 100, 4, 3});
 1284|      0|      case 0x9B1CF:
  ------------------
  |  Branch (1284:7): [True: 0, False: 1.71k]
  ------------------
 1285|      0|         return if_match(req, "SM4/SIV", {1, 3, 6, 1, 4, 1, 25258, 3, 4, 9});
 1286|      0|      case 0x9B6B2:
  ------------------
  |  Branch (1286:7): [True: 0, False: 1.71k]
  ------------------
 1287|      0|         return if_match(req, "AES-128/GCM", {2, 16, 840, 1, 101, 3, 4, 1, 6});
 1288|      0|      case 0x9B6BB:
  ------------------
  |  Branch (1288:7): [True: 0, False: 1.71k]
  ------------------
 1289|      0|         return if_match(req, "X520.OrganizationalUnit", {2, 5, 4, 11});
 1290|      0|      case 0x9B851:
  ------------------
  |  Branch (1290:7): [True: 0, False: 1.71k]
  ------------------
 1291|      0|         return if_match(req, "OpenPGP.Curve25519", {1, 3, 6, 1, 4, 1, 3029, 1, 5, 1});
 1292|      0|      case 0x9C80B:
  ------------------
  |  Branch (1292:7): [True: 0, False: 1.71k]
  ------------------
 1293|      0|         return if_match(req, "SLH-DSA-SHA2-192f", {2, 16, 840, 1, 101, 3, 4, 3, 23});
 1294|      0|      case 0x9C818:
  ------------------
  |  Branch (1294:7): [True: 0, False: 1.71k]
  ------------------
 1295|      0|         return if_match(req, "SLH-DSA-SHA2-192s", {2, 16, 840, 1, 101, 3, 4, 3, 22});
 1296|      0|      case 0x9CD2B:
  ------------------
  |  Branch (1296:7): [True: 0, False: 1.71k]
  ------------------
 1297|      0|         return if_match(req, "Scrypt", {1, 3, 6, 1, 4, 1, 11591, 4, 11});
 1298|      0|      case 0x9CDE1:
  ------------------
  |  Branch (1298:7): [True: 0, False: 1.71k]
  ------------------
 1299|      0|         return if_match(req, "GOST-34.10-2012-256/SHA-256", {1, 3, 6, 1, 4, 1, 25258, 1, 6, 1});
 1300|      0|      case 0x9CF73:
  ------------------
  |  Branch (1300:7): [True: 0, False: 1.71k]
  ------------------
 1301|      0|         return if_match(req, "ClassicMcEliece_460896f", {1, 3, 6, 1, 4, 1, 22554, 5, 1, 4});
 1302|      0|      case 0x9D354:
  ------------------
  |  Branch (1302:7): [True: 0, False: 1.71k]
  ------------------
 1303|      0|         return if_match(req, "RIPEMD-160", {1, 3, 36, 3, 2, 1});
 1304|      0|      case 0x9D503:
  ------------------
  |  Branch (1304:7): [True: 0, False: 1.71k]
  ------------------
 1305|      0|         return if_match(req, "RSA/PKCS1v15(SHA-256)", {1, 2, 840, 113549, 1, 1, 11});
 1306|      0|      case 0x9EC88:
  ------------------
  |  Branch (1306:7): [True: 0, False: 1.71k]
  ------------------
 1307|      0|         return if_match(req, "DSA/SHA-3(512)", {2, 16, 840, 1, 101, 3, 4, 3, 8});
 1308|      0|      case 0x9EF36:
  ------------------
  |  Branch (1308:7): [True: 0, False: 1.71k]
  ------------------
 1309|      0|         return if_match(req, "ClassicMcEliece_6960119", {1, 3, 6, 1, 4, 1, 22554, 5, 1, 7});
 1310|      0|      case 0x9F764:
  ------------------
  |  Branch (1310:7): [True: 0, False: 1.71k]
  ------------------
 1311|      0|         return if_match(req, "X448", {1, 3, 101, 111});
 1312|      0|      case 0x9F7E2:
  ------------------
  |  Branch (1312:7): [True: 0, False: 1.71k]
  ------------------
 1313|      0|         return if_match(req, "AES-192/GCM", {2, 16, 840, 1, 101, 3, 4, 1, 26});
 1314|      0|      case 0x9F9C5:
  ------------------
  |  Branch (1314:7): [True: 0, False: 1.71k]
  ------------------
 1315|      0|         return if_match(req, "ClassicMcEliece_6688128pcf", {1, 3, 6, 1, 4, 1, 25258, 1, 18, 2});
 1316|      0|      case 0xA0805:
  ------------------
  |  Branch (1316:7): [True: 0, False: 1.71k]
  ------------------
 1317|      0|         return if_match(req, "PKCS9.SDSICertificate", {1, 2, 840, 113549, 1, 9, 22, 2});
 1318|      0|      case 0xA2B5B:
  ------------------
  |  Branch (1318:7): [True: 0, False: 1.71k]
  ------------------
 1319|      0|         return if_match(req, "X509v3.CRLNumber", {2, 5, 29, 20});
 1320|      0|      case 0xA3005:
  ------------------
  |  Branch (1320:7): [True: 0, False: 1.71k]
  ------------------
 1321|      0|         return if_match(req, "X520.Title", {2, 5, 4, 12});
 1322|      0|      case 0xA323F:
  ------------------
  |  Branch (1322:7): [True: 0, False: 1.71k]
  ------------------
 1323|      0|         return if_match(req, "X509v3.NameConstraints", {2, 5, 29, 30});
 1324|      0|      case 0xA3C55:
  ------------------
  |  Branch (1324:7): [True: 0, False: 1.71k]
  ------------------
 1325|      0|         return if_match(req, "X520.Pseudonym", {2, 5, 4, 65});
 1326|      0|      case 0xA4809:
  ------------------
  |  Branch (1326:7): [True: 0, False: 1.71k]
  ------------------
 1327|      0|         return if_match(req, "SphincsPlus-sha2-256f-r3.1", {1, 3, 6, 1, 4, 1, 25258, 1, 12, 2, 6});
 1328|      0|      case 0xA57AF:
  ------------------
  |  Branch (1328:7): [True: 0, False: 1.71k]
  ------------------
 1329|      0|         return if_match(req, "secp521r1", {1, 3, 132, 0, 35});
 1330|      0|      case 0xA5DA9:
  ------------------
  |  Branch (1330:7): [True: 0, False: 1.71k]
  ------------------
 1331|      0|         return if_match(req, "SphincsPlus-shake-256f-r3.1", {1, 3, 6, 1, 4, 1, 25258, 1, 12, 1, 6});
 1332|      0|      case 0xA6865:
  ------------------
  |  Branch (1332:7): [True: 0, False: 1.71k]
  ------------------
 1333|      0|         return if_match(req, "Camellia-128/SIV", {1, 3, 6, 1, 4, 1, 25258, 3, 4, 6});
 1334|      0|      case 0xA6C61:
  ------------------
  |  Branch (1334:7): [True: 0, False: 1.71k]
  ------------------
 1335|      0|         return if_match(req, "SM4/GCM", {1, 2, 156, 10197, 1, 104, 8});
 1336|      0|      case 0xA8439:
  ------------------
  |  Branch (1336:7): [True: 0, False: 1.71k]
  ------------------
 1337|      0|         return if_match(req, "PKCS12.CertBag", {1, 2, 840, 113549, 1, 12, 10, 1, 3});
 1338|      0|      case 0xA9061:
  ------------------
  |  Branch (1338:7): [True: 0, False: 1.71k]
  ------------------
 1339|      0|         return if_match(req, "Kyber-768-90s-r3", {1, 3, 6, 1, 4, 1, 25258, 1, 11, 2});
 1340|      0|      case 0xAA995:
  ------------------
  |  Branch (1340:7): [True: 0, False: 1.71k]
  ------------------
 1341|      0|         return if_match(req, "Camellia-192/SIV", {1, 3, 6, 1, 4, 1, 25258, 3, 4, 7});
 1342|      0|      case 0xAAE2B:
  ------------------
  |  Branch (1342:7): [True: 0, False: 1.71k]
  ------------------
 1343|      0|         return if_match(req, "Dilithium-8x7-AES-r3", {1, 3, 6, 1, 4, 1, 25258, 1, 10, 3});
 1344|      0|      case 0xABCED:
  ------------------
  |  Branch (1344:7): [True: 0, False: 1.71k]
  ------------------
 1345|      0|         return if_match(req, "GOST.IssuerSigningTool", {1, 2, 643, 100, 112});
 1346|      0|      case 0xABD24:
  ------------------
  |  Branch (1346:7): [True: 0, False: 1.71k]
  ------------------
 1347|      0|         return if_match(req, "RSA/OAEP", {1, 2, 840, 113549, 1, 1, 7});
 1348|      0|      case 0xAC2EC:
  ------------------
  |  Branch (1348:7): [True: 0, False: 1.71k]
  ------------------
 1349|      0|         return if_match(req, "Streebog-256", {1, 2, 643, 7, 1, 1, 2, 2});
 1350|      0|      case 0xAC3DD:
  ------------------
  |  Branch (1350:7): [True: 0, False: 1.71k]
  ------------------
 1351|      0|         return if_match(req, "Certificate Comment", {2, 16, 840, 1, 113730, 1, 13});
 1352|      0|      case 0xAC511:
  ------------------
  |  Branch (1352:7): [True: 0, False: 1.71k]
  ------------------
 1353|      0|         return if_match(req, "PBE-SHA1-3DES", {1, 2, 840, 113549, 1, 12, 1, 3});
 1354|      0|      case 0xAE6FE:
  ------------------
  |  Branch (1354:7): [True: 0, False: 1.71k]
  ------------------
 1355|      0|         return if_match(req, "PKIX.ClientAuth", {1, 3, 6, 1, 5, 5, 7, 3, 2});
 1356|      0|      case 0xAE8D3:
  ------------------
  |  Branch (1356:7): [True: 0, False: 1.71k]
  ------------------
 1357|      0|         return if_match(req, "ClassicMcEliece_8192128pcf", {1, 3, 6, 1, 4, 1, 25258, 1, 18, 6});
 1358|      0|      case 0xAF476:
  ------------------
  |  Branch (1358:7): [True: 0, False: 1.71k]
  ------------------
 1359|      0|         return if_match(req, "ECDH", {1, 3, 132, 1, 12});
 1360|      0|      case 0xAFA6A:
  ------------------
  |  Branch (1360:7): [True: 0, False: 1.71k]
  ------------------
 1361|      0|         return if_match(req, "RSA/PKCS1v15(SHA-3(384))", {2, 16, 840, 1, 101, 3, 4, 3, 15});
 1362|      0|      case 0xB2217:
  ------------------
  |  Branch (1362:7): [True: 0, False: 1.71k]
  ------------------
 1363|      0|         return if_match(req, "AES-256/SIV", {1, 3, 6, 1, 4, 1, 25258, 3, 4, 3});
 1364|      0|      case 0xB22F7:
  ------------------
  |  Branch (1364:7): [True: 0, False: 1.71k]
  ------------------
 1365|      0|         return if_match(req, "Camellia-128/GCM", {0, 3, 4401, 5, 3, 1, 9, 6});
 1366|      0|      case 0xB23DE:
  ------------------
  |  Branch (1366:7): [True: 0, False: 1.71k]
  ------------------
 1367|      0|         return if_match(req, "X520.Locality", {2, 5, 4, 7});
 1368|      0|      case 0xB2FBD:
  ------------------
  |  Branch (1368:7): [True: 0, False: 1.71k]
  ------------------
 1369|      0|         return if_match(req, "ECKCDSA/SHA-224", {1, 2, 410, 200004, 1, 100, 4, 4});
 1370|      0|      case 0xB32B0:
  ------------------
  |  Branch (1370:7): [True: 0, False: 1.71k]
  ------------------
 1371|      0|         return if_match(req, "ECKCDSA/SHA-256", {1, 2, 410, 200004, 1, 100, 4, 5});
 1372|      0|      case 0xB360E:
  ------------------
  |  Branch (1372:7): [True: 0, False: 1.71k]
  ------------------
 1373|      0|         return if_match(req, "eFrodoKEM-976-SHAKE", {1, 3, 6, 1, 4, 1, 25258, 1, 16, 2});
 1374|      0|      case 0xB4368:
  ------------------
  |  Branch (1374:7): [True: 0, False: 1.71k]
  ------------------
 1375|      0|         return if_match(req, "ECGDSA/SHA-1", {1, 3, 36, 3, 3, 2, 5, 4, 2});
 1376|      0|      case 0xB58CD:
  ------------------
  |  Branch (1376:7): [True: 0, False: 1.71k]
  ------------------
 1377|      0|         return if_match(req, "RSA/PKCS1v15(SHA-3(512))", {2, 16, 840, 1, 101, 3, 4, 3, 16});
 1378|      0|      case 0xB6427:
  ------------------
  |  Branch (1378:7): [True: 0, False: 1.71k]
  ------------------
 1379|      0|         return if_match(req, "Camellia-192/GCM", {0, 3, 4401, 5, 3, 1, 9, 26});
 1380|      0|      case 0xB7102:
  ------------------
  |  Branch (1380:7): [True: 0, False: 1.71k]
  ------------------
 1381|      0|         return if_match(req, "brainpool224r1", {1, 3, 36, 3, 3, 2, 8, 1, 1, 5});
 1382|      0|      case 0xB710D:
  ------------------
  |  Branch (1382:7): [True: 0, False: 1.71k]
  ------------------
 1383|      0|         return if_match(req, "X509v3.CRLIssuingDistributionPoint", {2, 5, 29, 28});
 1384|      0|      case 0xB72D4:
  ------------------
  |  Branch (1384:7): [True: 0, False: 1.71k]
  ------------------
 1385|      0|         return if_match(req, "Microsoft UPN", {1, 3, 6, 1, 4, 1, 311, 20, 2, 3});
 1386|      0|      case 0xB73A5:
  ------------------
  |  Branch (1386:7): [True: 0, False: 1.71k]
  ------------------
 1387|      0|         return if_match(req, "RSA/PSS", {1, 2, 840, 113549, 1, 1, 10});
 1388|      0|      case 0xB84B3:
  ------------------
  |  Branch (1388:7): [True: 0, False: 1.71k]
  ------------------
 1389|      0|         return if_match(req, "PKIX.CodeSigning", {1, 3, 6, 1, 5, 5, 7, 3, 3});
 1390|      0|      case 0xB8CB9:
  ------------------
  |  Branch (1390:7): [True: 0, False: 1.71k]
  ------------------
 1391|      0|         return if_match(req, "GOST-34.10-2012-256", {1, 2, 643, 7, 1, 1, 1, 1});
 1392|      0|      case 0xB945C:
  ------------------
  |  Branch (1392:7): [True: 0, False: 1.71k]
  ------------------
 1393|      0|         return if_match(req, "Twofish/SIV", {1, 3, 6, 1, 4, 1, 25258, 3, 4, 5});
 1394|      0|      case 0xB94E4:
  ------------------
  |  Branch (1394:7): [True: 0, False: 1.71k]
  ------------------
 1395|      0|         return if_match(req, "gost_512A", {1, 2, 643, 7, 1, 2, 1, 2, 1});
 1396|      0|      case 0xB94E5:
  ------------------
  |  Branch (1396:7): [True: 0, False: 1.71k]
  ------------------
 1397|      0|         return if_match(req, "gost_512B", {1, 2, 643, 7, 1, 2, 1, 2, 2});
 1398|      0|      case 0xBA1D8:
  ------------------
  |  Branch (1398:7): [True: 0, False: 1.71k]
  ------------------
 1399|      0|         return if_match(req, "X520.StreetAddress", {2, 5, 4, 9});
 1400|      0|      case 0xBCB45:
  ------------------
  |  Branch (1400:7): [True: 0, False: 1.71k]
  ------------------
 1401|      0|         return if_match(req, "PKCS12.CRLBag", {1, 2, 840, 113549, 1, 12, 10, 1, 4});
 1402|      0|      case 0xBCC82:
  ------------------
  |  Branch (1402:7): [True: 0, False: 1.71k]
  ------------------
 1403|      0|         return if_match(req, "x962_p239v1", {1, 2, 840, 10045, 3, 1, 4});
 1404|      0|      case 0xBCC83:
  ------------------
  |  Branch (1404:7): [True: 0, False: 1.71k]
  ------------------
 1405|      0|         return if_match(req, "x962_p239v2", {1, 2, 840, 10045, 3, 1, 5});
 1406|      0|      case 0xBCC84:
  ------------------
  |  Branch (1406:7): [True: 0, False: 1.71k]
  ------------------
 1407|      0|         return if_match(req, "x962_p239v3", {1, 2, 840, 10045, 3, 1, 6});
 1408|      0|      case 0xBD92B:
  ------------------
  |  Branch (1408:7): [True: 0, False: 1.71k]
  ------------------
 1409|      0|         return if_match(req, "X509v3.HoldInstructionCode", {2, 5, 29, 23});
 1410|      0|      case 0xBDCA9:
  ------------------
  |  Branch (1410:7): [True: 0, False: 1.71k]
  ------------------
 1411|      0|         return if_match(req, "AES-256/GCM", {2, 16, 840, 1, 101, 3, 4, 1, 46});
 1412|      0|      case 0xBE48D:
  ------------------
  |  Branch (1412:7): [True: 0, False: 1.71k]
  ------------------
 1413|      0|         return if_match(req, "PKIX.OCSP.BasicResponse", {1, 3, 6, 1, 5, 5, 7, 48, 1, 1});
 1414|      0|      case 0xBF71E:
  ------------------
  |  Branch (1414:7): [True: 0, False: 1.71k]
  ------------------
 1415|      0|         return if_match(req, "Kyber-1024-r3", {1, 3, 6, 1, 4, 1, 25258, 1, 7, 3});
 1416|      0|      case 0xBFF01:
  ------------------
  |  Branch (1416:7): [True: 0, False: 1.71k]
  ------------------
 1417|      0|         return if_match(req, "DSA/SHA-3(224)", {2, 16, 840, 1, 101, 3, 4, 3, 5});
 1418|      0|      case 0xC0F4F:
  ------------------
  |  Branch (1418:7): [True: 0, False: 1.71k]
  ------------------
 1419|      0|         return if_match(req, "SphincsPlus-haraka-256f-r3.1", {1, 3, 6, 1, 4, 1, 25258, 1, 12, 3, 6});
 1420|      0|      case 0xC1875:
  ------------------
  |  Branch (1420:7): [True: 0, False: 1.71k]
  ------------------
 1421|      0|         return if_match(req, "SHA-1", {1, 3, 14, 3, 2, 26});
 1422|      0|      case 0xC28D1:
  ------------------
  |  Branch (1422:7): [True: 0, False: 1.71k]
  ------------------
 1423|      0|         return if_match(req, "PKIX.OCSPSigning", {1, 3, 6, 1, 5, 5, 7, 3, 9});
 1424|      0|      case 0xC42CA:
  ------------------
  |  Branch (1424:7): [True: 0, False: 1.71k]
  ------------------
 1425|      0|         return if_match(req, "brainpool256r1", {1, 3, 36, 3, 3, 2, 8, 1, 1, 7});
 1426|      0|      default:
  ------------------
  |  Branch (1426:7): [True: 0, False: 1.71k]
  ------------------
 1427|      0|         return {};
 1428|  1.71k|   }
 1429|  1.71k|}
_ZN5Botan7OID_Map16load_oid2str_mapEv:
 1431|      1|std::unordered_map<OID, std::string> OID_Map::load_oid2str_map() {
 1432|      1|   return {
 1433|      1|      {OID{2, 5, 8, 1, 1}, "RSA"},
 1434|      1|      {OID{1, 3, 6, 1, 4, 1, 8301, 3, 1, 2, 9, 0, 38}, "secp521r1"},
 1435|      1|      {OID{1, 2, 643, 2, 2, 35, 1}, "gost_256A"},
 1436|      1|      {OID{1, 2, 643, 2, 2, 36, 0}, "gost_256A"},
 1437|      1|   };
 1438|      1|}
_ZN5Botan7OID_Map16load_str2oid_mapEv:
 1440|      1|std::unordered_map<std::string, OID> OID_Map::load_str2oid_map() {
 1441|      1|   return {
 1442|      1|      {"Curve25519", OID{1, 3, 101, 110}},
 1443|      1|      {"SM2_Sig", OID{1, 2, 156, 10197, 1, 301, 1}},
 1444|      1|      {"RSA/EMSA3(MD2)", OID{1, 2, 840, 113549, 1, 1, 2}},
 1445|      1|      {"RSA/EMSA3(MD5)", OID{1, 2, 840, 113549, 1, 1, 4}},
 1446|      1|      {"RSA/EMSA3(SHA-1)", OID{1, 2, 840, 113549, 1, 1, 5}},
 1447|      1|      {"RSA/EMSA3(SHA-256)", OID{1, 2, 840, 113549, 1, 1, 11}},
 1448|      1|      {"RSA/EMSA3(SHA-384)", OID{1, 2, 840, 113549, 1, 1, 12}},
 1449|      1|      {"RSA/EMSA3(SHA-512)", OID{1, 2, 840, 113549, 1, 1, 13}},
 1450|      1|      {"RSA/EMSA3(SHA-224)", OID{1, 2, 840, 113549, 1, 1, 14}},
 1451|      1|      {"RSA/EMSA3(SHA-512-256)", OID{1, 2, 840, 113549, 1, 1, 16}},
 1452|      1|      {"RSA/EMSA3(SHA-3(224))", OID{2, 16, 840, 1, 101, 3, 4, 3, 13}},
 1453|      1|      {"RSA/EMSA3(SHA-3(256))", OID{2, 16, 840, 1, 101, 3, 4, 3, 14}},
 1454|      1|      {"RSA/EMSA3(SHA-3(384))", OID{2, 16, 840, 1, 101, 3, 4, 3, 15}},
 1455|      1|      {"RSA/EMSA3(SHA-3(512))", OID{2, 16, 840, 1, 101, 3, 4, 3, 16}},
 1456|      1|      {"RSA/EMSA3(SM3)", OID{1, 2, 156, 10197, 1, 504}},
 1457|      1|      {"RSA/EMSA3(RIPEMD-160)", OID{1, 3, 36, 3, 3, 1, 2}},
 1458|      1|      {"RSA/EMSA4", OID{1, 2, 840, 113549, 1, 1, 10}},
 1459|      1|      {"PBES2", OID{1, 2, 840, 113549, 1, 5, 13}},
 1460|      1|   };
 1461|      1|}
static_oids.cpp:_ZN5Botan12_GLOBAL__N_18if_matchERKNS_3OIDESt16initializer_listIjENSt3__117basic_string_viewIcNS6_11char_traitsIcEEEE:
   18|    374|std::optional<std::string_view> if_match(const OID& oid, std::initializer_list<uint32_t> val, std::string_view name) {
   19|    374|   if(oid.matches(val)) {
  ------------------
  |  Branch (19:7): [True: 38, False: 336]
  ------------------
   20|     38|      return name;
   21|    336|   } else {
   22|    336|      return {};
   23|    336|   }
   24|    374|}
static_oids.cpp:_ZN5Botan12_GLOBAL__N_113hash_oid_nameENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   34|  1.71k|uint32_t hash_oid_name(std::string_view s) {
   35|  1.71k|   uint64_t hash = 0x8188B31879A4879A;
   36|       |
   37|  49.7k|   for(const char c : s) {
  ------------------
  |  Branch (37:21): [True: 49.7k, False: 1.71k]
  ------------------
   38|  49.7k|      hash *= 251;
   39|  49.7k|      hash += c;
   40|  49.7k|   }
   41|       |
   42|  1.71k|   return static_cast<uint32_t>(hash % 805289);
   43|  1.71k|}
static_oids.cpp:_ZN5Botan12_GLOBAL__N_18if_matchENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEES5_St16initializer_listIjE:
   26|  1.71k|std::optional<OID> if_match(std::string_view req, std::string_view actual, std::initializer_list<uint32_t> oid) {
   27|  1.71k|   if(req == actual) {
  ------------------
  |  Branch (27:7): [True: 1.71k, False: 0]
  ------------------
   28|  1.71k|      return OID(oid);
   29|  1.71k|   } else {
   30|      0|      return {};
   31|      0|   }
   32|  1.71k|}

_ZN5Botan20Buffered_Computation5finalENSt3__14spanIhLm18446744073709551615EEE:
   54|  3.42k|void Buffered_Computation::final(std::span<uint8_t> out) {
   55|  3.42k|   BOTAN_ARG_CHECK(out.size() >= output_length(), "provided output buffer has insufficient capacity");
  ------------------
  |  |   35|  3.42k|   do {                                                          \
  |  |   36|  3.42k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  3.42k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 3.42k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  3.42k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 3.42k]
  |  |  ------------------
  ------------------
   56|  3.42k|   final_result(out);
   57|  3.42k|}

_ZN5Botan13base64_decodeEPKcmb:
  187|     93|secure_vector<uint8_t> base64_decode(const char input[], size_t input_length, bool ignore_ws) {
  188|     93|   return base_decode_to_vec<secure_vector<uint8_t>>(Base64(), input, input_length, ignore_ws);
  189|     93|}
base64.cpp:_ZN5Botan12_GLOBAL__N_16Base6417decode_max_outputEm:
   42|    186|      static constexpr size_t decode_max_output(size_t input_length) {
   43|    186|         return (round_up(input_length, m_encoding_bytes_out) * m_encoding_bytes_in) / m_encoding_bytes_out;
   44|    186|      }
base64.cpp:_ZN5Botan12_GLOBAL__N_16Base6419lookup_binary_valueEc:
  110|  25.9k|uint8_t Base64::lookup_binary_value(char input) noexcept {
  111|  25.9k|   auto has_zero_byte = [](uint64_t v) { return ((v - 0x0101010101010101) & ~(v) & 0x8080808080808080); };
  112|       |
  113|       |   // Assumes each byte is either 0x00 or 0x80
  114|  25.9k|   auto index_of_first_set_byte = [](uint64_t v) {
  115|  25.9k|      return ((((v - 1) & 0x0101010101010101) * 0x0101010101010101) >> 56) - 1;
  116|  25.9k|   };
  117|       |
  118|  25.9k|   constexpr uint64_t lo = 0x0101010101010101;
  119|       |
  120|  25.9k|   const uint8_t x = static_cast<uint8_t>(input);
  121|       |
  122|  25.9k|   const uint64_t x8 = x * lo;
  123|       |
  124|       |   // Defines the valid ASCII ranges of base64, except the special chars (below)
  125|  25.9k|   constexpr uint64_t val_l = make_uint64(0, 0, 0, 0, 0, 'A', 'a', '0');
  126|  25.9k|   constexpr uint64_t val_u = make_uint64(0, 0, 0, 0, 0, 26, 26, 10);
  127|       |
  128|       |   // If x is in one of the ranges return a mask. Otherwise we xor in at the
  129|       |   // high word which will be our invalid marker
  130|  25.9k|   auto v_mask = swar_in_range<uint64_t>(x8, val_l, val_u) ^ 0x80000000;
  131|       |
  132|       |   // This is the offset added to x to get the value
  133|  25.9k|   const uint64_t val_v = 0xbfb904 ^ (0xFF000000 - (x << 24));
  134|       |
  135|  25.9k|   const uint8_t z = x + static_cast<uint8_t>(val_v >> (8 * index_of_first_set_byte(v_mask)));
  136|       |
  137|       |   // Valid base64 special characters, and some whitespace chars
  138|  25.9k|   constexpr uint64_t specials_i = make_uint64(0, '+', '/', '=', ' ', '\n', '\t', '\r');
  139|       |
  140|  25.9k|   const uint64_t specials_v = 0x3e3f8180808080 ^ (static_cast<uint64_t>(z) << 56);
  141|       |
  142|  25.9k|   const uint64_t smask = has_zero_byte(x8 ^ specials_i) ^ 0x8000000000000000;
  143|       |
  144|  25.9k|   return static_cast<uint8_t>(specials_v >> (8 * index_of_first_set_byte(smask)));
  145|  25.9k|}
base64.cpp:_ZZN5Botan12_GLOBAL__N_16Base6419lookup_binary_valueEcENK3$_0clEm:
  114|  51.9k|   auto index_of_first_set_byte = [](uint64_t v) {
  115|  51.9k|      return ((((v - 1) & 0x0101010101010101) * 0x0101010101010101) >> 56) - 1;
  116|  51.9k|   };
base64.cpp:_ZZN5Botan12_GLOBAL__N_16Base6419lookup_binary_valueEcENK3$_1clEm:
  111|  25.9k|   auto has_zero_byte = [](uint64_t v) { return ((v - 0x0101010101010101) & ~(v) & 0x8080808080808080); };
base64.cpp:_ZN5Botan12_GLOBAL__N_16Base6414check_bad_charEhcb:
  148|  25.5k|bool Base64::check_bad_char(uint8_t bin, char input, bool ignore_ws) {
  149|  25.5k|   if(bin <= 0x3F) {
  ------------------
  |  Branch (149:7): [True: 11.0k, False: 14.5k]
  ------------------
  150|  11.0k|      return true;
  151|  14.5k|   } else if(!(bin == 0x81 || (bin == 0x80 && ignore_ws))) {
  ------------------
  |  Branch (151:16): [True: 2.93k, False: 11.5k]
  |  Branch (151:32): [True: 11.5k, False: 32]
  |  Branch (151:47): [True: 11.5k, False: 0]
  ------------------
  152|     32|      throw Invalid_Argument(fmt("base64_decode: invalid character '{}'", format_char_for_display(input)));
  153|     32|   }
  154|  14.4k|   return false;
  155|  25.5k|}
base64.cpp:_ZN5Botan12_GLOBAL__N_16Base646decodeEPhPKh:
   52|  2.77k|      static void decode(uint8_t* out_ptr, const uint8_t decode_buf[4]) {
   53|  2.77k|         out_ptr[0] = (decode_buf[0] << 2) | (decode_buf[1] >> 4);
   54|  2.77k|         out_ptr[1] = (decode_buf[1] << 4) | (decode_buf[2] >> 2);
   55|  2.77k|         out_ptr[2] = (decode_buf[2] << 6) | decode_buf[3];
   56|  2.77k|      }
base64.cpp:_ZN5Botan12_GLOBAL__N_16Base6415bytes_to_removeEm:
   58|     61|      static size_t bytes_to_remove(size_t final_truncate) { return final_truncate; }
base64.cpp:_ZN5Botan12_GLOBAL__N_16Base644nameEv:
   24|     13|      static std::string name() noexcept { return "base64"; }

_ZN5Botan10hex_encodeEPcPKhmb:
   34|  3.42k|void hex_encode(char output[], const uint8_t input[], size_t input_length, bool uppercase) {
   35|  92.5k|   for(size_t i = 0; i != input_length; ++i) {
  ------------------
  |  Branch (35:22): [True: 89.1k, False: 3.42k]
  ------------------
   36|  89.1k|      const uint16_t h = hex_encode_2nibble(input[i], uppercase);
   37|  89.1k|      output[2 * i] = get_byte<0>(h);
   38|  89.1k|      output[2 * i + 1] = get_byte<1>(h);
   39|  89.1k|   }
   40|  3.42k|}
_ZN5Botan10hex_encodeEPKhmb:
   42|  3.42k|std::string hex_encode(const uint8_t input[], size_t input_length, bool uppercase) {
   43|  3.42k|   std::string output(2 * input_length, 0);
   44|       |
   45|  3.42k|   if(input_length > 0) {
  ------------------
  |  Branch (45:7): [True: 3.42k, False: 0]
  ------------------
   46|  3.42k|      hex_encode(&output.front(), input, input_length, uppercase);
   47|  3.42k|   }
   48|       |
   49|  3.42k|   return output;
   50|  3.42k|}
hex.cpp:_ZN5Botan12_GLOBAL__N_118hex_encode_2nibbleEhb:
   21|  89.1k|uint16_t hex_encode_2nibble(uint8_t n8, bool uppercase) {
   22|       |   // Offset for upper or lower case 'a' resp
   23|  89.1k|   const uint16_t a_mask = uppercase ? 0x0707 : 0x2727;
  ------------------
  |  Branch (23:28): [True: 89.1k, False: 0]
  ------------------
   24|       |
   25|  89.1k|   const uint16_t n = (static_cast<uint16_t>(n8 & 0xF0) << 4) | (n8 & 0x0F);
   26|       |   // n >= 10? If so add offset
   27|  89.1k|   const uint16_t diff = swar_lt<uint16_t>(0x0909, n) & a_mask;
   28|       |   // Can't overflow between bytes, so don't need explicit SWAR addition:
   29|  89.1k|   return n + 0x3030 + diff;
   30|  89.1k|}

_ZN5Botan12HashFunction6createENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEES5_:
  111|  11.3k|std::unique_ptr<HashFunction> HashFunction::create(std::string_view algo_spec, std::string_view provider) {
  112|       |#if defined(BOTAN_HAS_COMMONCRYPTO)
  113|       |   if(provider.empty() || provider == "commoncrypto") {
  114|       |      if(auto hash = make_commoncrypto_hash(algo_spec))
  115|       |         return hash;
  116|       |
  117|       |      if(!provider.empty())
  118|       |         return nullptr;
  119|       |   }
  120|       |#endif
  121|       |
  122|  11.3k|   if(provider.empty() == false && provider != "base") {
  ------------------
  |  Branch (122:7): [True: 0, False: 11.3k]
  |  Branch (122:36): [True: 0, False: 0]
  ------------------
  123|      0|      return nullptr;  // unknown provider
  124|      0|   }
  125|       |
  126|  11.3k|#if defined(BOTAN_HAS_SHA1)
  127|  11.3k|   if(algo_spec == "SHA-1") {
  ------------------
  |  Branch (127:7): [True: 1.71k, False: 9.68k]
  ------------------
  128|  1.71k|      return std::make_unique<SHA_1>();
  129|  1.71k|   }
  130|  9.68k|#endif
  131|       |
  132|  9.68k|#if defined(BOTAN_HAS_SHA2_32)
  133|  9.68k|   if(algo_spec == "SHA-224") {
  ------------------
  |  Branch (133:7): [True: 0, False: 9.68k]
  ------------------
  134|      0|      return std::make_unique<SHA_224>();
  135|      0|   }
  136|       |
  137|  9.68k|   if(algo_spec == "SHA-256") {
  ------------------
  |  Branch (137:7): [True: 9.68k, False: 0]
  ------------------
  138|  9.68k|      return std::make_unique<SHA_256>();
  139|  9.68k|   }
  140|      0|#endif
  141|       |
  142|      0|#if defined(BOTAN_HAS_SHA2_64)
  143|      0|   if(algo_spec == "SHA-384") {
  ------------------
  |  Branch (143:7): [True: 0, False: 0]
  ------------------
  144|      0|      return std::make_unique<SHA_384>();
  145|      0|   }
  146|       |
  147|      0|   if(algo_spec == "SHA-512") {
  ------------------
  |  Branch (147:7): [True: 0, False: 0]
  ------------------
  148|      0|      return std::make_unique<SHA_512>();
  149|      0|   }
  150|       |
  151|      0|   if(algo_spec == "SHA-512-256") {
  ------------------
  |  Branch (151:7): [True: 0, False: 0]
  ------------------
  152|      0|      return std::make_unique<SHA_512_256>();
  153|      0|   }
  154|      0|#endif
  155|       |
  156|      0|#if defined(BOTAN_HAS_RIPEMD_160)
  157|      0|   if(algo_spec == "RIPEMD-160") {
  ------------------
  |  Branch (157:7): [True: 0, False: 0]
  ------------------
  158|      0|      return std::make_unique<RIPEMD_160>();
  159|      0|   }
  160|      0|#endif
  161|       |
  162|      0|#if defined(BOTAN_HAS_WHIRLPOOL)
  163|      0|   if(algo_spec == "Whirlpool") {
  ------------------
  |  Branch (163:7): [True: 0, False: 0]
  ------------------
  164|      0|      return std::make_unique<Whirlpool>();
  165|      0|   }
  166|      0|#endif
  167|       |
  168|      0|#if defined(BOTAN_HAS_MD5)
  169|      0|   if(algo_spec == "MD5") {
  ------------------
  |  Branch (169:7): [True: 0, False: 0]
  ------------------
  170|      0|      return std::make_unique<MD5>();
  171|      0|   }
  172|      0|#endif
  173|       |
  174|      0|#if defined(BOTAN_HAS_MD4)
  175|      0|   if(algo_spec == "MD4") {
  ------------------
  |  Branch (175:7): [True: 0, False: 0]
  ------------------
  176|      0|      return std::make_unique<MD4>();
  177|      0|   }
  178|      0|#endif
  179|       |
  180|      0|#if defined(BOTAN_HAS_GOST_34_11)
  181|      0|   if(algo_spec == "GOST-R-34.11-94" || algo_spec == "GOST-34.11") {
  ------------------
  |  Branch (181:7): [True: 0, False: 0]
  |  Branch (181:41): [True: 0, False: 0]
  ------------------
  182|      0|      return std::make_unique<GOST_34_11>();
  183|      0|   }
  184|      0|#endif
  185|       |
  186|      0|#if defined(BOTAN_HAS_ADLER32)
  187|      0|   if(algo_spec == "Adler32") {
  ------------------
  |  Branch (187:7): [True: 0, False: 0]
  ------------------
  188|      0|      return std::make_unique<Adler32>();
  189|      0|   }
  190|      0|#endif
  191|       |
  192|      0|#if defined(BOTAN_HAS_ASCON_HASH256)
  193|      0|   if(algo_spec == "Ascon-Hash256") {
  ------------------
  |  Branch (193:7): [True: 0, False: 0]
  ------------------
  194|      0|      return std::make_unique<Ascon_Hash256>();
  195|      0|   }
  196|      0|#endif
  197|       |
  198|      0|#if defined(BOTAN_HAS_CRC24)
  199|      0|   if(algo_spec == "CRC24") {
  ------------------
  |  Branch (199:7): [True: 0, False: 0]
  ------------------
  200|      0|      return std::make_unique<CRC24>();
  201|      0|   }
  202|      0|#endif
  203|       |
  204|      0|#if defined(BOTAN_HAS_CRC32)
  205|      0|   if(algo_spec == "CRC32") {
  ------------------
  |  Branch (205:7): [True: 0, False: 0]
  ------------------
  206|      0|      return std::make_unique<CRC32>();
  207|      0|   }
  208|      0|#endif
  209|       |
  210|      0|#if defined(BOTAN_HAS_STREEBOG)
  211|      0|   if(algo_spec == "Streebog-256") {
  ------------------
  |  Branch (211:7): [True: 0, False: 0]
  ------------------
  212|      0|      return std::make_unique<Streebog>(256);
  213|      0|   }
  214|      0|   if(algo_spec == "Streebog-512") {
  ------------------
  |  Branch (214:7): [True: 0, False: 0]
  ------------------
  215|      0|      return std::make_unique<Streebog>(512);
  216|      0|   }
  217|      0|#endif
  218|       |
  219|      0|#if defined(BOTAN_HAS_SM3)
  220|      0|   if(algo_spec == "SM3") {
  ------------------
  |  Branch (220:7): [True: 0, False: 0]
  ------------------
  221|      0|      return std::make_unique<SM3>();
  222|      0|   }
  223|      0|#endif
  224|       |
  225|      0|   const SCAN_Name req(algo_spec);
  226|       |
  227|      0|#if defined(BOTAN_HAS_SKEIN_512)
  228|      0|   if(req.algo_name() == "Skein-512") {
  ------------------
  |  Branch (228:7): [True: 0, False: 0]
  ------------------
  229|      0|      return std::make_unique<Skein_512>(req.arg_as_integer(0, 512), req.arg(1, ""));
  230|      0|   }
  231|      0|#endif
  232|       |
  233|      0|#if defined(BOTAN_HAS_BLAKE2B)
  234|      0|   if(req.algo_name() == "Blake2b" || req.algo_name() == "BLAKE2b") {
  ------------------
  |  Branch (234:7): [True: 0, False: 0]
  |  Branch (234:39): [True: 0, False: 0]
  ------------------
  235|      0|      return std::make_unique<BLAKE2b>(req.arg_as_integer(0, 512));
  236|      0|   }
  237|      0|#endif
  238|       |
  239|      0|#if defined(BOTAN_HAS_BLAKE2S)
  240|      0|   if(req.algo_name() == "Blake2s" || req.algo_name() == "BLAKE2s") {
  ------------------
  |  Branch (240:7): [True: 0, False: 0]
  |  Branch (240:39): [True: 0, False: 0]
  ------------------
  241|      0|      return std::make_unique<BLAKE2s>(req.arg_as_integer(0, 256));
  242|      0|   }
  243|      0|#endif
  244|       |
  245|      0|#if defined(BOTAN_HAS_KECCAK)
  246|      0|   if(req.algo_name() == "Keccak-1600") {
  ------------------
  |  Branch (246:7): [True: 0, False: 0]
  ------------------
  247|      0|      return std::make_unique<Keccak_1600>(req.arg_as_integer(0, 512));
  248|      0|   }
  249|      0|#endif
  250|       |
  251|      0|#if defined(BOTAN_HAS_SHA3)
  252|      0|   if(req.algo_name() == "SHA-3") {
  ------------------
  |  Branch (252:7): [True: 0, False: 0]
  ------------------
  253|      0|      return std::make_unique<SHA_3>(req.arg_as_integer(0, 512));
  254|      0|   }
  255|      0|#endif
  256|       |
  257|      0|#if defined(BOTAN_HAS_SHAKE)
  258|      0|   if(req.algo_name() == "SHAKE-128" && req.arg_count() == 1) {
  ------------------
  |  Branch (258:7): [True: 0, False: 0]
  |  Branch (258:41): [True: 0, False: 0]
  ------------------
  259|      0|      return std::make_unique<SHAKE_128>(req.arg_as_integer(0));
  260|      0|   }
  261|      0|   if(req.algo_name() == "SHAKE-256" && req.arg_count() == 1) {
  ------------------
  |  Branch (261:7): [True: 0, False: 0]
  |  Branch (261:41): [True: 0, False: 0]
  ------------------
  262|      0|      return std::make_unique<SHAKE_256>(req.arg_as_integer(0));
  263|      0|   }
  264|      0|#endif
  265|       |
  266|      0|#if defined(BOTAN_HAS_PARALLEL_HASH)
  267|      0|   if(req.algo_name() == "Parallel") {
  ------------------
  |  Branch (267:7): [True: 0, False: 0]
  ------------------
  268|      0|      std::vector<std::unique_ptr<HashFunction>> hashes;
  269|       |
  270|      0|      for(size_t i = 0; i != req.arg_count(); ++i) {
  ------------------
  |  Branch (270:25): [True: 0, False: 0]
  ------------------
  271|      0|         auto h = HashFunction::create(req.arg(i));
  272|      0|         if(!h) {
  ------------------
  |  Branch (272:13): [True: 0, False: 0]
  ------------------
  273|      0|            return nullptr;
  274|      0|         }
  275|      0|         hashes.push_back(std::move(h));
  276|      0|      }
  277|       |
  278|      0|      return std::make_unique<Parallel>(hashes);
  279|      0|   }
  280|      0|#endif
  281|       |
  282|      0|#if defined(BOTAN_HAS_TRUNCATED_HASH)
  283|      0|   if(req.algo_name() == "Truncated" && req.arg_count() == 2) {
  ------------------
  |  Branch (283:7): [True: 0, False: 0]
  |  Branch (283:41): [True: 0, False: 0]
  ------------------
  284|      0|      auto hash = HashFunction::create(req.arg(0));
  285|      0|      if(!hash) {
  ------------------
  |  Branch (285:10): [True: 0, False: 0]
  ------------------
  286|      0|         return nullptr;
  287|      0|      }
  288|       |
  289|      0|      return std::make_unique<Truncated_Hash>(std::move(hash), req.arg_as_integer(1));
  290|      0|   }
  291|      0|#endif
  292|       |
  293|      0|#if defined(BOTAN_HAS_COMB4P)
  294|      0|   if(req.algo_name() == "Comb4P" && req.arg_count() == 2) {
  ------------------
  |  Branch (294:7): [True: 0, False: 0]
  |  Branch (294:38): [True: 0, False: 0]
  ------------------
  295|      0|      auto h1 = HashFunction::create(req.arg(0));
  296|      0|      auto h2 = HashFunction::create(req.arg(1));
  297|       |
  298|      0|      if(h1 && h2) {
  ------------------
  |  Branch (298:10): [True: 0, False: 0]
  |  Branch (298:16): [True: 0, False: 0]
  ------------------
  299|      0|         return std::make_unique<Comb4P>(std::move(h1), std::move(h2));
  300|      0|      }
  301|      0|   }
  302|      0|#endif
  303|       |
  304|      0|   return nullptr;
  305|      0|}
_ZN5Botan12HashFunction15create_or_throwENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEES5_:
  308|  9.68k|std::unique_ptr<HashFunction> HashFunction::create_or_throw(std::string_view algo, std::string_view provider) {
  309|  9.68k|   if(auto hash = HashFunction::create(algo, provider)) {
  ------------------
  |  Branch (309:12): [True: 9.68k, False: 0]
  ------------------
  310|  9.68k|      return hash;
  311|  9.68k|   }
  312|      0|   throw Lookup_Error("Hash", algo, provider);
  313|  9.68k|}

_ZN5Botan5SHA_110compress_nERNSt3__16vectorIjNS_16secure_allocatorIjEEEENS1_4spanIKhLm18446744073709551615EEEm:
   24|  5.14k|void SHA_1::compress_n(digest_type& digest, std::span<const uint8_t> input, size_t blocks) {
   25|  5.14k|   using namespace SHA1_F;
   26|       |
   27|  5.14k|#if defined(BOTAN_HAS_SHA1_X86_SHA_NI)
   28|  5.14k|   if(CPUID::has(CPUID::Feature::SHA)) {
  ------------------
  |  Branch (28:7): [True: 5.14k, False: 0]
  ------------------
   29|  5.14k|      return sha1_compress_x86(digest, input, blocks);
   30|  5.14k|   }
   31|      0|#endif
   32|       |
   33|       |#if defined(BOTAN_HAS_SHA1_ARMV8)
   34|       |   if(CPUID::has(CPUID::Feature::SHA1)) {
   35|       |      return sha1_armv8_compress_n(digest, input, blocks);
   36|       |   }
   37|       |#endif
   38|       |
   39|      0|#if defined(BOTAN_HAS_SHA1_AVX2)
   40|      0|   if(CPUID::has(CPUID::Feature::AVX2, CPUID::Feature::BMI)) {
  ------------------
  |  Branch (40:7): [True: 0, False: 0]
  ------------------
   41|      0|      return avx2_compress_n(digest, input, blocks);
   42|      0|   }
   43|      0|#endif
   44|       |
   45|      0|#if defined(BOTAN_HAS_SHA1_SIMD_4X32)
   46|      0|   if(CPUID::has(CPUID::Feature::SIMD_4X32)) {
  ------------------
  |  Branch (46:7): [True: 0, False: 0]
  ------------------
   47|      0|      return simd_compress_n(digest, input, blocks);
   48|      0|   }
   49|      0|#endif
   50|       |
   51|      0|   uint32_t A = digest[0];
   52|      0|   uint32_t B = digest[1];
   53|      0|   uint32_t C = digest[2];
   54|      0|   uint32_t D = digest[3];
   55|      0|   uint32_t E = digest[4];
   56|      0|   std::array<uint32_t, 80> W{};
   57|      0|   auto W_in = std::span{W}.first<block_bytes / sizeof(uint32_t)>();
   58|       |
   59|      0|   BufferSlicer in(input);
   60|       |
   61|      0|   for(size_t i = 0; i != blocks; ++i) {
  ------------------
  |  Branch (61:22): [True: 0, False: 0]
  ------------------
   62|      0|      load_be(W_in, in.take<block_bytes>());
   63|       |
   64|       |      // clang-format off
   65|       |
   66|      0|      for(size_t j = 16; j != 80; j += 8) {
  ------------------
  |  Branch (66:26): [True: 0, False: 0]
  ------------------
   67|      0|         W[j + 0] = rotl<1>(W[j - 3] ^ W[j - 8] ^ W[j - 14] ^ W[j - 16]);
   68|      0|         W[j + 1] = rotl<1>(W[j - 2] ^ W[j - 7] ^ W[j - 13] ^ W[j - 15]);
   69|      0|         W[j + 2] = rotl<1>(W[j - 1] ^ W[j - 6] ^ W[j - 12] ^ W[j - 14]);
   70|      0|         W[j + 3] = rotl<1>(W[j    ] ^ W[j - 5] ^ W[j - 11] ^ W[j - 13]);
   71|      0|         W[j + 4] = rotl<1>(W[j + 1] ^ W[j - 4] ^ W[j - 10] ^ W[j - 12]);
   72|      0|         W[j + 5] = rotl<1>(W[j + 2] ^ W[j - 3] ^ W[j -  9] ^ W[j - 11]);
   73|      0|         W[j + 6] = rotl<1>(W[j + 3] ^ W[j - 2] ^ W[j -  8] ^ W[j - 10]);
   74|      0|         W[j + 7] = rotl<1>(W[j + 4] ^ W[j - 1] ^ W[j -  7] ^ W[j -  9]);
   75|      0|      }
   76|       |
   77|       |      // clang-format on
   78|       |
   79|      0|      F1(A, B, C, D, E, W[0] + K1);
   80|      0|      F1(E, A, B, C, D, W[1] + K1);
   81|      0|      F1(D, E, A, B, C, W[2] + K1);
   82|      0|      F1(C, D, E, A, B, W[3] + K1);
   83|      0|      F1(B, C, D, E, A, W[4] + K1);
   84|      0|      F1(A, B, C, D, E, W[5] + K1);
   85|      0|      F1(E, A, B, C, D, W[6] + K1);
   86|      0|      F1(D, E, A, B, C, W[7] + K1);
   87|      0|      F1(C, D, E, A, B, W[8] + K1);
   88|      0|      F1(B, C, D, E, A, W[9] + K1);
   89|      0|      F1(A, B, C, D, E, W[10] + K1);
   90|      0|      F1(E, A, B, C, D, W[11] + K1);
   91|      0|      F1(D, E, A, B, C, W[12] + K1);
   92|      0|      F1(C, D, E, A, B, W[13] + K1);
   93|      0|      F1(B, C, D, E, A, W[14] + K1);
   94|      0|      F1(A, B, C, D, E, W[15] + K1);
   95|      0|      F1(E, A, B, C, D, W[16] + K1);
   96|      0|      F1(D, E, A, B, C, W[17] + K1);
   97|      0|      F1(C, D, E, A, B, W[18] + K1);
   98|      0|      F1(B, C, D, E, A, W[19] + K1);
   99|       |
  100|      0|      F2(A, B, C, D, E, W[20] + K2);
  101|      0|      F2(E, A, B, C, D, W[21] + K2);
  102|      0|      F2(D, E, A, B, C, W[22] + K2);
  103|      0|      F2(C, D, E, A, B, W[23] + K2);
  104|      0|      F2(B, C, D, E, A, W[24] + K2);
  105|      0|      F2(A, B, C, D, E, W[25] + K2);
  106|      0|      F2(E, A, B, C, D, W[26] + K2);
  107|      0|      F2(D, E, A, B, C, W[27] + K2);
  108|      0|      F2(C, D, E, A, B, W[28] + K2);
  109|      0|      F2(B, C, D, E, A, W[29] + K2);
  110|      0|      F2(A, B, C, D, E, W[30] + K2);
  111|      0|      F2(E, A, B, C, D, W[31] + K2);
  112|      0|      F2(D, E, A, B, C, W[32] + K2);
  113|      0|      F2(C, D, E, A, B, W[33] + K2);
  114|      0|      F2(B, C, D, E, A, W[34] + K2);
  115|      0|      F2(A, B, C, D, E, W[35] + K2);
  116|      0|      F2(E, A, B, C, D, W[36] + K2);
  117|      0|      F2(D, E, A, B, C, W[37] + K2);
  118|      0|      F2(C, D, E, A, B, W[38] + K2);
  119|      0|      F2(B, C, D, E, A, W[39] + K2);
  120|       |
  121|      0|      F3(A, B, C, D, E, W[40] + K3);
  122|      0|      F3(E, A, B, C, D, W[41] + K3);
  123|      0|      F3(D, E, A, B, C, W[42] + K3);
  124|      0|      F3(C, D, E, A, B, W[43] + K3);
  125|      0|      F3(B, C, D, E, A, W[44] + K3);
  126|      0|      F3(A, B, C, D, E, W[45] + K3);
  127|      0|      F3(E, A, B, C, D, W[46] + K3);
  128|      0|      F3(D, E, A, B, C, W[47] + K3);
  129|      0|      F3(C, D, E, A, B, W[48] + K3);
  130|      0|      F3(B, C, D, E, A, W[49] + K3);
  131|      0|      F3(A, B, C, D, E, W[50] + K3);
  132|      0|      F3(E, A, B, C, D, W[51] + K3);
  133|      0|      F3(D, E, A, B, C, W[52] + K3);
  134|      0|      F3(C, D, E, A, B, W[53] + K3);
  135|      0|      F3(B, C, D, E, A, W[54] + K3);
  136|      0|      F3(A, B, C, D, E, W[55] + K3);
  137|      0|      F3(E, A, B, C, D, W[56] + K3);
  138|      0|      F3(D, E, A, B, C, W[57] + K3);
  139|      0|      F3(C, D, E, A, B, W[58] + K3);
  140|      0|      F3(B, C, D, E, A, W[59] + K3);
  141|       |
  142|      0|      F4(A, B, C, D, E, W[60] + K4);
  143|      0|      F4(E, A, B, C, D, W[61] + K4);
  144|      0|      F4(D, E, A, B, C, W[62] + K4);
  145|      0|      F4(C, D, E, A, B, W[63] + K4);
  146|      0|      F4(B, C, D, E, A, W[64] + K4);
  147|      0|      F4(A, B, C, D, E, W[65] + K4);
  148|      0|      F4(E, A, B, C, D, W[66] + K4);
  149|      0|      F4(D, E, A, B, C, W[67] + K4);
  150|      0|      F4(C, D, E, A, B, W[68] + K4);
  151|      0|      F4(B, C, D, E, A, W[69] + K4);
  152|      0|      F4(A, B, C, D, E, W[70] + K4);
  153|      0|      F4(E, A, B, C, D, W[71] + K4);
  154|      0|      F4(D, E, A, B, C, W[72] + K4);
  155|      0|      F4(C, D, E, A, B, W[73] + K4);
  156|      0|      F4(B, C, D, E, A, W[74] + K4);
  157|      0|      F4(A, B, C, D, E, W[75] + K4);
  158|      0|      F4(E, A, B, C, D, W[76] + K4);
  159|      0|      F4(D, E, A, B, C, W[77] + K4);
  160|      0|      F4(C, D, E, A, B, W[78] + K4);
  161|      0|      F4(B, C, D, E, A, W[79] + K4);
  162|       |
  163|      0|      A = (digest[0] += A);
  164|      0|      B = (digest[1] += B);
  165|      0|      C = (digest[2] += C);
  166|      0|      D = (digest[3] += D);
  167|      0|      E = (digest[4] += E);
  168|      0|   }
  169|      0|}
_ZN5Botan5SHA_14initERNSt3__16vectorIjNS_16secure_allocatorIjEEEE:
  174|  5.14k|void SHA_1::init(digest_type& digest) {
  175|  5.14k|   digest.assign({0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476, 0xC3D2E1F0});
  176|  5.14k|}
_ZN5Botan5SHA_18add_dataENSt3__14spanIKhLm18446744073709551615EEE:
  214|  3.42k|void SHA_1::add_data(std::span<const uint8_t> input) {
  215|  3.42k|   m_md.update(input);
  216|  3.42k|}
_ZN5Botan5SHA_112final_resultENSt3__14spanIhLm18446744073709551615EEE:
  218|  3.42k|void SHA_1::final_result(std::span<uint8_t> output) {
  219|  3.42k|   m_md.final(output);
  220|  3.42k|}

_ZN5Botan5SHA_117sha1_compress_x86ERNSt3__16vectorIjNS_16secure_allocatorIjEEEENS1_4spanIKhLm18446744073709551615EEEm:
   76|  5.14k|                                                 size_t blocks) {
   77|  5.14k|   const uint8_t* input = input_span.data();
   78|       |
   79|  5.14k|   SIMD_4x32 ABCD = rev_words(SIMD_4x32::load_le(&digest[0]));  // NOLINT(*-container-data-pointer)
   80|  5.14k|   SIMD_4x32 E0 = SIMD_4x32(0, 0, 0, digest[4]);
   81|       |
   82|  10.2k|   while(blocks > 0) {
  ------------------
  |  Branch (82:10): [True: 5.14k, False: 5.14k]
  ------------------
   83|       |      // Save current hash
   84|  5.14k|      const auto ABCD_SAVE = ABCD;
   85|  5.14k|      const auto E0_SAVE = E0;
   86|       |
   87|  5.14k|      auto W0 = rev_words(SIMD_4x32::load_be(input));
   88|  5.14k|      auto W1 = rev_words(SIMD_4x32::load_be(input + 16));
   89|  5.14k|      auto W2 = rev_words(SIMD_4x32::load_be(input + 32));
   90|  5.14k|      auto W3 = rev_words(SIMD_4x32::load_be(input + 48));
   91|       |
   92|  5.14k|      sha1_x86_first8<0>(ABCD, E0, W0, W1);
   93|  5.14k|      sha1_x86_rnds8<0>(ABCD, E0, W2, W3);
   94|       |
   95|  5.14k|      W0 = sha1_x86_msg1(W0, W1);
   96|  5.14k|      W1 = sha1_x86_msg1(W1, W2);
   97|  5.14k|      W0 ^= W2;
   98|       |
   99|  5.14k|      sha1_x86_next_msg(W3, W0, W1, W2);
  100|  5.14k|      sha1_x86_next_msg(W0, W1, W2, W3);
  101|  5.14k|      sha1_x86_rnds8<0, 1>(ABCD, E0, W0, W1);
  102|       |
  103|  5.14k|      sha1_x86_next_msg(W1, W2, W3, W0);
  104|  5.14k|      sha1_x86_next_msg(W2, W3, W0, W1);
  105|  5.14k|      sha1_x86_rnds8<1>(ABCD, E0, W2, W3);
  106|       |
  107|  5.14k|      sha1_x86_next_msg(W3, W0, W1, W2);
  108|  5.14k|      sha1_x86_next_msg(W0, W1, W2, W3);
  109|  5.14k|      sha1_x86_rnds8<1>(ABCD, E0, W0, W1);
  110|       |
  111|  5.14k|      sha1_x86_next_msg(W1, W2, W3, W0);
  112|  5.14k|      sha1_x86_next_msg(W2, W3, W0, W1);
  113|  5.14k|      sha1_x86_rnds8<2>(ABCD, E0, W2, W3);
  114|       |
  115|  5.14k|      sha1_x86_next_msg(W3, W0, W1, W2);
  116|  5.14k|      sha1_x86_next_msg(W0, W1, W2, W3);
  117|  5.14k|      sha1_x86_rnds8<2>(ABCD, E0, W0, W1);
  118|       |
  119|  5.14k|      sha1_x86_next_msg(W1, W2, W3, W0);
  120|  5.14k|      sha1_x86_next_msg(W2, W3, W0, W1);
  121|  5.14k|      sha1_x86_rnds8<2, 3>(ABCD, E0, W2, W3);
  122|       |
  123|  5.14k|      sha1_x86_next_msg(W3, W0, W1, W2);
  124|  5.14k|      sha1_x86_next_msg(W0, W1, W2, W3);
  125|  5.14k|      sha1_x86_rnds8<3>(ABCD, E0, W0, W1);
  126|       |
  127|  5.14k|      sha1_x86_next_msg(W1, W2, W3, W0);
  128|  5.14k|      sha1_x86_next_msg(W2, W3, W0, W1);
  129|  5.14k|      sha1_x86_rnds8<3>(ABCD, E0, W2, W3);
  130|       |
  131|  5.14k|      ABCD += ABCD_SAVE;
  132|  5.14k|      E0 = sha1_x86_nexte(E0, E0_SAVE);
  133|       |
  134|  5.14k|      input += 64;
  135|  5.14k|      blocks--;
  136|  5.14k|   }
  137|       |
  138|  5.14k|   rev_words(ABCD).store_le(&digest[0]);  // NOLINT(*-container-data-pointer)
  139|       |   digest[4] = _mm_extract_epi32(E0.raw(), 3);
  140|  5.14k|}
sha1_x86.cpp:_ZN5Botan12_GLOBAL__N_19rev_wordsERKNS_9SIMD_4x32E:
   66|  30.8k|BOTAN_FORCE_INLINE BOTAN_FN_ISA_SHANI SIMD_4x32 rev_words(const SIMD_4x32& v) {
   67|       |   return SIMD_4x32(_mm_shuffle_epi32(v.raw(), 0b00011011));
   68|  30.8k|}
sha1_x86.cpp:_ZN5Botan12_GLOBAL__N_113sha1_x86_msg1ERKNS_9SIMD_4x32ES3_:
   29|  10.2k|BOTAN_FORCE_INLINE BOTAN_FN_ISA_SHANI SIMD_4x32 sha1_x86_msg1(const SIMD_4x32& W0, const SIMD_4x32& W1) {
   30|  10.2k|   return SIMD_4x32(_mm_sha1msg1_epu32(W0.raw(), W1.raw()));
   31|  10.2k|}
sha1_x86.cpp:_ZN5Botan12_GLOBAL__N_117sha1_x86_next_msgERKNS_9SIMD_4x32ERS1_S4_S4_:
   36|  82.2k|                                                             SIMD_4x32& W3) {
   37|  82.2k|   W3 = SIMD_4x32(_mm_sha1msg1_epu32(W3.raw(), W0.raw()));
   38|  82.2k|   W1 = SIMD_4x32(_mm_sha1msg2_epu32(W1.raw(), W0.raw()));
   39|  82.2k|   W2 ^= W0;
   40|  82.2k|}
sha1_x86.cpp:_ZN5Botan12_GLOBAL__N_114sha1_x86_nexteERKNS_9SIMD_4x32ES3_:
   25|   102k|BOTAN_FORCE_INLINE BOTAN_FN_ISA_SHANI SIMD_4x32 sha1_x86_nexte(const SIMD_4x32& x, const SIMD_4x32& y) {
   26|   102k|   return SIMD_4x32(_mm_sha1nexte_epu32(x.raw(), y.raw()));
   27|   102k|}
sha1_x86.cpp:_ZN5Botan12_GLOBAL__N_115sha1_x86_first8ILh0ELh0EEEvRNS_9SIMD_4x32ES3_RKS2_S5_:
   46|  5.14k|                                                           const SIMD_4x32& W1) {
   47|  5.14k|   auto TE = ABCD;
   48|  5.14k|   ABCD = SIMD_4x32(_mm_sha1rnds4_epu32(ABCD.raw(), (E + W0).raw(), R1));
   49|       |
   50|  5.14k|   E = ABCD;
   51|       |   ABCD = SIMD_4x32(_mm_sha1rnds4_epu32(ABCD.raw(), sha1_x86_nexte(TE, W1).raw(), R2));
   52|  5.14k|}
sha1_x86.cpp:_ZN5Botan12_GLOBAL__N_114sha1_x86_rnds8ILh0ELh0EEEvRNS_9SIMD_4x32ES3_RKS2_S5_:
   58|  5.14k|                                                          const SIMD_4x32& W1) {
   59|  5.14k|   auto TE = ABCD;
   60|  5.14k|   ABCD = SIMD_4x32(_mm_sha1rnds4_epu32(ABCD.raw(), sha1_x86_nexte(E, W0).raw(), R1));
   61|       |
   62|  5.14k|   E = ABCD;
   63|       |   ABCD = SIMD_4x32(_mm_sha1rnds4_epu32(ABCD.raw(), sha1_x86_nexte(TE, W1).raw(), R2));
   64|  5.14k|}
sha1_x86.cpp:_ZN5Botan12_GLOBAL__N_114sha1_x86_rnds8ILh0ELh1EEEvRNS_9SIMD_4x32ES3_RKS2_S5_:
   58|  5.14k|                                                          const SIMD_4x32& W1) {
   59|  5.14k|   auto TE = ABCD;
   60|  5.14k|   ABCD = SIMD_4x32(_mm_sha1rnds4_epu32(ABCD.raw(), sha1_x86_nexte(E, W0).raw(), R1));
   61|       |
   62|  5.14k|   E = ABCD;
   63|       |   ABCD = SIMD_4x32(_mm_sha1rnds4_epu32(ABCD.raw(), sha1_x86_nexte(TE, W1).raw(), R2));
   64|  5.14k|}
sha1_x86.cpp:_ZN5Botan12_GLOBAL__N_114sha1_x86_rnds8ILh1ELh1EEEvRNS_9SIMD_4x32ES3_RKS2_S5_:
   58|  10.2k|                                                          const SIMD_4x32& W1) {
   59|  10.2k|   auto TE = ABCD;
   60|  10.2k|   ABCD = SIMD_4x32(_mm_sha1rnds4_epu32(ABCD.raw(), sha1_x86_nexte(E, W0).raw(), R1));
   61|       |
   62|  10.2k|   E = ABCD;
   63|       |   ABCD = SIMD_4x32(_mm_sha1rnds4_epu32(ABCD.raw(), sha1_x86_nexte(TE, W1).raw(), R2));
   64|  10.2k|}
sha1_x86.cpp:_ZN5Botan12_GLOBAL__N_114sha1_x86_rnds8ILh2ELh2EEEvRNS_9SIMD_4x32ES3_RKS2_S5_:
   58|  10.2k|                                                          const SIMD_4x32& W1) {
   59|  10.2k|   auto TE = ABCD;
   60|  10.2k|   ABCD = SIMD_4x32(_mm_sha1rnds4_epu32(ABCD.raw(), sha1_x86_nexte(E, W0).raw(), R1));
   61|       |
   62|  10.2k|   E = ABCD;
   63|       |   ABCD = SIMD_4x32(_mm_sha1rnds4_epu32(ABCD.raw(), sha1_x86_nexte(TE, W1).raw(), R2));
   64|  10.2k|}
sha1_x86.cpp:_ZN5Botan12_GLOBAL__N_114sha1_x86_rnds8ILh2ELh3EEEvRNS_9SIMD_4x32ES3_RKS2_S5_:
   58|  5.14k|                                                          const SIMD_4x32& W1) {
   59|  5.14k|   auto TE = ABCD;
   60|  5.14k|   ABCD = SIMD_4x32(_mm_sha1rnds4_epu32(ABCD.raw(), sha1_x86_nexte(E, W0).raw(), R1));
   61|       |
   62|  5.14k|   E = ABCD;
   63|       |   ABCD = SIMD_4x32(_mm_sha1rnds4_epu32(ABCD.raw(), sha1_x86_nexte(TE, W1).raw(), R2));
   64|  5.14k|}
sha1_x86.cpp:_ZN5Botan12_GLOBAL__N_114sha1_x86_rnds8ILh3ELh3EEEvRNS_9SIMD_4x32ES3_RKS2_S5_:
   58|  10.2k|                                                          const SIMD_4x32& W1) {
   59|  10.2k|   auto TE = ABCD;
   60|  10.2k|   ABCD = SIMD_4x32(_mm_sha1rnds4_epu32(ABCD.raw(), sha1_x86_nexte(E, W0).raw(), R1));
   61|       |
   62|  10.2k|   E = ABCD;
   63|       |   ABCD = SIMD_4x32(_mm_sha1rnds4_epu32(ABCD.raw(), sha1_x86_nexte(TE, W1).raw(), R2));
   64|  10.2k|}

_ZN5Botan7SHA_25615compress_digestERNSt3__16vectorIjNS_16secure_allocatorIjEEEENS1_4spanIKhLm18446744073709551615EEEm:
   59|  47.6k|                                                             size_t blocks) {
   60|  47.6k|#if defined(BOTAN_HAS_SHA2_32_X86)
   61|  47.6k|   if(CPUID::has(CPUID::Feature::SHA)) {
  ------------------
  |  Branch (61:7): [True: 47.6k, False: 0]
  ------------------
   62|  47.6k|      return SHA_256::compress_digest_x86(digest, input, blocks);
   63|  47.6k|   }
   64|      0|#endif
   65|       |
   66|       |#if defined(BOTAN_HAS_SHA2_32_ARMV8)
   67|       |   if(CPUID::has(CPUID::Feature::SHA2)) {
   68|       |      return SHA_256::compress_digest_armv8(digest, input, blocks);
   69|       |   }
   70|       |#endif
   71|       |
   72|      0|#if defined(BOTAN_HAS_SHA2_32_X86_AVX2)
   73|      0|   if(CPUID::has(CPUID::Feature::AVX2, CPUID::Feature::BMI)) {
  ------------------
  |  Branch (73:7): [True: 0, False: 0]
  ------------------
   74|      0|      return SHA_256::compress_digest_x86_avx2(digest, input, blocks);
   75|      0|   }
   76|      0|#endif
   77|       |
   78|      0|#if defined(BOTAN_HAS_SHA2_32_SIMD)
   79|      0|   if(CPUID::has(CPUID::Feature::SIMD_4X32)) {
  ------------------
  |  Branch (79:7): [True: 0, False: 0]
  ------------------
   80|      0|      return SHA_256::compress_digest_x86_simd(digest, input, blocks);
   81|      0|   }
   82|      0|#endif
   83|       |
   84|      0|   uint32_t A = digest[0];
   85|      0|   uint32_t B = digest[1];
   86|      0|   uint32_t C = digest[2];
   87|      0|   uint32_t D = digest[3];
   88|      0|   uint32_t E = digest[4];
   89|      0|   uint32_t F = digest[5];
   90|      0|   uint32_t G = digest[6];
   91|      0|   uint32_t H = digest[7];
   92|       |
   93|      0|   std::array<uint32_t, 16> W{};
   94|       |
   95|      0|   BufferSlicer in(input);
   96|       |
   97|      0|   for(size_t i = 0; i != blocks; ++i) {
  ------------------
  |  Branch (97:22): [True: 0, False: 0]
  ------------------
   98|      0|      load_be(W, in.take<block_bytes>());
   99|       |
  100|       |      // clang-format off
  101|       |
  102|      0|      SHA2_32_F(A, B, C, D, E, F, G, H, W[ 0], W[14], W[ 9], W[ 1], 0x428A2F98);
  103|      0|      SHA2_32_F(H, A, B, C, D, E, F, G, W[ 1], W[15], W[10], W[ 2], 0x71374491);
  104|      0|      SHA2_32_F(G, H, A, B, C, D, E, F, W[ 2], W[ 0], W[11], W[ 3], 0xB5C0FBCF);
  105|      0|      SHA2_32_F(F, G, H, A, B, C, D, E, W[ 3], W[ 1], W[12], W[ 4], 0xE9B5DBA5);
  106|      0|      SHA2_32_F(E, F, G, H, A, B, C, D, W[ 4], W[ 2], W[13], W[ 5], 0x3956C25B);
  107|      0|      SHA2_32_F(D, E, F, G, H, A, B, C, W[ 5], W[ 3], W[14], W[ 6], 0x59F111F1);
  108|      0|      SHA2_32_F(C, D, E, F, G, H, A, B, W[ 6], W[ 4], W[15], W[ 7], 0x923F82A4);
  109|      0|      SHA2_32_F(B, C, D, E, F, G, H, A, W[ 7], W[ 5], W[ 0], W[ 8], 0xAB1C5ED5);
  110|      0|      SHA2_32_F(A, B, C, D, E, F, G, H, W[ 8], W[ 6], W[ 1], W[ 9], 0xD807AA98);
  111|      0|      SHA2_32_F(H, A, B, C, D, E, F, G, W[ 9], W[ 7], W[ 2], W[10], 0x12835B01);
  112|      0|      SHA2_32_F(G, H, A, B, C, D, E, F, W[10], W[ 8], W[ 3], W[11], 0x243185BE);
  113|      0|      SHA2_32_F(F, G, H, A, B, C, D, E, W[11], W[ 9], W[ 4], W[12], 0x550C7DC3);
  114|      0|      SHA2_32_F(E, F, G, H, A, B, C, D, W[12], W[10], W[ 5], W[13], 0x72BE5D74);
  115|      0|      SHA2_32_F(D, E, F, G, H, A, B, C, W[13], W[11], W[ 6], W[14], 0x80DEB1FE);
  116|      0|      SHA2_32_F(C, D, E, F, G, H, A, B, W[14], W[12], W[ 7], W[15], 0x9BDC06A7);
  117|      0|      SHA2_32_F(B, C, D, E, F, G, H, A, W[15], W[13], W[ 8], W[ 0], 0xC19BF174);
  118|       |
  119|      0|      SHA2_32_F(A, B, C, D, E, F, G, H, W[ 0], W[14], W[ 9], W[ 1], 0xE49B69C1);
  120|      0|      SHA2_32_F(H, A, B, C, D, E, F, G, W[ 1], W[15], W[10], W[ 2], 0xEFBE4786);
  121|      0|      SHA2_32_F(G, H, A, B, C, D, E, F, W[ 2], W[ 0], W[11], W[ 3], 0x0FC19DC6);
  122|      0|      SHA2_32_F(F, G, H, A, B, C, D, E, W[ 3], W[ 1], W[12], W[ 4], 0x240CA1CC);
  123|      0|      SHA2_32_F(E, F, G, H, A, B, C, D, W[ 4], W[ 2], W[13], W[ 5], 0x2DE92C6F);
  124|      0|      SHA2_32_F(D, E, F, G, H, A, B, C, W[ 5], W[ 3], W[14], W[ 6], 0x4A7484AA);
  125|      0|      SHA2_32_F(C, D, E, F, G, H, A, B, W[ 6], W[ 4], W[15], W[ 7], 0x5CB0A9DC);
  126|      0|      SHA2_32_F(B, C, D, E, F, G, H, A, W[ 7], W[ 5], W[ 0], W[ 8], 0x76F988DA);
  127|      0|      SHA2_32_F(A, B, C, D, E, F, G, H, W[ 8], W[ 6], W[ 1], W[ 9], 0x983E5152);
  128|      0|      SHA2_32_F(H, A, B, C, D, E, F, G, W[ 9], W[ 7], W[ 2], W[10], 0xA831C66D);
  129|      0|      SHA2_32_F(G, H, A, B, C, D, E, F, W[10], W[ 8], W[ 3], W[11], 0xB00327C8);
  130|      0|      SHA2_32_F(F, G, H, A, B, C, D, E, W[11], W[ 9], W[ 4], W[12], 0xBF597FC7);
  131|      0|      SHA2_32_F(E, F, G, H, A, B, C, D, W[12], W[10], W[ 5], W[13], 0xC6E00BF3);
  132|      0|      SHA2_32_F(D, E, F, G, H, A, B, C, W[13], W[11], W[ 6], W[14], 0xD5A79147);
  133|      0|      SHA2_32_F(C, D, E, F, G, H, A, B, W[14], W[12], W[ 7], W[15], 0x06CA6351);
  134|      0|      SHA2_32_F(B, C, D, E, F, G, H, A, W[15], W[13], W[ 8], W[ 0], 0x14292967);
  135|       |
  136|      0|      SHA2_32_F(A, B, C, D, E, F, G, H, W[ 0], W[14], W[ 9], W[ 1], 0x27B70A85);
  137|      0|      SHA2_32_F(H, A, B, C, D, E, F, G, W[ 1], W[15], W[10], W[ 2], 0x2E1B2138);
  138|      0|      SHA2_32_F(G, H, A, B, C, D, E, F, W[ 2], W[ 0], W[11], W[ 3], 0x4D2C6DFC);
  139|      0|      SHA2_32_F(F, G, H, A, B, C, D, E, W[ 3], W[ 1], W[12], W[ 4], 0x53380D13);
  140|      0|      SHA2_32_F(E, F, G, H, A, B, C, D, W[ 4], W[ 2], W[13], W[ 5], 0x650A7354);
  141|      0|      SHA2_32_F(D, E, F, G, H, A, B, C, W[ 5], W[ 3], W[14], W[ 6], 0x766A0ABB);
  142|      0|      SHA2_32_F(C, D, E, F, G, H, A, B, W[ 6], W[ 4], W[15], W[ 7], 0x81C2C92E);
  143|      0|      SHA2_32_F(B, C, D, E, F, G, H, A, W[ 7], W[ 5], W[ 0], W[ 8], 0x92722C85);
  144|      0|      SHA2_32_F(A, B, C, D, E, F, G, H, W[ 8], W[ 6], W[ 1], W[ 9], 0xA2BFE8A1);
  145|      0|      SHA2_32_F(H, A, B, C, D, E, F, G, W[ 9], W[ 7], W[ 2], W[10], 0xA81A664B);
  146|      0|      SHA2_32_F(G, H, A, B, C, D, E, F, W[10], W[ 8], W[ 3], W[11], 0xC24B8B70);
  147|      0|      SHA2_32_F(F, G, H, A, B, C, D, E, W[11], W[ 9], W[ 4], W[12], 0xC76C51A3);
  148|      0|      SHA2_32_F(E, F, G, H, A, B, C, D, W[12], W[10], W[ 5], W[13], 0xD192E819);
  149|      0|      SHA2_32_F(D, E, F, G, H, A, B, C, W[13], W[11], W[ 6], W[14], 0xD6990624);
  150|      0|      SHA2_32_F(C, D, E, F, G, H, A, B, W[14], W[12], W[ 7], W[15], 0xF40E3585);
  151|      0|      SHA2_32_F(B, C, D, E, F, G, H, A, W[15], W[13], W[ 8], W[ 0], 0x106AA070);
  152|       |
  153|      0|      SHA2_32_F(A, B, C, D, E, F, G, H, W[ 0], W[14], W[ 9], W[ 1], 0x19A4C116);
  154|      0|      SHA2_32_F(H, A, B, C, D, E, F, G, W[ 1], W[15], W[10], W[ 2], 0x1E376C08);
  155|      0|      SHA2_32_F(G, H, A, B, C, D, E, F, W[ 2], W[ 0], W[11], W[ 3], 0x2748774C);
  156|      0|      SHA2_32_F(F, G, H, A, B, C, D, E, W[ 3], W[ 1], W[12], W[ 4], 0x34B0BCB5);
  157|      0|      SHA2_32_F(E, F, G, H, A, B, C, D, W[ 4], W[ 2], W[13], W[ 5], 0x391C0CB3);
  158|      0|      SHA2_32_F(D, E, F, G, H, A, B, C, W[ 5], W[ 3], W[14], W[ 6], 0x4ED8AA4A);
  159|      0|      SHA2_32_F(C, D, E, F, G, H, A, B, W[ 6], W[ 4], W[15], W[ 7], 0x5B9CCA4F);
  160|      0|      SHA2_32_F(B, C, D, E, F, G, H, A, W[ 7], W[ 5], W[ 0], W[ 8], 0x682E6FF3);
  161|      0|      SHA2_32_F(A, B, C, D, E, F, G, H, W[ 8], W[ 6], W[ 1], W[ 9], 0x748F82EE);
  162|      0|      SHA2_32_F(H, A, B, C, D, E, F, G, W[ 9], W[ 7], W[ 2], W[10], 0x78A5636F);
  163|      0|      SHA2_32_F(G, H, A, B, C, D, E, F, W[10], W[ 8], W[ 3], W[11], 0x84C87814);
  164|      0|      SHA2_32_F(F, G, H, A, B, C, D, E, W[11], W[ 9], W[ 4], W[12], 0x8CC70208);
  165|      0|      SHA2_32_F(E, F, G, H, A, B, C, D, W[12], W[10], W[ 5], W[13], 0x90BEFFFA);
  166|      0|      SHA2_32_F(D, E, F, G, H, A, B, C, W[13], W[11], W[ 6], W[14], 0xA4506CEB);
  167|      0|      SHA2_32_F(C, D, E, F, G, H, A, B, W[14], W[12], W[ 7], W[15], 0xBEF9A3F7);
  168|      0|      SHA2_32_F(B, C, D, E, F, G, H, A, W[15], W[13], W[ 8], W[ 0], 0xC67178F2);
  169|       |
  170|       |      // clang-format on
  171|       |
  172|      0|      A = (digest[0] += A);
  173|      0|      B = (digest[1] += B);
  174|      0|      C = (digest[2] += C);
  175|      0|      D = (digest[3] += D);
  176|      0|      E = (digest[4] += E);
  177|      0|      F = (digest[5] += F);
  178|      0|      G = (digest[6] += G);
  179|      0|      H = (digest[7] += H);
  180|      0|   }
  181|      0|}
_ZN5Botan7SHA_25610compress_nERNSt3__16vectorIjNS_16secure_allocatorIjEEEENS1_4spanIKhLm18446744073709551615EEEm:
  215|  47.6k|void SHA_256::compress_n(digest_type& digest, std::span<const uint8_t> input, size_t blocks) {
  216|  47.6k|   SHA_256::compress_digest(digest, input, blocks);
  217|  47.6k|}
_ZN5Botan7SHA_2564initERNSt3__16vectorIjNS_16secure_allocatorIjEEEE:
  219|  41.8k|void SHA_256::init(digest_type& digest) {
  220|  41.8k|   digest.assign({0x6A09E667, 0xBB67AE85, 0x3C6EF372, 0xA54FF53A, 0x510E527F, 0x9B05688C, 0x1F83D9AB, 0x5BE0CD19});
  221|  41.8k|}
_ZNK5Botan7SHA_25610copy_stateEv:
  227|  25.1k|std::unique_ptr<HashFunction> SHA_256::copy_state() const {
  228|  25.1k|   return std::make_unique<SHA_256>(*this);
  229|  25.1k|}
_ZN5Botan7SHA_2568add_dataENSt3__14spanIKhLm18446744073709551615EEE:
  231|  34.0k|void SHA_256::add_data(std::span<const uint8_t> input) {
  232|  34.0k|   m_md.update(input);
  233|  34.0k|}
_ZN5Botan7SHA_25612final_resultENSt3__14spanIhLm18446744073709551615EEE:
  235|  32.1k|void SHA_256::final_result(std::span<uint8_t> output) {
  236|  32.1k|   m_md.final(output);
  237|  32.1k|}

_ZN5Botan7SHA_25619compress_digest_x86ERNSt3__16vectorIjNS_16secure_allocatorIjEEEENS1_4spanIKhLm18446744073709551615EEEm:
   58|  47.6k|                                                                                    size_t blocks) {
   59|  47.6k|   alignas(64) static const uint32_t K[] = {
   60|  47.6k|      0x428A2F98, 0x71374491, 0xB5C0FBCF, 0xE9B5DBA5, 0x3956C25B, 0x59F111F1, 0x923F82A4, 0xAB1C5ED5,
   61|  47.6k|      0xD807AA98, 0x12835B01, 0x243185BE, 0x550C7DC3, 0x72BE5D74, 0x80DEB1FE, 0x9BDC06A7, 0xC19BF174,
   62|  47.6k|      0xE49B69C1, 0xEFBE4786, 0x0FC19DC6, 0x240CA1CC, 0x2DE92C6F, 0x4A7484AA, 0x5CB0A9DC, 0x76F988DA,
   63|  47.6k|      0x983E5152, 0xA831C66D, 0xB00327C8, 0xBF597FC7, 0xC6E00BF3, 0xD5A79147, 0x06CA6351, 0x14292967,
   64|  47.6k|      0x27B70A85, 0x2E1B2138, 0x4D2C6DFC, 0x53380D13, 0x650A7354, 0x766A0ABB, 0x81C2C92E, 0x92722C85,
   65|  47.6k|      0xA2BFE8A1, 0xA81A664B, 0xC24B8B70, 0xC76C51A3, 0xD192E819, 0xD6990624, 0xF40E3585, 0x106AA070,
   66|  47.6k|      0x19A4C116, 0x1E376C08, 0x2748774C, 0x34B0BCB5, 0x391C0CB3, 0x4ED8AA4A, 0x5B9CCA4F, 0x682E6FF3,
   67|  47.6k|      0x748F82EE, 0x78A5636F, 0x84C87814, 0x8CC70208, 0x90BEFFFA, 0xA4506CEB, 0xBEF9A3F7, 0xC67178F2,
   68|  47.6k|   };
   69|       |
   70|  47.6k|   const uint8_t* input = input_span.data();
   71|       |
   72|  47.6k|   SIMD_4x32 S0 = SIMD_4x32::load_le(&digest[0]);  // NOLINT(*container-data-pointer)
   73|  47.6k|   SIMD_4x32 S1 = SIMD_4x32::load_le(&digest[4]);
   74|       |
   75|  47.6k|   sha256_permute_state(S0, S1);
   76|       |
   77|  97.6k|   while(blocks > 0) {
  ------------------
  |  Branch (77:10): [True: 50.0k, False: 47.6k]
  ------------------
   78|  50.0k|      const auto S0_SAVE = S0;
   79|  50.0k|      const auto S1_SAVE = S1;
   80|       |
   81|  50.0k|      auto W0 = SIMD_4x32::load_be(input);
   82|  50.0k|      auto W1 = SIMD_4x32::load_be(input + 16);
   83|  50.0k|      auto W2 = SIMD_4x32::load_be(input + 32);
   84|  50.0k|      auto W3 = SIMD_4x32::load_be(input + 48);
   85|       |
   86|  50.0k|      sha256_rnds4(S0, S1, W0, SIMD_4x32::load_le(&K[0]));
   87|  50.0k|      sha256_rnds4(S0, S1, W1, SIMD_4x32::load_le(&K[4]));
   88|  50.0k|      sha256_rnds4(S0, S1, W2, SIMD_4x32::load_le(&K[8]));
   89|  50.0k|      sha256_rnds4(S0, S1, W3, SIMD_4x32::load_le(&K[12]));
   90|       |
   91|  50.0k|      W0 = SIMD_4x32(_mm_sha256msg1_epu32(W0.raw(), W1.raw()));
   92|  50.0k|      W1 = SIMD_4x32(_mm_sha256msg1_epu32(W1.raw(), W2.raw()));
   93|       |
   94|  50.0k|      sha256_msg_exp(W2, W3, W0, W1);
   95|       |
   96|  50.0k|      sha256_rnds4(S0, S1, W0, SIMD_4x32::load_le(&K[4 * 4]));
   97|  50.0k|      sha256_rnds4(S0, S1, W1, SIMD_4x32::load_le(&K[4 * 5]));
   98|       |
   99|  50.0k|      sha256_msg_exp(W0, W1, W2, W3);
  100|       |
  101|  50.0k|      sha256_rnds4(S0, S1, W2, SIMD_4x32::load_le(&K[4 * 6]));
  102|  50.0k|      sha256_rnds4(S0, S1, W3, SIMD_4x32::load_le(&K[4 * 7]));
  103|       |
  104|  50.0k|      sha256_msg_exp(W2, W3, W0, W1);
  105|       |
  106|  50.0k|      sha256_rnds4(S0, S1, W0, SIMD_4x32::load_le(&K[4 * 8]));
  107|  50.0k|      sha256_rnds4(S0, S1, W1, SIMD_4x32::load_le(&K[4 * 9]));
  108|       |
  109|  50.0k|      sha256_msg_exp(W0, W1, W2, W3);
  110|       |
  111|  50.0k|      sha256_rnds4(S0, S1, W2, SIMD_4x32::load_le(&K[4 * 10]));
  112|  50.0k|      sha256_rnds4(S0, S1, W3, SIMD_4x32::load_le(&K[4 * 11]));
  113|       |
  114|  50.0k|      sha256_msg_exp(W2, W3, W0, W1);
  115|       |
  116|  50.0k|      sha256_rnds4(S0, S1, W0, SIMD_4x32::load_le(&K[4 * 12]));
  117|  50.0k|      sha256_rnds4(S0, S1, W1, SIMD_4x32::load_le(&K[4 * 13]));
  118|       |
  119|  50.0k|      sha256_msg_exp(W0, W1, W2, W3);
  120|       |
  121|  50.0k|      sha256_rnds4(S0, S1, W2, SIMD_4x32::load_le(&K[4 * 14]));
  122|  50.0k|      sha256_rnds4(S0, S1, W3, SIMD_4x32::load_le(&K[4 * 15]));
  123|       |
  124|       |      // Add values back to state
  125|  50.0k|      S0 += S0_SAVE;
  126|  50.0k|      S1 += S1_SAVE;
  127|       |
  128|  50.0k|      input += 64;
  129|  50.0k|      blocks--;
  130|  50.0k|   }
  131|       |
  132|  47.6k|   sha256_permute_state(S1, S0);
  133|       |
  134|  47.6k|   S0.store_le(&digest[0]);  // NOLINT(*container-data-pointer)
  135|  47.6k|   S1.store_le(&digest[4]);
  136|  47.6k|}
sha2_32_x86.cpp:_ZN5Botan12_GLOBAL__N_120sha256_permute_stateERNS_9SIMD_4x32ES2_:
   43|  95.2k|BOTAN_FORCE_INLINE BOTAN_FN_ISA_SHANI void sha256_permute_state(SIMD_4x32& S0, SIMD_4x32& S1) {
   44|  95.2k|   S0 = SIMD_4x32(_mm_shuffle_epi32(S0.raw(), 0b10110001));  // CDAB
   45|  95.2k|   S1 = SIMD_4x32(_mm_shuffle_epi32(S1.raw(), 0b00011011));  // EFGH
   46|       |
   47|  95.2k|   const auto T = SIMD_4x32::alignr8(S0, S1);                  // ABEF
   48|       |   S1 = SIMD_4x32(_mm_blend_epi16(S1.raw(), S0.raw(), 0xF0));  // CDGH
   49|  95.2k|   S0 = T;
   50|  95.2k|}
sha2_32_x86.cpp:_ZN5Botan12_GLOBAL__N_112sha256_rnds4ERNS_9SIMD_4x32ES2_RKS1_S4_:
   27|   800k|                                                        const SIMD_4x32& k) {
   28|   800k|   const auto mk = msg + k;
   29|   800k|   S1 = SIMD_4x32(_mm_sha256rnds2_epu32(S1.raw(), S0.raw(), mk.raw()));
   30|   800k|   S0 = SIMD_4x32(_mm_sha256rnds2_epu32(S0.raw(), S1.raw(), mk.shift_elems_right<2>().raw()));
   31|   800k|}
sha2_32_x86.cpp:_ZN5Botan12_GLOBAL__N_114sha256_msg_expERNS_9SIMD_4x32ES2_S2_S2_:
   33|   300k|BOTAN_FORCE_INLINE BOTAN_FN_ISA_SHANI void sha256_msg_exp(SIMD_4x32& W0, SIMD_4x32& W1, SIMD_4x32& W2, SIMD_4x32& W3) {
   34|   300k|   W2 += SIMD_4x32::alignr4(W1, W0);
   35|   300k|   W0 = SIMD_4x32(_mm_sha256msg1_epu32(W0.raw(), W1.raw()));
   36|   300k|   W2 = SIMD_4x32(_mm_sha256msg2_epu32(W2.raw(), W1.raw()));
   37|       |
   38|   300k|   W3 += SIMD_4x32::alignr4(W2, W1);
   39|   300k|   W1 = SIMD_4x32(_mm_sha256msg1_epu32(W1.raw(), W2.raw()));
   40|   300k|   W3 = SIMD_4x32(_mm_sha256msg2_epu32(W3.raw(), W2.raw()));
   41|   300k|}

_ZNK5Botan6BigInt7byte_atEm:
  118|     24|uint8_t BigInt::byte_at(size_t n) const {
  119|     24|   return get_byte_var(sizeof(word) - (n % sizeof(word)) - 1, word_at(n / sizeof(word)));
  120|     24|}
_ZN5Botan6BigInt4Data11set_to_zeroEv:
  191|  2.18k|void BigInt::Data::set_to_zero() {
  192|  2.18k|   m_reg.resize(m_reg.capacity());
  193|  2.18k|   clear_mem(m_reg.data(), m_reg.size());
  194|  2.18k|   m_sig_words = 0;
  195|  2.18k|}
_ZNK5Botan6BigInt4Data14calc_sig_wordsEv:
  215|  1.93k|size_t BigInt::Data::calc_sig_words() const {
  216|  1.93k|   const size_t sz = m_reg.size();
  217|  1.93k|   size_t sig = sz;
  218|       |
  219|  1.93k|   word sub = 1;
  220|       |
  221|  17.3k|   for(size_t i = 0; i != sz; ++i) {
  ------------------
  |  Branch (221:22): [True: 15.4k, False: 1.93k]
  ------------------
  222|  15.4k|      const word w = m_reg[sz - i - 1];
  223|  15.4k|      sub &= ct_is_zero(w);
  224|  15.4k|      sig -= sub;
  225|  15.4k|   }
  226|       |
  227|       |   /*
  228|       |   * This depends on the data so is poisoned, but unpoison it here as
  229|       |   * later conditionals are made on the size.
  230|       |   */
  231|  1.93k|   CT::unpoison(sig);
  232|       |
  233|  1.93k|   return sig;
  234|  1.93k|}
_ZNK5Botan6BigInt5bytesEv:
  294|  3.47k|size_t BigInt::bytes() const {
  295|  3.47k|   return round_up(bits(), 8) / 8;
  296|  3.47k|}
_ZNK5Botan6BigInt13top_bits_freeEv:
  298|  1.77k|size_t BigInt::top_bits_free() const {
  299|  1.77k|   const size_t words = sig_words();
  300|       |
  301|  1.77k|   const word top_word = word_at(words - 1);
  302|  1.77k|   const size_t bits_used = high_bit(CT::value_barrier(top_word));
  303|  1.77k|   CT::unpoison(bits_used);
  304|  1.77k|   return WordInfo<word>::bits - bits_used;
  305|  1.77k|}
_ZNK5Botan6BigInt4bitsEv:
  307|  3.49k|size_t BigInt::bits() const {
  308|  3.49k|   const size_t words = sig_words();
  309|       |
  310|  3.49k|   if(words == 0) {
  ------------------
  |  Branch (310:7): [True: 1.71k, False: 1.77k]
  ------------------
  311|  1.71k|      return 0;
  312|  1.71k|   }
  313|       |
  314|  1.77k|   const size_t full_words = (words - 1) * WordInfo<word>::bits;
  315|  1.77k|   const size_t top_bits = WordInfo<word>::bits - top_bits_free();
  316|       |
  317|  1.77k|   return full_words + top_bits;
  318|  3.49k|}
_ZNK5Botan6BigInt12serialize_toENSt3__14spanIhLm18446744073709551615EEE:
  395|  1.73k|void BigInt::serialize_to(std::span<uint8_t> output) const {
  396|  1.73k|   BOTAN_ARG_CHECK(this->bytes() <= output.size(), "Insufficient output space");
  ------------------
  |  |   35|  1.73k|   do {                                                          \
  |  |   36|  1.73k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  1.73k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 1.73k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  1.73k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 1.73k]
  |  |  ------------------
  ------------------
  397|       |
  398|  1.73k|   this->binary_encode(output.data(), output.size());
  399|  1.73k|}
_ZNK5Botan6BigInt13binary_encodeEPhm:
  404|  1.73k|void BigInt::binary_encode(uint8_t output[], size_t len) const {
  405|  1.73k|   const size_t full_words = len / sizeof(word);
  406|  1.73k|   const size_t extra_bytes = len % sizeof(word);
  407|       |
  408|  1.73k|   for(size_t i = 0; i != full_words; ++i) {
  ------------------
  |  Branch (408:22): [True: 0, False: 1.73k]
  ------------------
  409|      0|      const word w = word_at(i);
  410|      0|      store_be(w, output + (len - (i + 1) * sizeof(word)));
  411|      0|   }
  412|       |
  413|  1.73k|   if(extra_bytes > 0) {
  ------------------
  |  Branch (413:7): [True: 877, False: 858]
  ------------------
  414|    877|      const word w = word_at(full_words);
  415|       |
  416|  1.76k|      for(size_t i = 0; i != extra_bytes; ++i) {
  ------------------
  |  Branch (416:25): [True: 885, False: 877]
  ------------------
  417|    885|         output[extra_bytes - i - 1] = get_byte_var(sizeof(word) - i - 1, w);
  418|    885|      }
  419|    877|   }
  420|  1.73k|}
_ZN5Botan6BigInt17assign_from_bytesENSt3__14spanIKhLm18446744073709551615EEE:
  425|  2.18k|void BigInt::assign_from_bytes(std::span<const uint8_t> bytes) {
  426|  2.18k|   clear();
  427|       |
  428|  2.18k|   const size_t length = bytes.size();
  429|  2.18k|   const size_t full_words = length / sizeof(word);
  430|  2.18k|   const size_t extra_bytes = length % sizeof(word);
  431|       |
  432|  2.18k|   secure_vector<word> reg((round_up(full_words + (extra_bytes > 0 ? 1 : 0), 8)));
  ------------------
  |  Branch (432:52): [True: 2.15k, False: 33]
  ------------------
  433|       |
  434|  2.40k|   for(size_t i = 0; i != full_words; ++i) {
  ------------------
  |  Branch (434:22): [True: 219, False: 2.18k]
  ------------------
  435|    219|      reg[i] = load_be<word>(bytes.last<sizeof(word)>());
  436|    219|      bytes = bytes.first(bytes.size() - sizeof(word));
  437|    219|   }
  438|       |
  439|  2.18k|   if(!bytes.empty()) {
  ------------------
  |  Branch (439:7): [True: 2.15k, False: 33]
  ------------------
  440|  2.15k|      BOTAN_ASSERT_NOMSG(extra_bytes == bytes.size());
  ------------------
  |  |   77|  2.15k|   do {                                                                     \
  |  |   78|  2.15k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  2.15k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 2.15k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  2.15k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 2.15k]
  |  |  ------------------
  ------------------
  441|  2.15k|      std::array<uint8_t, sizeof(word)> last_partial_word = {0};
  442|  2.15k|      copy_mem(std::span{last_partial_word}.last(extra_bytes), bytes);
  443|  2.15k|      reg[full_words] = load_be<word>(last_partial_word);
  444|  2.15k|   }
  445|       |
  446|  2.18k|   m_data.swap(reg);
  447|  2.18k|}
_ZNK5Botan6BigInt20_const_time_unpoisonEv:
  559|  2.28k|void BigInt::_const_time_unpoison() const {
  560|  2.28k|   CT::unpoison(m_data.const_data(), m_data.size());
  561|  2.28k|}

_ZN5Botan15Ed448_PublicKeyC1ERKNS_19AlgorithmIdentifierENSt3__14spanIKhLm18446744073709551615EEE:
   37|      1|      Ed448_PublicKey(key_bits) {}
_ZN5Botan15Ed448_PublicKeyC1ENSt3__14spanIKhLm18446744073709551615EEE:
   39|      1|Ed448_PublicKey::Ed448_PublicKey(std::span<const uint8_t> key_bits) {
   40|      1|   if(key_bits.size() != ED448_LEN) {
  ------------------
  |  Branch (40:7): [True: 1, False: 0]
  ------------------
   41|      1|      throw Decoding_Error("Invalid length for Ed448 public key");
   42|      1|   }
   43|      0|   copy_mem(m_public, key_bits.first<ED448_LEN>());
   44|      0|}

_ZN5Botan14X448_PublicKeyC1ERKNS_19AlgorithmIdentifierENSt3__14spanIKhLm18446744073709551615EEE:
   60|      1|      X448_PublicKey(key_bits) {}
_ZN5Botan14X448_PublicKeyC1ENSt3__14spanIKhLm18446744073709551615EEE:
   62|      1|X448_PublicKey::X448_PublicKey(std::span<const uint8_t> pub) {
   63|      1|   BOTAN_ARG_CHECK(pub.size() == X448_LEN, "Invalid size for X448 public key");
  ------------------
  |  |   35|      1|   do {                                                          \
  |  |   36|      1|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|      1|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 1, False: 0]
  |  |  ------------------
  |  |   38|      1|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      1|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      1|      }                                                          \
  |  |   41|      1|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 1]
  |  |  ------------------
  ------------------
   64|      1|   copy_mem(m_public, pub);
   65|      1|}

_ZN5Botan8PEM_Code6decodeERNS_10DataSourceERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE:
   62|    198|secure_vector<uint8_t> decode(DataSource& source, std::string& label) {
   63|    198|   const size_t RANDOM_CHAR_LIMIT = 8;
   64|       |
   65|    198|   label.clear();
   66|       |
   67|    198|   const std::string PEM_HEADER1 = "-----BEGIN ";
   68|    198|   const std::string PEM_HEADER2 = "-----";
   69|    198|   size_t position = 0;
   70|       |
   71|  10.0k|   while(position != PEM_HEADER1.length()) {
  ------------------
  |  Branch (71:10): [True: 9.88k, False: 165]
  ------------------
   72|  9.88k|      auto b = source.read_byte();
   73|       |
   74|  9.88k|      if(!b) {
  ------------------
  |  Branch (74:10): [True: 31, False: 9.85k]
  ------------------
   75|     31|         throw Decoding_Error("PEM: No PEM header found");
   76|     31|      }
   77|  9.85k|      if(static_cast<char>(*b) == PEM_HEADER1[position]) {
  ------------------
  |  Branch (77:10): [True: 2.37k, False: 7.47k]
  ------------------
   78|  2.37k|         ++position;
   79|  7.47k|      } else if(position >= RANDOM_CHAR_LIMIT) {
  ------------------
  |  Branch (79:17): [True: 2, False: 7.47k]
  ------------------
   80|      2|         throw Decoding_Error("PEM: Malformed PEM header");
   81|  7.47k|      } else {
   82|  7.47k|         position = 0;
   83|  7.47k|      }
   84|  9.85k|   }
   85|    165|   position = 0;
   86|  3.44k|   while(position != PEM_HEADER2.length()) {
  ------------------
  |  Branch (86:10): [True: 3.30k, False: 140]
  ------------------
   87|  3.30k|      auto b = source.read_byte();
   88|       |
   89|  3.30k|      if(!b) {
  ------------------
  |  Branch (89:10): [True: 16, False: 3.28k]
  ------------------
   90|     16|         throw Decoding_Error("PEM: No PEM header found");
   91|     16|      }
   92|  3.28k|      if(static_cast<char>(*b) == PEM_HEADER2[position]) {
  ------------------
  |  Branch (92:10): [True: 711, False: 2.57k]
  ------------------
   93|    711|         ++position;
   94|  2.57k|      } else if(position > 0) {
  ------------------
  |  Branch (94:17): [True: 5, False: 2.57k]
  ------------------
   95|      5|         throw Decoding_Error("PEM: Malformed PEM header");
   96|      5|      }
   97|       |
   98|  3.28k|      if(position == 0) {
  ------------------
  |  Branch (98:10): [True: 2.57k, False: 711]
  ------------------
   99|  2.57k|         if(label.size() >= 128) {
  ------------------
  |  Branch (99:13): [True: 4, False: 2.56k]
  ------------------
  100|      4|            throw Decoding_Error("PEM: Label too long");
  101|      4|         }
  102|  2.56k|         label += static_cast<char>(*b);
  103|  2.56k|      }
  104|  3.28k|   }
  105|       |
  106|    140|   std::vector<char> b64;
  107|       |
  108|    140|   const std::string PEM_TRAILER = fmt("-----END {}-----", label);
  109|    140|   position = 0;
  110|  46.4k|   while(position != PEM_TRAILER.length()) {
  ------------------
  |  Branch (110:10): [True: 46.3k, False: 93]
  ------------------
  111|  46.3k|      auto b = source.read_byte();
  112|       |
  113|  46.3k|      if(!b) {
  ------------------
  |  Branch (113:10): [True: 38, False: 46.3k]
  ------------------
  114|     38|         throw Decoding_Error("PEM: No PEM trailer found");
  115|     38|      }
  116|  46.3k|      if(static_cast<char>(*b) == PEM_TRAILER[position]) {
  ------------------
  |  Branch (116:10): [True: 2.09k, False: 44.2k]
  ------------------
  117|  2.09k|         ++position;
  118|  44.2k|      } else if(position > 0) {
  ------------------
  |  Branch (118:17): [True: 9, False: 44.2k]
  ------------------
  119|      9|         throw Decoding_Error("PEM: Malformed PEM trailer");
  120|      9|      }
  121|       |
  122|  46.3k|      if(position == 0) {
  ------------------
  |  Branch (122:10): [True: 44.2k, False: 2.09k]
  ------------------
  123|  44.2k|         b64.push_back(*b);
  124|  44.2k|      }
  125|  46.3k|   }
  126|       |
  127|     93|   return base64_decode(b64.data(), b64.size());
  128|    140|}
_ZN5Botan8PEM_Code7matchesERNS_10DataSourceENSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEm:
  143|  4.39k|bool matches(DataSource& source, std::string_view extra, size_t search_range) {
  144|  4.39k|   const std::string PEM_HEADER = fmt("-----BEGIN {}", extra);
  145|       |
  146|  4.39k|   secure_vector<uint8_t> search_buf(search_range);
  147|  4.39k|   const size_t got = source.peek(search_buf.data(), search_buf.size(), 0);
  148|       |
  149|  4.39k|   if(got < PEM_HEADER.length()) {
  ------------------
  |  Branch (149:7): [True: 243, False: 4.14k]
  ------------------
  150|    243|      return false;
  151|    243|   }
  152|       |
  153|  4.14k|   size_t index = 0;
  154|       |
  155|   302k|   for(size_t j = 0; j != got; ++j) {
  ------------------
  |  Branch (155:22): [True: 298k, False: 4.11k]
  ------------------
  156|   298k|      if(static_cast<char>(search_buf[j]) == PEM_HEADER[index]) {
  ------------------
  |  Branch (156:10): [True: 2.08k, False: 296k]
  ------------------
  157|  2.08k|         ++index;
  158|   296k|      } else {
  159|   296k|         index = 0;
  160|   296k|      }
  161|       |
  162|   298k|      if(index == PEM_HEADER.size()) {
  ------------------
  |  Branch (162:10): [True: 31, False: 298k]
  ------------------
  163|     31|         return true;
  164|     31|      }
  165|   298k|   }
  166|       |
  167|  4.11k|   return false;
  168|  4.14k|}

_ZN5Botan15load_public_keyERKNS_19AlgorithmIdentifierENSt3__14spanIKhLm18446744073709551615EEE:
  131|  1.71k|                                            [[maybe_unused]] std::span<const uint8_t> key_bits) {
  132|  1.71k|   const std::string oid_str = alg_id.oid().to_formatted_string();
  133|  1.71k|   const std::vector<std::string> alg_info = split_on(oid_str, '/');
  134|  1.71k|   const std::string_view alg_name = alg_info[0];
  135|       |
  136|  1.71k|#if defined(BOTAN_HAS_RSA)
  137|  1.71k|   if(alg_name == "RSA") {
  ------------------
  |  Branch (137:7): [True: 0, False: 1.71k]
  ------------------
  138|      0|      return std::make_unique<RSA_PublicKey>(alg_id, key_bits);
  139|      0|   }
  140|  1.71k|#endif
  141|       |
  142|  1.71k|#if defined(BOTAN_HAS_X25519)
  143|  1.71k|   if(alg_name == "X25519" || alg_name == "Curve25519") {
  ------------------
  |  Branch (143:7): [True: 0, False: 1.71k]
  |  Branch (143:31): [True: 0, False: 1.71k]
  ------------------
  144|      0|      return std::make_unique<X25519_PublicKey>(alg_id, key_bits);
  145|      0|   }
  146|  1.71k|#endif
  147|       |
  148|  1.71k|#if defined(BOTAN_HAS_X448)
  149|  1.71k|   if(alg_name == "X448") {
  ------------------
  |  Branch (149:7): [True: 1, False: 1.71k]
  ------------------
  150|      1|      return std::make_unique<X448_PublicKey>(alg_id, key_bits);
  151|      1|   }
  152|  1.71k|#endif
  153|       |
  154|  1.71k|#if defined(BOTAN_HAS_MCELIECE)
  155|  1.71k|   if(alg_name == "McEliece") {
  ------------------
  |  Branch (155:7): [True: 0, False: 1.71k]
  ------------------
  156|      0|      return std::make_unique<McEliece_PublicKey>(key_bits);
  157|      0|   }
  158|  1.71k|#endif
  159|       |
  160|  1.71k|#if defined(BOTAN_HAS_FRODOKEM)
  161|  1.71k|   if(alg_name == "FrodoKEM" || alg_name.starts_with("FrodoKEM-") || alg_name.starts_with("eFrodoKEM-")) {
  ------------------
  |  Branch (161:7): [True: 0, False: 1.71k]
  |  Branch (161:33): [True: 0, False: 1.71k]
  |  Branch (161:70): [True: 0, False: 1.71k]
  ------------------
  162|      0|      return std::make_unique<FrodoKEM_PublicKey>(alg_id, key_bits);
  163|      0|   }
  164|  1.71k|#endif
  165|       |
  166|  1.71k|#if defined(BOTAN_HAS_KYBER) || defined(BOTAN_HAS_KYBER_90S)
  167|  1.71k|   if(alg_name == "Kyber" || alg_name.starts_with("Kyber-")) {
  ------------------
  |  Branch (167:7): [True: 0, False: 1.71k]
  |  Branch (167:30): [True: 0, False: 1.71k]
  ------------------
  168|      0|      return std::make_unique<Kyber_PublicKey>(alg_id, key_bits);
  169|      0|   }
  170|  1.71k|#endif
  171|       |
  172|  1.71k|#if defined(BOTAN_HAS_ML_KEM)
  173|  1.71k|   if(alg_name.starts_with("ML-KEM-")) {
  ------------------
  |  Branch (173:7): [True: 0, False: 1.71k]
  ------------------
  174|      0|      return std::make_unique<ML_KEM_PublicKey>(alg_id, key_bits);
  175|      0|   }
  176|  1.71k|#endif
  177|       |
  178|  1.71k|#if defined(BOTAN_HAS_ECDSA)
  179|  1.71k|   if(alg_name == "ECDSA") {
  ------------------
  |  Branch (179:7): [True: 0, False: 1.71k]
  ------------------
  180|      0|      return std::make_unique<ECDSA_PublicKey>(alg_id, key_bits);
  181|      0|   }
  182|  1.71k|#endif
  183|       |
  184|  1.71k|#if defined(BOTAN_HAS_ECDH)
  185|  1.71k|   if(alg_name == "ECDH") {
  ------------------
  |  Branch (185:7): [True: 0, False: 1.71k]
  ------------------
  186|      0|      return std::make_unique<ECDH_PublicKey>(alg_id, key_bits);
  187|      0|   }
  188|  1.71k|#endif
  189|       |
  190|  1.71k|#if defined(BOTAN_HAS_DIFFIE_HELLMAN)
  191|  1.71k|   if(alg_name == "DH") {
  ------------------
  |  Branch (191:7): [True: 0, False: 1.71k]
  ------------------
  192|      0|      return std::make_unique<DH_PublicKey>(alg_id, key_bits);
  193|      0|   }
  194|  1.71k|#endif
  195|       |
  196|  1.71k|#if defined(BOTAN_HAS_DSA)
  197|  1.71k|   if(alg_name == "DSA") {
  ------------------
  |  Branch (197:7): [True: 0, False: 1.71k]
  ------------------
  198|      0|      return std::make_unique<DSA_PublicKey>(alg_id, key_bits);
  199|      0|   }
  200|  1.71k|#endif
  201|       |
  202|  1.71k|#if defined(BOTAN_HAS_ELGAMAL)
  203|  1.71k|   if(alg_name == "ElGamal") {
  ------------------
  |  Branch (203:7): [True: 0, False: 1.71k]
  ------------------
  204|      0|      return std::make_unique<ElGamal_PublicKey>(alg_id, key_bits);
  205|      0|   }
  206|  1.71k|#endif
  207|       |
  208|  1.71k|#if defined(BOTAN_HAS_ECGDSA)
  209|  1.71k|   if(alg_name == "ECGDSA") {
  ------------------
  |  Branch (209:7): [True: 0, False: 1.71k]
  ------------------
  210|      0|      return std::make_unique<ECGDSA_PublicKey>(alg_id, key_bits);
  211|      0|   }
  212|  1.71k|#endif
  213|       |
  214|  1.71k|#if defined(BOTAN_HAS_ECKCDSA)
  215|  1.71k|   if(alg_name == "ECKCDSA") {
  ------------------
  |  Branch (215:7): [True: 0, False: 1.71k]
  ------------------
  216|      0|      return std::make_unique<ECKCDSA_PublicKey>(alg_id, key_bits);
  217|      0|   }
  218|  1.71k|#endif
  219|       |
  220|  1.71k|#if defined(BOTAN_HAS_ED25519)
  221|  1.71k|   if(alg_name == "Ed25519") {
  ------------------
  |  Branch (221:7): [True: 0, False: 1.71k]
  ------------------
  222|      0|      return std::make_unique<Ed25519_PublicKey>(alg_id, key_bits);
  223|      0|   }
  224|  1.71k|#endif
  225|       |
  226|  1.71k|#if defined(BOTAN_HAS_ED448)
  227|  1.71k|   if(alg_name == "Ed448") {
  ------------------
  |  Branch (227:7): [True: 1, False: 1.71k]
  ------------------
  228|      1|      return std::make_unique<Ed448_PublicKey>(alg_id, key_bits);
  229|      1|   }
  230|  1.71k|#endif
  231|       |
  232|  1.71k|#if defined(BOTAN_HAS_GOST_34_10_2001)
  233|  1.71k|   if(alg_name == "GOST-34.10" || alg_name == "GOST-34.10-2012-256" || alg_name == "GOST-34.10-2012-512") {
  ------------------
  |  Branch (233:7): [True: 0, False: 1.71k]
  |  Branch (233:35): [True: 0, False: 1.71k]
  |  Branch (233:72): [True: 0, False: 1.71k]
  ------------------
  234|      0|      return std::make_unique<GOST_3410_PublicKey>(alg_id, key_bits);
  235|      0|   }
  236|  1.71k|#endif
  237|       |
  238|  1.71k|#if defined(BOTAN_HAS_SM2)
  239|  1.71k|   if(alg_name == "SM2" || alg_name == "SM2_Sig" || alg_name == "SM2_Enc") {
  ------------------
  |  Branch (239:7): [True: 0, False: 1.71k]
  |  Branch (239:28): [True: 0, False: 1.71k]
  |  Branch (239:53): [True: 0, False: 1.71k]
  ------------------
  240|      0|      return std::make_unique<SM2_PublicKey>(alg_id, key_bits);
  241|      0|   }
  242|  1.71k|#endif
  243|       |
  244|  1.71k|#if defined(BOTAN_HAS_XMSS_RFC8391)
  245|  1.71k|   if(alg_name == "XMSS") {
  ------------------
  |  Branch (245:7): [True: 0, False: 1.71k]
  ------------------
  246|      0|      return std::make_unique<XMSS_PublicKey>(key_bits);
  247|      0|   }
  248|  1.71k|#endif
  249|       |
  250|  1.71k|#if defined(BOTAN_HAS_DILITHIUM) || defined(BOTAN_HAS_DILITHIUM_AES)
  251|  1.71k|   if(alg_name == "Dilithium" || alg_name.starts_with("Dilithium-")) {
  ------------------
  |  Branch (251:7): [True: 0, False: 1.71k]
  |  Branch (251:34): [True: 0, False: 1.71k]
  ------------------
  252|      0|      return std::make_unique<Dilithium_PublicKey>(alg_id, key_bits);
  253|      0|   }
  254|  1.71k|#endif
  255|       |
  256|  1.71k|#if defined(BOTAN_HAS_ML_DSA)
  257|  1.71k|   if(alg_name.starts_with("ML-DSA-")) {
  ------------------
  |  Branch (257:7): [True: 0, False: 1.71k]
  ------------------
  258|      0|      return std::make_unique<ML_DSA_PublicKey>(alg_id, key_bits);
  259|      0|   }
  260|  1.71k|#endif
  261|       |
  262|  1.71k|#if defined(BOTAN_HAS_HSS_LMS)
  263|  1.71k|   if(alg_name == "HSS-LMS") {
  ------------------
  |  Branch (263:7): [True: 0, False: 1.71k]
  ------------------
  264|      0|      return std::make_unique<HSS_LMS_PublicKey>(key_bits);
  265|      0|   }
  266|  1.71k|#endif
  267|       |
  268|  1.71k|#if defined(BOTAN_HAS_SPHINCS_PLUS_WITH_SHA2) || defined(BOTAN_HAS_SPHINCS_PLUS_WITH_SHAKE)
  269|  1.71k|   if(alg_name == "SPHINCS+" || alg_name.starts_with("SphincsPlus-")) {
  ------------------
  |  Branch (269:7): [True: 0, False: 1.71k]
  |  Branch (269:33): [True: 0, False: 1.71k]
  ------------------
  270|      0|      return std::make_unique<SphincsPlus_PublicKey>(alg_id, key_bits);
  271|      0|   }
  272|  1.71k|#endif
  273|       |
  274|  1.71k|#if defined(BOTAN_HAS_SLH_DSA_WITH_SHA2) || defined(BOTAN_HAS_SLH_DSA_WITH_SHAKE)
  275|  1.71k|   if(alg_name.starts_with("SLH-DSA-") || alg_name.starts_with("Hash-SLH-DSA-")) {
  ------------------
  |  Branch (275:7): [True: 0, False: 1.71k]
  |  Branch (275:43): [True: 0, False: 1.71k]
  ------------------
  276|      0|      return std::make_unique<SLH_DSA_PublicKey>(alg_id, key_bits);
  277|      0|   }
  278|  1.71k|#endif
  279|       |
  280|  1.71k|#if defined(BOTAN_HAS_CLASSICMCELIECE)
  281|  1.71k|   if(alg_name.starts_with("ClassicMcEliece")) {
  ------------------
  |  Branch (281:7): [True: 0, False: 1.71k]
  ------------------
  282|      0|      return std::make_unique<Classic_McEliece_PublicKey>(alg_id, key_bits);
  283|      0|   }
  284|  1.71k|#endif
  285|       |
  286|  1.71k|   throw Decoding_Error(fmt("Unknown or unavailable public key algorithm '{}'", alg_name));
  287|  1.71k|}

_ZN5Botan22format_hex_fingerprintENSt3__14spanIKhLm18446744073709551615EEE:
   45|  3.42k|std::string format_hex_fingerprint(std::span<const uint8_t> bits) {
   46|  3.42k|   const std::string hex = hex_encode(bits);
   47|       |
   48|  3.42k|   std::string fprint;
   49|  3.42k|   fprint.reserve(3 * bits.size());
   50|       |
   51|  92.5k|   for(size_t i = 0; i != hex.size(); i += 2) {
  ------------------
  |  Branch (51:22): [True: 89.1k, False: 3.42k]
  ------------------
   52|  89.1k|      if(i != 0) {
  ------------------
  |  Branch (52:10): [True: 85.7k, False: 3.42k]
  ------------------
   53|  85.7k|         fprint.push_back(':');
   54|  85.7k|      }
   55|       |
   56|  89.1k|      fprint.push_back(hex[i]);
   57|  89.1k|      fprint.push_back(hex[i + 1]);
   58|  89.1k|   }
   59|       |
   60|  3.42k|   return fprint;
   61|  3.42k|}

_ZN5Botan4X5098load_keyERNS_10DataSourceE:
   28|  1.71k|std::unique_ptr<Public_Key> load_key(DataSource& source) {
   29|  1.71k|   try {
   30|  1.71k|      AlgorithmIdentifier alg_id;
   31|  1.71k|      std::vector<uint8_t> key_bits;
   32|       |
   33|  1.71k|      if(ASN1::maybe_BER(source) && !PEM_Code::matches(source)) {
  ------------------
  |  Branch (33:10): [True: 1.71k, False: 0]
  |  Branch (33:37): [True: 1.71k, False: 0]
  ------------------
   34|  1.71k|         BER_Decoder(source, BER_Decoder::Limits::DER())
   35|  1.71k|            .start_sequence()
   36|  1.71k|            .decode(alg_id)
   37|  1.71k|            .decode(key_bits, ASN1_Type::BitString)
   38|  1.71k|            .end_cons()
   39|  1.71k|            .verify_end();
   40|  1.71k|      } else {
   41|      0|         DataSource_Memory ber(PEM_Code::decode_check_label(source, "PUBLIC KEY"));
   42|       |
   43|      0|         BER_Decoder(ber, BER_Decoder::Limits::DER())
   44|      0|            .start_sequence()
   45|      0|            .decode(alg_id)
   46|      0|            .decode(key_bits, ASN1_Type::BitString)
   47|      0|            .end_cons()
   48|      0|            .verify_end();
   49|      0|      }
   50|       |
   51|  1.71k|      if(key_bits.empty()) {
  ------------------
  |  Branch (51:10): [True: 0, False: 1.71k]
  ------------------
   52|      0|         throw Decoding_Error("X.509 public key decoding");
   53|      0|      }
   54|       |
   55|  1.71k|      return load_public_key(alg_id, key_bits);
   56|  1.71k|   } catch(Decoding_Error& e) {
   57|  1.71k|      throw Decoding_Error("X.509 public key decoding", e);
   58|  1.71k|   }
   59|  1.71k|}

_ZN5Botan3TLS18Certificate_VerifyC2ERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
   20|  1.85k|Certificate_Verify::Certificate_Verify(const std::vector<uint8_t>& buf) {
   21|  1.85k|   TLS_Data_Reader reader("CertificateVerify", buf);
   22|       |
   23|  1.85k|   m_scheme = Signature_Scheme(reader.get_uint16_t());
   24|       |   // Somewhat oddly, the signature really is allowed to be empty in a CertificateVerify
   25|  1.85k|   m_signature = reader.get_range<uint8_t>(2, 0, 65535);
   26|  1.85k|   reader.assert_done();
   27|       |
   28|  1.85k|   if(!m_scheme.is_set()) {
  ------------------
  |  Branch (28:7): [True: 3, False: 1.84k]
  ------------------
   29|      3|      throw Decoding_Error("Counterparty did not send hash/sig IDS");
   30|      3|   }
   31|  1.85k|}

_ZN5Botan3TLS21Client_Hello_InternalC2ERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
   46|  5.11k|Client_Hello_Internal::Client_Hello_Internal(const std::vector<uint8_t>& buf) {
   47|       |   /*
   48|       |   Minimum possible client hello
   49|       |
   50|       |   version: 2 bytes
   51|       |   random: 32 bytes
   52|       |   session_id len: 1 byte
   53|       |   ciphersuite_len: 2
   54|       |   ciphersuite (single): 2
   55|       |   compression_len: 1
   56|       |   compression (single): 1
   57|       |   */
   58|       |
   59|  5.11k|   constexpr size_t MinimumClientHelloBytes = 2 + 32 + 1 + 2 + 2 + 1 + 1;
   60|  5.11k|   if(buf.size() < MinimumClientHelloBytes) {
  ------------------
  |  Branch (60:7): [True: 15, False: 5.09k]
  ------------------
   61|     15|      throw Decoding_Error("Client_Hello: Packet corrupted");
   62|     15|   }
   63|       |
   64|  5.09k|   TLS_Data_Reader reader("ClientHello", buf);
   65|       |
   66|  5.09k|   const uint8_t major_version = reader.get_byte();
   67|  5.09k|   const uint8_t minor_version = reader.get_byte();
   68|       |
   69|  5.09k|   m_legacy_version = Protocol_Version(major_version, minor_version);
   70|       |
   71|       |   // DTLS has an additional 1 byte cookie length field
   72|  5.09k|   if(m_legacy_version.is_datagram_protocol() && buf.size() < MinimumClientHelloBytes + 1) {
  ------------------
  |  Branch (72:7): [True: 1.88k, False: 3.20k]
  |  Branch (72:50): [True: 6, False: 1.88k]
  ------------------
   73|      6|      throw Decoding_Error("Client_Hello: DTLS packet corrupted");
   74|      6|   }
   75|       |
   76|  5.09k|   m_random = reader.get_fixed<uint8_t>(32);
   77|  5.09k|   m_session_id = Session_ID(reader.get_range<uint8_t>(1, 0, 32));
   78|       |
   79|  5.09k|   if(m_legacy_version.is_datagram_protocol()) {
  ------------------
  |  Branch (79:7): [True: 1.88k, False: 3.20k]
  ------------------
   80|  1.88k|      auto sha256 = HashFunction::create_or_throw("SHA-256");
   81|  1.88k|      sha256->update(reader.get_data_read_so_far());
   82|       |
   83|  1.88k|      m_hello_cookie = reader.get_range<uint8_t>(1, 0, 255);
   84|       |
   85|  1.88k|      sha256->update(reader.get_remaining());
   86|  1.88k|      m_cookie_input_bits = sha256->final_stdvec();
   87|  1.88k|   }
   88|       |
   89|  5.09k|   m_suites = reader.get_range_vector<uint16_t>(2, 1, 32767);
   90|  5.09k|   m_comp_methods = reader.get_range_vector<uint8_t>(1, 1, 255);
   91|       |
   92|  5.09k|   m_extensions.deserialize(reader, Connection_Side::Client, Handshake_Type::ClientHello);
   93|  5.09k|}
_ZNK5Botan3TLS21Client_Hello_Internal7versionEv:
   95|  4.58k|Protocol_Version Client_Hello_Internal::version() const {
   96|       |   // RFC 8446 4.2.1
   97|       |   //    If [the "supported_versions"] extension is not present, servers
   98|       |   //    which are compliant with this specification and which also support
   99|       |   //    TLS 1.2 MUST negotiate TLS 1.2 or prior as specified in [RFC5246],
  100|       |   //    even if ClientHello.legacy_version is 0x0304 or later.
  101|       |   //
  102|       |   // RFC 8446 4.2.1
  103|       |   //    Servers MUST be prepared to receive ClientHellos that include
  104|       |   //    [the supported_versions] extension but do not include 0x0304 in
  105|       |   //    the list of versions.
  106|       |   //
  107|       |   // RFC 8446 4.1.2
  108|       |   //    TLS 1.3 ClientHellos are identified as having a legacy_version of
  109|       |   //    0x0303 and a supported_versions extension present with 0x0304 as
  110|       |   //    the highest version indicated therein.
  111|  4.58k|   if(!extensions().has<Supported_Versions>() ||
  ------------------
  |  Branch (111:7): [True: 4.06k, False: 518]
  ------------------
  112|  4.28k|      !extensions().get<Supported_Versions>()->supports(Protocol_Version::TLS_V13)) {
  ------------------
  |  Branch (112:7): [True: 217, False: 301]
  ------------------
  113|       |      // The exact legacy_version is ignored we just inspect it to
  114|       |      // distinguish TLS and DTLS.
  115|  4.28k|      return (m_legacy_version.is_datagram_protocol()) ? Protocol_Version::DTLS_V12 : Protocol_Version::TLS_V12;
  ------------------
  |  Branch (115:14): [True: 1.68k, False: 2.59k]
  ------------------
  116|  4.28k|   }
  117|       |
  118|       |   // Note: The Client_Hello_13 class will make sure that legacy_version
  119|       |   //       is exactly 0x0303 (aka ossified TLS 1.2)
  120|    301|   return Protocol_Version::TLS_V13;
  121|  4.58k|}
_ZN5Botan3TLS12Client_HelloC2EOS1_:
  123|  18.0k|Client_Hello::Client_Hello(Client_Hello&&) noexcept = default;
_ZN5Botan3TLS12Client_HelloD2Ev:
  126|  22.6k|Client_Hello::~Client_Hello() = default;
_ZN5Botan3TLS12Client_HelloC2ENSt3__110unique_ptrINS0_21Client_Hello_InternalENS2_14default_deleteIS4_EEEE:
  133|  4.58k|Client_Hello::Client_Hello(std::unique_ptr<Client_Hello_Internal> data) : m_data(std::move(data)) {
  134|  4.58k|   BOTAN_ASSERT_NONNULL(m_data);
  ------------------
  |  |  116|  4.58k|   do {                                                                                   \
  |  |  117|  4.58k|      if((ptr) == nullptr) {                                                              \
  |  |  ------------------
  |  |  |  Branch (117:10): [True: 0, False: 4.58k]
  |  |  ------------------
  |  |  118|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                              \
  |  |  119|      0|         Botan::assertion_failure(#ptr " is not null", "", __func__, __FILE__, __LINE__); \
  |  |  120|      0|      }                                                                                   \
  |  |  121|  4.58k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (121:12): [Folded, False: 4.58k]
  |  |  ------------------
  ------------------
  135|  4.58k|}
_ZN5Botan3TLS20Client_Hello_12_ShimC2ENSt3__110unique_ptrINS0_21Client_Hello_InternalENS2_14default_deleteIS4_EEEE:
  288|  4.28k|      Client_Hello(std::move(data)) {}

_ZN5Botan3TLS21Server_Hello_InternalC2ERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
   48|  3.64k|Server_Hello_Internal::Server_Hello_Internal(const std::vector<uint8_t>& buf) {
   49|  3.64k|   if(buf.size() < 38) {
  ------------------
  |  Branch (49:7): [True: 10, False: 3.63k]
  ------------------
   50|     10|      throw Decoding_Error("Server_Hello: Packet corrupted");
   51|     10|   }
   52|       |
   53|  3.63k|   TLS_Data_Reader reader("ServerHello", buf);
   54|       |
   55|  3.63k|   const uint8_t major_version = reader.get_byte();
   56|  3.63k|   const uint8_t minor_version = reader.get_byte();
   57|       |
   58|  3.63k|   m_legacy_version = Protocol_Version(major_version, minor_version);
   59|       |
   60|       |   // RFC 8446 4.1.3
   61|       |   //    Upon receiving a message with type server_hello, implementations MUST
   62|       |   //    first examine the Random value and, if it matches this value, process
   63|       |   //    it as described in Section 4.1.4 [Hello Retry Request]).
   64|  3.63k|   m_random = reader.get_fixed<uint8_t>(32);
   65|  3.63k|   m_is_hello_retry_request = CT::is_equal<uint8_t>(m_random, HELLO_RETRY_REQUEST_MARKER).as_bool();
   66|       |
   67|  3.63k|   m_session_id = Session_ID(reader.get_range<uint8_t>(1, 0, 32));
   68|  3.63k|   m_ciphersuite = reader.get_uint16_t();
   69|  3.63k|   m_comp_method = reader.get_byte();
   70|       |
   71|       |   // Note that this code path might parse a TLS 1.2 (or older) server hello message that
   72|       |   // is nevertheless marked as being a 'hello retry request' (potentially maliciously).
   73|       |   // Extension parsing will however not be affected by the associated flag.
   74|       |   // Only after parsing the extensions will the upstream code be able to decide
   75|       |   // whether we're dealing with TLS 1.3 or older.
   76|  3.63k|   m_extensions.deserialize(reader,
   77|  3.63k|                            Connection_Side::Server,
   78|  3.63k|                            m_is_hello_retry_request ? Handshake_Type::HelloRetryRequest : Handshake_Type::ServerHello);
  ------------------
  |  Branch (78:29): [True: 0, False: 3.63k]
  ------------------
   79|  3.63k|}
_ZNK5Botan3TLS21Server_Hello_Internal7versionEv:
   81|  7.12k|Protocol_Version Server_Hello_Internal::version() const {
   82|       |   // RFC 8446 4.2.1
   83|       |   //    A server which negotiates a version of TLS prior to TLS 1.3 MUST set
   84|       |   //    ServerHello.version and MUST NOT send the "supported_versions"
   85|       |   //    extension.  A server which negotiates TLS 1.3 MUST respond by sending
   86|       |   //    a "supported_versions" extension containing the selected version
   87|       |   //    value (0x0304).
   88|       |   //
   89|       |   // Note: Here we just take a message parsing decision, further validation of
   90|       |   //       the extension's contents is done later.
   91|  7.12k|   return (extensions().has<Supported_Versions>()) ? Protocol_Version::TLS_V13 : m_legacy_version;
  ------------------
  |  Branch (91:11): [True: 906, False: 6.22k]
  ------------------
   92|  7.12k|}
_ZN5Botan3TLS12Server_HelloC2ENSt3__110unique_ptrINS0_21Server_Hello_InternalENS2_14default_deleteIS4_EEEE:
   94|  3.53k|Server_Hello::Server_Hello(std::unique_ptr<Server_Hello_Internal> data) : m_data(std::move(data)) {}
_ZN5Botan3TLS12Server_HelloC2EOS1_:
   96|  13.9k|Server_Hello::Server_Hello(Server_Hello&&) noexcept = default;
_ZN5Botan3TLS12Server_HelloD2Ev:
   99|  17.4k|Server_Hello::~Server_Hello() = default;
_ZNK5Botan3TLS12Server_Hello14legacy_versionEv:
  128|    481|Protocol_Version Server_Hello::legacy_version() const {
  129|    481|   return m_data->legacy_version();
  130|    481|}
_ZNK5Botan3TLS12Server_Hello18compression_methodEv:
  136|    433|uint8_t Server_Hello::compression_method() const {
  137|    433|   return m_data->comp_method();
  138|    433|}
_ZNK5Botan3TLS12Server_Hello10extensionsEv:
  152|    837|const Extensions& Server_Hello::extensions() const {
  153|    837|   return m_data->extensions();
  154|    837|}
_ZN5Botan3TLS20Server_Hello_12_ShimC2ENSt3__110unique_ptrINS0_21Server_Hello_InternalENS2_14default_deleteIS4_EEEE:
  160|  3.07k|      Server_Hello(std::move(data)) {
  161|  3.07k|   if(!m_data->version().is_pre_tls_13()) {
  ------------------
  |  Branch (161:7): [True: 0, False: 3.07k]
  ------------------
  162|      0|      throw TLS_Exception(Alert::ProtocolVersion, "Expected server hello of (D)TLS 1.2 or lower");
  163|      0|   }
  164|  3.07k|}

_ZN5Botan3TLS23Renegotiation_ExtensionC2ERNS0_15TLS_Data_ReaderEt:
   24|    330|      m_reneg_data(reader.get_range<uint8_t>(1, 0, 255)) {
   25|    330|   if(m_reneg_data.size() + 1 != extension_size) {
  ------------------
  |  Branch (25:7): [True: 6, False: 324]
  ------------------
   26|      6|      throw Decoding_Error("Bad encoding for secure renegotiation extn");
   27|      6|   }
   28|    330|}
_ZN5Botan3TLS23Supported_Point_FormatsC2ERNS0_15TLS_Data_ReaderEt:
   45|    287|Supported_Point_Formats::Supported_Point_Formats(TLS_Data_Reader& reader, uint16_t extension_size) {
   46|    287|   const uint8_t len = reader.get_byte();
   47|       |
   48|    287|   if(len + 1 != extension_size) {
  ------------------
  |  Branch (48:7): [True: 14, False: 273]
  ------------------
   49|     14|      throw Decoding_Error("Inconsistent length field in supported point formats list");
   50|     14|   }
   51|       |
   52|    273|   bool includes_uncompressed = false;
   53|    745|   for(size_t i = 0; i != len; ++i) {
  ------------------
  |  Branch (53:22): [True: 724, False: 21]
  ------------------
   54|    724|      const uint8_t format = reader.get_byte();
   55|       |
   56|    724|      if(static_cast<ECPointFormat>(format) == UNCOMPRESSED) {
  ------------------
  |  Branch (56:10): [True: 42, False: 682]
  ------------------
   57|     42|         m_prefers_compressed = false;
   58|     42|         reader.discard_next(len - i - 1);
   59|     42|         return;
   60|    682|      } else if(static_cast<ECPointFormat>(format) == ANSIX962_COMPRESSED_PRIME) {
  ------------------
  |  Branch (60:17): [True: 210, False: 472]
  ------------------
   61|    210|         m_prefers_compressed = true;
   62|    210|         std::vector<uint8_t> remaining_formats = reader.get_fixed<uint8_t>(len - i - 1);
   63|    210|         includes_uncompressed =
   64|    210|            std::any_of(std::begin(remaining_formats), std::end(remaining_formats), [](uint8_t remaining_format) {
   65|    210|               return static_cast<ECPointFormat>(remaining_format) == UNCOMPRESSED;
   66|    210|            });
   67|    210|         break;
   68|    210|      }
   69|       |
   70|       |      // ignore ANSIX962_COMPRESSED_CHAR2, we don't support these curves
   71|    724|   }
   72|       |
   73|       |   // RFC 4492 5.1.:
   74|       |   //   If the Supported Point Formats Extension is indeed sent, it MUST contain the value 0 (uncompressed)
   75|       |   //   as one of the items in the list of point formats.
   76|       |   // Note:
   77|       |   //   RFC 8422 5.1.2. explicitly requires this check,
   78|       |   //   but only if the Supported Groups extension was sent.
   79|    231|   if(!includes_uncompressed) {
  ------------------
  |  Branch (79:7): [True: 34, False: 197]
  ------------------
   80|     34|      throw TLS_Exception(Alert::IllegalParameter,
   81|     34|                          "Supported Point Formats Extension must contain the uncompressed point format");
   82|     34|   }
   83|    231|}
_ZN5Botan3TLS24Session_Ticket_ExtensionC2ERNS0_15TLS_Data_ReaderEtNS0_15Connection_SideE:
   87|    206|                                                   Connection_Side from) {
   88|       |   // RFC 5077 3.2: in a ServerHello the SessionTicket extension is just a
   89|       |   // flag indicating that a NewSessionTicket handshake message will follow;
   90|       |   // its extension_data MUST be empty. A ticket body is only valid in a
   91|       |   // ClientHello.
   92|    206|   if(from == Connection_Side::Server && extension_size != 0) {
  ------------------
  |  Branch (92:7): [True: 80, False: 126]
  |  Branch (92:42): [True: 5, False: 75]
  ------------------
   93|      5|      throw Decoding_Error("Server sent a non-empty SessionTicket extension");
   94|      5|   }
   95|    201|   m_ticket = Session_Ticket(reader.get_elem<uint8_t, std::vector<uint8_t>>(extension_size));
   96|    201|}
_ZN5Botan3TLS22Extended_Master_SecretC2ERNS0_15TLS_Data_ReaderEt:
   98|     83|Extended_Master_Secret::Extended_Master_Secret(TLS_Data_Reader& /*unused*/, uint16_t extension_size) {
   99|     83|   if(extension_size != 0) {
  ------------------
  |  Branch (99:7): [True: 2, False: 81]
  ------------------
  100|      2|      throw Decoding_Error("Invalid extended_master_secret extension");
  101|      2|   }
  102|     83|}
_ZN5Botan3TLS16Encrypt_then_MACC2ERNS0_15TLS_Data_ReaderEt:
  108|    298|Encrypt_then_MAC::Encrypt_then_MAC(TLS_Data_Reader& /*unused*/, uint16_t extension_size) {
  109|    298|   if(extension_size != 0) {
  ------------------
  |  Branch (109:7): [True: 7, False: 291]
  ------------------
  110|      7|      throw Decoding_Error("Invalid encrypt_then_mac extension");
  111|      7|   }
  112|    298|}
tls_extensions_12.cpp:_ZZN5Botan3TLS23Supported_Point_FormatsC1ERNS0_15TLS_Data_ReaderEtENK3$_0clEh:
   64|    438|            std::any_of(std::begin(remaining_formats), std::end(remaining_formats), [](uint8_t remaining_format) {
   65|    438|               return static_cast<ECPointFormat>(remaining_format) == UNCOMPRESSED;
   66|    438|            });

_ZN5Botan3TLS21Certificate_Verify_13C2ERKNSt3__16vectorIhNS2_9allocatorIhEEEENS0_15Connection_SideE:
   87|  1.85k|      Certificate_Verify(buf), m_side(side) {
   88|  1.85k|   if(!m_scheme.is_available()) {
  ------------------
  |  Branch (88:7): [True: 20, False: 1.83k]
  ------------------
   89|     20|      throw TLS_Exception(Alert::IllegalParameter, "Peer sent unknown signature scheme");
   90|     20|   }
   91|       |
   92|  1.83k|   if(!m_scheme.is_compatible_with(Protocol_Version::TLS_V13)) {
  ------------------
  |  Branch (92:7): [True: 5, False: 1.82k]
  ------------------
   93|      5|      throw TLS_Exception(Alert::IllegalParameter, "Peer sent signature algorithm that is not suitable for TLS 1.3");
   94|      5|   }
   95|  1.83k|}

_ZN5Botan3TLS14Certificate_1317Certificate_EntryC2ERNS0_15TLS_Data_ReaderENS0_15Connection_SideENS0_16Certificate_TypeE:
  274|  2.85k|                                                     Certificate_Type cert_type) {
  275|  2.85k|   if(cert_type == Certificate_Type::X509) {
  ------------------
  |  Branch (275:7): [True: 2.85k, False: 0]
  ------------------
  276|       |      // RFC 8446 4.2.2
  277|       |      //    [...] each CertificateEntry contains a DER-encoded X.509
  278|       |      //    certificate.
  279|  2.85k|      const auto cert_bytes = reader.get_tls_length_value(3);
  280|  2.85k|      try {
  281|  2.85k|         m_certificate = std::make_unique<X509_Certificate>(cert_bytes);
  282|  2.85k|         m_raw_public_key = m_certificate->subject_public_key();
  283|  2.85k|      } catch(Exception& e) {
  284|       |         // bad_certificate would make more sense but BoGo expects decoding_error
  285|  2.84k|         throw TLS_Exception(Alert::DecodeError, e.what());
  286|  2.84k|      }
  287|  2.85k|   } else if(cert_type == Certificate_Type::RawPublicKey) {
  ------------------
  |  Branch (287:14): [True: 0, False: 0]
  ------------------
  288|       |      // RFC 7250 3.
  289|       |      //    This specification uses raw public keys whereby the already
  290|       |      //    available encoding used in a PKIX certificate in the form of a
  291|       |      //    SubjectPublicKeyInfo structure is reused.
  292|      0|      try {
  293|      0|         m_raw_public_key = X509::load_key(reader.get_tls_length_value(3));
  294|      0|      } catch(Exception& e) {
  295|      0|         throw TLS_Exception(Alert::DecodeError, e.what());
  296|      0|      }
  297|      0|   } else {
  298|      0|      throw TLS_Exception(Alert::InternalError, "Unknown certificate type");
  299|      0|   }
  300|       |
  301|       |   // Extensions are simply tacked at the end of the certificate entry. This
  302|       |   // is a departure from the typical "tag-length-value" in a sense that the
  303|       |   // Extensions deserializer needs the length value of the extensions.
  304|      0|   const size_t extensions_length = reader.peek_uint16_t();
  305|      0|   const auto exts_buf = reader.get_fixed<uint8_t>(extensions_length + 2);
  306|      0|   TLS_Data_Reader exts_reader("extensions reader", exts_buf);
  307|      0|   m_extensions.deserialize(exts_reader, side, Handshake_Type::Certificate);
  308|       |
  309|      0|   if(cert_type == Certificate_Type::X509) {
  ------------------
  |  Branch (309:7): [True: 0, False: 0]
  ------------------
  310|       |      // RFC 8446 4.4.2
  311|       |      //    Valid extensions for server certificates at present include the
  312|       |      //    OCSP Status extension [RFC6066] and the SignedCertificateTimestamp
  313|       |      //    extension [RFC6962]; future extensions may be defined for this
  314|       |      //    message as well.
  315|       |      //
  316|       |      // RFC 8446 4.4.2.1
  317|       |      //    A server MAY request that a client present an OCSP response with its
  318|       |      //    certificate by sending an empty "status_request" extension in its
  319|       |      //    CertificateRequest message.
  320|      0|      if(m_extensions.contains_implemented_extensions_other_than({
  ------------------
  |  Branch (320:10): [True: 0, False: 0]
  ------------------
  321|      0|            Extension_Code::CertificateStatusRequest,
  322|       |            // Extension_Code::SignedCertificateTimestamp
  323|      0|         })) {
  324|      0|         throw TLS_Exception(Alert::IllegalParameter, "Certificate Entry contained an extension that is not allowed");
  325|      0|      }
  326|      0|   } else if(m_extensions.contains_implemented_extensions_other_than({})) {
  ------------------
  |  Branch (326:14): [True: 0, False: 0]
  ------------------
  327|      0|      throw TLS_Exception(
  328|      0|         Alert::IllegalParameter,
  329|      0|         "Certificate Entry holding something else than a certificate contained unexpected extensions");
  330|      0|   }
  331|      0|}
_ZN5Botan3TLS14Certificate_13C2ERKNSt3__16vectorIhNS2_9allocatorIhEEEERKNS0_6PolicyENS0_15Connection_SideENS0_16Certificate_TypeE:
  368|  2.90k|      m_side(side) {
  369|  2.90k|   TLS_Data_Reader reader("cert message reader", buf);
  370|       |
  371|  2.90k|   m_request_context = reader.get_range<uint8_t>(1, 0, 255);
  372|       |
  373|       |   // RFC 8446 4.4.2
  374|       |   //    [...] in the case of server authentication, this field SHALL be zero length.
  375|  2.90k|   if(m_side == Connection_Side::Server && !m_request_context.empty()) {
  ------------------
  |  Branch (375:7): [True: 2.90k, False: 3]
  |  Branch (375:44): [True: 12, False: 2.89k]
  ------------------
  376|     12|      throw TLS_Exception(Alert::IllegalParameter, "Server Certificate message must not contain a request context");
  377|     12|   }
  378|       |
  379|  2.89k|   const auto cert_entries_len = reader.get_uint24_t();
  380|       |
  381|  2.89k|   if(reader.remaining_bytes() != cert_entries_len) {
  ------------------
  |  Branch (381:7): [True: 30, False: 2.86k]
  ------------------
  382|     30|      throw TLS_Exception(Alert::DecodeError, "Certificate: Message malformed");
  383|     30|   }
  384|       |
  385|  2.86k|   const size_t max_size = policy.maximum_certificate_chain_size();
  386|  2.86k|   if(max_size > 0 && cert_entries_len > max_size) {
  ------------------
  |  Branch (386:7): [True: 2.85k, False: 4]
  |  Branch (386:23): [True: 0, False: 2.85k]
  ------------------
  387|      0|      throw Decoding_Error("Certificate chain exceeds policy specified maximum size");
  388|      0|   }
  389|       |
  390|  5.72k|   while(reader.has_remaining()) {
  ------------------
  |  Branch (390:10): [True: 2.85k, False: 2.86k]
  ------------------
  391|  2.85k|      m_entries.emplace_back(reader, side, cert_type);
  392|  2.85k|   }
  393|       |
  394|       |   // RFC 8446 4.4.2
  395|       |   //    The server's certificate_list MUST always be non-empty.  A client
  396|       |   //    will send an empty certificate_list if it does not have an
  397|       |   //    appropriate certificate to send in response to the server's
  398|       |   //    authentication request.
  399|  2.86k|   if(m_entries.empty()) {
  ------------------
  |  Branch (399:7): [True: 1, False: 2.86k]
  ------------------
  400|       |      // RFC 8446 4.4.2.4
  401|       |      //    If the server supplies an empty Certificate message, the client MUST
  402|       |      //    abort the handshake with a "decode_error" alert.
  403|      1|      if(m_side == Connection_Side::Server) {
  ------------------
  |  Branch (403:10): [True: 1, False: 0]
  ------------------
  404|      1|         throw TLS_Exception(Alert::DecodeError, "No certificates sent by server");
  405|      1|      }
  406|       |
  407|      0|      return;
  408|      1|   }
  409|       |
  410|  2.86k|   BOTAN_ASSERT_NOMSG(!m_entries.empty());
  ------------------
  |  |   77|  2.86k|   do {                                                                     \
  |  |   78|  2.86k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  2.86k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 2.86k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  2.86k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 2.86k]
  |  |  ------------------
  ------------------
  411|       |
  412|       |   // RFC 8446 4.4.2.2
  413|       |   //    The certificate type MUST be X.509v3 [RFC5280], unless explicitly
  414|       |   //    negotiated otherwise (e.g., [RFC7250]).
  415|       |   //
  416|       |   // TLS 1.0 through 1.3 all seem to require that the certificate be
  417|       |   // precisely a v3 certificate. In fact the strict wording would seem
  418|       |   // to require that every certificate in the chain be v3. But often
  419|       |   // the intermediates are outside of the control of the server.
  420|       |   // But, require that the leaf certificate be v3.
  421|  2.86k|   if(cert_type == Certificate_Type::X509 && m_entries.front().certificate().x509_version() != 3) {
  ------------------
  |  Branch (421:7): [True: 0, False: 2.86k]
  |  Branch (421:46): [True: 0, False: 0]
  ------------------
  422|      0|      throw TLS_Exception(Alert::BadCertificate, "The leaf certificate must be v3");
  423|      0|   }
  424|       |
  425|       |   // RFC 8446 4.4.2
  426|       |   //    If the RawPublicKey certificate type was negotiated, then the
  427|       |   //    certificate_list MUST contain no more than one CertificateEntry.
  428|  2.86k|   if(cert_type == Certificate_Type::RawPublicKey && m_entries.size() != 1) {
  ------------------
  |  Branch (428:7): [True: 0, False: 2.86k]
  |  Branch (428:54): [True: 0, False: 0]
  ------------------
  429|      0|      throw TLS_Exception(Alert::IllegalParameter, "Certificate message contained more than one RawPublicKey");
  430|      0|   }
  431|       |
  432|       |   // Validate the provided (certificate) public key against our policy
  433|  2.86k|   auto pubkey = public_key();
  434|  2.86k|   policy.check_peer_key_acceptable(*pubkey);
  435|       |
  436|  2.86k|   if(!policy.allowed_signature_method(pubkey->algo_name())) {
  ------------------
  |  Branch (436:7): [True: 0, False: 2.86k]
  ------------------
  437|      0|      throw TLS_Exception(Alert::HandshakeFailure, "Rejecting " + pubkey->algo_name() + " signature");
  438|      0|   }
  439|  2.86k|}

_ZNK5Botan3TLS22Certificate_Request_134typeEv:
   21|  1.69k|Handshake_Type Certificate_Request_13::type() const {
   22|  1.69k|   return TLS::Handshake_Type::CertificateRequest;
   23|  1.69k|}
_ZN5Botan3TLS22Certificate_Request_13C2ERKNSt3__16vectorIhNS2_9allocatorIhEEEENS0_15Connection_SideE:
   25|  1.70k|Certificate_Request_13::Certificate_Request_13(const std::vector<uint8_t>& buf, const Connection_Side side) {
   26|  1.70k|   TLS_Data_Reader reader("Certificate_Request_13", buf);
   27|       |
   28|       |   // RFC 8446 4.3.2
   29|       |   //    A server which is authenticating with a certificate MAY optionally
   30|       |   //    request a certificate from the client.
   31|  1.70k|   if(side != Connection_Side::Server) {
  ------------------
  |  Branch (31:7): [True: 0, False: 1.70k]
  ------------------
   32|      0|      throw TLS_Exception(Alert::UnexpectedMessage, "Received a Certificate_Request message from a client");
   33|      0|   }
   34|       |
   35|  1.70k|   m_context = reader.get_tls_length_value(1);
   36|  1.70k|   m_extensions.deserialize(reader, side, type());
   37|       |
   38|       |   // RFC 8446 4.3.2
   39|       |   //    The "signature_algorithms" extension MUST be specified, and other
   40|       |   //    extensions may optionally be included if defined for this message.
   41|       |   //    Clients MUST ignore unrecognized extensions.
   42|       |
   43|  1.70k|   if(!m_extensions.has<Signature_Algorithms>()) {
  ------------------
  |  Branch (43:7): [True: 78, False: 1.62k]
  ------------------
   44|     78|      throw TLS_Exception(Alert::MissingExtension,
   45|     78|                          "Certificate_Request message did not provide a signature_algorithms extension");
   46|     78|   }
   47|       |
   48|       |   // RFC 8446 4.2.
   49|       |   //    The table below indicates the messages where a given extension may
   50|       |   //    appear [...].  If an implementation receives an extension which it
   51|       |   //    recognizes and which is not specified for the message in which it
   52|       |   //    appears, it MUST abort the handshake with an "illegal_parameter" alert.
   53|       |   //
   54|       |   // For Certificate Request said table states:
   55|       |   //    "status_request", "signature_algorithms", "signed_certificate_timestamp",
   56|       |   //     "certificate_authorities", "oid_filters", "signature_algorithms_cert",
   57|  1.62k|   const std::set<Extension_Code> allowed_extensions = {
   58|  1.62k|      Extension_Code::CertificateStatusRequest,
   59|  1.62k|      Extension_Code::SignatureAlgorithms,
   60|       |      // Extension_Code::SignedCertificateTimestamp,  // NYI
   61|  1.62k|      Extension_Code::CertificateAuthorities,
   62|       |      // Extension_Code::OidFilters,                   // NYI
   63|  1.62k|      Extension_Code::CertSignatureAlgorithms,
   64|  1.62k|   };
   65|       |
   66|  1.62k|   if(m_extensions.contains_implemented_extensions_other_than(allowed_extensions)) {
  ------------------
  |  Branch (66:7): [True: 4, False: 1.61k]
  ------------------
   67|      4|      throw TLS_Exception(Alert::IllegalParameter, "Certificate Request contained an extension that is not allowed");
   68|      4|   }
   69|       |
   70|  1.61k|   reader.assert_done();
   71|  1.61k|}

_ZN5Botan3TLS15Client_Hello_13C2ENSt3__110unique_ptrINS0_21Client_Hello_InternalENS2_14default_deleteIS4_EEEE:
   30|    301|Client_Hello_13::Client_Hello_13(std::unique_ptr<Client_Hello_Internal> data) : Client_Hello(std::move(data)) {
   31|    301|   const auto& exts = m_data->extensions();
   32|       |
   33|       |   // RFC 8446 4.1.2
   34|       |   //    TLS 1.3 ClientHellos are identified as having a legacy_version of
   35|       |   //    0x0303 and a "supported_versions" extension present with 0x0304 as the
   36|       |   //    highest version indicated therein.
   37|       |   //
   38|       |   // Note that we already checked for "supported_versions" before entering this
   39|       |   // c'tor in `Client_Hello_13::parse()`. This is just to be doubly sure.
   40|    301|   BOTAN_ASSERT_NOMSG(exts.has<Supported_Versions>());
  ------------------
  |  |   77|    301|   do {                                                                     \
  |  |   78|    301|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|    301|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 301]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|    301|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 301]
  |  |  ------------------
  ------------------
   41|       |
   42|       |   // RFC 8446 4.2.1
   43|       |   //    Servers MAY abort the handshake upon receiving a ClientHello with
   44|       |   //    legacy_version 0x0304 or later.
   45|    301|   if(m_data->legacy_version().is_tls_13_or_later()) {
  ------------------
  |  Branch (45:7): [True: 28, False: 273]
  ------------------
   46|     28|      throw TLS_Exception(Alert::DecodeError, "TLS 1.3 Client Hello has invalid legacy_version");
   47|     28|   }
   48|       |
   49|       |   // RFC 8446 D.5
   50|       |   //    Any endpoint receiving a Hello message with ClientHello.legacy_version [...]
   51|       |   //    set to 0x0300 MUST abort the handshake with a "protocol_version" alert.
   52|    273|   if(m_data->legacy_version().major_version() == 3 && m_data->legacy_version().minor_version() == 0) {
  ------------------
  |  Branch (52:7): [True: 27, False: 246]
  |  Branch (52:7): [True: 1, False: 272]
  |  Branch (52:56): [True: 1, False: 26]
  ------------------
   53|      1|      throw TLS_Exception(Alert::ProtocolVersion, "TLS 1.3 Client Hello has invalid legacy_version");
   54|      1|   }
   55|       |
   56|       |   // RFC 8446 4.1.2
   57|       |   //    For every TLS 1.3 ClientHello, [the compression method] MUST contain
   58|       |   //    exactly one byte, set to zero, [...].  If a TLS 1.3 ClientHello is
   59|       |   //    received with any other value in this field, the server MUST abort the
   60|       |   //    handshake with an "illegal_parameter" alert.
   61|    272|   if(m_data->comp_methods().size() != 1 || m_data->comp_methods().front() != 0) {
  ------------------
  |  Branch (61:7): [True: 1, False: 271]
  |  Branch (61:45): [True: 14, False: 257]
  ------------------
   62|     15|      throw TLS_Exception(Alert::IllegalParameter, "Client did not offer NULL compression");
   63|     15|   }
   64|       |
   65|       |   // RFC 8446 4.2.9
   66|       |   //    A client MUST provide a "psk_key_exchange_modes" extension if it
   67|       |   //    offers a "pre_shared_key" extension. If clients offer "pre_shared_key"
   68|       |   //    without a "psk_key_exchange_modes" extension, servers MUST abort
   69|       |   //    the handshake.
   70|    257|   if(exts.has<PSK>()) {
  ------------------
  |  Branch (70:7): [True: 83, False: 174]
  ------------------
   71|     83|      if(!exts.has<PSK_Key_Exchange_Modes>()) {
  ------------------
  |  Branch (71:10): [True: 1, False: 82]
  ------------------
   72|      1|         throw TLS_Exception(Alert::MissingExtension,
   73|      1|                             "Client Hello offered a PSK without a psk_key_exchange_modes extension");
   74|      1|      }
   75|       |
   76|       |      // RFC 8446 4.2.11
   77|       |      //     The "pre_shared_key" extension MUST be the last extension in the
   78|       |      //     ClientHello [...]. Servers MUST check that it is the last extension
   79|       |      //     and otherwise fail the handshake with an "illegal_parameter" alert.
   80|     82|      if(exts.last_added() != Extension_Code::PresharedKey) {
  ------------------
  |  Branch (80:10): [True: 2, False: 80]
  ------------------
   81|      2|         throw TLS_Exception(Alert::IllegalParameter, "PSK extension was not at the very end of the Client Hello");
   82|      2|      }
   83|     82|   }
   84|       |
   85|       |   // RFC 8446 9.2
   86|       |   //    [A TLS 1.3 ClientHello] message MUST meet the following requirements:
   87|       |   //
   88|       |   //     -  If not containing a "pre_shared_key" extension, it MUST contain
   89|       |   //        both a "signature_algorithms" extension and a "supported_groups"
   90|       |   //        extension.
   91|       |   //
   92|       |   //     -  If containing a "supported_groups" extension, it MUST also contain
   93|       |   //        a "key_share" extension, and vice versa.  An empty
   94|       |   //        KeyShare.client_shares vector is permitted.
   95|       |   //
   96|       |   //    Servers receiving a ClientHello which does not conform to these
   97|       |   //    requirements MUST abort the handshake with a "missing_extension"
   98|       |   //    alert.
   99|    254|   if(!exts.has<PSK>()) {
  ------------------
  |  Branch (99:7): [True: 174, False: 80]
  ------------------
  100|    174|      if(!exts.has<Supported_Groups>() || !exts.has<Signature_Algorithms>()) {
  ------------------
  |  Branch (100:10): [True: 2, False: 172]
  |  Branch (100:43): [True: 3, False: 169]
  ------------------
  101|      5|         throw TLS_Exception(
  102|      5|            Alert::MissingExtension,
  103|      5|            "Non-PSK Client Hello did not contain supported_groups and signature_algorithms extensions");
  104|      5|      }
  105|    174|   }
  106|    249|   if(exts.has<Supported_Groups>() != exts.has<Key_Share>()) {
  ------------------
  |  Branch (106:7): [True: 1, False: 248]
  ------------------
  107|      1|      throw TLS_Exception(Alert::MissingExtension,
  108|      1|                          "Client Hello must either contain both key_share and supported_groups extensions or neither");
  109|      1|   }
  110|       |
  111|    248|   if(exts.has<Key_Share>()) {
  ------------------
  |  Branch (111:7): [True: 168, False: 80]
  ------------------
  112|    168|      auto* const supported_ext = exts.get<Supported_Groups>();
  113|    168|      BOTAN_ASSERT_NONNULL(supported_ext);
  ------------------
  |  |  116|    168|   do {                                                                                   \
  |  |  117|    168|      if((ptr) == nullptr) {                                                              \
  |  |  ------------------
  |  |  |  Branch (117:10): [True: 0, False: 168]
  |  |  ------------------
  |  |  118|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                              \
  |  |  119|      0|         Botan::assertion_failure(#ptr " is not null", "", __func__, __FILE__, __LINE__); \
  |  |  120|      0|      }                                                                                   \
  |  |  121|    168|   } while(0)
  |  |  ------------------
  |  |  |  Branch (121:12): [Folded, False: 168]
  |  |  ------------------
  ------------------
  114|    168|      const auto supports = supported_ext->groups();
  115|    168|      const auto offers = exts.get<Key_Share>()->offered_groups();
  116|       |
  117|       |      // RFC 8446 4.2.8
  118|       |      //    Each KeyShareEntry value MUST correspond to a group offered in the
  119|       |      //    "supported_groups" extension and MUST appear in the same order.
  120|       |      //    [...]
  121|       |      //    Clients MUST NOT offer any KeyShareEntry values for groups not
  122|       |      //    listed in the client's "supported_groups" extension.
  123|       |      //
  124|       |      //    Servers MAY check for violations of these rules and abort the
  125|       |      //    handshake with an "illegal_parameter" alert if one is violated.
  126|       |      //
  127|       |      // Note: We can assume that both `offers` and `supports` are unique lists
  128|       |      //       as this is ensured in the parsing code of the extensions.
  129|       |      //
  130|       |      // Since offers must appear in the same order as supports, a single
  131|       |      // forward sweep of `supports` suffices: after finding each offered group
  132|       |      // we advance past its position so the next offered group is searched for
  133|       |      // only in the remaining suffix.
  134|    168|      auto supports_it = supports.begin();
  135|    168|      for(const auto offered : offers) {
  ------------------
  |  Branch (135:30): [True: 168, False: 149]
  ------------------
  136|    168|         supports_it = std::find(supports_it, supports.end(), offered);
  137|    168|         if(supports_it == supports.end()) {
  ------------------
  |  Branch (137:13): [True: 19, False: 149]
  ------------------
  138|     19|            throw TLS_Exception(Alert::IllegalParameter,
  139|     19|                                "Offered key exchange groups do not align with claimed supported groups");
  140|     19|         }
  141|    149|         ++supports_it;
  142|    149|      }
  143|    168|   }
  144|       |
  145|       |   // TODO: Reject oid_filters extension if found (which is the only known extension that
  146|       |   //       must not occur in the TLS 1.3 client hello.
  147|       |   // RFC 8446 4.2.5
  148|       |   //    [The oid_filters extension] MUST only be sent in the CertificateRequest message.
  149|    248|}
_ZN5Botan3TLS15Client_Hello_135parseERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  286|  5.11k|std::variant<Client_Hello_13, Client_Hello_12_Shim> Client_Hello_13::parse(const std::vector<uint8_t>& buf) {
  287|  5.11k|   auto data = std::make_unique<Client_Hello_Internal>(buf);
  288|  5.11k|   const auto version = data->version();
  289|       |
  290|  5.11k|   if(version.is_pre_tls_13()) {
  ------------------
  |  Branch (290:7): [True: 4.28k, False: 832]
  ------------------
  291|  4.28k|      return Client_Hello_12_Shim(std::move(data));
  292|  4.28k|   } else {
  293|    832|      return Client_Hello_13(std::move(data));
  294|    832|   }
  295|  5.11k|}

_ZN5Botan3TLS20Encrypted_ExtensionsC2ERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
  134|  6.56k|Encrypted_Extensions::Encrypted_Extensions(const std::vector<uint8_t>& buf) {
  135|  6.56k|   TLS_Data_Reader reader("encrypted extensions reader", buf);
  136|       |
  137|       |   // Encrypted Extensions contains a list of extensions. This list may legally
  138|       |   // be empty. However, in that case we should at least see a two-byte length
  139|       |   // field that reads 0x00 0x00.
  140|  6.56k|   if(buf.size() < 2) {
  ------------------
  |  Branch (140:7): [True: 12, False: 6.55k]
  ------------------
  141|     12|      throw TLS_Exception(Alert::DecodeError, "Server sent an empty Encrypted Extensions message");
  142|     12|   }
  143|       |
  144|  6.55k|   m_extensions.deserialize(reader, Connection_Side::Server, type());
  145|       |
  146|       |   // RFC 8446 4.2
  147|       |   //    If an implementation receives an extension which it recognizes and
  148|       |   //    which is not specified for the message in which it appears, it MUST
  149|       |   //    abort the handshake with an "illegal_parameter" alert.
  150|       |   //
  151|       |   // Note that we cannot encounter any extensions that we don't recognize here,
  152|       |   // since only extensions we previously offered are allowed in EE.
  153|  6.55k|   const auto allowed_exts = std::set<Extension_Code>{
  154|       |      // Allowed extensions listed in RFC 8446 and implemented in Botan
  155|  6.55k|      Extension_Code::ServerNameIndication,
  156|       |      // MAX_FRAGMENT_LENGTH
  157|  6.55k|      Extension_Code::SupportedGroups,
  158|  6.55k|      Extension_Code::UseSrtp,
  159|       |      // HEARTBEAT
  160|  6.55k|      Extension_Code::ApplicationLayerProtocolNegotiation,
  161|       |      // RFC 7250
  162|  6.55k|      Extension_Code::ClientCertificateType,
  163|  6.55k|      Extension_Code::ServerCertificateType,
  164|       |      // EARLY_DATA
  165|       |
  166|       |      // Allowed extensions not listed in RFC 8446 but acceptable as Botan implements them
  167|  6.55k|      Extension_Code::RecordSizeLimit,
  168|  6.55k|   };
  169|  6.55k|   if(m_extensions.contains_implemented_extensions_other_than(allowed_exts)) {
  ------------------
  |  Branch (169:7): [True: 118, False: 6.43k]
  ------------------
  170|    118|      throw TLS_Exception(Alert::IllegalParameter, "Encrypted Extensions contained an extension that is not allowed");
  171|    118|   }
  172|       |
  173|  6.43k|   reader.assert_done();
  174|  6.43k|}

_ZN5Botan3TLS15Server_Hello_135parseERKNSt3__16vectorIhNS2_9allocatorIhEEEE:
   85|  3.64k|   const std::vector<uint8_t>& buf) {
   86|  3.64k|   auto data = std::make_unique<Server_Hello_Internal>(buf);
   87|  3.64k|   const auto version = data->version();
   88|       |
   89|       |   // server hello that appears to be pre-TLS 1.3, takes precedence over...
   90|  3.64k|   if(version.is_pre_tls_13()) {
  ------------------
  |  Branch (90:7): [True: 3.07k, False: 572]
  ------------------
   91|  3.07k|      return Server_Hello_12_Shim(std::move(data));
   92|  3.07k|   }
   93|       |
   94|       |   // ... the TLS 1.3 "special case" aka. Hello_Retry_Request
   95|    572|   if(version == Protocol_Version::TLS_V13) {
  ------------------
  |  Branch (95:7): [True: 457, False: 115]
  ------------------
   96|    457|      if(data->is_hello_retry_request()) {
  ------------------
  |  Branch (96:10): [True: 0, False: 457]
  ------------------
   97|      0|         return Hello_Retry_Request(std::move(data));
   98|      0|      }
   99|       |
  100|    457|      return Server_Hello_13(std::move(data));
  101|    457|   }
  102|       |
  103|    115|   throw TLS_Exception(Alert::ProtocolVersion, "unexpected server hello version: " + version.to_string());
  104|    572|}
_ZNK5Botan3TLS15Server_Hello_1316basic_validationEv:
  109|    457|void Server_Hello_13::basic_validation() const {
  110|    457|   BOTAN_ASSERT_NOMSG(m_data->version() == Protocol_Version::TLS_V13);
  ------------------
  |  |   77|    457|   do {                                                                     \
  |  |   78|    457|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|    457|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 457]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|    457|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 457]
  |  |  ------------------
  ------------------
  111|       |
  112|       |   // Note: checks that cannot be performed without contextual information
  113|       |   //       are done in the specific TLS client implementation.
  114|       |   // Note: The Supported_Version extension makes sure internally that
  115|       |   //       exactly one entry is provided.
  116|       |
  117|       |   // Note: Hello Retry Request basic validation is equivalent with the
  118|       |   //       basic validations required for Server Hello
  119|       |   //
  120|       |   // RFC 8446 4.1.4
  121|       |   //    Upon receipt of a HelloRetryRequest, the client MUST check the
  122|       |   //    legacy_version, [...], and legacy_compression_method as specified in
  123|       |   //    Section 4.1.3 and then process the extensions, starting with determining
  124|       |   //    the version using "supported_versions".
  125|       |
  126|       |   // RFC 8446 4.1.3
  127|       |   //    In TLS 1.3, [...] the legacy_version field MUST be set to 0x0303
  128|    457|   if(legacy_version() != Protocol_Version::TLS_V12) {
  ------------------
  |  Branch (128:7): [True: 24, False: 433]
  ------------------
  129|     24|      throw TLS_Exception(Alert::ProtocolVersion,
  130|     24|                          "legacy_version '" + legacy_version().to_string() + "' is not allowed");
  131|     24|   }
  132|       |
  133|       |   // RFC 8446 4.1.3
  134|       |   //    legacy_compression_method:  A single byte which MUST have the value 0.
  135|    433|   if(compression_method() != 0x00) {
  ------------------
  |  Branch (135:7): [True: 6, False: 427]
  ------------------
  136|      6|      throw TLS_Exception(Alert::DecodeError, "compression is not supported in TLS 1.3");
  137|      6|   }
  138|       |
  139|       |   // RFC 8446 4.1.3
  140|       |   //    All TLS 1.3 ServerHello messages MUST contain the "supported_versions" extension.
  141|    427|   if(!extensions().has<Supported_Versions>()) {
  ------------------
  |  Branch (141:7): [True: 0, False: 427]
  ------------------
  142|      0|      throw TLS_Exception(Alert::MissingExtension, "server hello did not contain 'supported version' extension");
  143|      0|   }
  144|       |
  145|       |   // RFC 8446 4.2.1
  146|       |   //    A server which negotiates TLS 1.3 MUST respond by sending
  147|       |   //    a "supported_versions" extension containing the selected version
  148|       |   //    value (0x0304).
  149|    427|   if(selected_version() != Protocol_Version::TLS_V13) {
  ------------------
  |  Branch (149:7): [True: 17, False: 410]
  ------------------
  150|     17|      throw TLS_Exception(Alert::IllegalParameter, "TLS 1.3 Server Hello selected a different version");
  151|     17|   }
  152|    427|}
_ZN5Botan3TLS15Server_Hello_13C2ENSt3__110unique_ptrINS0_21Server_Hello_InternalENS2_14default_deleteIS4_EEEENS1_16Server_Hello_TagE:
  156|    457|      Server_Hello(std::move(data)) {
  157|    457|   BOTAN_ASSERT_NOMSG(!m_data->is_hello_retry_request());
  ------------------
  |  |   77|    457|   do {                                                                     \
  |  |   78|    457|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|    457|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 457]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|    457|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 457]
  |  |  ------------------
  ------------------
  158|    457|   basic_validation();
  159|       |
  160|    457|   const auto& exts = extensions();
  161|       |
  162|       |   // RFC 8446 4.1.3
  163|       |   //    The ServerHello MUST only include extensions which are required to
  164|       |   //    establish the cryptographic context and negotiate the protocol version.
  165|       |   //    [...]
  166|       |   //    Other extensions (see Section 4.2) are sent separately in the
  167|       |   //    EncryptedExtensions message.
  168|       |   //
  169|       |   // Note that further validation dependent on the client hello is done in the
  170|       |   // TLS client implementation.
  171|    457|   const std::set<Extension_Code> allowed = {
  172|    457|      Extension_Code::KeyShare,
  173|    457|      Extension_Code::SupportedVersions,
  174|    457|      Extension_Code::PresharedKey,
  175|    457|   };
  176|       |
  177|       |   // As the ServerHello shall only contain essential extensions, we don't give
  178|       |   // any slack for extensions not implemented by Botan here.
  179|    457|   if(exts.contains_other_than(allowed)) {
  ------------------
  |  Branch (179:7): [True: 2, False: 455]
  ------------------
  180|      2|      throw TLS_Exception(Alert::UnsupportedExtension, "Server Hello contained an extension that is not allowed");
  181|      2|   }
  182|       |
  183|       |   // RFC 8446 4.1.3
  184|       |   //    Current ServerHello messages additionally contain
  185|       |   //    either the "pre_shared_key" extension or the "key_share"
  186|       |   //    extension, or both [...].
  187|    455|   if(!exts.has<Key_Share>() && !exts.has<PSK>()) {
  ------------------
  |  Branch (187:7): [True: 297, False: 158]
  |  Branch (187:33): [True: 1, False: 296]
  ------------------
  188|      1|      throw TLS_Exception(Alert::MissingExtension, "server hello must contain key exchange information");
  189|      1|   }
  190|    455|}
_ZNK5Botan3TLS15Server_Hello_1316selected_versionEv:
  353|    427|Protocol_Version Server_Hello_13::selected_version() const {
  354|    427|   auto* const versions_ext = m_data->extensions().get<Supported_Versions>();
  355|    427|   BOTAN_ASSERT_NOMSG(versions_ext);
  ------------------
  |  |   77|    427|   do {                                                                     \
  |  |   78|    427|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|    427|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 427]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|    427|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 427]
  |  |  ------------------
  ------------------
  356|    427|   const auto& versions = versions_ext->versions();
  357|    427|   BOTAN_ASSERT_NOMSG(versions.size() == 1);
  ------------------
  |  |   77|    427|   do {                                                                     \
  |  |   78|    427|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|    427|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 427]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|    427|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 427]
  |  |  ------------------
  ------------------
  358|    427|   return versions.front();
  359|    427|}

_ZN5Botan3TLS6CookieC2ERNS0_15TLS_Data_ReaderEt:
   26|    107|Cookie::Cookie(TLS_Data_Reader& reader, uint16_t extension_size) {
   27|       |   // RFC 8446 4.2.2
   28|       |   //    struct {
   29|       |   //       opaque cookie<1..2^16-1>;
   30|       |   //    } Cookie;
   31|       |   //
   32|       |   // The wire form requires a 2-byte length field plus at least one byte of
   33|       |   // cookie data, so the minimum extension size is 3 bytes.
   34|    107|   if(extension_size < 3) {
  ------------------
  |  Branch (34:7): [True: 4, False: 103]
  ------------------
   35|      4|      throw Decoding_Error("Empty cookie extension is illegal");
   36|      4|   }
   37|       |
   38|    103|   const uint16_t len = reader.get_uint16_t();
   39|       |
   40|    103|   if(static_cast<size_t>(len) + 2 != extension_size) {
  ------------------
  |  Branch (40:7): [True: 24, False: 79]
  ------------------
   41|     24|      throw Decoding_Error("Inconsistent length in cookie extension");
   42|     24|   }
   43|       |
   44|     79|   m_cookie = reader.get_fixed<uint8_t>(len);
   45|     79|}
_ZN5Botan3TLS22PSK_Key_Exchange_ModesC2ERNS0_15TLS_Data_ReaderEt:
   65|    397|PSK_Key_Exchange_Modes::PSK_Key_Exchange_Modes(TLS_Data_Reader& reader, uint16_t extension_size) {
   66|       |   // RFC 8446 4.2.9
   67|       |   //    struct {
   68|       |   //       PskKeyExchangeMode ke_modes<1..255>;
   69|       |   //    } PskKeyExchangeModes;
   70|       |   //
   71|       |   // The wire form is a 1-byte length followed by mode_count mode bytes,
   72|       |   // with mode_count in [1, 255], so the extension size is in [2, 256].
   73|    397|   if(extension_size < 2) {
  ------------------
  |  Branch (73:7): [True: 2, False: 395]
  ------------------
   74|      2|      throw Decoding_Error("Empty psk_key_exchange_modes extension is illegal");
   75|      2|   }
   76|       |
   77|    395|   const auto mode_count = reader.get_byte();
   78|    395|   if(static_cast<size_t>(mode_count) + 1 != extension_size) {
  ------------------
  |  Branch (78:7): [True: 18, False: 377]
  ------------------
   79|     18|      throw Decoding_Error("Inconsistent length in psk_key_exchange_modes extension");
   80|     18|   }
   81|       |
   82|  3.81k|   for(uint16_t i = 0; i < mode_count; ++i) {
  ------------------
  |  Branch (82:24): [True: 3.44k, False: 377]
  ------------------
   83|  3.44k|      const auto mode = static_cast<PSK_Key_Exchange_Mode>(reader.get_byte());
   84|  3.44k|      if(mode == PSK_Key_Exchange_Mode::PSK_KE || mode == PSK_Key_Exchange_Mode::PSK_DHE_KE) {
  ------------------
  |  Branch (84:10): [True: 1.48k, False: 1.95k]
  |  Branch (84:51): [True: 322, False: 1.63k]
  ------------------
   85|  1.80k|         m_modes.push_back(mode);
   86|  1.80k|      }
   87|  3.44k|   }
   88|    377|}
_ZN5Botan3TLS23Certificate_AuthoritiesC2ERNS0_15TLS_Data_ReaderEt:
  106|    877|Certificate_Authorities::Certificate_Authorities(TLS_Data_Reader& reader, uint16_t extension_size) {
  107|    877|   if(extension_size < 2) {
  ------------------
  |  Branch (107:7): [True: 2, False: 875]
  ------------------
  108|      2|      throw Decoding_Error("Empty certificate_authorities extension is illegal");
  109|      2|   }
  110|       |
  111|    875|   const uint16_t purported_size = reader.get_uint16_t();
  112|       |
  113|    875|   if(reader.remaining_bytes() != purported_size) {
  ------------------
  |  Branch (113:7): [True: 30, False: 845]
  ------------------
  114|     30|      throw Decoding_Error("Inconsistent length in certificate_authorities extension");
  115|     30|   }
  116|       |
  117|       |   // RFC 8446 4.2.4: DistinguishedName authorities<3..2^16-1>;
  118|    845|   if(purported_size < 3) {
  ------------------
  |  Branch (118:7): [True: 2, False: 843]
  ------------------
  119|      2|      throw Decoding_Error("Empty certificate_authorities list is illegal");
  120|      2|   }
  121|       |
  122|  2.35k|   while(reader.has_remaining()) {
  ------------------
  |  Branch (122:10): [True: 1.51k, False: 843]
  ------------------
  123|       |      // RFC 8446 4.2.4: opaque DistinguishedName<1..2^16-1>
  124|  1.51k|      const std::vector<uint8_t> name_bits = reader.get_range<uint8_t>(2, 1, 65535);
  125|       |
  126|  1.51k|      BER_Decoder decoder(name_bits, BER_Decoder::Limits::DER());
  127|  1.51k|      m_distinguished_names.emplace_back();
  128|  1.51k|      decoder.decode(m_distinguished_names.back()).verify_end();
  129|  1.51k|   }
  130|    843|}
_ZN5Botan3TLS19EarlyDataIndicationC2ERNS0_15TLS_Data_ReaderEtNS0_14Handshake_TypeE:
  149|    302|                                         Handshake_Type message_type) {
  150|    302|   if(message_type == Handshake_Type::NewSessionTicket) {
  ------------------
  |  Branch (150:7): [True: 0, False: 302]
  ------------------
  151|      0|      if(extension_size != 4) {
  ------------------
  |  Branch (151:10): [True: 0, False: 0]
  ------------------
  152|      0|         throw TLS_Exception(Alert::DecodeError,
  153|      0|                             "Received an early_data extension in a NewSessionTicket message "
  154|      0|                             "without maximum early data size indication");
  155|      0|      }
  156|       |
  157|      0|      m_max_early_data_size = reader.get_uint32_t();
  158|    302|   } else if(extension_size != 0) {
  ------------------
  |  Branch (158:14): [True: 10, False: 292]
  ------------------
  159|     10|      throw TLS_Exception(Alert::DecodeError,
  160|     10|                          "Received an early_data extension containing an unexpected data "
  161|     10|                          "size indication");
  162|     10|   }
  163|    302|}
_ZNK5Botan3TLS19EarlyDataIndication5emptyEv:
  165|     10|bool EarlyDataIndication::empty() const {
  166|       |   // This extension may be empty by definition but still carry information
  167|     10|   return false;
  168|     10|}

_ZN5Botan3TLS9Key_ShareC2ERNS0_15TLS_Data_ReaderEtNS0_14Handshake_TypeE:
  401|  1.28k|Key_Share::Key_Share(TLS_Data_Reader& reader, uint16_t extension_size, Handshake_Type message_type) {
  402|  1.28k|   if(message_type == Handshake_Type::ClientHello) {
  ------------------
  |  Branch (402:7): [True: 760, False: 523]
  ------------------
  403|    760|      m_impl = std::make_unique<Key_Share_Impl>(Key_Share_ClientHello(reader, extension_size));
  404|    760|   } else if(message_type == Handshake_Type::HelloRetryRequest) {
  ------------------
  |  Branch (404:14): [True: 0, False: 523]
  ------------------
  405|       |      // Connection_Side::Server
  406|      0|      m_impl = std::make_unique<Key_Share_Impl>(Key_Share_HelloRetryRequest(reader, extension_size));
  407|    523|   } else if(message_type == Handshake_Type::ServerHello) {
  ------------------
  |  Branch (407:14): [True: 520, False: 3]
  ------------------
  408|       |      // Connection_Side::Server
  409|    520|      m_impl = std::make_unique<Key_Share_Impl>(Key_Share_ServerHello(reader, extension_size));
  410|    520|   } else {
  411|      3|      throw Invalid_Argument(std::string("cannot create a Key_Share extension for message of type: ") +
  412|      3|                             handshake_type_to_string(message_type));
  413|      3|   }
  414|  1.28k|}
_ZN5Botan3TLS9Key_ShareD2Ev:
  433|  1.21k|Key_Share::~Key_Share() = default;
_ZNK5Botan3TLS9Key_Share5emptyEv:
  439|    111|bool Key_Share::empty() const {
  440|    111|   return std::visit([](const auto& key_share) { return key_share.empty(); }, m_impl->key_share);
  441|    111|}
_ZNK5Botan3TLS9Key_Share14offered_groupsEv:
  466|    168|std::vector<Named_Group> Key_Share::offered_groups() const {
  467|    168|   return std::visit([](const auto& keyshare) { return keyshare.offered_groups(); }, m_impl->key_share);
  468|    168|}
tls_extensions_key_share.cpp:_ZN5Botan3TLS12_GLOBAL__N_121Key_Share_ClientHelloC2ERNS0_15TLS_Data_ReaderEt:
  185|    760|      Key_Share_ClientHello(TLS_Data_Reader& reader, uint16_t /* extension_size */) {
  186|       |         // The reader is per-extension (Extensions::deserialize binds it to
  187|       |         // exactly extension_size bytes). Enforce that the inner
  188|       |         // client_shares length matches what the outer extension has left,
  189|       |         // then let the entry loop consume everything; extn_reader's
  190|       |         // assert_done() at the deserialize call site catches any leftover.
  191|    760|         const auto client_key_share_length = reader.get_uint16_t();
  192|    760|         if(reader.remaining_bytes() != client_key_share_length) {
  ------------------
  |  Branch (192:13): [True: 25, False: 735]
  ------------------
  193|     25|            throw TLS_Exception(Alert::DecodeError, "Inconsistent length in client KeyShare extension");
  194|     25|         }
  195|       |
  196|    735|         std::unordered_set<uint16_t> seen_groups;
  197|  1.28k|         while(reader.has_remaining()) {
  ------------------
  |  Branch (197:16): [True: 554, False: 728]
  ------------------
  198|       |            // Each KeyShareEntry is at least 4 bytes (group + 2-byte length).
  199|       |            // Cleaner failure than the reader underflow we'd otherwise hit
  200|       |            // when the inner buffer ends mid-entry.
  201|    554|            if(reader.remaining_bytes() < 4) {
  ------------------
  |  Branch (201:16): [True: 4, False: 550]
  ------------------
  202|      4|               throw TLS_Exception(Alert::DecodeError, "Not enough data to read another KeyShareEntry");
  203|      4|            }
  204|       |
  205|    550|            Key_Share_Entry new_entry(reader);
  206|       |
  207|       |            // RFC 8446 4.2.8
  208|       |            //    Clients MUST NOT offer multiple KeyShareEntry values for the same
  209|       |            //    group. [...]
  210|       |            //    Servers MAY check for violations of these rules and abort the
  211|       |            //    handshake with an "illegal_parameter" alert if one is violated.
  212|    550|            if(!seen_groups.insert(new_entry.group().wire_code()).second) {
  ------------------
  |  Branch (212:16): [True: 3, False: 547]
  ------------------
  213|      3|               throw TLS_Exception(Alert::IllegalParameter, "Received multiple key share entries for the same group");
  214|      3|            }
  215|       |
  216|    547|            m_client_shares.emplace_back(std::move(new_entry));
  217|    547|         }
  218|    735|      }
tls_extensions_key_share.cpp:_ZN5Botan3TLS12_GLOBAL__N_115Key_Share_EntryC2ERNS0_15TLS_Data_ReaderE:
   47|  1.07k|      explicit Key_Share_Entry(TLS_Data_Reader& reader) {
   48|       |         // TODO check that the group actually exists before casting...
   49|  1.07k|         m_group = static_cast<Named_Group>(reader.get_uint16_t());
   50|       |         // RFC 8446 4.2.8: opaque key_exchange<1..2^16-1>
   51|  1.07k|         m_key_exchange = reader.get_range<uint8_t>(2, 1, 65535);
   52|  1.07k|      }
tls_extensions_key_share.cpp:_ZNK5Botan3TLS12_GLOBAL__N_115Key_Share_Entry5groupEv:
  105|    710|      Named_Group group() const { return m_group; }
tls_extensions_key_share.cpp:_ZN5Botan3TLS12_GLOBAL__N_121Key_Share_ClientHelloD2Ev:
  243|  2.12k|      ~Key_Share_ClientHello() = default;
tls_extensions_key_share.cpp:_ZN5Botan3TLS12_GLOBAL__N_121Key_Share_ServerHelloC2ERNS0_15TLS_Data_ReaderEt:
  145|    520|      Key_Share_ServerHello(TLS_Data_Reader& reader, uint16_t /*len*/) : m_server_share(reader) {}
tls_extensions_key_share.cpp:_ZN5Botan3TLS12_GLOBAL__N_121Key_Share_ServerHelloD2Ev:
  153|  1.51k|      ~Key_Share_ServerHello() = default;
tls_extensions_key_share.cpp:_ZZNK5Botan3TLS9Key_Share5emptyEvENK3$_0clINS0_12_GLOBAL__N_121Key_Share_ServerHelloEEEDaRKT_:
  440|    111|   return std::visit([](const auto& key_share) { return key_share.empty(); }, m_impl->key_share);
tls_extensions_key_share.cpp:_ZNK5Botan3TLS12_GLOBAL__N_121Key_Share_ServerHello5emptyEv:
  163|    111|      bool empty() const { return m_server_share.empty(); }
tls_extensions_key_share.cpp:_ZNK5Botan3TLS12_GLOBAL__N_115Key_Share_Entry5emptyEv:
   91|    111|      bool empty() const { return (m_group == Group_Params::NONE) && m_key_exchange.empty(); }
  ------------------
  |  Branch (91:35): [True: 27, False: 84]
  |  Branch (91:70): [True: 0, False: 27]
  ------------------
tls_extensions_key_share.cpp:_ZZNK5Botan3TLS9Key_Share14offered_groupsEvENK3$_0clINS0_12_GLOBAL__N_121Key_Share_ClientHelloEEEDaRKT_:
  467|    168|   return std::visit([](const auto& keyshare) { return keyshare.offered_groups(); }, m_impl->key_share);
tls_extensions_key_share.cpp:_ZNK5Botan3TLS12_GLOBAL__N_121Key_Share_ClientHello14offered_groupsEv:
  265|    168|      std::vector<Named_Group> offered_groups() const {
  266|    168|         std::vector<Named_Group> offered_groups;
  267|    168|         offered_groups.reserve(m_client_shares.size());
  268|    178|         for(const auto& share : m_client_shares) {
  ------------------
  |  Branch (268:32): [True: 178, False: 168]
  ------------------
  269|    178|            offered_groups.push_back(share.group());
  270|    178|         }
  271|    168|         return offered_groups;
  272|    168|      }
tls_extensions_key_share.cpp:_ZN5Botan3TLS12_GLOBAL__N_121Key_Share_ClientHelloC2EOS2_:
  248|  1.41k|      Key_Share_ClientHello(Key_Share_ClientHello&&) = default;
tls_extensions_key_share.cpp:_ZN5Botan3TLS9Key_Share14Key_Share_ImplC2ENSt3__17variantIJNS0_12_GLOBAL__N_121Key_Share_ClientHelloENS5_21Key_Share_ServerHelloENS5_27Key_Share_HelloRetryRequestEEEE:
  396|  1.21k|      explicit Key_Share_Impl(Key_Share_Type ks) : key_share(std::move(ks)) {}
tls_extensions_key_share.cpp:_ZN5Botan3TLS12_GLOBAL__N_121Key_Share_ServerHelloC2EOS2_:
  158|  1.00k|      Key_Share_ServerHello(Key_Share_ServerHello&&) = default;

_ZN5Botan3TLS3PSKC2ERNS0_15TLS_Data_ReaderEtNS0_14Handshake_TypeE:
  142|  1.06k|PSK::PSK(TLS_Data_Reader& reader, uint16_t extension_size, Handshake_Type message_type) {
  143|  1.06k|   if(message_type == Handshake_Type::ServerHello) {
  ------------------
  |  Branch (143:7): [True: 583, False: 477]
  ------------------
  144|    583|      if(extension_size != 2) {
  ------------------
  |  Branch (144:10): [True: 2, False: 581]
  ------------------
  145|      2|         throw TLS_Exception(Alert::DecodeError, "Server provided a malformed PSK extension");
  146|      2|      }
  147|       |
  148|    581|      const uint16_t selected_id = reader.get_uint16_t();
  149|    581|      m_impl = std::make_unique<PSK_Internal>(Server_PSK(selected_id));
  150|    581|   } else if(message_type == Handshake_Type::ClientHello) {
  ------------------
  |  Branch (150:14): [True: 473, False: 4]
  ------------------
  151|    473|      const auto identities_length = reader.get_uint16_t();
  152|    473|      const auto identities_offset = reader.read_so_far();
  153|       |
  154|    473|      std::vector<PskIdentity> psk_identities;
  155|  3.10k|      while(reader.has_remaining() && (reader.read_so_far() - identities_offset) < identities_length) {
  ------------------
  |  Branch (155:13): [True: 3.06k, False: 47]
  |  Branch (155:39): [True: 2.63k, False: 426]
  ------------------
  156|       |         /* Per RFC 8446 PskIdentity is
  157|       |
  158|       |         struct {
  159|       |            opaque identity<1..2^16-1>;
  160|       |            uint32 obfuscated_ticket_age;
  161|       |         } PskIdentity;
  162|       |
  163|       |         so we should reject an empty identity. However BoGo seems to expect
  164|       |         being able to send us such an identity, so for now we accept it.
  165|       |         */
  166|       |
  167|  2.63k|         auto identity = reader.get_tls_length_value(2);
  168|  2.63k|         const auto obfuscated_ticket_age = reader.get_uint32_t();
  169|  2.63k|         psk_identities.emplace_back(std::move(identity), obfuscated_ticket_age);
  170|  2.63k|      }
  171|       |
  172|    473|      if(psk_identities.empty()) {
  ------------------
  |  Branch (172:10): [True: 1, False: 472]
  ------------------
  173|      1|         throw TLS_Exception(Alert::DecodeError, "Empty PSK list");
  174|      1|      }
  175|       |
  176|    472|      if(reader.read_so_far() - identities_offset != identities_length) {
  ------------------
  |  Branch (176:10): [True: 37, False: 435]
  ------------------
  177|     37|         throw TLS_Exception(Alert::DecodeError, "Inconsistent PSK identity list");
  178|     37|      }
  179|       |
  180|    435|      const auto binders_length = reader.get_uint16_t();
  181|    435|      const auto binders_offset = reader.read_so_far();
  182|       |
  183|    435|      if(binders_length == 0) {
  ------------------
  |  Branch (183:10): [True: 1, False: 434]
  ------------------
  184|      1|         throw TLS_Exception(Alert::DecodeError, "Empty PSK binders list");
  185|      1|      }
  186|       |
  187|    434|      std::vector<Client_PSK> psks;
  188|  1.96k|      for(auto& psk_identity : psk_identities) {
  ------------------
  |  Branch (188:30): [True: 1.96k, False: 420]
  ------------------
  189|  1.96k|         if(!reader.has_remaining() || reader.read_so_far() - binders_offset >= binders_length) {
  ------------------
  |  Branch (189:13): [True: 5, False: 1.95k]
  |  Branch (189:40): [True: 9, False: 1.94k]
  ------------------
  190|     14|            throw TLS_Exception(Alert::IllegalParameter, "Not enough PSK binders");
  191|     14|         }
  192|       |
  193|       |         // RFC 8446 4.2.11 declares PskBinderEntry opaque<32..255>, but we accept any
  194|       |         // 0..255 length here and let validate_binder reject, which yields a bad_record_mac
  195|       |         // alert rather than decode_error. BoringSSL behaves the same way and BoGo has
  196|       |         // tests that specifically expect this.
  197|       |
  198|  1.94k|         psks.emplace_back(std::move(psk_identity), reader.get_tls_length_value(1));
  199|  1.94k|      }
  200|       |
  201|    420|      if(reader.read_so_far() - binders_offset != binders_length) {
  ------------------
  |  Branch (201:10): [True: 39, False: 381]
  ------------------
  202|     39|         throw TLS_Exception(Alert::IllegalParameter, "Too many PSK binders");
  203|     39|      }
  204|       |
  205|    381|      m_impl = std::make_unique<PSK_Internal>(std::move(psks));
  206|    381|   } else {
  207|      4|      throw TLS_Exception(Alert::DecodeError, "Found a PSK extension in an unexpected handshake message");
  208|      4|   }
  209|  1.06k|}
_ZN5Botan3TLS3PSKD2Ev:
  231|    922|PSK::~PSK() = default;
_ZNK5Botan3TLS3PSK5emptyEv:
  233|    296|bool PSK::empty() const {
  234|    296|   if(std::holds_alternative<Server_PSK>(m_impl->psk)) {
  ------------------
  |  Branch (234:7): [True: 296, False: 0]
  ------------------
  235|    296|      return false;
  236|    296|   }
  237|       |
  238|      0|   BOTAN_ASSERT_NOMSG(std::holds_alternative<std::vector<Client_PSK>>(m_impl->psk));
  ------------------
  |  |   77|      0|   do {                                                                     \
  |  |   78|      0|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|      0|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|      0|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
  239|      0|   return std::get<std::vector<Client_PSK>>(m_impl->psk).empty();
  240|    296|}
tls_extensions_psk.cpp:_ZN5Botan3TLS12_GLOBAL__N_110Server_PSKC2Et:
  109|    581|      explicit Server_PSK(uint16_t id) : m_selected_identity(id), m_session_to_resume_or_psk(std::monostate()) {}
tls_extensions_psk.cpp:_ZN5Botan3TLS12_GLOBAL__N_110Client_PSKC2ENS0_11PskIdentityENSt3__16vectorIhNS4_9allocatorIhEEEE:
   56|  1.93k|            m_identity(std::move(id)), m_binder(std::move(bndr)), m_is_resumption(false) {}
tls_extensions_psk.cpp:_ZN5Botan3TLS3PSK12PSK_InternalC2ENS0_12_GLOBAL__N_110Server_PSKE:
  134|    581|      explicit PSK_Internal(Server_PSK srv_psk) : psk(std::move(srv_psk)) {}
tls_extensions_psk.cpp:_ZN5Botan3TLS3PSK12PSK_InternalC2ENSt3__16vectorINS0_12_GLOBAL__N_110Client_PSKENS3_9allocatorIS6_EEEE:
  136|    341|      explicit PSK_Internal(std::vector<Client_PSK> clt_psks) : psk(std::move(clt_psks)) {}

_ZN5Botan3TLS15Handshake_Layer9copy_dataENSt3__14spanIKhLm18446744073709551615EEE:
   22|  7.26k|void Handshake_Layer::copy_data(std::span<const uint8_t> data_from_peer) {
   23|       |   // Compact consumed data before appending new data
   24|  7.26k|   BOTAN_ASSERT_NOMSG(m_read_offset <= m_read_buffer.size());
  ------------------
  |  |   77|  7.26k|   do {                                                                     \
  |  |   78|  7.26k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  7.26k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 7.26k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  7.26k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 7.26k]
  |  |  ------------------
  ------------------
   25|  7.26k|   if(m_read_offset > 0) {
  ------------------
  |  Branch (25:7): [True: 0, False: 7.26k]
  ------------------
   26|      0|      m_read_buffer.erase(m_read_buffer.begin(), m_read_buffer.begin() + m_read_offset);
   27|      0|      m_read_offset = 0;
   28|      0|   }
   29|       |
   30|  7.26k|   m_read_buffer.insert(m_read_buffer.end(), data_from_peer.begin(), data_from_peer.end());
   31|  7.26k|}
_ZN5Botan3TLS15Handshake_Layer12next_messageERKNS0_6PolicyERNS0_21Transcript_Hash_StateE:
  141|  30.5k|                                                                  Transcript_Hash_State& transcript_hash) {
  142|  30.5k|   BOTAN_ASSERT_NOMSG(m_read_offset <= m_read_buffer.size());
  ------------------
  |  |   77|  30.5k|   do {                                                                     \
  |  |   78|  30.5k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  30.5k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 30.5k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  30.5k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 30.5k]
  |  |  ------------------
  ------------------
  143|  30.5k|   auto pending = std::span<const uint8_t>{m_read_buffer}.subspan(m_read_offset);
  144|  30.5k|   TLS::TLS_Data_Reader reader("handshake message", pending);
  145|       |
  146|  30.5k|   auto msg = parse_message<Handshake_Message_13>(reader, policy, m_peer, m_certificate_type);
  147|  30.5k|   if(msg.has_value()) {
  ------------------
  |  Branch (147:7): [True: 24.4k, False: 6.04k]
  ------------------
  148|  24.4k|      transcript_hash.update(pending.first(reader.read_so_far()));
  149|  24.4k|      m_read_offset += reader.read_so_far();
  150|  24.4k|      BOTAN_ASSERT_NOMSG(m_read_offset <= m_read_buffer.size());
  ------------------
  |  |   77|  24.4k|   do {                                                                     \
  |  |   78|  24.4k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  24.4k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 24.4k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  24.4k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 24.4k]
  |  |  ------------------
  ------------------
  151|       |
  152|  24.4k|      if(m_read_offset == m_read_buffer.size()) {
  ------------------
  |  Branch (152:10): [True: 1.00k, False: 23.4k]
  ------------------
  153|  1.00k|         m_read_buffer.clear();
  154|  1.00k|         m_read_offset = 0;
  155|  1.00k|      }
  156|  24.4k|   }
  157|       |
  158|  30.5k|   return msg;
  159|  30.5k|}
_ZN5Botan3TLS15Handshake_Layer27next_post_handshake_messageERKNS0_6PolicyE:
  161|  1.17k|std::optional<Post_Handshake_Message_13> Handshake_Layer::next_post_handshake_message(const Policy& policy) {
  162|  1.17k|   BOTAN_ASSERT_NOMSG(m_read_offset <= m_read_buffer.size());
  ------------------
  |  |   77|  1.17k|   do {                                                                     \
  |  |   78|  1.17k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  1.17k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 1.17k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  1.17k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 1.17k]
  |  |  ------------------
  ------------------
  163|  1.17k|   auto pending = std::span<const uint8_t>{m_read_buffer}.subspan(m_read_offset);
  164|  1.17k|   TLS::TLS_Data_Reader reader("post handshake message", pending);
  165|       |
  166|  1.17k|   auto msg = parse_message<Post_Handshake_Message_13>(reader, policy, m_peer, m_certificate_type);
  167|  1.17k|   if(msg.has_value()) {
  ------------------
  |  Branch (167:7): [True: 0, False: 1.17k]
  ------------------
  168|      0|      m_read_offset += reader.read_so_far();
  169|      0|      BOTAN_ASSERT_NOMSG(m_read_offset <= m_read_buffer.size());
  ------------------
  |  |   77|      0|   do {                                                                     \
  |  |   78|      0|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|      0|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|      0|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
  170|       |
  171|      0|      if(m_read_offset == m_read_buffer.size()) {
  ------------------
  |  Branch (171:10): [True: 0, False: 0]
  ------------------
  172|      0|         m_read_buffer.clear();
  173|      0|         m_read_offset = 0;
  174|      0|      }
  175|      0|   }
  176|       |
  177|  1.17k|   return msg;
  178|  1.17k|}
tls_handshake_layer_13.cpp:_ZN5Botan3TLS12_GLOBAL__N_113parse_messageINSt3__17variantIJNS0_15Client_Hello_13ENS0_20Client_Hello_12_ShimENS0_15Server_Hello_13ENS0_20Server_Hello_12_ShimENS0_19Hello_Retry_RequestENS0_20Encrypted_ExtensionsENS0_14Certificate_13ENS0_22Certificate_Request_13ENS0_21Certificate_Verify_13ENS0_11Finished_13EEEEEENS3_8optionalIT_EERNS0_15TLS_Data_ReaderERKNS0_6PolicyENS0_15Connection_SideENS0_16Certificate_TypeE:
   78|  30.5k|                                      const Certificate_Type cert_type) {
   79|       |   // read the message header
   80|  30.5k|   if(reader.remaining_bytes() < HEADER_LENGTH) {
  ------------------
  |  Branch (80:7): [True: 1.09k, False: 29.4k]
  ------------------
   81|  1.09k|      return std::nullopt;
   82|  1.09k|   }
   83|       |
   84|  29.4k|   const Handshake_Type type = handshake_type_from_byte<Msg_Type>(reader.get_byte());
   85|       |
   86|       |   // make sure we have received the full message
   87|  29.4k|   const size_t msg_len = reader.get_uint24_t();
   88|       |
   89|       |   // TODO(Botan4) this is split out due to a GCC 11 ICE, can be inlined
   90|  29.4k|   verify_handshake_message_size(msg_len, policy.maximum_handshake_message_size());
   91|       |
   92|  29.4k|   if(reader.remaining_bytes() < msg_len) {
  ------------------
  |  Branch (92:7): [True: 87, False: 29.3k]
  ------------------
   93|     87|      return std::nullopt;
   94|     87|   }
   95|       |
   96|       |   // create the message
   97|  29.3k|   const auto msg = reader.get_fixed<uint8_t>(msg_len);
   98|  29.3k|   if constexpr(std::is_same_v<Msg_Type, Handshake_Message_13>) {
   99|  29.3k|      switch(type) {
  100|       |         // Client Hello and Server Hello messages are ambiguous. Both may come
  101|       |         // from non-TLS 1.3 peers. Hence, their parsing is somewhat different.
  102|  5.11k|         case Handshake_Type::ClientHello:
  ------------------
  |  Branch (102:10): [True: 5.11k, False: 24.2k]
  ------------------
  103|       |            // ... might be TLS 1.2 Client Hello or TLS 1.3 Client Hello
  104|  5.11k|            return generalize_to<Handshake_Message_13>(Client_Hello_13::parse(msg));
  105|  3.64k|         case Handshake_Type::ServerHello:
  ------------------
  |  Branch (105:10): [True: 3.64k, False: 25.6k]
  ------------------
  106|       |            // ... might be TLS 1.2 Server Hello or TLS 1.3 Server Hello or
  107|       |            // a TLS 1.3 Hello Retry Request disguising as a Server Hello
  108|  3.64k|            return generalize_to<Handshake_Message_13>(Server_Hello_13::parse(msg));
  109|       |         // case Handshake_Type::EndOfEarlyData:
  110|       |         //    return End_Of_Early_Data(msg);
  111|  6.56k|         case Handshake_Type::EncryptedExtensions:
  ------------------
  |  Branch (111:10): [True: 6.56k, False: 22.7k]
  ------------------
  112|  6.56k|            return Encrypted_Extensions(msg);
  113|  2.90k|         case Handshake_Type::Certificate:
  ------------------
  |  Branch (113:10): [True: 2.90k, False: 26.4k]
  ------------------
  114|  2.90k|            return Certificate_13(msg, policy, peer_side, cert_type);
  115|  1.70k|         case Handshake_Type::CertificateRequest:
  ------------------
  |  Branch (115:10): [True: 1.70k, False: 27.6k]
  ------------------
  116|  1.70k|            return Certificate_Request_13(msg, peer_side);
  117|  1.85k|         case Handshake_Type::CertificateVerify:
  ------------------
  |  Branch (117:10): [True: 1.85k, False: 27.4k]
  ------------------
  118|  1.85k|            return Certificate_Verify_13(msg, peer_side);
  119|  7.45k|         case Handshake_Type::Finished:
  ------------------
  |  Branch (119:10): [True: 7.45k, False: 21.8k]
  ------------------
  120|  7.45k|            return Finished_13(msg);
  121|      0|         default:
  ------------------
  |  Branch (121:10): [True: 0, False: 29.3k]
  ------------------
  122|      0|            BOTAN_ASSERT(false, "cannot be reached");  // make sure to update handshake_type_from_byte
  ------------------
  |  |   64|      0|   do {                                                                                 \
  |  |   65|      0|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|      0|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, Folded]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|      0|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
  123|  29.3k|      }
  124|       |   } else {
  125|       |      BOTAN_UNUSED(peer_side);
  126|       |
  127|       |      switch(type) {
  128|       |         case Handshake_Type::NewSessionTicket:
  129|       |            return New_Session_Ticket_13(msg, peer_side);
  130|       |         case Handshake_Type::KeyUpdate:
  131|       |            return Key_Update(msg);
  132|       |         default:
  133|       |            BOTAN_ASSERT(false, "cannot be reached");  // make sure to update handshake_type_from_byte
  134|       |      }
  135|       |   }
  136|  29.3k|}
tls_handshake_layer_13.cpp:_ZN5Botan3TLS12_GLOBAL__N_124handshake_type_from_byteINSt3__17variantIJNS0_15Client_Hello_13ENS0_20Client_Hello_12_ShimENS0_15Server_Hello_13ENS0_20Server_Hello_12_ShimENS0_19Hello_Retry_RequestENS0_20Encrypted_ExtensionsENS0_14Certificate_13ENS0_22Certificate_Request_13ENS0_21Certificate_Verify_13ENS0_11Finished_13EEEEEENS0_14Handshake_TypeEh:
   38|  29.4k|Handshake_Type handshake_type_from_byte(uint8_t byte_value) {
   39|  29.4k|   const auto type = static_cast<Handshake_Type>(byte_value);
   40|       |
   41|  29.4k|   if constexpr(std::is_same_v<Msg_Type, Handshake_Message_13>) {
   42|  29.4k|      switch(type) {
   43|  5.15k|         case Handshake_Type::ClientHello:
  ------------------
  |  Branch (43:10): [True: 5.15k, False: 24.2k]
  ------------------
   44|  8.82k|         case Handshake_Type::ServerHello:
  ------------------
  |  Branch (44:10): [True: 3.66k, False: 25.7k]
  ------------------
   45|       |         // case Handshake_Type::EndOfEarlyData:  // NYI: needs PSK/resumption support -- won't be offered in Client Hello for now
   46|  15.4k|         case Handshake_Type::EncryptedExtensions:
  ------------------
  |  Branch (46:10): [True: 6.59k, False: 22.8k]
  ------------------
   47|  18.3k|         case Handshake_Type::Certificate:
  ------------------
  |  Branch (47:10): [True: 2.91k, False: 26.5k]
  ------------------
   48|  20.0k|         case Handshake_Type::CertificateRequest:
  ------------------
  |  Branch (48:10): [True: 1.70k, False: 27.7k]
  ------------------
   49|  21.9k|         case Handshake_Type::CertificateVerify:
  ------------------
  |  Branch (49:10): [True: 1.86k, False: 27.5k]
  ------------------
   50|  29.3k|         case Handshake_Type::Finished:
  ------------------
  |  Branch (50:10): [True: 7.46k, False: 21.9k]
  ------------------
   51|  29.3k|            return type;
   52|     43|         default:
  ------------------
  |  Branch (52:10): [True: 43, False: 29.3k]
  ------------------
   53|     43|            throw TLS_Exception(AlertType::UnexpectedMessage, "Unknown handshake message received");
   54|  29.4k|      }
   55|       |   } else {
   56|       |      switch(type) {
   57|       |         case Handshake_Type::NewSessionTicket:
   58|       |         case Handshake_Type::KeyUpdate:
   59|       |            // case Handshake_Type::CertificateRequest:  // NYI: post-handshake client auth (RFC 8446 4.6.2) -- won't be offered in Client Hello for now
   60|       |            return type;
   61|       |         default:
   62|       |            throw TLS_Exception(AlertType::UnexpectedMessage, "Unknown post-handshake message received");
   63|       |      }
   64|       |   }
   65|  29.4k|}
tls_handshake_layer_13.cpp:_ZN5Botan3TLS12_GLOBAL__N_129verify_handshake_message_sizeEmm:
   67|  29.3k|void verify_handshake_message_size(size_t msg_len, size_t max_size) {
   68|  29.3k|   if(max_size > 0 && msg_len > max_size) {
  ------------------
  |  Branch (68:7): [True: 29.3k, False: 0]
  |  Branch (68:23): [True: 47, False: 29.3k]
  ------------------
   69|     47|      throw TLS_Exception(Alert::HandshakeFailure,
   70|     47|                          Botan::fmt("Handshake message is {} bytes, policy maximum is {}", msg_len, max_size));
   71|     47|   }
   72|  29.3k|}
tls_handshake_layer_13.cpp:_ZN5Botan3TLS12_GLOBAL__N_113parse_messageINSt3__17variantIJNS0_21New_Session_Ticket_13ENS0_10Key_UpdateEEEEEENS3_8optionalIT_EERNS0_15TLS_Data_ReaderERKNS0_6PolicyENS0_15Connection_SideENS0_16Certificate_TypeE:
   78|  1.17k|                                      const Certificate_Type cert_type) {
   79|       |   // read the message header
   80|  1.17k|   if(reader.remaining_bytes() < HEADER_LENGTH) {
  ------------------
  |  Branch (80:7): [True: 3, False: 1.17k]
  ------------------
   81|      3|      return std::nullopt;
   82|      3|   }
   83|       |
   84|  1.17k|   const Handshake_Type type = handshake_type_from_byte<Msg_Type>(reader.get_byte());
   85|       |
   86|       |   // make sure we have received the full message
   87|  1.17k|   const size_t msg_len = reader.get_uint24_t();
   88|       |
   89|       |   // TODO(Botan4) this is split out due to a GCC 11 ICE, can be inlined
   90|  1.17k|   verify_handshake_message_size(msg_len, policy.maximum_handshake_message_size());
   91|       |
   92|  1.17k|   if(reader.remaining_bytes() < msg_len) {
  ------------------
  |  Branch (92:7): [True: 0, False: 1.17k]
  ------------------
   93|      0|      return std::nullopt;
   94|      0|   }
   95|       |
   96|       |   // create the message
   97|  1.17k|   const auto msg = reader.get_fixed<uint8_t>(msg_len);
   98|       |   if constexpr(std::is_same_v<Msg_Type, Handshake_Message_13>) {
   99|       |      switch(type) {
  100|       |         // Client Hello and Server Hello messages are ambiguous. Both may come
  101|       |         // from non-TLS 1.3 peers. Hence, their parsing is somewhat different.
  102|       |         case Handshake_Type::ClientHello:
  103|       |            // ... might be TLS 1.2 Client Hello or TLS 1.3 Client Hello
  104|       |            return generalize_to<Handshake_Message_13>(Client_Hello_13::parse(msg));
  105|       |         case Handshake_Type::ServerHello:
  106|       |            // ... might be TLS 1.2 Server Hello or TLS 1.3 Server Hello or
  107|       |            // a TLS 1.3 Hello Retry Request disguising as a Server Hello
  108|       |            return generalize_to<Handshake_Message_13>(Server_Hello_13::parse(msg));
  109|       |         // case Handshake_Type::EndOfEarlyData:
  110|       |         //    return End_Of_Early_Data(msg);
  111|       |         case Handshake_Type::EncryptedExtensions:
  112|       |            return Encrypted_Extensions(msg);
  113|       |         case Handshake_Type::Certificate:
  114|       |            return Certificate_13(msg, policy, peer_side, cert_type);
  115|       |         case Handshake_Type::CertificateRequest:
  116|       |            return Certificate_Request_13(msg, peer_side);
  117|       |         case Handshake_Type::CertificateVerify:
  118|       |            return Certificate_Verify_13(msg, peer_side);
  119|       |         case Handshake_Type::Finished:
  120|       |            return Finished_13(msg);
  121|       |         default:
  122|       |            BOTAN_ASSERT(false, "cannot be reached");  // make sure to update handshake_type_from_byte
  123|       |      }
  124|  1.17k|   } else {
  125|  1.17k|      BOTAN_UNUSED(peer_side);
  ------------------
  |  |  144|  1.17k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
  126|       |
  127|  1.17k|      switch(type) {
  128|      0|         case Handshake_Type::NewSessionTicket:
  ------------------
  |  Branch (128:10): [True: 0, False: 1.17k]
  ------------------
  129|      0|            return New_Session_Ticket_13(msg, peer_side);
  130|      0|         case Handshake_Type::KeyUpdate:
  ------------------
  |  Branch (130:10): [True: 0, False: 1.17k]
  ------------------
  131|      0|            return Key_Update(msg);
  132|      0|         default:
  ------------------
  |  Branch (132:10): [True: 0, False: 1.17k]
  ------------------
  133|      0|            BOTAN_ASSERT(false, "cannot be reached");  // make sure to update handshake_type_from_byte
  ------------------
  |  |   64|      0|   do {                                                                                 \
  |  |   65|      0|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|      0|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, Folded]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|      0|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
  134|  1.17k|      }
  135|  1.17k|   }
  136|  1.17k|}
tls_handshake_layer_13.cpp:_ZN5Botan3TLS12_GLOBAL__N_124handshake_type_from_byteINSt3__17variantIJNS0_21New_Session_Ticket_13ENS0_10Key_UpdateEEEEEENS0_14Handshake_TypeEh:
   38|  1.17k|Handshake_Type handshake_type_from_byte(uint8_t byte_value) {
   39|  1.17k|   const auto type = static_cast<Handshake_Type>(byte_value);
   40|       |
   41|       |   if constexpr(std::is_same_v<Msg_Type, Handshake_Message_13>) {
   42|       |      switch(type) {
   43|       |         case Handshake_Type::ClientHello:
   44|       |         case Handshake_Type::ServerHello:
   45|       |         // case Handshake_Type::EndOfEarlyData:  // NYI: needs PSK/resumption support -- won't be offered in Client Hello for now
   46|       |         case Handshake_Type::EncryptedExtensions:
   47|       |         case Handshake_Type::Certificate:
   48|       |         case Handshake_Type::CertificateRequest:
   49|       |         case Handshake_Type::CertificateVerify:
   50|       |         case Handshake_Type::Finished:
   51|       |            return type;
   52|       |         default:
   53|       |            throw TLS_Exception(AlertType::UnexpectedMessage, "Unknown handshake message received");
   54|       |      }
   55|  1.17k|   } else {
   56|  1.17k|      switch(type) {
   57|      0|         case Handshake_Type::NewSessionTicket:
  ------------------
  |  Branch (57:10): [True: 0, False: 1.17k]
  ------------------
   58|      0|         case Handshake_Type::KeyUpdate:
  ------------------
  |  Branch (58:10): [True: 0, False: 1.17k]
  ------------------
   59|       |            // case Handshake_Type::CertificateRequest:  // NYI: post-handshake client auth (RFC 8446 4.6.2) -- won't be offered in Client Hello for now
   60|      0|            return type;
   61|  1.17k|         default:
  ------------------
  |  Branch (61:10): [True: 1.17k, False: 0]
  ------------------
   62|  1.17k|            throw TLS_Exception(AlertType::UnexpectedMessage, "Unknown post-handshake message received");
   63|  1.17k|      }
   64|  1.17k|   }
   65|  1.17k|}

_ZN5Botan3TLS21Transcript_Hash_StateC2ENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEE:
   20|  6.08k|Transcript_Hash_State::Transcript_Hash_State(std::string_view algo_spec) {
   21|  6.08k|   set_algorithm(algo_spec);
   22|  6.08k|}
_ZN5Botan3TLS21Transcript_Hash_StateD2Ev:
   26|  6.08k|Transcript_Hash_State::~Transcript_Hash_State() = default;
_ZN5Botan3TLS21Transcript_Hash_State6updateENSt3__14spanIKhLm18446744073709551615EEE:
  155|  24.4k|void Transcript_Hash_State::update(std::span<const uint8_t> serialized_message_s) {
  156|  24.4k|   const auto* serialized_message = serialized_message_s.data();
  157|  24.4k|   auto serialized_message_length = serialized_message_s.size();
  158|  24.4k|   if(m_hash != nullptr) {
  ------------------
  |  Branch (158:7): [True: 24.4k, False: 0]
  ------------------
  159|  24.4k|      auto truncation_mark = serialized_message_length;
  160|       |
  161|       |      // Check whether we should generate a truncated hash for supporting PSK
  162|       |      // binder calculation or verification. See RFC 8446 4.2.11.2.
  163|  24.4k|      if(serialized_message_length > 0 && *serialized_message == static_cast<uint8_t>(Handshake_Type::ClientHello)) {
  ------------------
  |  Branch (163:10): [True: 24.4k, False: 0]
  |  Branch (163:43): [True: 4.50k, False: 19.9k]
  ------------------
  164|  4.50k|         truncation_mark = find_client_hello_truncation_mark(serialized_message_s);
  165|  4.50k|      }
  166|       |
  167|  24.4k|      if(truncation_mark < serialized_message_length) {
  ------------------
  |  Branch (167:10): [True: 695, False: 23.7k]
  ------------------
  168|    695|         m_hash->update(serialized_message, truncation_mark);
  169|    695|         m_truncated = read_hash_state(m_hash);
  170|    695|         m_hash->update(serialized_message + truncation_mark, serialized_message_length - truncation_mark);
  171|  23.7k|      } else {
  172|  23.7k|         m_truncated.clear();
  173|  23.7k|         m_hash->update(serialized_message, serialized_message_length);
  174|  23.7k|      }
  175|       |
  176|  24.4k|      m_previous = std::exchange(m_current, read_hash_state(m_hash));
  177|  24.4k|   } else {
  178|      0|      m_unprocessed_transcript.push_back(
  179|      0|         std::vector(serialized_message, serialized_message + serialized_message_length));
  180|      0|   }
  181|  24.4k|}
_ZN5Botan3TLS21Transcript_Hash_State13set_algorithmENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEE:
  198|  6.08k|void Transcript_Hash_State::set_algorithm(std::string_view algo_spec) {
  199|  6.08k|   BOTAN_STATE_CHECK(m_hash == nullptr || m_hash->name() == algo_spec);
  ------------------
  |  |   51|  6.08k|   do {                                                         \
  |  |   52|  6.08k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|  6.08k|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 6.08k]
  |  |  |  Branch (53:12): [True: 6.08k, False: 0]
  |  |  |  Branch (53:12): [True: 0, False: 0]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|  6.08k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 6.08k]
  |  |  ------------------
  ------------------
  200|  6.08k|   if(m_hash != nullptr) {
  ------------------
  |  Branch (200:7): [True: 0, False: 6.08k]
  ------------------
  201|      0|      return;
  202|      0|   }
  203|       |
  204|  6.08k|   m_hash = HashFunction::create_or_throw(algo_spec);
  205|  6.08k|   for(const auto& msg : m_unprocessed_transcript) {
  ------------------
  |  Branch (205:24): [True: 0, False: 6.08k]
  ------------------
  206|      0|      update(msg);
  207|      0|   }
  208|  6.08k|   m_unprocessed_transcript.clear();
  209|  6.08k|}
tls_transcript_hash_13.cpp:_ZN5Botan3TLS12_GLOBAL__N_133find_client_hello_truncation_markENSt3__14spanIKhLm18446744073709551615EEE:
   84|  4.50k|size_t find_client_hello_truncation_mark(std::span<const uint8_t> client_hello) {
   85|  4.50k|   TLS_Data_Reader reader("Client Hello Truncation", client_hello);
   86|       |
   87|       |   // handshake message type
   88|  4.50k|   BOTAN_ASSERT_NOMSG(reader.get_byte() == static_cast<uint8_t>(Handshake_Type::ClientHello));
  ------------------
  |  |   77|  4.50k|   do {                                                                     \
  |  |   78|  4.50k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  4.50k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 4.50k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  4.50k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 4.50k]
  |  |  ------------------
  ------------------
   89|       |
   90|       |   // message length
   91|  4.50k|   reader.discard_next(3);
   92|       |
   93|       |   // legacy version
   94|  4.50k|   reader.discard_next(2);
   95|       |
   96|       |   // random
   97|  4.50k|   reader.discard_next(32);
   98|       |
   99|       |   // session ID
  100|  4.50k|   const auto session_id_length = reader.get_byte();
  101|  4.50k|   reader.discard_next(session_id_length);
  102|       |
  103|       |   // TODO: DTLS contains a hello_cookie in this location
  104|       |   //       Currently we don't support DTLS 1.3
  105|       |
  106|       |   // cipher suites
  107|  4.50k|   const auto ciphersuites_length = reader.get_uint16_t();
  108|  4.50k|   reader.discard_next(ciphersuites_length);
  109|       |
  110|       |   // compression methods
  111|  4.50k|   const auto compression_methods_length = reader.get_byte();
  112|  4.50k|   reader.discard_next(compression_methods_length);
  113|       |
  114|       |   // extensions
  115|  4.50k|   const auto extensions_length = reader.get_uint16_t();
  116|  4.50k|   const auto extensions_offset = reader.read_so_far();
  117|  9.48k|   while(reader.has_remaining() && reader.read_so_far() - extensions_offset < extensions_length) {
  ------------------
  |  Branch (117:10): [True: 5.68k, False: 3.79k]
  |  Branch (117:36): [True: 5.62k, False: 54]
  ------------------
  118|  5.62k|      const auto ext_type = static_cast<Extension_Code>(reader.get_uint16_t());
  119|  5.62k|      const auto ext_length = reader.get_uint16_t();
  120|       |
  121|       |      // skip over all extensions, finding the PSK extension to be truncated
  122|  5.62k|      if(ext_type != Extension_Code::PresharedKey) {
  ------------------
  |  Branch (122:10): [True: 4.97k, False: 658]
  ------------------
  123|  4.97k|         reader.discard_next(ext_length);
  124|  4.97k|         continue;
  125|  4.97k|      }
  126|       |
  127|       |      // PSK identities list
  128|    658|      const auto identities_length = reader.get_uint16_t();
  129|    658|      reader.discard_next(identities_length);
  130|       |
  131|       |      // check that only the binders are left in the buffer...
  132|    658|      const auto binders_length = reader.peek_uint16_t();
  133|    658|      if(binders_length != reader.remaining_bytes() - 2 /* binders_length */) {
  ------------------
  |  Branch (133:10): [True: 11, False: 647]
  ------------------
  134|     11|         throw TLS_Exception(Alert::IllegalParameter,
  135|     11|                             "Failed to truncate Client Hello that doesn't end on the PSK binders list");
  136|     11|      }
  137|       |
  138|       |      // the reader now points to the truncation point
  139|    647|      break;
  140|    658|   }
  141|       |
  142|       |   // if no PSK extension was found, this will point to the end of the buffer
  143|  4.49k|   return reader.read_so_far();
  144|  4.50k|}
tls_transcript_hash_13.cpp:_ZN5Botan3TLS12_GLOBAL__N_115read_hash_stateERNSt3__110unique_ptrINS_12HashFunctionENS2_14default_deleteIS4_EEEE:
  146|  25.1k|std::vector<uint8_t> read_hash_state(std::unique_ptr<HashFunction>& hash) {
  147|       |   // Botan does not support finalizing a HashFunction without resetting
  148|       |   // the internal state of the hash. Hence we first copy the internal
  149|       |   // state and then finalize the transient HashFunction.
  150|  25.1k|   return hash->copy_state()->final_stdvec();
  151|  25.1k|}

_ZN5Botan3TLS10ExtensionsD2Ev:
  138|  27.1k|Extensions::~Extensions() = default;
_ZNK5Botan3TLS10Extensions3hasENS0_14Extension_CodeE:
  140|  53.1k|bool Extensions::has(Extension_Code type) const {
  141|  53.1k|   return m_extensions.contains(type);
  142|  53.1k|}
_ZNK5Botan3TLS10Extensions3getENS0_14Extension_CodeE:
  144|  27.5k|Extension* Extensions::get(Extension_Code type) const {
  145|  27.5k|   const auto i = m_extensions.find(type);
  146|       |
  147|  27.5k|   if(i == m_extensions.end()) {
  ------------------
  |  Branch (147:7): [True: 11.2k, False: 16.3k]
  ------------------
  148|  11.2k|      return nullptr;
  149|  16.3k|   } else {
  150|  16.3k|      return i->second.get();
  151|  16.3k|   }
  152|  27.5k|}
_ZN5Botan3TLS10Extensions3addENSt3__110unique_ptrINS0_9ExtensionENS2_14default_deleteIS4_EEEE:
  154|  26.0k|void Extensions::add(std::unique_ptr<Extension> extn) {
  155|  26.0k|   const auto type = extn->type();
  156|  26.0k|   if(has(type)) {
  ------------------
  |  Branch (156:7): [True: 0, False: 26.0k]
  ------------------
  157|      0|      throw Invalid_Argument("cannot add the same extension twice: " + std::to_string(static_cast<uint16_t>(type)));
  158|      0|   }
  159|       |
  160|  26.0k|   m_extension_codes.push_back(type);
  161|  26.0k|   m_extensions.emplace(type, std::move(extn));
  162|  26.0k|}
_ZN5Botan3TLS10Extensions11deserializeERNS0_15TLS_Data_ReaderENS0_15Connection_SideENS0_14Handshake_TypeE:
  164|  16.8k|void Extensions::deserialize(TLS_Data_Reader& reader, const Connection_Side from, const Handshake_Type message_type) {
  165|  16.8k|   if(reader.has_remaining()) {
  ------------------
  |  Branch (165:7): [True: 14.1k, False: 2.69k]
  ------------------
  166|  14.1k|      const uint16_t all_extn_size = reader.get_uint16_t();
  167|       |
  168|  14.1k|      if(reader.remaining_bytes() != all_extn_size) {
  ------------------
  |  Branch (168:10): [True: 53, False: 14.1k]
  ------------------
  169|     53|         throw Decoding_Error("Bad extension size");
  170|     53|      }
  171|       |
  172|  41.3k|      while(reader.has_remaining()) {
  ------------------
  |  Branch (172:13): [True: 27.2k, False: 14.1k]
  ------------------
  173|  27.2k|         const uint16_t extension_code = reader.get_uint16_t();
  174|  27.2k|         const uint16_t extension_size = reader.get_uint16_t();
  175|       |
  176|  27.2k|         const auto type = static_cast<Extension_Code>(extension_code);
  177|       |
  178|  27.2k|         if(this->has(type)) {
  ------------------
  |  Branch (178:13): [True: 1, False: 27.2k]
  ------------------
  179|      1|            throw TLS_Exception(TLS::Alert::DecodeError, "Peer sent duplicated extensions");
  180|      1|         }
  181|       |
  182|       |         // TODO offer a function on reader that returns a byte range as a reference
  183|       |         // to avoid this copy of the extension data
  184|  27.2k|         const std::vector<uint8_t> extn_data = reader.get_fixed<uint8_t>(extension_size);
  185|  27.2k|         m_raw_extension_data[type] = extn_data;
  186|  27.2k|         TLS_Data_Reader extn_reader("Extension", extn_data);
  187|  27.2k|         this->add(make_extension(extn_reader, type, from, message_type));
  188|  27.2k|         extn_reader.assert_done();
  189|  27.2k|      }
  190|  14.1k|   }
  191|  16.8k|}
_ZNK5Botan3TLS10Extensions19contains_other_thanERKNSt3__13setINS0_14Extension_CodeENS2_4lessIS4_EENS2_9allocatorIS4_EEEEb:
  194|  7.76k|                                     const bool allow_unknown_extensions) const {
  195|  7.76k|   const auto found = extension_types();
  196|       |
  197|  7.76k|   std::vector<Extension_Code> diff;
  198|  7.76k|   std::set_difference(
  199|  7.76k|      found.cbegin(), found.end(), allowed_extensions.cbegin(), allowed_extensions.cend(), std::back_inserter(diff));
  200|       |
  201|  7.76k|   if(allow_unknown_extensions) {
  ------------------
  |  Branch (201:7): [True: 7.35k, False: 410]
  ------------------
  202|       |      // Go through the found unexpected extensions whether any of those
  203|       |      // is known to this TLS implementation.
  204|  7.35k|      const auto itr = std::find_if(diff.cbegin(), diff.cend(), [this](const auto ext_type) {
  205|  7.35k|         const auto ext = get(ext_type);
  206|  7.35k|         return ext && ext->is_implemented();
  207|  7.35k|      });
  208|       |
  209|       |      // ... if yes, `contains_other_than` is true
  210|  7.35k|      return itr != diff.cend();
  211|  7.35k|   }
  212|       |
  213|    410|   return !diff.empty();
  214|  7.76k|}
_ZNK5Botan3TLS10Extensions15extension_typesEv:
  271|  7.76k|std::set<Extension_Code> Extensions::extension_types() const {
  272|  7.76k|   std::set<Extension_Code> offers;
  273|  17.8k|   for(const auto& [extn_type, extn] : m_extensions) {
  ------------------
  |  Branch (273:38): [True: 17.8k, False: 7.76k]
  ------------------
  274|       |      // Consistent with serialize(): empty extensions are not placed on
  275|       |      // the wire so they must not appear in the "offered" set either.
  276|  17.8k|      if(!extn->empty()) {
  ------------------
  |  Branch (276:10): [True: 17.7k, False: 24]
  ------------------
  277|  17.7k|         offers.insert(extn_type);
  278|  17.7k|      }
  279|  17.8k|   }
  280|  7.76k|   return offers;
  281|  7.76k|}
_ZN5Botan3TLS17Unknown_ExtensionC2ENS0_14Extension_CodeERNS0_15TLS_Data_ReaderEt:
  311|  11.6k|      m_type(type), m_value(reader.get_fixed<uint8_t>(extension_size)) {}
_ZN5Botan3TLS21Server_Name_IndicatorC2ERNS0_15TLS_Data_ReaderEtNS0_15Connection_SideE:
  317|    861|Server_Name_Indicator::Server_Name_Indicator(TLS_Data_Reader& reader, uint16_t extension_size, Connection_Side from) {
  318|       |   /*
  319|       |   RFC 6066 Section 3
  320|       |
  321|       |      A server that receives a client hello containing the "server_name"
  322|       |      extension MAY use the information contained in the extension to guide
  323|       |      its selection of an appropriate certificate to return to the client,
  324|       |      and/or other aspects of security policy.  In this event, the server
  325|       |      SHALL include an extension of type "server_name" in the (extended)
  326|       |      server hello.  The "extension_data" field of this extension SHALL be
  327|       |      empty.
  328|       |   */
  329|    861|   if(from == Connection_Side::Server) {
  ------------------
  |  Branch (329:7): [True: 624, False: 237]
  ------------------
  330|    624|      if(extension_size != 0) {
  ------------------
  |  Branch (330:10): [True: 8, False: 616]
  ------------------
  331|      8|         throw TLS_Exception(Alert::IllegalParameter, "Server sent non-empty SNI extension");
  332|      8|      }
  333|    624|   } else {
  334|       |      // Clients are required to send at least one name in the SNI
  335|    237|      if(extension_size == 0) {
  ------------------
  |  Branch (335:10): [True: 5, False: 232]
  ------------------
  336|      5|         throw TLS_Exception(Alert::IllegalParameter, "Client sent empty SNI extension");
  337|      5|      }
  338|       |
  339|    232|      const uint16_t name_bytes = reader.get_uint16_t();
  340|       |
  341|       |      // RFC 6066 3: a ServerName carrying a host_name (the only NameType
  342|       |      // currently defined and the only one this implementation acts on)
  343|       |      // requires at least 1 byte name_type + 2 byte length + 1 byte HostName.
  344|    232|      if(name_bytes + 2 != extension_size || name_bytes < 4) {
  ------------------
  |  Branch (344:10): [True: 24, False: 208]
  |  Branch (344:46): [True: 1, False: 207]
  ------------------
  345|     25|         throw Decoding_Error("Bad encoding of SNI extension");
  346|     25|      }
  347|       |
  348|    207|      BOTAN_ASSERT_NOMSG(reader.remaining_bytes() == name_bytes);
  ------------------
  |  |   77|    207|   do {                                                                     \
  |  |   78|    207|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|    207|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 207]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|    207|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 207]
  |  |  ------------------
  ------------------
  349|       |
  350|    759|      while(reader.has_remaining()) {
  ------------------
  |  Branch (350:13): [True: 565, False: 194]
  ------------------
  351|    565|         const uint8_t name_type = reader.get_byte();
  352|       |
  353|    565|         if(name_type == 0) {
  ------------------
  |  Branch (353:13): [True: 191, False: 374]
  ------------------
  354|       |            /*
  355|       |            RFC 6066 Section 3
  356|       |               The ServerNameList MUST NOT contain more than one name of the same name_type.
  357|       |            */
  358|    191|            if(!m_sni_host_name.empty()) {
  ------------------
  |  Branch (358:16): [True: 13, False: 178]
  ------------------
  359|     13|               throw Decoding_Error("TLS ServerNameIndicator contains more than one host_name");
  360|     13|            }
  361|    178|            m_sni_host_name = reader.get_string(2, 1, 65535);
  362|    374|         } else {
  363|       |            /*
  364|       |            Unknown name type - skip its length-prefixed value and continue
  365|       |
  366|       |            RFC 6066 Section 3
  367|       |               For backward compatibility, all future data structures associated
  368|       |               with new NameTypes MUST begin with a 16-bit length field.
  369|       |            */
  370|    374|            const uint16_t unknown_name_len = reader.get_uint16_t();
  371|    374|            reader.discard_next(unknown_name_len);
  372|    374|         }
  373|    565|      }
  374|    207|   }
  375|    861|}
_ZN5Botan3TLS39Application_Layer_Protocol_NotificationC2ERNS0_15TLS_Data_ReaderEtNS0_15Connection_SideE:
  443|    498|                                                                                 Connection_Side from) {
  444|    498|   if(extension_size < 2) {
  ------------------
  |  Branch (444:7): [True: 5, False: 493]
  ------------------
  445|      5|      throw Decoding_Error("ALPN extension cannot be empty");
  446|      5|   }
  447|       |
  448|    493|   const uint16_t name_bytes = reader.get_uint16_t();
  449|       |
  450|    493|   size_t bytes_remaining = extension_size - 2;
  451|       |
  452|    493|   if(name_bytes != bytes_remaining) {
  ------------------
  |  Branch (452:7): [True: 29, False: 464]
  ------------------
  453|     29|      throw Decoding_Error("Bad encoding of ALPN extension, bad length field");
  454|     29|   }
  455|       |
  456|       |   // RFC 7301 3.1: ProtocolName protocol_name_list<2..2^16-1>
  457|    464|   if(name_bytes == 0) {
  ------------------
  |  Branch (457:7): [True: 1, False: 463]
  ------------------
  458|      1|      throw Decoding_Error("Empty ALPN protocol_name_list not allowed");
  459|      1|   }
  460|       |
  461|  2.71k|   while(bytes_remaining > 0) {
  ------------------
  |  Branch (461:10): [True: 2.26k, False: 446]
  ------------------
  462|  2.26k|      const std::string p = reader.get_string(1, 0, 255);
  463|       |
  464|  2.26k|      if(bytes_remaining < p.size() + 1) {
  ------------------
  |  Branch (464:10): [True: 0, False: 2.26k]
  ------------------
  465|      0|         throw Decoding_Error("Bad encoding of ALPN, length field too long");
  466|      0|      }
  467|       |
  468|  2.26k|      if(p.empty()) {
  ------------------
  |  Branch (468:10): [True: 17, False: 2.24k]
  ------------------
  469|     17|         throw Decoding_Error("Empty ALPN protocol not allowed");
  470|     17|      }
  471|       |
  472|  2.24k|      bytes_remaining -= (p.size() + 1);
  473|       |
  474|  2.24k|      m_protocols.push_back(p);
  475|  2.24k|   }
  476|       |
  477|       |   // RFC 7301 3.1
  478|       |   //    The "extension_data" field of the [...] extension is structured the
  479|       |   //    same as described above for the client "extension_data", except that
  480|       |   //    the "ProtocolNameList" MUST contain exactly one "ProtocolName".
  481|    446|   if(from == Connection_Side::Server && m_protocols.size() != 1) {
  ------------------
  |  Branch (481:7): [True: 294, False: 152]
  |  Branch (481:42): [True: 21, False: 273]
  ------------------
  482|     21|      throw TLS_Exception(
  483|     21|         Alert::DecodeError,
  484|     21|         "Server sent " + std::to_string(m_protocols.size()) + " protocols in ALPN extension response");
  485|     21|   }
  486|    446|}
_ZN5Botan3TLS21Certificate_Type_BaseC2ERNS0_15TLS_Data_ReaderEtNS0_15Connection_SideE:
  549|  1.61k|      m_from(from) {
  550|  1.61k|   if(extension_size == 0) {
  ------------------
  |  Branch (550:7): [True: 5, False: 1.60k]
  ------------------
  551|      5|      throw Decoding_Error("Certificate type extension cannot be empty");
  552|      5|   }
  553|       |
  554|  1.60k|   if(from == Connection_Side::Client) {
  ------------------
  |  Branch (554:7): [True: 147, False: 1.45k]
  ------------------
  555|    147|      const auto type_bytes = reader.get_tls_length_value(1);
  556|    147|      if(static_cast<size_t>(extension_size) != type_bytes.size() + 1) {
  ------------------
  |  Branch (556:10): [True: 1, False: 146]
  ------------------
  557|      1|         throw Decoding_Error("certificate type extension had inconsistent length");
  558|      1|      }
  559|       |      // RFC 7250 4: {client,server}_certificate_types<1..2^8-1> so must be non-empty
  560|    146|      if(type_bytes.empty()) {
  ------------------
  |  Branch (560:10): [True: 1, False: 145]
  ------------------
  561|      1|         throw Decoding_Error("Certificate type extension contains no types");
  562|      1|      }
  563|    145|      std::transform(
  564|    145|         type_bytes.begin(), type_bytes.end(), std::back_inserter(m_certificate_types), [](const auto type_byte) {
  565|    145|            return static_cast<Certificate_Type>(type_byte);
  566|    145|         });
  567|  1.45k|   } else {
  568|       |      // RFC 7250 4.2
  569|       |      //    Note that only a single value is permitted in the
  570|       |      //    server_certificate_type extension when carried in the server hello.
  571|  1.45k|      if(extension_size != 1) {
  ------------------
  |  Branch (571:10): [True: 8, False: 1.45k]
  ------------------
  572|      8|         throw Decoding_Error("Server's certificate type extension must be of length 1");
  573|      8|      }
  574|  1.45k|      const auto type_byte = reader.get_byte();
  575|  1.45k|      m_certificate_types.push_back(static_cast<Certificate_Type>(type_byte));
  576|  1.45k|   }
  577|  1.60k|}
_ZNK5Botan3TLS16Supported_Groups6groupsEv:
  618|    168|const std::vector<Group_Params>& Supported_Groups::groups() const {
  619|    168|   return m_groups;
  620|    168|}
_ZN5Botan3TLS16Supported_GroupsC2ERNS0_15TLS_Data_ReaderEt:
  662|  1.97k|Supported_Groups::Supported_Groups(TLS_Data_Reader& reader, uint16_t extension_size) {
  663|  1.97k|   const uint16_t len = reader.get_uint16_t();
  664|       |
  665|  1.97k|   if(len + 2 != extension_size) {
  ------------------
  |  Branch (665:7): [True: 24, False: 1.95k]
  ------------------
  666|     24|      throw Decoding_Error("Inconsistent length field in supported groups list");
  667|     24|   }
  668|       |
  669|       |   // RFC 8446 4.2.7: NamedGroup named_group_list<2..2^16-1>;
  670|  1.95k|   if(len == 0) {
  ------------------
  |  Branch (670:7): [True: 2, False: 1.95k]
  ------------------
  671|      2|      throw Decoding_Error("Empty supported groups list");
  672|      2|   }
  673|       |
  674|  1.95k|   if(len % 2 == 1) {
  ------------------
  |  Branch (674:7): [True: 2, False: 1.94k]
  ------------------
  675|      2|      throw Decoding_Error("Supported groups list of strange size");
  676|      2|   }
  677|       |
  678|  1.94k|   const size_t elems = len / 2;
  679|       |
  680|  1.94k|   std::unordered_set<uint16_t> seen;
  681|  22.4k|   for(size_t i = 0; i != elems; ++i) {
  ------------------
  |  Branch (681:22): [True: 20.5k, False: 1.94k]
  ------------------
  682|  20.5k|      const auto group = static_cast<Group_Params>(reader.get_uint16_t());
  683|       |      // Note: RFC 8446 does not explicitly enforce that groups must be unique.
  684|  20.5k|      if(seen.insert(group.wire_code()).second) {
  ------------------
  |  Branch (684:10): [True: 17.2k, False: 3.27k]
  ------------------
  685|  17.2k|         m_groups.push_back(group);
  686|  17.2k|      }
  687|  20.5k|   }
  688|  1.94k|}
_ZN5Botan3TLS20Signature_AlgorithmsC2ERNS0_15TLS_Data_ReaderEt:
  734|  1.65k|      m_schemes(parse_signature_algorithms(reader, extension_size)) {}
_ZN5Botan3TLS25Signature_Algorithms_CertC2ERNS0_15TLS_Data_ReaderEt:
  741|    324|      m_schemes(parse_signature_algorithms(reader, extension_size)) {}
_ZN5Botan3TLS24SRTP_Protection_ProfilesC2ERNS0_15TLS_Data_ReaderEt:
  743|    319|SRTP_Protection_Profiles::SRTP_Protection_Profiles(TLS_Data_Reader& reader, uint16_t extension_size) {
  744|       |   // RFC 5764 4.1.1: UseSRTPData consists of
  745|       |   //    SRTPProtectionProfile SRTPProtectionProfiles<2..2^16-1>;
  746|       |   //    opaque srtp_mki<0..255>;
  747|       |   // for a wire size of 2 (profiles len) + 2*N + 1 (mki len) + mki_bytes,
  748|       |   // with N >= 1.
  749|    319|   if(extension_size < 5) {
  ------------------
  |  Branch (749:7): [True: 5, False: 314]
  ------------------
  750|      5|      throw Decoding_Error("Truncated SRTP protection extension");
  751|      5|   }
  752|    314|   const size_t max_profile_pairs = (static_cast<size_t>(extension_size) - 3) / 2;
  753|    314|   m_pp = reader.get_range<uint16_t>(2, 1, max_profile_pairs);
  754|    314|   const std::vector<uint8_t> mki = reader.get_range<uint8_t>(1, 0, 255);
  755|       |
  756|    314|   if(m_pp.size() * 2 + mki.size() + 3 != extension_size) {
  ------------------
  |  Branch (756:7): [True: 15, False: 299]
  ------------------
  757|     15|      throw Decoding_Error("Bad encoding for SRTP protection extension");
  758|     15|   }
  759|       |
  760|    299|   if(!mki.empty()) {
  ------------------
  |  Branch (760:7): [True: 4, False: 295]
  ------------------
  761|      4|      throw Decoding_Error("Unhandled non-empty MKI for SRTP protection extension");
  762|      4|   }
  763|    299|}
_ZN5Botan3TLS18Supported_VersionsC2ERNS0_15TLS_Data_ReaderEtNS0_15Connection_SideE:
  838|    998|Supported_Versions::Supported_Versions(TLS_Data_Reader& reader, uint16_t extension_size, Connection_Side from) {
  839|    998|   if(from == Connection_Side::Server) {
  ------------------
  |  Branch (839:7): [True: 466, False: 532]
  ------------------
  840|    466|      if(extension_size != 2) {
  ------------------
  |  Branch (840:10): [True: 4, False: 462]
  ------------------
  841|      4|         throw Decoding_Error("Server sent invalid supported_versions extension");
  842|      4|      }
  843|    462|      m_versions.push_back(Protocol_Version(reader.get_uint16_t()));
  844|    532|   } else {
  845|    532|      auto versions = reader.get_range<uint16_t>(1, 1, 127);
  846|       |
  847|  2.63k|      for(auto v : versions) {
  ------------------
  |  Branch (847:18): [True: 2.63k, False: 532]
  ------------------
  848|  2.63k|         m_versions.push_back(Protocol_Version(v));
  849|  2.63k|      }
  850|       |
  851|    532|      if(extension_size != 1 + 2 * versions.size()) {
  ------------------
  |  Branch (851:10): [True: 6, False: 526]
  ------------------
  852|      6|         throw Decoding_Error("Client sent invalid supported_versions extension");
  853|      6|      }
  854|    532|   }
  855|    998|}
_ZNK5Botan3TLS18Supported_Versions8supportsENS0_16Protocol_VersionE:
  857|    518|bool Supported_Versions::supports(Protocol_Version version) const {
  858|  1.65k|   for(auto v : m_versions) {
  ------------------
  |  Branch (858:15): [True: 1.65k, False: 217]
  ------------------
  859|  1.65k|      if(version == v) {
  ------------------
  |  Branch (859:10): [True: 301, False: 1.35k]
  ------------------
  860|    301|         return true;
  861|    301|      }
  862|  1.65k|   }
  863|    217|   return false;
  864|    518|}
_ZN5Botan3TLS17Record_Size_LimitC2ERNS0_15TLS_Data_ReaderEtNS0_15Connection_SideE:
  872|    668|Record_Size_Limit::Record_Size_Limit(TLS_Data_Reader& reader, uint16_t extension_size, Connection_Side from) {
  873|    668|   if(extension_size != 2) {
  ------------------
  |  Branch (873:7): [True: 3, False: 665]
  ------------------
  874|      3|      throw TLS_Exception(Alert::DecodeError, "invalid record_size_limit extension");
  875|      3|   }
  876|       |
  877|    665|   m_limit = reader.get_uint16_t();
  878|       |
  879|       |   // RFC 8449 4.
  880|       |   //    This value is the length of the plaintext of a protected record.
  881|       |   //    The value includes the content type and padding added in TLS 1.3 (that
  882|       |   //    is, the complete length of TLSInnerPlaintext).
  883|       |   //
  884|       |   //    A server MUST NOT enforce this restriction; a client might advertise
  885|       |   //    a higher limit that is enabled by an extension or version the server
  886|       |   //    does not understand. A client MAY abort the handshake with an
  887|       |   //    "illegal_parameter" alert.
  888|       |   //
  889|       |   // Note: We are currently supporting this extension in TLS 1.3 only, hence
  890|       |   //       we check for the TLS 1.3 limit. The TLS 1.2 limit would not include
  891|       |   //       the "content type byte" and hence be one byte less!
  892|    665|   if(m_limit > MAX_PLAINTEXT_SIZE + 1 /* encrypted content type byte */ && from == Connection_Side::Server) {
  ------------------
  |  Branch (892:7): [True: 75, False: 590]
  |  Branch (892:77): [True: 3, False: 72]
  ------------------
  893|      3|      throw TLS_Exception(Alert::IllegalParameter,
  894|      3|                          "Server requested a record size limit larger than the protocol's maximum");
  895|      3|   }
  896|       |
  897|       |   // RFC 8449 4.
  898|       |   //    Endpoints MUST NOT send a "record_size_limit" extension with a value
  899|       |   //    smaller than 64.  An endpoint MUST treat receipt of a smaller value
  900|       |   //    as a fatal error and generate an "illegal_parameter" alert.
  901|    662|   if(m_limit < 64) {
  ------------------
  |  Branch (901:7): [True: 7, False: 655]
  ------------------
  902|      7|      throw TLS_Exception(Alert::IllegalParameter, "Received a record size limit smaller than 64 bytes");
  903|      7|   }
  904|    662|}
tls_extensions.cpp:_ZN5Botan3TLS12_GLOBAL__N_114make_extensionERNS0_15TLS_Data_ReaderENS0_14Extension_CodeENS0_15Connection_SideENS0_14Handshake_TypeE:
   39|  27.1k|                                          const Handshake_Type message_type) {
   40|       |   // This cast is safe because we read exactly a 16 bit length field for
   41|       |   // the extension in Extensions::deserialize
   42|  27.1k|   const uint16_t size = static_cast<uint16_t>(reader.remaining_bytes());
   43|  27.1k|   switch(code) {
  ------------------
  |  Branch (43:11): [True: 15.5k, False: 11.5k]
  ------------------
   44|    861|      case Extension_Code::ServerNameIndication:
  ------------------
  |  Branch (44:7): [True: 861, False: 26.2k]
  ------------------
   45|    861|         return std::make_unique<Server_Name_Indicator>(reader, size, from);
   46|       |
   47|  1.97k|      case Extension_Code::SupportedGroups:
  ------------------
  |  Branch (47:7): [True: 1.97k, False: 25.1k]
  ------------------
   48|  1.97k|         return std::make_unique<Supported_Groups>(reader, size);
   49|       |
   50|  1.31k|      case Extension_Code::CertificateStatusRequest:
  ------------------
  |  Branch (50:7): [True: 1.31k, False: 25.7k]
  ------------------
   51|  1.31k|         return std::make_unique<Certificate_Status_Request>(reader, size, message_type, from);
   52|       |
   53|  1.65k|      case Extension_Code::SignatureAlgorithms:
  ------------------
  |  Branch (53:7): [True: 1.65k, False: 25.4k]
  ------------------
   54|  1.65k|         return std::make_unique<Signature_Algorithms>(reader, size);
   55|       |
   56|    324|      case Extension_Code::CertSignatureAlgorithms:
  ------------------
  |  Branch (56:7): [True: 324, False: 26.7k]
  ------------------
   57|    324|         return std::make_unique<Signature_Algorithms_Cert>(reader, size);
   58|       |
   59|    319|      case Extension_Code::UseSrtp:
  ------------------
  |  Branch (59:7): [True: 319, False: 26.7k]
  ------------------
   60|    319|         return std::make_unique<SRTP_Protection_Profiles>(reader, size);
   61|       |
   62|    498|      case Extension_Code::ApplicationLayerProtocolNegotiation:
  ------------------
  |  Branch (62:7): [True: 498, False: 26.6k]
  ------------------
   63|    498|         return std::make_unique<Application_Layer_Protocol_Notification>(reader, size, from);
   64|       |
   65|    662|      case Extension_Code::ClientCertificateType:
  ------------------
  |  Branch (65:7): [True: 662, False: 26.4k]
  ------------------
   66|    662|         return std::make_unique<Client_Certificate_Type>(reader, size, from);
   67|       |
   68|    948|      case Extension_Code::ServerCertificateType:
  ------------------
  |  Branch (68:7): [True: 948, False: 26.1k]
  ------------------
   69|    948|         return std::make_unique<Server_Certificate_Type>(reader, size, from);
   70|       |
   71|    668|      case Extension_Code::RecordSizeLimit:
  ------------------
  |  Branch (71:7): [True: 668, False: 26.4k]
  ------------------
   72|    668|         return std::make_unique<Record_Size_Limit>(reader, size, from);
   73|       |
   74|    998|      case Extension_Code::SupportedVersions:
  ------------------
  |  Branch (74:7): [True: 998, False: 26.1k]
  ------------------
   75|    998|         return std::make_unique<Supported_Versions>(reader, size, from);
   76|       |
   77|    120|      case Extension_Code::Padding:
  ------------------
  |  Branch (77:7): [True: 120, False: 26.9k]
  ------------------
   78|    120|         break;  // RFC 7685, recognized but not implemented; falls through to Unknown_Extension
   79|       |
   80|      0|#if defined(BOTAN_HAS_TLS_12)
   81|    287|      case Extension_Code::EcPointFormats:
  ------------------
  |  Branch (81:7): [True: 287, False: 26.8k]
  ------------------
   82|    287|         return std::make_unique<Supported_Point_Formats>(reader, size);
   83|       |
   84|    330|      case Extension_Code::SafeRenegotiation:
  ------------------
  |  Branch (84:7): [True: 330, False: 26.7k]
  ------------------
   85|    330|         return std::make_unique<Renegotiation_Extension>(reader, size);
   86|       |
   87|     83|      case Extension_Code::ExtendedMasterSecret:
  ------------------
  |  Branch (87:7): [True: 83, False: 27.0k]
  ------------------
   88|     83|         return std::make_unique<Extended_Master_Secret>(reader, size);
   89|       |
   90|    298|      case Extension_Code::EncryptThenMac:
  ------------------
  |  Branch (90:7): [True: 298, False: 26.8k]
  ------------------
   91|    298|         return std::make_unique<Encrypt_then_MAC>(reader, size);
   92|       |
   93|    206|      case Extension_Code::SessionTicket:
  ------------------
  |  Branch (93:7): [True: 206, False: 26.9k]
  ------------------
   94|    206|         return std::make_unique<Session_Ticket_Extension>(reader, size, from);
   95|       |#else
   96|       |      case Extension_Code::EcPointFormats:
   97|       |      case Extension_Code::SafeRenegotiation:
   98|       |      case Extension_Code::ExtendedMasterSecret:
   99|       |      case Extension_Code::EncryptThenMac:
  100|       |      case Extension_Code::SessionTicket:
  101|       |         break;  // considered as 'unknown extension'
  102|       |#endif
  103|       |
  104|      0|#if defined(BOTAN_HAS_TLS_13)
  105|  1.06k|      case Extension_Code::PresharedKey:
  ------------------
  |  Branch (105:7): [True: 1.06k, False: 26.0k]
  ------------------
  106|  1.06k|         return std::make_unique<PSK>(reader, size, message_type);
  107|       |
  108|    302|      case Extension_Code::EarlyData:
  ------------------
  |  Branch (108:7): [True: 302, False: 26.8k]
  ------------------
  109|    302|         return std::make_unique<EarlyDataIndication>(reader, size, message_type);
  110|       |
  111|    107|      case Extension_Code::Cookie:
  ------------------
  |  Branch (111:7): [True: 107, False: 27.0k]
  ------------------
  112|    107|         return std::make_unique<Cookie>(reader, size);
  113|       |
  114|    397|      case Extension_Code::PskKeyExchangeModes:
  ------------------
  |  Branch (114:7): [True: 397, False: 26.7k]
  ------------------
  115|    397|         return std::make_unique<PSK_Key_Exchange_Modes>(reader, size);
  116|       |
  117|    877|      case Extension_Code::CertificateAuthorities:
  ------------------
  |  Branch (117:7): [True: 877, False: 26.2k]
  ------------------
  118|    877|         return std::make_unique<Certificate_Authorities>(reader, size);
  119|       |
  120|  1.28k|      case Extension_Code::KeyShare:
  ------------------
  |  Branch (120:7): [True: 1.28k, False: 25.8k]
  ------------------
  121|  1.28k|         return std::make_unique<Key_Share>(reader, size, message_type);
  122|       |#else
  123|       |      case Extension_Code::PresharedKey:
  124|       |      case Extension_Code::EarlyData:
  125|       |      case Extension_Code::Cookie:
  126|       |      case Extension_Code::PskKeyExchangeModes:
  127|       |      case Extension_Code::CertificateAuthorities:
  128|       |      case Extension_Code::KeyShare:
  129|       |         break;  // considered as 'unknown extension'
  130|       |#endif
  131|  27.1k|   }
  132|       |
  133|  11.6k|   return std::make_unique<Unknown_Extension>(code, reader, size);
  134|  27.1k|}
tls_extensions.cpp:_ZZNK5Botan3TLS10Extensions19contains_other_thanERKNSt3__13setINS0_14Extension_CodeENS2_4lessIS4_EENS2_9allocatorIS4_EEEEbENK3$_0clIS4_EEDaT_:
  204|  10.0k|      const auto itr = std::find_if(diff.cbegin(), diff.cend(), [this](const auto ext_type) {
  205|  10.0k|         const auto ext = get(ext_type);
  206|  10.0k|         return ext && ext->is_implemented();
  ------------------
  |  Branch (206:17): [True: 10.0k, False: 0]
  |  Branch (206:24): [True: 122, False: 9.93k]
  ------------------
  207|  10.0k|      });
tls_extensions.cpp:_ZZN5Botan3TLS21Certificate_Type_BaseC1ERNS0_15TLS_Data_ReaderEtNS0_15Connection_SideEENK3$_0clIhEEDaT_:
  564|  1.39k|         type_bytes.begin(), type_bytes.end(), std::back_inserter(m_certificate_types), [](const auto type_byte) {
  565|  1.39k|            return static_cast<Certificate_Type>(type_byte);
  566|  1.39k|         });
tls_extensions.cpp:_ZN5Botan3TLS12_GLOBAL__N_126parse_signature_algorithmsERNS0_15TLS_Data_ReaderEt:
  710|  1.98k|std::vector<Signature_Scheme> parse_signature_algorithms(TLS_Data_Reader& reader, uint16_t extension_size) {
  711|  1.98k|   uint16_t len = reader.get_uint16_t();
  712|       |
  713|  1.98k|   if(len + 2 != extension_size || len % 2 == 1 || len == 0) {
  ------------------
  |  Branch (713:7): [True: 29, False: 1.95k]
  |  Branch (713:36): [True: 1, False: 1.95k]
  |  Branch (713:52): [True: 2, False: 1.94k]
  ------------------
  714|     23|      throw Decoding_Error("Bad encoding on signature algorithms extension");
  715|     23|   }
  716|       |
  717|  1.95k|   std::vector<Signature_Scheme> schemes;
  718|  1.95k|   schemes.reserve(len / 2);
  719|  6.83k|   while(len > 0) {
  ------------------
  |  Branch (719:10): [True: 4.87k, False: 1.95k]
  ------------------
  720|  4.87k|      schemes.emplace_back(reader.get_uint16_t());
  721|  4.87k|      len -= 2;
  722|  4.87k|   }
  723|       |
  724|  1.95k|   return schemes;
  725|  1.98k|}

_ZN5Botan3TLS26Certificate_Status_RequestC2ERNS0_15TLS_Data_ReaderEtNS0_14Handshake_TypeENS0_15Connection_SideE:
  104|  1.31k|                                                       Connection_Side from) {
  105|       |   // This parser needs to take TLS 1.2 and TLS 1.3 into account. The
  106|       |   // extension's content and structure is dependent on the context it
  107|       |   // was sent in (i.e. the enclosing handshake message). Below is a list
  108|       |   // of handshake messages this can appear in.
  109|       |   //
  110|       |   // TLS 1.2
  111|       |   //  * Client Hello
  112|       |   //  * Server Hello
  113|       |   //
  114|       |   // TLS 1.3
  115|       |   //  * Client Hello
  116|       |   //  * Certificate Request
  117|       |   //  * Certificate (Entry)
  118|       |
  119|       |   // RFC 6066 8.
  120|       |   //    In order to indicate their desire to receive certificate status
  121|       |   //    information, clients MAY include an extension of type "status_request"
  122|       |   //    in the (extended) client hello.
  123|  1.31k|   if(message_type == Handshake_Type::ClientHello) {
  ------------------
  |  Branch (123:7): [True: 711, False: 608]
  ------------------
  124|    711|      m_impl = std::make_unique<Certificate_Status_Request_Internal>(
  125|    711|         RFC6066_Certificate_Status_Request(reader, extension_size));
  126|    711|   }
  127|       |
  128|       |   // RFC 6066 8.
  129|       |   //    If a server returns a "CertificateStatus" message, then the server MUST
  130|       |   //    have included an extension of type "status_request" with empty
  131|       |   //    "extension_data" in the extended server hello.
  132|       |   //
  133|       |   // RFC 8446 4.4.2.1
  134|       |   //    A server MAY request that a client present an OCSP response with its
  135|       |   //    certificate by sending an empty "status_request" extension in its
  136|       |   //    CertificateRequest message.
  137|    608|   else if(message_type == Handshake_Type::ServerHello || message_type == Handshake_Type::CertificateRequest) {
  ------------------
  |  Branch (137:12): [True: 194, False: 414]
  |  Branch (137:59): [True: 410, False: 4]
  ------------------
  138|    604|      m_impl = std::make_unique<Certificate_Status_Request_Internal>(
  139|    604|         RFC6066_Empty_Certificate_Status_Request(extension_size));
  140|    604|   }
  141|       |
  142|       |   // RFC 8446 4.4.2.1
  143|       |   //    In TLS 1.3, the server's OCSP information is carried in an extension
  144|       |   //    in the CertificateEntry [in a Certificate handshake message] [...].
  145|       |   //    Specifically, the body of the "status_request" extension from the
  146|       |   //    server MUST be a CertificateStatus structure as defined in [RFC6066]
  147|       |   //    [...].
  148|       |   //
  149|       |   // RFC 8446 4.4.2.1
  150|       |   //    If the client opts to send an OCSP response, the body of its
  151|       |   //    "status_request" extension MUST be a CertificateStatus structure as
  152|       |   //    defined in [RFC6066].
  153|      4|   else if(message_type == Handshake_Type::Certificate) {
  ------------------
  |  Branch (153:12): [True: 0, False: 4]
  ------------------
  154|      0|      m_impl = std::make_unique<Certificate_Status_Request_Internal>(
  155|      0|         Certificate_Status(reader.get_fixed<uint8_t>(extension_size), from));
  156|      0|   }
  157|       |
  158|       |   // all other contexts are not allowed for this extension
  159|      4|   else {
  160|      4|      throw TLS_Exception(Alert::UnsupportedExtension,
  161|      4|                          "Server sent a Certificate_Status_Request extension in an unsupported context");
  162|      4|   }
  163|  1.31k|}
_ZN5Botan3TLS26Certificate_Status_RequestD2Ev:
  176|  1.25k|Certificate_Status_Request::~Certificate_Status_Request() = default;
tls_extensions_cert_status_req.cpp:_ZN5Botan3TLS12_GLOBAL__N_134RFC6066_Certificate_Status_RequestC2ERNS0_15TLS_Data_ReaderEt:
   38|    711|      RFC6066_Certificate_Status_Request(TLS_Data_Reader& reader, uint16_t extension_size) {
   39|    711|         if(extension_size == 0) {
  ------------------
  |  Branch (39:13): [True: 1, False: 710]
  ------------------
   40|      1|            throw Decoding_Error("Received an unexpectedly empty Certificate_Status_Request");
   41|      1|         }
   42|       |
   43|    710|         const uint8_t type = reader.get_byte();
   44|    710|         if(type == 1 /* ocsp */) {
  ------------------
  |  Branch (44:13): [True: 214, False: 496]
  ------------------
   45|       |            // RFC 6066 Section 8: OCSP CertificateStatusRequest is
   46|       |            //    ResponderID responder_id_list<0..2^16-1>;
   47|       |            //    Extensions  request_extensions;
   48|       |            //
   49|       |            // for a total wire size of 1 (status_type) + 2 (resp_id_list len)
   50|       |            //   + len_resp_id_list + 2 (request_ext len) + len_requ_ext.
   51|    214|            if(extension_size < 5) {
  ------------------
  |  Branch (51:16): [True: 2, False: 212]
  ------------------
   52|      2|               throw Decoding_Error("Truncated OCSP CertificateStatusRequest");
   53|      2|            }
   54|    212|            const size_t len_resp_id_list = reader.get_uint16_t();
   55|    212|            if(len_resp_id_list > static_cast<size_t>(extension_size) - 5) {
  ------------------
  |  Branch (55:16): [True: 13, False: 199]
  ------------------
   56|     13|               throw Decoding_Error("Inconsistent length in OCSP CertificateStatusRequest");
   57|     13|            }
   58|    199|            ocsp_names = reader.get_fixed<uint8_t>(len_resp_id_list);
   59|    199|            const size_t len_requ_ext = reader.get_uint16_t();
   60|    199|            if(len_resp_id_list + len_requ_ext + 5 != extension_size) {
  ------------------
  |  Branch (60:16): [True: 40, False: 159]
  ------------------
   61|     40|               throw Decoding_Error("Inconsistent length in OCSP CertificateStatusRequest");
   62|     40|            }
   63|    159|            extension_bytes = reader.get_fixed<uint8_t>(len_requ_ext);
   64|    496|         } else {
   65|       |            // RFC 6066 does not specify anything but 'ocsp' and we
   66|       |            // don't support anything else either.
   67|    496|            reader.discard_next(extension_size - 1);
   68|    496|         }
   69|    710|      }
tls_extensions_cert_status_req.cpp:_ZN5Botan3TLS12_GLOBAL__N_140RFC6066_Empty_Certificate_Status_RequestC2Et:
   24|    604|      explicit RFC6066_Empty_Certificate_Status_Request(uint16_t extension_size) {
   25|    604|         if(extension_size != 0) {
  ------------------
  |  Branch (25:13): [True: 7, False: 597]
  ------------------
   26|      7|            throw Decoding_Error("Received an unexpectedly non-empty Certificate_Status_Request");
   27|      7|         }
   28|    604|      }
tls_extensions_cert_status_req.cpp:_ZN5Botan3TLS35Certificate_Status_Request_InternalC2ENSt3__17variantIJNS0_12_GLOBAL__N_140RFC6066_Empty_Certificate_Status_RequestENS4_34RFC6066_Certificate_Status_RequestENS0_18Certificate_StatusEEEE:
   96|  1.25k|      explicit Certificate_Status_Request_Internal(Contents c) : content(std::move(c)) {}

_ZN5Botan3TLS24handshake_type_to_stringENS0_14Handshake_TypeE:
   15|      3|const char* handshake_type_to_string(Handshake_Type type) {
   16|      3|   switch(type) {
  ------------------
  |  Branch (16:11): [True: 3, False: 0]
  ------------------
   17|      0|      case Handshake_Type::HelloVerifyRequest:
  ------------------
  |  Branch (17:7): [True: 0, False: 3]
  ------------------
   18|      0|         return "hello_verify_request";
   19|       |
   20|      0|      case Handshake_Type::HelloRequest:
  ------------------
  |  Branch (20:7): [True: 0, False: 3]
  ------------------
   21|      0|         return "hello_request";
   22|       |
   23|      0|      case Handshake_Type::ClientHello:
  ------------------
  |  Branch (23:7): [True: 0, False: 3]
  ------------------
   24|      0|         return "client_hello";
   25|       |
   26|      0|      case Handshake_Type::ServerHello:
  ------------------
  |  Branch (26:7): [True: 0, False: 3]
  ------------------
   27|      0|         return "server_hello";
   28|       |
   29|      0|      case Handshake_Type::HelloRetryRequest:
  ------------------
  |  Branch (29:7): [True: 0, False: 3]
  ------------------
   30|      0|         return "hello_retry_request";
   31|       |
   32|      0|      case Handshake_Type::Certificate:
  ------------------
  |  Branch (32:7): [True: 0, False: 3]
  ------------------
   33|      0|         return "certificate";
   34|       |
   35|      0|      case Handshake_Type::CertificateUrl:
  ------------------
  |  Branch (35:7): [True: 0, False: 3]
  ------------------
   36|      0|         return "certificate_url";
   37|       |
   38|      0|      case Handshake_Type::CertificateStatus:
  ------------------
  |  Branch (38:7): [True: 0, False: 3]
  ------------------
   39|      0|         return "certificate_status";
   40|       |
   41|      0|      case Handshake_Type::ServerKeyExchange:
  ------------------
  |  Branch (41:7): [True: 0, False: 3]
  ------------------
   42|      0|         return "server_key_exchange";
   43|       |
   44|      1|      case Handshake_Type::CertificateRequest:
  ------------------
  |  Branch (44:7): [True: 1, False: 2]
  ------------------
   45|      1|         return "certificate_request";
   46|       |
   47|      0|      case Handshake_Type::ServerHelloDone:
  ------------------
  |  Branch (47:7): [True: 0, False: 3]
  ------------------
   48|      0|         return "server_hello_done";
   49|       |
   50|      0|      case Handshake_Type::CertificateVerify:
  ------------------
  |  Branch (50:7): [True: 0, False: 3]
  ------------------
   51|      0|         return "certificate_verify";
   52|       |
   53|      0|      case Handshake_Type::ClientKeyExchange:
  ------------------
  |  Branch (53:7): [True: 0, False: 3]
  ------------------
   54|      0|         return "client_key_exchange";
   55|       |
   56|      0|      case Handshake_Type::NewSessionTicket:
  ------------------
  |  Branch (56:7): [True: 0, False: 3]
  ------------------
   57|      0|         return "new_session_ticket";
   58|       |
   59|      0|      case Handshake_Type::HandshakeCCS:
  ------------------
  |  Branch (59:7): [True: 0, False: 3]
  ------------------
   60|      0|         return "change_cipher_spec";
   61|       |
   62|      0|      case Handshake_Type::Finished:
  ------------------
  |  Branch (62:7): [True: 0, False: 3]
  ------------------
   63|      0|         return "finished";
   64|       |
   65|      0|      case Handshake_Type::EndOfEarlyData:
  ------------------
  |  Branch (65:7): [True: 0, False: 3]
  ------------------
   66|      0|         return "end_of_early_data";
   67|       |
   68|      2|      case Handshake_Type::EncryptedExtensions:
  ------------------
  |  Branch (68:7): [True: 2, False: 1]
  ------------------
   69|      2|         return "encrypted_extensions";
   70|       |
   71|      0|      case Handshake_Type::KeyUpdate:
  ------------------
  |  Branch (71:7): [True: 0, False: 3]
  ------------------
   72|      0|         return "key_update";
   73|       |
   74|      0|      case Handshake_Type::None:
  ------------------
  |  Branch (74:7): [True: 0, False: 3]
  ------------------
   75|      0|         return "invalid";
   76|      3|   }
   77|       |
   78|      0|   throw TLS_Exception(Alert::UnexpectedMessage,
   79|      0|                       "Unknown TLS handshake message type " + std::to_string(static_cast<size_t>(type)));
   80|      3|}

_ZNK5Botan3TLS6Policy30maximum_handshake_message_sizeEv:
  470|  29.3k|size_t Policy::maximum_handshake_message_size() const {
  471|  29.3k|   return 65536;
  472|  29.3k|}
_ZNK5Botan3TLS6Policy30maximum_certificate_chain_sizeEv:
  474|  2.85k|size_t Policy::maximum_certificate_chain_size() const {
  475|  2.85k|   return 65536;
  476|  2.85k|}

_ZNK5Botan3TLS15TLS_Data_Reader15assert_at_leastEm:
   14|   474k|void TLS_Data_Reader::assert_at_least(size_t n) const {
   15|   474k|   const size_t left = remaining_bytes();
   16|   474k|   if(left < n) {
  ------------------
  |  Branch (16:7): [True: 432, False: 473k]
  ------------------
   17|    432|      throw_decode_error(fmt("Expected {} bytes remaining, only {} left", n, left));
   18|    432|   }
   19|   474k|}
_ZNK5Botan3TLS15TLS_Data_Reader18throw_decode_errorENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEE:
   21|    539|void TLS_Data_Reader::throw_decode_error(std::string_view why) const {
   22|    539|   throw Decoding_Error(fmt("Invalid {}: {}", m_typename, why));
   23|    539|}

_ZN5Botan3TLS16Signature_Scheme21all_available_schemesEv:
   17|  1.80k|const std::vector<Signature_Scheme>& Signature_Scheme::all_available_schemes() {
   18|       |   /*
   19|       |   * This is ordered in some approximate order of preference
   20|       |   */
   21|  1.80k|   static const std::vector<Signature_Scheme> all_schemes = {
   22|       |
   23|       |      // EdDSA 25519 is currently not supported as a signature scheme for certificates
   24|       |      // certificate authentication.
   25|       |      // See: https://github.com/randombit/botan/pull/2958#discussion_r851294715
   26|       |      //
   27|       |      // #if defined(BOTAN_HAS_ED25519)
   28|       |      //       EDDSA_25519,
   29|       |      // #endif
   30|       |
   31|  1.80k|      RSA_PSS_SHA384,
   32|  1.80k|      RSA_PSS_SHA256,
   33|  1.80k|      RSA_PSS_SHA512,
   34|       |
   35|  1.80k|      RSA_PKCS1_SHA384,
   36|  1.80k|      RSA_PKCS1_SHA512,
   37|  1.80k|      RSA_PKCS1_SHA256,
   38|       |
   39|  1.80k|      ECDSA_SHA384,
   40|  1.80k|      ECDSA_SHA512,
   41|  1.80k|      ECDSA_SHA256,
   42|  1.80k|   };
   43|       |
   44|  1.80k|   return all_schemes;
   45|  1.80k|}
_ZN5Botan3TLS16Signature_SchemeC2Ev:
   47|  1.85k|Signature_Scheme::Signature_Scheme() : m_code(NONE) {}
_ZN5Botan3TLS16Signature_SchemeC2Et:
   49|  6.71k|Signature_Scheme::Signature_Scheme(uint16_t wire_code) : Signature_Scheme(Signature_Scheme::Code(wire_code)) {}
_ZN5Botan3TLS16Signature_SchemeC2ENS1_4CodeE:
   51|  6.72k|Signature_Scheme::Signature_Scheme(Signature_Scheme::Code wire_code) : m_code(wire_code) {}
_ZNK5Botan3TLS16Signature_Scheme12is_availableEv:
   53|  1.80k|bool Signature_Scheme::is_available() const noexcept {
   54|  1.80k|   return value_exists(Signature_Scheme::all_available_schemes(), *this);
   55|  1.80k|}
_ZNK5Botan3TLS16Signature_Scheme6is_setEv:
   57|  1.80k|bool Signature_Scheme::is_set() const noexcept {
   58|  1.80k|   return m_code != NONE;
   59|  1.80k|}
_ZNK5Botan3TLS16Signature_Scheme18hash_function_nameEv:
   98|  1.78k|std::string Signature_Scheme::hash_function_name() const noexcept {
   99|  1.78k|   switch(m_code) {
  100|      0|      case RSA_PKCS1_SHA1:
  ------------------
  |  Branch (100:7): [True: 0, False: 1.78k]
  ------------------
  101|      0|      case ECDSA_SHA1:
  ------------------
  |  Branch (101:7): [True: 0, False: 1.78k]
  ------------------
  102|      0|         return "SHA-1";
  103|       |
  104|    317|      case ECDSA_SHA256:
  ------------------
  |  Branch (104:7): [True: 317, False: 1.46k]
  ------------------
  105|    318|      case RSA_PKCS1_SHA256:
  ------------------
  |  Branch (105:7): [True: 1, False: 1.78k]
  ------------------
  106|    678|      case RSA_PSS_SHA256:
  ------------------
  |  Branch (106:7): [True: 360, False: 1.42k]
  ------------------
  107|    678|         return "SHA-256";
  108|       |
  109|    280|      case ECDSA_SHA384:
  ------------------
  |  Branch (109:7): [True: 280, False: 1.50k]
  ------------------
  110|    282|      case RSA_PKCS1_SHA384:
  ------------------
  |  Branch (110:7): [True: 2, False: 1.78k]
  ------------------
  111|    534|      case RSA_PSS_SHA384:
  ------------------
  |  Branch (111:7): [True: 252, False: 1.53k]
  ------------------
  112|    534|         return "SHA-384";
  113|       |
  114|    297|      case ECDSA_SHA512:
  ------------------
  |  Branch (114:7): [True: 297, False: 1.48k]
  ------------------
  115|    299|      case RSA_PKCS1_SHA512:
  ------------------
  |  Branch (115:7): [True: 2, False: 1.78k]
  ------------------
  116|    571|      case RSA_PSS_SHA512:
  ------------------
  |  Branch (116:7): [True: 272, False: 1.51k]
  ------------------
  117|    571|         return "SHA-512";
  118|       |
  119|      0|      case EDDSA_25519:
  ------------------
  |  Branch (119:7): [True: 0, False: 1.78k]
  ------------------
  120|      0|      case EDDSA_448:
  ------------------
  |  Branch (120:7): [True: 0, False: 1.78k]
  ------------------
  121|      0|         return "Pure";
  122|       |
  123|      0|      default:
  ------------------
  |  Branch (123:7): [True: 0, False: 1.78k]
  ------------------
  124|      0|         return "Unknown hash function";
  125|  1.78k|   }
  126|  1.78k|}
_ZNK5Botan3TLS16Signature_Scheme18is_compatible_withERKNS0_16Protocol_VersionE:
  287|  1.78k|bool Signature_Scheme::is_compatible_with(const Protocol_Version& protocol_version) const noexcept {
  288|       |   // RFC 8446 4.4.3:
  289|       |   //   The SHA-1 algorithm MUST NOT be used in any signatures of
  290|       |   //   CertificateVerify messages.
  291|       |   //
  292|       |   // Note that Botan enforces that for TLS 1.2 as well.
  293|  1.78k|   if(hash_function_name() == "SHA-1") {
  ------------------
  |  Branch (293:7): [True: 0, False: 1.78k]
  ------------------
  294|      0|      return false;
  295|      0|   }
  296|       |
  297|       |   // RFC 8446 4.4.3:
  298|       |   //   RSA signatures MUST use an RSASSA-PSS algorithm, regardless of whether
  299|       |   //   RSASSA-PKCS1-v1_5 algorithms appear in "signature_algorithms".
  300|       |   //
  301|       |   // Note that this is enforced for TLS 1.3 and above only.
  302|  1.78k|   if(!protocol_version.is_pre_tls_13() && (m_code == RSA_PKCS1_SHA1 || m_code == RSA_PKCS1_SHA256 ||
  ------------------
  |  Branch (302:7): [True: 1.78k, False: 0]
  |  Branch (302:45): [True: 0, False: 1.78k]
  |  Branch (302:73): [True: 1, False: 1.78k]
  ------------------
  303|  1.78k|                                            m_code == RSA_PKCS1_SHA384 || m_code == RSA_PKCS1_SHA512)) {
  ------------------
  |  Branch (303:45): [True: 2, False: 1.78k]
  |  Branch (303:75): [True: 2, False: 1.77k]
  ------------------
  304|      5|      return false;
  305|      5|   }
  306|       |
  307|  1.77k|   return true;
  308|  1.78k|}

_ZNK5Botan3TLS16Protocol_Version9to_stringEv:
   34|     84|std::string Protocol_Version::to_string() const {
   35|     84|   const uint8_t maj = major_version();
   36|     84|   const uint8_t min = minor_version();
   37|       |
   38|     84|   if(maj == 3 && min == 0) {
  ------------------
  |  Branch (38:7): [True: 18, False: 66]
  |  Branch (38:19): [True: 2, False: 16]
  ------------------
   39|      2|      return "SSL v3";
   40|      2|   }
   41|       |
   42|     82|   if(maj == 3 && min >= 1) {  // TLS v1.x
  ------------------
  |  Branch (42:7): [True: 16, False: 66]
  |  Branch (42:19): [True: 16, False: 0]
  ------------------
   43|     16|      return "TLS v1." + std::to_string(min - 1);
   44|     16|   }
   45|       |
   46|     66|   if(maj == 254) {  // DTLS 1.x
  ------------------
  |  Branch (46:7): [True: 9, False: 57]
  ------------------
   47|      9|      return "DTLS v1." + std::to_string(255 - min);
   48|      9|   }
   49|       |
   50|       |   // Some very new or very old protocol (or bogus data)
   51|     57|   return "Unknown " + std::to_string(maj) + "." + std::to_string(min);
   52|     66|}
_ZNK5Botan3TLS16Protocol_Version20is_datagram_protocolEv:
   54|  56.3k|bool Protocol_Version::is_datagram_protocol() const {
   55|  56.3k|   return major_version() > 250;
   56|  56.3k|}
_ZNK5Botan3TLS16Protocol_Version13is_pre_tls_13Ev:
   58|  13.0k|bool Protocol_Version::is_pre_tls_13() const {
   59|  13.0k|   return (!is_datagram_protocol() && *this <= Protocol_Version::TLS_V12) ||
  ------------------
  |  Branch (59:12): [True: 9.04k, False: 3.98k]
  |  Branch (59:39): [True: 6.46k, False: 2.58k]
  ------------------
   60|  6.57k|          (is_datagram_protocol() && *this <= Protocol_Version::DTLS_V12);
  ------------------
  |  Branch (60:12): [True: 3.98k, False: 2.58k]
  |  Branch (60:38): [True: 3.96k, False: 18]
  ------------------
   61|  13.0k|}
_ZNK5Botan3TLS16Protocol_Version18is_tls_13_or_laterEv:
   63|    301|bool Protocol_Version::is_tls_13_or_later() const {
   64|    301|   return (!is_datagram_protocol() && *this >= Protocol_Version::TLS_V13) ||
  ------------------
  |  Branch (64:12): [True: 204, False: 97]
  |  Branch (64:39): [True: 16, False: 188]
  ------------------
   65|    285|          (is_datagram_protocol() && *this >= Protocol_Version::DTLS_V13);
  ------------------
  |  Branch (65:12): [True: 97, False: 188]
  |  Branch (65:38): [True: 12, False: 85]
  ------------------
   66|    301|}
_ZNK5Botan3TLS16Protocol_VersiongtERKS1_:
   68|  7.23k|bool Protocol_Version::operator>(const Protocol_Version& other) const {
   69|  7.23k|   if(this->is_datagram_protocol() != other.is_datagram_protocol()) {
  ------------------
  |  Branch (69:7): [True: 0, False: 7.23k]
  ------------------
   70|      0|      throw TLS_Exception(Alert::ProtocolVersion, "Version comparing " + to_string() + " with " + other.to_string());
   71|      0|   }
   72|       |
   73|  7.23k|   if(this->is_datagram_protocol()) {
  ------------------
  |  Branch (73:7): [True: 1.97k, False: 5.25k]
  ------------------
   74|  1.97k|      return m_version < other.m_version;  // goes backwards
   75|  1.97k|   }
   76|       |
   77|  5.25k|   return m_version > other.m_version;
   78|  7.23k|}

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

_ZN5Botan22throw_invalid_argumentEPKcS1_S1_:
   23|     20|void throw_invalid_argument(const char* message, const char* func, const char* file) {
   24|     20|   throw Invalid_Argument(fmt("{} in {}:{}", message, func, file));
   25|     20|}

_ZN5Botan13is_valid_utf8ERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE:
  106|    108|bool is_valid_utf8(const std::string& utf8) {
  107|    108|   try {
  108|    108|      size_t pos = 0;
  109|  1.52k|      while(pos < utf8.size()) {
  ------------------
  |  Branch (109:13): [True: 1.41k, False: 108]
  ------------------
  110|  1.41k|         const uint32_t c = next_utf8_codepoint(utf8, pos);
  111|  1.41k|         BOTAN_UNUSED(c);
  ------------------
  |  |  144|  1.41k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
  112|  1.41k|      }
  113|    108|   } catch(Decoding_Error&) {
  114|     64|      return false;
  115|     64|   }
  116|     44|   return true;
  117|    108|}
_ZN5Botan12ucs2_to_utf8EPKhm:
  119|     76|std::string ucs2_to_utf8(const uint8_t ucs2[], size_t len) {
  120|     76|   if(len % 2 != 0) {
  ------------------
  |  Branch (120:7): [True: 1, False: 75]
  ------------------
  121|      1|      throw Decoding_Error("Invalid length for UCS-2 string");
  122|      1|   }
  123|       |
  124|     75|   const size_t chars = len / 2;
  125|       |
  126|     75|   std::string s;
  127|    421|   for(size_t i = 0; i != chars; ++i) {
  ------------------
  |  Branch (127:22): [True: 346, False: 75]
  ------------------
  128|    346|      const uint32_t c = load_be<uint16_t>(ucs2, i);
  129|    346|      append_utf8_for(s, c);
  130|    346|   }
  131|       |
  132|     75|   return s;
  133|     76|}
_ZN5Botan12ucs4_to_utf8EPKhm:
  153|    102|std::string ucs4_to_utf8(const uint8_t ucs4[], size_t len) {
  154|    102|   if(len % 4 != 0) {
  ------------------
  |  Branch (154:7): [True: 1, False: 101]
  ------------------
  155|      1|      throw Decoding_Error("Invalid length for UCS-4 string");
  156|      1|   }
  157|       |
  158|    101|   const size_t chars = len / 4;
  159|       |
  160|    101|   std::string s;
  161|    348|   for(size_t i = 0; i != chars; ++i) {
  ------------------
  |  Branch (161:22): [True: 247, False: 101]
  ------------------
  162|    247|      const uint32_t c = load_be<uint32_t>(ucs4, i);
  163|    247|      append_utf8_for(s, c);
  164|    247|   }
  165|       |
  166|    101|   return s;
  167|    102|}
_ZN5Botan14latin1_to_utf8EPKhm:
  188|     82|std::string latin1_to_utf8(const uint8_t chars[], size_t len) {
  189|     82|   std::string s;
  190|    445|   for(size_t i = 0; i != len; ++i) {
  ------------------
  |  Branch (190:22): [True: 363, False: 82]
  ------------------
  191|    363|      const uint32_t c = static_cast<uint8_t>(chars[i]);
  192|    363|      append_utf8_for(s, c);
  193|    363|   }
  194|     82|   return s;
  195|     82|}
_ZN5Botan23format_char_for_displayEc:
  197|     32|std::string format_char_for_display(char c) {
  198|     32|   std::ostringstream oss;
  199|       |
  200|     32|   oss << "'";
  201|       |
  202|     32|   if(c == '\t') {
  ------------------
  |  Branch (202:7): [True: 0, False: 32]
  ------------------
  203|      0|      oss << "\\t";
  204|     32|   } else if(c == '\n') {
  ------------------
  |  Branch (204:14): [True: 0, False: 32]
  ------------------
  205|      0|      oss << "\\n";
  206|     32|   } else if(c == '\r') {
  ------------------
  |  Branch (206:14): [True: 0, False: 32]
  ------------------
  207|      0|      oss << "\\r";
  208|     32|   } else if(static_cast<unsigned char>(c) >= 128) {
  ------------------
  |  Branch (208:14): [True: 12, False: 20]
  ------------------
  209|     12|      const unsigned char z = static_cast<unsigned char>(c);
  210|     12|      oss << "\\x" << std::hex << std::uppercase << static_cast<int>(z);
  211|     20|   } else {
  212|     20|      oss << c;
  213|     20|   }
  214|       |
  215|     32|   oss << "'";
  216|       |
  217|     32|   return oss.str();
  218|     32|}
charset.cpp:_ZN5Botan12_GLOBAL__N_119next_utf8_codepointERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERm:
   52|  1.41k|uint32_t next_utf8_codepoint(const std::string& utf8, size_t& pos) {
   53|  1.41k|   auto read_continuation = [&]() -> uint32_t {
   54|  1.41k|      if(pos >= utf8.size()) {
   55|  1.41k|         throw Decoding_Error("Invalid UTF-8 sequence");
   56|  1.41k|      }
   57|  1.41k|      const uint8_t b = static_cast<uint8_t>(utf8[pos++]);
   58|  1.41k|      if((b & 0xC0) != 0x80) {
   59|  1.41k|         throw Decoding_Error("Invalid UTF-8 sequence");
   60|  1.41k|      }
   61|  1.41k|      return b & 0x3F;
   62|  1.41k|   };
   63|       |
   64|  1.41k|   const uint8_t lead = static_cast<uint8_t>(utf8[pos++]);
   65|  1.41k|   uint32_t c = 0;
   66|       |
   67|  1.41k|   if(lead <= 0x7F) {
  ------------------
  |  Branch (67:7): [True: 1.16k, False: 247]
  ------------------
   68|  1.16k|      c = lead;
   69|  1.16k|   } else if((lead & 0xE0) == 0xC0) {
  ------------------
  |  Branch (69:14): [True: 90, False: 157]
  ------------------
   70|     90|      c = (lead & 0x1F) << 6;
   71|     90|      c |= read_continuation();
   72|     90|      if(c < 0x80) {
  ------------------
  |  Branch (72:10): [True: 2, False: 88]
  ------------------
   73|      2|         throw Decoding_Error("Overlong UTF-8 sequence");
   74|      2|      }
   75|    157|   } else if((lead & 0xF0) == 0xE0) {
  ------------------
  |  Branch (75:14): [True: 62, False: 95]
  ------------------
   76|     62|      c = (lead & 0x0F) << 12;
   77|     62|      c |= read_continuation() << 6;
   78|     62|      c |= read_continuation();
   79|     62|      if(c < 0x800) {
  ------------------
  |  Branch (79:10): [True: 6, False: 56]
  ------------------
   80|      6|         throw Decoding_Error("Overlong UTF-8 sequence");
   81|      6|      }
   82|     95|   } else if((lead & 0xF8) == 0xF0) {
  ------------------
  |  Branch (82:14): [True: 63, False: 32]
  ------------------
   83|     63|      c = (lead & 0x07) << 18;
   84|     63|      c |= read_continuation() << 12;
   85|     63|      c |= read_continuation() << 6;
   86|     63|      c |= read_continuation();
   87|     63|      if(c < 0x10000) {
  ------------------
  |  Branch (87:10): [True: 5, False: 58]
  ------------------
   88|      5|         throw Decoding_Error("Overlong UTF-8 sequence");
   89|      5|      }
   90|     63|   } else {
   91|     32|      throw Decoding_Error("Invalid UTF-8 sequence");
   92|     32|   }
   93|       |
   94|  1.36k|   if(c > 0x10FFFF) {
  ------------------
  |  Branch (94:7): [True: 2, False: 1.36k]
  ------------------
   95|      2|      throw Decoding_Error("UTF-8 sequence encodes value outside Unicode range");
   96|      2|   }
   97|  1.36k|   if(c >= 0xD800 && c < 0xE000) {
  ------------------
  |  Branch (97:7): [True: 60, False: 1.30k]
  |  Branch (97:22): [True: 2, False: 58]
  ------------------
   98|      2|      throw Decoding_Error("UTF-8 sequence encodes surrogate code point");
   99|      2|   }
  100|       |
  101|  1.36k|   return c;
  102|  1.36k|}
charset.cpp:_ZZN5Botan12_GLOBAL__N_119next_utf8_codepointERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERmENK3$_0clEv:
   53|    396|   auto read_continuation = [&]() -> uint32_t {
   54|    396|      if(pos >= utf8.size()) {
  ------------------
  |  Branch (54:10): [True: 1, False: 395]
  ------------------
   55|      1|         throw Decoding_Error("Invalid UTF-8 sequence");
   56|      1|      }
   57|    395|      const uint8_t b = static_cast<uint8_t>(utf8[pos++]);
   58|    395|      if((b & 0xC0) != 0x80) {
  ------------------
  |  Branch (58:10): [True: 14, False: 381]
  ------------------
   59|     14|         throw Decoding_Error("Invalid UTF-8 sequence");
   60|     14|      }
   61|    381|      return b & 0x3F;
   62|    395|   };
charset.cpp:_ZN5Botan12_GLOBAL__N_115append_utf8_forERNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEj:
   18|    956|void append_utf8_for(std::string& s, uint32_t c) {
   19|    956|   if(c >= 0xD800 && c < 0xE000) {
  ------------------
  |  Branch (19:7): [True: 286, False: 670]
  |  Branch (19:22): [True: 8, False: 278]
  ------------------
   20|      8|      throw Decoding_Error("Invalid Unicode character");
   21|      8|   }
   22|       |
   23|    948|   if(c <= 0x7F) {
  ------------------
  |  Branch (23:7): [True: 347, False: 601]
  ------------------
   24|    347|      const uint8_t b0 = static_cast<uint8_t>(c);
   25|    347|      s.push_back(static_cast<char>(b0));
   26|    601|   } else if(c <= 0x7FF) {
  ------------------
  |  Branch (26:14): [True: 174, False: 427]
  ------------------
   27|    174|      const uint8_t b0 = 0xC0 | static_cast<uint8_t>(c >> 6);
   28|    174|      const uint8_t b1 = 0x80 | static_cast<uint8_t>(c & 0x3F);
   29|    174|      s.push_back(static_cast<char>(b0));
   30|    174|      s.push_back(static_cast<char>(b1));
   31|    427|   } else if(c <= 0xFFFF) {
  ------------------
  |  Branch (31:14): [True: 260, False: 167]
  ------------------
   32|    260|      const uint8_t b0 = 0xE0 | static_cast<uint8_t>(c >> 12);
   33|    260|      const uint8_t b1 = 0x80 | static_cast<uint8_t>((c >> 6) & 0x3F);
   34|    260|      const uint8_t b2 = 0x80 | static_cast<uint8_t>(c & 0x3F);
   35|    260|      s.push_back(static_cast<char>(b0));
   36|    260|      s.push_back(static_cast<char>(b1));
   37|    260|      s.push_back(static_cast<char>(b2));
   38|    260|   } else if(c <= 0x10FFFF) {
  ------------------
  |  Branch (38:14): [True: 107, False: 60]
  ------------------
   39|    107|      const uint8_t b0 = 0xF0 | static_cast<uint8_t>(c >> 18);
   40|    107|      const uint8_t b1 = 0x80 | static_cast<uint8_t>((c >> 12) & 0x3F);
   41|    107|      const uint8_t b2 = 0x80 | static_cast<uint8_t>((c >> 6) & 0x3F);
   42|    107|      const uint8_t b3 = 0x80 | static_cast<uint8_t>(c & 0x3F);
   43|    107|      s.push_back(static_cast<char>(b0));
   44|    107|      s.push_back(static_cast<char>(b1));
   45|    107|      s.push_back(static_cast<char>(b2));
   46|    107|      s.push_back(static_cast<char>(b3));
   47|    107|   } else {
   48|     60|      throw Decoding_Error("Invalid Unicode character");
   49|     60|   }
   50|    948|}

_ZN5Botan5CPUID10CPUID_DataC2Ev:
   80|      1|CPUID::CPUID_Data::CPUID_Data() {
   81|       |   // NOLINTBEGIN(*-prefer-member-initializer)
   82|      1|#if defined(BOTAN_HAS_CPUID_DETECTION)
   83|      1|   m_processor_features = detect_cpu_features(~cleared_cpuid_bits());
   84|       |#else
   85|       |   m_processor_features = 0;
   86|       |#endif
   87|       |   // NOLINTEND(*-prefer-member-initializer)
   88|      1|}
cpuid.cpp:_ZN5Botan12_GLOBAL__N_118cleared_cpuid_bitsEv:
   59|      1|uint32_t cleared_cpuid_bits() {
   60|      1|   uint32_t cleared = 0;
   61|       |
   62|      1|   #if defined(BOTAN_HAS_OS_UTILS)
   63|      1|   std::string clear_cpuid_env;
   64|      1|   if(OS::read_env_variable(clear_cpuid_env, "BOTAN_CLEAR_CPUID")) {
  ------------------
  |  Branch (64:7): [True: 0, False: 1]
  ------------------
   65|      0|      for(const auto& cpuid : split_on(clear_cpuid_env, ',')) {
  ------------------
  |  Branch (65:29): [True: 0, False: 0]
  ------------------
   66|      0|         if(auto bit = CPUID::bit_from_string(cpuid)) {
  ------------------
  |  Branch (66:18): [True: 0, False: 0]
  ------------------
   67|      0|            cleared |= bit->as_u32();
   68|      0|         }
   69|      0|      }
   70|      0|   }
   71|      1|   #endif
   72|       |
   73|      1|   return cleared;
   74|      1|}

_ZN5Botan5CPUID10CPUID_Data19detect_cpu_featuresEj:
   62|      1|uint32_t CPUID::CPUID_Data::detect_cpu_features(uint32_t allowed) {
   63|      1|   enum class x86_CPUID_1_bits : uint64_t {
   64|      1|      RDTSC = (1ULL << 4),
   65|      1|      SSE2 = (1ULL << 26),
   66|      1|      CLMUL = (1ULL << 33),
   67|      1|      SSSE3 = (1ULL << 41),
   68|      1|      SSE41 = (1ULL << 51),
   69|      1|      AESNI = (1ULL << 57),
   70|       |      // AVX + OSXSAVE
   71|      1|      OSXSAVE = (1ULL << 59) | (1ULL << 60),
   72|      1|      RDRAND = (1ULL << 62)
   73|      1|   };
   74|       |
   75|      1|   enum class x86_CPUID_7_bits : uint64_t {
   76|      1|      BMI1 = (1ULL << 3),
   77|      1|      AVX2 = (1ULL << 5),
   78|      1|      BMI2 = (1ULL << 8),
   79|      1|      BMI_1_AND_2 = BMI1 | BMI2,
   80|      1|      AVX512_F = (1ULL << 16),
   81|      1|      AVX512_DQ = (1ULL << 17),
   82|      1|      RDSEED = (1ULL << 18),
   83|      1|      ADX = (1ULL << 19),
   84|      1|      AVX512_IFMA = (1ULL << 21),
   85|      1|      SHA = (1ULL << 29),
   86|      1|      AVX512_BW = (1ULL << 30),
   87|      1|      AVX512_VL = (1ULL << 31),
   88|      1|      AVX512_VBMI = (1ULL << 33),
   89|      1|      AVX512_VBMI2 = (1ULL << 38),
   90|      1|      GFNI = (1ULL << 40),
   91|      1|      AVX512_VAES = (1ULL << 41),
   92|      1|      AVX512_VCLMUL = (1ULL << 42),
   93|      1|      AVX512_VBITALG = (1ULL << 44),
   94|       |
   95|       |      /*
   96|       |      We only enable AVX512 support if all of the below flags are available
   97|       |
   98|       |      This is more than we strictly need for most uses, however it also has
   99|       |      the effect of preventing execution of AVX512 codepaths on cores that
  100|       |      have serious downclocking problems when AVX512 code executes,
  101|       |      especially Intel Skylake.
  102|       |
  103|       |      VBMI2/VBITALG are the key flags here as they restrict us to Intel Ice
  104|       |      Lake/Rocket Lake, or AMD Zen4, all of which do not have penalties for
  105|       |      executing AVX512.
  106|       |
  107|       |      There is nothing stopping some future processor from supporting the
  108|       |      above flags and having AVX512 penalties, but maybe you should not have
  109|       |      bought such a processor.
  110|       |      */
  111|      1|      AVX512_PROFILE =
  112|      1|         AVX512_F | AVX512_DQ | AVX512_IFMA | AVX512_BW | AVX512_VL | AVX512_VBMI | AVX512_VBMI2 | AVX512_VBITALG,
  113|      1|   };
  114|       |
  115|       |   // NOLINTNEXTLINE(performance-enum-size)
  116|      1|   enum class x86_CPUID_7_1_bits : uint64_t {
  117|      1|      SHA512 = (1 << 0),
  118|      1|      SM3 = (1 << 1),
  119|      1|      SM4 = (1 << 2),
  120|      1|   };
  121|       |
  122|      1|   uint32_t feat = 0;
  123|      1|   uint32_t cpuid[4] = {0};
  124|      1|   bool has_os_ymm_support = false;
  125|      1|   bool has_os_zmm_support = false;
  126|       |
  127|       |   // CPUID 0: vendor identification, max sublevel
  128|      1|   invoke_cpuid(0, cpuid);
  129|       |
  130|      1|   const uint32_t max_supported_sublevel = cpuid[0];
  131|       |
  132|      1|   if(max_supported_sublevel >= 1) {
  ------------------
  |  Branch (132:7): [True: 1, False: 0]
  ------------------
  133|       |      // CPUID 1: feature bits
  134|      1|      invoke_cpuid(1, cpuid);
  135|      1|      const uint64_t flags0 = (static_cast<uint64_t>(cpuid[2]) << 32) | cpuid[3];
  136|       |
  137|      1|      feat |= if_set(flags0, x86_CPUID_1_bits::RDTSC, CPUFeature::Bit::RDTSC, allowed);
  138|       |
  139|      1|      feat |= if_set(flags0, x86_CPUID_1_bits::RDRAND, CPUFeature::Bit::RDRAND, allowed);
  140|       |
  141|      1|      feat |= if_set(flags0, x86_CPUID_1_bits::SSE2, CPUFeature::Bit::SSE2, allowed);
  142|       |
  143|      1|      if(is_set(feat, CPUFeature::Bit::SSE2)) {
  ------------------
  |  Branch (143:10): [True: 1, False: 0]
  ------------------
  144|      1|         feat |= if_set(flags0, x86_CPUID_1_bits::SSSE3, CPUFeature::Bit::SSSE3, allowed);
  145|       |
  146|      1|         if(is_set(feat, CPUFeature::Bit::SSSE3)) {
  ------------------
  |  Branch (146:13): [True: 1, False: 0]
  ------------------
  147|      1|            feat |= if_set(flags0, x86_CPUID_1_bits::CLMUL, CPUFeature::Bit::CLMUL, allowed);
  148|      1|            feat |= if_set(flags0, x86_CPUID_1_bits::AESNI, CPUFeature::Bit::AESNI, allowed);
  149|      1|         }
  150|       |
  151|      1|         const uint64_t osxsave64 = static_cast<uint64_t>(x86_CPUID_1_bits::OSXSAVE);
  152|      1|         if((flags0 & osxsave64) == osxsave64) {
  ------------------
  |  Branch (152:13): [True: 1, False: 0]
  ------------------
  153|      1|            const uint64_t xcr_flags = xgetbv();
  154|      1|            if((xcr_flags & 0x6) == 0x6) {
  ------------------
  |  Branch (154:16): [True: 1, False: 0]
  ------------------
  155|      1|               has_os_ymm_support = true;
  156|      1|               has_os_zmm_support = (xcr_flags & 0xE0) == 0xE0;
  157|      1|            }
  158|      1|         }
  159|      1|      }
  160|      1|   }
  161|       |
  162|      1|   if(max_supported_sublevel >= 7) {
  ------------------
  |  Branch (162:7): [True: 1, False: 0]
  ------------------
  163|      1|      clear_mem(cpuid, 4);
  164|      1|      invoke_cpuid_sublevel(7, 0, cpuid);
  165|       |
  166|      1|      const uint64_t flags7 = (static_cast<uint64_t>(cpuid[2]) << 32) | cpuid[1];
  167|       |
  168|      1|      clear_mem(cpuid, 4);
  169|      1|      invoke_cpuid_sublevel(7, 1, cpuid);
  170|      1|      const uint32_t flags7_1 = cpuid[0];
  171|       |
  172|      1|      feat |= if_set(flags7, x86_CPUID_7_bits::RDSEED, CPUFeature::Bit::RDSEED, allowed);
  173|      1|      feat |= if_set(flags7, x86_CPUID_7_bits::ADX, CPUFeature::Bit::ADX, allowed);
  174|       |
  175|       |      /*
  176|       |      We only set the BMI bit if both BMI1 and BMI2 are supported, since
  177|       |      typically we want to use both extensions in the same code.
  178|       |      */
  179|      1|      feat |= if_set(flags7, x86_CPUID_7_bits::BMI_1_AND_2, CPUFeature::Bit::BMI, allowed);
  180|       |
  181|      1|      if(is_set(feat, CPUFeature::Bit::SSSE3)) {
  ------------------
  |  Branch (181:10): [True: 1, False: 0]
  ------------------
  182|      1|         feat |= if_set(flags7, x86_CPUID_7_bits::SHA, CPUFeature::Bit::SHA, allowed);
  183|      1|         feat |= if_set(flags7_1, x86_CPUID_7_1_bits::SM3, CPUFeature::Bit::SM3, allowed);
  184|       |
  185|       |         // We only consider AVX2 if SSSE3 is supported
  186|      1|         if(has_os_ymm_support) {
  ------------------
  |  Branch (186:13): [True: 1, False: 0]
  ------------------
  187|      1|            feat |= if_set(flags7, x86_CPUID_7_bits::AVX2, CPUFeature::Bit::AVX2, allowed);
  188|       |
  189|      1|            if(is_set(feat, CPUFeature::Bit::AVX2)) {
  ------------------
  |  Branch (189:16): [True: 1, False: 0]
  ------------------
  190|      1|               feat |= if_set(flags7, x86_CPUID_7_bits::GFNI, CPUFeature::Bit::GFNI, allowed);
  191|      1|               feat |= if_set(flags7, x86_CPUID_7_bits::AVX512_VAES, CPUFeature::Bit::AVX2_AES, allowed);
  192|      1|               feat |= if_set(flags7, x86_CPUID_7_bits::AVX512_VCLMUL, CPUFeature::Bit::AVX2_CLMUL, allowed);
  193|      1|               feat |= if_set(flags7_1, x86_CPUID_7_1_bits::SHA512, CPUFeature::Bit::SHA512, allowed);
  194|      1|               feat |= if_set(flags7_1, x86_CPUID_7_1_bits::SM4, CPUFeature::Bit::SM4, allowed);
  195|       |
  196|       |               // Likewise we only consider AVX-512 if AVX2 is supported
  197|      1|               if(has_os_zmm_support) {
  ------------------
  |  Branch (197:19): [True: 0, False: 1]
  ------------------
  198|      0|                  feat |= if_set(flags7, x86_CPUID_7_bits::AVX512_PROFILE, CPUFeature::Bit::AVX512, allowed);
  199|       |
  200|      0|                  if(is_set(feat, CPUFeature::Bit::AVX512)) {
  ------------------
  |  Branch (200:22): [True: 0, False: 0]
  ------------------
  201|      0|                     feat |= if_set(flags7, x86_CPUID_7_bits::AVX512_VAES, CPUFeature::Bit::AVX512_AES, allowed);
  202|      0|                     feat |= if_set(flags7, x86_CPUID_7_bits::AVX512_VCLMUL, CPUFeature::Bit::AVX512_CLMUL, allowed);
  203|      0|                  }
  204|      0|               }
  205|      1|            }
  206|      1|         }
  207|      1|      }
  208|      1|   }
  209|       |
  210|       |/*
  211|       |   * If we don't have access to CPUID, we can still safely assume that
  212|       |   * any x86-64 processor has SSE2 and RDTSC
  213|       |   */
  214|      1|#if defined(BOTAN_TARGET_ARCH_IS_X86_64)
  215|      1|   if(feat == 0) {
  ------------------
  |  Branch (215:7): [True: 0, False: 1]
  ------------------
  216|      0|      feat |= CPUFeature::Bit::SSE2 & allowed;
  217|      0|      feat |= CPUFeature::Bit::RDTSC & allowed;
  218|      0|   }
  219|      1|#endif
  220|       |
  221|      1|   return feat;
  222|      1|}
cpuid_x86.cpp:_ZN5Botan12_GLOBAL__N_112invoke_cpuidEjPj:
   24|      2|void invoke_cpuid(uint32_t type, uint32_t out[4]) {
   25|      2|   clear_mem(out, 4);
   26|       |
   27|      2|#if defined(BOTAN_USE_GCC_INLINE_ASM)
   28|       |   // NOLINTNEXTLINE(*-no-assembler)
   29|      2|   asm volatile("cpuid\n\t" : "=a"(out[0]), "=b"(out[1]), "=c"(out[2]), "=d"(out[3]) : "0"(type));
   30|       |
   31|       |#elif defined(BOTAN_BUILD_COMPILER_IS_MSVC)
   32|       |   __cpuid((int*)out, type);
   33|       |
   34|       |#else
   35|       |   BOTAN_UNUSED(type);
   36|       |   #warning "No way of calling x86 cpuid instruction for this compiler"
   37|       |#endif
   38|      2|}
cpuid_x86.cpp:_ZN5Botan12_GLOBAL__N_16xgetbvEv:
   56|      1|BOTAN_FUNC_ISA("xsave") uint64_t xgetbv() {
   57|       |   return _xgetbv(0);
   58|      1|}
cpuid_x86.cpp:_ZN5Botan12_GLOBAL__N_121invoke_cpuid_sublevelEjjPj:
   40|      2|void invoke_cpuid_sublevel(uint32_t type, uint32_t level, uint32_t out[4]) {
   41|      2|   clear_mem(out, 4);
   42|       |
   43|      2|#if defined(BOTAN_USE_GCC_INLINE_ASM)
   44|       |   // NOLINTNEXTLINE(*-no-assembler)
   45|      2|   asm volatile("cpuid\n\t" : "=a"(out[0]), "=b"(out[1]), "=c"(out[2]), "=d"(out[3]) : "0"(type), "2"(level));
   46|       |
   47|       |#elif defined(BOTAN_BUILD_COMPILER_IS_MSVC)
   48|       |   __cpuidex((int*)out, type, level);
   49|       |
   50|       |#else
   51|       |   BOTAN_UNUSED(type, level);
   52|       |   #warning "No way of calling x86 cpuid instruction for this compiler"
   53|       |#endif
   54|      2|}

_ZN5Botan10DataSource9read_byteERh:
   27|   240k|size_t DataSource::read_byte(uint8_t& out) {
   28|   240k|   return read(&out, 1);
   29|   240k|}
_ZN5Botan10DataSource9read_byteEv:
   34|   112k|std::optional<uint8_t> DataSource::read_byte() {
   35|   112k|   uint8_t b = 0;
   36|   112k|   if(this->read(&b, 1) == 1) {
  ------------------
  |  Branch (36:7): [True: 106k, False: 5.57k]
  ------------------
   37|   106k|      return b;
   38|   106k|   } else {
   39|  5.57k|      return {};
   40|  5.57k|   }
   41|   112k|}
_ZNK5Botan10DataSource9peek_byteERh:
   46|  4.55k|size_t DataSource::peek_byte(uint8_t& out) const {
   47|  4.55k|   return peek(&out, 1, 0);
   48|  4.55k|}
_ZN5Botan17DataSource_Memory4readEPhm:
   73|   131k|size_t DataSource_Memory::read(uint8_t out[], size_t length) {
   74|   131k|   const size_t got = std::min<size_t>(m_source.size() - m_offset, length);
   75|   131k|   copy_mem(out, m_source.data() + m_offset, got);
   76|   131k|   m_offset += got;
   77|   131k|   return got;
   78|   131k|}
_ZN5Botan17DataSource_Memory15check_availableEm:
   80|  22.0k|bool DataSource_Memory::check_available(size_t n) {
   81|  22.0k|   return (n <= (m_source.size() - m_offset));
   82|  22.0k|}
_ZNK5Botan17DataSource_Memory4peekEPhmm:
   87|  8.95k|size_t DataSource_Memory::peek(uint8_t out[], size_t length, size_t peek_offset) const {
   88|  8.95k|   const size_t bytes_left = m_source.size() - m_offset;
   89|  8.95k|   if(peek_offset >= bytes_left) {
  ------------------
  |  Branch (89:7): [True: 1, False: 8.94k]
  ------------------
   90|      1|      return 0;
   91|      1|   }
   92|       |
   93|  8.94k|   const size_t got = std::min(bytes_left - peek_offset, length);
   94|  8.94k|   copy_mem(out, &m_source[m_offset + peek_offset], got);
   95|  8.94k|   return got;
   96|  8.95k|}
_ZNK5Botan17DataSource_Memory11end_of_dataEv:
  101|  12.2k|bool DataSource_Memory::end_of_data() const {
  102|  12.2k|   return (m_offset == m_source.size());
  103|  12.2k|}

_ZN5Botan9ExceptionC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   71|  9.06k|Exception::Exception(std::string_view msg) : m_msg(msg) {}
_ZN5Botan9ExceptionC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEERKSt9exception:
   73|  4.51k|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|      1|Exception::Exception(const char* prefix, std::string_view msg) : m_msg(fmt("{} {}", prefix, msg)) {}
_ZN5Botan16Invalid_ArgumentC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   77|    122|Invalid_Argument::Invalid_Argument(std::string_view msg) : Exception(msg) {}
_ZN5Botan14Decoding_ErrorC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  125|  4.13k|Decoding_Error::Decoding_Error(std::string_view name) : Exception(name) {}
_ZN5Botan14Decoding_ErrorC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEERKSt9exception:
  130|  4.51k|Decoding_Error::Decoding_Error(std::string_view msg, const std::exception& e) : Exception(msg, e) {}
_ZN5Botan15Stream_IO_ErrorC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  135|      1|Stream_IO_Error::Stream_IO_Error(std::string_view err) : Exception("I/O error:", err) {}

_ZN5Botan19secure_scrub_memoryEPvm:
   25|   193k|void secure_scrub_memory(void* ptr, size_t n) {
   26|   193k|   return secure_zeroize_buffer(ptr, n);
   27|   193k|}
_ZN5Botan21secure_zeroize_bufferEPvm:
   29|   230k|void secure_zeroize_buffer(void* ptr, size_t n) {
   30|   230k|   if(n == 0) {
  ------------------
  |  Branch (30:7): [True: 82.0k, False: 148k]
  ------------------
   31|  82.0k|      return;
   32|  82.0k|   }
   33|       |
   34|       |#if defined(BOTAN_TARGET_OS_HAS_RTLSECUREZEROMEMORY)
   35|       |   ::RtlSecureZeroMemory(ptr, n);
   36|       |
   37|       |#elif defined(BOTAN_TARGET_OS_HAS_EXPLICIT_BZERO)
   38|   148k|   ::explicit_bzero(ptr, n);
   39|       |
   40|       |#elif defined(BOTAN_TARGET_OS_HAS_EXPLICIT_MEMSET)
   41|       |   (void)::explicit_memset(ptr, 0, n);
   42|       |
   43|       |#else
   44|       |   /*
   45|       |   * Call memset through a static volatile pointer, which the compiler should
   46|       |   * not elide. This construct should be safe in conforming compilers, but who
   47|       |   * knows. This has been checked to generate the expected code, which saves the
   48|       |   * memset address in the data segment and unconditionally loads and jumps to
   49|       |   * that address, with the following targets:
   50|       |   *
   51|       |   * x86-64: Clang 19, GCC 6, 11, 13, 14
   52|       |   * riscv64: GCC 14
   53|       |   * aarch64: GCC 14
   54|       |   * armv7: GCC 14
   55|       |   *
   56|       |   * Actually all of them generated the expected jump even without marking the
   57|       |   * function pointer as volatile. However this seems worth including as an
   58|       |   * additional precaution.
   59|       |   */
   60|       |   static void* (*const volatile memset_ptr)(void*, int, size_t) = std::memset;
   61|       |   (memset_ptr)(ptr, 0, n);
   62|       |#endif
   63|   148k|}

_ZN5Botan2OS17read_env_variableERNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_17basic_string_viewIcS4_EE:
  448|      1|bool OS::read_env_variable(std::string& value_out, std::string_view name_view) {
  449|      1|   value_out = "";
  450|       |
  451|      1|   if(running_in_privileged_state()) {
  ------------------
  |  Branch (451:7): [True: 0, False: 1]
  ------------------
  452|      0|      return false;
  453|      0|   }
  454|       |
  455|       |#if defined(BOTAN_TARGET_OS_HAS_WIN32) && \
  456|       |   (defined(BOTAN_BUILD_COMPILER_IS_MSVC) || defined(BOTAN_BUILD_COMPILER_IS_CLANGCL))
  457|       |   const std::string name(name_view);
  458|       |   char val[128] = {0};
  459|       |   size_t req_size = 0;
  460|       |   if(getenv_s(&req_size, val, sizeof(val), name.c_str()) == 0) {
  461|       |      // Microsoft's implementation always writes a terminating \0,
  462|       |      // and includes it in the reported length of the environment variable
  463|       |      // if a value exists.
  464|       |      if(req_size > 0 && val[req_size - 1] == '\0') {
  465|       |         value_out = std::string(val);
  466|       |      } else {
  467|       |         value_out = std::string(val, req_size);
  468|       |      }
  469|       |      return true;
  470|       |   }
  471|       |#else
  472|      1|   const std::string name(name_view);
  473|      1|   if(const char* val = std::getenv(name.c_str())) {
  ------------------
  |  Branch (473:19): [True: 0, False: 1]
  ------------------
  474|      0|      value_out = val;
  475|      0|      return true;
  476|      0|   }
  477|      1|#endif
  478|       |
  479|      1|   return false;
  480|      1|}
os_utils.cpp:_ZN5Botan12_GLOBAL__N_110get_auxvalENSt3__18optionalImEE:
  118|      1|std::optional<unsigned long> get_auxval(std::optional<unsigned long> id) {
  119|      1|   if(id) {
  ------------------
  |  Branch (119:7): [True: 1, False: 0]
  ------------------
  120|      1|#if defined(BOTAN_TARGET_OS_HAS_GETAUXVAL)
  121|      1|      return ::getauxval(*id);
  122|       |#elif defined(BOTAN_TARGET_OS_HAS_ELF_AUX_INFO)
  123|       |      unsigned long auxinfo = 0;
  124|       |      if(::elf_aux_info(static_cast<int>(*id), &auxinfo, sizeof(auxinfo)) == 0) {
  125|       |         return auxinfo;
  126|       |      }
  127|       |#endif
  128|      1|   }
  129|       |
  130|      0|   return {};
  131|      1|}
os_utils.cpp:_ZN5Botan12_GLOBAL__N_127running_in_privileged_stateEv:
  152|      1|bool running_in_privileged_state() {
  153|      1|#if defined(AT_SECURE)
  154|      1|   if(auto at_secure = get_auxval(AT_SECURE)) {
  ------------------
  |  Branch (154:12): [True: 1, False: 0]
  ------------------
  155|      1|      return at_secure != 0;
  156|      1|   }
  157|      0|#endif
  158|       |
  159|      0|#if defined(BOTAN_TARGET_OS_HAS_POSIX1)
  160|      0|   return (::getuid() != ::geteuid()) || (::getgid() != ::getegid());
  ------------------
  |  Branch (160:11): [True: 0, False: 0]
  |  Branch (160:42): [True: 0, False: 0]
  ------------------
  161|       |#else
  162|       |   return false;
  163|       |#endif
  164|      1|}

_ZN5Botan9to_u32bitENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
   30|  22.6k|uint32_t to_u32bit(std::string_view str_view) {
   31|  22.6k|   const std::string str(str_view);
   32|       |
   33|       |   // std::stoul is not strict enough. Ensure that str is digit only [0-9]*
   34|  52.9k|   for(const char chr : str) {
  ------------------
  |  Branch (34:23): [True: 52.9k, False: 22.6k]
  ------------------
   35|  52.9k|      if(chr < '0' || chr > '9') {
  ------------------
  |  Branch (35:10): [True: 11, False: 52.9k]
  |  Branch (35:23): [True: 2, False: 52.9k]
  ------------------
   36|     13|         throw Invalid_Argument("to_u32bit invalid decimal string '" + str + "'");
   37|     13|      }
   38|  52.9k|   }
   39|       |
   40|  22.6k|   const unsigned long int x = std::stoul(str);
   41|       |
   42|  22.6k|   if constexpr(sizeof(unsigned long int) > 4) {
   43|       |      // x might be uint64
   44|  22.6k|      if(x > std::numeric_limits<uint32_t>::max()) {
  ------------------
  |  Branch (44:10): [True: 0, False: 22.6k]
  ------------------
   45|      0|         throw Invalid_Argument("Integer value of " + str + " exceeds 32 bit range");
   46|      0|      }
   47|  22.6k|   }
   48|       |
   49|  22.6k|   return static_cast<uint32_t>(x);
   50|  22.6k|}
_ZN5Botan8split_onENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEEc:
  109|  1.71k|std::vector<std::string> split_on(std::string_view str, char delim) {
  110|  1.71k|   std::vector<std::string> elems;
  111|  1.71k|   if(str.empty()) {
  ------------------
  |  Branch (111:7): [True: 0, False: 1.71k]
  ------------------
  112|      0|      return elems;
  113|      0|   }
  114|       |
  115|  1.71k|   std::string substr;
  116|  34.1k|   for(const char c : str) {
  ------------------
  |  Branch (116:21): [True: 34.1k, False: 1.71k]
  ------------------
  117|  34.1k|      if(c == delim) {
  ------------------
  |  Branch (117:10): [True: 0, False: 34.1k]
  ------------------
  118|      0|         if(!substr.empty()) {
  ------------------
  |  Branch (118:13): [True: 0, False: 0]
  ------------------
  119|      0|            elems.push_back(substr);
  120|      0|         }
  121|      0|         substr.clear();
  122|  34.1k|      } else {
  123|  34.1k|         substr += c;
  124|  34.1k|      }
  125|  34.1k|   }
  126|       |
  127|  1.71k|   if(substr.empty()) {
  ------------------
  |  Branch (127:7): [True: 0, False: 1.71k]
  ------------------
  128|      0|      throw Invalid_Argument(fmt("Unable to split string '{}", str));
  129|      0|   }
  130|  1.71k|   elems.push_back(substr);
  131|       |
  132|  1.71k|   return elems;
  133|  1.71k|}

_ZN5Botan7X509_DN13add_attributeERKNS_3OIDERKNS_11ASN1_StringE:
  109|    381|void X509_DN::add_attribute(const OID& oid, const ASN1_String& str) {
  110|    381|   if(str.empty()) {
  ------------------
  |  Branch (110:7): [True: 299, False: 82]
  ------------------
  111|    299|      return;
  112|    299|   }
  113|       |
  114|     82|   m_rdn.push_back(std::make_pair(oid, str));
  115|     82|   m_dn_bits.clear();
  116|     82|}
_ZNK5Botan7X509_DN14get_attributesEv:
  121|  3.42k|std::multimap<OID, std::string> X509_DN::get_attributes() const {
  122|  3.42k|   std::multimap<OID, std::string> retval;
  123|       |
  124|  3.42k|   for(const auto& i : m_rdn) {
  ------------------
  |  Branch (124:22): [True: 0, False: 3.42k]
  ------------------
  125|      0|      retval.emplace(i.first, i.second.value());
  126|      0|   }
  127|  3.42k|   return retval;
  128|  3.42k|}
_ZN5BotaneqERKNS_7X509_DNES2_:
  229|  1.71k|bool operator==(const X509_DN& dn1, const X509_DN& dn2) {
  230|  1.71k|   auto attr1 = dn1.get_attributes();
  231|  1.71k|   auto attr2 = dn2.get_attributes();
  232|       |
  233|  1.71k|   if(attr1.size() != attr2.size()) {
  ------------------
  |  Branch (233:7): [True: 0, False: 1.71k]
  ------------------
  234|      0|      return false;
  235|      0|   }
  236|       |
  237|  1.71k|   auto p1 = attr1.begin();
  238|  1.71k|   auto p2 = attr2.begin();
  239|       |
  240|  1.71k|   while(true) {
  ------------------
  |  Branch (240:10): [True: 1.71k, Folded]
  ------------------
  241|  1.71k|      if(p1 == attr1.end() && p2 == attr2.end()) {
  ------------------
  |  Branch (241:10): [True: 1.71k, False: 0]
  |  Branch (241:10): [True: 1.71k, False: 0]
  |  Branch (241:31): [True: 1.71k, False: 0]
  ------------------
  242|  1.71k|         break;
  243|  1.71k|      }
  244|      0|      if(p1 == attr1.end()) {
  ------------------
  |  Branch (244:10): [True: 0, False: 0]
  ------------------
  245|      0|         return false;
  246|      0|      }
  247|      0|      if(p2 == attr2.end()) {
  ------------------
  |  Branch (247:10): [True: 0, False: 0]
  ------------------
  248|      0|         return false;
  249|      0|      }
  250|      0|      if(p1->first != p2->first) {
  ------------------
  |  Branch (250:10): [True: 0, False: 0]
  ------------------
  251|      0|         return false;
  252|      0|      }
  253|      0|      if(!x500_name_cmp(p1->second, p2->second)) {
  ------------------
  |  Branch (253:10): [True: 0, False: 0]
  ------------------
  254|      0|         return false;
  255|      0|      }
  256|      0|      ++p1;
  257|      0|      ++p2;
  258|      0|   }
  259|  1.71k|   return true;
  260|  1.71k|}
_ZN5Botan7X509_DN11decode_fromERNS_11BER_DecoderE:
  338|  5.41k|void X509_DN::decode_from(BER_Decoder& source) {
  339|  5.41k|   std::vector<uint8_t> bits;
  340|       |
  341|  5.41k|   source.start_sequence().raw_bytes(bits).end_cons();
  342|       |
  343|  5.41k|   BER_Decoder sequence(bits, source.limits());
  344|       |
  345|  5.41k|   m_rdn.clear();
  346|       |
  347|  6.04k|   while(sequence.more_items()) {
  ------------------
  |  Branch (347:10): [True: 633, False: 5.41k]
  ------------------
  348|    633|      BER_Decoder rdn = sequence.start_set();
  349|       |
  350|  1.27k|      while(rdn.more_items()) {
  ------------------
  |  Branch (350:13): [True: 644, False: 633]
  ------------------
  351|    644|         OID oid;
  352|    644|         ASN1_String str;
  353|       |
  354|    644|         rdn.start_sequence()
  355|    644|            .decode(oid)
  356|    644|            .decode(str)  // TODO support Any
  357|    644|            .end_cons();
  358|       |
  359|    644|         add_attribute(oid, str);
  360|    644|      }
  361|    633|   }
  362|       |
  363|       |   // Have to assign last as add_attribute zaps m_dn_bits
  364|  5.41k|   m_dn_bits = bits;
  365|  5.41k|}

_ZNK5Botan10Extensions13extension_setERKNS_3OIDE:
  213|  1.71k|bool Extensions::extension_set(const OID& oid) const {
  214|  1.71k|   return m_extension_info.contains(oid);
  215|  1.71k|}
_ZNK5Botan10Extensions20get_extension_objectERKNS_3OIDE:
  234|  18.8k|const Certificate_Extension* Extensions::get_extension_object(const OID& oid) const {
  235|  18.8k|   auto extn = m_extension_info.find(oid);
  236|  18.8k|   if(extn == m_extension_info.end()) {
  ------------------
  |  Branch (236:7): [True: 18.8k, False: 0]
  ------------------
  237|  18.8k|      return nullptr;
  238|  18.8k|   }
  239|       |
  240|      0|   return &extn->second.obj();
  241|  18.8k|}

_ZN5Botan11X509_Object9load_dataERNS_10DataSourceE:
   24|  2.84k|void X509_Object::load_data(DataSource& in) {
   25|  2.84k|   try {
   26|  2.84k|      if(ASN1::maybe_BER(in) && !PEM_Code::matches(in)) {
  ------------------
  |  Branch (26:10): [True: 2.67k, False: 168]
  |  Branch (26:33): [True: 2.64k, False: 31]
  ------------------
   27|  2.64k|         BER_Decoder dec(in, BER_Decoder::Limits::DER());
   28|  2.64k|         decode_from(dec);
   29|       |         // Call to verify_end omitted here since we have to sometimes decode
   30|       |         // multiple certificates encoded sequentially in a DataSource
   31|  2.64k|      } else {
   32|    199|         std::string got_label;
   33|    199|         DataSource_Memory ber(PEM_Code::decode(in, got_label));
   34|       |
   35|    199|         if(got_label != PEM_label()) {
  ------------------
  |  Branch (35:13): [True: 47, False: 152]
  ------------------
   36|     47|            bool is_alternate = false;
   37|     47|            for(const std::string_view alt_label : alternate_PEM_labels()) {
  ------------------
  |  Branch (37:50): [True: 47, False: 46]
  ------------------
   38|     47|               if(got_label == alt_label) {
  ------------------
  |  Branch (38:19): [True: 1, False: 46]
  ------------------
   39|      1|                  is_alternate = true;
   40|      1|                  break;
   41|      1|               }
   42|     47|            }
   43|       |
   44|     47|            if(!is_alternate) {
  ------------------
  |  Branch (44:16): [True: 46, False: 1]
  ------------------
   45|     46|               throw Decoding_Error("Unexpected PEM label for " + PEM_label() + " of " + got_label);
   46|     46|            }
   47|     47|         }
   48|       |
   49|    153|         BER_Decoder dec(ber, BER_Decoder::Limits::DER());
   50|    153|         decode_from(dec);
   51|       |         // Call to verify_end omitted here since we have to sometimes decode
   52|       |         // multiple certificates encoded sequentially in a DataSource
   53|    153|      }
   54|  2.84k|   } catch(Decoding_Error& e) {
   55|  1.08k|      throw Decoding_Error(PEM_label() + " decoding", e);
   56|  1.08k|   }
   57|  2.84k|}
_ZNK5Botan11X509_Object9signatureEv:
   59|  1.71k|const std::vector<uint8_t>& X509_Object::signature() const {
   60|  1.71k|   if(!m_signed_data) {
  ------------------
  |  Branch (60:7): [True: 0, False: 1.71k]
  ------------------
   61|      0|      throw Invalid_State("X509_Object uninitialized");
   62|      0|   }
   63|  1.71k|   return m_signed_data->m_sig;
   64|  1.71k|}
_ZNK5Botan11X509_Object11signed_bodyEv:
   66|  3.97k|const std::vector<uint8_t>& X509_Object::signed_body() const {
   67|  3.97k|   if(!m_signed_data) {
  ------------------
  |  Branch (67:7): [True: 0, False: 3.97k]
  ------------------
   68|      0|      throw Invalid_State("X509_Object uninitialized");
   69|      0|   }
   70|  3.97k|   return m_signed_data->m_tbs_bits;
   71|  3.97k|}
_ZNK5Botan11X509_Object19signature_algorithmEv:
   73|  3.55k|const AlgorithmIdentifier& X509_Object::signature_algorithm() const {
   74|  3.55k|   if(!m_signed_data) {
  ------------------
  |  Branch (74:7): [True: 0, False: 3.55k]
  ------------------
   75|      0|      throw Invalid_State("X509_Object uninitialized");
   76|      0|   }
   77|  3.55k|   return m_signed_data->m_sig_algo;
   78|  3.55k|}
_ZNK5Botan11X509_Object11encode_intoERNS_11DER_EncoderE:
   80|  1.71k|void X509_Object::encode_into(DER_Encoder& to) const {
   81|  1.71k|   to.start_sequence()
   82|  1.71k|      .start_sequence()
   83|  1.71k|      .raw_bytes(signed_body())
   84|  1.71k|      .end_cons()
   85|  1.71k|      .encode(signature_algorithm())
   86|  1.71k|      .encode(signature(), ASN1_Type::BitString)
   87|  1.71k|      .end_cons();
   88|  1.71k|}
_ZN5Botan11X509_Object11decode_fromERNS_11BER_DecoderE:
   93|  2.64k|void X509_Object::decode_from(BER_Decoder& from) {
   94|  2.64k|   auto data = std::make_shared<Signed_Data>();
   95|       |
   96|  2.64k|   from.start_sequence()
   97|  2.64k|      .start_sequence()
   98|  2.64k|      .raw_bytes(data->m_tbs_bits)
   99|  2.64k|      .end_cons()
  100|  2.64k|      .decode(data->m_sig_algo)
  101|  2.64k|      .decode(data->m_sig, ASN1_Type::BitString)
  102|  2.64k|      .end_cons();
  103|       |
  104|  2.64k|   m_signed_data = std::move(data);
  105|  2.64k|   force_decode();
  106|  2.64k|}

_ZN5Botan16X509_CertificateD2Ev:
   76|  1.71k|X509_Certificate::~X509_Certificate() = default;
_ZNK5Botan16X509_Certificate9PEM_labelEv:
   78|  1.17k|std::string X509_Certificate::PEM_label() const {
   79|  1.17k|   return "CERTIFICATE";
   80|  1.17k|}
_ZNK5Botan16X509_Certificate20alternate_PEM_labelsEv:
   82|     47|std::vector<std::string> X509_Certificate::alternate_PEM_labels() const {
   83|     47|   return {"X509 CERTIFICATE"};
   84|     47|}
_ZN5Botan16X509_CertificateC2ENSt3__14spanIKhLm18446744073709551615EEE:
   90|  2.84k|X509_Certificate::X509_Certificate(std::span<const uint8_t> in) {
   91|  2.84k|   DataSource_Memory src(in);
   92|  2.84k|   load_data(src);
   93|  2.84k|}
_ZN5Botan16X509_Certificate12force_decodeEv:
  338|  2.25k|void X509_Certificate::force_decode() {
  339|  2.25k|   m_data.reset();
  340|  2.25k|   m_data = parse_x509_cert_body(*this);
  341|  2.25k|}
_ZNK5Botan16X509_Certificate4dataEv:
  343|  1.71k|const X509_Certificate_Data& X509_Certificate::data() const {
  344|  1.71k|   if(m_data == nullptr) {
  ------------------
  |  Branch (344:7): [True: 0, False: 1.71k]
  ------------------
  345|      0|      throw Invalid_State("X509_Certificate uninitialized");
  346|      0|   }
  347|  1.71k|   return *m_data;
  348|  1.71k|}
_ZNK5Botan16X509_Certificate23subject_public_key_infoEv:
  382|  1.71k|const std::vector<uint8_t>& X509_Certificate::subject_public_key_info() const {
  383|  1.71k|   return data().m_subject_public_key_bits_seq;
  384|  1.71k|}
_ZNK5Botan16X509_Certificate18subject_public_keyEv:
  659|  1.71k|std::unique_ptr<Public_Key> X509_Certificate::subject_public_key() const {
  660|  1.71k|   try {
  661|  1.71k|      return std::unique_ptr<Public_Key>(X509::load_key(subject_public_key_info()));
  662|  1.71k|   } catch(std::exception& e) {
  663|  1.71k|      throw Decoding_Error("X509_Certificate::subject_public_key", e);
  664|  1.71k|   }
  665|  1.71k|}
x509cert.cpp:_ZN5Botan12_GLOBAL__N_120parse_x509_cert_bodyERKNS_11X509_ObjectE:
  104|  2.25k|std::unique_ptr<X509_Certificate_Data> parse_x509_cert_body(const X509_Object& obj) {
  105|  2.25k|   auto data = std::make_unique<X509_Certificate_Data>();
  106|       |
  107|  2.25k|   BigInt serial_bn;
  108|  2.25k|   BER_Object public_key;
  109|  2.25k|   BER_Object v3_exts_data;
  110|       |
  111|  2.25k|   BER_Decoder(obj.signed_body(), BER_Decoder::Limits::DER())
  112|  2.25k|      .decode_optional(data->m_version, ASN1_Type(0), ASN1_Class::Constructed | ASN1_Class::ContextSpecific)
  113|  2.25k|      .decode(serial_bn)
  114|  2.25k|      .decode(data->m_sig_algo_inner)
  115|  2.25k|      .decode(data->m_issuer_dn)
  116|  2.25k|      .start_sequence()
  117|  2.25k|      .decode(data->m_not_before)
  118|  2.25k|      .decode(data->m_not_after)
  119|  2.25k|      .end_cons()
  120|  2.25k|      .decode(data->m_subject_dn)
  121|  2.25k|      .get_next(public_key)
  122|  2.25k|      .decode_optional_string(data->m_v2_issuer_key_id, ASN1_Type::BitString, 1)
  123|  2.25k|      .decode_optional_string(data->m_v2_subject_key_id, ASN1_Type::BitString, 2)
  124|  2.25k|      .get_next(v3_exts_data)
  125|  2.25k|      .verify_end("TBSCertificate has extra data after extensions block");
  126|       |
  127|  2.25k|   if(data->m_version > 2) {
  ------------------
  |  Branch (127:7): [True: 0, False: 2.25k]
  ------------------
  128|      0|      throw Decoding_Error("Unknown X.509 cert version " + std::to_string(data->m_version));
  129|      0|   }
  130|  2.25k|   if(obj.signature_algorithm() != data->m_sig_algo_inner) {
  ------------------
  |  Branch (130:7): [True: 106, False: 2.15k]
  ------------------
  131|    106|      throw Decoding_Error("X.509 Certificate had differing algorithm identifiers in inner and outer ID fields");
  132|    106|   }
  133|       |
  134|  2.15k|   public_key.assert_is_a(ASN1_Type::Sequence, ASN1_Class::Constructed, "X.509 certificate public key");
  135|       |
  136|       |   // for general sanity convert wire version (0 based) to standards version (v1 .. v3)
  137|  2.15k|   data->m_version += 1;
  138|       |
  139|  2.15k|   data->m_serial = serial_bn.serialize();
  140|       |   // crude method to save the serial's sign; will get lost during decoding, otherwise
  141|  2.15k|   data->m_serial_negative = serial_bn.signum() < 0;
  142|  2.15k|   data->m_subject_dn_bits = ASN1::put_in_sequence(data->m_subject_dn.get_bits());
  143|  2.15k|   data->m_issuer_dn_bits = ASN1::put_in_sequence(data->m_issuer_dn.get_bits());
  144|       |
  145|  2.15k|   data->m_subject_public_key_bits.assign(public_key.bits(), public_key.bits() + public_key.length());
  146|       |
  147|  2.15k|   data->m_subject_public_key_bits_seq = ASN1::put_in_sequence(data->m_subject_public_key_bits);
  148|       |
  149|  2.15k|   BER_Decoder(data->m_subject_public_key_bits, BER_Decoder::Limits::DER())
  150|  2.15k|      .decode(data->m_subject_public_key_algid)
  151|  2.15k|      .decode(data->m_subject_public_key_bitstring, ASN1_Type::BitString)
  152|  2.15k|      .verify_end();
  153|       |
  154|  2.15k|   if(v3_exts_data.is_a(3, ASN1_Class::Constructed | ASN1_Class::ContextSpecific)) {
  ------------------
  |  Branch (154:7): [True: 0, False: 2.15k]
  ------------------
  155|       |      // Path validation will reject a v1/v2 cert with v3 extensions
  156|      0|      BER_Decoder(v3_exts_data, BER_Decoder::Limits::DER()).decode(data->m_v3_extensions).verify_end();
  157|  2.15k|   } else if(v3_exts_data.is_set()) {
  ------------------
  |  Branch (157:14): [True: 0, False: 2.15k]
  ------------------
  158|      0|      throw BER_Bad_Tag("Unknown tag in X.509 cert", v3_exts_data.tagging());
  159|      0|   }
  160|       |
  161|       |   // Now cache some fields from the extensions
  162|  2.15k|   if(const auto* ext = data->m_v3_extensions.get_extension_object_as<Cert_Extension::Key_Usage>()) {
  ------------------
  |  Branch (162:19): [True: 0, False: 2.15k]
  ------------------
  163|      0|      data->m_key_constraints = ext->get_constraints();
  164|       |      /*
  165|       |      RFC 5280: When the keyUsage extension appears in a certificate,
  166|       |      at least one of the bits MUST be set to 1.
  167|       |      */
  168|      0|      if(data->m_key_constraints.empty()) {
  ------------------
  |  Branch (168:10): [True: 0, False: 0]
  ------------------
  169|      0|         throw Decoding_Error("Certificate has invalid encoding for KeyUsage");
  170|      0|      }
  171|      0|   }
  172|       |
  173|  2.15k|   if(const auto* ext = data->m_v3_extensions.get_extension_object_as<Cert_Extension::Subject_Key_ID>()) {
  ------------------
  |  Branch (173:19): [True: 0, False: 2.15k]
  ------------------
  174|      0|      data->m_subject_key_id = ext->get_key_id();
  175|      0|   }
  176|       |
  177|  2.15k|   if(const auto* ext = data->m_v3_extensions.get_extension_object_as<Cert_Extension::Authority_Key_ID>()) {
  ------------------
  |  Branch (177:19): [True: 0, False: 2.15k]
  ------------------
  178|      0|      data->m_authority_key_id = ext->get_key_id();
  179|      0|   }
  180|       |
  181|  2.15k|   if(const auto* ext = data->m_v3_extensions.get_extension_object_as<Cert_Extension::Name_Constraints>()) {
  ------------------
  |  Branch (181:19): [True: 0, False: 2.15k]
  ------------------
  182|      0|      data->m_name_constraints = ext->get_name_constraints();
  183|      0|   }
  184|       |
  185|  2.15k|   if(const auto* ext = data->m_v3_extensions.get_extension_object_as<Cert_Extension::Extended_Key_Usage>()) {
  ------------------
  |  Branch (185:19): [True: 0, False: 2.15k]
  ------------------
  186|      0|      data->m_extended_key_usage = ext->object_identifiers();
  187|       |      /*
  188|       |      RFC 5280 section 4.2.1.12
  189|       |
  190|       |      "This extension indicates one or more purposes ..."
  191|       |
  192|       |      "If the extension is present, then the certificate MUST only be
  193|       |      used for one of the purposes indicated."
  194|       |
  195|       |      Thus we reject an EKU extension which is empty, since this indicates
  196|       |      the certificate cannot be used for any purpose.
  197|       |      */
  198|      0|      if(data->m_extended_key_usage.empty()) {
  ------------------
  |  Branch (198:10): [True: 0, False: 0]
  ------------------
  199|      0|         throw Decoding_Error("Certificate has invalid empty EKU extension");
  200|      0|      }
  201|      0|   }
  202|       |
  203|  2.15k|   if(const auto* ext = data->m_v3_extensions.get_extension_object_as<Cert_Extension::Basic_Constraints>()) {
  ------------------
  |  Branch (203:19): [True: 0, False: 2.15k]
  ------------------
  204|       |      /*
  205|       |      * RFC 5280 4.2.1.9 requires that conforming CAs "MUST mark the
  206|       |      * extension [basicConstraints] as critical in such certificates"
  207|       |      * but places no such requirement on validators.
  208|       |      */
  209|      0|      if(ext->is_ca() == true) {
  ------------------
  |  Branch (209:10): [True: 0, False: 0]
  ------------------
  210|       |         /*
  211|       |         * RFC 5280 section 4.2.1.3 requires that CAs include KeyUsage in all
  212|       |         * intermediate CA certificates they issue. Currently we accept it being
  213|       |         * missing, as do most other implementations. But it may be worth
  214|       |         * removing this entirely, or alternately adding a warning level
  215|       |         * validation failure for it.
  216|       |         */
  217|      0|         const bool allowed_by_ku =
  218|      0|            data->m_key_constraints.includes(Key_Constraints::KeyCertSign) || data->m_key_constraints.empty();
  ------------------
  |  Branch (218:13): [True: 0, False: 0]
  |  Branch (218:79): [True: 0, False: 0]
  ------------------
  219|       |
  220|       |         /*
  221|       |         * If the extended key usages are set then we must restrict the usage in
  222|       |         * accordance with it as well.
  223|       |         *
  224|       |         * RFC 5280 does not define any extended key usages compatible with certificate
  225|       |         * signing, but some CAs use serverAuth, clientAuth, OCSPSigning, or AnyExtendedKeyUsage
  226|       |         * for this purpose, even though clearly all of these (besides AEKU) are invalid.
  227|       |         * This check at least allows excluding a certificate which is set for only eg
  228|       |         * timestamping or code signing, and that seems about the best we can possibly enforce.
  229|       |         * OpenSSL, BoringSSL, and Go all completely ignore EKUs in determining ability to
  230|       |         * issue certs.
  231|       |         */
  232|      0|         const bool allowed_by_ext_ku = [](const std::vector<OID>& ext_ku) -> bool {
  233|      0|            if(ext_ku.empty()) {
  234|      0|               return true;
  235|      0|            }
  236|       |
  237|      0|            const auto server_auth = OID::from_name("PKIX.ServerAuth");
  238|      0|            const auto client_auth = OID::from_name("PKIX.ClientAuth");
  239|      0|            const auto ocsp_sign = OID::from_name("PKIX.OCSPSigning");
  240|      0|            const auto any_eku = OID::from_name("X509v3.AnyExtendedKeyUsage");
  241|       |
  242|      0|            for(const auto& oid : ext_ku) {
  243|      0|               if(oid == any_eku || oid == server_auth || oid == client_auth || oid == ocsp_sign) {
  244|      0|                  return true;
  245|      0|               }
  246|      0|            }
  247|       |
  248|      0|            return false;
  249|      0|         }(data->m_extended_key_usage);
  250|       |
  251|      0|         if(allowed_by_ku && allowed_by_ext_ku) {
  ------------------
  |  Branch (251:13): [True: 0, False: 0]
  |  Branch (251:30): [True: 0, False: 0]
  ------------------
  252|      0|            data->m_is_ca_certificate = true;
  253|      0|            data->m_path_len_constraint = ext->path_length_constraint();
  254|      0|         }
  255|      0|      }
  256|      0|   }
  257|       |
  258|  2.15k|   if(const auto* ext = data->m_v3_extensions.get_extension_object_as<Cert_Extension::Issuer_Alternative_Name>()) {
  ------------------
  |  Branch (258:19): [True: 0, False: 2.15k]
  ------------------
  259|      0|      data->m_issuer_alt_name = ext->get_alt_name();
  260|      0|   }
  261|       |
  262|  2.15k|   if(const auto* ext = data->m_v3_extensions.get_extension_object_as<Cert_Extension::Subject_Alternative_Name>()) {
  ------------------
  |  Branch (262:19): [True: 0, False: 2.15k]
  ------------------
  263|      0|      data->m_subject_alt_name = ext->get_alt_name();
  264|      0|   }
  265|       |
  266|       |   // This will be set even if SAN parsing failed entirely eg due to a decoding error
  267|       |   // or if the SAN is empty. This is used to guard against using the CN for domain
  268|       |   // name checking.
  269|  2.15k|   const auto san_oid = OID::from_string("X509v3.SubjectAlternativeName");
  270|  2.15k|   data->m_subject_alt_name_exists = data->m_v3_extensions.extension_set(san_oid);
  271|       |
  272|  2.15k|   if(const auto* ext = data->m_v3_extensions.get_extension_object_as<Cert_Extension::Certificate_Policies>()) {
  ------------------
  |  Branch (272:19): [True: 0, False: 2.15k]
  ------------------
  273|      0|      data->m_cert_policies = ext->get_policy_oids();
  274|      0|   }
  275|       |
  276|  2.15k|   if(const auto* ext = data->m_v3_extensions.get_extension_object_as<Cert_Extension::Authority_Information_Access>()) {
  ------------------
  |  Branch (276:19): [True: 0, False: 2.15k]
  ------------------
  277|      0|      data->m_ocsp_responders = ext->ocsp_responders();
  278|      0|      data->m_ca_issuers = ext->ca_issuers();
  279|      0|   }
  280|       |
  281|  2.15k|   if(const auto* ext = data->m_v3_extensions.get_extension_object_as<Cert_Extension::CRL_Distribution_Points>()) {
  ------------------
  |  Branch (281:19): [True: 0, False: 2.15k]
  ------------------
  282|      0|      data->m_crl_distribution_points = ext->crl_distribution_urls();
  283|      0|   }
  284|       |
  285|       |   /*
  286|       |   Determine if this certificate appears to be self-issued (subject == issuer).
  287|       |   This is only a heuristic used for path building so it's ok it is not precise.
  288|       |   The self-signature is verified during path validation.
  289|       |   */
  290|  2.15k|   if(data->m_subject_dn == data->m_issuer_dn) {
  ------------------
  |  Branch (290:7): [True: 1.71k, False: 439]
  ------------------
  291|  1.71k|      if(!data->m_subject_key_id.empty() && !data->m_authority_key_id.empty()) {
  ------------------
  |  Branch (291:10): [True: 0, False: 1.71k]
  |  Branch (291:45): [True: 0, False: 0]
  ------------------
  292|       |         /*
  293|       |         Both SKID and AKID are set so we can reliably determine self-signed vs
  294|       |         self-issued by comparing the two
  295|       |         */
  296|      0|         data->m_self_signed = (data->m_subject_key_id == data->m_authority_key_id);
  297|  1.71k|      } else {
  298|       |         /*
  299|       |         Without both SKID and AKID we can't determine with certainty. Assume
  300|       |         self-signed since that's by far the common case.
  301|       |         */
  302|  1.71k|         data->m_self_signed = true;
  303|  1.71k|      }
  304|  1.71k|   }
  305|       |
  306|  2.15k|   const std::vector<uint8_t> full_encoding = obj.BER_encode();
  307|       |
  308|  2.15k|   if(auto sha1 = HashFunction::create("SHA-1")) {
  ------------------
  |  Branch (308:12): [True: 1.71k, False: 439]
  ------------------
  309|  1.71k|      sha1->update(data->m_subject_public_key_bitstring);
  310|  1.71k|      data->m_subject_public_key_bitstring_sha1 = sha1->final_stdvec();
  311|       |      // otherwise left as empty, and we will throw if subject_public_key_bitstring_sha1 is called
  312|       |
  313|  1.71k|      sha1->update(full_encoding);
  314|  1.71k|      sha1->final(data->m_cert_data_sha1);
  315|  1.71k|      data->m_fingerprint_sha1 = format_hex_fingerprint(data->m_cert_data_sha1);
  316|  1.71k|   }
  317|       |
  318|       |   // SHA-256 is a hard dependency of this module
  319|  2.15k|   auto sha256 = HashFunction::create_or_throw("SHA-256");
  320|  2.15k|   sha256->update(data->m_issuer_dn_bits);
  321|  2.15k|   data->m_issuer_dn_bits_sha256 = sha256->final_stdvec();
  322|       |
  323|  2.15k|   sha256->update(data->m_subject_dn_bits);
  324|  2.15k|   data->m_subject_dn_bits_sha256 = sha256->final_stdvec();
  325|       |
  326|  2.15k|   sha256->update(full_encoding);
  327|  2.15k|   sha256->final(data->m_cert_data_sha256);
  328|  2.15k|   data->m_fingerprint_sha256 = format_hex_fingerprint(data->m_cert_data_sha256);
  329|       |
  330|  2.15k|   return data;
  331|  2.15k|}

