_ZN5Botan15AlignmentBufferIhLm128ELNS_25AlignmentBufferFinalBlockE0EEC2Ev:
   62|      2|      AlignmentBuffer() = default;
_ZN5Botan15AlignmentBufferIhLm128ELNS_25AlignmentBufferFinalBlockE0EE5clearEv:
   71|      4|      void clear() {
   72|      4|         zeroize_buffer(m_buffer.data(), m_buffer.size());
   73|      4|         m_position = 0;
   74|      4|      }
_ZN5Botan15AlignmentBufferIhLm128ELNS_25AlignmentBufferFinalBlockE0EED2Ev:
   64|      2|      ~AlignmentBuffer() { secure_zeroize_buffer(m_buffer.data(), sizeof(T) * m_buffer.size()); }
_ZN5Botan15AlignmentBufferIhLm128ELNS_25AlignmentBufferFinalBlockE0EE21handle_unaligned_dataERNS_12BufferSlicerE:
  166|      2|      [[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|      2|         const size_t defer = (defers_final_block()) ? 1 : 0;
  ------------------
  |  Branch (170:31): [True: 0, False: 2]
  ------------------
  171|       |
  172|      2|         if(in_alignment() && slicer.remaining() >= m_buffer.size() + defer) {
  ------------------
  |  Branch (172:13): [True: 2, False: 0]
  |  Branch (172:31): [True: 0, False: 2]
  ------------------
  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|      0|            return std::nullopt;
  177|      0|         }
  178|       |
  179|       |         // Fill the buffer with as much input data as needed to reach alignment
  180|       |         // or until the input source is depleted.
  181|      2|         const auto elements_to_consume = std::min(m_buffer.size() - m_position, slicer.remaining());
  182|      2|         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|      2|         if(ready_to_consume() && (!defers_final_block() || !slicer.empty())) {
  ------------------
  |  Branch (188:13): [True: 0, False: 2]
  |  Branch (188:36): [True: 0, False: 0]
  |  Branch (188:61): [True: 0, False: 0]
  ------------------
  189|      0|            return consume();
  190|      2|         } else {
  191|      2|            return std::nullopt;
  192|      2|         }
  193|      2|      }
_ZNK5Botan15AlignmentBufferIhLm128ELNS_25AlignmentBufferFinalBlockE0EE18defers_final_blockEv:
  233|      2|      constexpr bool defers_final_block() const {
  234|      2|         return FINAL_BLOCK_STRATEGY == AlignmentBufferFinalBlock::must_be_deferred;
  235|      2|      }
_ZN5Botan15AlignmentBufferIhLm128ELNS_25AlignmentBufferFinalBlockE0EE6appendENSt3__14spanIKhLm18446744073709551615EEE:
   90|      4|      void append(std::span<const T> elements) {
   91|      4|         BOTAN_ASSERT_NOMSG(elements.size() <= elements_until_alignment());
  ------------------
  |  |   77|      4|   do {                                                                     \
  |  |   78|      4|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|      4|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 4]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|      4|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 4]
  |  |  ------------------
  ------------------
   92|      4|         std::copy(elements.begin(), elements.end(), m_buffer.begin() + m_position);
   93|      4|         m_position += elements.size();
   94|      4|      }
_ZNK5Botan15AlignmentBufferIhLm128ELNS_25AlignmentBufferFinalBlockE0EE24elements_until_alignmentEv:
  221|     10|      size_t elements_until_alignment() const { return m_buffer.size() - m_position; }
_ZNK5Botan15AlignmentBufferIhLm128ELNS_25AlignmentBufferFinalBlockE0EE16ready_to_consumeEv:
  231|      8|      bool ready_to_consume() const { return m_position == m_buffer.size(); }
_ZN5Botan15AlignmentBufferIhLm128ELNS_25AlignmentBufferFinalBlockE0EE7consumeEv:
  200|      2|      [[nodiscard]] std::span<const T> consume() {
  201|      2|         BOTAN_ASSERT_NOMSG(ready_to_consume());
  ------------------
  |  |   77|      2|   do {                                                                     \
  |  |   78|      2|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|      2|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 2]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|      2|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 2]
  |  |  ------------------
  ------------------
  202|      2|         m_position = 0;
  203|      2|         return m_buffer;
  204|      2|      }
_ZNK5Botan15AlignmentBufferIhLm128ELNS_25AlignmentBufferFinalBlockE0EE12in_alignmentEv:
  226|      4|      bool in_alignment() const { return m_position == 0; }
_ZN5Botan15AlignmentBufferIhLm128ELNS_25AlignmentBufferFinalBlockE0EE18fill_up_with_zerosEv:
   79|      2|      void fill_up_with_zeros() {
   80|      2|         if(!ready_to_consume()) {
  ------------------
  |  Branch (80:13): [True: 2, False: 0]
  ------------------
   81|      2|            zeroize_buffer(&m_buffer[m_position], elements_until_alignment());
   82|      2|            m_position = m_buffer.size();
   83|      2|         }
   84|      2|      }
_ZN5Botan15AlignmentBufferIhLm128ELNS_25AlignmentBufferFinalBlockE0EE20directly_modify_lastEm:
  113|      2|      std::span<T> directly_modify_last(size_t elements) {
  114|      2|         BOTAN_ASSERT_NOMSG(size() >= elements);
  ------------------
  |  |   77|      2|   do {                                                                     \
  |  |   78|      2|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|      2|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 2]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|      2|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 2]
  |  |  ------------------
  ------------------
  115|      2|         return std::span(m_buffer).last(elements);
  116|      2|      }
_ZNK5Botan15AlignmentBufferIhLm128ELNS_25AlignmentBufferFinalBlockE0EE4sizeEv:
  217|      2|      constexpr size_t size() const { return m_buffer.size(); }

_ZNK5Botan17Barrett_Reduction4cubeERKNS_6BigIntE:
   66|  2.85k|      BigInt cube(const BigInt& x) const { return this->multiply(x, this->square(x)); }
_ZNK5Botan17Barrett_Reduction12modulus_bitsEv:
   71|    249|      size_t modulus_bits() const { return m_modulus_bits; }

_ZN5Botan17ct_expand_top_bitITkNSt3__117unsigned_integralEmEET_S2_:
   28|   220M|BOTAN_FORCE_INLINE constexpr T ct_expand_top_bit(T a) {
   29|   220M|   const T top = CT::value_barrier<T>(a >> (sizeof(T) * 8 - 1));
   30|   220M|   return static_cast<T>(0) - top;
   31|   220M|}
_ZN5Botan10ct_is_zeroITkNSt3__117unsigned_integralEmEET_S2_:
   37|   191M|BOTAN_FORCE_INLINE constexpr T ct_is_zero(T x) {
   38|   191M|   return ct_expand_top_bit<T>(~x & (x - 1));
   39|   191M|}
_ZN5Botan6chooseITkNSt3__117unsigned_integralEmEET_S2_S2_S2_:
  216|   286M|BOTAN_FORCE_INLINE constexpr T choose(T mask, T a, T b) {
  217|       |   //return (mask & a) | (~mask & b);
  218|   286M|   return (b ^ (mask & (a ^ b)));
  219|   286M|}
_ZN5Botan8high_bitITkNSt3__117unsigned_integralEjEEmT_:
   73|  1.59k|BOTAN_FORCE_INLINE constexpr size_t high_bit(T n) {
   74|  1.59k|   size_t hb = 0;
   75|       |
   76|  9.59k|   for(size_t s = 8 * sizeof(T) / 2; s > 0; s /= 2) {
  ------------------
  |  Branch (76:38): [True: 7.99k, False: 1.59k]
  ------------------
   77|       |      // Equivalent to: ((n >> s) == 0) ? 0 : s;
   78|  7.99k|      const size_t z = s - ct_if_is_zero_ret<T>(n >> s, s);
   79|  7.99k|      hb += z;
   80|  7.99k|      n >>= z;
   81|  7.99k|   }
   82|       |
   83|  1.59k|   hb += n;
   84|       |
   85|  1.59k|   return hb;
   86|  1.59k|}
_ZN5Botan17ct_if_is_zero_retITkNSt3__117unsigned_integralEjEEmT_m:
   45|  7.99k|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|  7.99k|   const T a = ~x & (x - 1);
   51|  7.99k|   const size_t a_top = static_cast<size_t>(CT::value_barrier<T>(a >> (sizeof(T) * 8 - 1)));
   52|  7.99k|   const size_t mask = static_cast<size_t>(0) - a_top;
   53|  7.99k|   return mask & s;
   54|  7.99k|}
_ZN5Botan17ct_if_is_zero_retITkNSt3__117unsigned_integralEmEEmT_m:
   45|  1.07M|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|  1.07M|   const T a = ~x & (x - 1);
   51|  1.07M|   const size_t a_top = static_cast<size_t>(CT::value_barrier<T>(a >> (sizeof(T) * 8 - 1)));
   52|  1.07M|   const size_t mask = static_cast<size_t>(0) - a_top;
   53|  1.07M|   return mask & s;
   54|  1.07M|}
_ZN5Botan3ctzITkNSt3__117unsigned_integralEmEEmT_:
  115|   114k|BOTAN_FORCE_INLINE constexpr size_t ctz(T n) {
  116|       |   /*
  117|       |   * If n == 0 then this function will compute 8*sizeof(T)-1, so
  118|       |   * initialize lb to 1 if n == 0 to produce the expected result.
  119|       |   */
  120|   114k|   size_t lb = ct_if_is_zero_ret<T>(n, 1);
  121|       |
  122|   800k|   for(size_t s = 8 * sizeof(T) / 2; s > 0; s /= 2) {
  ------------------
  |  Branch (122:38): [True: 686k, False: 114k]
  ------------------
  123|   686k|      const T range = (static_cast<T>(1) << s) - 1;
  124|       |      // Equivalent to: ((n & range) == 0) ? s : 0;
  125|   686k|      const size_t z = ct_if_is_zero_ret<T>(n & range, s);
  126|   686k|      lb += z;
  127|   686k|      n >>= z;
  128|   686k|   }
  129|       |
  130|   114k|   return lb;
  131|   114k|}
_ZN5Botan13is_power_of_2ITkNSt3__117unsigned_integralEmEEbT_:
   62|  12.8k|BOTAN_FORCE_INLINE constexpr bool is_power_of_2(T arg) {
   63|  12.8k|   return (arg != 0) && (arg != 1) && ((arg & static_cast<T>(arg - 1)) == 0);
  ------------------
  |  Branch (63:11): [True: 12.8k, False: 0]
  |  Branch (63:25): [True: 12.8k, False: 0]
  |  Branch (63:39): [True: 6.75k, False: 6.05k]
  ------------------
   64|  12.8k|}
_ZN5Botan8majorityITkNSt3__117unsigned_integralEmEET_S2_S2_S2_:
  222|    160|BOTAN_FORCE_INLINE constexpr T majority(T a, T b, T c) {
  223|       |   /*
  224|       |   Considering each bit of a, b, c individually
  225|       |
  226|       |   If a xor b is set, then c is the deciding vote.
  227|       |
  228|       |   If a xor b is not set then either a and b are both set or both unset.
  229|       |   In either case the value of c doesn't matter, and examining b (or a)
  230|       |   allows us to determine which case we are in.
  231|       |   */
  232|    160|   return choose(a ^ b, c, b);
  233|    160|}
_ZN5Botan8high_bitITkNSt3__117unsigned_integralEmEEmT_:
   73|  46.2k|BOTAN_FORCE_INLINE constexpr size_t high_bit(T n) {
   74|  46.2k|   size_t hb = 0;
   75|       |
   76|   323k|   for(size_t s = 8 * sizeof(T) / 2; s > 0; s /= 2) {
  ------------------
  |  Branch (76:38): [True: 277k, False: 46.2k]
  ------------------
   77|       |      // Equivalent to: ((n >> s) == 0) ? 0 : s;
   78|   277k|      const size_t z = s - ct_if_is_zero_ret<T>(n >> s, s);
   79|   277k|      hb += z;
   80|   277k|      n >>= z;
   81|   277k|   }
   82|       |
   83|  46.2k|   hb += n;
   84|       |
   85|  46.2k|   return hb;
   86|  46.2k|}
_ZN5Botan9ceil_log2ITkNSt3__117unsigned_integralEmEEhT_QltstS2_Li32E:
  142|    823|{
  143|    823|   if(x >> (sizeof(T) * 8 - 1)) {
  ------------------
  |  Branch (143:7): [True: 0, False: 823]
  ------------------
  144|      0|      return sizeof(T) * 8;
  145|      0|   }
  146|       |
  147|    823|   uint8_t result = 0;
  148|    823|   T compare = 1;
  149|       |
  150|  9.62k|   while(compare < x) {
  ------------------
  |  Branch (150:10): [True: 8.80k, False: 823]
  ------------------
  151|  8.80k|      compare <<= 1;
  152|  8.80k|      result++;
  153|  8.80k|   }
  154|       |
  155|    823|   return result;
  156|    823|}
_ZN5Botan10ct_is_zeroITkNSt3__117unsigned_integralEhEET_S2_:
   37|   541k|BOTAN_FORCE_INLINE constexpr T ct_is_zero(T x) {
   38|   541k|   return ct_expand_top_bit<T>(~x & (x - 1));
   39|   541k|}
_ZN5Botan17ct_expand_top_bitITkNSt3__117unsigned_integralEhEET_S2_:
   28|   541k|BOTAN_FORCE_INLINE constexpr T ct_expand_top_bit(T a) {
   29|   541k|   const T top = CT::value_barrier<T>(a >> (sizeof(T) * 8 - 1));
   30|   541k|   return static_cast<T>(0) - top;
   31|   541k|}
_ZN5Botan6chooseITkNSt3__117unsigned_integralEhEET_S2_S2_S2_:
  216|   541k|BOTAN_FORCE_INLINE constexpr T choose(T mask, T a, T b) {
  217|       |   //return (mask & a) | (~mask & b);
  218|   541k|   return (b ^ (mask & (a ^ b)));
  219|   541k|}
_ZN5Botan9ceil_log2ITkNSt3__117unsigned_integralEjEEhT_QltstS2_Li32E:
  142|     68|{
  143|     68|   if(x >> (sizeof(T) * 8 - 1)) {
  ------------------
  |  Branch (143:7): [True: 0, False: 68]
  ------------------
  144|      0|      return sizeof(T) * 8;
  145|      0|   }
  146|       |
  147|     68|   uint8_t result = 0;
  148|     68|   T compare = 1;
  149|       |
  150|    530|   while(compare < x) {
  ------------------
  |  Branch (150:10): [True: 462, False: 68]
  ------------------
  151|    462|      compare <<= 1;
  152|    462|      result++;
  153|    462|   }
  154|       |
  155|     68|   return result;
  156|     68|}
_ZN5Botan12ceil_tobytesITkNSt3__117unsigned_integralEjEET_S2_:
  175|    136|BOTAN_FORCE_INLINE constexpr T ceil_tobytes(T bits) {
  176|    136|   return (bits + 7) / 8;
  177|    136|}
_ZN5Botan10ct_is_zeroITkNSt3__117unsigned_integralEjEET_S2_:
   37|  1.15k|BOTAN_FORCE_INLINE constexpr T ct_is_zero(T x) {
   38|  1.15k|   return ct_expand_top_bit<T>(~x & (x - 1));
   39|  1.15k|}
_ZN5Botan17ct_expand_top_bitITkNSt3__117unsigned_integralEjEET_S2_:
   28|   124k|BOTAN_FORCE_INLINE constexpr T ct_expand_top_bit(T a) {
   29|   124k|   const T top = CT::value_barrier<T>(a >> (sizeof(T) * 8 - 1));
   30|   124k|   return static_cast<T>(0) - top;
   31|   124k|}

_ZN5Botan13reverse_bytesITkNSt3__117unsigned_integralEmQooooooeqstT_Li1EeqstS2_Li2EeqstS2_Li4EeqstS2_Li8EEES2_S2_:
   27|   206k|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|   206k|   } else if constexpr(sizeof(T) == 8) {
   45|   206k|#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_bswap64)
   46|   206k|      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|   206k|   }
   57|   206k|}
_ZN5Botan13reverse_bytesITkNSt3__117unsigned_integralEtQooooooeqstT_Li1EeqstS2_Li2EeqstS2_Li4EeqstS2_Li8EEES2_S2_:
   27|    270|inline constexpr T reverse_bytes(T x) {
   28|       |   if constexpr(sizeof(T) == 1) {
   29|       |      return x;
   30|    270|   } else if constexpr(sizeof(T) == 2) {
   31|    270|#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_bswap16)
   32|    270|      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|    270|}

_ZN5Botan12BufferSlicerC2ENSt3__14spanIKhLm18446744073709551615EEE:
   25|  17.9k|      explicit BufferSlicer(std::span<const uint8_t> buffer) : m_remaining(buffer) {}
_ZNK5Botan12BufferSlicer5emptyEv:
   68|   150k|      bool empty() const { return m_remaining.empty(); }
_ZN5Botan12BufferSlicer9take_byteEv:
   57|  73.4k|      uint8_t take_byte() { return take(1)[0]; }
_ZN5Botan12BufferSlicer4takeEm:
   37|  77.8k|      std::span<const uint8_t> take(const size_t count) {
   38|  77.8k|         BOTAN_STATE_CHECK(remaining() >= count);
  ------------------
  |  |   51|  77.8k|   do {                                                         \
  |  |   52|  77.8k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|  77.8k|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 77.8k]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|  77.8k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 77.8k]
  |  |  ------------------
  ------------------
   39|  77.8k|         auto result = m_remaining.first(count);
   40|  77.8k|         m_remaining = m_remaining.subspan(count);
   41|  77.8k|         return result;
   42|  77.8k|      }
_ZNK5Botan12BufferSlicer9remainingEv:
   66|   127k|      size_t remaining() const { return m_remaining.size(); }
_ZN5Botan12BufferSlicer9copy_intoENSt3__14spanIhLm18446744073709551615EEE:
   59|  4.23k|      void copy_into(std::span<uint8_t> sink) {
   60|  4.23k|         const auto data = take(sink.size());
   61|  4.23k|         std::copy(data.begin(), data.end(), sink.begin());
   62|  4.23k|      }
_ZN5Botan12BufferSlicer4takeILm8EEENSt3__14spanIKhXT_EEEv:
   45|  44.0k|      std::span<const uint8_t, count> take() {
   46|  44.0k|         BOTAN_STATE_CHECK(remaining() >= count);
  ------------------
  |  |   51|  44.0k|   do {                                                         \
  |  |   52|  44.0k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|  44.0k|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 44.0k]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|  44.0k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 44.0k]
  |  |  ------------------
  ------------------
   47|  44.0k|         auto result = m_remaining.first<count>();
   48|  44.0k|         m_remaining = m_remaining.subspan(count);
   49|  44.0k|         return result;
   50|  44.0k|      }
_ZN5Botan12BufferSlicer4copyITkNS_8concepts20contiguous_containerENS_6StrongINSt3__16vectorIhNS4_9allocatorIhEEEENS_18SphincsPublicSeed_EJEEEEEDam:
   28|      5|      auto copy(const size_t count) {
   29|      5|         const auto result = take(count);
   30|      5|         return ContainerT(result.begin(), result.end());
   31|      5|      }
_ZN5Botan12BufferSlicer4copyITkNS_8concepts20contiguous_containerENS_6StrongINSt3__16vectorIhNS4_9allocatorIhEEEENS_16SphincsTreeNode_EJEEEEEDam:
   28|      5|      auto copy(const size_t count) {
   29|      5|         const auto result = take(count);
   30|      5|         return ContainerT(result.begin(), result.end());
   31|      5|      }
_ZN5Botan12BufferSlicer4copyITkNS_8concepts20contiguous_containerENS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_18SphincsSecretSeed_EJEEEEEDam:
   28|      5|      auto copy(const size_t count) {
   29|      5|         const auto result = take(count);
   30|      5|         return ContainerT(result.begin(), result.end());
   31|      5|      }
_ZN5Botan12BufferSlicer4copyITkNS_8concepts20contiguous_containerENS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_17SphincsSecretPRF_EJEEEEEDam:
   28|      5|      auto copy(const size_t count) {
   29|      5|         const auto result = take(count);
   30|      5|         return ContainerT(result.begin(), result.end());
   31|      5|      }
_ZN5Botan12BufferSlicer4copyITkNS_8concepts20contiguous_containerENS_6StrongINSt3__16vectorIhNS4_9allocatorIhEEEENS_13KyberSeedRho_EJEEEEEDam:
   28|     25|      auto copy(const size_t count) {
   29|     25|         const auto result = take(count);
   30|     25|         return ContainerT(result.begin(), result.end());
   31|     25|      }
_ZN5Botan12BufferSlicer4copyITkNS_8concepts20contiguous_containerENS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_15KyberSeedSigma_EJEEEEEDam:
   28|     25|      auto copy(const size_t count) {
   29|     25|         const auto result = take(count);
   30|     25|         return ContainerT(result.begin(), result.end());
   31|     25|      }
_ZN5Botan12BufferSlicer4takeILm4EEENSt3__14spanIKhXT_EEEv:
   45|  4.48k|      std::span<const uint8_t, count> take() {
   46|  4.48k|         BOTAN_STATE_CHECK(remaining() >= count);
  ------------------
  |  |   51|  4.48k|   do {                                                         \
  |  |   52|  4.48k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|  4.48k|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 4.48k]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|  4.48k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 4.48k]
  |  |  ------------------
  ------------------
   47|  4.48k|         auto result = m_remaining.first<count>();
   48|  4.48k|         m_remaining = m_remaining.subspan(count);
   49|  4.48k|         return result;
   50|  4.48k|      }
_ZN5Botan12BufferSlicer4takeILm3EEENSt3__14spanIKhXT_EEEv:
   45|  1.28k|      std::span<const uint8_t, count> take() {
   46|  1.28k|         BOTAN_STATE_CHECK(remaining() >= count);
  ------------------
  |  |   51|  1.28k|   do {                                                         \
  |  |   52|  1.28k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|  1.28k|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 1.28k]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|  1.28k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 1.28k]
  |  |  ------------------
  ------------------
   47|  1.28k|         auto result = m_remaining.first<count>();
   48|  1.28k|         m_remaining = m_remaining.subspan(count);
   49|  1.28k|         return result;
   50|  1.28k|      }
_ZN5Botan12BufferSlicer4copyITkNS_8concepts20contiguous_containerENS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_28KyberImplicitRejectionValue_EJEEEEEDam:
   28|     25|      auto copy(const size_t count) {
   29|     25|         const auto result = take(count);
   30|     25|         return ContainerT(result.begin(), result.end());
   31|     25|      }
_ZN5Botan12BufferSlicer4copyITkNS_8concepts20contiguous_containerENS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_20KyberSeedRandomness_EJEEEEEDam:
   28|     25|      auto copy(const size_t count) {
   29|     25|         const auto result = take(count);
   30|     25|         return ContainerT(result.begin(), result.end());
   31|     25|      }

_ZN5Botan13BufferStufferC2ENSt3__14spanIhLm18446744073709551615EEE:
   26|   922k|      constexpr explicit BufferStuffer(std::span<uint8_t> buffer) : m_buffer(buffer) {}
_ZN5Botan13BufferStuffer6appendEhm:
   64|  1.49k|      constexpr void append(uint8_t b, size_t repeat = 1) {
   65|  1.49k|         auto sink = next(repeat);
   66|  1.49k|         std::fill(sink.begin(), sink.end(), b);
   67|  1.49k|      }
_ZN5Botan13BufferStuffer4nextEm:
   32|  1.15M|      constexpr std::span<uint8_t> next(size_t bytes) {
   33|  1.15M|         BOTAN_STATE_CHECK(m_buffer.size() >= bytes);
  ------------------
  |  |   51|  1.15M|   do {                                                         \
  |  |   52|  1.15M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|  1.15M|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 1.15M]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|  1.15M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 1.15M]
  |  |  ------------------
  ------------------
   34|       |
   35|  1.15M|         auto result = m_buffer.first(bytes);
   36|  1.15M|         m_buffer = m_buffer.subspan(bytes);
   37|  1.15M|         return result;
   38|  1.15M|      }
_ZN5Botan13BufferStuffer6appendENSt3__14spanIKhLm18446744073709551615EEE:
   59|  1.15M|      constexpr void append(std::span<const uint8_t> buffer) {
   60|  1.15M|         auto sink = next(buffer.size());
   61|  1.15M|         std::copy(buffer.begin(), buffer.end(), sink.begin());
   62|  1.15M|      }
_ZNK5Botan13BufferStuffer4fullEv:
   69|   920k|      constexpr bool full() const { return m_buffer.empty(); }
_ZN5Botan13BufferStuffer4nextILm32EEENSt3__14spanIhXT_EEEv:
   41|    796|      constexpr std::span<uint8_t, bytes> next() {
   42|    796|         BOTAN_STATE_CHECK(m_buffer.size() >= bytes);
  ------------------
  |  |   51|    796|   do {                                                         \
  |  |   52|    796|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    796|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 796]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    796|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 796]
  |  |  ------------------
  ------------------
   43|       |
   44|    796|         auto result = m_buffer.first<bytes>();
   45|    796|         m_buffer = m_buffer.subspan(bytes);
   46|    796|         return result;
   47|    796|      }
_ZN5Botan13BufferStuffer4nextILm48EEENSt3__14spanIhXT_EEEv:
   41|    600|      constexpr std::span<uint8_t, bytes> next() {
   42|    600|         BOTAN_STATE_CHECK(m_buffer.size() >= bytes);
  ------------------
  |  |   51|    600|   do {                                                         \
  |  |   52|    600|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    600|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 600]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    600|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 600]
  |  |  ------------------
  ------------------
   43|       |
   44|    600|         auto result = m_buffer.first<bytes>();
   45|    600|         m_buffer = m_buffer.subspan(bytes);
   46|    600|         return result;
   47|    600|      }
_ZN5Botan13BufferStuffer4nextILm64EEENSt3__14spanIhXT_EEEv:
   41|    342|      constexpr std::span<uint8_t, bytes> next() {
   42|    342|         BOTAN_STATE_CHECK(m_buffer.size() >= bytes);
  ------------------
  |  |   51|    342|   do {                                                         \
  |  |   52|    342|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    342|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 342]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    342|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 342]
  |  |  ------------------
  ------------------
   43|       |
   44|    342|         auto result = m_buffer.first<bytes>();
   45|    342|         m_buffer = m_buffer.subspan(bytes);
   46|    342|         return result;
   47|    342|      }
_ZN5Botan13BufferStuffer4nextILm28EEENSt3__14spanIhXT_EEEv:
   41|    396|      constexpr std::span<uint8_t, bytes> next() {
   42|    396|         BOTAN_STATE_CHECK(m_buffer.size() >= bytes);
  ------------------
  |  |   51|    396|   do {                                                         \
  |  |   52|    396|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    396|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 396]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    396|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 396]
  |  |  ------------------
  ------------------
   43|       |
   44|    396|         auto result = m_buffer.first<bytes>();
   45|    396|         m_buffer = m_buffer.subspan(bytes);
   46|    396|         return result;
   47|    396|      }
_ZN5Botan13BufferStuffer4nextILm66EEENSt3__14spanIhXT_EEEv:
   41|    354|      constexpr std::span<uint8_t, bytes> next() {
   42|    354|         BOTAN_STATE_CHECK(m_buffer.size() >= bytes);
  ------------------
  |  |   51|    354|   do {                                                         \
  |  |   52|    354|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    354|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 354]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    354|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 354]
  |  |  ------------------
  ------------------
   43|       |
   44|    354|         auto result = m_buffer.first<bytes>();
   45|    354|         m_buffer = m_buffer.subspan(bytes);
   46|    354|         return result;
   47|    354|      }

_ZN5Botan13nibble_to_hexEh:
   76|     54|inline constexpr char nibble_to_hex(uint8_t b) {
   77|     54|   const uint8_t n = b & 0x0F;
   78|     54|   return static_cast<char>(n < 10 ? '0' + n : 'A' + (n - 10));
  ------------------
  |  Branch (78:29): [True: 38, False: 16]
  ------------------
   79|     54|}

base64.cpp:_ZN5Botan11base_decodeINS_12_GLOBAL__N_16Base64EEEmRKT_PhPKcmRmbb:
  124|    125|                   bool ignore_ws = true) {
  125|       |   // TODO(Botan4) Check if we can use just base. or Base:: here instead
  126|    125|   constexpr size_t decoding_bytes_in = std::remove_reference_t<Base>::decoding_bytes_in();
  127|    125|   constexpr size_t decoding_bytes_out = std::remove_reference_t<Base>::decoding_bytes_out();
  128|       |
  129|    125|   input_consumed = 0;
  130|       |
  131|    125|   uint8_t* out_ptr = output;
  132|    125|   std::array<uint8_t, decoding_bytes_in> decode_buf{};
  133|    125|   size_t decode_buf_pos = 0;
  134|    125|   size_t final_truncate = 0;
  135|    125|   bool seen_padding = false;
  136|       |
  137|    125|   clear_mem(output, base.decode_max_output(input_length));
  138|       |
  139|  47.7k|   for(size_t i = 0; i != input_length; ++i) {
  ------------------
  |  Branch (139:22): [True: 47.6k, False: 119]
  ------------------
  140|  47.6k|      const uint8_t bin = base.lookup_binary_value(input[i]);
  141|       |
  142|       |      // This call might throw Invalid_Argument
  143|  47.6k|      if(base.check_bad_char(bin, input[i], ignore_ws)) {
  ------------------
  |  Branch (143:10): [True: 1.66k, False: 45.9k]
  ------------------
  144|       |         // Padding may only appear at the end, so a data symbol must never
  145|       |         // follow one (0x81 marks a padding character)
  146|  1.66k|         if(seen_padding) {
  ------------------
  |  Branch (146:13): [True: 2, False: 1.66k]
  ------------------
  147|      2|            throw Invalid_Argument(base.name() + " decoding failed, data follows padding");
  148|      2|         }
  149|  1.66k|         decode_buf[decode_buf_pos] = bin;
  150|  1.66k|         ++decode_buf_pos;
  151|  45.9k|      } else if(bin == 0x81) {
  ------------------
  |  Branch (151:17): [True: 308, False: 45.6k]
  ------------------
  152|    308|         seen_padding = true;
  153|    308|      }
  154|       |
  155|       |      /*
  156|       |      * If we're at the end of the input, pad with 0s and truncate
  157|       |      */
  158|  47.6k|      if(final_inputs && (i == input_length - 1)) {
  ------------------
  |  Branch (158:10): [True: 47.6k, False: 37]
  |  Branch (158:26): [True: 69, False: 47.5k]
  ------------------
  159|     69|         if(decode_buf_pos) {
  ------------------
  |  Branch (159:13): [True: 21, False: 48]
  ------------------
  160|     21|            const size_t bits_per_symbol = base.bits_consumed();
  161|     21|            const size_t pad_bits = (decode_buf_pos * bits_per_symbol) % 8;
  162|       |
  163|       |            // A trailing symbol contributing only pad bits cannot occur in a
  164|       |            // valid encoding; RFC 4648 4 and 6 enumerate the reachable cases
  165|     21|            if(pad_bits >= bits_per_symbol) {
  ------------------
  |  Branch (165:16): [True: 2, False: 19]
  ------------------
  166|      2|               throw Invalid_Argument(base.name() + " decoding failed, invalid length");
  167|      2|            }
  168|       |
  169|       |            // RFC 4648 3.5: "decoders MAY chose to reject an encoding if the
  170|       |            // pad bits have not been set to zero"
  171|     19|            const uint8_t pad_mask = static_cast<uint8_t>((1U << pad_bits) - 1);
  172|     19|            if(decode_buf[decode_buf_pos - 1] & pad_mask) {
  ------------------
  |  Branch (172:16): [True: 2, False: 17]
  ------------------
  173|      2|               throw Invalid_Argument(base.name() + " decoding failed, nonzero padding bits");
  174|      2|            }
  175|       |
  176|     31|            for(size_t j = decode_buf_pos; j < decoding_bytes_in; ++j) {
  ------------------
  |  Branch (176:44): [True: 14, False: 17]
  ------------------
  177|     14|               decode_buf[j] = 0;
  178|     14|            }
  179|       |
  180|     17|            final_truncate = decoding_bytes_in - decode_buf_pos;
  181|     17|            decode_buf_pos = decoding_bytes_in;
  182|     17|         }
  183|     69|      }
  184|       |
  185|  47.6k|      if(decode_buf_pos == decoding_bytes_in) {
  ------------------
  |  Branch (185:10): [True: 414, False: 47.2k]
  ------------------
  186|    414|         base.decode(out_ptr, decode_buf.data());
  187|       |
  188|    414|         out_ptr += decoding_bytes_out;
  189|    414|         decode_buf_pos = 0;
  190|    414|         input_consumed = i + 1;
  191|    414|      }
  192|  47.6k|   }
  193|       |
  194|  28.6k|   while(input_consumed < input_length && base.lookup_binary_value(input[input_consumed]) == 0x80) {
  ------------------
  |  Branch (194:10): [True: 28.5k, False: 104]
  |  Branch (194:43): [True: 28.5k, False: 15]
  ------------------
  195|  28.5k|      ++input_consumed;
  196|  28.5k|   }
  197|       |
  198|    119|   const size_t written = (out_ptr - output) - base.bytes_to_remove(final_truncate);
  199|       |
  200|    119|   return written;
  201|    125|}
base64.cpp:_ZN5Botan16base_decode_fullINS_12_GLOBAL__N_16Base64EEEmRKT_PhPKcmb:
  204|    125|size_t base_decode_full(const Base& base, uint8_t output[], const char input[], size_t input_length, bool ignore_ws) {
  205|    125|   size_t consumed = 0;
  206|    125|   const size_t written = base_decode(base, output, input, input_length, consumed, true, ignore_ws);
  207|       |
  208|    125|   if(consumed != input_length) {
  ------------------
  |  Branch (208:7): [True: 15, False: 110]
  ------------------
  209|     15|      throw Invalid_Argument(base.name() + " decoding failed, input did not have full bytes");
  210|     15|   }
  211|       |
  212|    110|   return written;
  213|    125|}
base64.cpp:_ZN5Botan18base_decode_to_vecINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_12_GLOBAL__N_16Base64EEET_RKT0_PKcmb:
  216|    125|Vector base_decode_to_vec(const Base& base, const char input[], size_t input_length, bool ignore_ws) {
  217|    125|   const size_t output_length = base.decode_max_output(input_length);
  218|    125|   Vector bin(output_length);
  219|       |
  220|    125|   const size_t written = base_decode_full(base, bin.data(), input, input_length, ignore_ws);
  221|       |
  222|    125|   bin.resize(written);
  223|    125|   return bin;
  224|    125|}

_ZN5Botan6concatINS_6detail10AutoDetectETpTkNS_6ranges14spanable_rangeEJNSt3__16vectorIhNS4_9allocatorIhEEEERNS_6StrongIS8_NS_13KyberSeedRho_EJEEEEEEDaDpOT0_Q10all_same_vIDpNS4_11conditionalIXsr21__is_primary_templateINS4_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS4_6ranges5__cpo5beginEEclsr3stdE7declvalIRSD_EEEEEEEEE5valueENS4_26indirectly_readable_traitsISM_EESN_E4type10value_typeEE:
   92|     25|{
   93|     25|   if constexpr(std::same_as<detail::AutoDetect, OutR>) {
   94|       |      // Try to auto-detect a reasonable output type given the input ranges
   95|     25|      static_assert(sizeof...(Rs) > 0, "Cannot auto-detect the output type if not a single input range is provided.");
   96|     25|      using candidate_result_t = std::remove_cvref_t<std::tuple_element_t<0, std::tuple<Rs...>>>;
   97|     25|      using result_range_value_t = std::remove_cvref_t<std::ranges::range_value_t<candidate_result_t>>;
   98|       |
   99|       |      if constexpr((ranges::statically_spanable_range<Rs> && ...)) {
  100|       |         // If all input ranges have a static extent, we can calculate the total size at compile time
  101|       |         // and therefore can use a statically sized output container. This is constexpr.
  102|       |         constexpr size_t total_size = (decltype(std::span{ranges})::extent + ... + 0);
  103|       |         using out_array_t = std::array<result_range_value_t, total_size>;
  104|       |         return detail::concatenate<out_array_t>(std::forward<Rs>(ranges)...);
  105|     25|      } else {
  106|       |         // If at least one input range has a dynamic extent, we must use a dynamically allocated output container.
  107|       |         // We assume that the user wants to use the first input range's container type as output type.
  108|     25|         static_assert(
  109|     25|            concepts::reservable_container<candidate_result_t>,
  110|     25|            "First input range has static extent, but a dynamically allocated output range is required. Please explicitly specify a dynamically allocatable output type.");
  111|     25|         return detail::concatenate<candidate_result_t>(std::forward<Rs>(ranges)...);
  112|     25|      }
  113|       |   } else {
  114|       |      // The caller has explicitly specified the output type
  115|       |      return detail::concatenate<OutR>(std::forward<Rs>(ranges)...);
  116|       |   }
  117|     25|}
_ZN5Botan6detail11concatenateITkNS_6ranges14spanable_rangeENSt3__16vectorIhNS3_9allocatorIhEEEETpTkNS2_14spanable_rangeEJS7_RNS_6StrongIS7_NS_13KyberSeedRho_EJEEEEEET_DpOT0_Qoosr8conceptsE20reservable_containerISC_Esr6rangesE25statically_spanable_rangeISC_E:
   33|     25|{
   34|     25|   OutR result{};
   35|       |
   36|       |   // Prepare and validate the output range and construct a lambda that does the
   37|       |   // actual filling of the result buffer.
   38|       |   // (if no input ranges are given, GCC claims that fill_fn is unused)
   39|     25|   [[maybe_unused]] auto fill_fn = [&] {
   40|     25|      if constexpr(concepts::reservable_container<OutR>) {
   41|       |         // dynamically allocate the correct result byte length
   42|     25|         const size_t total_size = (ranges.size() + ... + 0);
   43|     25|         result.reserve(total_size);
   44|       |
   45|       |         // fill the result buffer using a back-inserter
   46|     25|         return [&result](auto&& range) {
   47|     25|            std::copy(
   48|     25|               std::ranges::begin(range), std::ranges::end(range), std::back_inserter(unwrap_strong_type(result)));
   49|     25|         };
   50|     25|      } else {
   51|     25|         if constexpr((ranges::statically_spanable_range<Rs> && ... && true)) {
   52|       |            // all input ranges have a static extent, so check the total size at compile time
   53|       |            // (work around an issue in MSVC that warns `total_size` is unused)
   54|     25|            [[maybe_unused]] constexpr size_t total_size = (decltype(std::span{ranges})::extent + ... + 0);
   55|     25|            static_assert(result.size() == total_size, "size of result buffer does not match the sum of input buffers");
   56|     25|         } else {
   57|       |            // at least one input range has a dynamic extent, so check the total size at runtime
   58|     25|            const size_t total_size = (ranges.size() + ... + 0);
   59|     25|            BOTAN_ARG_CHECK(result.size() == total_size,
   60|     25|                            "result buffer has static extent that does not match the sum of input buffers");
   61|     25|         }
   62|       |
   63|       |         // fill the result buffer and hold the current output-iterator position
   64|     25|         return [itr = std::ranges::begin(result)](auto&& range) mutable {
   65|     25|            std::copy(std::ranges::begin(range), std::ranges::end(range), itr);
   66|     25|            std::advance(itr, std::ranges::size(range));
   67|     25|         };
   68|     25|      }
   69|     25|   }();
   70|       |
   71|       |   // perform the actual concatenation
   72|     25|   (fill_fn(std::forward<Rs>(ranges)), ...);
   73|       |
   74|     25|   return result;
   75|     25|}
_ZZN5Botan6detail11concatenateITkNS_6ranges14spanable_rangeENSt3__16vectorIhNS3_9allocatorIhEEEETpTkNS2_14spanable_rangeEJS7_RNS_6StrongIS7_NS_13KyberSeedRho_EJEEEEEET_DpOT0_Qoosr8conceptsE20reservable_containerISC_Esr6rangesE25statically_spanable_rangeISC_EENKUlvE_clEv:
   39|     25|   [[maybe_unused]] auto fill_fn = [&] {
   40|     25|      if constexpr(concepts::reservable_container<OutR>) {
   41|       |         // dynamically allocate the correct result byte length
   42|     25|         const size_t total_size = (ranges.size() + ... + 0);
   43|     25|         result.reserve(total_size);
   44|       |
   45|       |         // fill the result buffer using a back-inserter
   46|     25|         return [&result](auto&& range) {
   47|     25|            std::copy(
   48|     25|               std::ranges::begin(range), std::ranges::end(range), std::back_inserter(unwrap_strong_type(result)));
   49|     25|         };
   50|       |      } else {
   51|       |         if constexpr((ranges::statically_spanable_range<Rs> && ... && true)) {
   52|       |            // all input ranges have a static extent, so check the total size at compile time
   53|       |            // (work around an issue in MSVC that warns `total_size` is unused)
   54|       |            [[maybe_unused]] constexpr size_t total_size = (decltype(std::span{ranges})::extent + ... + 0);
   55|       |            static_assert(result.size() == total_size, "size of result buffer does not match the sum of input buffers");
   56|       |         } else {
   57|       |            // at least one input range has a dynamic extent, so check the total size at runtime
   58|       |            const size_t total_size = (ranges.size() + ... + 0);
   59|       |            BOTAN_ARG_CHECK(result.size() == total_size,
   60|       |                            "result buffer has static extent that does not match the sum of input buffers");
   61|       |         }
   62|       |
   63|       |         // fill the result buffer and hold the current output-iterator position
   64|       |         return [itr = std::ranges::begin(result)](auto&& range) mutable {
   65|       |            std::copy(std::ranges::begin(range), std::ranges::end(range), itr);
   66|       |            std::advance(itr, std::ranges::size(range));
   67|       |         };
   68|       |      }
   69|     25|   }();
_ZZZN5Botan6detail11concatenateITkNS_6ranges14spanable_rangeENSt3__16vectorIhNS3_9allocatorIhEEEETpTkNS2_14spanable_rangeEJS7_RNS_6StrongIS7_NS_13KyberSeedRho_EJEEEEEET_DpOT0_Qoosr8conceptsE20reservable_containerISC_Esr6rangesE25statically_spanable_rangeISC_EENKUlvE_clEvENKUlOSC_E_clIS7_EEDaSH_:
   46|     25|         return [&result](auto&& range) {
   47|     25|            std::copy(
   48|     25|               std::ranges::begin(range), std::ranges::end(range), std::back_inserter(unwrap_strong_type(result)));
   49|     25|         };
_ZZZN5Botan6detail11concatenateITkNS_6ranges14spanable_rangeENSt3__16vectorIhNS3_9allocatorIhEEEETpTkNS2_14spanable_rangeEJS7_RNS_6StrongIS7_NS_13KyberSeedRho_EJEEEEEET_DpOT0_Qoosr8conceptsE20reservable_containerISC_Esr6rangesE25statically_spanable_rangeISC_EENKUlvE_clEvENKUlOSC_E_clISB_EEDaSH_:
   46|     25|         return [&result](auto&& range) {
   47|     25|            std::copy(
   48|     25|               std::ranges::begin(range), std::ranges::end(range), std::back_inserter(unwrap_strong_type(result)));
   49|     25|         };

_ZN5Botan5CPUID3hasENS_10CPUFeatureE:
   94|  36.3k|      static bool has(CPUID::Feature feat) { return state().has_bit(feat.as_u32()); }
_ZN5Botan5CPUID5stateEv:
  156|  36.3k|      static CPUID_Data& state() {
  157|  36.3k|         static CPUID::CPUID_Data g_cpuid;
  158|  36.3k|         return g_cpuid;
  159|  36.3k|      }
_ZNK5Botan5CPUID10CPUID_Data7has_bitEj:
  144|  36.3k|            bool has_bit(uint32_t bit) const { return (m_processor_features & bit) == bit; }
_ZN5Botan5CPUID3hasENS_10CPUFeatureES1_:
   99|      4|      static bool has(CPUID::Feature feat1, CPUID::Feature feat2) {
  100|      4|         return state().has_bit(feat1.as_u32() | feat2.as_u32());
  101|      4|      }
_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: 4, False: 4]
  ------------------
  120|      4|            return (bit.as_u32() & allowed);
  121|      4|         } else {
  122|      4|            return 0;
  123|      4|         }
  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|  36.3k|      uint32_t as_u32() const { return static_cast<uint32_t>(m_bit); }
_ZN5Botan10CPUFeatureC2ENS0_3BitE:
   51|  36.3k|      CPUFeature(Bit b) : m_bit(b) {}  // NOLINT(*-explicit-conversions)

_ZN5Botan2CT6Choice9from_maskEm:
  303|  8.00M|      constexpr static Choice from_mask(underlying_type v) { return Choice(v); }
_ZN5Botan2CT6Choice2noEv:
  307|    350|      constexpr static Choice no() { return Choice(0); }
_ZNK5Botan2CT6ChoicentEv:
  309|  3.05M|      constexpr Choice operator!() const { return Choice(~value()); }
_ZNK5Botan2CT6ChoiceaaERKS1_:
  311|  3.80M|      constexpr Choice operator&&(const Choice& other) const { return Choice(value() & other.value()); }
_ZNK5Botan2CT6ChoiceooERKS1_:
  313|   536k|      constexpr Choice operator||(const Choice& other) const { return Choice(value() | other.value()); }
_ZNK5Botan2CT6Choice7as_boolEv:
  329|  3.06M|      constexpr bool as_bool() const { return m_value != 0; }
_ZNK5Botan2CT6Choice5valueEv:
  332|  15.1M|      constexpr underlying_type value() const { return value_barrier(m_value); }
_ZN5Botan2CT6ChoiceC2Em:
  341|  17.5M|      constexpr explicit Choice(underlying_type v) : m_value(CT::value_barrier<underlying_type>(v)) {}
_ZN5Botan2CT4MaskImE7is_zeroEm:
  437|  80.5M|      static constexpr Mask<T> is_zero(T x) { return Mask<T>(ct_is_zero<T>(value_barrier<T>(x))); }
_ZNK5Botan2CT4MaskImE5valueEv:
  630|   214M|      constexpr T value() const { return value_barrier<T>(m_mask); }
_ZNK5Botan2CT4MaskImEcoEv:
  533|  31.9M|      constexpr Mask<T> operator~() const { return Mask<T>(~value()); }
_ZN5Botan2CT4MaskImE6expandEm:
  392|  31.7M|      static constexpr Mask<T> expand(T v) { return ~Mask<T>::is_zero(value_barrier<T>(v)); }
_ZN5Botan2CT6poisonImEEvPKT_m:
   56|  2.48M|constexpr inline void poison(const T* p, size_t n) {
   57|       |#if defined(BOTAN_HAS_VALGRIND)
   58|       |   if(!std::is_constant_evaluated()) {
   59|       |      VALGRIND_MAKE_MEM_UNDEFINED(p, n * sizeof(T));
   60|       |   }
   61|       |#endif
   62|       |
   63|  2.48M|   BOTAN_UNUSED(p, n);
  ------------------
  |  |  144|  2.48M|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   64|  2.48M|}
_ZN5Botan2CT6poisonITkNS_6ranges14spanable_rangeENSt3__16vectorImNS_16secure_allocatorImEEEEQaasr3stdE23is_trivially_copyable_vINS3_11conditionalIXsr21__is_primary_templateINS3_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS3_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS3_26indirectly_readable_traitsISF_EESG_E4type10value_typeEEnt17custom_poisonableISC_EEEvRKSC_:
  121|  25.4k|constexpr void poison(const R& r) {
  122|  25.4k|   const std::span s{r};
  123|  25.4k|   poison(s.data(), s.size());
  124|  25.4k|}
_ZN5Botan2CT8unpoisonImEEvPKT_m:
   67|  34.4M|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|  34.4M|   BOTAN_UNUSED(p, n);
  ------------------
  |  |  144|  34.4M|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   75|  34.4M|}
_ZN5Botan2CT8unpoisonITkNS_6ranges14spanable_rangeENSt3__16vectorImNS_16secure_allocatorImEEEEQaasr3stdE23is_trivially_copyable_vINS3_11conditionalIXsr21__is_primary_templateINS3_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS3_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS3_26indirectly_readable_traitsISF_EESG_E4type10value_typeEEnt19custom_unpoisonableISC_EEEvRKSC_:
  128|  7.35M|constexpr void unpoison(const R& r) {
  129|  7.35M|   const std::span s{r};
  130|  7.35M|   unpoison(s.data(), s.size());
  131|  7.35M|}
_ZNK5Botan2CT4MaskImE6selectEmm:
  548|  59.9M|      constexpr T select(T x, T y) const { return choose(value(), x, y); }
_ZNK5Botan2CT4MaskImE16conditional_swapImEEvRT_S5_QlestTL0__stS4_:
  587|  6.28k|      {
  588|  6.28k|         auto cnd = Mask<U>(*this);
  589|  6.28k|         U t0 = cnd.select(y, x);
  590|  6.28k|         U t1 = cnd.select(x, y);
  591|  6.28k|         x = t0;
  592|  6.28k|         y = t1;
  593|  6.28k|      }
_ZN5Botan2CT9all_zerosImEENS0_4MaskIT_EEPKS3_m:
  785|  4.66M|constexpr inline CT::Mask<T> all_zeros(const T elem[], size_t len) {
  786|  4.66M|   T sum = 0;
  787|  37.3M|   for(size_t i = 0; i != len; ++i) {
  ------------------
  |  Branch (787:22): [True: 32.6M, False: 4.66M]
  ------------------
  788|  32.6M|      sum |= elem[i];
  789|  32.6M|   }
  790|  4.66M|   return CT::Mask<T>::is_zero(sum);
  791|  4.66M|}
_ZN5Botan2CT4MaskImEC2Em:
  637|   154M|      constexpr explicit Mask(T m) : m_mask(m) {}
_ZNK5Botan2CT4MaskImE7as_boolEv:
  614|   421k|      constexpr bool as_bool() const { return unpoisoned_value() != 0; }
_ZNK5Botan2CT4MaskImE16unpoisoned_valueEv:
  598|  8.42M|      constexpr T unpoisoned_value() const {
  599|  8.42M|         T r = value();
  600|  8.42M|         CT::unpoison(r);
  601|  8.42M|         return r;
  602|  8.42M|      }
_ZN5Botan2CT8unpoisonITkNSt3__18integralEmEEvRKT_:
  112|  19.3M|constexpr void unpoison(const T& p) {
  113|  19.3M|   unpoison(&p, 1);
  114|  19.3M|}
_ZN5Botan2CTanENS0_4MaskImEES2_:
  518|   119k|      friend Mask<T> operator&(Mask<T> x, Mask<T> y) { return Mask<T>(x.value() & y.value()); }
_ZN5Botan2CT4MaskImE8is_equalEmm:
  442|  36.3M|      static constexpr Mask<T> is_equal(T x, T y) {
  443|  36.3M|         const T diff = value_barrier(x) ^ value_barrier(y);
  444|  36.3M|         return Mask<T>::is_zero(diff);
  445|  36.3M|      }
_ZNK5Botan2CT4MaskImE13if_set_returnEm:
  538|  29.6M|      constexpr T if_set_return(T x) const { return value() & x; }
_ZN5Botan2CT4MaskImE5is_ltEmm:
  450|  29.3M|      static constexpr Mask<T> is_lt(T x, T y) {
  451|  29.3M|         T u = x ^ ((x ^ y) | ((x - y) ^ x));
  452|  29.3M|         return Mask<T>::expand_top_bit(u);
  453|  29.3M|      }
_ZN5Botan2CT4MaskImE14expand_top_bitEm:
  415|  29.5M|      static constexpr Mask<T> expand_top_bit(T v) { return Mask<T>(ct_expand_top_bit<T>(v)); }
_ZN5Botan2CT20conditional_copy_memImEENS0_4MaskIT_EES3_PS3_PKS3_S7_m:
  738|  2.48M|constexpr inline Mask<T> conditional_copy_mem(T cnd, T* dest, const T* if_set, const T* if_unset, size_t elems) {
  739|  2.48M|   const auto mask = CT::Mask<T>::expand(cnd);
  740|  2.48M|   return CT::conditional_copy_mem(mask, dest, if_set, if_unset, elems);
  741|  2.48M|}
_ZN5Botan2CT20conditional_copy_memImEENS0_4MaskIT_EES4_PS3_PKS3_S7_m:
  732|  2.48M|constexpr inline Mask<T> conditional_copy_mem(Mask<T> mask, T* dest, const T* if_set, const T* if_unset, size_t elems) {
  733|  2.48M|   mask.select_n(dest, if_set, if_unset, elems);
  734|  2.48M|   return mask;
  735|  2.48M|}
_ZNK5Botan2CT4MaskImE8select_nEPmPKmS5_m:
  565|  30.9M|      constexpr void select_n(T output[], const T x[], const T y[], size_t len) const {
  566|  30.9M|         const T mask = value();
  567|   204M|         for(size_t i = 0; i != len; ++i) {
  ------------------
  |  Branch (567:28): [True: 173M, False: 30.9M]
  ------------------
  568|   173M|            output[i] = choose(mask, x[i], y[i]);
  569|   173M|         }
  570|  30.9M|      }
_ZNK5Botan2CT4MaskImE11select_maskES2_S2_:
  559|  12.3M|      Mask<T> select_mask(Mask<T> x, Mask<T> y) const { return Mask<T>(select(x.value(), y.value())); }
_ZN5Botan2CT4MaskImEoRES2_:
  510|   155k|      Mask<T>& operator|=(Mask<T> o) {
  511|   155k|         m_mask |= o.value();
  512|   155k|         return (*this);
  513|   155k|      }
_ZN5Botan2CT4MaskImEaNES2_:
  494|  2.14M|      Mask<T>& operator&=(Mask<T> o) {
  495|  2.14M|         m_mask &= o.value();
  496|  2.14M|         return (*this);
  497|  2.14M|      }
_ZN5Botan2CT4MaskImE11expand_boolEb:
  397|   534k|      static constexpr Mask<T> expand_bool(bool v) { return Mask<T>::expand(static_cast<T>(v)); }
_ZN5Botan2CT4MaskIhE11expand_boolEb:
  397|   541k|      static constexpr Mask<T> expand_bool(bool v) { return Mask<T>::expand(static_cast<T>(v)); }
_ZN5Botan2CT4MaskIhE6expandEh:
  392|   541k|      static constexpr Mask<T> expand(T v) { return ~Mask<T>::is_zero(value_barrier<T>(v)); }
_ZN5Botan2CT4MaskIhE7is_zeroEh:
  437|   541k|      static constexpr Mask<T> is_zero(T x) { return Mask<T>(ct_is_zero<T>(value_barrier<T>(x))); }
_ZN5Botan2CT4MaskIhEC2Eh:
  637|  1.08M|      constexpr explicit Mask(T m) : m_mask(m) {}
_ZNK5Botan2CT4MaskIhEcoEv:
  533|   541k|      constexpr Mask<T> operator~() const { return Mask<T>(~value()); }
_ZNK5Botan2CT4MaskIhE5valueEv:
  630|  1.08M|      constexpr T value() const { return value_barrier<T>(m_mask); }
_ZNK5Botan2CT4MaskIhE6selectEhh:
  548|   541k|      constexpr T select(T x, T y) const { return choose(value(), x, y); }
_ZNK5Botan2CT4MaskImE9as_choiceEv:
  619|  8.00M|      constexpr CT::Choice as_choice() const {
  620|  8.00M|         if constexpr(sizeof(T) >= sizeof(Choice::underlying_type)) {
  621|  8.00M|            return CT::Choice::from_mask(static_cast<Choice::underlying_type>(unpoisoned_value()));
  622|       |         } else {
  623|       |            return CT::Choice::from_int(unpoisoned_value());
  624|       |         }
  625|  8.00M|      }
_ZN5Botan2CT4MaskImE6is_gteEmm:
  468|   253k|      static constexpr Mask<T> is_gte(T x, T y) { return ~Mask<T>::is_lt(x, y); }
_ZN5Botan2CTorENS0_4MaskImEES2_:
  528|   253k|      friend Mask<T> operator|(Mask<T> x, Mask<T> y) { return Mask<T>(x.value() | y.value()); }
_ZN5Botan2CTeoENS0_4MaskImEES2_:
  523|    224|      friend Mask<T> operator^(Mask<T> x, Mask<T> y) { return Mask<T>(x.value() ^ y.value()); }
_ZN5Botan2CT6Choice8from_intIjQaasr3stdE17unsigned_integralIT_Entsr3stdE7same_asIbS3_EEES1_S3_:
  268|  2.18M|      constexpr static Choice from_int(T v) {
  269|  2.18M|         if constexpr(sizeof(T) <= sizeof(underlying_type)) {
  270|  2.18M|            return !Choice(ct_is_zero<underlying_type>(v));
  271|       |         } else {
  272|       |            // Mask of T that is either |0| or |1|
  273|       |            const T v_is_0 = ct_is_zero<T>(value_barrier<T>(v));
  274|       |
  275|       |            // We want the mask to be set if v != 0 so we must check that
  276|       |            // v_is_0 is itself zero.
  277|       |            //
  278|       |            // Also sizeof(T) may not equal sizeof(underlying_type) so we must
  279|       |            // use ct_is_zero<underlying_type>. It's ok to either truncate or
  280|       |            // zero extend v_is_0 to 32 bits since we know it is |0| or |1|
  281|       |            // so even just the low bit is sufficient.
  282|       |            return Choice(ct_is_zero<underlying_type>(static_cast<underlying_type>(v_is_0)));
  283|       |         }
  284|  2.18M|      }
_ZN5Botan2CT6poisonITkNS_6ranges14spanable_rangeENSt3__14spanIKmLm18446744073709551615EEEQaasr3stdE23is_trivially_copyable_vINS3_11conditionalIXsr21__is_primary_templateINS3_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS3_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS3_26indirectly_readable_traitsISE_EESF_E4type10value_typeEEnt17custom_poisonableISB_EEEvRKSB_:
  121|  2.45M|constexpr void poison(const R& r) {
  122|  2.45M|   const std::span s{r};
  123|  2.45M|   poison(s.data(), s.size());
  124|  2.45M|}
_ZN5Botan2CT8unpoisonITkNS_6ranges14spanable_rangeENSt3__14spanIKmLm18446744073709551615EEEQaasr3stdE23is_trivially_copyable_vINS3_11conditionalIXsr21__is_primary_templateINS3_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS3_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS3_26indirectly_readable_traitsISE_EESF_E4type10value_typeEEnt19custom_unpoisonableISB_EEEvRKSB_:
  128|  2.45M|constexpr void unpoison(const R& r) {
  129|  2.45M|   const std::span s{r};
  130|  2.45M|   unpoison(s.data(), s.size());
  131|  2.45M|}
_ZN5Botan2CT4MaskImE15if_set_zero_outEPmm:
  575|  2.38M|      constexpr void if_set_zero_out(T buf[], size_t elems) {
  576|  23.8M|         for(size_t i = 0; i != elems; ++i) {
  ------------------
  |  Branch (576:28): [True: 21.4M, False: 2.38M]
  ------------------
  577|  21.4M|            buf[i] = this->if_not_set_return(buf[i]);
  578|  21.4M|         }
  579|  2.38M|      }
_ZNK5Botan2CT4MaskImE17if_not_set_returnEm:
  543|  21.6M|      constexpr T if_not_set_return(T x) const { return ~value() & x; }
_ZN5Botan2CT22conditional_assign_memImEENS0_4MaskIT_EES3_PS3_PKS3_m:
  749|  21.0M|constexpr inline Mask<T> conditional_assign_mem(T cnd, T* dest, const T* src, size_t elems) {
  750|  21.0M|   const auto mask = CT::Mask<T>::expand(cnd);
  751|  21.0M|   mask.select_n(dest, src, dest, elems);
  752|  21.0M|   return mask;
  753|  21.0M|}
_ZN5Botan2CT4MaskImE7clearedEv:
  387|  13.4k|      static constexpr Mask<T> cleared() { return Mask<T>(0); }
_ZN5Botan2CT16driveby_unpoisonITkNS0_12unpoisonableEmEEDcOT_Qsr3stdE21is_rvalue_reference_vIDtfp_EE:
  245|  1.33k|{
  246|  1.33k|   unpoison(v);
  247|  1.33k|   return std::forward<T>(v);
  248|  1.33k|}
_ZNK5Botan2CT6Choice12into_bitmaskImQaasr3stdE17unsigned_integralIT_Entsr3stdE7same_asIbS3_EEES3_v:
  291|  3.44M|      constexpr T into_bitmask() const {
  292|  3.44M|         if constexpr(sizeof(T) <= sizeof(underlying_type)) {
  293|       |            // The inner mask is already |0| or |1| so just truncate
  294|  3.44M|            return static_cast<T>(value());
  295|       |         } else {
  296|       |            return ~ct_is_zero<T>(value());
  297|       |         }
  298|  3.44M|      }
_ZN5Botan2CT6poisonIhEEvPKT_m:
   56|  1.34k|constexpr inline void poison(const T* p, size_t n) {
   57|       |#if defined(BOTAN_HAS_VALGRIND)
   58|       |   if(!std::is_constant_evaluated()) {
   59|       |      VALGRIND_MAKE_MEM_UNDEFINED(p, n * sizeof(T));
   60|       |   }
   61|       |#endif
   62|       |
   63|  1.34k|   BOTAN_UNUSED(p, n);
  ------------------
  |  |  144|  1.34k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   64|  1.34k|}
pcurves_brainpool256r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES4_E11FieldParamsEEEEES9_EEEEvRKT_:
  138|    164|constexpr void poison(const T& x) {
  139|    164|   x._const_time_poison();
  140|    164|}
pcurves_brainpool256r1.cpp:_ZN5Botan2CT10poison_allITpTkNS0_10poisonableEJNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES3_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  201|    164|constexpr void poison_all(const Ts&... ts) {
  202|    164|   (poison(ts), ...);
  203|    164|}
pcurves_brainpool256r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES3_E11FieldParamsEEEEEEEvRKT_:
  138|    492|constexpr void poison(const T& x) {
  139|    492|   x._const_time_poison();
  140|    492|}
_ZN5Botan2CT6poisonITkNS_6ranges14spanable_rangeENSt3__15arrayImLm4EEEQaasr3stdE23is_trivially_copyable_vINS3_11conditionalIXsr21__is_primary_templateINS3_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS3_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS3_26indirectly_readable_traitsISD_EESE_E4type10value_typeEEnt17custom_poisonableISA_EEEvRKSA_:
  121|  1.78k|constexpr void poison(const R& r) {
  122|  1.78k|   const std::span s{r};
  123|  1.78k|   poison(s.data(), s.size());
  124|  1.78k|}
pcurves_brainpool256r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES4_E11FieldParamsEEEEES9_EEEEvRKT_:
  143|    164|constexpr void unpoison(const T& x) {
  144|    164|   x._const_time_unpoison();
  145|    164|}
pcurves_brainpool256r1.cpp:_ZN5Botan2CT12unpoison_allITpTkNS0_12unpoisonableEJNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES3_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  207|    164|constexpr void unpoison_all(const Ts&... ts) {
  208|    164|   (unpoison(ts), ...);
  209|    164|}
pcurves_brainpool256r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES3_E11FieldParamsEEEEEEEvRKT_:
  143|    492|constexpr void unpoison(const T& x) {
  144|    492|   x._const_time_unpoison();
  145|    492|}
_ZN5Botan2CT8unpoisonITkNS_6ranges14spanable_rangeENSt3__15arrayImLm4EEEQaasr3stdE23is_trivially_copyable_vINS3_11conditionalIXsr21__is_primary_templateINS3_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS3_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS3_26indirectly_readable_traitsISD_EESE_E4type10value_typeEEnt19custom_unpoisonableISA_EEEvRKSA_:
  128|  1.78k|constexpr void unpoison(const R& r) {
  129|  1.78k|   const std::span s{r};
  130|  1.78k|   unpoison(s.data(), s.size());
  131|  1.78k|}
_ZN5Botan2CT8unpoisonIhEEvPKT_m:
   67|  1.52k|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|  1.52k|   BOTAN_UNUSED(p, n);
  ------------------
  |  |  144|  1.52k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   75|  1.52k|}
_ZN5Botan2CT8is_equalImEENS0_4MaskIT_EEPKS3_S6_m:
  798|  1.71k|constexpr inline CT::Mask<T> is_equal(const T x[], const T y[], size_t len) {
  799|  1.71k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (799:7): [Folded, False: 1.71k]
  ------------------
  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|  1.71k|   } else {
  808|  1.71k|      volatile T difference = 0;
  809|       |
  810|  11.1k|      for(size_t i = 0; i != len; ++i) {
  ------------------
  |  Branch (810:25): [True: 9.40k, False: 1.71k]
  ------------------
  811|  9.40k|         difference = difference | (x[i] ^ y[i]);
  812|  9.40k|      }
  813|       |
  814|  1.71k|      return CT::Mask<T>::is_zero(difference);
  815|  1.71k|   }
  816|  1.71k|}
pcurves_brainpool384r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES4_E11FieldParamsEEEEES9_EEEEvRKT_:
  138|    146|constexpr void poison(const T& x) {
  139|    146|   x._const_time_poison();
  140|    146|}
pcurves_brainpool384r1.cpp:_ZN5Botan2CT10poison_allITpTkNS0_10poisonableEJNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES3_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  201|    146|constexpr void poison_all(const Ts&... ts) {
  202|    146|   (poison(ts), ...);
  203|    146|}
pcurves_brainpool384r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES3_E11FieldParamsEEEEEEEvRKT_:
  138|    438|constexpr void poison(const T& x) {
  139|    438|   x._const_time_poison();
  140|    438|}
_ZN5Botan2CT6poisonITkNS_6ranges14spanable_rangeENSt3__15arrayImLm6EEEQaasr3stdE23is_trivially_copyable_vINS3_11conditionalIXsr21__is_primary_templateINS3_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS3_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS3_26indirectly_readable_traitsISD_EESE_E4type10value_typeEEnt17custom_poisonableISA_EEEvRKSA_:
  121|    900|constexpr void poison(const R& r) {
  122|    900|   const std::span s{r};
  123|    900|   poison(s.data(), s.size());
  124|    900|}
pcurves_brainpool384r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES4_E11FieldParamsEEEEES9_EEEEvRKT_:
  143|    146|constexpr void unpoison(const T& x) {
  144|    146|   x._const_time_unpoison();
  145|    146|}
pcurves_brainpool384r1.cpp:_ZN5Botan2CT12unpoison_allITpTkNS0_12unpoisonableEJNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES3_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  207|    146|constexpr void unpoison_all(const Ts&... ts) {
  208|    146|   (unpoison(ts), ...);
  209|    146|}
pcurves_brainpool384r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES3_E11FieldParamsEEEEEEEvRKT_:
  143|    438|constexpr void unpoison(const T& x) {
  144|    438|   x._const_time_unpoison();
  145|    438|}
_ZN5Botan2CT8unpoisonITkNS_6ranges14spanable_rangeENSt3__15arrayImLm6EEEQaasr3stdE23is_trivially_copyable_vINS3_11conditionalIXsr21__is_primary_templateINS3_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS3_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS3_26indirectly_readable_traitsISD_EESE_E4type10value_typeEEnt19custom_unpoisonableISA_EEEvRKSA_:
  128|    900|constexpr void unpoison(const R& r) {
  129|    900|   const std::span s{r};
  130|    900|   unpoison(s.data(), s.size());
  131|    900|}
pcurves_brainpool512r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES4_E11FieldParamsEEEEES9_EEEEvRKT_:
  138|    171|constexpr void poison(const T& x) {
  139|    171|   x._const_time_poison();
  140|    171|}
pcurves_brainpool512r1.cpp:_ZN5Botan2CT10poison_allITpTkNS0_10poisonableEJNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES3_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  201|    171|constexpr void poison_all(const Ts&... ts) {
  202|    171|   (poison(ts), ...);
  203|    171|}
pcurves_brainpool512r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES3_E11FieldParamsEEEEEEEvRKT_:
  138|    513|constexpr void poison(const T& x) {
  139|    513|   x._const_time_poison();
  140|    513|}
_ZN5Botan2CT6poisonITkNS_6ranges14spanable_rangeENSt3__15arrayImLm8EEEQaasr3stdE23is_trivially_copyable_vINS3_11conditionalIXsr21__is_primary_templateINS3_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS3_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS3_26indirectly_readable_traitsISD_EESE_E4type10value_typeEEnt17custom_poisonableISA_EEEvRKSA_:
  121|    513|constexpr void poison(const R& r) {
  122|    513|   const std::span s{r};
  123|    513|   poison(s.data(), s.size());
  124|    513|}
pcurves_brainpool512r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES4_E11FieldParamsEEEEES9_EEEEvRKT_:
  143|    171|constexpr void unpoison(const T& x) {
  144|    171|   x._const_time_unpoison();
  145|    171|}
pcurves_brainpool512r1.cpp:_ZN5Botan2CT12unpoison_allITpTkNS0_12unpoisonableEJNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES3_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  207|    171|constexpr void unpoison_all(const Ts&... ts) {
  208|    171|   (unpoison(ts), ...);
  209|    171|}
pcurves_brainpool512r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES3_E11FieldParamsEEEEEEEvRKT_:
  143|    513|constexpr void unpoison(const T& x) {
  144|    513|   x._const_time_unpoison();
  145|    513|}
_ZN5Botan2CT8unpoisonITkNS_6ranges14spanable_rangeENSt3__15arrayImLm8EEEQaasr3stdE23is_trivially_copyable_vINS3_11conditionalIXsr21__is_primary_templateINS3_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS3_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS3_26indirectly_readable_traitsISD_EESE_E4type10value_typeEEnt19custom_unpoisonableISA_EEEvRKSA_:
  128|    513|constexpr void unpoison(const R& r) {
  129|    513|   const std::span s{r};
  130|    513|   unpoison(s.data(), s.size());
  131|    513|}
_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_6PCurve22GenericProjectivePointEEEvRKT_:
  138|    248|constexpr void poison(const T& x) {
  139|    248|   x._const_time_poison();
  140|    248|}
pcurves_generic.cpp:_ZN5Botan2CT10poison_allITpTkNS0_10poisonableEJNS_6PCurve12_GLOBAL__N_112GenericFieldES4_S4_EQgtsZT_Li0EEEvDpRKT_:
  201|    248|constexpr void poison_all(const Ts&... ts) {
  202|    248|   (poison(ts), ...);
  203|    248|}
pcurves_generic.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_6PCurve12_GLOBAL__N_112GenericFieldEEEvRKT_:
  138|    744|constexpr void poison(const T& x) {
  139|    744|   x._const_time_poison();
  140|    744|}
_ZN5Botan2CT6poisonITkNS_6ranges14spanable_rangeENSt3__15arrayImLm9EEEQaasr3stdE23is_trivially_copyable_vINS3_11conditionalIXsr21__is_primary_templateINS3_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS3_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS3_26indirectly_readable_traitsISD_EESE_E4type10value_typeEEnt17custom_poisonableISA_EEEvRKSA_:
  121|  1.27k|constexpr void poison(const R& r) {
  122|  1.27k|   const std::span s{r};
  123|  1.27k|   poison(s.data(), s.size());
  124|  1.27k|}
_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_6PCurve22GenericProjectivePointEEEvRKT_:
  143|    248|constexpr void unpoison(const T& x) {
  144|    248|   x._const_time_unpoison();
  145|    248|}
pcurves_generic.cpp:_ZN5Botan2CT12unpoison_allITpTkNS0_12unpoisonableEJNS_6PCurve12_GLOBAL__N_112GenericFieldES4_S4_EQgtsZT_Li0EEEvDpRKT_:
  207|    248|constexpr void unpoison_all(const Ts&... ts) {
  208|    248|   (unpoison(ts), ...);
  209|    248|}
pcurves_generic.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_6PCurve12_GLOBAL__N_112GenericFieldEEEvRKT_:
  143|    744|constexpr void unpoison(const T& x) {
  144|    744|   x._const_time_unpoison();
  145|    744|}
_ZN5Botan2CT8unpoisonITkNS_6ranges14spanable_rangeENSt3__15arrayImLm9EEEQaasr3stdE23is_trivially_copyable_vINS3_11conditionalIXsr21__is_primary_templateINS3_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS3_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS3_26indirectly_readable_traitsISD_EESE_E4type10value_typeEEnt19custom_unpoisonableISA_EEEvRKSA_:
  128|  1.27k|constexpr void unpoison(const R& r) {
  129|  1.27k|   const std::span s{r};
  130|  1.27k|   unpoison(s.data(), s.size());
  131|  1.27k|}
pcurves_secp224r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS6_6ParamsES7_E11FieldParamsEEEEES9_EEEEvRKT_:
  138|    198|constexpr void poison(const T& x) {
  139|    198|   x._const_time_poison();
  140|    198|}
pcurves_secp224r1.cpp:_ZN5Botan2CT10poison_allITpTkNS0_10poisonableEJNS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  201|    198|constexpr void poison_all(const Ts&... ts) {
  202|    198|   (poison(ts), ...);
  203|    198|}
pcurves_secp224r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEEEEvRKT_:
  138|    594|constexpr void poison(const T& x) {
  139|    594|   x._const_time_poison();
  140|    594|}
pcurves_secp224r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS6_6ParamsES7_E11FieldParamsEEEEES9_EEEEvRKT_:
  143|    198|constexpr void unpoison(const T& x) {
  144|    198|   x._const_time_unpoison();
  145|    198|}
pcurves_secp224r1.cpp:_ZN5Botan2CT12unpoison_allITpTkNS0_12unpoisonableEJNS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  207|    198|constexpr void unpoison_all(const Ts&... ts) {
  208|    198|   (unpoison(ts), ...);
  209|    198|}
pcurves_secp224r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEEEEvRKT_:
  143|    594|constexpr void unpoison(const T& x) {
  144|    594|   x._const_time_unpoison();
  145|    594|}
pcurves_secp256k1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS6_6ParamsES7_E11FieldParamsEEEEES9_EEEEvRKT_:
  138|    149|constexpr void poison(const T& x) {
  139|    149|   x._const_time_poison();
  140|    149|}
pcurves_secp256k1.cpp:_ZN5Botan2CT10poison_allITpTkNS0_10poisonableEJNS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  201|    149|constexpr void poison_all(const Ts&... ts) {
  202|    149|   (poison(ts), ...);
  203|    149|}
pcurves_secp256k1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEEEEvRKT_:
  138|    447|constexpr void poison(const T& x) {
  139|    447|   x._const_time_poison();
  140|    447|}
pcurves_secp256k1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS6_6ParamsES7_E11FieldParamsEEEEES9_EEEEvRKT_:
  143|    149|constexpr void unpoison(const T& x) {
  144|    149|   x._const_time_unpoison();
  145|    149|}
pcurves_secp256k1.cpp:_ZN5Botan2CT12unpoison_allITpTkNS0_12unpoisonableEJNS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  207|    149|constexpr void unpoison_all(const Ts&... ts) {
  208|    149|   (unpoison(ts), ...);
  209|    149|}
pcurves_secp256k1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEEEEvRKT_:
  143|    447|constexpr void unpoison(const T& x) {
  144|    447|   x._const_time_unpoison();
  145|    447|}
pcurves_secp256r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS5_9secp256r16ParamsES6_E11FieldParamsEEEEES9_EEEEvRKT_:
  138|     85|constexpr void poison(const T& x) {
  139|     85|   x._const_time_poison();
  140|     85|}
pcurves_secp256r1.cpp:_ZN5Botan2CT10poison_allITpTkNS0_10poisonableEJNS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS4_9secp256r16ParamsES5_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  201|     85|constexpr void poison_all(const Ts&... ts) {
  202|     85|   (poison(ts), ...);
  203|     85|}
pcurves_secp256r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS4_9secp256r16ParamsES5_E11FieldParamsEEEEEEEvRKT_:
  138|    255|constexpr void poison(const T& x) {
  139|    255|   x._const_time_poison();
  140|    255|}
pcurves_secp256r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS5_9secp256r16ParamsES6_E11FieldParamsEEEEES9_EEEEvRKT_:
  143|     85|constexpr void unpoison(const T& x) {
  144|     85|   x._const_time_unpoison();
  145|     85|}
pcurves_secp256r1.cpp:_ZN5Botan2CT12unpoison_allITpTkNS0_12unpoisonableEJNS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS4_9secp256r16ParamsES5_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  207|     85|constexpr void unpoison_all(const Ts&... ts) {
  208|     85|   (unpoison(ts), ...);
  209|     85|}
pcurves_secp256r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS4_9secp256r16ParamsES5_E11FieldParamsEEEEEEEvRKT_:
  143|    255|constexpr void unpoison(const T& x) {
  144|    255|   x._const_time_unpoison();
  145|    255|}
pcurves_secp384r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS5_9secp384r16ParamsES6_E11FieldParamsEEEEES9_EEEEvRKT_:
  138|    154|constexpr void poison(const T& x) {
  139|    154|   x._const_time_poison();
  140|    154|}
pcurves_secp384r1.cpp:_ZN5Botan2CT10poison_allITpTkNS0_10poisonableEJNS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS4_9secp384r16ParamsES5_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  201|    154|constexpr void poison_all(const Ts&... ts) {
  202|    154|   (poison(ts), ...);
  203|    154|}
pcurves_secp384r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS4_9secp384r16ParamsES5_E11FieldParamsEEEEEEEvRKT_:
  138|    462|constexpr void poison(const T& x) {
  139|    462|   x._const_time_poison();
  140|    462|}
pcurves_secp384r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS5_9secp384r16ParamsES6_E11FieldParamsEEEEES9_EEEEvRKT_:
  143|    154|constexpr void unpoison(const T& x) {
  144|    154|   x._const_time_unpoison();
  145|    154|}
pcurves_secp384r1.cpp:_ZN5Botan2CT12unpoison_allITpTkNS0_12unpoisonableEJNS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS4_9secp384r16ParamsES5_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  207|    154|constexpr void unpoison_all(const Ts&... ts) {
  208|    154|   (unpoison(ts), ...);
  209|    154|}
pcurves_secp384r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS4_9secp384r16ParamsES5_E11FieldParamsEEEEEEEvRKT_:
  143|    462|constexpr void unpoison(const T& x) {
  144|    462|   x._const_time_unpoison();
  145|    462|}
pcurves_secp521r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS6_6ParamsES7_E11FieldParamsEEEEES9_EEEEvRKT_:
  138|    176|constexpr void poison(const T& x) {
  139|    176|   x._const_time_poison();
  140|    176|}
pcurves_secp521r1.cpp:_ZN5Botan2CT10poison_allITpTkNS0_10poisonableEJNS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  201|    176|constexpr void poison_all(const Ts&... ts) {
  202|    176|   (poison(ts), ...);
  203|    176|}
pcurves_secp521r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEEEEvRKT_:
  138|    528|constexpr void poison(const T& x) {
  139|    528|   x._const_time_poison();
  140|    528|}
pcurves_secp521r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS6_6ParamsES7_E11FieldParamsEEEEES9_EEEEvRKT_:
  143|    176|constexpr void unpoison(const T& x) {
  144|    176|   x._const_time_unpoison();
  145|    176|}
pcurves_secp521r1.cpp:_ZN5Botan2CT12unpoison_allITpTkNS0_12unpoisonableEJNS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  207|    176|constexpr void unpoison_all(const Ts&... ts) {
  208|    176|   (unpoison(ts), ...);
  209|    176|}
pcurves_secp521r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEEEEvRKT_:
  143|    528|constexpr void unpoison(const T& x) {
  144|    528|   x._const_time_unpoison();
  145|    528|}
_ZN5Botan2CT12poison_rangeITkNSt3__16ranges5rangeENS2_6vectorINS_14Montgomery_IntENS2_9allocatorIS5_EEEEQ10poisonableINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS3_5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISF_EESG_E4type10value_typeEEEEvRKSC_:
  181|  1.58k|constexpr void poison_range(const R& r) {
  182|  25.4k|   for(const auto& v : r) {
  ------------------
  |  Branch (182:22): [True: 25.4k, False: 1.58k]
  ------------------
  183|  25.4k|      poison(v);
  184|  25.4k|   }
  185|  1.58k|}
_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_14Montgomery_IntEEEvRKT_:
  138|  25.4k|constexpr void poison(const T& x) {
  139|  25.4k|   x._const_time_poison();
  140|  25.4k|}
_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_14Montgomery_IntEEEvRKT_:
  143|  1.51k|constexpr void unpoison(const T& x) {
  144|  1.51k|   x._const_time_unpoison();
  145|  1.51k|}
_ZN5Botan2CT8unpoisonITkNS_6ranges14spanable_rangeENSt3__16vectorIhNS_16secure_allocatorIhEEEEQaasr3stdE23is_trivially_copyable_vINS3_11conditionalIXsr21__is_primary_templateINS3_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS3_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS3_26indirectly_readable_traitsISF_EESG_E4type10value_typeEEnt19custom_unpoisonableISC_EEEvRKSC_:
  128|      1|constexpr void unpoison(const R& r) {
  129|      1|   const std::span s{r};
  130|      1|   unpoison(s.data(), s.size());
  131|      1|}
_ZNK5Botan2CT4MaskIjE5valueEv:
  630|   124k|      constexpr T value() const { return value_barrier<T>(m_mask); }
_ZNK5Botan2CT4MaskIjE13if_set_returnEj:
  538|   123k|      constexpr T if_set_return(T x) const { return value() & x; }
_ZN5Botan2CT6poisonITkNS_6ranges14spanable_rangeENSt3__16vectorIhNS_16secure_allocatorIhEEEEQaasr3stdE23is_trivially_copyable_vINS3_11conditionalIXsr21__is_primary_templateINS3_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS3_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS3_26indirectly_readable_traitsISF_EESG_E4type10value_typeEEnt17custom_poisonableISC_EEEvRKSC_:
  121|      1|constexpr void poison(const R& r) {
  122|      1|   const std::span s{r};
  123|      1|   poison(s.data(), s.size());
  124|      1|}
_ZN5Botan2CT8unpoisonITkNSt3__18integralEbEEvRKT_:
  112|   320k|constexpr void unpoison(const T& p) {
  113|   320k|   unpoison(&p, 1);
  114|   320k|}
_ZN5Botan2CT8unpoisonIbEEvPKT_m:
   67|   320k|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|   320k|   BOTAN_UNUSED(p, n);
  ------------------
  |  |  144|   320k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   75|   320k|}
_ZN5Botan2CT4MaskIjEC2Ej:
  637|   124k|      constexpr explicit Mask(T m) : m_mask(m) {}
_ZN5Botan2CT4MaskIjE8is_equalEjj:
  442|  1.15k|      static constexpr Mask<T> is_equal(T x, T y) {
  443|  1.15k|         const T diff = value_barrier(x) ^ value_barrier(y);
  444|  1.15k|         return Mask<T>::is_zero(diff);
  445|  1.15k|      }
_ZN5Botan2CT4MaskIjE7is_zeroEj:
  437|  1.15k|      static constexpr Mask<T> is_zero(T x) { return Mask<T>(ct_is_zero<T>(value_barrier<T>(x))); }
_ZN5Botan2CT16driveby_unpoisonITkNS0_12unpoisonableEbEEDcOT_Qsr3stdE21is_rvalue_reference_vIDtfp_EE:
  245|   320k|{
  246|   320k|   unpoison(v);
  247|   320k|   return std::forward<T>(v);
  248|   320k|}
_ZN5Botan2CT13scoped_poisonIJNSt3__16vectorIhNS_16secure_allocatorIhEEEEEQaaaagtsZT_Li0Efraa10poisonableIT_Efraa12unpoisonableIS7_EEEDaDpRKS7_:
  222|      1|[[nodiscard]] constexpr auto scoped_poison(const Ts&... xs) {
  223|      1|   auto scope = scoped_cleanup([&] { unpoison_all(xs...); });
  224|      1|   poison_all(xs...);
  225|      1|   return scope;
  226|      1|}
_ZN5Botan2CT10poison_allITpTkNS0_10poisonableEJNSt3__16vectorIhNS_16secure_allocatorIhEEEEEQgtsZT_Li0EEEvDpRKT_:
  201|      1|constexpr void poison_all(const Ts&... ts) {
  202|      1|   (poison(ts), ...);
  203|      1|}
_ZZN5Botan2CT13scoped_poisonIJNSt3__16vectorIhNS_16secure_allocatorIhEEEEEQaaaagtsZT_Li0Efraa10poisonableIT_Efraa12unpoisonableIS7_EEEDaDpRKS7_ENKUlvE_clEv:
  223|      1|   auto scope = scoped_cleanup([&] { unpoison_all(xs...); });
_ZN5Botan2CT12unpoison_allITpTkNS0_12unpoisonableEJNSt3__16vectorIhNS_16secure_allocatorIhEEEEEQgtsZT_Li0EEEvDpRKT_:
  207|      1|constexpr void unpoison_all(const Ts&... ts) {
  208|      1|   (unpoison(ts), ...);
  209|      1|}
_ZN5Botan2CT8unpoisonITkNS_6ranges14spanable_rangeENSt3__15arrayIhLm56EEEQaasr3stdE23is_trivially_copyable_vINS3_11conditionalIXsr21__is_primary_templateINS3_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS3_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS3_26indirectly_readable_traitsISD_EESE_E4type10value_typeEEnt19custom_unpoisonableISA_EEEvRKSA_:
  128|      1|constexpr void unpoison(const R& r) {
  129|      1|   const std::span s{r};
  130|      1|   unpoison(s.data(), s.size());
  131|      1|}
_ZN5Botan2CT4MaskImEeOES2_:
  502|    448|      Mask<T>& operator^=(Mask<T> o) {
  503|    448|         m_mask ^= o.value();
  504|    448|         return (*this);
  505|    448|      }
_ZN5Botan2CT4MaskIjE14expand_top_bitEj:
  415|   123k|      static constexpr Mask<T> expand_top_bit(T v) { return Mask<T>(ct_expand_top_bit<T>(v)); }
_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS2_6DomainE0EEEEEvRKT_:
  138|    900|constexpr void poison(const T& x) {
  139|    900|   x._const_time_poison();
  140|    900|}
_ZN5Botan2CT6poisonITkNS_6ranges14spanable_rangeENSt3__14spanIiLm256EEEQaasr3stdE23is_trivially_copyable_vINS3_11conditionalIXsr21__is_primary_templateINS3_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS3_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS3_26indirectly_readable_traitsISD_EESE_E4type10value_typeEEnt17custom_poisonableISA_EEEvRKSA_:
  121|    900|constexpr void poison(const R& r) {
  122|    900|   const std::span s{r};
  123|    900|   poison(s.data(), s.size());
  124|    900|}
_ZN5Botan2CT6poisonIiEEvPKT_m:
   56|    900|constexpr inline void poison(const T* p, size_t n) {
   57|       |#if defined(BOTAN_HAS_VALGRIND)
   58|       |   if(!std::is_constant_evaluated()) {
   59|       |      VALGRIND_MAKE_MEM_UNDEFINED(p, n * sizeof(T));
   60|       |   }
   61|       |#endif
   62|       |
   63|    900|   BOTAN_UNUSED(p, n);
  ------------------
  |  |  144|    900|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   64|    900|}
_ZN5Botan2CT6poisonITkNS_6ranges14spanable_rangeENS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_24DilithiumSeedRandomness_EJEEEQaasr3stdE23is_trivially_copyable_vINS4_11conditionalIXsr21__is_primary_templateINS4_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS4_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS4_26indirectly_readable_traitsISI_EESJ_E4type10value_typeEEnt17custom_poisonableISF_EEEvRKSF_:
  121|     75|constexpr void poison(const R& r) {
  122|     75|   const std::span s{r};
  123|     75|   poison(s.data(), s.size());
  124|     75|}
_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS2_6DomainE0EEEEEvRKT_:
  143|    300|constexpr void unpoison(const T& x) {
  144|    300|   x._const_time_unpoison();
  145|    300|}
_ZN5Botan2CT14unpoison_rangeITkNSt3__16ranges5rangeENS2_6vectorINS_8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS5_6DomainE0EEENS2_9allocatorIS9_EEEEQ12unpoisonableINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS3_5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISJ_EESK_E4type10value_typeEEEEvRKSG_:
  189|    300|constexpr void unpoison_range(const R& r) {
  190|  1.86k|   for(const auto& v : r) {
  ------------------
  |  Branch (190:22): [True: 1.86k, False: 300]
  ------------------
  191|  1.86k|      unpoison(v);
  192|  1.86k|   }
  193|    300|}
_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS2_6DomainE0EEEEEvRKT_:
  143|  1.86k|constexpr void unpoison(const T& x) {
  144|  1.86k|   x._const_time_unpoison();
  145|  1.86k|}
_ZN5Botan2CT8unpoisonITkNS_6ranges14spanable_rangeENSt3__14spanIiLm256EEEQaasr3stdE23is_trivially_copyable_vINS3_11conditionalIXsr21__is_primary_templateINS3_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS3_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS3_26indirectly_readable_traitsISD_EESE_E4type10value_typeEEnt19custom_unpoisonableISA_EEEvRKSA_:
  128|  1.86k|constexpr void unpoison(const R& r) {
  129|  1.86k|   const std::span s{r};
  130|  1.86k|   unpoison(s.data(), s.size());
  131|  1.86k|}
_ZN5Botan2CT8unpoisonIiEEvPKT_m:
   67|  1.86k|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|  1.86k|   BOTAN_UNUSED(p, n);
  ------------------
  |  |  144|  1.86k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   75|  1.86k|}
_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_28Dilithium_PrivateKeyInternalEEEvRKT_:
  143|     75|constexpr void unpoison(const T& x) {
  144|     75|   x._const_time_unpoison();
  145|     75|}
_ZN5Botan2CT12unpoison_allITpTkNS0_12unpoisonableEJNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_15DilithiumSeedK_EJEEENS_8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNSA_6DomainE0EEESE_SE_EQgtsZT_Li0EEEvDpRKT_:
  207|     75|constexpr void unpoison_all(const Ts&... ts) {
  208|     75|   (unpoison(ts), ...);
  209|     75|}
_ZN5Botan2CT8unpoisonITkNS_6ranges14spanable_rangeENS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_15DilithiumSeedK_EJEEEQaasr3stdE23is_trivially_copyable_vINS4_11conditionalIXsr21__is_primary_templateINS4_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS4_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS4_26indirectly_readable_traitsISI_EESJ_E4type10value_typeEEnt19custom_unpoisonableISF_EEEvRKSF_:
  128|     75|constexpr void unpoison(const R& r) {
  129|     75|   const std::span s{r};
  130|     75|   unpoison(s.data(), s.size());
  131|     75|}
_ZN5Botan2CT8unpoisonINS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_24DilithiumSeedRandomness_EJEEEQrQRKT__Xclgssr5Botan2CTE8unpoisonfL0p_EEEEvRKNS3_8optionalISA_EE:
  160|     75|constexpr void unpoison(const std::optional<T>& x) {
  161|     75|   if(x.has_value()) {
  ------------------
  |  Branch (161:7): [True: 75, False: 0]
  ------------------
  162|     75|      unpoison(*x);
  163|     75|   }
  164|     75|}
_ZN5Botan2CT8unpoisonITkNS_6ranges14spanable_rangeENS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_24DilithiumSeedRandomness_EJEEEQaasr3stdE23is_trivially_copyable_vINS4_11conditionalIXsr21__is_primary_templateINS4_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS4_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS4_26indirectly_readable_traitsISI_EESJ_E4type10value_typeEEnt19custom_unpoisonableISF_EEEvRKSF_:
  128|     75|constexpr void unpoison(const R& r) {
  129|     75|   const std::span s{r};
  130|     75|   unpoison(s.data(), s.size());
  131|     75|}
_ZN5Botan2CT8unpoisonITkNS_6ranges14spanable_rangeENS_6StrongINSt3__16vectorIhNS4_9allocatorIhEEEENS_20DilithiumPublicSeed_EJEEEQaasr3stdE23is_trivially_copyable_vINS4_11conditionalIXsr21__is_primary_templateINS4_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS4_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS4_26indirectly_readable_traitsISI_EESJ_E4type10value_typeEEnt19custom_unpoisonableISF_EEEvRKSF_:
  128|     75|constexpr void unpoison(const R& r) {
  129|     75|   const std::span s{r};
  130|     75|   unpoison(s.data(), s.size());
  131|     75|}
_ZN5Botan2CT8unpoisonITkNS_6ranges14spanable_rangeENSt3__14spanIhLm32EEEQaasr3stdE23is_trivially_copyable_vINS3_11conditionalIXsr21__is_primary_templateINS3_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS3_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS3_26indirectly_readable_traitsISD_EESE_E4type10value_typeEEnt19custom_unpoisonableISA_EEEvRKSA_:
  128|      2|constexpr void unpoison(const R& r) {
  129|      2|   const std::span s{r};
  130|      2|   unpoison(s.data(), s.size());
  131|      2|}
_ZN5Botan2CT6poisonITkNS_6ranges14spanable_rangeENS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_20KyberSeedRandomness_EJEEEQaasr3stdE23is_trivially_copyable_vINS4_11conditionalIXsr21__is_primary_templateINS4_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS4_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS4_26indirectly_readable_traitsISI_EESJ_E4type10value_typeEEnt17custom_poisonableISF_EEEvRKSF_:
  121|     25|constexpr void poison(const R& r) {
  122|     25|   const std::span s{r};
  123|     25|   poison(s.data(), s.size());
  124|     25|}
_ZN5Botan2CT8unpoisonITkNS_6ranges14spanable_rangeENS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_20KyberSeedRandomness_EJEEEQaasr3stdE23is_trivially_copyable_vINS4_11conditionalIXsr21__is_primary_templateINS4_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS4_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS4_26indirectly_readable_traitsISI_EESJ_E4type10value_typeEEnt19custom_unpoisonableISF_EEEvRKSF_:
  128|     25|constexpr void unpoison(const R& r) {
  129|     25|   const std::span s{r};
  130|     25|   unpoison(s.data(), s.size());
  131|     25|}
_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS2_6DomainE1EEEEEvRKT_:
  143|     50|constexpr void unpoison(const T& x) {
  144|     50|   x._const_time_unpoison();
  145|     50|}
_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS2_6DomainE1EEEEEvRKT_:
  143|    160|constexpr void unpoison(const T& x) {
  144|    160|   x._const_time_unpoison();
  145|    160|}
_ZN5Botan2CT14unpoison_rangeITkNSt3__16ranges5rangeENS2_6vectorINS_8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS5_6DomainE1EEENS2_9allocatorIS9_EEEEQ12unpoisonableINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS3_5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISJ_EESK_E4type10value_typeEEEEvRKSG_:
  189|     50|constexpr void unpoison_range(const R& r) {
  190|    160|   for(const auto& v : r) {
  ------------------
  |  Branch (190:22): [True: 160, False: 50]
  ------------------
  191|    160|      unpoison(v);
  192|    160|   }
  193|     50|}
_ZN5Botan2CT8unpoisonIsEEvPKT_m:
   67|    160|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|    160|   BOTAN_UNUSED(p, n);
  ------------------
  |  |  144|    160|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   75|    160|}
_ZN5Botan2CT8unpoisonITkNS_6ranges14spanable_rangeENSt3__14spanIsLm256EEEQaasr3stdE23is_trivially_copyable_vINS3_11conditionalIXsr21__is_primary_templateINS3_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS3_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS3_26indirectly_readable_traitsISD_EESE_E4type10value_typeEEnt19custom_unpoisonableISA_EEEvRKSA_:
  128|    160|constexpr void unpoison(const R& r) {
  129|    160|   const std::span s{r};
  130|    160|   unpoison(s.data(), s.size());
  131|    160|}
_ZN5Botan2CT8unpoisonITkNS_6ranges14spanable_rangeENS_6StrongINSt3__16vectorIhNS4_9allocatorIhEEEENS_13KyberSeedRho_EJEEEQaasr3stdE23is_trivially_copyable_vINS4_11conditionalIXsr21__is_primary_templateINS4_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS4_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS4_26indirectly_readable_traitsISI_EESJ_E4type10value_typeEEnt19custom_unpoisonableISF_EEEvRKSF_:
  128|     25|constexpr void unpoison(const R& r) {
  129|     25|   const std::span s{r};
  130|     25|   unpoison(s.data(), s.size());
  131|     25|}
_ZN5Botan2CT12unpoison_allITpTkNS0_12unpoisonableEJNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_20KyberSeedRandomness_EJEEENS_8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNSA_6DomainE1EEESE_EQgtsZT_Li0EEEvDpRKT_:
  207|     25|constexpr void unpoison_all(const Ts&... ts) {
  208|     25|   (unpoison(ts), ...);
  209|     25|}
_ZN5Botan2CT4MaskImE10expand_bitEmm:
  421|    256|      static constexpr Mask<T> expand_bit(T v, size_t bit) {
  422|    256|         return CT::Mask<T>::expand_top_bit(v << (sizeof(v) * 8 - 1 - bit));
  423|    256|      }

_ZN5Botan9Gf448ElemC2ENSt3__14spanIKmLm7EEE:
   48|      2|      explicit Gf448Elem(std::span<const uint64_t, WORDS_448> data) /* NOLINT(*-member-init) */ { copy_mem(m_x, data); }
_ZN5Botan9Gf448Elem4zeroEv:
   59|    228|      static Gf448Elem zero() { return Gf448Elem(0); }
_ZN5Botan9Gf448Elem3oneEv:
   64|    229|      static Gf448Elem one() { return Gf448Elem(1); }
_ZN5Botan9Gf448Elem5wordsEv:
  120|  7.84k|      std::span<uint64_t, WORDS_448> words() { return m_x; }
_ZNK5Botan9Gf448Elem5wordsEv:
  128|  7.84k|      std::span<const uint64_t, WORDS_448> words() const { return m_x; }

_ZNK5Botan18DilithiumConstants4modeEv:
  162|    153|      DilithiumMode mode() const { return m_mode; }
_ZNK5Botan18DilithiumConstants16public_key_bytesEv:
  152|     75|      size_t public_key_bytes() const { return m_public_key_bytes; }
_ZNK5Botan18DilithiumConstants20symmetric_primitivesEv:
  167|  3.84k|      Dilithium_Symmetric_Primitives_Base& symmetric_primitives() const { return *m_symmetric_primitives; }
_ZN5Botan18DilithiumConstantsC2EOS0_:
   96|    381|      DilithiumConstants(DilithiumConstants&& other) = default;
_ZNK5Botan18DilithiumConstants9is_ml_dsaEv:
  104|    306|      bool is_ml_dsa() const { return m_mode.is_ml_dsa(); }
_ZNK5Botan18DilithiumConstants1kEv:
  123|    860|      uint8_t k() const { return m_k; }
_ZNK5Botan18DilithiumConstants1lEv:
  126|  3.58k|      uint8_t l() const { return m_l; }
_ZNK5Botan18DilithiumConstants13keypair_codecEv:
  169|     78|      Dilithium_Keypair_Codec& keypair_codec() const { return *m_keypair_codec; }
_ZN5Botan18DilithiumConstantsC2ERKS0_:
   94|     75|      DilithiumConstants(const DilithiumConstants& other) : DilithiumConstants(other.m_mode) {}
_ZNK5Botan18DilithiumConstants9is_modernEv:
  100|    153|      bool is_modern() const { return m_mode.is_modern(); }
_ZNK5Botan18DilithiumConstants6is_aesEv:
  102|    153|      bool is_aes() const { return m_mode.is_aes(); }
_ZNK5Botan18DilithiumConstants3etaEv:
  129|    900|      DilithiumEta eta() const { return m_eta; }
_ZNK5Botan18DilithiumConstants21public_key_hash_bytesEv:
  138|    153|      size_t public_key_hash_bytes() const { return m_public_key_hash_bytes; }
_ZNK5Botan18DilithiumConstants26commitment_hash_full_bytesEv:
  141|    153|      size_t commitment_hash_full_bytes() const { return m_commitment_hash_full_bytes; }

_ZN5Botan27Dilithium_PublicKeyInternalC2ENS_18DilithiumConstantsENS_6StrongINSt3__16vectorIhNS3_9allocatorIhEEEENS_20DilithiumPublicSeed_EJEEENS_8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNSA_6DomainE0EEE:
   42|     75|            m_mode(std::move(mode)),
   43|     75|            m_rho(std::move(rho)),
   44|     75|            m_t1(std::move(t1)),
   45|     75|            m_tr(m_mode.symmetric_primitives().H(raw_pk())) {
   46|     75|         BOTAN_ASSERT_NOMSG(!m_rho.empty());
  ------------------
  |  |   77|     75|   do {                                                                     \
  |  |   78|     75|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|     75|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 75]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|     75|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 75]
  |  |  ------------------
  ------------------
   47|     75|         BOTAN_ASSERT_NOMSG(m_t1.size() > 0);
  ------------------
  |  |   77|     75|   do {                                                                     \
  |  |   78|     75|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|     75|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 75]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|     75|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 75]
  |  |  ------------------
  ------------------
   48|     75|      }
_ZNK5Botan27Dilithium_PublicKeyInternal6raw_pkEv:
   51|     75|      DilithiumSerializedPublicKey raw_pk() const { return Dilithium_Algos::encode_public_key(m_rho, m_t1, m_mode); }
_ZNK5Botan28Dilithium_PrivateKeyInternal20_const_time_unpoisonEv:
  102|     75|      void _const_time_unpoison() const {
  103|     75|         CT::unpoison_all(m_signing_seed, m_s1, m_s2, m_t0);
  104|     75|         CT::unpoison(m_seed);
  105|     75|      }
_ZN5Botan28Dilithium_PrivateKeyInternalC2ENS_18DilithiumConstantsENSt3__18optionalINS_6StrongINS2_6vectorIhNS_16secure_allocatorIhEEEENS_24DilithiumSeedRandomness_EJEEEEENS4_IS8_NS_15DilithiumSeedK_EJEEENS_8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNSE_6DomainE0EEESI_SI_:
   76|     75|            m_mode(std::move(mode)),
   77|     75|            m_seed(std::move(seed)),
   78|     75|            m_signing_seed(std::move(signing_seed)),
   79|     75|            m_t0(std::move(t0)),
   80|     75|            m_s1(std::move(s1)),
   81|     75|            m_s2(std::move(s2)) {}
_ZN5Botan23Dilithium_Keypair_CodecD2Ev:
   27|    153|      virtual ~Dilithium_Keypair_Codec() = default;

_ZN5Botan19DilithiumPolyTraits3nttENSt3__14spanIiLm256EEE:
   50|    418|      static constexpr void ntt(std::span<T, N> coeffs) {
   51|    418|         size_t j = 0;
   52|    418|         size_t k = 0;
   53|       |
   54|  3.76k|         for(size_t len = N / 2; len > 0; len >>= 1) {
  ------------------
  |  Branch (54:34): [True: 3.34k, False: 418]
  ------------------
   55|   109k|            for(size_t start = 0; start < N; start = j + len) {
  ------------------
  |  Branch (55:35): [True: 106k, False: 3.34k]
  ------------------
   56|   106k|               const T zeta = zetas[++k];
   57|   534k|               for(j = start; j < start + len; ++j) {
  ------------------
  |  Branch (57:31): [True: 428k, False: 106k]
  ------------------
   58|       |                  // Zetas contain the montgomery parameter 2^32 mod q
   59|   428k|                  const T t = fqmul(zeta, coeffs[j + len]);
   60|   428k|                  coeffs[j + len] = coeffs[j] - t;
   61|   428k|                  coeffs[j] = coeffs[j] + t;
   62|   428k|               }
   63|   106k|            }
   64|  3.34k|         }
   65|    418|      }
_ZN5Botan19DilithiumPolyTraits29montgomery_reduce_coefficientEl:
   26|  1.76M|      static constexpr T montgomery_reduce_coefficient(T2 a) {
   27|  1.76M|         const T2 t = static_cast<T>(static_cast<T2>(static_cast<T>(a)) * Q_inverse);
   28|  1.76M|         return static_cast<T>((a - static_cast<T2>(t) * Q) >> (sizeof(T) * 8));
   29|  1.76M|      }
_ZN5Botan19DilithiumPolyTraits25poly_pointwise_montgomeryENSt3__14spanIiLm256EEENS2_IKiLm256EEES5_:
  107|  2.79k|                                                      std::span<const T, N> rhs) {
  108|   719k|         for(size_t i = 0; i < N; ++i) {
  ------------------
  |  Branch (108:28): [True: 716k, False: 2.79k]
  ------------------
  109|   716k|            result[i] = fqmul(lhs[i], rhs[i]);
  110|   716k|         }
  111|  2.79k|      }
_ZN5Botan19DilithiumPolyTraits26barrett_reduce_coefficientEi:
   31|   246k|      static constexpr T barrett_reduce_coefficient(T a) {
   32|       |         // 2**22 is roughly Q/2 and 2**23 is roughly Q
   33|   246k|         const T t = (a + (1 << 22)) >> 23;
   34|   246k|         a = a - t * Q;
   35|   246k|         return a;
   36|   246k|      }
_ZN5Botan19DilithiumPolyTraits11inverse_nttENSt3__14spanIiLm256EEE:
   78|    482|      static constexpr void inverse_ntt(std::span<T, N> coeffs) {
   79|    482|         size_t j = 0;
   80|    482|         size_t k = N;
   81|  4.33k|         for(size_t len = 1; len < N; len <<= 1) {
  ------------------
  |  Branch (81:30): [True: 3.85k, False: 482]
  ------------------
   82|   126k|            for(size_t start = 0; start < N; start = j + len) {
  ------------------
  |  Branch (82:35): [True: 122k, False: 3.85k]
  ------------------
   83|   122k|               const T zeta = -zetas[--k];
   84|   616k|               for(j = start; j < start + len; ++j) {
  ------------------
  |  Branch (84:31): [True: 493k, False: 122k]
  ------------------
   85|   493k|                  const T t = coeffs[j];
   86|   493k|                  coeffs[j] = t + coeffs[j + len];
   87|   493k|                  coeffs[j + len] = t - coeffs[j + len];
   88|       |                  // Zetas contain the montgomery parameter 2^32 mod q
   89|   493k|                  coeffs[j + len] = fqmul(zeta, coeffs[j + len]);
   90|   493k|               }
   91|   122k|            }
   92|  3.85k|         }
   93|       |
   94|   123k|         for(auto& coeff : coeffs) {
  ------------------
  |  Branch (94:26): [True: 123k, False: 482]
  ------------------
   95|   123k|            coeff = fqmul(coeff, F_WITH_MONTY_SQUARED);
   96|   123k|         }
   97|    482|      }

_ZNK5Botan17DilithiumShakeXOF6XOF128ENSt3__14spanIKhLm18446744073709551615EEEt:
   27|  2.79k|      std::unique_ptr<XOF> XOF128(std::span<const uint8_t> seed, uint16_t nonce) const override {
   28|  2.79k|         return createXOF("SHAKE-128", seed, nonce);
   29|  2.79k|      }
_ZNK5Botan17DilithiumShakeXOF6XOF256ENSt3__14spanIKhLm18446744073709551615EEEt:
   31|    900|      std::unique_ptr<XOF> XOF256(std::span<const uint8_t> seed, uint16_t nonce) const override {
   32|    900|         return createXOF("SHAKE-256", seed, nonce);
   33|    900|      }
_ZN5Botan17DilithiumShakeXOFC2Ev:
   18|    153|      DilithiumShakeXOF() = default;

_ZNK5Botan35Dilithium_Symmetric_Primitives_Base1HENS_10StrongSpanIKNS_6StrongINSt3__16vectorIhNS3_9allocatorIhEEEENS_29DilithiumSerializedPublicKey_EJEEEEE:
  120|     75|      DilithiumHashedPublicKey H(StrongSpan<const DilithiumSerializedPublicKey> pk) const {
  121|     75|         return H_256<DilithiumHashedPublicKey>(m_public_key_hash_bytes, pk);
  122|     75|      }
_ZNK5Botan35Dilithium_Symmetric_Primitives_Base5H_256ITkNS_8concepts21resizable_byte_bufferENS_6StrongINSt3__16vectorIhNS4_9allocatorIhEEEENS_25DilithiumHashedPublicKey_EJEEETpTkNS_6ranges14spanable_rangeEJNS_10StrongSpanIKNS3_IS8_NS_29DilithiumSerializedPublicKey_EJEEEEEEEET_mDpRKT0_:
  178|     75|      OutT H_256(size_t outbytes, const InTs&... ins) const {
  179|     75|         auto xof = XOF::create_or_throw("SHAKE-256");
  180|     75|         (xof->update(ins), ...);
  181|     75|         return xof->output<OutT>(outbytes);
  182|     75|      }
_ZNK5Botan35Dilithium_Symmetric_Primitives_Base1HENS_10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_24DilithiumSeedRandomness_EJEEEEE:
  125|     75|         StrongSpan<const DilithiumSeedRandomness> seed) const {
  126|     75|         auto xof = XOF::create_or_throw("SHAKE-256");
  127|     75|         xof->update(seed);
  128|     75|         if(auto domsep = seed_expansion_domain_separator()) {
  ------------------
  |  Branch (128:18): [True: 75, False: 0]
  ------------------
  129|     75|            xof->update(domsep.value());
  130|     75|         }
  131|       |
  132|       |         // Note: The order of invocations in an initializer list is not
  133|       |         //       guaranteed by the C++ standard. Hence, we have to store the
  134|       |         //       results in variables to ensure the correct order of execution.
  135|     75|         auto rho = xof->output<DilithiumSeedRho>(DilithiumConstants::SEED_RHO_BYTES);
  136|     75|         auto rhoprime = xof->output<DilithiumSeedRhoPrime>(DilithiumConstants::SEED_RHOPRIME_BYTES);
  137|     75|         auto k = xof->output<DilithiumSigningSeedK>(DilithiumConstants::SEED_SIGNING_KEY_BYTES);
  138|       |
  139|     75|         return {std::move(rho), std::move(rhoprime), std::move(k)};
  140|     75|      }
_ZNK5Botan35Dilithium_Symmetric_Primitives_Base1HENS_10StrongSpanIKNS_6StrongINSt3__16vectorIhNS3_9allocatorIhEEEENS_20DilithiumPublicSeed_EJEEEEEt:
  153|  2.79k|      std::unique_ptr<XOF> H(StrongSpan<const DilithiumSeedRho> seed, uint16_t nonce) const {
  154|  2.79k|         return m_xof_adapter->XOF128(seed, nonce);
  155|  2.79k|      }
_ZNK5Botan35Dilithium_Symmetric_Primitives_Base1HENS_10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_22DilithiumSeedRhoPrime_EJEEEEEt:
  157|    900|      std::unique_ptr<XOF> H(StrongSpan<const DilithiumSeedRhoPrime> seed, uint16_t nonce) const {
  158|    900|         return m_xof_adapter->XOF256(seed, nonce);
  159|    900|      }
_ZN5Botan12DilithiumXOFD2Ev:
   86|    153|      virtual ~DilithiumXOF() = default;
_ZN5Botan35Dilithium_Symmetric_Primitives_BaseD2Ev:
  103|    153|      virtual ~Dilithium_Symmetric_Primitives_Base() = default;

_ZN5Botan11carry_shiftEom:
  139|  14.1k|inline uint64_t carry_shift(const uint128_t a, size_t shift) {
  140|  14.1k|   return static_cast<uint64_t>(a >> shift);
  141|  14.1k|}
_ZN5Botan13combine_lowerEomom:
  143|      4|inline uint64_t combine_lower(const uint128_t a, size_t s1, const uint128_t b, size_t s2) {
  144|      4|   return static_cast<uint64_t>((a >> s1) | (b << s2));
  145|      4|}

_ZNK5Botan17EC_Scalar_Data_BN5valueEv:
   52|    577|      const BigInt& value() const { return m_v; }
_ZN5Botan17EC_Scalar_Data_BNC2ENSt3__110shared_ptrIKNS_13EC_Group_DataEEENS_6BigIntE:
   18|    478|            m_group(std::move(group)), m_v(std::move(v)) {}
_ZNK5Botan22EC_AffinePoint_Data_BN15to_legacy_pointEv:
   85|    100|      EC_Point to_legacy_point() const override { return m_pt; }

_ZNK5Botan13EC_Group_Data7p_bytesEv:
  206|  1.53k|      size_t p_bytes() const { return (m_p_bits + 7) / 8; }
_ZNK5Botan13EC_Group_Data11order_bytesEv:
  210|  8.54k|      size_t order_bytes() const { return m_order_bytes; }
_ZNK5Botan13EC_Group_Data1pEv:
  170|   209k|      const BigInt& p() const { return m_p; }
_ZNK5Botan13EC_Group_Data1aEv:
  172|    387|      const BigInt& a() const { return m_a; }
_ZNK5Botan13EC_Group_Data1bEv:
  174|    385|      const BigInt& b() const { return m_b; }
_ZNK5Botan13EC_Group_Data5orderEv:
  176|    249|      const BigInt& order() const { return m_order; }
_ZNK5Botan13EC_Group_Data8cofactorEv:
  178|    249|      const BigInt& cofactor() const { return m_cofactor; }
_ZNK5Botan13EC_Group_Data3oidEv:
  166|  3.58k|      const OID& oid() const { return m_oid; }
_ZNK5Botan13EC_Group_Data5curveEv:
  181|  1.49k|      const CurveGFp& curve() const { return m_curve; }
_ZNK5Botan13EC_Group_Data5montyEv:
  185|  3.86M|      const Montgomery_Params& monty() const { return m_monty; }
_ZNK5Botan13EC_Group_Data7monty_aEv:
  187|    131|      const BigInt& monty_a() const { return m_a_r; }
_ZNK5Botan13EC_Group_Data7monty_bEv:
  189|    131|      const BigInt& monty_b() const { return m_b_r; }
_ZNK5Botan13EC_Group_Data7p_wordsEv:
  202|   317k|      size_t p_words() const { return m_p_words; }
_ZNK5Botan13EC_Group_Data12a_is_minus_3Ev:
  212|  30.2k|      bool a_is_minus_3() const { return m_a_is_minus_3; }
_ZNK5Botan13EC_Group_Data9a_is_zeroEv:
  214|  84.3k|      bool a_is_zero() const { return m_a_is_zero; }
_ZNK5Botan13EC_Group_Data6pcurveEv:
  297|  8.37k|      const PCurve::PrimeOrderCurve& pcurve() const {
  298|  8.37k|         BOTAN_ASSERT_NONNULL(m_pcurve);
  ------------------
  |  |  116|  8.37k|   do {                                                                                   \
  |  |  117|  8.37k|      if((ptr) == nullptr) {                                                              \
  |  |  ------------------
  |  |  |  Branch (117:10): [True: 0, False: 8.37k]
  |  |  ------------------
  |  |  118|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                              \
  |  |  119|      0|         Botan::assertion_failure(#ptr " is not null", "", __func__, __FILE__, __LINE__); \
  |  |  120|      0|      }                                                                                   \
  |  |  121|  8.37k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (121:12): [Folded, False: 8.37k]
  |  |  ------------------
  ------------------
  299|  8.37k|         return *m_pcurve;
  300|  8.37k|      }
_ZN5Botan19EC_AffinePoint_DataD2Ev:
   74|  1.59k|      virtual ~EC_AffinePoint_Data() = default;
_ZN5Botan14EC_Scalar_DataD2Ev:
   39|  4.37k|      virtual ~EC_Scalar_Data() = default;

_ZNK5Botan17EC_Scalar_Data_PC5valueEv:
   53|  3.44k|      const auto& value() const { return m_v; }
_ZN5Botan17EC_Scalar_Data_PCC2ENSt3__110shared_ptrIKNS_13EC_Group_DataEEENS_6PCurve15PrimeOrderCurve6ScalarE:
   19|  3.90k|            m_group(std::move(group)), m_v(std::move(v)) {}

_ZNK5Botan17EC_PublicKey_Data5groupEv:
   30|  1.59k|      const EC_Group& group() const { return m_group; }

_ZN5Botan20Ed25519_FieldElementC2Ev:
   33|  2.93k|      constexpr Ed25519_FieldElement() : m_fe{} {}
_ZN5Botan20Ed25519_FieldElement4zeroEv:
   35|    132|      constexpr static Ed25519_FieldElement zero() { return Ed25519_FieldElement(); }
_ZN5Botan20Ed25519_FieldElement3oneEv:
   37|    260|      constexpr static Ed25519_FieldElement one() {
   38|    260|         auto o = Ed25519_FieldElement();
   39|    260|         o.m_fe[0] = 1;
   40|    260|         return o;
   41|    260|      }
_ZN5BotanmlERKNS_20Ed25519_FieldElementES2_:
  148|    948|inline Ed25519_FieldElement operator*(const Ed25519_FieldElement& x, const Ed25519_FieldElement& y) {
  149|    948|   return Ed25519_FieldElement::mul(x, y);
  150|    948|}
_ZN5BotanplERKNS_20Ed25519_FieldElementES2_:
  140|    528|inline Ed25519_FieldElement operator+(const Ed25519_FieldElement& x, const Ed25519_FieldElement& y) {
  141|    528|   return Ed25519_FieldElement::add(x, y);
  142|    528|}
_ZN5Botan20Ed25519_FieldElement3addERKS0_S2_:
   94|    528|      static Ed25519_FieldElement add(const Ed25519_FieldElement& a, const Ed25519_FieldElement& b) {
   95|    528|         Ed25519_FieldElement z;
   96|  5.80k|         for(size_t i = 0; i != 10; ++i) {
  ------------------
  |  Branch (96:28): [True: 5.28k, False: 528]
  ------------------
   97|  5.28k|            z.m_fe[i] = a.m_fe[i] + b.m_fe[i];
   98|  5.28k|         }
   99|    528|         return z;
  100|    528|      }
_ZN5BotanmiERKNS_20Ed25519_FieldElementES2_:
  144|    408|inline Ed25519_FieldElement operator-(const Ed25519_FieldElement& x, const Ed25519_FieldElement& y) {
  145|    408|   return Ed25519_FieldElement::sub(x, y);
  146|    408|}
_ZN5Botan20Ed25519_FieldElement3subERKS0_S2_:
  102|    408|      static Ed25519_FieldElement sub(const Ed25519_FieldElement& a, const Ed25519_FieldElement& b) {
  103|    408|         Ed25519_FieldElement z;
  104|  4.48k|         for(size_t i = 0; i != 10; ++i) {
  ------------------
  |  Branch (104:28): [True: 4.08k, False: 408]
  ------------------
  105|  4.08k|            z.m_fe[i] = a.m_fe[i] - b.m_fe[i];
  106|  4.08k|         }
  107|    408|         return z;
  108|    408|      }
_ZN5Botan20Ed25519_FieldElementixEm:
  134|  53.7k|      int32_t& operator[](size_t i) { return m_fe[i]; }
_ZNK5Botan20Ed25519_FieldElementixEm:
  132|  30.7k|      int32_t operator[](size_t i) const { return m_fe[i]; }
_ZN5BotanngERKNS_20Ed25519_FieldElementE:
  152|    128|inline Ed25519_FieldElement operator-(const Ed25519_FieldElement& x) {
  153|    128|   return Ed25519_FieldElement::negate(x);
  154|    128|}
_ZN5Botan20Ed25519_FieldElement6negateERKS0_:
  110|    128|      static Ed25519_FieldElement negate(const Ed25519_FieldElement& a) {
  111|    128|         Ed25519_FieldElement z;
  112|  1.40k|         for(size_t i = 0; i != 10; ++i) {
  ------------------
  |  Branch (112:28): [True: 1.28k, False: 128]
  ------------------
  113|  1.28k|            z.m_fe[i] = -a.m_fe[i];
  114|  1.28k|         }
  115|    128|         return z;
  116|    128|      }
_ZNK5Botan20Ed25519_FieldElement3sqrEv:
  122|     28|      Ed25519_FieldElement sqr() const { return sqr_iter(1); }
_ZNK5Botan20Ed25519_FieldElement11is_negativeEv:
   87|      2|      bool is_negative() const {
   88|       |         // TODO could avoid most of the serialize computation here
   89|      2|         std::array<uint8_t, 32> s = {};
   90|      2|         this->serialize_to(s);
   91|      2|         return (s[0] & 0x01) == 0x01;
   92|      2|      }
_ZN5Botan20Ed25519_FieldElementC2Ellllllllll:
   60|  1.00k|                                     int64_t h9) {
   61|  1.00k|         m_fe[0] = static_cast<int32_t>(h0);
   62|  1.00k|         m_fe[1] = static_cast<int32_t>(h1);
   63|  1.00k|         m_fe[2] = static_cast<int32_t>(h2);
   64|  1.00k|         m_fe[3] = static_cast<int32_t>(h3);
   65|  1.00k|         m_fe[4] = static_cast<int32_t>(h4);
   66|  1.00k|         m_fe[5] = static_cast<int32_t>(h5);
   67|  1.00k|         m_fe[6] = static_cast<int32_t>(h6);
   68|  1.00k|         m_fe[7] = static_cast<int32_t>(h7);
   69|  1.00k|         m_fe[8] = static_cast<int32_t>(h8);
   70|  1.00k|         m_fe[9] = static_cast<int32_t>(h9);
   71|  1.00k|      }

_ZN5Botan5carryILm26ELl1EEEvRlS1_QaagtT_Li0EltT_Li64E:
   29|  10.4k|{
   30|  10.4k|   const int64_t X1 = (static_cast<int64_t>(1) << S);
   31|  10.4k|   const int64_t X2 = (static_cast<int64_t>(1) << (S - 1));
   32|  10.4k|   const int64_t c = (h0 + X2) >> S;
   33|  10.4k|   h1 += c * MUL;
   34|  10.4k|   h0 -= c * X1;
   35|  10.4k|}
_ZN5Botan5carryILm25ELl1EEEvRlS1_QaagtT_Li0EltT_Li64E:
   29|  5.95k|{
   30|  5.95k|   const int64_t X1 = (static_cast<int64_t>(1) << S);
   31|  5.95k|   const int64_t X2 = (static_cast<int64_t>(1) << (S - 1));
   32|  5.95k|   const int64_t c = (h0 + X2) >> S;
   33|  5.95k|   h1 += c * MUL;
   34|  5.95k|   h0 -= c * X1;
   35|  5.95k|}
_ZN5Botan5carryILm25ELl19EEEvRlS1_QaagtT_Li0EltT_Li64E:
   29|  1.48k|{
   30|  1.48k|   const int64_t X1 = (static_cast<int64_t>(1) << S);
   31|  1.48k|   const int64_t X2 = (static_cast<int64_t>(1) << (S - 1));
   32|  1.48k|   const int64_t c = (h0 + X2) >> S;
   33|  1.48k|   h1 += c * MUL;
   34|  1.48k|   h0 -= c * X1;
   35|  1.48k|}
_ZN5Botan6carry0ILm26EEEvRiS1_QaagtT_Li0EltT_Li32E:
   50|     20|{
   51|     20|   const int32_t X1 = (static_cast<int64_t>(1) << S);
   52|     20|   const int32_t c = h0 >> S;
   53|     20|   h1 += c;
   54|     20|   h0 -= c * X1;
   55|     20|}
_ZN5Botan6carry0ILm25EEEvRiS1_QaagtT_Li0EltT_Li32E:
   50|     16|{
   51|     16|   const int32_t X1 = (static_cast<int64_t>(1) << S);
   52|     16|   const int32_t c = h0 >> S;
   53|     16|   h1 += c;
   54|     16|   h0 -= c * X1;
   55|     16|}

_ZN5Botan10Ed448PointC2ERKNS_9Gf448ElemES3_S3_:
   35|  1.90k|      Ed448Point(const Gf448Elem& x, const Gf448Elem& y, const Gf448Elem& z) : m_x(x), m_y(y), m_z(z) {}
_ZN5Botan10Ed448PointC2ERKNS_9Gf448ElemES3_:
   38|    228|      Ed448Point(const Gf448Elem& x, const Gf448Elem& y) : m_x(x), m_y(y), m_z(1) {}
_ZN5Botan10Ed448Point8identityEv:
   41|    227|      static Ed448Point identity() { return Ed448Point(Gf448Elem::zero(), Gf448Elem::one()); }
_ZNK5Botan10Ed448Point1xEv:
   77|      2|      Gf448Elem x() const { return m_x / m_z; }
_ZNK5Botan10Ed448Point1yEv:
   80|      2|      Gf448Elem y() const { return m_y / m_z; }

_ZN5Botan3fmtIJNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEES7_NS1_17basic_string_viewIcS4_EEDpRKT_:
   53|    490|std::string fmt(std::string_view format, const T&... args) {
   54|    490|   std::ostringstream oss;
   55|    490|   oss.imbue(std::locale::classic());
   56|    490|   fmt_detail::do_fmt(oss, format, args...);
   57|    490|   return oss.str();
   58|    490|}
_ZN5Botan10fmt_detail6do_fmtINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEJEEEvRNS2_19basic_ostringstreamIcS5_S7_EENS2_17basic_string_viewIcS5_EERKT_DpRKT0_:
   25|    490|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|    490|   size_t i = 0;
   27|       |
   28|  11.4k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 11.4k, False: 0]
  ------------------
   29|  11.4k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 490, False: 10.9k]
  |  Branch (29:30): [True: 490, False: 0]
  |  Branch (29:59): [True: 490, False: 0]
  ------------------
   30|    490|         oss << val;
   31|    490|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  10.9k|      } else {
   33|  10.9k|         oss << format[i];
   34|  10.9k|      }
   35|       |
   36|  10.9k|      i += 1;
   37|  10.9k|   }
   38|    490|}
_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__117basic_string_viewIcNS1_11char_traitsIcEEEEEEENS1_12basic_stringIcS4_NS1_9allocatorIcEEEES5_DpRKT_:
   53|  7.54k|std::string fmt(std::string_view format, const T&... args) {
   54|  7.54k|   std::ostringstream oss;
   55|  7.54k|   oss.imbue(std::locale::classic());
   56|  7.54k|   fmt_detail::do_fmt(oss, format, args...);
   57|  7.54k|   return oss.str();
   58|  7.54k|}
_ZN5Botan10fmt_detail6do_fmtINSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEJEEEvRNS2_19basic_ostringstreamIcS5_NS2_9allocatorIcEEEES6_RKT_DpRKT0_:
   25|  9.35k|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|  9.35k|   size_t i = 0;
   27|       |
   28|  90.7k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 90.7k, False: 0]
  ------------------
   29|  90.7k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 9.35k, False: 81.4k]
  |  Branch (29:30): [True: 9.35k, False: 0]
  |  Branch (29:59): [True: 9.35k, False: 0]
  ------------------
   30|  9.35k|         oss << val;
   31|  9.35k|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  81.4k|      } else {
   33|  81.4k|         oss << format[i];
   34|  81.4k|      }
   35|       |
   36|  81.4k|      i += 1;
   37|  81.4k|   }
   38|  9.35k|}
_ZN5Botan3fmtIJNS_3OIDEEEENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS2_17basic_string_viewIcS5_EEDpRKT_:
   53|  1.74k|std::string fmt(std::string_view format, const T&... args) {
   54|  1.74k|   std::ostringstream oss;
   55|  1.74k|   oss.imbue(std::locale::classic());
   56|  1.74k|   fmt_detail::do_fmt(oss, format, args...);
   57|  1.74k|   return oss.str();
   58|  1.74k|}
_ZN5Botan10fmt_detail6do_fmtINS_3OIDEJEEEvRNSt3__119basic_ostringstreamIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS3_17basic_string_viewIcS6_EERKT_DpRKT0_:
   25|  1.74k|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|  1.74k|   size_t i = 0;
   27|       |
   28|  40.1k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 40.1k, False: 0]
  ------------------
   29|  40.1k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 1.74k, False: 38.3k]
  |  Branch (29:30): [True: 1.74k, False: 0]
  |  Branch (29:59): [True: 1.74k, False: 0]
  ------------------
   30|  1.74k|         oss << val;
   31|  1.74k|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  38.3k|      } else {
   33|  38.3k|         oss << format[i];
   34|  38.3k|      }
   35|       |
   36|  38.3k|      i += 1;
   37|  38.3k|   }
   38|  1.74k|}
_ZN5Botan3fmtIJPKcS2_S2_EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS3_17basic_string_viewIcS6_EEDpRKT_:
   53|     13|std::string fmt(std::string_view format, const T&... args) {
   54|     13|   std::ostringstream oss;
   55|     13|   oss.imbue(std::locale::classic());
   56|     13|   fmt_detail::do_fmt(oss, format, args...);
   57|     13|   return oss.str();
   58|     13|}
_ZN5Botan10fmt_detail6do_fmtIPKcJS3_S3_EEEvRNSt3__119basic_ostringstreamIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_17basic_string_viewIcS7_EERKT_DpRKT0_:
   25|     13|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|     13|   size_t i = 0;
   27|       |
   28|     13|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 13, False: 0]
  ------------------
   29|     13|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 13, False: 0]
  |  Branch (29:30): [True: 13, False: 0]
  |  Branch (29:59): [True: 13, False: 0]
  ------------------
   30|     13|         oss << val;
   31|     13|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|     13|      } else {
   33|      0|         oss << format[i];
   34|      0|      }
   35|       |
   36|      0|      i += 1;
   37|      0|   }
   38|     13|}
_ZN5Botan10fmt_detail6do_fmtIPKcJS3_EEEvRNSt3__119basic_ostringstreamIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_17basic_string_viewIcS7_EERKT_DpRKT0_:
   25|     13|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|     13|   size_t i = 0;
   27|       |
   28|     65|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 65, False: 0]
  ------------------
   29|     65|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 13, False: 52]
  |  Branch (29:30): [True: 13, False: 0]
  |  Branch (29:59): [True: 13, False: 0]
  ------------------
   30|     13|         oss << val;
   31|     13|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|     52|      } else {
   33|     52|         oss << format[i];
   34|     52|      }
   35|       |
   36|     52|      i += 1;
   37|     52|   }
   38|     13|}
_ZN5Botan10fmt_detail6do_fmtIPKcJEEEvRNSt3__119basic_ostringstreamIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_17basic_string_viewIcS7_EERKT_DpRKT0_:
   25|  1.18k|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|  1.18k|   size_t i = 0;
   27|       |
   28|  16.3k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 16.3k, False: 0]
  ------------------
   29|  16.3k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 1.18k, False: 15.1k]
  |  Branch (29:30): [True: 1.18k, False: 0]
  |  Branch (29:59): [True: 1.18k, False: 0]
  ------------------
   30|  1.18k|         oss << val;
   31|  1.18k|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  15.1k|      } else {
   33|  15.1k|         oss << format[i];
   34|  15.1k|      }
   35|       |
   36|  15.1k|      i += 1;
   37|  15.1k|   }
   38|  1.18k|}
_ZN5Botan10fmt_detail6do_fmtINSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEJS6_EEEvRNS2_19basic_ostringstreamIcS5_NS2_9allocatorIcEEEES6_RKT_DpRKT0_:
   25|  1.80k|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|  1.80k|   size_t i = 0;
   27|       |
   28|  1.80k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 1.80k, False: 0]
  ------------------
   29|  1.80k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 1.80k, False: 0]
  |  Branch (29:30): [True: 1.80k, False: 0]
  |  Branch (29:59): [True: 1.80k, False: 0]
  ------------------
   30|  1.80k|         oss << val;
   31|  1.80k|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  1.80k|      } else {
   33|      0|         oss << format[i];
   34|      0|      }
   35|       |
   36|      0|      i += 1;
   37|      0|   }
   38|  1.80k|}
_ZN5Botan3fmtIJNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEPKcEEENS1_12basic_stringIcS4_NS1_9allocatorIcEEEES5_DpRKT_:
   53|  1.16k|std::string fmt(std::string_view format, const T&... args) {
   54|  1.16k|   std::ostringstream oss;
   55|  1.16k|   oss.imbue(std::locale::classic());
   56|  1.16k|   fmt_detail::do_fmt(oss, format, args...);
   57|  1.16k|   return oss.str();
   58|  1.16k|}
_ZN5Botan10fmt_detail6do_fmtINSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEJPKcEEEvRNS2_19basic_ostringstreamIcS5_NS2_9allocatorIcEEEES6_RKT_DpRKT0_:
   25|  1.16k|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|  1.16k|   size_t i = 0;
   27|       |
   28|  1.16k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 1.16k, False: 0]
  ------------------
   29|  1.16k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 1.16k, False: 0]
  |  Branch (29:30): [True: 1.16k, False: 0]
  |  Branch (29:59): [True: 1.16k, False: 0]
  ------------------
   30|  1.16k|         oss << val;
   31|  1.16k|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  1.16k|      } else {
   33|      0|         oss << format[i];
   34|      0|      }
   35|       |
   36|      0|      i += 1;
   37|      0|   }
   38|  1.16k|}
_ZN5Botan3fmtIJNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEES5_EEENS1_12basic_stringIcS4_NS1_9allocatorIcEEEES5_DpRKT_:
   53|  1.80k|std::string fmt(std::string_view format, const T&... args) {
   54|  1.80k|   std::ostringstream oss;
   55|  1.80k|   oss.imbue(std::locale::classic());
   56|  1.80k|   fmt_detail::do_fmt(oss, format, args...);
   57|  1.80k|   return oss.str();
   58|  1.80k|}
_ZN5Botan3fmtIJNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEjEEENS1_12basic_stringIcS4_NS1_9allocatorIcEEEES5_DpRKT_:
   53|     53|std::string fmt(std::string_view format, const T&... args) {
   54|     53|   std::ostringstream oss;
   55|     53|   oss.imbue(std::locale::classic());
   56|     53|   fmt_detail::do_fmt(oss, format, args...);
   57|     53|   return oss.str();
   58|     53|}
_ZN5Botan10fmt_detail6do_fmtINSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEJjEEEvRNS2_19basic_ostringstreamIcS5_NS2_9allocatorIcEEEES6_RKT_DpRKT0_:
   25|     53|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|     53|   size_t i = 0;
   27|       |
   28|     53|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 53, False: 0]
  ------------------
   29|     53|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 53, False: 0]
  |  Branch (29:30): [True: 53, False: 0]
  |  Branch (29:59): [True: 53, False: 0]
  ------------------
   30|     53|         oss << val;
   31|     53|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|     53|      } else {
   33|      0|         oss << format[i];
   34|      0|      }
   35|       |
   36|      0|      i += 1;
   37|      0|   }
   38|     53|}
_ZN5Botan10fmt_detail6do_fmtIjJEEEvRNSt3__119basic_ostringstreamIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS2_17basic_string_viewIcS5_EERKT_DpRKT0_:
   25|     53|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|     53|   size_t i = 0;
   27|       |
   28|    159|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 159, False: 0]
  ------------------
   29|    159|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 53, False: 106]
  |  Branch (29:30): [True: 53, False: 0]
  |  Branch (29:59): [True: 53, False: 0]
  ------------------
   30|     53|         oss << val;
   31|     53|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|    106|      } else {
   33|    106|         oss << format[i];
   34|    106|      }
   35|       |
   36|    106|      i += 1;
   37|    106|   }
   38|     53|}
_ZN5Botan3fmtIJmPKcEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS3_17basic_string_viewIcS6_EEDpRKT_:
   53|      6|std::string fmt(std::string_view format, const T&... args) {
   54|      6|   std::ostringstream oss;
   55|      6|   oss.imbue(std::locale::classic());
   56|      6|   fmt_detail::do_fmt(oss, format, args...);
   57|      6|   return oss.str();
   58|      6|}
_ZN5Botan10fmt_detail6do_fmtImJPKcEEEvRNSt3__119basic_ostringstreamIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_17basic_string_viewIcS7_EERKT_DpRKT0_:
   25|      6|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|      6|   size_t i = 0;
   27|       |
   28|     84|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 84, False: 0]
  ------------------
   29|     84|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 6, False: 78]
  |  Branch (29:30): [True: 6, False: 0]
  |  Branch (29:59): [True: 6, False: 0]
  ------------------
   30|      6|         oss << val;
   31|      6|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|     78|      } else {
   33|     78|         oss << format[i];
   34|     78|      }
   35|       |
   36|     78|      i += 1;
   37|     78|   }
   38|      6|}
_ZN5Botan3fmtIJNS_3OIDENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEEEENS2_12basic_stringIcS5_NS2_9allocatorIcEEEES6_DpRKT_:
   53|      5|std::string fmt(std::string_view format, const T&... args) {
   54|      5|   std::ostringstream oss;
   55|      5|   oss.imbue(std::locale::classic());
   56|      5|   fmt_detail::do_fmt(oss, format, args...);
   57|      5|   return oss.str();
   58|      5|}
_ZN5Botan10fmt_detail6do_fmtINS_3OIDEJNSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEEEEvRNS3_19basic_ostringstreamIcS6_NS3_9allocatorIcEEEES7_RKT_DpRKT0_:
   25|      5|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|      5|   size_t i = 0;
   27|       |
   28|    180|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 180, False: 0]
  ------------------
   29|    180|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 5, False: 175]
  |  Branch (29:30): [True: 5, False: 0]
  |  Branch (29:59): [True: 5, False: 0]
  ------------------
   30|      5|         oss << val;
   31|      5|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|    175|      } else {
   33|    175|         oss << format[i];
   34|    175|      }
   35|       |
   36|    175|      i += 1;
   37|    175|   }
   38|      5|}

_ZN5Botan11checked_mulITkNSt3__117unsigned_integralEmEENS1_8optionalIT_EES3_S3_:
   46|  12.7M|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|  12.7M|   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|  12.7M|   if(a != 0 && r / a != b) {
  ------------------
  |  Branch (53:7): [True: 12.7M, False: 0]
  |  Branch (53:17): [True: 0, False: 12.7M]
  ------------------
   54|      0|      return {};
   55|      0|   }
   56|  12.7M|   return r;
   57|  12.7M|}
_ZN5Botan11checked_addITkNSt3__117unsigned_integralEjEENS1_8optionalIT_EES3_S3_:
   19|  2.23k|constexpr inline std::optional<T> checked_add(T a, T b) {
   20|  2.23k|   const T r = a + b;
   21|  2.23k|   if(r < a || r < b) {
  ------------------
  |  Branch (21:7): [True: 0, False: 2.23k]
  |  Branch (21:16): [True: 0, False: 2.23k]
  ------------------
   22|      0|      return {};
   23|      0|   }
   24|  2.23k|   return r;
   25|  2.23k|}
_ZN5Botan13swar_in_rangeITkNSt3__117unsigned_integralEmEET_S2_S2_S2_:
  144|  1.15M|constexpr T swar_in_range(T v, T lower, T upper) {
  145|       |   // The constant 0x808080... as a T
  146|  1.15M|   constexpr T hi1 = (static_cast<T>(-1) / 255) << 7;
  147|       |   // The constant 0x7F7F7F... as a T
  148|  1.15M|   constexpr T lo7 = ~hi1;
  149|       |
  150|  1.15M|   const T sub = ((v | hi1) - (lower & lo7)) ^ ((v ^ (~lower)) & hi1);
  151|  1.15M|   const T a_lo = sub & lo7;
  152|  1.15M|   const T a_hi = sub & hi1;
  153|  1.15M|   return (lo7 - a_lo + upper) & hi1 & ~a_hi;
  154|  1.15M|}
_ZN5Botan23index_of_first_set_byteITkNSt3__117unsigned_integralEmEEmT_:
  160|  1.07M|constexpr size_t index_of_first_set_byte(T v) {
  161|       |   // The constant 0x010101... as a T
  162|  1.07M|   constexpr T lo1 = (static_cast<T>(-1) / 255);
  163|       |   // The constant 0x808080... as a T
  164|  1.07M|   constexpr T hi1 = lo1 << 7;
  165|       |   // How many bits to shift in order to get the top byte
  166|  1.07M|   constexpr size_t bits = (sizeof(T) * 8) - 8;
  167|       |
  168|  1.07M|   return static_cast<size_t>((((((v & hi1) - 1) & lo1) * lo1) >> bits) - 1);
  169|  1.07M|}

_ZN5Botan13KeccakPadding4sha3Ev:
   24|     50|      static constexpr KeccakPadding sha3() { return {.padding = 0b10 /* little-endian */, .bit_len = 2}; }
_ZN5Botan13KeccakPadding5shakeEv:
   27|  3.90k|      static constexpr KeccakPadding shake() { return {.padding = 0b1111, .bit_len = 4}; }
_ZN5Botan18Keccak_PermutationC2ENS0_6ConfigE:
   69|  3.95k|            Sponge({.bit_rate = state_bits() - config.capacity_bits, .initial_state = {}}), m_padding(config.padding) {}

_ZN5Botan24Keccak_Permutation_roundEPmPKmm:
   15|   436k|BOTAN_FORCE_INLINE void Keccak_Permutation_round(uint64_t T[25], const uint64_t A[25], uint64_t RC) {
   16|   436k|   const uint64_t C0 = A[0] ^ A[5] ^ A[10] ^ A[15] ^ A[20];
   17|   436k|   const uint64_t C1 = A[1] ^ A[6] ^ A[11] ^ A[16] ^ A[21];
   18|   436k|   const uint64_t C2 = A[2] ^ A[7] ^ A[12] ^ A[17] ^ A[22];
   19|   436k|   const uint64_t C3 = A[3] ^ A[8] ^ A[13] ^ A[18] ^ A[23];
   20|   436k|   const uint64_t C4 = A[4] ^ A[9] ^ A[14] ^ A[19] ^ A[24];
   21|       |
   22|   436k|   const uint64_t D0 = rotl<1>(C0) ^ C3;
   23|   436k|   const uint64_t D1 = rotl<1>(C1) ^ C4;
   24|   436k|   const uint64_t D2 = rotl<1>(C2) ^ C0;
   25|   436k|   const uint64_t D3 = rotl<1>(C3) ^ C1;
   26|   436k|   const uint64_t D4 = rotl<1>(C4) ^ C2;
   27|       |
   28|   436k|   const uint64_t B00 = A[0] ^ D1;
   29|   436k|   const uint64_t B01 = rotl<44>(A[6] ^ D2);
   30|   436k|   const uint64_t B02 = rotl<43>(A[12] ^ D3);
   31|   436k|   const uint64_t B03 = rotl<21>(A[18] ^ D4);
   32|   436k|   const uint64_t B04 = rotl<14>(A[24] ^ D0);
   33|   436k|   T[0] = B00 ^ (~B01 & B02) ^ RC;
   34|   436k|   T[1] = B01 ^ (~B02 & B03);
   35|   436k|   T[2] = B02 ^ (~B03 & B04);
   36|   436k|   T[3] = B03 ^ (~B04 & B00);
   37|   436k|   T[4] = B04 ^ (~B00 & B01);
   38|       |
   39|   436k|   const uint64_t B05 = rotl<28>(A[3] ^ D4);
   40|   436k|   const uint64_t B06 = rotl<20>(A[9] ^ D0);
   41|   436k|   const uint64_t B07 = rotl<3>(A[10] ^ D1);
   42|   436k|   const uint64_t B08 = rotl<45>(A[16] ^ D2);
   43|   436k|   const uint64_t B09 = rotl<61>(A[22] ^ D3);
   44|   436k|   T[5] = B05 ^ (~B06 & B07);
   45|   436k|   T[6] = B06 ^ (~B07 & B08);
   46|   436k|   T[7] = B07 ^ (~B08 & B09);
   47|   436k|   T[8] = B08 ^ (~B09 & B05);
   48|   436k|   T[9] = B09 ^ (~B05 & B06);
   49|       |
   50|   436k|   const uint64_t B10 = rotl<1>(A[1] ^ D2);
   51|   436k|   const uint64_t B11 = rotl<6>(A[7] ^ D3);
   52|   436k|   const uint64_t B12 = rotl<25>(A[13] ^ D4);
   53|   436k|   const uint64_t B13 = rotl<8>(A[19] ^ D0);
   54|   436k|   const uint64_t B14 = rotl<18>(A[20] ^ D1);
   55|   436k|   T[10] = B10 ^ (~B11 & B12);
   56|   436k|   T[11] = B11 ^ (~B12 & B13);
   57|   436k|   T[12] = B12 ^ (~B13 & B14);
   58|   436k|   T[13] = B13 ^ (~B14 & B10);
   59|   436k|   T[14] = B14 ^ (~B10 & B11);
   60|       |
   61|   436k|   const uint64_t B15 = rotl<27>(A[4] ^ D0);
   62|   436k|   const uint64_t B16 = rotl<36>(A[5] ^ D1);
   63|   436k|   const uint64_t B17 = rotl<10>(A[11] ^ D2);
   64|   436k|   const uint64_t B18 = rotl<15>(A[17] ^ D3);
   65|   436k|   const uint64_t B19 = rotl<56>(A[23] ^ D4);
   66|   436k|   T[15] = B15 ^ (~B16 & B17);
   67|   436k|   T[16] = B16 ^ (~B17 & B18);
   68|   436k|   T[17] = B17 ^ (~B18 & B19);
   69|   436k|   T[18] = B18 ^ (~B19 & B15);
   70|   436k|   T[19] = B19 ^ (~B15 & B16);
   71|       |
   72|   436k|   const uint64_t B20 = rotl<62>(A[2] ^ D3);
   73|   436k|   const uint64_t B21 = rotl<55>(A[8] ^ D4);
   74|   436k|   const uint64_t B22 = rotl<39>(A[14] ^ D0);
   75|   436k|   const uint64_t B23 = rotl<41>(A[15] ^ D1);
   76|   436k|   const uint64_t B24 = rotl<2>(A[21] ^ D2);
   77|   436k|   T[20] = B20 ^ (~B21 & B22);
   78|   436k|   T[21] = B21 ^ (~B22 & B23);
   79|   436k|   T[22] = B22 ^ (~B23 & B24);
   80|   436k|   T[23] = B23 ^ (~B24 & B20);
   81|   436k|   T[24] = B24 ^ (~B20 & B21);
   82|   436k|}

_ZN5Botan11Kyber_Algos17PolynomialSamplerINS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_15KyberSeedSigma_EJEEEEC2ENS_10StrongSpanIKS9_EERKNS_14KyberConstantsE:
   65|     25|            m_seed(seed), m_mode(mode), m_nonce(0) {}
_ZN5Botan11Kyber_Algos17PolynomialSamplerINS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_15KyberSeedSigma_EJEEEE33sample_polynomial_vector_cbd_eta1Ev:
   67|     50|      KyberPolyVec sample_polynomial_vector_cbd_eta1() {
   68|     50|         KyberPolyVec vec(m_mode.k());
   69|    160|         for(auto& poly : vec) {
  ------------------
  |  Branch (69:25): [True: 160, False: 50]
  ------------------
   70|    160|            sample_poly_cbd(poly, m_mode.eta1());
   71|    160|         }
   72|     50|         return vec;
   73|     50|      }
_ZN5Botan11Kyber_Algos17PolynomialSamplerINS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_15KyberSeedSigma_EJEEEE15sample_poly_cbdERNS_8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNSB_6DomainE0EEENS_14KyberConstants8KyberEtaE:
  101|    160|      void sample_poly_cbd(KyberPoly& poly, KyberConstants::KyberEta eta) {
  102|    160|         const auto randomness = [&] {
  103|    160|            switch(eta) {
  104|    160|               case KyberConstants::KyberEta::_2:
  105|    160|                  return prf(2 * poly.size() / 4);
  106|    160|               case KyberConstants::KyberEta::_3:
  107|    160|                  return prf(3 * poly.size() / 4);
  108|    160|            }
  109|       |
  110|    160|            BOTAN_ASSERT_UNREACHABLE();
  111|    160|         }();
  112|       |
  113|    160|         sample_polynomial_from_cbd(poly, eta, randomness);
  114|    160|      }
_ZZN5Botan11Kyber_Algos17PolynomialSamplerINS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_15KyberSeedSigma_EJEEEE15sample_poly_cbdERNS_8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNSB_6DomainE0EEENS_14KyberConstants8KyberEtaEENKUlvE_clEv:
  102|    160|         const auto randomness = [&] {
  103|    160|            switch(eta) {
  ------------------
  |  Branch (103:20): [True: 160, False: 0]
  ------------------
  104|    140|               case KyberConstants::KyberEta::_2:
  ------------------
  |  Branch (104:16): [True: 140, False: 20]
  ------------------
  105|    140|                  return prf(2 * poly.size() / 4);
  106|     20|               case KyberConstants::KyberEta::_3:
  ------------------
  |  Branch (106:16): [True: 20, False: 140]
  ------------------
  107|     20|                  return prf(3 * poly.size() / 4);
  108|    160|            }
  109|       |
  110|      0|            BOTAN_ASSERT_UNREACHABLE();
  ------------------
  |  |  166|      0|#define BOTAN_ASSERT_UNREACHABLE() Botan::assert_unreachable(__FILE__, __LINE__)
  ------------------
  111|      0|         }();
_ZN5Botan11Kyber_Algos17PolynomialSamplerINS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_15KyberSeedSigma_EJEEEE3prfEm:
   94|    160|      KyberSamplingRandomness prf(size_t bytes) {
   95|    160|         const auto& sym = m_mode.symmetric_primitives();
   96|    160|         auto seed_span = m_seed.get();
   97|    160|         sym.setup_PRF(m_prf_xof, seed_span, m_nonce++);
   98|    160|         return m_prf_xof->output<KyberSamplingRandomness>(bytes);
   99|    160|      }
_ZN5Botan11Kyber_Algos24encode_polynomial_vectorITkNS_8concepts21resizable_byte_bufferENSt3__16vectorIhNS3_9allocatorIhEEEEEET_RKNS_8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS9_6DomainE1EEERKNS_14KyberConstantsE:
   48|     25|T encode_polynomial_vector(const KyberPolyVecNTT& vec, const KyberConstants& mode) {
   49|     25|   T r(mode.polynomial_vector_bytes());
   50|     25|   encode_polynomial_vector(r, vec);
   51|     25|   return r;
   52|     25|}

_ZNK5Botan14KyberConstants4modeEv:
   73|     41|      KyberMode mode() const { return m_mode; }
_ZNK5Botan14KyberConstants1kEv:
   81|    696|      uint8_t k() const { return m_k; }
_ZNK5Botan14KyberConstants23polynomial_vector_bytesEv:
   99|     83|      size_t polynomial_vector_bytes() const { return m_polynomial_vector_bytes; }
_ZNK5Botan14KyberConstants22seed_private_key_bytesEv:
  121|     33|      size_t seed_private_key_bytes() const { return m_seed_private_key_bytes; }
_ZN5Botan14KyberConstantsC2EOS0_:
   69|    125|      KyberConstants(KyberConstants&& other) = default;
_ZNK5Botan14KyberConstants26expanded_private_key_bytesEv:
  118|      8|      size_t expanded_private_key_bytes() const { return m_expanded_private_key_bytes; }
_ZN5Botan14KyberConstantsC2ERKS0_:
   67|     25|      KyberConstants(const KyberConstants& other) : KyberConstants(other.m_mode) {}
_ZNK5Botan14KyberConstants4eta1Ev:
   83|    160|      KyberEta eta1() const { return m_eta1; }
_ZNK5Botan14KyberConstants3d_uEv:
   87|     58|      KyberDu d_u() const { return m_du; }
_ZNK5Botan14KyberConstants3d_vEv:
   89|     58|      KyberDv d_v() const { return m_dv; }
_ZNK5Botan14KyberConstants16public_key_bytesEv:
  114|     58|      size_t public_key_bytes() const { return polynomial_vector_bytes() + SEED_BYTES; }
_ZNK5Botan14KyberConstants20symmetric_primitivesEv:
  125|    235|      Kyber_Symmetric_Primitives& symmetric_primitives() const { return *m_symmetric_primitives; }

_ZN5Botan11Kyber_Algos8load_le3ENSt3__14spanIKhLm3EEE:
   24|  44.1k|inline uint32_t load_le3(std::span<const uint8_t, 3> in) {
   25|  44.1k|   return Botan::load_le(std::array<uint8_t, 4>{in[0], in[1], in[2], 0});
   26|  44.1k|}

_ZN5Botan19Kyber_Keypair_CodecD2Ev:
   24|     25|      virtual ~Kyber_Keypair_Codec() = default;
_ZN5Botan24Kyber_PrivateKeyInternalC2ENS_14KyberConstantsENS_8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS2_6DomainE1EEENS_19KyberPrivateKeySeedE:
   86|     25|            m_mode(std::move(mode)), m_s(std::move(s)), m_seed(std::move(seed)) {}

_ZN5Botan15KyberPolyTraits29montgomery_reduce_coefficientEi:
   29|   336k|      constexpr static T montgomery_reduce_coefficient(T2 a) {
   30|   336k|         const T u = static_cast<T>(static_cast<T>(a) * Q_inverse);
   31|   336k|         auto t = static_cast<T2>(u) * Q;
   32|   336k|         t = a - t;
   33|   336k|         t >>= sizeof(T) * 8;
   34|   336k|         return static_cast<T>(t);
   35|   336k|      }
_ZN5Botan15KyberPolyTraits26barrett_reduce_coefficientEs:
   37|   102k|      constexpr static T barrett_reduce_coefficient(T a) {
   38|   102k|         constexpr T2 v = ((1U << 26) + Q / 2) / Q;
   39|   102k|         const T t = static_cast<T>(((v * a) >> 26) * Q);
   40|   102k|         return static_cast<T>(a - t);
   41|   102k|      }
_ZN5Botan15KyberPolyTraits3nttENSt3__14spanIsLm256EEE:
   51|    160|      constexpr static void ntt(std::span<T, N> p) {
   52|  1.28k|         for(size_t len = N / 2, i = 0; len >= 2; len /= 2) {
  ------------------
  |  Branch (52:41): [True: 1.12k, False: 160]
  ------------------
   53|  21.4k|            for(size_t start = 0, j = 0; start < N; start = j + len) {
  ------------------
  |  Branch (53:42): [True: 20.3k, False: 1.12k]
  ------------------
   54|  20.3k|               const auto zeta = zetas[++i];
   55|   163k|               for(j = start; j < start + len; ++j) {
  ------------------
  |  Branch (55:31): [True: 143k, False: 20.3k]
  ------------------
   56|   143k|                  const auto t = fqmul(zeta, p[j + len]);
   57|   143k|                  p[j + len] = static_cast<T>(p[j] - t);
   58|   143k|                  p[j] = static_cast<T>(p[j] + t);
   59|   143k|               }
   60|  20.3k|            }
   61|  1.12k|         }
   62|       |
   63|    160|         barrett_reduce(p);
   64|    160|      }
_ZZN5Botan15KyberPolyTraits25poly_pointwise_montgomeryENSt3__14spanIsLm256EEENS2_IKsLm256EEES5_ENKUlT_E_clIS3_EEDaS6_:
  111|  17.5k|         auto Tq_elem_count = [](auto p) { return p.size() / 2; };
_ZZN5Botan15KyberPolyTraits25poly_pointwise_montgomeryENSt3__14spanIsLm256EEENS2_IKsLm256EEES5_ENKUlT_mE_clIS3_EEDaS6_m:
  113|  34.5k|         auto Tq_elem = [](auto p, size_t i) {
  114|       |            if constexpr(std::is_const_v<typename decltype(p)::element_type>) {
  115|       |               return std::array<T, 2>{p[2 * i], p[2 * i + 1]};
  116|  34.5k|            } else {
  117|  34.5k|               return std::tuple<T&, T&>{p[2 * i], p[2 * i + 1]};
  118|  34.5k|            }
  119|  34.5k|         };
_ZZN5Botan15KyberPolyTraits25poly_pointwise_montgomeryENSt3__14spanIsLm256EEENS2_IKsLm256EEES5_ENKUlT_mE_clIS5_EEDaS6_m:
  113|  69.1k|         auto Tq_elem = [](auto p, size_t i) {
  114|  69.1k|            if constexpr(std::is_const_v<typename decltype(p)::element_type>) {
  115|  69.1k|               return std::array<T, 2>{p[2 * i], p[2 * i + 1]};
  116|       |            } else {
  117|       |               return std::tuple<T&, T&>{p[2 * i], p[2 * i + 1]};
  118|       |            }
  119|  69.1k|         };
_ZZN5Botan15KyberPolyTraits25poly_pointwise_montgomeryENSt3__14spanIsLm256EEENS2_IKsLm256EEES5_ENKUlT_T0_sE_clINS1_5arrayIsLm2EEESB_EENS1_5tupleIJssEEES6_S7_s:
  106|  34.5k|         auto basemul = [](const auto a, const auto b, const T zeta) -> std::tuple<T, T> {
  107|  34.5k|            return {static_cast<T>(fqmul(a[0], b[0]) + fqmul(fqmul(a[1], b[1]), zeta)),
  108|  34.5k|                    static_cast<T>(fqmul(a[0], b[1]) + fqmul(a[1], b[0]))};
  109|  34.5k|         };
_ZN5Botan15KyberPolyTraits25poly_pointwise_montgomeryENSt3__14spanIsLm256EEENS2_IKsLm256EEES5_:
  102|    270|                                                      std::span<const T, N> rhs) {
  103|       |         /**
  104|       |          * NIST FIPS 203, Algorithm 12 (BaseCaseMultiply)
  105|       |          */
  106|    270|         auto basemul = [](const auto a, const auto b, const T zeta) -> std::tuple<T, T> {
  107|    270|            return {static_cast<T>(fqmul(a[0], b[0]) + fqmul(fqmul(a[1], b[1]), zeta)),
  108|    270|                    static_cast<T>(fqmul(a[0], b[1]) + fqmul(a[1], b[0]))};
  109|    270|         };
  110|       |
  111|    270|         auto Tq_elem_count = [](auto p) { return p.size() / 2; };
  112|       |
  113|    270|         auto Tq_elem = [](auto p, size_t i) {
  114|    270|            if constexpr(std::is_const_v<typename decltype(p)::element_type>) {
  115|    270|               return std::array<T, 2>{p[2 * i], p[2 * i + 1]};
  116|    270|            } else {
  117|    270|               return std::tuple<T&, T&>{p[2 * i], p[2 * i + 1]};
  118|    270|            }
  119|    270|         };
  120|       |
  121|  17.5k|         for(size_t i = 0; i < Tq_elem_count(result) / 2; ++i) {
  ------------------
  |  Branch (121:28): [True: 17.2k, False: 270]
  ------------------
  122|  17.2k|            const T zeta = zetas[64 + i];
  123|  17.2k|            const T nzeta = static_cast<T>(-zeta);
  124|  17.2k|            Tq_elem(result, 2 * i) = basemul(Tq_elem(lhs, 2 * i), Tq_elem(rhs, 2 * i), zeta);
  125|  17.2k|            Tq_elem(result, 2 * i + 1) = basemul(Tq_elem(lhs, 2 * i + 1), Tq_elem(rhs, 2 * i + 1), nzeta);
  126|  17.2k|         }
  127|    270|      }

_ZNK5Botan26Kyber_Symmetric_Primitives1HENS_10StrongSpanIKNS_6StrongINSt3__16vectorIhNS3_9allocatorIhEEEENS_25KyberSerializedPublicKey_EJEEEEE:
   40|     25|      KyberHashedPublicKey H(StrongSpan<const KyberSerializedPublicKey> pk) const {
   41|     25|         return create_H()->process<KyberHashedPublicKey>(pk);
   42|     25|      }
_ZNK5Botan26Kyber_Symmetric_Primitives1GENS_10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_20KyberSeedRandomness_EJEEEEERKNS_14KyberConstantsE:
   45|     25|                                                const KyberConstants& mode) const {
   46|     25|         if(auto domsep = seed_expansion_domain_separator(mode)) {
  ------------------
  |  Branch (46:18): [True: 25, False: 0]
  ------------------
   47|     25|            return G_split<KyberSeedRho, KyberSeedSigma>(seed, *domsep);
   48|     25|         } else {
   49|      0|            return G_split<KyberSeedRho, KyberSeedSigma>(seed);
   50|      0|         }
   51|     25|      }
_ZNK5Botan26Kyber_Symmetric_Primitives9setup_XOFERNSt3__110unique_ptrINS_3XOFENS1_14default_deleteIS3_EEEENS_10StrongSpanIKNS_6StrongINS1_6vectorIhNS1_9allocatorIhEEEENS_13KyberSeedRho_EJEEEEENS1_5tupleIJhhEEE:
   86|    270|                     std::tuple<uint8_t, uint8_t> matrix_position) const {
   87|    270|         if(!xof) {
  ------------------
  |  Branch (87:13): [True: 25, False: 245]
  ------------------
   88|     25|            xof = create_XOF(seed, matrix_position);
   89|    245|         } else {
   90|    245|            init_XOF(*xof, seed, matrix_position);
   91|    245|         }
   92|    270|      }
_ZNK5Botan26Kyber_Symmetric_Primitives9setup_PRFERNSt3__110unique_ptrINS_3XOFENS1_14default_deleteIS3_EEEENS1_4spanIKhLm18446744073709551615EEEh:
   95|    160|      void setup_PRF(std::unique_ptr<Botan::XOF>& xof, std::span<const uint8_t> seed, uint8_t nonce) const {
   96|    160|         if(!xof) {
  ------------------
  |  Branch (96:13): [True: 25, False: 135]
  ------------------
   97|     25|            xof = create_PRF(seed, nonce);
   98|    135|         } else {
   99|    135|            init_PRF(*xof, seed, nonce);
  100|    135|         }
  101|    160|      }
_ZNK5Botan26Kyber_Symmetric_Primitives7G_splitITkNS_8concepts22contiguous_strong_typeENS_6StrongINSt3__16vectorIhNS4_9allocatorIhEEEENS_13KyberSeedRho_EJEEETkNS2_22contiguous_strong_typeENS3_INS5_IhNS_16secure_allocatorIhEEEENS_15KyberSeedSigma_EJEEETpTkNS_6ranges16contiguous_rangeEJNS_10StrongSpanIKNS3_ISD_NS_20KyberSeedRandomness_EJEEEEENS4_5arrayIhLm1EEEEEENS4_4pairIT_T0_EEDpRKT1_:
  107|     25|      std::pair<T1, T2> G_split(const InputTs&... inputs) const {
  108|     25|         auto g = create_G();
  109|     25|         (g->update(inputs), ...);
  110|     25|         const auto s = g->final();
  111|       |
  112|     25|         BufferSlicer bs(s);
  113|     25|         std::pair<T1, T2> result;
  114|     25|         result.first = bs.copy<T1>(KyberConstants::SEED_BYTES);
  115|     25|         result.second = bs.copy<T2>(KyberConstants::SEED_BYTES);
  116|     25|         BOTAN_ASSERT_NOMSG(bs.empty());
  ------------------
  |  |   77|     25|   do {                                                                     \
  |  |   78|     25|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|     25|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 25]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|     25|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 25]
  |  |  ------------------
  ------------------
  117|     25|         return result;
  118|     25|      }
_ZN5Botan26Kyber_Symmetric_PrimitivesD2Ev:
   30|     58|      virtual ~Kyber_Symmetric_Primitives() = default;

_ZN5Botan11make_uint16Ehh:
   92|    270|inline constexpr uint16_t make_uint16(uint8_t i0, uint8_t i1) {
   93|    270|   return static_cast<uint16_t>((static_cast<uint16_t>(i0) << 8) | i1);
   94|    270|}
_ZN5Botan11make_uint32Ehhhh:
  104|   717k|inline constexpr uint32_t make_uint32(uint8_t i0, uint8_t i1, uint8_t i2, uint8_t i3) {
  105|   717k|   return ((static_cast<uint32_t>(i0) << 24) | (static_cast<uint32_t>(i1) << 16) | (static_cast<uint32_t>(i2) << 8) |
  106|   717k|           (static_cast<uint32_t>(i3)));
  107|   717k|}
_ZN5Botan12get_byte_varImEEhmT_:
   69|  44.3k|inline constexpr uint8_t get_byte_var(size_t byte_num, T input) {
   70|  44.3k|   return static_cast<uint8_t>(input >> (((~byte_num) & (sizeof(T) - 1)) << 3));
   71|  44.3k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE57005ETkNS0_20unsigned_integralishEmTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm8EEEQnt15custom_storableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEEvS9_OT1_:
  525|      4|inline constexpr void store_any(WrappedInT wrapped_in, OutR&& out_range) {
  526|      4|   const auto in = detail::unwrap_strong_type_or_enum(wrapped_in);
  527|      4|   using InT = decltype(in);
  528|      4|   ranges::assert_exact_byte_length<sizeof(in)>(out_range);
  529|      4|   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|      4|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (534:7): [Folded, False: 4]
  ------------------
  535|      0|      return fallback_store_any<endianness, InT>(in, std::forward<OutR>(out_range));
  536|      4|   } else {
  537|       |      if constexpr(sizeof(InT) == 1) {
  538|       |         out[0] = static_cast<uint8_t>(in);
  539|      4|      } else if constexpr(endianness == std::endian::native) {
  540|      4|         typecast_copy(out, in);
  541|       |      } else {
  542|       |         static_assert(opposite(endianness) == std::endian::native);
  543|       |         typecast_copy(out, reverse_bytes(in));
  544|       |      }
  545|      4|   }
  546|      4|}
_ZN5Botan6detail26unwrap_strong_type_or_enumITkNS0_20unsigned_integralishEmEEDaT_:
  190|  44.6k|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|  44.6k|   } else {
  195|  44.6k|      return Botan::unwrap_strong_type(t);
  196|  44.6k|   }
  197|  44.6k|}
_ZN5Botan6detail24wrap_strong_type_or_enumITkNS0_20unsigned_integralishEjTkNSt3__117unsigned_integralEjEEDaT0_:
  200|  48.6k|constexpr auto wrap_strong_type_or_enum(T t) {
  201|       |   if constexpr(std::is_enum_v<OutT>) {
  202|       |      return static_cast<OutT>(t);
  203|  48.6k|   } else {
  204|  48.6k|      return Botan::wrap_strong_type<OutT>(t);
  205|  48.6k|   }
  206|  48.6k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE57005ETkNS0_20unsigned_integralishEjTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm4EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_:
  278|  4.48k|inline constexpr WrappedOutT load_any(InR&& in_range) {
  279|  4.48k|   using OutT = detail::wrapped_type<WrappedOutT>;
  280|  4.48k|   ranges::assert_exact_byte_length<sizeof(OutT)>(in_range);
  281|       |
  282|  4.48k|   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|  4.48k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  287|  4.48k|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  4.48k|      } else {
  289|  4.48k|         const std::span in{in_range};
  290|  4.48k|         if constexpr(sizeof(OutT) == 1) {
  291|  4.48k|            return static_cast<OutT>(in[0]);
  292|  4.48k|         } else if constexpr(endianness == std::endian::native) {
  293|  4.48k|            return typecast_copy<OutT>(in);
  294|  4.48k|         } else {
  295|  4.48k|            static_assert(opposite(endianness) == std::endian::native);
  296|  4.48k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  4.48k|         }
  298|  4.48k|      }
  299|  4.48k|   }());
  300|  4.48k|}
_ZN5Botan8store_beINS_6detail10AutoDetectEJRKmPhEEEDaDpOT0_:
  745|  4.04k|inline constexpr auto store_be(ParamTs&&... params) {
  746|  4.04k|   return detail::store_any<std::endian::big, ModifierT>(std::forward<ParamTs>(params)...);
  747|  4.04k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS0_20unsigned_integralishEmQoosr3stdE7same_asIS4_T0_Esr3stdE7same_asIT1_S5_EEEvS6_Ph:
  711|  4.04k|inline constexpr void store_any(T in, uint8_t out[]) {
  712|       |   // asserts that *out points to enough bytes to write into
  713|  4.04k|   store_any<endianness, InT>(in, std::span<uint8_t, sizeof(T)>(out, sizeof(T)));
  714|  4.04k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS0_20unsigned_integralishEmTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm8EEEQsr3stdE7same_asIS4_T0_EEEvT1_OT2_:
  646|  4.04k|inline constexpr void store_any(T in, OutR&& out_range) {
  647|  4.04k|   store_any<endianness, T>(in, std::forward<OutR>(out_range));
  648|  4.04k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm8EEEQnt15custom_storableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEEvS9_OT1_:
  525|  44.6k|inline constexpr void store_any(WrappedInT wrapped_in, OutR&& out_range) {
  526|  44.6k|   const auto in = detail::unwrap_strong_type_or_enum(wrapped_in);
  527|  44.6k|   using InT = decltype(in);
  528|  44.6k|   ranges::assert_exact_byte_length<sizeof(in)>(out_range);
  529|  44.6k|   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|  44.6k|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (534:7): [Folded, False: 44.6k]
  ------------------
  535|      0|      return fallback_store_any<endianness, InT>(in, std::forward<OutR>(out_range));
  536|  44.6k|   } 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|  44.6k|      } else {
  542|  44.6k|         static_assert(opposite(endianness) == std::endian::native);
  543|  44.6k|         typecast_copy(out, reverse_bytes(in));
  544|  44.6k|      }
  545|  44.6k|   }
  546|  44.6k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_:
  278|   137k|inline constexpr WrappedOutT load_any(InR&& in_range) {
  279|   137k|   using OutT = detail::wrapped_type<WrappedOutT>;
  280|   137k|   ranges::assert_exact_byte_length<sizeof(OutT)>(in_range);
  281|       |
  282|   137k|   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|   137k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  287|   137k|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|   137k|      } else {
  289|   137k|         const std::span in{in_range};
  290|   137k|         if constexpr(sizeof(OutT) == 1) {
  291|   137k|            return static_cast<OutT>(in[0]);
  292|   137k|         } else if constexpr(endianness == std::endian::native) {
  293|   137k|            return typecast_copy<OutT>(in);
  294|   137k|         } else {
  295|   137k|            static_assert(opposite(endianness) == std::endian::native);
  296|   137k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|   137k|         }
  298|   137k|      }
  299|   137k|   }());
  300|   137k|}
_ZN5Botan6detail24wrap_strong_type_or_enumITkNS0_20unsigned_integralishEmTkNSt3__117unsigned_integralEmEEDaT0_:
  200|   210k|constexpr auto wrap_strong_type_or_enum(T t) {
  201|       |   if constexpr(std::is_enum_v<OutT>) {
  202|       |      return static_cast<OutT>(t);
  203|   210k|   } else {
  204|   210k|      return Botan::wrap_strong_type<OutT>(t);
  205|   210k|   }
  206|   210k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_ENKUlvE_clEv:
  282|   137k|   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|   137k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (286:10): [Folded, False: 137k]
  ------------------
  287|      0|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|   137k|      } else {
  289|   137k|         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|   137k|         } else {
  295|   137k|            static_assert(opposite(endianness) == std::endian::native);
  296|   137k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|   137k|         }
  298|   137k|      }
  299|   137k|   }());
_ZN5Botan11copy_out_beITkNS_6ranges14spanable_rangeENSt3__16vectorImNS_16secure_allocatorImEEEEEEvNS2_4spanIhLm18446744073709551615EEERKT_:
  773|      2|inline void copy_out_be(std::span<uint8_t> out, const InR& in) {
  774|      2|   using T = std::ranges::range_value_t<InR>;
  775|      2|   std::span<const T> in_s{in};
  776|      2|   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|      2|   for(size_t i = 0; i < remaining_bytes; ++i) {
  ------------------
  |  Branch (779:22): [True: 0, False: 2]
  ------------------
  780|      0|      out[i] = get_byte_var(i, in_s.front());
  781|      0|   }
  782|      2|}
_ZN5Botan6detail33copy_out_any_word_aligned_portionILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmEEmRNS2_4spanIhLm18446744073709551615EEERNS4_IKT0_Lm18446744073709551615EEE:
  752|      2|inline size_t copy_out_any_word_aligned_portion(std::span<uint8_t>& out, std::span<const T>& in) {
  753|      2|   const size_t full_words = out.size() / sizeof(T);
  754|      2|   const size_t full_word_bytes = full_words * sizeof(T);
  755|      2|   const size_t remaining_bytes = out.size() - full_word_bytes;
  756|      2|   BOTAN_ASSERT_NOMSG(in.size_bytes() >= full_word_bytes + remaining_bytes);
  ------------------
  |  |   77|      2|   do {                                                                     \
  |  |   78|      2|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|      2|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 2]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|      2|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 2]
  |  |  ------------------
  ------------------
  757|       |
  758|       |   // copy full words
  759|      2|   store_any<endianness, T>(out.first(full_word_bytes), in.first(full_words));
  760|      2|   out = out.subspan(full_word_bytes);
  761|      2|   in = in.subspan(full_words);
  762|       |
  763|      2|   return remaining_bytes;
  764|      2|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206EmTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm18446744073709551615EEETkNS4_14spanable_rangeENS6_IKmLm18446744073709551615EEEQoosr3stdE7same_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|      2|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  604|      2|   ranges::assert_equal_byte_lengths(out, in);
  605|      2|   using element_type = std::ranges::range_value_t<InR>;
  606|       |
  607|      2|   auto store_elementwise = [&] {
  608|      2|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|      2|      std::span<uint8_t> out_s(out);
  610|      2|      for(auto in_elem : in) {
  611|      2|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|      2|         out_s = out_s.subspan(bytes_per_element);
  613|      2|      }
  614|      2|   };
  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|      2|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (619:7): [Folded, False: 2]
  ------------------
  620|      0|      store_elementwise();
  621|      2|   } else {
  622|       |      if constexpr(endianness == std::endian::native && !custom_storable<element_type>) {
  623|       |         typecast_copy(out, in);
  624|      2|      } else {
  625|      2|         store_elementwise();
  626|      2|      }
  627|      2|   }
  628|      2|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE64206EmTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm18446744073709551615EEETkNS4_14spanable_rangeENS6_IKmLm18446744073709551615EEEQoosr3stdE7same_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|      2|   auto store_elementwise = [&] {
  608|      2|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|      2|      std::span<uint8_t> out_s(out);
  610|     16|      for(auto in_elem : in) {
  ------------------
  |  Branch (610:24): [True: 16, False: 2]
  ------------------
  611|     16|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|     16|         out_s = out_s.subspan(bytes_per_element);
  613|     16|      }
  614|      2|   };
_ZN5Botan6detail9store_anyILNSt3__16endianE64206EmTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm8EEETpTkNS0_20unsigned_integralishEJmEQaagtsZT2_Li0Eooaasr3stdE7same_asINS0_10AutoDetectET0_E10all_same_vIDpT2_Eaa20unsigned_integralishIS9_E10all_same_vIS9_SB_EEEvOT1_SB_:
  582|  40.5k|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, Ts... ins) {
  583|  40.5k|   ranges::assert_exact_byte_length<(sizeof(Ts) + ...)>(out);
  584|  40.5k|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|  40.5k|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|  40.5k|      off += sizeof(T);
  587|  40.5k|   };
  588|       |
  589|  40.5k|   (store_one(std::span{out}, ins), ...);
  590|  40.5k|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE64206EmTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm8EEETpTkNS0_20unsigned_integralishEJmEQaagtsZT2_Li0Eooaasr3stdE7same_asINS0_10AutoDetectET0_E10all_same_vIDpT2_Eaa20unsigned_integralishIS9_E10all_same_vIS9_SB_EEEvOT1_SB_ENUlTyS9_T_E_clImS7_EEDaS9_SE_:
  584|  40.5k|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|  40.5k|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|  40.5k|      off += sizeof(T);
  587|  40.5k|   };
_ZN5Botan6detail8load_anyILNSt3__16endianE57005ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_:
  278|  44.0k|inline constexpr WrappedOutT load_any(InR&& in_range) {
  279|  44.0k|   using OutT = detail::wrapped_type<WrappedOutT>;
  280|  44.0k|   ranges::assert_exact_byte_length<sizeof(OutT)>(in_range);
  281|       |
  282|  44.0k|   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.0k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  287|  44.0k|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  44.0k|      } else {
  289|  44.0k|         const std::span in{in_range};
  290|  44.0k|         if constexpr(sizeof(OutT) == 1) {
  291|  44.0k|            return static_cast<OutT>(in[0]);
  292|  44.0k|         } else if constexpr(endianness == std::endian::native) {
  293|  44.0k|            return typecast_copy<OutT>(in);
  294|  44.0k|         } else {
  295|  44.0k|            static_assert(opposite(endianness) == std::endian::native);
  296|  44.0k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  44.0k|         }
  298|  44.0k|      }
  299|  44.0k|   }());
  300|  44.0k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmEET0_PKhm:
  454|  12.6k|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|  12.6k|   constexpr size_t out_size = sizeof(OutT);
  457|  12.6k|   return load_any<endianness, OutT>(std::span<const uint8_t, out_size>(in + off * out_size, out_size));
  458|  12.6k|}
_ZN5Botan7load_beImJNSt3__14spanIKhLm8EEEEEEDaDpOT0_:
  504|   125k|inline constexpr auto load_be(ParamTs&&... params) {
  505|   125k|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|   125k|}
_ZN5Botan7load_beImJRNSt3__15arrayIhLm8EEEEEEDaDpOT0_:
  504|  24.4k|inline constexpr auto load_be(ParamTs&&... params) {
  505|  24.4k|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|  24.4k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEERNS2_5arrayIhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_:
  278|  24.4k|inline constexpr WrappedOutT load_any(InR&& in_range) {
  279|  24.4k|   using OutT = detail::wrapped_type<WrappedOutT>;
  280|  24.4k|   ranges::assert_exact_byte_length<sizeof(OutT)>(in_range);
  281|       |
  282|  24.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|  24.4k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  287|  24.4k|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  24.4k|      } else {
  289|  24.4k|         const std::span in{in_range};
  290|  24.4k|         if constexpr(sizeof(OutT) == 1) {
  291|  24.4k|            return static_cast<OutT>(in[0]);
  292|  24.4k|         } else if constexpr(endianness == std::endian::native) {
  293|  24.4k|            return typecast_copy<OutT>(in);
  294|  24.4k|         } else {
  295|  24.4k|            static_assert(opposite(endianness) == std::endian::native);
  296|  24.4k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  24.4k|         }
  298|  24.4k|      }
  299|  24.4k|   }());
  300|  24.4k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEERNS2_5arrayIhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_ENKUlvE_clEv:
  282|  24.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|  24.4k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (286:10): [Folded, False: 24.4k]
  ------------------
  287|      0|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  24.4k|      } else {
  289|  24.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|  24.4k|         } else {
  295|  24.4k|            static_assert(opposite(endianness) == std::endian::native);
  296|  24.4k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  24.4k|         }
  298|  24.4k|      }
  299|  24.4k|   }());
_ZN5Botan8store_beINS_6detail10AutoDetectEJRNSt3__14spanIhLm32EEERNS3_5arrayImLm4EEEEEEDaDpOT0_:
  745|  1.66k|inline constexpr auto store_be(ParamTs&&... params) {
  746|  1.66k|   return detail::store_any<std::endian::big, ModifierT>(std::forward<ParamTs>(params)...);
  747|  1.66k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges23contiguous_output_rangeIhEERNS2_4spanIhLm32EEETkNS5_14spanable_rangeENS2_5arrayImLm4EEEQoosr3stdE7same_asIS4_T0_Esr3stdE7same_asISC_NS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT2_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISK_EESL_E4type10value_typeEEEEvOT1_RKSH_:
  603|  1.66k|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  604|  1.66k|   ranges::assert_equal_byte_lengths(out, in);
  605|  1.66k|   using element_type = std::ranges::range_value_t<InR>;
  606|       |
  607|  1.66k|   auto store_elementwise = [&] {
  608|  1.66k|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|  1.66k|      std::span<uint8_t> out_s(out);
  610|  1.66k|      for(auto in_elem : in) {
  611|  1.66k|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|  1.66k|         out_s = out_s.subspan(bytes_per_element);
  613|  1.66k|      }
  614|  1.66k|   };
  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|  1.66k|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (619:7): [Folded, False: 1.66k]
  ------------------
  620|      0|      store_elementwise();
  621|  1.66k|   } else {
  622|       |      if constexpr(endianness == std::endian::native && !custom_storable<element_type>) {
  623|       |         typecast_copy(out, in);
  624|  1.66k|      } else {
  625|  1.66k|         store_elementwise();
  626|  1.66k|      }
  627|  1.66k|   }
  628|  1.66k|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges23contiguous_output_rangeIhEERNS2_4spanIhLm32EEETkNS5_14spanable_rangeENS2_5arrayImLm4EEEQoosr3stdE7same_asIS4_T0_Esr3stdE7same_asISC_NS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT2_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISK_EESL_E4type10value_typeEEEEvOT1_RKSH_ENKUlvE_clEv:
  607|  1.66k|   auto store_elementwise = [&] {
  608|  1.66k|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|  1.66k|      std::span<uint8_t> out_s(out);
  610|  6.66k|      for(auto in_elem : in) {
  ------------------
  |  Branch (610:24): [True: 6.66k, False: 1.66k]
  ------------------
  611|  6.66k|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|  6.66k|         out_s = out_s.subspan(bytes_per_element);
  613|  6.66k|      }
  614|  1.66k|   };
_ZN5Botan7load_beImJPKhmEEEDaDpOT0_:
  504|  12.6k|inline constexpr auto load_be(ParamTs&&... params) {
  505|  12.6k|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|  12.6k|}
_ZN5Botan8store_beINS_6detail10AutoDetectEJRNSt3__14spanIhLm48EEERNS3_5arrayImLm6EEEEEEDaDpOT0_:
  745|  1.28k|inline constexpr auto store_be(ParamTs&&... params) {
  746|  1.28k|   return detail::store_any<std::endian::big, ModifierT>(std::forward<ParamTs>(params)...);
  747|  1.28k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges23contiguous_output_rangeIhEERNS2_4spanIhLm48EEETkNS5_14spanable_rangeENS2_5arrayImLm6EEEQoosr3stdE7same_asIS4_T0_Esr3stdE7same_asISC_NS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT2_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISK_EESL_E4type10value_typeEEEEvOT1_RKSH_:
  603|  1.28k|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  604|  1.28k|   ranges::assert_equal_byte_lengths(out, in);
  605|  1.28k|   using element_type = std::ranges::range_value_t<InR>;
  606|       |
  607|  1.28k|   auto store_elementwise = [&] {
  608|  1.28k|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|  1.28k|      std::span<uint8_t> out_s(out);
  610|  1.28k|      for(auto in_elem : in) {
  611|  1.28k|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|  1.28k|         out_s = out_s.subspan(bytes_per_element);
  613|  1.28k|      }
  614|  1.28k|   };
  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|  1.28k|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (619:7): [Folded, False: 1.28k]
  ------------------
  620|      0|      store_elementwise();
  621|  1.28k|   } else {
  622|       |      if constexpr(endianness == std::endian::native && !custom_storable<element_type>) {
  623|       |         typecast_copy(out, in);
  624|  1.28k|      } else {
  625|  1.28k|         store_elementwise();
  626|  1.28k|      }
  627|  1.28k|   }
  628|  1.28k|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges23contiguous_output_rangeIhEERNS2_4spanIhLm48EEETkNS5_14spanable_rangeENS2_5arrayImLm6EEEQoosr3stdE7same_asIS4_T0_Esr3stdE7same_asISC_NS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT2_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISK_EESL_E4type10value_typeEEEEvOT1_RKSH_ENKUlvE_clEv:
  607|  1.28k|   auto store_elementwise = [&] {
  608|  1.28k|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|  1.28k|      std::span<uint8_t> out_s(out);
  610|  7.69k|      for(auto in_elem : in) {
  ------------------
  |  Branch (610:24): [True: 7.69k, False: 1.28k]
  ------------------
  611|  7.69k|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|  7.69k|         out_s = out_s.subspan(bytes_per_element);
  613|  7.69k|      }
  614|  1.28k|   };
_ZN5Botan8store_beINS_6detail10AutoDetectEJRNSt3__14spanIhLm64EEERNS3_5arrayImLm8EEEEEEDaDpOT0_:
  745|    707|inline constexpr auto store_be(ParamTs&&... params) {
  746|    707|   return detail::store_any<std::endian::big, ModifierT>(std::forward<ParamTs>(params)...);
  747|    707|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges23contiguous_output_rangeIhEERNS2_4spanIhLm64EEETkNS5_14spanable_rangeENS2_5arrayImLm8EEEQoosr3stdE7same_asIS4_T0_Esr3stdE7same_asISC_NS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT2_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISK_EESL_E4type10value_typeEEEEvOT1_RKSH_:
  603|    707|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  604|    707|   ranges::assert_equal_byte_lengths(out, in);
  605|    707|   using element_type = std::ranges::range_value_t<InR>;
  606|       |
  607|    707|   auto store_elementwise = [&] {
  608|    707|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|    707|      std::span<uint8_t> out_s(out);
  610|    707|      for(auto in_elem : in) {
  611|    707|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|    707|         out_s = out_s.subspan(bytes_per_element);
  613|    707|      }
  614|    707|   };
  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|    707|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (619:7): [Folded, False: 707]
  ------------------
  620|      0|      store_elementwise();
  621|    707|   } else {
  622|       |      if constexpr(endianness == std::endian::native && !custom_storable<element_type>) {
  623|       |         typecast_copy(out, in);
  624|    707|      } else {
  625|    707|         store_elementwise();
  626|    707|      }
  627|    707|   }
  628|    707|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges23contiguous_output_rangeIhEERNS2_4spanIhLm64EEETkNS5_14spanable_rangeENS2_5arrayImLm8EEEQoosr3stdE7same_asIS4_T0_Esr3stdE7same_asISC_NS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT2_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISK_EESL_E4type10value_typeEEEEvOT1_RKSH_ENKUlvE_clEv:
  607|    707|   auto store_elementwise = [&] {
  608|    707|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|    707|      std::span<uint8_t> out_s(out);
  610|  5.65k|      for(auto in_elem : in) {
  ------------------
  |  Branch (610:24): [True: 5.65k, False: 707]
  ------------------
  611|  5.65k|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|  5.65k|         out_s = out_s.subspan(bytes_per_element);
  613|  5.65k|      }
  614|    707|   };
_ZN5Botan8store_beINS_6detail10AutoDetectEJRNSt3__15arrayImLm9EEEEEEDaDpOT0_:
  745|  1.89k|inline constexpr auto store_be(ParamTs&&... params) {
  746|  1.89k|   return detail::store_any<std::endian::big, ModifierT>(std::forward<ParamTs>(params)...);
  747|  1.89k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges14spanable_rangeERNS2_5arrayImLm9EEEQoooosr3stdE7same_asIS4_T0_Eaasr6rangesE25statically_spanable_rangeIS9_Esr3stdE21default_initializableIS9_Esr8conceptsE21resizable_byte_bufferIS9_EEEDaOT1_:
  663|  1.89k|inline constexpr auto store_any(InR&& in_range) {
  664|  1.89k|   auto out = []([[maybe_unused]] const auto& in) {
  665|  1.89k|      if constexpr(std::same_as<AutoDetect, OutR>) {
  666|  1.89k|         if constexpr(ranges::statically_spanable_range<InR>) {
  667|  1.89k|            constexpr size_t bytes = decltype(std::span{in})::extent * sizeof(std::ranges::range_value_t<InR>);
  668|  1.89k|            return std::array<uint8_t, bytes>();
  669|  1.89k|         } else {
  670|  1.89k|            static_assert(
  671|  1.89k|               !std::same_as<AutoDetect, OutR>,
  672|  1.89k|               "cannot infer a suitable result container type from the given parameters at compile time, please specify it explicitly");
  673|  1.89k|         }
  674|  1.89k|      } else if constexpr(concepts::resizable_byte_buffer<OutR>) {
  675|  1.89k|         return OutR(std::span{in}.size_bytes());
  676|  1.89k|      } else {
  677|  1.89k|         return OutR{};
  678|  1.89k|      }
  679|  1.89k|   }(in_range);
  680|       |
  681|  1.89k|   store_any<endianness, std::ranges::range_value_t<InR>>(out, std::forward<InR>(in_range));
  682|  1.89k|   return out;
  683|  1.89k|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges14spanable_rangeERNS2_5arrayImLm9EEEQoooosr3stdE7same_asIS4_T0_Eaasr6rangesE25statically_spanable_rangeIS9_Esr3stdE21default_initializableIS9_Esr8conceptsE21resizable_byte_bufferIS9_EEEDaOT1_ENKUlRKT_E_clIS7_EEDaSE_:
  664|  1.89k|   auto out = []([[maybe_unused]] const auto& in) {
  665|  1.89k|      if constexpr(std::same_as<AutoDetect, OutR>) {
  666|  1.89k|         if constexpr(ranges::statically_spanable_range<InR>) {
  667|  1.89k|            constexpr size_t bytes = decltype(std::span{in})::extent * sizeof(std::ranges::range_value_t<InR>);
  668|  1.89k|            return std::array<uint8_t, bytes>();
  669|       |         } else {
  670|       |            static_assert(
  671|       |               !std::same_as<AutoDetect, OutR>,
  672|       |               "cannot infer a suitable result container type from the given parameters at compile time, please specify it explicitly");
  673|       |         }
  674|       |      } else if constexpr(concepts::resizable_byte_buffer<OutR>) {
  675|       |         return OutR(std::span{in}.size_bytes());
  676|       |      } else {
  677|       |         return OutR{};
  678|       |      }
  679|  1.89k|   }(in_range);
_ZN5Botan6detail9store_anyILNSt3__16endianE64206EmTkNS_6ranges23contiguous_output_rangeIhEERNS2_5arrayIhLm72EEETkNS4_14spanable_rangeENS6_ImLm9EEEQoosr3stdE7same_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|  1.89k|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  604|  1.89k|   ranges::assert_equal_byte_lengths(out, in);
  605|  1.89k|   using element_type = std::ranges::range_value_t<InR>;
  606|       |
  607|  1.89k|   auto store_elementwise = [&] {
  608|  1.89k|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|  1.89k|      std::span<uint8_t> out_s(out);
  610|  1.89k|      for(auto in_elem : in) {
  611|  1.89k|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|  1.89k|         out_s = out_s.subspan(bytes_per_element);
  613|  1.89k|      }
  614|  1.89k|   };
  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|  1.89k|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (619:7): [Folded, False: 1.89k]
  ------------------
  620|      0|      store_elementwise();
  621|  1.89k|   } else {
  622|       |      if constexpr(endianness == std::endian::native && !custom_storable<element_type>) {
  623|       |         typecast_copy(out, in);
  624|  1.89k|      } else {
  625|  1.89k|         store_elementwise();
  626|  1.89k|      }
  627|  1.89k|   }
  628|  1.89k|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE64206EmTkNS_6ranges23contiguous_output_rangeIhEERNS2_5arrayIhLm72EEETkNS4_14spanable_rangeENS6_ImLm9EEEQoosr3stdE7same_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|  1.89k|   auto store_elementwise = [&] {
  608|  1.89k|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|  1.89k|      std::span<uint8_t> out_s(out);
  610|  17.0k|      for(auto in_elem : in) {
  ------------------
  |  Branch (610:24): [True: 17.0k, False: 1.89k]
  ------------------
  611|  17.0k|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|  17.0k|         out_s = out_s.subspan(bytes_per_element);
  613|  17.0k|      }
  614|  1.89k|   };
_ZN5Botan8store_beINS_6detail10AutoDetectEJRNSt3__15arrayImLm4EEEEEEDaDpOT0_:
  745|    881|inline constexpr auto store_be(ParamTs&&... params) {
  746|    881|   return detail::store_any<std::endian::big, ModifierT>(std::forward<ParamTs>(params)...);
  747|    881|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges14spanable_rangeERNS2_5arrayImLm4EEEQoooosr3stdE7same_asIS4_T0_Eaasr6rangesE25statically_spanable_rangeIS9_Esr3stdE21default_initializableIS9_Esr8conceptsE21resizable_byte_bufferIS9_EEEDaOT1_:
  663|    881|inline constexpr auto store_any(InR&& in_range) {
  664|    881|   auto out = []([[maybe_unused]] const auto& in) {
  665|    881|      if constexpr(std::same_as<AutoDetect, OutR>) {
  666|    881|         if constexpr(ranges::statically_spanable_range<InR>) {
  667|    881|            constexpr size_t bytes = decltype(std::span{in})::extent * sizeof(std::ranges::range_value_t<InR>);
  668|    881|            return std::array<uint8_t, bytes>();
  669|    881|         } else {
  670|    881|            static_assert(
  671|    881|               !std::same_as<AutoDetect, OutR>,
  672|    881|               "cannot infer a suitable result container type from the given parameters at compile time, please specify it explicitly");
  673|    881|         }
  674|    881|      } else if constexpr(concepts::resizable_byte_buffer<OutR>) {
  675|    881|         return OutR(std::span{in}.size_bytes());
  676|    881|      } else {
  677|    881|         return OutR{};
  678|    881|      }
  679|    881|   }(in_range);
  680|       |
  681|    881|   store_any<endianness, std::ranges::range_value_t<InR>>(out, std::forward<InR>(in_range));
  682|    881|   return out;
  683|    881|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges14spanable_rangeERNS2_5arrayImLm4EEEQoooosr3stdE7same_asIS4_T0_Eaasr6rangesE25statically_spanable_rangeIS9_Esr3stdE21default_initializableIS9_Esr8conceptsE21resizable_byte_bufferIS9_EEEDaOT1_ENKUlRKT_E_clIS7_EEDaSE_:
  664|    881|   auto out = []([[maybe_unused]] const auto& in) {
  665|    881|      if constexpr(std::same_as<AutoDetect, OutR>) {
  666|    881|         if constexpr(ranges::statically_spanable_range<InR>) {
  667|    881|            constexpr size_t bytes = decltype(std::span{in})::extent * sizeof(std::ranges::range_value_t<InR>);
  668|    881|            return std::array<uint8_t, bytes>();
  669|       |         } else {
  670|       |            static_assert(
  671|       |               !std::same_as<AutoDetect, OutR>,
  672|       |               "cannot infer a suitable result container type from the given parameters at compile time, please specify it explicitly");
  673|       |         }
  674|       |      } else if constexpr(concepts::resizable_byte_buffer<OutR>) {
  675|       |         return OutR(std::span{in}.size_bytes());
  676|       |      } else {
  677|       |         return OutR{};
  678|       |      }
  679|    881|   }(in_range);
_ZN5Botan6detail9store_anyILNSt3__16endianE64206EmTkNS_6ranges23contiguous_output_rangeIhEERNS2_5arrayIhLm32EEETkNS4_14spanable_rangeENS6_ImLm4EEEQoosr3stdE7same_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|    881|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  604|    881|   ranges::assert_equal_byte_lengths(out, in);
  605|    881|   using element_type = std::ranges::range_value_t<InR>;
  606|       |
  607|    881|   auto store_elementwise = [&] {
  608|    881|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|    881|      std::span<uint8_t> out_s(out);
  610|    881|      for(auto in_elem : in) {
  611|    881|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|    881|         out_s = out_s.subspan(bytes_per_element);
  613|    881|      }
  614|    881|   };
  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|    881|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (619:7): [Folded, False: 881]
  ------------------
  620|      0|      store_elementwise();
  621|    881|   } else {
  622|       |      if constexpr(endianness == std::endian::native && !custom_storable<element_type>) {
  623|       |         typecast_copy(out, in);
  624|    881|      } else {
  625|    881|         store_elementwise();
  626|    881|      }
  627|    881|   }
  628|    881|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE64206EmTkNS_6ranges23contiguous_output_rangeIhEERNS2_5arrayIhLm32EEETkNS4_14spanable_rangeENS6_ImLm4EEEQoosr3stdE7same_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|    881|   auto store_elementwise = [&] {
  608|    881|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|    881|      std::span<uint8_t> out_s(out);
  610|  3.52k|      for(auto in_elem : in) {
  ------------------
  |  Branch (610:24): [True: 3.52k, False: 881]
  ------------------
  611|  3.52k|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|  3.52k|         out_s = out_s.subspan(bytes_per_element);
  613|  3.52k|      }
  614|    881|   };
_ZN5Botan7load_leINS_6detail10AutoDetectEJRNSt3__15arrayIhLm8EEEEEEDaDpOT0_:
  495|  4.23k|inline constexpr auto load_le(ParamTs&&... params) {
  496|  4.23k|   return detail::load_any<std::endian::little, OutT>(std::forward<ParamTs>(params)...);
  497|  4.23k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges16contiguous_rangeIhEERNS2_5arrayIhLm8EEEQoosr3stdE7same_asIS4_T0_Eaaoosr6rangesE25statically_spanable_rangeISA_Esr8conceptsE19resizable_containerISA_E20unsigned_integralishINSA_10value_typeEEEEDaOT1_:
  397|  4.23k|inline constexpr auto load_any(InR&& in_range) {
  398|  4.23k|   auto out = []([[maybe_unused]] const auto& in) {
  399|  4.23k|      if constexpr(std::same_as<AutoDetect, OutT>) {
  400|  4.23k|         if constexpr(ranges::statically_spanable_range<InR>) {
  401|  4.23k|            constexpr size_t extent = decltype(std::span{in})::extent;
  402|       |
  403|       |            // clang-format off
  404|  4.23k|            using type =
  405|  4.23k|               std::conditional_t<extent == 1, uint8_t,
  406|  4.23k|               std::conditional_t<extent == 2, uint16_t,
  407|  4.23k|               std::conditional_t<extent == 4, uint32_t,
  408|  4.23k|               std::conditional_t<extent == 8, uint64_t, void>>>>;
  409|       |            // clang-format on
  410|       |
  411|  4.23k|            static_assert(
  412|  4.23k|               !std::is_void_v<type>,
  413|  4.23k|               "Cannot determine the output type based on a statically sized bytearray with length other than those: 1, 2, 4, 8");
  414|       |
  415|  4.23k|            return type{};
  416|  4.23k|         } else {
  417|  4.23k|            static_assert(
  418|  4.23k|               !std::same_as<AutoDetect, OutT>,
  419|  4.23k|               "cannot infer return type from a dynamic range at compile time, please specify it explicitly");
  420|  4.23k|         }
  421|  4.23k|      } else if constexpr(concepts::resizable_container<OutT>) {
  422|  4.23k|         const size_t in_bytes = std::span{in}.size_bytes();
  423|  4.23k|         constexpr size_t out_elem_bytes = sizeof(typename OutT::value_type);
  424|  4.23k|         BOTAN_ARG_CHECK(in_bytes % out_elem_bytes == 0,
  425|  4.23k|                         "Input range is not word-aligned with the requested output range");
  426|  4.23k|         return OutT(in_bytes / out_elem_bytes);
  427|  4.23k|      } else {
  428|  4.23k|         return OutT{};
  429|  4.23k|      }
  430|  4.23k|   }(in_range);
  431|       |
  432|  4.23k|   using out_type = decltype(out);
  433|  4.23k|   if constexpr(unsigned_integralish<out_type>) {
  434|  4.23k|      out = load_any<endianness, out_type>(std::forward<InR>(in_range));
  435|       |   } else {
  436|       |      static_assert(ranges::contiguous_range<out_type>);
  437|       |      using out_range_type = std::ranges::range_value_t<out_type>;
  438|       |      load_any<endianness, out_range_type>(out, std::forward<InR>(in_range));
  439|       |   }
  440|  4.23k|   return out;
  441|  4.23k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges16contiguous_rangeIhEERNS2_5arrayIhLm8EEEQoosr3stdE7same_asIS4_T0_Eaaoosr6rangesE25statically_spanable_rangeISA_Esr8conceptsE19resizable_containerISA_E20unsigned_integralishINSA_10value_typeEEEEDaOT1_ENKUlRKT_E_clIS8_EEDaSG_:
  398|  4.23k|   auto out = []([[maybe_unused]] const auto& in) {
  399|  4.23k|      if constexpr(std::same_as<AutoDetect, OutT>) {
  400|  4.23k|         if constexpr(ranges::statically_spanable_range<InR>) {
  401|  4.23k|            constexpr size_t extent = decltype(std::span{in})::extent;
  402|       |
  403|       |            // clang-format off
  404|  4.23k|            using type =
  405|  4.23k|               std::conditional_t<extent == 1, uint8_t,
  406|  4.23k|               std::conditional_t<extent == 2, uint16_t,
  407|  4.23k|               std::conditional_t<extent == 4, uint32_t,
  408|  4.23k|               std::conditional_t<extent == 8, uint64_t, void>>>>;
  409|       |            // clang-format on
  410|       |
  411|  4.23k|            static_assert(
  412|  4.23k|               !std::is_void_v<type>,
  413|  4.23k|               "Cannot determine the output type based on a statically sized bytearray with length other than those: 1, 2, 4, 8");
  414|       |
  415|  4.23k|            return type{};
  416|       |         } else {
  417|       |            static_assert(
  418|       |               !std::same_as<AutoDetect, OutT>,
  419|       |               "cannot infer return type from a dynamic range at compile time, please specify it explicitly");
  420|       |         }
  421|       |      } else if constexpr(concepts::resizable_container<OutT>) {
  422|       |         const size_t in_bytes = std::span{in}.size_bytes();
  423|       |         constexpr size_t out_elem_bytes = sizeof(typename OutT::value_type);
  424|       |         BOTAN_ARG_CHECK(in_bytes % out_elem_bytes == 0,
  425|       |                         "Input range is not word-aligned with the requested output range");
  426|       |         return OutT(in_bytes / out_elem_bytes);
  427|       |      } else {
  428|       |         return OutT{};
  429|       |      }
  430|  4.23k|   }(in_range);
_ZN5Botan6detail8load_anyILNSt3__16endianE57005ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEERNS2_5arrayIhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_:
  278|  4.23k|inline constexpr WrappedOutT load_any(InR&& in_range) {
  279|  4.23k|   using OutT = detail::wrapped_type<WrappedOutT>;
  280|  4.23k|   ranges::assert_exact_byte_length<sizeof(OutT)>(in_range);
  281|       |
  282|  4.23k|   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|  4.23k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  287|  4.23k|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  4.23k|      } else {
  289|  4.23k|         const std::span in{in_range};
  290|  4.23k|         if constexpr(sizeof(OutT) == 1) {
  291|  4.23k|            return static_cast<OutT>(in[0]);
  292|  4.23k|         } else if constexpr(endianness == std::endian::native) {
  293|  4.23k|            return typecast_copy<OutT>(in);
  294|  4.23k|         } else {
  295|  4.23k|            static_assert(opposite(endianness) == std::endian::native);
  296|  4.23k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  4.23k|         }
  298|  4.23k|      }
  299|  4.23k|   }());
  300|  4.23k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE57005ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEERNS2_5arrayIhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_ENKUlvE_clEv:
  282|  4.23k|   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|  4.23k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (286:10): [Folded, False: 4.23k]
  ------------------
  287|      0|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  4.23k|      } else {
  289|  4.23k|         const std::span in{in_range};
  290|       |         if constexpr(sizeof(OutT) == 1) {
  291|       |            return static_cast<OutT>(in[0]);
  292|  4.23k|         } else if constexpr(endianness == std::endian::native) {
  293|  4.23k|            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|  4.23k|      }
  299|  4.23k|   }());
_ZN5Botan7load_leINS_6detail10AutoDetectEJNSt3__14spanIKhLm8EEEEEEDaDpOT0_:
  495|  44.0k|inline constexpr auto load_le(ParamTs&&... params) {
  496|  44.0k|   return detail::load_any<std::endian::little, OutT>(std::forward<ParamTs>(params)...);
  497|  44.0k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm8EEEQoosr3stdE7same_asIS4_T0_Eaaoosr6rangesE25statically_spanable_rangeISA_Esr8conceptsE19resizable_containerISA_E20unsigned_integralishINSA_10value_typeEEEEDaOT1_:
  397|  44.0k|inline constexpr auto load_any(InR&& in_range) {
  398|  44.0k|   auto out = []([[maybe_unused]] const auto& in) {
  399|  44.0k|      if constexpr(std::same_as<AutoDetect, OutT>) {
  400|  44.0k|         if constexpr(ranges::statically_spanable_range<InR>) {
  401|  44.0k|            constexpr size_t extent = decltype(std::span{in})::extent;
  402|       |
  403|       |            // clang-format off
  404|  44.0k|            using type =
  405|  44.0k|               std::conditional_t<extent == 1, uint8_t,
  406|  44.0k|               std::conditional_t<extent == 2, uint16_t,
  407|  44.0k|               std::conditional_t<extent == 4, uint32_t,
  408|  44.0k|               std::conditional_t<extent == 8, uint64_t, void>>>>;
  409|       |            // clang-format on
  410|       |
  411|  44.0k|            static_assert(
  412|  44.0k|               !std::is_void_v<type>,
  413|  44.0k|               "Cannot determine the output type based on a statically sized bytearray with length other than those: 1, 2, 4, 8");
  414|       |
  415|  44.0k|            return type{};
  416|  44.0k|         } else {
  417|  44.0k|            static_assert(
  418|  44.0k|               !std::same_as<AutoDetect, OutT>,
  419|  44.0k|               "cannot infer return type from a dynamic range at compile time, please specify it explicitly");
  420|  44.0k|         }
  421|  44.0k|      } else if constexpr(concepts::resizable_container<OutT>) {
  422|  44.0k|         const size_t in_bytes = std::span{in}.size_bytes();
  423|  44.0k|         constexpr size_t out_elem_bytes = sizeof(typename OutT::value_type);
  424|  44.0k|         BOTAN_ARG_CHECK(in_bytes % out_elem_bytes == 0,
  425|  44.0k|                         "Input range is not word-aligned with the requested output range");
  426|  44.0k|         return OutT(in_bytes / out_elem_bytes);
  427|  44.0k|      } else {
  428|  44.0k|         return OutT{};
  429|  44.0k|      }
  430|  44.0k|   }(in_range);
  431|       |
  432|  44.0k|   using out_type = decltype(out);
  433|  44.0k|   if constexpr(unsigned_integralish<out_type>) {
  434|  44.0k|      out = load_any<endianness, out_type>(std::forward<InR>(in_range));
  435|       |   } else {
  436|       |      static_assert(ranges::contiguous_range<out_type>);
  437|       |      using out_range_type = std::ranges::range_value_t<out_type>;
  438|       |      load_any<endianness, out_range_type>(out, std::forward<InR>(in_range));
  439|       |   }
  440|  44.0k|   return out;
  441|  44.0k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm8EEEQoosr3stdE7same_asIS4_T0_Eaaoosr6rangesE25statically_spanable_rangeISA_Esr8conceptsE19resizable_containerISA_E20unsigned_integralishINSA_10value_typeEEEEDaOT1_ENKUlRKT_E_clIS9_EEDaSG_:
  398|  44.0k|   auto out = []([[maybe_unused]] const auto& in) {
  399|  44.0k|      if constexpr(std::same_as<AutoDetect, OutT>) {
  400|  44.0k|         if constexpr(ranges::statically_spanable_range<InR>) {
  401|  44.0k|            constexpr size_t extent = decltype(std::span{in})::extent;
  402|       |
  403|       |            // clang-format off
  404|  44.0k|            using type =
  405|  44.0k|               std::conditional_t<extent == 1, uint8_t,
  406|  44.0k|               std::conditional_t<extent == 2, uint16_t,
  407|  44.0k|               std::conditional_t<extent == 4, uint32_t,
  408|  44.0k|               std::conditional_t<extent == 8, uint64_t, void>>>>;
  409|       |            // clang-format on
  410|       |
  411|  44.0k|            static_assert(
  412|  44.0k|               !std::is_void_v<type>,
  413|  44.0k|               "Cannot determine the output type based on a statically sized bytearray with length other than those: 1, 2, 4, 8");
  414|       |
  415|  44.0k|            return type{};
  416|       |         } else {
  417|       |            static_assert(
  418|       |               !std::same_as<AutoDetect, OutT>,
  419|       |               "cannot infer return type from a dynamic range at compile time, please specify it explicitly");
  420|       |         }
  421|       |      } else if constexpr(concepts::resizable_container<OutT>) {
  422|       |         const size_t in_bytes = std::span{in}.size_bytes();
  423|       |         constexpr size_t out_elem_bytes = sizeof(typename OutT::value_type);
  424|       |         BOTAN_ARG_CHECK(in_bytes % out_elem_bytes == 0,
  425|       |                         "Input range is not word-aligned with the requested output range");
  426|       |         return OutT(in_bytes / out_elem_bytes);
  427|       |      } else {
  428|       |         return OutT{};
  429|       |      }
  430|  44.0k|   }(in_range);
_ZZN5Botan6detail8load_anyILNSt3__16endianE57005ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_ENKUlvE_clEv:
  282|  44.0k|   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.0k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (286:10): [Folded, False: 44.0k]
  ------------------
  287|      0|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  44.0k|      } else {
  289|  44.0k|         const std::span in{in_range};
  290|       |         if constexpr(sizeof(OutT) == 1) {
  291|       |            return static_cast<OutT>(in[0]);
  292|  44.0k|         } else if constexpr(endianness == std::endian::native) {
  293|  44.0k|            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|  44.0k|      }
  299|  44.0k|   }());
_ZN5Botan8store_leINS_6detail10AutoDetectEJRmEEEDaDpOT0_:
  736|  1.11M|inline constexpr auto store_le(ParamTs&&... params) {
  737|  1.11M|   return detail::store_any<std::endian::little, ModifierT>(std::forward<ParamTs>(params)...);
  738|  1.11M|}
_ZN5Botan6detail9store_anyILNSt3__16endianE57005ENS0_10AutoDetectETpTkNS0_20unsigned_integralishEJmEQ10all_same_vIDpT1_EEEDaS6_:
  696|  1.11M|inline constexpr auto store_any(Ts... ins) {
  697|  1.11M|   return store_any<endianness, OutR>(std::array{ins...});
  698|  1.11M|}
_ZN5Botan6detail9store_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges14spanable_rangeENS2_5arrayImLm1EEEQoooosr3stdE7same_asIS4_T0_Eaasr6rangesE25statically_spanable_rangeIS8_Esr3stdE21default_initializableIS8_Esr8conceptsE21resizable_byte_bufferIS8_EEEDaOT1_:
  663|  1.11M|inline constexpr auto store_any(InR&& in_range) {
  664|  1.11M|   auto out = []([[maybe_unused]] const auto& in) {
  665|  1.11M|      if constexpr(std::same_as<AutoDetect, OutR>) {
  666|  1.11M|         if constexpr(ranges::statically_spanable_range<InR>) {
  667|  1.11M|            constexpr size_t bytes = decltype(std::span{in})::extent * sizeof(std::ranges::range_value_t<InR>);
  668|  1.11M|            return std::array<uint8_t, bytes>();
  669|  1.11M|         } else {
  670|  1.11M|            static_assert(
  671|  1.11M|               !std::same_as<AutoDetect, OutR>,
  672|  1.11M|               "cannot infer a suitable result container type from the given parameters at compile time, please specify it explicitly");
  673|  1.11M|         }
  674|  1.11M|      } else if constexpr(concepts::resizable_byte_buffer<OutR>) {
  675|  1.11M|         return OutR(std::span{in}.size_bytes());
  676|  1.11M|      } else {
  677|  1.11M|         return OutR{};
  678|  1.11M|      }
  679|  1.11M|   }(in_range);
  680|       |
  681|  1.11M|   store_any<endianness, std::ranges::range_value_t<InR>>(out, std::forward<InR>(in_range));
  682|  1.11M|   return out;
  683|  1.11M|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges14spanable_rangeENS2_5arrayImLm1EEEQoooosr3stdE7same_asIS4_T0_Eaasr6rangesE25statically_spanable_rangeIS8_Esr3stdE21default_initializableIS8_Esr8conceptsE21resizable_byte_bufferIS8_EEEDaOT1_ENKUlRKT_E_clIS7_EEDaSD_:
  664|  1.11M|   auto out = []([[maybe_unused]] const auto& in) {
  665|  1.11M|      if constexpr(std::same_as<AutoDetect, OutR>) {
  666|  1.11M|         if constexpr(ranges::statically_spanable_range<InR>) {
  667|  1.11M|            constexpr size_t bytes = decltype(std::span{in})::extent * sizeof(std::ranges::range_value_t<InR>);
  668|  1.11M|            return std::array<uint8_t, bytes>();
  669|       |         } else {
  670|       |            static_assert(
  671|       |               !std::same_as<AutoDetect, OutR>,
  672|       |               "cannot infer a suitable result container type from the given parameters at compile time, please specify it explicitly");
  673|       |         }
  674|       |      } else if constexpr(concepts::resizable_byte_buffer<OutR>) {
  675|       |         return OutR(std::span{in}.size_bytes());
  676|       |      } else {
  677|       |         return OutR{};
  678|       |      }
  679|  1.11M|   }(in_range);
_ZN5Botan6detail9store_anyILNSt3__16endianE57005EmTkNS_6ranges23contiguous_output_rangeIhEERNS2_5arrayIhLm8EEETkNS4_14spanable_rangeENS6_ImLm1EEEQoosr3stdE7same_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|  1.15M|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  604|  1.15M|   ranges::assert_equal_byte_lengths(out, in);
  605|  1.15M|   using element_type = std::ranges::range_value_t<InR>;
  606|       |
  607|  1.15M|   auto store_elementwise = [&] {
  608|  1.15M|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|  1.15M|      std::span<uint8_t> out_s(out);
  610|  1.15M|      for(auto in_elem : in) {
  611|  1.15M|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|  1.15M|         out_s = out_s.subspan(bytes_per_element);
  613|  1.15M|      }
  614|  1.15M|   };
  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|  1.15M|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (619:7): [Folded, False: 1.15M]
  ------------------
  620|      0|      store_elementwise();
  621|  1.15M|   } else {
  622|  1.15M|      if constexpr(endianness == std::endian::native && !custom_storable<element_type>) {
  623|  1.15M|         typecast_copy(out, in);
  624|       |      } else {
  625|       |         store_elementwise();
  626|       |      }
  627|  1.15M|   }
  628|  1.15M|}
_ZN5Botan8store_beINS_6detail10AutoDetectEJRKhEEEDaDpOT0_:
  745|    160|inline constexpr auto store_be(ParamTs&&... params) {
  746|    160|   return detail::store_any<std::endian::big, ModifierT>(std::forward<ParamTs>(params)...);
  747|    160|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETpTkNS0_20unsigned_integralishEJhEQ10all_same_vIDpT1_EEEDaS6_:
  696|    160|inline constexpr auto store_any(Ts... ins) {
  697|    160|   return store_any<endianness, OutR>(std::array{ins...});
  698|    160|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges14spanable_rangeENS2_5arrayIhLm1EEEQoooosr3stdE7same_asIS4_T0_Eaasr6rangesE25statically_spanable_rangeIS8_Esr3stdE21default_initializableIS8_Esr8conceptsE21resizable_byte_bufferIS8_EEEDaOT1_:
  663|    160|inline constexpr auto store_any(InR&& in_range) {
  664|    160|   auto out = []([[maybe_unused]] const auto& in) {
  665|    160|      if constexpr(std::same_as<AutoDetect, OutR>) {
  666|    160|         if constexpr(ranges::statically_spanable_range<InR>) {
  667|    160|            constexpr size_t bytes = decltype(std::span{in})::extent * sizeof(std::ranges::range_value_t<InR>);
  668|    160|            return std::array<uint8_t, bytes>();
  669|    160|         } else {
  670|    160|            static_assert(
  671|    160|               !std::same_as<AutoDetect, OutR>,
  672|    160|               "cannot infer a suitable result container type from the given parameters at compile time, please specify it explicitly");
  673|    160|         }
  674|    160|      } else if constexpr(concepts::resizable_byte_buffer<OutR>) {
  675|    160|         return OutR(std::span{in}.size_bytes());
  676|    160|      } else {
  677|    160|         return OutR{};
  678|    160|      }
  679|    160|   }(in_range);
  680|       |
  681|    160|   store_any<endianness, std::ranges::range_value_t<InR>>(out, std::forward<InR>(in_range));
  682|    160|   return out;
  683|    160|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges14spanable_rangeENS2_5arrayIhLm1EEEQoooosr3stdE7same_asIS4_T0_Eaasr6rangesE25statically_spanable_rangeIS8_Esr3stdE21default_initializableIS8_Esr8conceptsE21resizable_byte_bufferIS8_EEEDaOT1_ENKUlRKT_E_clIS7_EEDaSD_:
  664|    160|   auto out = []([[maybe_unused]] const auto& in) {
  665|    160|      if constexpr(std::same_as<AutoDetect, OutR>) {
  666|    160|         if constexpr(ranges::statically_spanable_range<InR>) {
  667|    160|            constexpr size_t bytes = decltype(std::span{in})::extent * sizeof(std::ranges::range_value_t<InR>);
  668|    160|            return std::array<uint8_t, bytes>();
  669|       |         } else {
  670|       |            static_assert(
  671|       |               !std::same_as<AutoDetect, OutR>,
  672|       |               "cannot infer a suitable result container type from the given parameters at compile time, please specify it explicitly");
  673|       |         }
  674|       |      } else if constexpr(concepts::resizable_byte_buffer<OutR>) {
  675|       |         return OutR(std::span{in}.size_bytes());
  676|       |      } else {
  677|       |         return OutR{};
  678|       |      }
  679|    160|   }(in_range);
_ZN5Botan6detail9store_anyILNSt3__16endianE64206EhTkNS_6ranges23contiguous_output_rangeIhEERNS2_5arrayIhLm1EEETkNS4_14spanable_rangeES7_Qoosr3stdE7same_asINS0_10AutoDetectET0_Esr3stdE7same_asISA_NS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT2_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISI_EESJ_E4type10value_typeEEEEvOT1_RKSF_:
  603|    160|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  604|    160|   ranges::assert_equal_byte_lengths(out, in);
  605|    160|   using element_type = std::ranges::range_value_t<InR>;
  606|       |
  607|    160|   auto store_elementwise = [&] {
  608|    160|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|    160|      std::span<uint8_t> out_s(out);
  610|    160|      for(auto in_elem : in) {
  611|    160|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|    160|         out_s = out_s.subspan(bytes_per_element);
  613|    160|      }
  614|    160|   };
  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|    160|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (619:7): [Folded, False: 160]
  ------------------
  620|      0|      store_elementwise();
  621|    160|   } else {
  622|       |      if constexpr(endianness == std::endian::native && !custom_storable<element_type>) {
  623|       |         typecast_copy(out, in);
  624|    160|      } else {
  625|    160|         store_elementwise();
  626|    160|      }
  627|    160|   }
  628|    160|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE64206EhTkNS_6ranges23contiguous_output_rangeIhEERNS2_5arrayIhLm1EEETkNS4_14spanable_rangeES7_Qoosr3stdE7same_asINS0_10AutoDetectET0_Esr3stdE7same_asISA_NS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT2_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISI_EESJ_E4type10value_typeEEEEvOT1_RKSF_ENKUlvE_clEv:
  607|    160|   auto store_elementwise = [&] {
  608|    160|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|    160|      std::span<uint8_t> out_s(out);
  610|    160|      for(auto in_elem : in) {
  ------------------
  |  Branch (610:24): [True: 160, False: 160]
  ------------------
  611|    160|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|    160|         out_s = out_s.subspan(bytes_per_element);
  613|    160|      }
  614|    160|   };
_ZN5Botan6detail9store_anyILNSt3__16endianE64206EhTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm1EEETpTkNS0_20unsigned_integralishEJhEQaagtsZT2_Li0Eooaasr3stdE7same_asINS0_10AutoDetectET0_E10all_same_vIDpT2_Eaa20unsigned_integralishIS9_E10all_same_vIS9_SB_EEEvOT1_SB_:
  582|    160|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, Ts... ins) {
  583|    160|   ranges::assert_exact_byte_length<(sizeof(Ts) + ...)>(out);
  584|    160|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|    160|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|    160|      off += sizeof(T);
  587|    160|   };
  588|       |
  589|    160|   (store_one(std::span{out}, ins), ...);
  590|    160|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE64206EhTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm1EEETpTkNS0_20unsigned_integralishEJhEQaagtsZT2_Li0Eooaasr3stdE7same_asINS0_10AutoDetectET0_E10all_same_vIDpT2_Eaa20unsigned_integralishIS9_E10all_same_vIS9_SB_EEEvOT1_SB_ENUlTyS9_T_E_clIhS7_EEDaS9_SE_:
  584|    160|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|    160|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|    160|      off += sizeof(T);
  587|    160|   };
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEhTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm1EEEQnt15custom_storableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEEvS9_OT1_:
  525|    160|inline constexpr void store_any(WrappedInT wrapped_in, OutR&& out_range) {
  526|    160|   const auto in = detail::unwrap_strong_type_or_enum(wrapped_in);
  527|    160|   using InT = decltype(in);
  528|    160|   ranges::assert_exact_byte_length<sizeof(in)>(out_range);
  529|    160|   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|    160|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (534:7): [Folded, False: 160]
  ------------------
  535|      0|      return fallback_store_any<endianness, InT>(in, std::forward<OutR>(out_range));
  536|    160|   } else {
  537|    160|      if constexpr(sizeof(InT) == 1) {
  538|    160|         out[0] = static_cast<uint8_t>(in);
  539|       |      } else if constexpr(endianness == std::endian::native) {
  540|       |         typecast_copy(out, in);
  541|       |      } else {
  542|       |         static_assert(opposite(endianness) == std::endian::native);
  543|       |         typecast_copy(out, reverse_bytes(in));
  544|       |      }
  545|    160|   }
  546|    160|}
_ZN5Botan6detail26unwrap_strong_type_or_enumITkNS0_20unsigned_integralishEhEEDaT_:
  190|    160|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|    160|   } else {
  195|    160|      return Botan::unwrap_strong_type(t);
  196|    160|   }
  197|    160|}
_ZN5Botan6detail24wrap_strong_type_or_enumITkNS0_20unsigned_integralishEtTkNSt3__117unsigned_integralEtEEDaT0_:
  200|  2.79k|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.79k|   } else {
  204|  2.79k|      return Botan::wrap_strong_type<OutT>(t);
  205|  2.79k|   }
  206|  2.79k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEtTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm2EEEQnt15custom_storableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEEvS9_OT1_:
  525|    270|inline constexpr void store_any(WrappedInT wrapped_in, OutR&& out_range) {
  526|    270|   const auto in = detail::unwrap_strong_type_or_enum(wrapped_in);
  527|    270|   using InT = decltype(in);
  528|    270|   ranges::assert_exact_byte_length<sizeof(in)>(out_range);
  529|    270|   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|    270|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (534:7): [Folded, False: 270]
  ------------------
  535|      0|      return fallback_store_any<endianness, InT>(in, std::forward<OutR>(out_range));
  536|    270|   } 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|    270|      } else {
  542|    270|         static_assert(opposite(endianness) == std::endian::native);
  543|    270|         typecast_copy(out, reverse_bytes(in));
  544|    270|      }
  545|    270|   }
  546|    270|}
_ZN5Botan6detail26unwrap_strong_type_or_enumITkNS0_20unsigned_integralishEtEEDaT_:
  190|    270|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|    270|   } else {
  195|    270|      return Botan::unwrap_strong_type(t);
  196|    270|   }
  197|    270|}
_ZN5Botan7load_leImJRPKhiEEEDaDpOT0_:
  495|      1|inline constexpr auto load_le(ParamTs&&... params) {
  496|      1|   return detail::load_any<std::endian::little, OutT>(std::forward<ParamTs>(params)...);
  497|      1|}
_ZN5Botan6detail8load_anyILNSt3__16endianE57005ETkNS0_20unsigned_integralishEmEET0_PKhm:
  454|      5|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|      5|   constexpr size_t out_size = sizeof(OutT);
  457|      5|   return load_any<endianness, OutT>(std::span<const uint8_t, out_size>(in + off * out_size, out_size));
  458|      5|}
_ZN5Botan7load_leImJPKhiEEEDaDpOT0_:
  495|      4|inline constexpr auto load_le(ParamTs&&... params) {
  496|      4|   return detail::load_any<std::endian::little, OutT>(std::forward<ParamTs>(params)...);
  497|      4|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE57005ETkNS0_20unsigned_integralishEjTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm4EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_ENKUlvE_clEv:
  282|  4.48k|   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|  4.48k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (286:10): [Folded, False: 4.48k]
  ------------------
  287|      0|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  4.48k|      } else {
  289|  4.48k|         const std::span in{in_range};
  290|       |         if constexpr(sizeof(OutT) == 1) {
  291|       |            return static_cast<OutT>(in[0]);
  292|  4.48k|         } else if constexpr(endianness == std::endian::native) {
  293|  4.48k|            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|  4.48k|      }
  299|  4.48k|   }());
_ZN5Botan7load_leINS_6detail10AutoDetectEJNSt3__14spanIKhLm4EEEEEEDaDpOT0_:
  495|  4.48k|inline constexpr auto load_le(ParamTs&&... params) {
  496|  4.48k|   return detail::load_any<std::endian::little, OutT>(std::forward<ParamTs>(params)...);
  497|  4.48k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm4EEEQoosr3stdE7same_asIS4_T0_Eaaoosr6rangesE25statically_spanable_rangeISA_Esr8conceptsE19resizable_containerISA_E20unsigned_integralishINSA_10value_typeEEEEDaOT1_:
  397|  4.48k|inline constexpr auto load_any(InR&& in_range) {
  398|  4.48k|   auto out = []([[maybe_unused]] const auto& in) {
  399|  4.48k|      if constexpr(std::same_as<AutoDetect, OutT>) {
  400|  4.48k|         if constexpr(ranges::statically_spanable_range<InR>) {
  401|  4.48k|            constexpr size_t extent = decltype(std::span{in})::extent;
  402|       |
  403|       |            // clang-format off
  404|  4.48k|            using type =
  405|  4.48k|               std::conditional_t<extent == 1, uint8_t,
  406|  4.48k|               std::conditional_t<extent == 2, uint16_t,
  407|  4.48k|               std::conditional_t<extent == 4, uint32_t,
  408|  4.48k|               std::conditional_t<extent == 8, uint64_t, void>>>>;
  409|       |            // clang-format on
  410|       |
  411|  4.48k|            static_assert(
  412|  4.48k|               !std::is_void_v<type>,
  413|  4.48k|               "Cannot determine the output type based on a statically sized bytearray with length other than those: 1, 2, 4, 8");
  414|       |
  415|  4.48k|            return type{};
  416|  4.48k|         } else {
  417|  4.48k|            static_assert(
  418|  4.48k|               !std::same_as<AutoDetect, OutT>,
  419|  4.48k|               "cannot infer return type from a dynamic range at compile time, please specify it explicitly");
  420|  4.48k|         }
  421|  4.48k|      } else if constexpr(concepts::resizable_container<OutT>) {
  422|  4.48k|         const size_t in_bytes = std::span{in}.size_bytes();
  423|  4.48k|         constexpr size_t out_elem_bytes = sizeof(typename OutT::value_type);
  424|  4.48k|         BOTAN_ARG_CHECK(in_bytes % out_elem_bytes == 0,
  425|  4.48k|                         "Input range is not word-aligned with the requested output range");
  426|  4.48k|         return OutT(in_bytes / out_elem_bytes);
  427|  4.48k|      } else {
  428|  4.48k|         return OutT{};
  429|  4.48k|      }
  430|  4.48k|   }(in_range);
  431|       |
  432|  4.48k|   using out_type = decltype(out);
  433|  4.48k|   if constexpr(unsigned_integralish<out_type>) {
  434|  4.48k|      out = load_any<endianness, out_type>(std::forward<InR>(in_range));
  435|       |   } else {
  436|       |      static_assert(ranges::contiguous_range<out_type>);
  437|       |      using out_range_type = std::ranges::range_value_t<out_type>;
  438|       |      load_any<endianness, out_range_type>(out, std::forward<InR>(in_range));
  439|       |   }
  440|  4.48k|   return out;
  441|  4.48k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm4EEEQoosr3stdE7same_asIS4_T0_Eaaoosr6rangesE25statically_spanable_rangeISA_Esr8conceptsE19resizable_containerISA_E20unsigned_integralishINSA_10value_typeEEEEDaOT1_ENKUlRKT_E_clIS9_EEDaSG_:
  398|  4.48k|   auto out = []([[maybe_unused]] const auto& in) {
  399|  4.48k|      if constexpr(std::same_as<AutoDetect, OutT>) {
  400|  4.48k|         if constexpr(ranges::statically_spanable_range<InR>) {
  401|  4.48k|            constexpr size_t extent = decltype(std::span{in})::extent;
  402|       |
  403|       |            // clang-format off
  404|  4.48k|            using type =
  405|  4.48k|               std::conditional_t<extent == 1, uint8_t,
  406|  4.48k|               std::conditional_t<extent == 2, uint16_t,
  407|  4.48k|               std::conditional_t<extent == 4, uint32_t,
  408|  4.48k|               std::conditional_t<extent == 8, uint64_t, void>>>>;
  409|       |            // clang-format on
  410|       |
  411|  4.48k|            static_assert(
  412|  4.48k|               !std::is_void_v<type>,
  413|  4.48k|               "Cannot determine the output type based on a statically sized bytearray with length other than those: 1, 2, 4, 8");
  414|       |
  415|  4.48k|            return type{};
  416|       |         } else {
  417|       |            static_assert(
  418|       |               !std::same_as<AutoDetect, OutT>,
  419|       |               "cannot infer return type from a dynamic range at compile time, please specify it explicitly");
  420|       |         }
  421|       |      } else if constexpr(concepts::resizable_container<OutT>) {
  422|       |         const size_t in_bytes = std::span{in}.size_bytes();
  423|       |         constexpr size_t out_elem_bytes = sizeof(typename OutT::value_type);
  424|       |         BOTAN_ARG_CHECK(in_bytes % out_elem_bytes == 0,
  425|       |                         "Input range is not word-aligned with the requested output range");
  426|       |         return OutT(in_bytes / out_elem_bytes);
  427|       |      } else {
  428|       |         return OutT{};
  429|       |      }
  430|  4.48k|   }(in_range);
_ZN5Botan8store_leINS_6detail10AutoDetectEJRNSt3__15arrayImLm1EEEEEEDaDpOT0_:
  736|  35.9k|inline constexpr auto store_le(ParamTs&&... params) {
  737|  35.9k|   return detail::store_any<std::endian::little, ModifierT>(std::forward<ParamTs>(params)...);
  738|  35.9k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges14spanable_rangeERNS2_5arrayImLm1EEEQoooosr3stdE7same_asIS4_T0_Eaasr6rangesE25statically_spanable_rangeIS9_Esr3stdE21default_initializableIS9_Esr8conceptsE21resizable_byte_bufferIS9_EEEDaOT1_:
  663|  35.9k|inline constexpr auto store_any(InR&& in_range) {
  664|  35.9k|   auto out = []([[maybe_unused]] const auto& in) {
  665|  35.9k|      if constexpr(std::same_as<AutoDetect, OutR>) {
  666|  35.9k|         if constexpr(ranges::statically_spanable_range<InR>) {
  667|  35.9k|            constexpr size_t bytes = decltype(std::span{in})::extent * sizeof(std::ranges::range_value_t<InR>);
  668|  35.9k|            return std::array<uint8_t, bytes>();
  669|  35.9k|         } else {
  670|  35.9k|            static_assert(
  671|  35.9k|               !std::same_as<AutoDetect, OutR>,
  672|  35.9k|               "cannot infer a suitable result container type from the given parameters at compile time, please specify it explicitly");
  673|  35.9k|         }
  674|  35.9k|      } else if constexpr(concepts::resizable_byte_buffer<OutR>) {
  675|  35.9k|         return OutR(std::span{in}.size_bytes());
  676|  35.9k|      } else {
  677|  35.9k|         return OutR{};
  678|  35.9k|      }
  679|  35.9k|   }(in_range);
  680|       |
  681|  35.9k|   store_any<endianness, std::ranges::range_value_t<InR>>(out, std::forward<InR>(in_range));
  682|  35.9k|   return out;
  683|  35.9k|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges14spanable_rangeERNS2_5arrayImLm1EEEQoooosr3stdE7same_asIS4_T0_Eaasr6rangesE25statically_spanable_rangeIS9_Esr3stdE21default_initializableIS9_Esr8conceptsE21resizable_byte_bufferIS9_EEEDaOT1_ENKUlRKT_E_clIS7_EEDaSE_:
  664|  35.9k|   auto out = []([[maybe_unused]] const auto& in) {
  665|  35.9k|      if constexpr(std::same_as<AutoDetect, OutR>) {
  666|  35.9k|         if constexpr(ranges::statically_spanable_range<InR>) {
  667|  35.9k|            constexpr size_t bytes = decltype(std::span{in})::extent * sizeof(std::ranges::range_value_t<InR>);
  668|  35.9k|            return std::array<uint8_t, bytes>();
  669|       |         } else {
  670|       |            static_assert(
  671|       |               !std::same_as<AutoDetect, OutR>,
  672|       |               "cannot infer a suitable result container type from the given parameters at compile time, please specify it explicitly");
  673|       |         }
  674|       |      } else if constexpr(concepts::resizable_byte_buffer<OutR>) {
  675|       |         return OutR(std::span{in}.size_bytes());
  676|       |      } else {
  677|       |         return OutR{};
  678|       |      }
  679|  35.9k|   }(in_range);
_ZN5Botan7load_leINS_6detail10AutoDetectEJNSt3__15arrayIhLm2EEEEEEDaDpOT0_:
  495|  2.79k|inline constexpr auto load_le(ParamTs&&... params) {
  496|  2.79k|   return detail::load_any<std::endian::little, OutT>(std::forward<ParamTs>(params)...);
  497|  2.79k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges16contiguous_rangeIhEENS2_5arrayIhLm2EEEQoosr3stdE7same_asIS4_T0_Eaaoosr6rangesE25statically_spanable_rangeIS9_Esr8conceptsE19resizable_containerIS9_E20unsigned_integralishINS9_10value_typeEEEEDaOT1_:
  397|  2.79k|inline constexpr auto load_any(InR&& in_range) {
  398|  2.79k|   auto out = []([[maybe_unused]] const auto& in) {
  399|  2.79k|      if constexpr(std::same_as<AutoDetect, OutT>) {
  400|  2.79k|         if constexpr(ranges::statically_spanable_range<InR>) {
  401|  2.79k|            constexpr size_t extent = decltype(std::span{in})::extent;
  402|       |
  403|       |            // clang-format off
  404|  2.79k|            using type =
  405|  2.79k|               std::conditional_t<extent == 1, uint8_t,
  406|  2.79k|               std::conditional_t<extent == 2, uint16_t,
  407|  2.79k|               std::conditional_t<extent == 4, uint32_t,
  408|  2.79k|               std::conditional_t<extent == 8, uint64_t, void>>>>;
  409|       |            // clang-format on
  410|       |
  411|  2.79k|            static_assert(
  412|  2.79k|               !std::is_void_v<type>,
  413|  2.79k|               "Cannot determine the output type based on a statically sized bytearray with length other than those: 1, 2, 4, 8");
  414|       |
  415|  2.79k|            return type{};
  416|  2.79k|         } else {
  417|  2.79k|            static_assert(
  418|  2.79k|               !std::same_as<AutoDetect, OutT>,
  419|  2.79k|               "cannot infer return type from a dynamic range at compile time, please specify it explicitly");
  420|  2.79k|         }
  421|  2.79k|      } else if constexpr(concepts::resizable_container<OutT>) {
  422|  2.79k|         const size_t in_bytes = std::span{in}.size_bytes();
  423|  2.79k|         constexpr size_t out_elem_bytes = sizeof(typename OutT::value_type);
  424|  2.79k|         BOTAN_ARG_CHECK(in_bytes % out_elem_bytes == 0,
  425|  2.79k|                         "Input range is not word-aligned with the requested output range");
  426|  2.79k|         return OutT(in_bytes / out_elem_bytes);
  427|  2.79k|      } else {
  428|  2.79k|         return OutT{};
  429|  2.79k|      }
  430|  2.79k|   }(in_range);
  431|       |
  432|  2.79k|   using out_type = decltype(out);
  433|  2.79k|   if constexpr(unsigned_integralish<out_type>) {
  434|  2.79k|      out = load_any<endianness, out_type>(std::forward<InR>(in_range));
  435|       |   } else {
  436|       |      static_assert(ranges::contiguous_range<out_type>);
  437|       |      using out_range_type = std::ranges::range_value_t<out_type>;
  438|       |      load_any<endianness, out_range_type>(out, std::forward<InR>(in_range));
  439|       |   }
  440|  2.79k|   return out;
  441|  2.79k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges16contiguous_rangeIhEENS2_5arrayIhLm2EEEQoosr3stdE7same_asIS4_T0_Eaaoosr6rangesE25statically_spanable_rangeIS9_Esr8conceptsE19resizable_containerIS9_E20unsigned_integralishINS9_10value_typeEEEEDaOT1_ENKUlRKT_E_clIS8_EEDaSF_:
  398|  2.79k|   auto out = []([[maybe_unused]] const auto& in) {
  399|  2.79k|      if constexpr(std::same_as<AutoDetect, OutT>) {
  400|  2.79k|         if constexpr(ranges::statically_spanable_range<InR>) {
  401|  2.79k|            constexpr size_t extent = decltype(std::span{in})::extent;
  402|       |
  403|       |            // clang-format off
  404|  2.79k|            using type =
  405|  2.79k|               std::conditional_t<extent == 1, uint8_t,
  406|  2.79k|               std::conditional_t<extent == 2, uint16_t,
  407|  2.79k|               std::conditional_t<extent == 4, uint32_t,
  408|  2.79k|               std::conditional_t<extent == 8, uint64_t, void>>>>;
  409|       |            // clang-format on
  410|       |
  411|  2.79k|            static_assert(
  412|  2.79k|               !std::is_void_v<type>,
  413|  2.79k|               "Cannot determine the output type based on a statically sized bytearray with length other than those: 1, 2, 4, 8");
  414|       |
  415|  2.79k|            return type{};
  416|       |         } else {
  417|       |            static_assert(
  418|       |               !std::same_as<AutoDetect, OutT>,
  419|       |               "cannot infer return type from a dynamic range at compile time, please specify it explicitly");
  420|       |         }
  421|       |      } else if constexpr(concepts::resizable_container<OutT>) {
  422|       |         const size_t in_bytes = std::span{in}.size_bytes();
  423|       |         constexpr size_t out_elem_bytes = sizeof(typename OutT::value_type);
  424|       |         BOTAN_ARG_CHECK(in_bytes % out_elem_bytes == 0,
  425|       |                         "Input range is not word-aligned with the requested output range");
  426|       |         return OutT(in_bytes / out_elem_bytes);
  427|       |      } else {
  428|       |         return OutT{};
  429|       |      }
  430|  2.79k|   }(in_range);
_ZN5Botan6detail8load_anyILNSt3__16endianE57005ETkNS0_20unsigned_integralishEtTkNS_6ranges16contiguous_rangeIhEENS2_5arrayIhLm2EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEES9_OT1_:
  278|  2.79k|inline constexpr WrappedOutT load_any(InR&& in_range) {
  279|  2.79k|   using OutT = detail::wrapped_type<WrappedOutT>;
  280|  2.79k|   ranges::assert_exact_byte_length<sizeof(OutT)>(in_range);
  281|       |
  282|  2.79k|   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.79k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  287|  2.79k|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  2.79k|      } else {
  289|  2.79k|         const std::span in{in_range};
  290|  2.79k|         if constexpr(sizeof(OutT) == 1) {
  291|  2.79k|            return static_cast<OutT>(in[0]);
  292|  2.79k|         } else if constexpr(endianness == std::endian::native) {
  293|  2.79k|            return typecast_copy<OutT>(in);
  294|  2.79k|         } else {
  295|  2.79k|            static_assert(opposite(endianness) == std::endian::native);
  296|  2.79k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  2.79k|         }
  298|  2.79k|      }
  299|  2.79k|   }());
  300|  2.79k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE57005ETkNS0_20unsigned_integralishEtTkNS_6ranges16contiguous_rangeIhEENS2_5arrayIhLm2EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEES9_OT1_ENKUlvE_clEv:
  282|  2.79k|   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.79k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (286:10): [Folded, False: 2.79k]
  ------------------
  287|      0|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  2.79k|      } else {
  289|  2.79k|         const std::span in{in_range};
  290|       |         if constexpr(sizeof(OutT) == 1) {
  291|       |            return static_cast<OutT>(in[0]);
  292|  2.79k|         } else if constexpr(endianness == std::endian::native) {
  293|  2.79k|            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.79k|      }
  299|  2.79k|   }());
_ZZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges14spanable_rangeENS2_5arrayItLm1EEEQoooosr3stdE7same_asIS4_T0_Eaasr6rangesE25statically_spanable_rangeIS8_Esr3stdE21default_initializableIS8_Esr8conceptsE21resizable_byte_bufferIS8_EEEDaOT1_ENKUlRKT_E_clIS7_EEDaSD_:
  664|    270|   auto out = []([[maybe_unused]] const auto& in) {
  665|    270|      if constexpr(std::same_as<AutoDetect, OutR>) {
  666|    270|         if constexpr(ranges::statically_spanable_range<InR>) {
  667|    270|            constexpr size_t bytes = decltype(std::span{in})::extent * sizeof(std::ranges::range_value_t<InR>);
  668|    270|            return std::array<uint8_t, bytes>();
  669|       |         } else {
  670|       |            static_assert(
  671|       |               !std::same_as<AutoDetect, OutR>,
  672|       |               "cannot infer a suitable result container type from the given parameters at compile time, please specify it explicitly");
  673|       |         }
  674|       |      } else if constexpr(concepts::resizable_byte_buffer<OutR>) {
  675|       |         return OutR(std::span{in}.size_bytes());
  676|       |      } else {
  677|       |         return OutR{};
  678|       |      }
  679|    270|   }(in_range);
_ZZN5Botan6detail9store_anyILNSt3__16endianE64206EtTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm2EEETpTkNS0_20unsigned_integralishEJtEQaagtsZT2_Li0Eooaasr3stdE7same_asINS0_10AutoDetectET0_E10all_same_vIDpT2_Eaa20unsigned_integralishIS9_E10all_same_vIS9_SB_EEEvOT1_SB_ENUlTyS9_T_E_clItS7_EEDaS9_SE_:
  584|    270|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|    270|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|    270|      off += sizeof(T);
  587|    270|   };
_ZN5Botan6detail9store_anyILNSt3__16endianE64206EtTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm2EEETpTkNS0_20unsigned_integralishEJtEQaagtsZT2_Li0Eooaasr3stdE7same_asINS0_10AutoDetectET0_E10all_same_vIDpT2_Eaa20unsigned_integralishIS9_E10all_same_vIS9_SB_EEEvOT1_SB_:
  582|    270|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, Ts... ins) {
  583|    270|   ranges::assert_exact_byte_length<(sizeof(Ts) + ...)>(out);
  584|    270|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|    270|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|    270|      off += sizeof(T);
  587|    270|   };
  588|       |
  589|    270|   (store_one(std::span{out}, ins), ...);
  590|    270|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206EtTkNS_6ranges23contiguous_output_rangeIhEERNS2_5arrayIhLm2EEETkNS4_14spanable_rangeENS6_ItLm1EEEQoosr3stdE7same_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|    270|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  604|    270|   ranges::assert_equal_byte_lengths(out, in);
  605|    270|   using element_type = std::ranges::range_value_t<InR>;
  606|       |
  607|    270|   auto store_elementwise = [&] {
  608|    270|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|    270|      std::span<uint8_t> out_s(out);
  610|    270|      for(auto in_elem : in) {
  611|    270|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|    270|         out_s = out_s.subspan(bytes_per_element);
  613|    270|      }
  614|    270|   };
  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|    270|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (619:7): [Folded, False: 270]
  ------------------
  620|      0|      store_elementwise();
  621|    270|   } else {
  622|       |      if constexpr(endianness == std::endian::native && !custom_storable<element_type>) {
  623|       |         typecast_copy(out, in);
  624|    270|      } else {
  625|    270|         store_elementwise();
  626|    270|      }
  627|    270|   }
  628|    270|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges14spanable_rangeENS2_5arrayItLm1EEEQoooosr3stdE7same_asIS4_T0_Eaasr6rangesE25statically_spanable_rangeIS8_Esr3stdE21default_initializableIS8_Esr8conceptsE21resizable_byte_bufferIS8_EEEDaOT1_:
  663|    270|inline constexpr auto store_any(InR&& in_range) {
  664|    270|   auto out = []([[maybe_unused]] const auto& in) {
  665|    270|      if constexpr(std::same_as<AutoDetect, OutR>) {
  666|    270|         if constexpr(ranges::statically_spanable_range<InR>) {
  667|    270|            constexpr size_t bytes = decltype(std::span{in})::extent * sizeof(std::ranges::range_value_t<InR>);
  668|    270|            return std::array<uint8_t, bytes>();
  669|    270|         } else {
  670|    270|            static_assert(
  671|    270|               !std::same_as<AutoDetect, OutR>,
  672|    270|               "cannot infer a suitable result container type from the given parameters at compile time, please specify it explicitly");
  673|    270|         }
  674|    270|      } else if constexpr(concepts::resizable_byte_buffer<OutR>) {
  675|    270|         return OutR(std::span{in}.size_bytes());
  676|    270|      } else {
  677|    270|         return OutR{};
  678|    270|      }
  679|    270|   }(in_range);
  680|       |
  681|    270|   store_any<endianness, std::ranges::range_value_t<InR>>(out, std::forward<InR>(in_range));
  682|    270|   return out;
  683|    270|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETpTkNS0_20unsigned_integralishEJtEQ10all_same_vIDpT1_EEEDaS6_:
  696|    270|inline constexpr auto store_any(Ts... ins) {
  697|    270|   return store_any<endianness, OutR>(std::array{ins...});
  698|    270|}
_ZN5Botan8store_beINS_6detail10AutoDetectEJtEEEDaDpOT0_:
  745|    270|inline constexpr auto store_be(ParamTs&&... params) {
  746|    270|   return detail::store_any<std::endian::big, ModifierT>(std::forward<ParamTs>(params)...);
  747|    270|}
_ZN5Botan7load_leINS_6detail10AutoDetectEJNSt3__15arrayIhLm4EEEEEEDaDpOT0_:
  495|  44.1k|inline constexpr auto load_le(ParamTs&&... params) {
  496|  44.1k|   return detail::load_any<std::endian::little, OutT>(std::forward<ParamTs>(params)...);
  497|  44.1k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges16contiguous_rangeIhEENS2_5arrayIhLm4EEEQoosr3stdE7same_asIS4_T0_Eaaoosr6rangesE25statically_spanable_rangeIS9_Esr8conceptsE19resizable_containerIS9_E20unsigned_integralishINS9_10value_typeEEEEDaOT1_:
  397|  44.1k|inline constexpr auto load_any(InR&& in_range) {
  398|  44.1k|   auto out = []([[maybe_unused]] const auto& in) {
  399|  44.1k|      if constexpr(std::same_as<AutoDetect, OutT>) {
  400|  44.1k|         if constexpr(ranges::statically_spanable_range<InR>) {
  401|  44.1k|            constexpr size_t extent = decltype(std::span{in})::extent;
  402|       |
  403|       |            // clang-format off
  404|  44.1k|            using type =
  405|  44.1k|               std::conditional_t<extent == 1, uint8_t,
  406|  44.1k|               std::conditional_t<extent == 2, uint16_t,
  407|  44.1k|               std::conditional_t<extent == 4, uint32_t,
  408|  44.1k|               std::conditional_t<extent == 8, uint64_t, void>>>>;
  409|       |            // clang-format on
  410|       |
  411|  44.1k|            static_assert(
  412|  44.1k|               !std::is_void_v<type>,
  413|  44.1k|               "Cannot determine the output type based on a statically sized bytearray with length other than those: 1, 2, 4, 8");
  414|       |
  415|  44.1k|            return type{};
  416|  44.1k|         } else {
  417|  44.1k|            static_assert(
  418|  44.1k|               !std::same_as<AutoDetect, OutT>,
  419|  44.1k|               "cannot infer return type from a dynamic range at compile time, please specify it explicitly");
  420|  44.1k|         }
  421|  44.1k|      } else if constexpr(concepts::resizable_container<OutT>) {
  422|  44.1k|         const size_t in_bytes = std::span{in}.size_bytes();
  423|  44.1k|         constexpr size_t out_elem_bytes = sizeof(typename OutT::value_type);
  424|  44.1k|         BOTAN_ARG_CHECK(in_bytes % out_elem_bytes == 0,
  425|  44.1k|                         "Input range is not word-aligned with the requested output range");
  426|  44.1k|         return OutT(in_bytes / out_elem_bytes);
  427|  44.1k|      } else {
  428|  44.1k|         return OutT{};
  429|  44.1k|      }
  430|  44.1k|   }(in_range);
  431|       |
  432|  44.1k|   using out_type = decltype(out);
  433|  44.1k|   if constexpr(unsigned_integralish<out_type>) {
  434|  44.1k|      out = load_any<endianness, out_type>(std::forward<InR>(in_range));
  435|       |   } else {
  436|       |      static_assert(ranges::contiguous_range<out_type>);
  437|       |      using out_range_type = std::ranges::range_value_t<out_type>;
  438|       |      load_any<endianness, out_range_type>(out, std::forward<InR>(in_range));
  439|       |   }
  440|  44.1k|   return out;
  441|  44.1k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges16contiguous_rangeIhEENS2_5arrayIhLm4EEEQoosr3stdE7same_asIS4_T0_Eaaoosr6rangesE25statically_spanable_rangeIS9_Esr8conceptsE19resizable_containerIS9_E20unsigned_integralishINS9_10value_typeEEEEDaOT1_ENKUlRKT_E_clIS8_EEDaSF_:
  398|  44.1k|   auto out = []([[maybe_unused]] const auto& in) {
  399|  44.1k|      if constexpr(std::same_as<AutoDetect, OutT>) {
  400|  44.1k|         if constexpr(ranges::statically_spanable_range<InR>) {
  401|  44.1k|            constexpr size_t extent = decltype(std::span{in})::extent;
  402|       |
  403|       |            // clang-format off
  404|  44.1k|            using type =
  405|  44.1k|               std::conditional_t<extent == 1, uint8_t,
  406|  44.1k|               std::conditional_t<extent == 2, uint16_t,
  407|  44.1k|               std::conditional_t<extent == 4, uint32_t,
  408|  44.1k|               std::conditional_t<extent == 8, uint64_t, void>>>>;
  409|       |            // clang-format on
  410|       |
  411|  44.1k|            static_assert(
  412|  44.1k|               !std::is_void_v<type>,
  413|  44.1k|               "Cannot determine the output type based on a statically sized bytearray with length other than those: 1, 2, 4, 8");
  414|       |
  415|  44.1k|            return type{};
  416|       |         } else {
  417|       |            static_assert(
  418|       |               !std::same_as<AutoDetect, OutT>,
  419|       |               "cannot infer return type from a dynamic range at compile time, please specify it explicitly");
  420|       |         }
  421|       |      } else if constexpr(concepts::resizable_container<OutT>) {
  422|       |         const size_t in_bytes = std::span{in}.size_bytes();
  423|       |         constexpr size_t out_elem_bytes = sizeof(typename OutT::value_type);
  424|       |         BOTAN_ARG_CHECK(in_bytes % out_elem_bytes == 0,
  425|       |                         "Input range is not word-aligned with the requested output range");
  426|       |         return OutT(in_bytes / out_elem_bytes);
  427|       |      } else {
  428|       |         return OutT{};
  429|       |      }
  430|  44.1k|   }(in_range);
_ZN5Botan6detail8load_anyILNSt3__16endianE57005ETkNS0_20unsigned_integralishEjTkNS_6ranges16contiguous_rangeIhEENS2_5arrayIhLm4EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEES9_OT1_:
  278|  44.1k|inline constexpr WrappedOutT load_any(InR&& in_range) {
  279|  44.1k|   using OutT = detail::wrapped_type<WrappedOutT>;
  280|  44.1k|   ranges::assert_exact_byte_length<sizeof(OutT)>(in_range);
  281|       |
  282|  44.1k|   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.1k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  287|  44.1k|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  44.1k|      } else {
  289|  44.1k|         const std::span in{in_range};
  290|  44.1k|         if constexpr(sizeof(OutT) == 1) {
  291|  44.1k|            return static_cast<OutT>(in[0]);
  292|  44.1k|         } else if constexpr(endianness == std::endian::native) {
  293|  44.1k|            return typecast_copy<OutT>(in);
  294|  44.1k|         } else {
  295|  44.1k|            static_assert(opposite(endianness) == std::endian::native);
  296|  44.1k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  44.1k|         }
  298|  44.1k|      }
  299|  44.1k|   }());
  300|  44.1k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE57005ETkNS0_20unsigned_integralishEjTkNS_6ranges16contiguous_rangeIhEENS2_5arrayIhLm4EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEES9_OT1_ENKUlvE_clEv:
  282|  44.1k|   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.1k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (286:10): [Folded, False: 44.1k]
  ------------------
  287|      0|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  44.1k|      } else {
  289|  44.1k|         const std::span in{in_range};
  290|       |         if constexpr(sizeof(OutT) == 1) {
  291|       |            return static_cast<OutT>(in[0]);
  292|  44.1k|         } else if constexpr(endianness == std::endian::native) {
  293|  44.1k|            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|  44.1k|      }
  299|  44.1k|   }());
_ZZN5Botan6detail9store_anyILNSt3__16endianE64206EtTkNS_6ranges23contiguous_output_rangeIhEERNS2_5arrayIhLm2EEETkNS4_14spanable_rangeENS6_ItLm1EEEQoosr3stdE7same_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|    270|   auto store_elementwise = [&] {
  608|    270|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|    270|      std::span<uint8_t> out_s(out);
  610|    270|      for(auto in_elem : in) {
  ------------------
  |  Branch (610:24): [True: 270, False: 270]
  ------------------
  611|    270|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|    270|         out_s = out_s.subspan(bytes_per_element);
  613|    270|      }
  614|    270|   };
_ZN5Botan8store_leINS_6detail10AutoDetectEJRPhmmmmEEEDaDpOT0_:
  736|      1|inline constexpr auto store_le(ParamTs&&... params) {
  737|      1|   return detail::store_any<std::endian::little, ModifierT>(std::forward<ParamTs>(params)...);
  738|      1|}
_ZN5Botan6detail9store_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS0_20unsigned_integralishEmTpTkNS0_20unsigned_integralishEJmmmEQaaoosr3stdE7same_asIS4_T0_Esr3stdE7same_asIT1_S5_E10all_same_vIS6_DpT2_EEEvPhS6_S8_:
  723|      1|inline constexpr void store_any(uint8_t out[], T0 in0, Ts... ins) {
  724|      1|   constexpr auto bytes = sizeof(in0) + (sizeof(ins) + ... + 0);
  725|       |   // asserts that *out points to the correct amount of memory
  726|      1|   store_any<endianness, T0>(std::span<uint8_t, bytes>(out, bytes), in0, ins...);
  727|      1|}
_ZN5Botan6detail9store_anyILNSt3__16endianE57005EmTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm32EEETpTkNS0_20unsigned_integralishEJmmmmEQaagtsZT2_Li0Eooaasr3stdE7same_asINS0_10AutoDetectET0_E10all_same_vIDpT2_Eaa20unsigned_integralishIS9_E10all_same_vIS9_SB_EEEvOT1_SB_:
  582|      1|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, Ts... ins) {
  583|      1|   ranges::assert_exact_byte_length<(sizeof(Ts) + ...)>(out);
  584|      1|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|      1|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|      1|      off += sizeof(T);
  587|      1|   };
  588|       |
  589|      1|   (store_one(std::span{out}, ins), ...);
  590|      1|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE57005EmTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm32EEETpTkNS0_20unsigned_integralishEJmmmmEQaagtsZT2_Li0Eooaasr3stdE7same_asINS0_10AutoDetectET0_E10all_same_vIDpT2_Eaa20unsigned_integralishIS9_E10all_same_vIS9_SB_EEEvOT1_SB_ENUlTyS9_T_E_clImS7_EEDaS9_SE_:
  584|      4|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|      4|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|      4|      off += sizeof(T);
  587|      4|   };
_ZN5Botan7load_leINS_6detail10AutoDetectEJRNSt3__15arrayImLm7EEERNS3_4spanIKhLm56EEEEEEDaDpOT0_:
  495|      2|inline constexpr auto load_le(ParamTs&&... params) {
  496|      2|   return detail::load_any<std::endian::little, OutT>(std::forward<ParamTs>(params)...);
  497|      2|}
_ZN5Botan6detail8load_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges23contiguous_output_rangeERNS2_5arrayImLm7EEETkNS5_16contiguous_rangeIhEENS2_4spanIKhLm56EEEQaa20unsigned_integralishINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT1_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISK_EESL_E4type10value_typeEEoosr3stdE7same_asIS4_T0_Esr3stdE7same_asISR_SQ_EEEvOSH_RKT2_:
  355|      2|inline constexpr void load_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  356|      2|   ranges::assert_equal_byte_lengths(out, in);
  357|      2|   using element_type = std::ranges::range_value_t<OutR>;
  358|       |
  359|      2|   auto load_elementwise = [&] {
  360|      2|      constexpr size_t bytes_per_element = sizeof(element_type);
  361|      2|      std::span<const uint8_t> in_s(in);
  362|      2|      for(auto& out_elem : out) {
  363|      2|         out_elem = load_any<endianness, element_type>(in_s.template first<bytes_per_element>());
  364|      2|         in_s = in_s.subspan(bytes_per_element);
  365|      2|      }
  366|      2|   };
  367|       |
  368|       |   // At compile time we cannot use `typecast_copy` as it uses `std::memcpy`
  369|       |   // internally to copy ranges on a byte-by-byte basis, which is not allowed
  370|       |   // in a `constexpr` context.
  371|      2|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (371:7): [Folded, False: 2]
  ------------------
  372|      0|      load_elementwise();
  373|      2|   } else {
  374|      2|      if constexpr(endianness == std::endian::native && !custom_loadable<element_type>) {
  375|      2|         typecast_copy(out, in);
  376|       |      } else {
  377|       |         load_elementwise();
  378|       |      }
  379|      2|   }
  380|      2|}
_ZN5Botan8store_leINS_6detail10AutoDetectEJRNSt3__14spanIhLm56EEENS3_5arrayImLm7EEEEEEDaDpOT0_:
  736|      3|inline constexpr auto store_le(ParamTs&&... params) {
  737|      3|   return detail::store_any<std::endian::little, ModifierT>(std::forward<ParamTs>(params)...);
  738|      3|}
_ZN5Botan6detail9store_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges23contiguous_output_rangeIhEERNS2_4spanIhLm56EEETkNS5_14spanable_rangeENS2_5arrayImLm7EEEQoosr3stdE7same_asIS4_T0_Esr3stdE7same_asISC_NS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT2_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISK_EESL_E4type10value_typeEEEEvOT1_RKSH_:
  603|      3|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  604|      3|   ranges::assert_equal_byte_lengths(out, in);
  605|      3|   using element_type = std::ranges::range_value_t<InR>;
  606|       |
  607|      3|   auto store_elementwise = [&] {
  608|      3|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|      3|      std::span<uint8_t> out_s(out);
  610|      3|      for(auto in_elem : in) {
  611|      3|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|      3|         out_s = out_s.subspan(bytes_per_element);
  613|      3|      }
  614|      3|   };
  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|      3|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (619:7): [Folded, False: 3]
  ------------------
  620|      0|      store_elementwise();
  621|      3|   } else {
  622|      3|      if constexpr(endianness == std::endian::native && !custom_storable<element_type>) {
  623|      3|         typecast_copy(out, in);
  624|       |      } else {
  625|       |         store_elementwise();
  626|       |      }
  627|      3|   }
  628|      3|}
_ZN5Botan7load_leINSt3__15arrayImLm15EEEJRNS2_IhLm120EEEEEEDaDpOT0_:
  495|      2|inline constexpr auto load_le(ParamTs&&... params) {
  496|      2|   return detail::load_any<std::endian::little, OutT>(std::forward<ParamTs>(params)...);
  497|      2|}
_ZN5Botan6detail8load_anyILNSt3__16endianE57005ENS2_5arrayImLm15EEETkNS_6ranges16contiguous_rangeIhEERNS4_IhLm120EEEQoosr3stdE7same_asINS0_10AutoDetectET0_Eaaoosr6rangesE25statically_spanable_rangeISB_Esr8conceptsE19resizable_containerISB_E20unsigned_integralishINSB_10value_typeEEEEDaOT1_:
  397|      2|inline constexpr auto load_any(InR&& in_range) {
  398|      2|   auto out = []([[maybe_unused]] const auto& in) {
  399|      2|      if constexpr(std::same_as<AutoDetect, OutT>) {
  400|      2|         if constexpr(ranges::statically_spanable_range<InR>) {
  401|      2|            constexpr size_t extent = decltype(std::span{in})::extent;
  402|       |
  403|       |            // clang-format off
  404|      2|            using type =
  405|      2|               std::conditional_t<extent == 1, uint8_t,
  406|      2|               std::conditional_t<extent == 2, uint16_t,
  407|      2|               std::conditional_t<extent == 4, uint32_t,
  408|      2|               std::conditional_t<extent == 8, uint64_t, void>>>>;
  409|       |            // clang-format on
  410|       |
  411|      2|            static_assert(
  412|      2|               !std::is_void_v<type>,
  413|      2|               "Cannot determine the output type based on a statically sized bytearray with length other than those: 1, 2, 4, 8");
  414|       |
  415|      2|            return type{};
  416|      2|         } else {
  417|      2|            static_assert(
  418|      2|               !std::same_as<AutoDetect, OutT>,
  419|      2|               "cannot infer return type from a dynamic range at compile time, please specify it explicitly");
  420|      2|         }
  421|      2|      } else if constexpr(concepts::resizable_container<OutT>) {
  422|      2|         const size_t in_bytes = std::span{in}.size_bytes();
  423|      2|         constexpr size_t out_elem_bytes = sizeof(typename OutT::value_type);
  424|      2|         BOTAN_ARG_CHECK(in_bytes % out_elem_bytes == 0,
  425|      2|                         "Input range is not word-aligned with the requested output range");
  426|      2|         return OutT(in_bytes / out_elem_bytes);
  427|      2|      } else {
  428|      2|         return OutT{};
  429|      2|      }
  430|      2|   }(in_range);
  431|       |
  432|      2|   using out_type = decltype(out);
  433|       |   if constexpr(unsigned_integralish<out_type>) {
  434|       |      out = load_any<endianness, out_type>(std::forward<InR>(in_range));
  435|      2|   } else {
  436|      2|      static_assert(ranges::contiguous_range<out_type>);
  437|      2|      using out_range_type = std::ranges::range_value_t<out_type>;
  438|      2|      load_any<endianness, out_range_type>(out, std::forward<InR>(in_range));
  439|      2|   }
  440|      2|   return out;
  441|      2|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE57005ENS2_5arrayImLm15EEETkNS_6ranges16contiguous_rangeIhEERNS4_IhLm120EEEQoosr3stdE7same_asINS0_10AutoDetectET0_Eaaoosr6rangesE25statically_spanable_rangeISB_Esr8conceptsE19resizable_containerISB_E20unsigned_integralishINSB_10value_typeEEEEDaOT1_ENKUlRKT_E_clIS8_EEDaSH_:
  398|      2|   auto out = []([[maybe_unused]] const auto& in) {
  399|       |      if constexpr(std::same_as<AutoDetect, OutT>) {
  400|       |         if constexpr(ranges::statically_spanable_range<InR>) {
  401|       |            constexpr size_t extent = decltype(std::span{in})::extent;
  402|       |
  403|       |            // clang-format off
  404|       |            using type =
  405|       |               std::conditional_t<extent == 1, uint8_t,
  406|       |               std::conditional_t<extent == 2, uint16_t,
  407|       |               std::conditional_t<extent == 4, uint32_t,
  408|       |               std::conditional_t<extent == 8, uint64_t, void>>>>;
  409|       |            // clang-format on
  410|       |
  411|       |            static_assert(
  412|       |               !std::is_void_v<type>,
  413|       |               "Cannot determine the output type based on a statically sized bytearray with length other than those: 1, 2, 4, 8");
  414|       |
  415|       |            return type{};
  416|       |         } else {
  417|       |            static_assert(
  418|       |               !std::same_as<AutoDetect, OutT>,
  419|       |               "cannot infer return type from a dynamic range at compile time, please specify it explicitly");
  420|       |         }
  421|       |      } else if constexpr(concepts::resizable_container<OutT>) {
  422|       |         const size_t in_bytes = std::span{in}.size_bytes();
  423|       |         constexpr size_t out_elem_bytes = sizeof(typename OutT::value_type);
  424|       |         BOTAN_ARG_CHECK(in_bytes % out_elem_bytes == 0,
  425|       |                         "Input range is not word-aligned with the requested output range");
  426|       |         return OutT(in_bytes / out_elem_bytes);
  427|      2|      } else {
  428|      2|         return OutT{};
  429|      2|      }
  430|      2|   }(in_range);
_ZN5Botan6detail8load_anyILNSt3__16endianE57005EmTkNS_6ranges23contiguous_output_rangeERNS2_5arrayImLm15EEETkNS4_16contiguous_rangeIhEENS5_IhLm120EEEQaa20unsigned_integralishINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT1_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISH_EESI_E4type10value_typeEEoosr3stdE7same_asINS0_10AutoDetectET0_Esr3stdE7same_asISP_SN_EEEvOSE_RKT2_:
  355|      2|inline constexpr void load_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  356|      2|   ranges::assert_equal_byte_lengths(out, in);
  357|      2|   using element_type = std::ranges::range_value_t<OutR>;
  358|       |
  359|      2|   auto load_elementwise = [&] {
  360|      2|      constexpr size_t bytes_per_element = sizeof(element_type);
  361|      2|      std::span<const uint8_t> in_s(in);
  362|      2|      for(auto& out_elem : out) {
  363|      2|         out_elem = load_any<endianness, element_type>(in_s.template first<bytes_per_element>());
  364|      2|         in_s = in_s.subspan(bytes_per_element);
  365|      2|      }
  366|      2|   };
  367|       |
  368|       |   // At compile time we cannot use `typecast_copy` as it uses `std::memcpy`
  369|       |   // internally to copy ranges on a byte-by-byte basis, which is not allowed
  370|       |   // in a `constexpr` context.
  371|      2|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (371:7): [Folded, False: 2]
  ------------------
  372|      0|      load_elementwise();
  373|      2|   } else {
  374|      2|      if constexpr(endianness == std::endian::native && !custom_loadable<element_type>) {
  375|      2|         typecast_copy(out, in);
  376|       |      } else {
  377|       |         load_elementwise();
  378|       |      }
  379|      2|   }
  380|      2|}
_ZN5Botan8store_leINS_6detail10AutoDetectEJRtEEEDaDpOT0_:
  736|  3.69k|inline constexpr auto store_le(ParamTs&&... params) {
  737|  3.69k|   return detail::store_any<std::endian::little, ModifierT>(std::forward<ParamTs>(params)...);
  738|  3.69k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE57005ENS0_10AutoDetectETpTkNS0_20unsigned_integralishEJtEQ10all_same_vIDpT1_EEEDaS6_:
  696|  3.69k|inline constexpr auto store_any(Ts... ins) {
  697|  3.69k|   return store_any<endianness, OutR>(std::array{ins...});
  698|  3.69k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges14spanable_rangeENS2_5arrayItLm1EEEQoooosr3stdE7same_asIS4_T0_Eaasr6rangesE25statically_spanable_rangeIS8_Esr3stdE21default_initializableIS8_Esr8conceptsE21resizable_byte_bufferIS8_EEEDaOT1_:
  663|  3.69k|inline constexpr auto store_any(InR&& in_range) {
  664|  3.69k|   auto out = []([[maybe_unused]] const auto& in) {
  665|  3.69k|      if constexpr(std::same_as<AutoDetect, OutR>) {
  666|  3.69k|         if constexpr(ranges::statically_spanable_range<InR>) {
  667|  3.69k|            constexpr size_t bytes = decltype(std::span{in})::extent * sizeof(std::ranges::range_value_t<InR>);
  668|  3.69k|            return std::array<uint8_t, bytes>();
  669|  3.69k|         } else {
  670|  3.69k|            static_assert(
  671|  3.69k|               !std::same_as<AutoDetect, OutR>,
  672|  3.69k|               "cannot infer a suitable result container type from the given parameters at compile time, please specify it explicitly");
  673|  3.69k|         }
  674|  3.69k|      } else if constexpr(concepts::resizable_byte_buffer<OutR>) {
  675|  3.69k|         return OutR(std::span{in}.size_bytes());
  676|  3.69k|      } else {
  677|  3.69k|         return OutR{};
  678|  3.69k|      }
  679|  3.69k|   }(in_range);
  680|       |
  681|  3.69k|   store_any<endianness, std::ranges::range_value_t<InR>>(out, std::forward<InR>(in_range));
  682|  3.69k|   return out;
  683|  3.69k|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges14spanable_rangeENS2_5arrayItLm1EEEQoooosr3stdE7same_asIS4_T0_Eaasr6rangesE25statically_spanable_rangeIS8_Esr3stdE21default_initializableIS8_Esr8conceptsE21resizable_byte_bufferIS8_EEEDaOT1_ENKUlRKT_E_clIS7_EEDaSD_:
  664|  3.69k|   auto out = []([[maybe_unused]] const auto& in) {
  665|  3.69k|      if constexpr(std::same_as<AutoDetect, OutR>) {
  666|  3.69k|         if constexpr(ranges::statically_spanable_range<InR>) {
  667|  3.69k|            constexpr size_t bytes = decltype(std::span{in})::extent * sizeof(std::ranges::range_value_t<InR>);
  668|  3.69k|            return std::array<uint8_t, bytes>();
  669|       |         } else {
  670|       |            static_assert(
  671|       |               !std::same_as<AutoDetect, OutR>,
  672|       |               "cannot infer a suitable result container type from the given parameters at compile time, please specify it explicitly");
  673|       |         }
  674|       |      } else if constexpr(concepts::resizable_byte_buffer<OutR>) {
  675|       |         return OutR(std::span{in}.size_bytes());
  676|       |      } else {
  677|       |         return OutR{};
  678|       |      }
  679|  3.69k|   }(in_range);
_ZN5Botan6detail9store_anyILNSt3__16endianE57005EtTkNS_6ranges23contiguous_output_rangeIhEERNS2_5arrayIhLm2EEETkNS4_14spanable_rangeENS6_ItLm1EEEQoosr3stdE7same_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|  3.69k|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  604|  3.69k|   ranges::assert_equal_byte_lengths(out, in);
  605|  3.69k|   using element_type = std::ranges::range_value_t<InR>;
  606|       |
  607|  3.69k|   auto store_elementwise = [&] {
  608|  3.69k|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|  3.69k|      std::span<uint8_t> out_s(out);
  610|  3.69k|      for(auto in_elem : in) {
  611|  3.69k|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|  3.69k|         out_s = out_s.subspan(bytes_per_element);
  613|  3.69k|      }
  614|  3.69k|   };
  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|  3.69k|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (619:7): [Folded, False: 3.69k]
  ------------------
  620|      0|      store_elementwise();
  621|  3.69k|   } else {
  622|  3.69k|      if constexpr(endianness == std::endian::native && !custom_storable<element_type>) {
  623|  3.69k|         typecast_copy(out, in);
  624|       |      } else {
  625|       |         store_elementwise();
  626|       |      }
  627|  3.69k|   }
  628|  3.69k|}

_ZN5Botan18MerkleDamgard_HashINS_7SHA_512EEC2Ev:
   42|      2|      MerkleDamgard_Hash() { clear(); }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_512EE5clearEv:
   70|      4|      void clear() {
   71|      4|         MD::init(m_digest);
   72|      4|         m_buffer.clear();
   73|      4|         m_count = 0;
   74|      4|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_512EE6updateENSt3__14spanIKhLm18446744073709551615EEE:
   44|      2|      void update(std::span<const uint8_t> input) {
   45|      2|         BufferSlicer in(input);
   46|       |
   47|      4|         while(!in.empty()) {
  ------------------
  |  Branch (47:16): [True: 2, False: 2]
  ------------------
   48|      2|            if(const auto one_block = m_buffer.handle_unaligned_data(in)) {
  ------------------
  |  Branch (48:27): [True: 0, False: 2]
  ------------------
   49|      0|               MD::compress_n(m_digest, one_block.value(), 1);
   50|      0|            }
   51|       |
   52|      2|            if(m_buffer.in_alignment()) {
  ------------------
  |  Branch (52:16): [True: 0, False: 2]
  ------------------
   53|      0|               const auto [aligned_data, full_blocks] = m_buffer.aligned_data_to_process(in);
   54|      0|               if(full_blocks > 0) {
  ------------------
  |  Branch (54:19): [True: 0, False: 0]
  ------------------
   55|      0|                  MD::compress_n(m_digest, aligned_data, full_blocks);
   56|      0|               }
   57|      0|            }
   58|      2|         }
   59|       |
   60|      2|         m_count += input.size();
   61|      2|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_512EE5finalENSt3__14spanIhLm18446744073709551615EEE:
   63|      2|      void final(std::span<uint8_t> output) {
   64|      2|         append_padding_bit();
   65|      2|         append_counter_and_finalize();
   66|      2|         copy_output(output);
   67|      2|         clear();
   68|      2|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_512EE18append_padding_bitEv:
   77|      2|      void append_padding_bit() {
   78|      2|         BOTAN_ASSERT_NOMSG(!m_buffer.ready_to_consume());
  ------------------
  |  |   77|      2|   do {                                                                     \
  |  |   78|      2|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|      2|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 2]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|      2|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 2]
  |  |  ------------------
  ------------------
   79|      2|         if constexpr(MD::bit_endianness == MD_Endian::Big) {
   80|      2|            const uint8_t final_byte = 0x80;
   81|      2|            m_buffer.append({&final_byte, 1});
   82|       |         } else {
   83|       |            const uint8_t final_byte = 0x01;
   84|       |            m_buffer.append({&final_byte, 1});
   85|       |         }
   86|      2|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_512EE27append_counter_and_finalizeEv:
   88|      2|      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|      2|         if(m_buffer.elements_until_alignment() < MD::ctr_bytes) {
  ------------------
  |  Branch (91:13): [True: 0, False: 2]
  ------------------
   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|      2|         BOTAN_ASSERT_NOMSG(m_buffer.elements_until_alignment() >= MD::ctr_bytes);
  ------------------
  |  |   77|      2|   do {                                                                     \
  |  |   78|      2|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|      2|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 2]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|      2|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 2]
  |  |  ------------------
  ------------------
   98|      2|         m_buffer.fill_up_with_zeros();
   99|       |
  100|       |         // Replace a bunch of the right-most zero-padding with the counter bytes.
  101|      2|         const uint64_t bit_count = m_count * 8;
  102|      2|         auto last_bytes = m_buffer.directly_modify_last(sizeof(bit_count));
  103|      2|         if constexpr(MD::byte_endianness == MD_Endian::Big) {
  104|      2|            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|      2|         MD::compress_n(m_digest, m_buffer.consume(), 1);
  111|      2|      }
_ZN5Botan18MerkleDamgard_HashINS_7SHA_512EE11copy_outputENSt3__14spanIhLm18446744073709551615EEE:
  113|      2|      void copy_output(std::span<uint8_t> output) {
  114|      2|         BOTAN_ASSERT_NOMSG(output.size() >= MD::output_bytes);
  ------------------
  |  |   77|      2|   do {                                                                     \
  |  |   78|      2|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|      2|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 2]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|      2|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 2]
  |  |  ------------------
  ------------------
  115|       |
  116|      2|         if constexpr(MD::byte_endianness == MD_Endian::Big) {
  117|      2|            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|      2|      }

_ZN5Botan14zeroize_bufferITkNSt3__117unsigned_integralEhEEvPT_m:
   37|      6|inline void zeroize_buffer(T buf[], size_t n) {
   38|      6|   if(n > 0) {
  ------------------
  |  Branch (38:7): [True: 6, False: 0]
  ------------------
   39|      6|      std::memset(buf, 0, sizeof(T) * n);
   40|      6|   }
   41|      6|}
_ZN5Botan14zeroize_bufferITkNSt3__117unsigned_integralEmEEvPT_m:
   37|  32.0M|inline void zeroize_buffer(T buf[], size_t n) {
   38|  32.0M|   if(n > 0) {
  ------------------
  |  Branch (38:7): [True: 30.7M, False: 1.33M]
  ------------------
   39|  30.7M|      std::memset(buf, 0, sizeof(T) * n);
   40|  30.7M|   }
   41|  32.0M|}
_ZN5Botan21unchecked_copy_memoryITkNSt3__117unsigned_integralEmEEvPT_PKS2_m:
   44|  2.59M|inline void unchecked_copy_memory(T* out, const T* in, size_t n) {
   45|  2.59M|   if(in != nullptr && out != nullptr && n > 0) {
  ------------------
  |  Branch (45:7): [True: 2.59M, False: 0]
  |  Branch (45:24): [True: 2.59M, False: 0]
  |  Branch (45:42): [True: 2.59M, False: 0]
  ------------------
   46|  2.59M|      std::memmove(out, in, sizeof(T) * n);
   47|  2.59M|   }
   48|  2.59M|}

_ZN5Botan27ML_DSA_Symmetric_PrimitivesC2ERKNS_18DilithiumConstantsE:
   65|    153|            Dilithium_Symmetric_Primitives_Base(mode, std::make_unique<DilithiumShakeXOF>()),
   66|    153|            m_seed_expansion_domain_separator({mode.k(), mode.l()}) {}
_ZNK5Botan27ML_DSA_Symmetric_Primitives31seed_expansion_domain_separatorEv:
   92|     75|      std::optional<std::array<uint8_t, 2>> seed_expansion_domain_separator() const override {
   93|     75|         return m_seed_expansion_domain_separator;
   94|     75|      }

_ZNK5Botan27ML_KEM_Symmetric_Primitives31seed_expansion_domain_separatorERKNS_14KyberConstantsE:
   59|     25|      std::optional<std::array<uint8_t, 1>> seed_expansion_domain_separator(const KyberConstants& mode) const override {
   60|       |         // NIST FIPS 203, Algorithm 13 (K-PKE.KeyGen)
   61|       |         //    Byte 33 of the input to G is the module dimension k from {2,3,4}.
   62|       |         //    This is included to establish domain separation between the three
   63|       |         //    parameter sets
   64|     25|         return std::array{mode.k()};
   65|     25|      }
_ZNK5Botan27ML_KEM_Symmetric_Primitives8create_GEv:
   67|     25|      std::unique_ptr<HashFunction> create_G() const override { return HashFunction::create_or_throw("SHA-3(512)"); }
_ZNK5Botan27ML_KEM_Symmetric_Primitives8create_HEv:
   69|     25|      std::unique_ptr<HashFunction> create_H() const override { return HashFunction::create_or_throw("SHA-3(256)"); }
_ZNK5Botan27ML_KEM_Symmetric_Primitives10create_PRFENSt3__14spanIKhLm18446744073709551615EEEh:
   79|     25|      std::unique_ptr<Botan::XOF> create_PRF(std::span<const uint8_t> seed, const uint8_t nonce) const override {
   80|     25|         auto xof = Botan::XOF::create_or_throw("SHAKE-256");
   81|     25|         init_PRF(*xof, seed, nonce);
   82|     25|         return xof;
   83|     25|      }
_ZNK5Botan27ML_KEM_Symmetric_Primitives8init_PRFERNS_3XOFENSt3__14spanIKhLm18446744073709551615EEEh:
   85|    160|      void init_PRF(Botan::XOF& xof, std::span<const uint8_t> seed, const uint8_t nonce) const override {
   86|    160|         xof.clear();
   87|    160|         xof.update(seed);
   88|    160|         xof.update(store_be(nonce));
   89|    160|      }
_ZNK5Botan27ML_KEM_Symmetric_Primitives10create_XOFENSt3__14spanIKhLm18446744073709551615EEENS1_5tupleIJhhEEE:
   92|     25|                                             std::tuple<uint8_t, uint8_t> matrix_position) const override {
   93|     25|         auto xof = Botan::XOF::create_or_throw("SHAKE-128");
   94|     25|         init_XOF(*xof, seed, matrix_position);
   95|     25|         return xof;
   96|     25|      }
_ZNK5Botan27ML_KEM_Symmetric_Primitives8init_XOFERNS_3XOFENSt3__14spanIKhLm18446744073709551615EEENS3_5tupleIJhhEEE:
  100|    270|                    std::tuple<uint8_t, uint8_t> matrix_position) const override {
  101|    270|         xof.clear();
  102|    270|         xof.update(seed);
  103|    270|         xof.update(store_be(make_uint16(std::get<0>(matrix_position), std::get<1>(matrix_position))));
  104|    270|      }

_ZNK5Botan17Montgomery_Params1pEv:
   41|  4.37M|      const BigInt& p() const { return m_data->p(); }
_ZNK5Botan17Montgomery_Params2R1Ev:
   43|  6.96k|      const BigInt& R1() const { return m_data->r1(); }
_ZNK5Botan17Montgomery_Params2R2Ev:
   45|  16.1k|      const BigInt& R2() const { return m_data->r2(); }
_ZNK5Botan17Montgomery_Params2R3Ev:
   47|    691|      const BigInt& R3() const { return m_data->r3(); }
_ZNK5Botan17Montgomery_Params6p_dashEv:
   49|  4.36M|      word p_dash() const { return m_data->p_dash(); }
_ZNK5Botan17Montgomery_Params7p_wordsEv:
   51|  4.70M|      size_t p_words() const { return m_data->p_size(); }
_ZNK5Botan17Montgomery_Params4Data1pEv:
   76|  4.37M|            const BigInt& p() const { return m_p; }
_ZNK5Botan17Montgomery_Params4Data2r1Ev:
   78|  6.96k|            const BigInt& r1() const { return m_r1; }
_ZNK5Botan17Montgomery_Params4Data2r2Ev:
   80|  16.1k|            const BigInt& r2() const { return m_r2; }
_ZNK5Botan17Montgomery_Params4Data2r3Ev:
   82|    691|            const BigInt& r3() const { return m_r3; }
_ZNK5Botan17Montgomery_Params4Data6p_dashEv:
   84|  4.36M|            word p_dash() const { return m_p_dash; }
_ZNK5Botan17Montgomery_Params4Data6p_sizeEv:
   86|  4.70M|            size_t p_size() const { return m_p_words; }
_ZNK5Botan14Montgomery_Int4reprEv:
  143|  1.57M|      const secure_vector<word>& repr() const { return m_v; }
_ZNK5Botan14Montgomery_Int18_const_time_poisonEv:
  159|  25.4k|      void _const_time_poison() const { CT::poison(m_v); }
_ZNK5Botan14Montgomery_Int20_const_time_unpoisonEv:
  161|  1.51k|      void _const_time_unpoison() const { CT::unpoison(m_v); }
_ZNK5Botan14Montgomery_Int7_paramsEv:
  163|  1.58k|      const Montgomery_Params& _params() const { return m_params; }

_ZN5Botan10word8_add2ITkNS_8WordTypeEmEET_PS1_PKS1_S1_:
  268|    477|inline constexpr auto word8_add2(W x[8], const W y[8], W carry) -> W {
  269|    477|#if defined(BOTAN_MP_USE_X86_64_ASM)
  270|    477|   if(std::same_as<W, uint64_t> && !std::is_constant_evaluated()) {
  ------------------
  |  Branch (270:7): [True: 0, Folded]
  |  Branch (270:36): [True: 0, Folded]
  ------------------
  271|    477|      asm volatile(ADD_OR_SUBTRACT(DO_8_TIMES(ADDSUB2_OP, "adcq"))
  272|    477|                   : [carry] "=r"(carry)
  273|    477|                   : [x] "r"(x), [y] "r"(y), "0"(carry)
  274|    477|                   : "cc", "memory");
  275|    477|      return carry;
  276|    477|   }
  277|      0|#endif
  278|       |
  279|      0|   x[0] = word_add(x[0], y[0], &carry);
  280|      0|   x[1] = word_add(x[1], y[1], &carry);
  281|      0|   x[2] = word_add(x[2], y[2], &carry);
  282|      0|   x[3] = word_add(x[3], y[3], &carry);
  283|      0|   x[4] = word_add(x[4], y[4], &carry);
  284|      0|   x[5] = word_add(x[5], y[5], &carry);
  285|      0|   x[6] = word_add(x[6], y[6], &carry);
  286|      0|   x[7] = word_add(x[7], y[7], &carry);
  287|      0|   return carry;
  288|    477|}
_ZN5Botan8word_addITkNS_8WordTypeEmEET_S1_S1_PS1_:
  231|  46.8M|inline constexpr auto word_add(W x, W y, W* carry) -> W {
  232|  46.8M|#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_addc)
  233|  46.8M|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (233:7): [True: 46.8M, Folded]
  ------------------
  234|       |      if constexpr(std::same_as<W, unsigned int>) {
  235|       |         return __builtin_addc(x, y, *carry & 1, carry);
  236|  46.8M|      } else if constexpr(std::same_as<W, unsigned long>) {
  237|  46.8M|         return __builtin_addcl(x, y, *carry & 1, carry);
  238|       |      } else if constexpr(std::same_as<W, unsigned long long>) {
  239|       |         return __builtin_addcll(x, y, *carry & 1, carry);
  240|       |      }
  241|  46.8M|   }
  242|      0|#endif
  243|       |
  244|       |   if constexpr(WordInfo<W>::dword_is_native && use_dword_for_word_add) {
  245|       |      /*
  246|       |      TODO(Botan4) this is largely a performance hack for GCCs that don't
  247|       |      support __builtin_addc, if we increase the minimum supported version of
  248|       |      GCC to GCC 14 then we can remove this and not worry about it
  249|       |      */
  250|       |      const W cb = *carry & 1;
  251|       |      const auto s = typename WordInfo<W>::dword(x) + y + cb;
  252|       |      *carry = static_cast<W>(s >> WordInfo<W>::bits);
  253|       |      return static_cast<W>(s);
  254|  46.8M|   } else {
  255|  46.8M|      const W cb = *carry & 1;
  256|  46.8M|      W z = x + y;
  257|  46.8M|      W c1 = (z < x);
  258|  46.8M|      z += cb;
  259|  46.8M|      *carry = c1 | (z < cb);
  260|  46.8M|      return z;
  261|  46.8M|   }
  262|  46.8M|}
_ZN5Botan10word8_sub2ITkNS_8WordTypeEmEET_PS1_PKS1_S1_:
  345|   698k|inline constexpr auto word8_sub2(W x[8], const W y[8], W carry) -> W {
  346|   698k|#if defined(BOTAN_MP_USE_X86_64_ASM)
  347|   698k|   if(std::same_as<W, uint64_t> && !std::is_constant_evaluated()) {
  ------------------
  |  Branch (347:7): [True: 0, Folded]
  |  Branch (347:36): [True: 0, Folded]
  ------------------
  348|   698k|      asm volatile(ADD_OR_SUBTRACT(DO_8_TIMES(ADDSUB2_OP, "sbbq"))
  349|   698k|                   : [carry] "=r"(carry)
  350|   698k|                   : [x] "r"(x), [y] "r"(y), "0"(carry)
  351|   698k|                   : "cc", "memory");
  352|   698k|      return carry;
  353|   698k|   }
  354|      0|#endif
  355|       |
  356|      0|   x[0] = word_sub(x[0], y[0], &carry);
  357|      0|   x[1] = word_sub(x[1], y[1], &carry);
  358|      0|   x[2] = word_sub(x[2], y[2], &carry);
  359|      0|   x[3] = word_sub(x[3], y[3], &carry);
  360|      0|   x[4] = word_sub(x[4], y[4], &carry);
  361|      0|   x[5] = word_sub(x[5], y[5], &carry);
  362|      0|   x[6] = word_sub(x[6], y[6], &carry);
  363|      0|   x[7] = word_sub(x[7], y[7], &carry);
  364|      0|   return carry;
  365|   698k|}
_ZN5Botan8word_subITkNS_8WordTypeEmEET_S1_S1_PS1_:
  320|   173M|inline constexpr auto word_sub(W x, W y, W* carry) -> W {
  321|   173M|#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_subc)
  322|   173M|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (322:7): [True: 173M, Folded]
  ------------------
  323|       |      if constexpr(std::same_as<W, unsigned int>) {
  324|       |         return __builtin_subc(x, y, *carry & 1, carry);
  325|   173M|      } else if constexpr(std::same_as<W, unsigned long>) {
  326|   173M|         return __builtin_subcl(x, y, *carry & 1, carry);
  327|       |      } else if constexpr(std::same_as<W, unsigned long long>) {
  328|       |         return __builtin_subcll(x, y, *carry & 1, carry);
  329|       |      }
  330|   173M|   }
  331|      0|#endif
  332|       |
  333|      0|   const W cb = *carry & 1;
  334|   173M|   W t0 = x - y;
  335|   173M|   W c1 = (t0 > x);
  336|   173M|   W z = t0 - cb;
  337|   173M|   *carry = c1 | (z > t0);
  338|   173M|   return z;
  339|   173M|}
_ZN5Botan10word8_sub3ITkNS_8WordTypeEmEET_PS1_PKS1_S4_S1_:
  371|  6.83M|inline constexpr auto word8_sub3(W z[8], const W x[8], const W y[8], W carry) -> W {
  372|  6.83M|#if defined(BOTAN_MP_USE_X86_64_ASM)
  373|  6.83M|   if(std::same_as<W, uint64_t> && !std::is_constant_evaluated()) {
  ------------------
  |  Branch (373:7): [True: 0, Folded]
  |  Branch (373:36): [True: 0, Folded]
  ------------------
  374|  6.83M|      asm volatile(ADD_OR_SUBTRACT(DO_8_TIMES(ADDSUB3_OP, "sbbq"))
  375|  6.83M|                   : [carry] "=r"(carry)
  376|  6.83M|                   : [x] "r"(x), [y] "r"(y), [z] "r"(z), "0"(carry)
  377|  6.83M|                   : "cc", "memory");
  378|  6.83M|      return carry;
  379|  6.83M|   }
  380|      0|#endif
  381|       |
  382|      0|   z[0] = word_sub(x[0], y[0], &carry);
  383|      0|   z[1] = word_sub(x[1], y[1], &carry);
  384|      0|   z[2] = word_sub(x[2], y[2], &carry);
  385|      0|   z[3] = word_sub(x[3], y[3], &carry);
  386|      0|   z[4] = word_sub(x[4], y[4], &carry);
  387|      0|   z[5] = word_sub(x[5], y[5], &carry);
  388|      0|   z[6] = word_sub(x[6], y[6], &carry);
  389|      0|   z[7] = word_sub(x[7], y[7], &carry);
  390|      0|   return carry;
  391|  6.83M|}
_ZN5Botan10word8_add3ITkNS_8WordTypeEmEET_PS1_PKS1_S4_S1_:
  294|   540k|inline constexpr auto word8_add3(W z[8], const W x[8], const W y[8], W carry) -> W {
  295|   540k|#if defined(BOTAN_MP_USE_X86_64_ASM)
  296|   540k|   if(std::same_as<W, uint64_t> && !std::is_constant_evaluated()) {
  ------------------
  |  Branch (296:7): [True: 0, Folded]
  |  Branch (296:36): [True: 0, Folded]
  ------------------
  297|   540k|      asm volatile(ADD_OR_SUBTRACT(DO_8_TIMES(ADDSUB3_OP, "adcq"))
  298|   540k|                   : [carry] "=r"(carry)
  299|   540k|                   : [x] "r"(x), [y] "r"(y), [z] "r"(z), "0"(carry)
  300|   540k|                   : "cc", "memory");
  301|   540k|      return carry;
  302|   540k|   }
  303|      0|#endif
  304|       |
  305|      0|   z[0] = word_add(x[0], y[0], &carry);
  306|      0|   z[1] = word_add(x[1], y[1], &carry);
  307|      0|   z[2] = word_add(x[2], y[2], &carry);
  308|      0|   z[3] = word_add(x[3], y[3], &carry);
  309|      0|   z[4] = word_add(x[4], y[4], &carry);
  310|      0|   z[5] = word_add(x[5], y[5], &carry);
  311|      0|   z[6] = word_add(x[6], y[6], &carry);
  312|      0|   z[7] = word_add(x[7], y[7], &carry);
  313|      0|   return carry;
  314|   540k|}
_ZN5Botan13word8_linmul3ITkNS_8WordTypeEmEET_PS1_PKS1_S1_S1_:
  397|  28.9k|inline constexpr auto word8_linmul3(W z[8], const W x[8], W y, W carry) -> W {
  398|  28.9k|#if defined(BOTAN_MP_USE_X86_64_ASM)
  399|  28.9k|   if(std::same_as<W, uint64_t> && !std::is_constant_evaluated()) {
  ------------------
  |  Branch (399:7): [True: 0, Folded]
  |  Branch (399:36): [True: 0, Folded]
  ------------------
  400|  28.9k|      asm volatile(DO_8_TIMES(LINMUL_OP, "z")
  401|  28.9k|                   : [carry] "=r"(carry)
  402|  28.9k|                   : [z] "r"(z), [x] "r"(x), [y] "rm"(y), "0"(carry)
  403|  28.9k|                   : "cc", "%rax", "%rdx", "memory");
  404|  28.9k|      return carry;
  405|  28.9k|   }
  406|      0|#endif
  407|       |
  408|      0|   z[0] = word_madd2(x[0], y, &carry);
  409|      0|   z[1] = word_madd2(x[1], y, &carry);
  410|      0|   z[2] = word_madd2(x[2], y, &carry);
  411|      0|   z[3] = word_madd2(x[3], y, &carry);
  412|      0|   z[4] = word_madd2(x[4], y, &carry);
  413|      0|   z[5] = word_madd2(x[5], y, &carry);
  414|      0|   z[6] = word_madd2(x[6], y, &carry);
  415|      0|   z[7] = word_madd2(x[7], y, &carry);
  416|      0|   return carry;
  417|  28.9k|}
_ZN5Botan10word_madd2ITkNS_8WordTypeEmEET_S1_S1_PS1_:
   90|  3.71M|inline constexpr auto word_madd2(W a, W b, W* c) -> W {
   91|  3.71M|#if defined(BOTAN_MP_USE_X86_64_ASM)
   92|  3.71M|   if(std::same_as<W, uint64_t> && !std::is_constant_evaluated()) {
  ------------------
  |  Branch (92:7): [True: 0, Folded]
  |  Branch (92:36): [True: 0, Folded]
  ------------------
   93|  3.71M|      asm(R"(
   94|  3.71M|         mulq %[b]
   95|  3.71M|         addq %[c],%[a]
   96|  3.71M|         adcq $0,%[carry]
   97|  3.71M|         )"
   98|  3.71M|          : [a] "=a"(a), [b] "=rm"(b), [carry] "=&d"(*c)
   99|  3.71M|          : "0"(a), "1"(b), [c] "g"(*c)
  100|  3.71M|          : "cc");
  101|       |
  102|  3.71M|      return a;
  103|  3.71M|   }
  104|       |#elif defined(BOTAN_MP_USE_AARCH64_ASM)
  105|       |   if(std::same_as<W, uint64_t> && !std::is_constant_evaluated()) {
  106|       |      W lo = 0;
  107|       |      W hi = 0;
  108|       |      asm(R"(
  109|       |         mul  %[lo], %[a], %[b]
  110|       |         umulh %[hi], %[a], %[b]
  111|       |         adds %[lo], %[lo], %[c]
  112|       |         adc  %[hi], %[hi], xzr
  113|       |         )"
  114|       |          : [lo] "=&r"(lo), [hi] "=&r"(hi)
  115|       |          : [a] "r"(a), [b] "r"(b), [c] "r"(*c)
  116|       |          : "cc");
  117|       |
  118|       |      *c = hi;
  119|       |      return lo;
  120|       |   }
  121|       |#endif
  122|       |
  123|      0|   typedef typename WordInfo<W>::dword dword;
  124|      0|   const dword s = dword(a) * b + *c;
  125|      0|   *c = static_cast<W>(s >> WordInfo<W>::bits);
  126|      0|   return static_cast<W>(s);
  127|  3.71M|}
_ZN5Botan11word8_madd3ITkNS_8WordTypeEmEET_PS1_PKS1_S1_S1_:
  423|  12.8M|inline constexpr auto word8_madd3(W z[8], const W x[8], W y, W carry) -> W {
  424|  12.8M|#if defined(BOTAN_MP_USE_X86_64_ASM)
  425|  12.8M|   if(std::same_as<W, uint64_t> && !std::is_constant_evaluated()) {
  ------------------
  |  Branch (425:7): [True: 0, Folded]
  |  Branch (425:36): [True: 0, Folded]
  ------------------
  426|  12.8M|      asm volatile(DO_8_TIMES(MULADD_OP, "")
  427|  12.8M|                   : [carry] "=r"(carry)
  428|  12.8M|                   : [z] "r"(z), [x] "r"(x), [y] "rm"(y), "0"(carry)
  429|  12.8M|                   : "cc", "%rax", "%rdx", "memory");
  430|  12.8M|      return carry;
  431|  12.8M|   }
  432|      0|#endif
  433|       |
  434|      0|   z[0] = word_madd3(x[0], y, z[0], &carry);
  435|      0|   z[1] = word_madd3(x[1], y, z[1], &carry);
  436|      0|   z[2] = word_madd3(x[2], y, z[2], &carry);
  437|      0|   z[3] = word_madd3(x[3], y, z[3], &carry);
  438|      0|   z[4] = word_madd3(x[4], y, z[4], &carry);
  439|      0|   z[5] = word_madd3(x[5], y, z[5], &carry);
  440|      0|   z[6] = word_madd3(x[6], y, z[6], &carry);
  441|      0|   z[7] = word_madd3(x[7], y, z[7], &carry);
  442|      0|   return carry;
  443|  12.8M|}
_ZN5Botan10word_madd3ITkNS_8WordTypeEmEET_S1_S1_S1_PS1_:
  133|   161M|inline constexpr auto word_madd3(W a, W b, W c, W* d) -> W {
  134|   161M|#if defined(BOTAN_MP_USE_X86_64_ASM)
  135|   161M|   if(std::same_as<W, uint64_t> && !std::is_constant_evaluated()) {
  ------------------
  |  Branch (135:7): [True: 0, Folded]
  |  Branch (135:36): [True: 0, Folded]
  ------------------
  136|   161M|      asm(R"(
  137|   161M|         mulq %[b]
  138|   161M|
  139|   161M|         addq %[c],%[a]
  140|   161M|         adcq $0,%[carry]
  141|   161M|
  142|   161M|         addq %[d],%[a]
  143|   161M|         adcq $0,%[carry]
  144|   161M|         )"
  145|   161M|          : [a] "=a"(a), [b] "=rm"(b), [carry] "=&d"(*d)
  146|   161M|          : "0"(a), "1"(b), [c] "g"(c), [d] "g"(*d)
  147|   161M|          : "cc");
  148|       |
  149|   161M|      return a;
  150|   161M|   }
  151|       |#elif defined(BOTAN_MP_USE_AARCH64_ASM)
  152|       |   if(std::same_as<W, uint64_t> && !std::is_constant_evaluated()) {
  153|       |      W lo = 0;
  154|       |      W hi = 0;
  155|       |      asm(R"(
  156|       |         mul  %[lo], %[a], %[b]
  157|       |         umulh %[hi], %[a], %[b]
  158|       |         adds %[lo], %[lo], %[c]
  159|       |         adc  %[hi], %[hi], xzr
  160|       |         adds %[lo], %[lo], %[d]
  161|       |         adc  %[hi], %[hi], xzr
  162|       |         )"
  163|       |          : [lo] "=&r"(lo), [hi] "=&r"(hi)
  164|       |          : [a] "r"(a), [b] "r"(b), [c] "r"(c), [d] "r"(*d)
  165|       |          : "cc");
  166|       |
  167|       |      *d = hi;
  168|       |      return lo;
  169|       |   }
  170|       |#endif
  171|       |
  172|      0|   typedef typename WordInfo<W>::dword dword;
  173|      0|   const dword s = dword(a) * b + c + *d;
  174|      0|   *d = static_cast<W>(s >> WordInfo<W>::bits);
  175|      0|   return static_cast<W>(s);
  176|   161M|}
_ZN5Botan5word3ImE3mulEmm:
  460|   715M|      inline constexpr void mul(W x, W y) { m_w += static_cast<W3>(x) * y; }
_ZN5Botan5word3ImE7extractEv:
  466|   234M|      inline constexpr W extract() {
  467|   234M|         W r = static_cast<W>(m_w);
  468|   234M|         m_w >>= WordInfo<W>::bits;
  469|   234M|         return r;
  470|   234M|      }
_ZN5Botan5word3ImE3addEm:
  464|   140M|      inline constexpr void add(W x) { m_w += x; }
_ZN5Botan5word3ImE10monty_stepEmm:
  472|  70.4M|      inline constexpr W monty_step(W p0, W p_dash) {
  473|  70.4M|         const W w0 = static_cast<W>(m_w);
  474|  70.4M|         const W r = w0 * p_dash;
  475|  70.4M|         mul(r, p0);
  476|  70.4M|         m_w >>= WordInfo<W>::bits;
  477|  70.4M|         return r;
  478|  70.4M|      }
_ZN5Botan5word3ImEC2Ev:
  458|  29.2M|      constexpr word3() : m_w(0) {}
_ZN5Botan5word3ImE6mul_x2Emm:
  462|  47.6M|      inline constexpr void mul_x2(W x, W y) { m_w += static_cast<W3>(x) * y * 2; }

_ZN5Botan11bigint_add2ITkNS_8WordTypeEmEET_PS1_mPKS1_m:
   94|   143k|inline constexpr auto bigint_add2(W x[], size_t x_size, const W y[], size_t y_size) -> W {
   95|   143k|   W carry = 0;
   96|       |
   97|   143k|   BOTAN_ASSERT(x_size >= y_size, "Expected sizes");
  ------------------
  |  |   64|   143k|   do {                                                                                 \
  |  |   65|   143k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|   143k|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 143k]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|   143k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 143k]
  |  |  ------------------
  ------------------
   98|       |
   99|   143k|   const size_t blocks = y_size - (y_size % 8);
  100|       |
  101|   144k|   for(size_t i = 0; i != blocks; i += 8) {
  ------------------
  |  Branch (101:22): [True: 477, False: 143k]
  ------------------
  102|    477|      carry = word8_add2(x + i, y + i, carry);
  103|    477|   }
  104|       |
  105|   431k|   for(size_t i = blocks; i != y_size; ++i) {
  ------------------
  |  Branch (105:27): [True: 287k, False: 143k]
  ------------------
  106|   287k|      x[i] = word_add(x[i], y[i], &carry);
  107|   287k|   }
  108|       |
  109|   442k|   for(size_t i = y_size; i != x_size; ++i) {
  ------------------
  |  Branch (109:27): [True: 298k, False: 143k]
  ------------------
  110|   298k|      x[i] = word_add(x[i], static_cast<W>(0), &carry);
  111|   298k|   }
  112|       |
  113|   143k|   return carry;
  114|   143k|}
_ZN5Botan10bigint_cmpITkNS_8WordTypeEmEEiPKT_mS3_m:
  439|  2.56M|inline constexpr int32_t bigint_cmp(const W x[], size_t x_size, const W y[], size_t y_size) {
  440|  2.56M|   static_assert(sizeof(W) >= sizeof(uint32_t), "Size assumption");
  441|       |
  442|  2.56M|   const W LT = static_cast<W>(-1);
  443|  2.56M|   const W EQ = 0;
  444|  2.56M|   const W GT = 1;
  445|       |
  446|  2.56M|   const size_t common_elems = std::min(x_size, y_size);
  447|       |
  448|  2.56M|   W result = EQ;  // until found otherwise
  449|       |
  450|  19.3M|   for(size_t i = 0; i != common_elems; i++) {
  ------------------
  |  Branch (450:22): [True: 16.7M, False: 2.56M]
  ------------------
  451|  16.7M|      const auto is_eq = CT::Mask<W>::is_equal(x[i], y[i]);
  452|  16.7M|      const auto is_lt = CT::Mask<W>::is_lt(x[i], y[i]);
  453|       |
  454|  16.7M|      result = is_eq.select(result, is_lt.select(LT, GT));
  455|  16.7M|   }
  456|       |
  457|  2.56M|   if(x_size < y_size) {
  ------------------
  |  Branch (457:7): [True: 4.68k, False: 2.55M]
  ------------------
  458|  4.68k|      W mask = 0;
  459|  17.4k|      for(size_t i = x_size; i != y_size; i++) {
  ------------------
  |  Branch (459:30): [True: 12.7k, False: 4.68k]
  ------------------
  460|  12.7k|         mask |= y[i];
  461|  12.7k|      }
  462|       |
  463|       |      // If any bits were set in high part of y, then x < y
  464|  4.68k|      result = CT::Mask<W>::is_zero(mask).select(result, LT);
  465|  2.55M|   } else if(y_size < x_size) {
  ------------------
  |  Branch (465:14): [True: 12.4k, False: 2.54M]
  ------------------
  466|  12.4k|      W mask = 0;
  467|  45.1k|      for(size_t i = y_size; i != x_size; i++) {
  ------------------
  |  Branch (467:30): [True: 32.7k, False: 12.4k]
  ------------------
  468|  32.7k|         mask |= x[i];
  469|  32.7k|      }
  470|       |
  471|       |      // If any bits were set in high part of x, then x > y
  472|  12.4k|      result = CT::Mask<W>::is_zero(mask).select(result, GT);
  473|  12.4k|   }
  474|       |
  475|  2.56M|   CT::unpoison(result);
  476|  2.56M|   BOTAN_DEBUG_ASSERT(result == LT || result == GT || result == EQ);
  ------------------
  |  |  130|  2.56M|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  2.56M|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 2.56M]
  |  |  ------------------
  ------------------
  477|  2.56M|   return static_cast<int32_t>(result);
  478|  2.56M|}
_ZN5Botan11bigint_sub2ITkNS_8WordTypeEmEET_PS1_mPKS1_m:
  148|  2.50M|inline constexpr auto bigint_sub2(W x[], size_t x_size, const W y[], size_t y_size) -> W {
  149|  2.50M|   W borrow = 0;
  150|       |
  151|  2.50M|   BOTAN_ASSERT(x_size >= y_size, "Expected sizes");
  ------------------
  |  |   64|  2.50M|   do {                                                                                 \
  |  |   65|  2.50M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|  2.50M|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 2.50M]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|  2.50M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 2.50M]
  |  |  ------------------
  ------------------
  152|       |
  153|  2.50M|   const size_t blocks = y_size - (y_size % 8);
  154|       |
  155|  3.20M|   for(size_t i = 0; i != blocks; i += 8) {
  ------------------
  |  Branch (155:22): [True: 698k, False: 2.50M]
  ------------------
  156|   698k|      borrow = word8_sub2(x + i, y + i, borrow);
  157|   698k|   }
  158|       |
  159|  15.9M|   for(size_t i = blocks; i != y_size; ++i) {
  ------------------
  |  Branch (159:27): [True: 13.4M, False: 2.50M]
  ------------------
  160|  13.4M|      x[i] = word_sub(x[i], y[i], &borrow);
  161|  13.4M|   }
  162|       |
  163|  2.50M|   for(size_t i = y_size; i != x_size; ++i) {
  ------------------
  |  Branch (163:27): [True: 5.81k, False: 2.50M]
  ------------------
  164|  5.81k|      x[i] = word_sub(x[i], static_cast<W>(0), &borrow);
  165|  5.81k|   }
  166|       |
  167|  2.50M|   return borrow;
  168|  2.50M|}
_ZN5Botan15bigint_sub2_revITkNS_8WordTypeEmEEvPT_PKS1_m:
  174|  2.75k|inline constexpr void bigint_sub2_rev(W x[], const W y[], size_t y_size) {
  175|  2.75k|   W borrow = 0;
  176|       |
  177|  10.4k|   for(size_t i = 0; i != y_size; ++i) {
  ------------------
  |  Branch (177:22): [True: 7.66k, False: 2.75k]
  ------------------
  178|  7.66k|      x[i] = word_sub(y[i], x[i], &borrow);
  179|  7.66k|   }
  180|       |
  181|  2.75k|   BOTAN_ASSERT(borrow == 0, "y must be greater than x");
  ------------------
  |  |   64|  2.75k|   do {                                                                                 \
  |  |   65|  2.75k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|  2.75k|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 2.75k]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|  2.75k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 2.75k]
  |  |  ------------------
  ------------------
  182|  2.75k|}
_ZN5Botan11bigint_sub3ITkNS_8WordTypeEmEET_PS1_PKS1_mS4_m:
  192|  9.63M|inline constexpr auto bigint_sub3(W z[], const W x[], size_t x_size, const W y[], size_t y_size) -> W {
  193|  9.63M|   W borrow = 0;
  194|       |
  195|  9.63M|   BOTAN_ASSERT(x_size >= y_size, "Expected sizes");
  ------------------
  |  |   64|  9.63M|   do {                                                                                 \
  |  |   65|  9.63M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|  9.63M|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 9.63M]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|  9.63M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 9.63M]
  |  |  ------------------
  ------------------
  196|       |
  197|  9.63M|   const size_t blocks = y_size - (y_size % 8);
  198|       |
  199|  13.5M|   for(size_t i = 0; i != blocks; i += 8) {
  ------------------
  |  Branch (199:22): [True: 3.88M, False: 9.63M]
  ------------------
  200|  3.88M|      borrow = word8_sub3(z + i, x + i, y + i, borrow);
  201|  3.88M|   }
  202|       |
  203|  37.2M|   for(size_t i = blocks; i != y_size; ++i) {
  ------------------
  |  Branch (203:27): [True: 27.6M, False: 9.63M]
  ------------------
  204|  27.6M|      z[i] = word_sub(x[i], y[i], &borrow);
  205|  27.6M|   }
  206|       |
  207|  16.2M|   for(size_t i = y_size; i != x_size; ++i) {
  ------------------
  |  Branch (207:27): [True: 6.64M, False: 9.63M]
  ------------------
  208|  6.64M|      z[i] = word_sub(x[i], static_cast<W>(0), &borrow);
  209|  6.64M|   }
  210|       |
  211|  9.63M|   return borrow;
  212|  9.63M|}
_ZN5Botan11bigint_add3ITkNS_8WordTypeEmEET_PS1_PKS1_mS4_m:
  120|  3.99M|inline constexpr auto bigint_add3(W z[], const W x[], size_t x_size, const W y[], size_t y_size) -> W {
  121|  3.99M|   if(x_size < y_size) {
  ------------------
  |  Branch (121:7): [True: 19.1k, False: 3.97M]
  ------------------
  122|  19.1k|      return bigint_add3(z, y, y_size, x, x_size);
  123|  19.1k|   }
  124|       |
  125|  3.97M|   W carry = 0;
  126|       |
  127|  3.97M|   const size_t blocks = y_size - (y_size % 8);
  128|       |
  129|  4.51M|   for(size_t i = 0; i != blocks; i += 8) {
  ------------------
  |  Branch (129:22): [True: 540k, False: 3.97M]
  ------------------
  130|   540k|      carry = word8_add3(z + i, x + i, y + i, carry);
  131|   540k|   }
  132|       |
  133|  18.5M|   for(size_t i = blocks; i != y_size; ++i) {
  ------------------
  |  Branch (133:27): [True: 14.5M, False: 3.97M]
  ------------------
  134|  14.5M|      z[i] = word_add(x[i], y[i], &carry);
  135|  14.5M|   }
  136|       |
  137|  4.06M|   for(size_t i = y_size; i != x_size; ++i) {
  ------------------
  |  Branch (137:27): [True: 84.7k, False: 3.97M]
  ------------------
  138|  84.7k|      z[i] = word_add(x[i], static_cast<W>(0), &carry);
  139|  84.7k|   }
  140|       |
  141|  3.97M|   return carry;
  142|  3.99M|}
_ZN5Botan14bigint_cnd_addITkNS_8WordTypeEmEET_S1_PS1_PKS1_m:
   45|  1.64M|inline constexpr W bigint_cnd_add(W cnd, W x[], const W y[], size_t size) {
   46|  1.64M|   const auto mask = CT::Mask<W>::expand(cnd).value();
   47|       |
   48|  1.64M|   W carry = 0;
   49|       |
   50|  8.54M|   for(size_t i = 0; i != size; ++i) {
  ------------------
  |  Branch (50:22): [True: 6.89M, False: 1.64M]
  ------------------
   51|  6.89M|      x[i] = word_add(x[i], y[i] & mask, &carry);
   52|  6.89M|   }
   53|       |
   54|  1.64M|   return (mask & carry);
   55|  1.64M|}
_ZN5Botan14bigint_linmul3ITkNS_8WordTypeEmEEvPT_PKS1_mS1_:
  416|  50.2k|inline constexpr void bigint_linmul3(W z[], const W x[], size_t x_size, W y) {
  417|  50.2k|   const size_t blocks = x_size - (x_size % 8);
  418|       |
  419|  50.2k|   W carry = 0;
  420|       |
  421|  79.1k|   for(size_t i = 0; i != blocks; i += 8) {
  ------------------
  |  Branch (421:22): [True: 28.9k, False: 50.2k]
  ------------------
  422|  28.9k|      carry = word8_linmul3(z + i, x + i, y, carry);
  423|  28.9k|   }
  424|       |
  425|   247k|   for(size_t i = blocks; i != x_size; ++i) {
  ------------------
  |  Branch (425:27): [True: 197k, False: 50.2k]
  ------------------
  426|   197k|      z[i] = word_madd2(x[i], y, &carry);
  427|   197k|   }
  428|       |
  429|  50.2k|   z[x_size] = carry;
  430|  50.2k|}
_ZN5Botan14bigint_linmul2ITkNS_8WordTypeEmEET_PS1_mS1_:
  405|   337k|[[nodiscard]] inline constexpr auto bigint_linmul2(W x[], size_t x_size, W y) -> W {
  406|   337k|   W carry = 0;
  407|       |
  408|  3.53M|   for(size_t i = 0; i != x_size; ++i) {
  ------------------
  |  Branch (408:22): [True: 3.19M, False: 337k]
  ------------------
  409|  3.19M|      x[i] = word_madd2(x[i], y, &carry);
  410|  3.19M|   }
  411|       |
  412|   337k|   return carry;
  413|   337k|}
_ZN5Botan14divide_precompImEC2Em:
  574|  20.4k|      explicit constexpr divide_precomp(W divisor) : m_divisor(divisor) {
  575|  20.4k|         BOTAN_ARG_CHECK(m_divisor != 0, "Division by zero");
  ------------------
  |  |   35|  20.4k|   do {                                                          \
  |  |   36|  20.4k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  20.4k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 20.4k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  20.4k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 20.4k]
  |  |  ------------------
  ------------------
  576|  20.4k|      }
_ZNK5Botan14divide_precompImE16vartime_mod_2to1Emm:
  644|  23.1k|      inline constexpr W vartime_mod_2to1(W n1, W n0) const {
  645|  23.1k|         BOTAN_ASSERT_NOMSG(n1 < m_divisor);
  ------------------
  |  |   77|  23.1k|   do {                                                                     \
  |  |   78|  23.1k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  23.1k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 23.1k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  23.1k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 23.1k]
  |  |  ------------------
  ------------------
  646|  23.1k|         W q = this->vartime_div_2to1(n1, n0);
  647|  23.1k|         W carry = 0;
  648|  23.1k|         q = word_madd2(q, m_divisor, &carry);
  649|  23.1k|         return (n0 - q);
  650|  23.1k|      }
_ZNK5Botan14divide_precompImE16vartime_div_2to1Emm:
  581|  88.9k|      inline constexpr W vartime_div_2to1(W n1, W n0) const {
  582|  88.9k|         BOTAN_ASSERT_NOMSG(n1 < m_divisor);
  ------------------
  |  |   77|  88.9k|   do {                                                                     \
  |  |   78|  88.9k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  88.9k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 88.9k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  88.9k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 88.9k]
  |  |  ------------------
  ------------------
  583|       |
  584|  88.9k|         if(m_divisor == WordInfo<W>::max) {
  ------------------
  |  Branch (584:13): [True: 28.3k, False: 60.5k]
  ------------------
  585|  28.3k|            return vartime_div_2to1_max_d(n1, n0);
  586|  28.3k|         }
  587|       |
  588|  60.5k|         if(m_divisor == WordInfo<W>::top_bit) {
  ------------------
  |  Branch (588:13): [True: 1.73k, False: 58.8k]
  ------------------
  589|       |            // Simply a shift by N-1 bits
  590|  1.73k|            return (n1 << 1) | (n0 >> (WordInfo<W>::bits - 1));
  591|  1.73k|         }
  592|       |
  593|  58.8k|         if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (593:13): [True: 58.8k, Folded]
  ------------------
  594|  58.8k|#if defined(BOTAN_MP_USE_X86_64_ASM)
  595|  58.8k|            if constexpr(std::same_as<W, uint64_t>) {
  596|  58.8k|               W quotient = 0;
  597|  58.8k|               W remainder = 0;
  598|       |               // NOLINTNEXTLINE(*-no-assembler)
  599|  58.8k|               asm("divq %[v]" : "=a"(quotient), "=d"(remainder) : [v] "r"(m_divisor), "a"(n0), "d"(n1) : "cc");
  600|  58.8k|               return quotient;
  601|  58.8k|            }
  602|      0|#endif
  603|       |
  604|      0|#if !defined(BOTAN_BUILD_COMPILER_IS_CLANGCL)
  605|       |
  606|       |            /* clang-cl has a bug where on encountering a 128/64 division it emits
  607|       |            * a call to __udivti3() but then fails to link the relevant builtin into
  608|       |            * the binary, causing a link failure. Work around this by simply omitting
  609|       |            * such code for clang-cl
  610|       |            *
  611|       |            * See https://github.com/llvm/llvm-project/issues/25679
  612|       |            */
  613|  58.8k|            if constexpr(WordInfo<W>::dword_is_native) {
  614|  58.8k|               typename WordInfo<W>::dword n = n1;
  615|  58.8k|               n <<= WordInfo<W>::bits;
  616|  58.8k|               n |= n0;
  617|  58.8k|               return static_cast<W>(n / m_divisor);
  618|  58.8k|            }
  619|  58.8k|#endif
  620|  58.8k|         }
  621|       |
  622|      0|         W high = n1;
  623|  58.8k|         W quotient = 0;
  624|       |
  625|  58.8k|         for(size_t i = 0; i != WordInfo<W>::bits; ++i) {
  ------------------
  |  Branch (625:28): [True: 0, False: 58.8k]
  ------------------
  626|      0|            const W high_top_bit = high >> (WordInfo<W>::bits - 1);
  627|       |
  628|      0|            high <<= 1;
  629|      0|            high |= (n0 >> (WordInfo<W>::bits - 1 - i)) & 1;
  630|      0|            quotient <<= 1;
  631|       |
  632|      0|            if(high_top_bit || high >= m_divisor) {
  ------------------
  |  Branch (632:16): [True: 0, False: 0]
  |  Branch (632:32): [True: 0, False: 0]
  ------------------
  633|      0|               high -= m_divisor;
  634|      0|               quotient |= 1;
  635|      0|            }
  636|      0|         }
  637|       |
  638|  58.8k|         return quotient;
  639|  60.5k|      }
_ZN5Botan14divide_precompImE22vartime_div_2to1_max_dEmm:
  657|  28.3k|      static inline constexpr W vartime_div_2to1_max_d(W n1, W n0) {
  658|       |         /*
  659|       |         Use k to refer to WordInfo<W>::bits
  660|       |
  661|       |         We are dividing n = (n1 * 2^k) + n0 by 2^k - 1
  662|       |
  663|       |         Recall that 2^k = 1 (mod 2^k - 1)
  664|       |
  665|       |         Rewrite n = n1*2^k + n0 as n1*(2^k - 1) + n1 + n0
  666|       |
  667|       |         The result of dividing n by (2^k - 1) will be equal to
  668|       |         (n1*(2^k-1) + n1 + n0) / (2^k-1) =
  669|       |         n1 + ((n1 + n0) / (2^k-1)
  670|       |
  671|       |         Use c to refer to ((n1 + n0) / (2^k-1))
  672|       |
  673|       |         If (n1 + n0) < (2^k - 1) then c is 0
  674|       |         If (n1 + n0) >= (2^k - 1) then c is 1
  675|       |
  676|       |         Since n1 < 2^k - 1 [*] and n0 <= 2^k - 1 it is impossible for (n1 + n0) / (2^k -1)
  677|       |         to be greater than 1.
  678|       |
  679|       |         [*] We require n1 be strictly less than the divisor to ensure that the
  680|       |         output fits in a single word; this is checked at the start of vartime_div_2to1.
  681|       |         */
  682|       |
  683|  28.3k|         const W s = n0 + n1;
  684|       |         // did n0 + n1 overflow? or does (n0 + n1) == 2^k - 1? if either, c == 1
  685|  28.3k|         if(s < n0 || s == WordInfo<W>::max) {
  ------------------
  |  Branch (685:13): [True: 4.81k, False: 23.5k]
  |  Branch (685:23): [True: 58, False: 23.4k]
  ------------------
  686|  4.87k|            n1 += 1;
  687|  4.87k|         }
  688|       |
  689|  28.3k|         return n1;
  690|  28.3k|      }
_ZN5Botan11bigint_shl1ITkNS_8WordTypeEmEEvPT_mmm:
  309|   203k|inline constexpr void bigint_shl1(W x[], size_t x_size, size_t x_words, size_t shift) {
  310|   203k|   const size_t word_shift = shift / WordInfo<W>::bits;
  311|   203k|   const size_t bit_shift = shift % WordInfo<W>::bits;
  312|       |
  313|   203k|   BOTAN_ASSERT_NOMSG(word_shift <= x_size);
  ------------------
  |  |   77|   203k|   do {                                                                     \
  |  |   78|   203k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|   203k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 203k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|   203k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 203k]
  |  |  ------------------
  ------------------
  314|   203k|   BOTAN_ASSERT_NOMSG(x_words <= x_size - word_shift);
  ------------------
  |  |   77|   203k|   do {                                                                     \
  |  |   78|   203k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|   203k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 203k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|   203k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 203k]
  |  |  ------------------
  ------------------
  315|       |
  316|   203k|   unchecked_copy_memory(x + word_shift, x, x_words);
  317|   203k|   zeroize_buffer(x, word_shift);
  318|       |
  319|   203k|   const auto carry_mask = CT::Mask<W>::expand(bit_shift);
  320|   203k|   const W carry_shift = carry_mask.if_set_return(WordInfo<W>::bits - bit_shift);
  321|       |
  322|   203k|   W carry = 0;
  323|  1.97M|   for(size_t i = word_shift; i != x_size; ++i) {
  ------------------
  |  Branch (323:31): [True: 1.76M, False: 203k]
  ------------------
  324|  1.76M|      const W w = x[i];
  325|  1.76M|      x[i] = (w << bit_shift) | carry;
  326|  1.76M|      carry = carry_mask.if_set_return(w >> carry_shift);
  327|  1.76M|   }
  328|   203k|}
_ZN5Botan11bigint_shr1ITkNS_8WordTypeEmEEvPT_mm:
  331|  1.19M|inline constexpr void bigint_shr1(W x[], size_t x_size, size_t shift) {
  332|  1.19M|   const size_t word_shift = shift / WordInfo<W>::bits;
  333|  1.19M|   const size_t bit_shift = shift % WordInfo<W>::bits;
  334|       |
  335|  1.19M|   const size_t top = x_size >= word_shift ? (x_size - word_shift) : 0;
  ------------------
  |  Branch (335:23): [True: 1.19M, False: 0]
  ------------------
  336|       |
  337|  1.19M|   if(top > 0) {
  ------------------
  |  Branch (337:7): [True: 1.19M, False: 0]
  ------------------
  338|  1.19M|      unchecked_copy_memory(x, x + word_shift, top);
  339|  1.19M|   }
  340|  1.19M|   zeroize_buffer(x + top, std::min(word_shift, x_size));
  341|       |
  342|  1.19M|   const auto carry_mask = CT::Mask<W>::expand(bit_shift);
  343|  1.19M|   const W carry_shift = carry_mask.if_set_return(WordInfo<W>::bits - bit_shift);
  344|       |
  345|  1.19M|   W carry = 0;
  346|       |
  347|  18.3M|   for(size_t i = 0; i != top; ++i) {
  ------------------
  |  Branch (347:22): [True: 17.1M, False: 1.19M]
  ------------------
  348|  17.1M|      const W w = x[top - i - 1];
  349|  17.1M|      x[top - i - 1] = (w >> bit_shift) | carry;
  350|  17.1M|      carry = carry_mask.if_set_return(w << carry_shift);
  351|  17.1M|   }
  352|  1.19M|}
_ZN5Botan17bigint_monty_redcEPmPKmS2_mmS0_m:
  924|  14.7M|   word r[], const word z[], const word p[], size_t p_size, word p_dash, word ws[], size_t ws_size) {
  925|  14.7M|   const size_t z_size = 2 * p_size;
  926|       |
  927|  14.7M|   BOTAN_ARG_CHECK(ws_size >= p_size, "Montgomery reduction workspace too small");
  ------------------
  |  |   35|  14.7M|   do {                                                          \
  |  |   36|  14.7M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  14.7M|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 14.7M]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  14.7M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 14.7M]
  |  |  ------------------
  ------------------
  928|       |
  929|  14.7M|   if(p_size == 4) {
  ------------------
  |  Branch (929:7): [True: 5.85M, False: 8.84M]
  ------------------
  930|  5.85M|      bigint_monty_redc_4(r, z, p, p_dash, ws);
  931|  8.84M|   } else if(p_size == 6) {
  ------------------
  |  Branch (931:14): [True: 2.39k, False: 8.84M]
  ------------------
  932|  2.39k|      bigint_monty_redc_6(r, z, p, p_dash, ws);
  933|  8.84M|   } else if(p_size == 8) {
  ------------------
  |  Branch (933:14): [True: 1.45k, False: 8.84M]
  ------------------
  934|  1.45k|      bigint_monty_redc_8(r, z, p, p_dash, ws);
  935|  8.84M|   } else if(p_size == 12) {
  ------------------
  |  Branch (935:14): [True: 5.19k, False: 8.83M]
  ------------------
  936|  5.19k|      bigint_monty_redc_12(r, z, p, p_dash, ws);
  937|  8.83M|   } else if(p_size == 16) {
  ------------------
  |  Branch (937:14): [True: 1.66k, False: 8.83M]
  ------------------
  938|  1.66k|      bigint_monty_redc_16(r, z, p, p_dash, ws);
  939|  8.83M|   } else if(p_size == 24) {
  ------------------
  |  Branch (939:14): [True: 0, False: 8.83M]
  ------------------
  940|      0|      bigint_monty_redc_24(r, z, p, p_dash, ws);
  941|  8.83M|   } else if(p_size == 32) {
  ------------------
  |  Branch (941:14): [True: 0, False: 8.83M]
  ------------------
  942|      0|      bigint_monty_redc_32(r, z, p, p_dash, ws);
  943|  8.83M|   } else {
  944|  8.83M|      bigint_monty_redc_generic(r, z, z_size, p, p_size, p_dash, ws);
  945|  8.83M|   }
  946|  14.7M|}
_ZN5Botan25bigint_monty_redc_inplaceEPmPKmmmS0_m:
  948|  4.36M|inline void bigint_monty_redc_inplace(word z[], const word p[], size_t p_size, word p_dash, word ws[], size_t ws_size) {
  949|  4.36M|   bigint_monty_redc(z, z, p, p_size, p_dash, ws, ws_size);
  950|  4.36M|   zeroize_buffer(z + p_size, p_size);
  951|  4.36M|}
_ZN5Botan11bigint_shl2ITkNS_8WordTypeEmEEvPT_mPKS1_mm:
  355|  14.4k|inline constexpr void bigint_shl2(W y[], size_t y_size, const W x[], size_t x_size, size_t shift) {
  356|  14.4k|   const size_t word_shift = shift / WordInfo<W>::bits;
  357|  14.4k|   const size_t bit_shift = shift % WordInfo<W>::bits;
  358|       |
  359|  14.4k|   BOTAN_ASSERT_NOMSG(word_shift <= y_size);
  ------------------
  |  |   77|  14.4k|   do {                                                                     \
  |  |   78|  14.4k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  14.4k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 14.4k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  14.4k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 14.4k]
  |  |  ------------------
  ------------------
  360|  14.4k|   BOTAN_ASSERT_NOMSG(x_size < y_size - word_shift);
  ------------------
  |  |   77|  14.4k|   do {                                                                     \
  |  |   78|  14.4k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  14.4k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 14.4k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  14.4k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 14.4k]
  |  |  ------------------
  ------------------
  361|       |
  362|  14.4k|   unchecked_copy_memory(y + word_shift, x, x_size);
  363|  14.4k|   zeroize_buffer(y, word_shift);
  364|  14.4k|   zeroize_buffer(y + word_shift + x_size, y_size - word_shift - x_size);
  365|       |
  366|  14.4k|   const auto carry_mask = CT::Mask<W>::expand(bit_shift);
  367|  14.4k|   const W carry_shift = carry_mask.if_set_return(WordInfo<W>::bits - bit_shift);
  368|       |
  369|  14.4k|   W carry = 0;
  370|   104k|   for(size_t i = word_shift; i != x_size + word_shift + 1; ++i) {
  ------------------
  |  Branch (370:31): [True: 90.0k, False: 14.4k]
  ------------------
  371|  90.0k|      const W w = y[i];
  372|  90.0k|      y[i] = (w << bit_shift) | carry;
  373|  90.0k|      carry = carry_mask.if_set_return(w >> carry_shift);
  374|  90.0k|   }
  375|  14.4k|}
_ZN5Botan11bigint_shr2ITkNS_8WordTypeEmEEvPT_mPKS1_mm:
  378|  1.34k|inline constexpr void bigint_shr2(W y[], size_t y_size, const W x[], size_t x_size, size_t shift) {
  379|  1.34k|   const size_t word_shift = shift / WordInfo<W>::bits;
  380|  1.34k|   const size_t bit_shift = shift % WordInfo<W>::bits;
  381|  1.34k|   const size_t new_size = x_size < word_shift ? 0 : (x_size - word_shift);
  ------------------
  |  Branch (381:28): [True: 0, False: 1.34k]
  ------------------
  382|       |
  383|  1.34k|   BOTAN_ASSERT_NOMSG(new_size <= y_size);
  ------------------
  |  |   77|  1.34k|   do {                                                                     \
  |  |   78|  1.34k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  1.34k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 1.34k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  1.34k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 1.34k]
  |  |  ------------------
  ------------------
  384|       |
  385|  1.34k|   if(new_size > 0) {
  ------------------
  |  Branch (385:7): [True: 1.34k, False: 0]
  ------------------
  386|  1.34k|      unchecked_copy_memory(y, x + word_shift, new_size);
  387|  1.34k|   }
  388|  1.34k|   zeroize_buffer(y + new_size, y_size - new_size);
  389|       |
  390|  1.34k|   const auto carry_mask = CT::Mask<W>::expand(bit_shift);
  391|  1.34k|   const W carry_shift = carry_mask.if_set_return(WordInfo<W>::bits - bit_shift);
  392|       |
  393|  1.34k|   W carry = 0;
  394|  7.81k|   for(size_t i = new_size; i > 0; --i) {
  ------------------
  |  Branch (394:29): [True: 6.46k, False: 1.34k]
  ------------------
  395|  6.46k|      W w = y[i - 1];
  396|  6.46k|      y[i - 1] = (w >> bit_shift) | carry;
  397|  6.46k|      carry = carry_mask.if_set_return(w << carry_shift);
  398|  6.46k|   }
  399|  1.34k|}
_ZN5Botan15bigint_ct_is_eqITkNS_8WordTypeEmEENS_2CT4MaskIT_EEPKS3_mS6_m:
  519|  25.1k|inline constexpr auto bigint_ct_is_eq(const W x[], size_t x_size, const W y[], size_t y_size) -> CT::Mask<W> {
  520|  25.1k|   const size_t common_elems = std::min(x_size, y_size);
  521|       |
  522|  25.1k|   W diff = 0;
  523|       |
  524|   274k|   for(size_t i = 0; i != common_elems; i++) {
  ------------------
  |  Branch (524:22): [True: 249k, False: 25.1k]
  ------------------
  525|   249k|      diff |= (x[i] ^ y[i]);
  526|   249k|   }
  527|       |
  528|       |   // If any bits were set in high part of x/y, then they are not equal
  529|  25.1k|   if(x_size < y_size) {
  ------------------
  |  Branch (529:7): [True: 327, False: 24.7k]
  ------------------
  530|  2.41k|      for(size_t i = x_size; i != y_size; i++) {
  ------------------
  |  Branch (530:30): [True: 2.09k, False: 327]
  ------------------
  531|  2.09k|         diff |= y[i];
  532|  2.09k|      }
  533|  24.7k|   } else if(y_size < x_size) {
  ------------------
  |  Branch (533:14): [True: 17.1k, False: 7.61k]
  ------------------
  534|   112k|      for(size_t i = y_size; i != x_size; i++) {
  ------------------
  |  Branch (534:30): [True: 95.5k, False: 17.1k]
  ------------------
  535|  95.5k|         diff |= x[i];
  536|  95.5k|      }
  537|  17.1k|   }
  538|       |
  539|  25.1k|   return CT::Mask<W>::is_zero(diff);
  540|  25.1k|}
_ZN5Botan15bigint_ct_is_ltITkNS_8WordTypeEmEENS_2CT4MaskIT_EEPKS3_mS6_mb:
  487|  2.20M|   -> CT::Mask<W> {
  488|  2.20M|   const size_t common_elems = std::min(x_size, y_size);
  489|       |
  490|  2.20M|   auto is_lt = CT::Mask<W>::expand(lt_or_equal);
  491|       |
  492|  14.5M|   for(size_t i = 0; i != common_elems; i++) {
  ------------------
  |  Branch (492:22): [True: 12.3M, False: 2.20M]
  ------------------
  493|  12.3M|      const auto eq = CT::Mask<W>::is_equal(x[i], y[i]);
  494|  12.3M|      const auto lt = CT::Mask<W>::is_lt(x[i], y[i]);
  495|  12.3M|      is_lt = eq.select_mask(is_lt, lt);
  496|  12.3M|   }
  497|       |
  498|  2.20M|   if(x_size < y_size) {
  ------------------
  |  Branch (498:7): [True: 40.9k, False: 2.16M]
  ------------------
  499|  40.9k|      W mask = 0;
  500|  87.6k|      for(size_t i = x_size; i != y_size; i++) {
  ------------------
  |  Branch (500:30): [True: 46.7k, False: 40.9k]
  ------------------
  501|  46.7k|         mask |= y[i];
  502|  46.7k|      }
  503|       |      // If any bits were set in high part of y, then is_lt should be forced true
  504|  40.9k|      is_lt |= CT::Mask<W>::expand(mask);
  505|  2.16M|   } else if(y_size < x_size) {
  ------------------
  |  Branch (505:14): [True: 2.14M, False: 18.7k]
  ------------------
  506|  2.14M|      W mask = 0;
  507|  23.2M|      for(size_t i = y_size; i != x_size; i++) {
  ------------------
  |  Branch (507:30): [True: 21.1M, False: 2.14M]
  ------------------
  508|  21.1M|         mask |= x[i];
  509|  21.1M|      }
  510|       |
  511|       |      // If any bits were set in high part of x, then is_lt should be false
  512|  2.14M|      is_lt &= CT::Mask<W>::is_zero(mask);
  513|  2.14M|   }
  514|       |
  515|  2.20M|   return is_lt;
  516|  2.20M|}
_ZN5Botan15bigint_cnd_swapITkNS_8WordTypeEmEEvT_PS1_S2_m:
   29|   346k|inline constexpr void bigint_cnd_swap(W cnd, W x[], W y[], size_t size) {
   30|   346k|   const auto mask = CT::Mask<W>::expand(cnd);
   31|       |
   32|  2.05M|   for(size_t i = 0; i != size; ++i) {
  ------------------
  |  Branch (32:22): [True: 1.70M, False: 346k]
  ------------------
   33|  1.70M|      const W a = x[i];
   34|  1.70M|      const W b = y[i];
   35|  1.70M|      x[i] = mask.select(b, a);
   36|  1.70M|      y[i] = mask.select(a, b);
   37|  1.70M|   }
   38|   346k|}
_ZN5Botan14bigint_sub_absITkNS_8WordTypeEmEENS_2CT4MaskIT_EEPS3_PKS3_S7_mS5_:
  279|  2.45M|inline constexpr auto bigint_sub_abs(W z[], const W x[], const W y[], size_t N, W ws[]) -> CT::Mask<W> {
  280|       |   // Subtract in both direction then conditional copy out the result
  281|       |
  282|  2.45M|   W* ws0 = ws;
  283|  2.45M|   W* ws1 = ws + N;
  284|       |
  285|  2.45M|   W borrow0 = 0;
  286|  2.45M|   W borrow1 = 0;
  287|       |
  288|  2.45M|   const size_t blocks = N - (N % 8);
  289|       |
  290|  3.10M|   for(size_t i = 0; i != blocks; i += 8) {
  ------------------
  |  Branch (290:22): [True: 654k, False: 2.45M]
  ------------------
  291|   654k|      borrow0 = word8_sub3(ws0 + i, x + i, y + i, borrow0);
  292|   654k|      borrow1 = word8_sub3(ws1 + i, y + i, x + i, borrow1);
  293|   654k|   }
  294|       |
  295|  13.2M|   for(size_t i = blocks; i != N; ++i) {
  ------------------
  |  Branch (295:27): [True: 10.8M, False: 2.45M]
  ------------------
  296|  10.8M|      ws0[i] = word_sub(x[i], y[i], &borrow0);
  297|  10.8M|      ws1[i] = word_sub(y[i], x[i], &borrow1);
  298|  10.8M|   }
  299|       |
  300|  2.45M|   return CT::conditional_copy_mem(borrow0, z, ws1, ws0, N);
  301|  2.45M|}
_ZN5Botan14bigint_cnd_subITkNS_8WordTypeEmEET_S1_PS1_PKS1_m:
   62|   309k|inline constexpr auto bigint_cnd_sub(W cnd, W x[], const W y[], size_t size) -> W {
   63|   309k|   const auto mask = CT::Mask<W>::expand(cnd).value();
   64|       |
   65|   309k|   W carry = 0;
   66|       |
   67|  1.60M|   for(size_t i = 0; i != size; ++i) {
  ------------------
  |  Branch (67:22): [True: 1.29M, False: 309k]
  ------------------
   68|  1.29M|      x[i] = word_sub(x[i], y[i] & mask, &carry);
   69|  1.29M|   }
   70|       |
   71|   309k|   return (mask & carry);
   72|   309k|}
_ZN5Botan14bigint_cnd_absITkNS_8WordTypeEmEEvT_PS1_m:
   80|   154k|inline constexpr void bigint_cnd_abs(W cnd, W x[], size_t size) {
   81|   154k|   const auto mask = CT::Mask<W>::expand(cnd);
   82|       |
   83|   154k|   W carry = mask.if_set_return(1);
   84|   800k|   for(size_t i = 0; i != size; ++i) {
  ------------------
  |  Branch (84:22): [True: 645k, False: 154k]
  ------------------
   85|   645k|      const W z = word_add(~x[i], static_cast<W>(0), &carry);
   86|   645k|      x[i] = mask.select(z, x[i]);
   87|   645k|   }
   88|   154k|}
_ZN5Botan13monty_inverseITkNS_8WordTypeEmEET_S1_:
  703|  4.59k|inline constexpr auto monty_inverse(W a) -> W {
  704|  4.59k|   BOTAN_ARG_CHECK(a % 2 == 1, "Cannot compute Montgomery inverse of an even integer");
  ------------------
  |  |   35|  4.59k|   do {                                                          \
  |  |   36|  4.59k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  4.59k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 4.59k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  4.59k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 4.59k]
  |  |  ------------------
  ------------------
  705|       |
  706|       |   // Newton's Method, following https://lemire.me/blog/2017/09/18/computing-the-inverse-of-odd-integers/
  707|       |
  708|  4.59k|   constexpr size_t iter = WordInfo<W>::bits == 64 ? 4 : 3;
  ------------------
  |  Branch (708:28): [True: 0, Folded]
  ------------------
  709|       |
  710|       |   // Initial guess provides 5 bits of accuracy
  711|  4.59k|   W r = (3 * a) ^ 2;
  712|       |
  713|       |   // Each iteration doubles the accuracy
  714|  22.9k|   for(size_t i = 0; i != iter; ++i) {
  ------------------
  |  Branch (714:22): [True: 18.3k, False: 4.59k]
  ------------------
  715|  18.3k|      r = r * (2 - r * a);
  716|  18.3k|   }
  717|       |
  718|       |   // Now invert in addition space
  719|  4.59k|   r = (WordInfo<W>::max - r) + 1;
  720|       |
  721|  4.59k|   return r;
  722|  4.59k|}
_ZN5Botan22bigint_monty_maybe_subITkNS_8WordTypeEmEEvmPT_S1_PKS1_S4_:
  225|  11.9M|inline constexpr void bigint_monty_maybe_sub(size_t N, W z[], W x0, const W x[], const W p[]) {
  226|  11.9M|   W borrow = 0;
  227|       |
  228|  11.9M|   const size_t blocks = N - (N % 8);
  229|       |
  230|  13.6M|   for(size_t i = 0; i != blocks; i += 8) {
  ------------------
  |  Branch (230:22): [True: 1.64M, False: 11.9M]
  ------------------
  231|  1.64M|      borrow = word8_sub3(z + i, x + i, p + i, borrow);
  232|  1.64M|   }
  233|       |
  234|  55.5M|   for(size_t i = blocks; i != N; ++i) {
  ------------------
  |  Branch (234:27): [True: 43.5M, False: 11.9M]
  ------------------
  235|  43.5M|      z[i] = word_sub(x[i], p[i], &borrow);
  236|  43.5M|   }
  237|       |
  238|  11.9M|   borrow = (x0 - borrow) > x0;
  239|       |
  240|  11.9M|   CT::conditional_assign_mem(borrow, z, x, N);
  241|  11.9M|}
_ZN5Botan9comba_sqrILm4ETkNS_8WordTypeEmEEvPT0_PKS1_:
  854|   252k|constexpr inline void comba_sqr(W z[2 * N], const W x[N]) {
  855|   252k|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (855:7): [True: 252k, Folded]
  ------------------
  856|   252k|      if constexpr(std::same_as<W, word> && N == 4) {
  857|   252k|         return bigint_comba_sqr4(z, x);
  858|   252k|      }
  859|       |      if constexpr(std::same_as<W, word> && N == 6) {
  860|       |         return bigint_comba_sqr6(z, x);
  861|       |      }
  862|       |      if constexpr(std::same_as<W, word> && N == 7) {
  863|       |         return bigint_comba_sqr7(z, x);
  864|       |      }
  865|       |      if constexpr(std::same_as<W, word> && N == 8) {
  866|       |         return bigint_comba_sqr8(z, x);
  867|       |      }
  868|       |      if constexpr(std::same_as<W, word> && N == 9) {
  869|       |         return bigint_comba_sqr9(z, x);
  870|       |      }
  871|       |      if constexpr(std::same_as<W, word> && N == 16) {
  872|       |         return bigint_comba_sqr16(z, x);
  873|       |      }
  874|   252k|   }
  875|       |
  876|      0|   word3<W> accum;
  877|       |
  878|   252k|   for(size_t i = 0; i != 2 * N; ++i) {
  ------------------
  |  Branch (878:22): [True: 0, False: 252k]
  ------------------
  879|      0|      const size_t start = i + 1 < N ? 0 : i + 1 - N;
  ------------------
  |  Branch (879:28): [True: 0, False: 0]
  ------------------
  880|      0|      const size_t end = std::min(N, i + 1);
  881|       |
  882|      0|      for(size_t j = start; j != end; ++j) {
  ------------------
  |  Branch (882:29): [True: 0, False: 0]
  ------------------
  883|      0|         accum.mul(x[j], x[i - j]);
  884|      0|      }
  885|      0|      z[i] = accum.extract();
  886|      0|   }
  887|   252k|}
_ZN5Botan22bigint_monty_maybe_subILm4ETkNS_8WordTypeEmEEvPT0_S1_PKS1_S4_:
  254|  6.08M|inline constexpr void bigint_monty_maybe_sub(W z[N], W x0, const W x[N], const W y[N]) {
  255|  6.08M|   W borrow = 0;
  256|       |
  257|  30.4M|   for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (257:22): [True: 24.3M, False: 6.08M]
  ------------------
  258|  24.3M|      z[i] = word_sub(x[i], y[i], &borrow);
  259|  24.3M|   }
  260|       |
  261|  6.08M|   borrow = (x0 - borrow) > x0;
  262|       |
  263|  6.08M|   CT::conditional_assign_mem(borrow, z, x, N);
  264|  6.08M|}
_ZN5Botan9comba_mulILm4ETkNS_8WordTypeEmEEvPT0_PKS1_S4_:
  818|   294k|constexpr inline void comba_mul(W z[2 * N], const W x[N], const W y[N]) {
  819|   294k|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (819:7): [True: 294k, Folded]
  ------------------
  820|   294k|      if constexpr(std::same_as<W, word> && N == 4) {
  821|   294k|         return bigint_comba_mul4(z, x, y);
  822|   294k|      }
  823|       |      if constexpr(std::same_as<W, word> && N == 6) {
  824|       |         return bigint_comba_mul6(z, x, y);
  825|       |      }
  826|       |      if constexpr(std::same_as<W, word> && N == 7) {
  827|       |         return bigint_comba_mul7(z, x, y);
  828|       |      }
  829|       |      if constexpr(std::same_as<W, word> && N == 8) {
  830|       |         return bigint_comba_mul8(z, x, y);
  831|       |      }
  832|       |      if constexpr(std::same_as<W, word> && N == 9) {
  833|       |         return bigint_comba_mul9(z, x, y);
  834|       |      }
  835|       |      if constexpr(std::same_as<W, word> && N == 16) {
  836|       |         return bigint_comba_mul16(z, x, y);
  837|       |      }
  838|   294k|   }
  839|       |
  840|      0|   word3<W> accum;
  841|       |
  842|   294k|   for(size_t i = 0; i != 2 * N; ++i) {
  ------------------
  |  Branch (842:22): [True: 0, False: 294k]
  ------------------
  843|      0|      const size_t start = i + 1 < N ? 0 : i + 1 - N;
  ------------------
  |  Branch (843:28): [True: 0, False: 0]
  ------------------
  844|      0|      const size_t end = std::min(N, i + 1);
  845|       |
  846|      0|      for(size_t j = start; j != end; ++j) {
  ------------------
  |  Branch (846:29): [True: 0, False: 0]
  ------------------
  847|      0|         accum.mul(x[j], y[i - j]);
  848|      0|      }
  849|      0|      z[i] = accum.extract();
  850|      0|   }
  851|   294k|}
_ZN5Botan10shift_leftILm1ETkNS_8WordTypeEmLm4EEET0_RNSt3__15arrayIS1_XT1_EEE:
  725|  25.8k|inline constexpr W shift_left(std::array<W, N>& x) {
  726|  25.8k|   static_assert(N >= 1, "Invalid input size");
  727|  25.8k|   static_assert(S > 0, "Zero shift not supported");
  728|  25.8k|   static_assert(S < WordInfo<W>::bits, "Shift too large");
  729|       |
  730|  25.8k|   const W carry = x[N - 1] >> (WordInfo<W>::bits - S);
  731|       |
  732|   103k|   for(size_t i = N - 1; i != 0; --i) {
  ------------------
  |  Branch (732:26): [True: 77.5k, False: 25.8k]
  ------------------
  733|  77.5k|      x[i] = (x[i] << S) | (x[i - 1] >> (WordInfo<W>::bits - S));
  734|  77.5k|   }
  735|  25.8k|   x[0] <<= S;
  736|       |
  737|  25.8k|   return carry;
  738|  25.8k|}
_ZN5Botan16read_window_bitsILm4EmLm4EEEmNSt3__14spanIKT0_XT1_EEEm:
 1071|  10.4k|constexpr size_t read_window_bits(std::span<const W, N> words, size_t offset) {
 1072|  10.4k|   static_assert(WindowBits >= 1 && WindowBits <= 7);
 1073|       |
 1074|  10.4k|   constexpr uint8_t WindowMask = static_cast<uint8_t>(1 << WindowBits) - 1;
 1075|       |
 1076|  10.4k|   constexpr size_t W_bits = sizeof(W) * 8;
 1077|  10.4k|   const auto bit_shift = offset % W_bits;
 1078|  10.4k|   const auto word_offset = words.size() - 1 - (offset / W_bits);
 1079|       |
 1080|  10.4k|   const bool single_byte_window = bit_shift <= (W_bits - WindowBits) || word_offset == 0;
  ------------------
  |  Branch (1080:36): [True: 10.4k, False: 0]
  |  Branch (1080:74): [True: 0, False: 0]
  ------------------
 1081|       |
 1082|  10.4k|   const auto w0 = words[word_offset];
 1083|       |
 1084|  10.4k|   if(single_byte_window) {
  ------------------
  |  Branch (1084:7): [True: 10.4k, False: 0]
  ------------------
 1085|  10.4k|      return (w0 >> bit_shift) & WindowMask;
 1086|  10.4k|   } else {
 1087|       |      // Otherwise we must join two words and extract the result
 1088|      0|      const auto w1 = words[word_offset - 1];
 1089|      0|      const auto combined = ((w0 >> bit_shift) | (w1 << (W_bits - bit_shift)));
 1090|      0|      return combined & WindowMask;
 1091|      0|   }
 1092|  10.4k|}
_ZN5Botan11shift_rightILm1ETkNS_8WordTypeEmLm4EEET0_RNSt3__15arrayIS1_XT1_EEE:
  741|  2.86k|inline constexpr W shift_right(std::array<W, N>& x) {
  742|  2.86k|   static_assert(N >= 1, "Invalid input size");
  743|  2.86k|   static_assert(S > 0, "Zero shift not supported");
  744|  2.86k|   static_assert(S < WordInfo<W>::bits, "Shift too large");
  745|       |
  746|  2.86k|   const W carry = x[0] << (WordInfo<W>::bits - S);
  747|       |
  748|  11.4k|   for(size_t i = 0; i != N - 1; ++i) {
  ------------------
  |  Branch (748:22): [True: 8.59k, False: 2.86k]
  ------------------
  749|  8.59k|      x[i] = (x[i] >> S) | (x[i + 1] << (WordInfo<W>::bits - S));
  750|  8.59k|   }
  751|  2.86k|   x[N - 1] >>= S;
  752|       |
  753|  2.86k|   return carry;
  754|  2.86k|}
_ZN5Botan16read_window_bitsILm7EhLm18446744073709551615EEEmNSt3__14spanIKT0_XT1_EEEm:
 1071|  84.1k|constexpr size_t read_window_bits(std::span<const W, N> words, size_t offset) {
 1072|  84.1k|   static_assert(WindowBits >= 1 && WindowBits <= 7);
 1073|       |
 1074|  84.1k|   constexpr uint8_t WindowMask = static_cast<uint8_t>(1 << WindowBits) - 1;
 1075|       |
 1076|  84.1k|   constexpr size_t W_bits = sizeof(W) * 8;
 1077|  84.1k|   const auto bit_shift = offset % W_bits;
 1078|  84.1k|   const auto word_offset = words.size() - 1 - (offset / W_bits);
 1079|       |
 1080|  84.1k|   const bool single_byte_window = bit_shift <= (W_bits - WindowBits) || word_offset == 0;
  ------------------
  |  Branch (1080:36): [True: 21.7k, False: 62.4k]
  |  Branch (1080:74): [True: 1.31k, False: 61.1k]
  ------------------
 1081|       |
 1082|  84.1k|   const auto w0 = words[word_offset];
 1083|       |
 1084|  84.1k|   if(single_byte_window) {
  ------------------
  |  Branch (1084:7): [True: 23.0k, False: 61.1k]
  ------------------
 1085|  23.0k|      return (w0 >> bit_shift) & WindowMask;
 1086|  61.1k|   } else {
 1087|       |      // Otherwise we must join two words and extract the result
 1088|  61.1k|      const auto w1 = words[word_offset - 1];
 1089|  61.1k|      const auto combined = ((w0 >> bit_shift) | (w1 << (W_bits - bit_shift)));
 1090|  61.1k|      return combined & WindowMask;
 1091|  61.1k|   }
 1092|  84.1k|}
_ZN5Botan9comba_sqrILm6ETkNS_8WordTypeEmEEvPT0_PKS1_:
  854|   200k|constexpr inline void comba_sqr(W z[2 * N], const W x[N]) {
  855|   200k|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (855:7): [True: 200k, Folded]
  ------------------
  856|       |      if constexpr(std::same_as<W, word> && N == 4) {
  857|       |         return bigint_comba_sqr4(z, x);
  858|       |      }
  859|   200k|      if constexpr(std::same_as<W, word> && N == 6) {
  860|   200k|         return bigint_comba_sqr6(z, x);
  861|   200k|      }
  862|       |      if constexpr(std::same_as<W, word> && N == 7) {
  863|       |         return bigint_comba_sqr7(z, x);
  864|       |      }
  865|       |      if constexpr(std::same_as<W, word> && N == 8) {
  866|       |         return bigint_comba_sqr8(z, x);
  867|       |      }
  868|       |      if constexpr(std::same_as<W, word> && N == 9) {
  869|       |         return bigint_comba_sqr9(z, x);
  870|       |      }
  871|       |      if constexpr(std::same_as<W, word> && N == 16) {
  872|       |         return bigint_comba_sqr16(z, x);
  873|       |      }
  874|   200k|   }
  875|       |
  876|      0|   word3<W> accum;
  877|       |
  878|   200k|   for(size_t i = 0; i != 2 * N; ++i) {
  ------------------
  |  Branch (878:22): [True: 0, False: 200k]
  ------------------
  879|      0|      const size_t start = i + 1 < N ? 0 : i + 1 - N;
  ------------------
  |  Branch (879:28): [True: 0, False: 0]
  ------------------
  880|      0|      const size_t end = std::min(N, i + 1);
  881|       |
  882|      0|      for(size_t j = start; j != end; ++j) {
  ------------------
  |  Branch (882:29): [True: 0, False: 0]
  ------------------
  883|      0|         accum.mul(x[j], x[i - j]);
  884|      0|      }
  885|      0|      z[i] = accum.extract();
  886|      0|   }
  887|   200k|}
_ZN5Botan22bigint_monty_maybe_subILm6ETkNS_8WordTypeEmEEvPT0_S1_PKS1_S4_:
  254|   271k|inline constexpr void bigint_monty_maybe_sub(W z[N], W x0, const W x[N], const W y[N]) {
  255|   271k|   W borrow = 0;
  256|       |
  257|  1.90M|   for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (257:22): [True: 1.63M, False: 271k]
  ------------------
  258|  1.63M|      z[i] = word_sub(x[i], y[i], &borrow);
  259|  1.63M|   }
  260|       |
  261|   271k|   borrow = (x0 - borrow) > x0;
  262|       |
  263|   271k|   CT::conditional_assign_mem(borrow, z, x, N);
  264|   271k|}
_ZN5Botan9comba_mulILm6ETkNS_8WordTypeEmEEvPT0_PKS1_S4_:
  818|   234k|constexpr inline void comba_mul(W z[2 * N], const W x[N], const W y[N]) {
  819|   234k|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (819:7): [True: 234k, Folded]
  ------------------
  820|       |      if constexpr(std::same_as<W, word> && N == 4) {
  821|       |         return bigint_comba_mul4(z, x, y);
  822|       |      }
  823|   234k|      if constexpr(std::same_as<W, word> && N == 6) {
  824|   234k|         return bigint_comba_mul6(z, x, y);
  825|   234k|      }
  826|       |      if constexpr(std::same_as<W, word> && N == 7) {
  827|       |         return bigint_comba_mul7(z, x, y);
  828|       |      }
  829|       |      if constexpr(std::same_as<W, word> && N == 8) {
  830|       |         return bigint_comba_mul8(z, x, y);
  831|       |      }
  832|       |      if constexpr(std::same_as<W, word> && N == 9) {
  833|       |         return bigint_comba_mul9(z, x, y);
  834|       |      }
  835|       |      if constexpr(std::same_as<W, word> && N == 16) {
  836|       |         return bigint_comba_mul16(z, x, y);
  837|       |      }
  838|   234k|   }
  839|       |
  840|      0|   word3<W> accum;
  841|       |
  842|   234k|   for(size_t i = 0; i != 2 * N; ++i) {
  ------------------
  |  Branch (842:22): [True: 0, False: 234k]
  ------------------
  843|      0|      const size_t start = i + 1 < N ? 0 : i + 1 - N;
  ------------------
  |  Branch (843:28): [True: 0, False: 0]
  ------------------
  844|      0|      const size_t end = std::min(N, i + 1);
  845|       |
  846|      0|      for(size_t j = start; j != end; ++j) {
  ------------------
  |  Branch (846:29): [True: 0, False: 0]
  ------------------
  847|      0|         accum.mul(x[j], y[i - j]);
  848|      0|      }
  849|      0|      z[i] = accum.extract();
  850|      0|   }
  851|   234k|}
_ZN5Botan10shift_leftILm1ETkNS_8WordTypeEmLm6EEET0_RNSt3__15arrayIS1_XT1_EEE:
  725|  19.8k|inline constexpr W shift_left(std::array<W, N>& x) {
  726|  19.8k|   static_assert(N >= 1, "Invalid input size");
  727|  19.8k|   static_assert(S > 0, "Zero shift not supported");
  728|  19.8k|   static_assert(S < WordInfo<W>::bits, "Shift too large");
  729|       |
  730|  19.8k|   const W carry = x[N - 1] >> (WordInfo<W>::bits - S);
  731|       |
  732|   119k|   for(size_t i = N - 1; i != 0; --i) {
  ------------------
  |  Branch (732:26): [True: 99.2k, False: 19.8k]
  ------------------
  733|  99.2k|      x[i] = (x[i] << S) | (x[i - 1] >> (WordInfo<W>::bits - S));
  734|  99.2k|   }
  735|  19.8k|   x[0] <<= S;
  736|       |
  737|  19.8k|   return carry;
  738|  19.8k|}
_ZN5Botan16read_window_bitsILm5EmLm6EEEmNSt3__14spanIKT0_XT1_EEEm:
 1071|  11.2k|constexpr size_t read_window_bits(std::span<const W, N> words, size_t offset) {
 1072|  11.2k|   static_assert(WindowBits >= 1 && WindowBits <= 7);
 1073|       |
 1074|  11.2k|   constexpr uint8_t WindowMask = static_cast<uint8_t>(1 << WindowBits) - 1;
 1075|       |
 1076|  11.2k|   constexpr size_t W_bits = sizeof(W) * 8;
 1077|  11.2k|   const auto bit_shift = offset % W_bits;
 1078|  11.2k|   const auto word_offset = words.size() - 1 - (offset / W_bits);
 1079|       |
 1080|  11.2k|   const bool single_byte_window = bit_shift <= (W_bits - WindowBits) || word_offset == 0;
  ------------------
  |  Branch (1080:36): [True: 10.5k, False: 730]
  |  Branch (1080:74): [True: 146, False: 584]
  ------------------
 1081|       |
 1082|  11.2k|   const auto w0 = words[word_offset];
 1083|       |
 1084|  11.2k|   if(single_byte_window) {
  ------------------
  |  Branch (1084:7): [True: 10.6k, False: 584]
  ------------------
 1085|  10.6k|      return (w0 >> bit_shift) & WindowMask;
 1086|  10.6k|   } else {
 1087|       |      // Otherwise we must join two words and extract the result
 1088|    584|      const auto w1 = words[word_offset - 1];
 1089|    584|      const auto combined = ((w0 >> bit_shift) | (w1 << (W_bits - bit_shift)));
 1090|    584|      return combined & WindowMask;
 1091|    584|   }
 1092|  11.2k|}
_ZN5Botan11shift_rightILm1ETkNS_8WordTypeEmLm6EEET0_RNSt3__15arrayIS1_XT1_EEE:
  741|  2.21k|inline constexpr W shift_right(std::array<W, N>& x) {
  742|  2.21k|   static_assert(N >= 1, "Invalid input size");
  743|  2.21k|   static_assert(S > 0, "Zero shift not supported");
  744|  2.21k|   static_assert(S < WordInfo<W>::bits, "Shift too large");
  745|       |
  746|  2.21k|   const W carry = x[0] << (WordInfo<W>::bits - S);
  747|       |
  748|  13.2k|   for(size_t i = 0; i != N - 1; ++i) {
  ------------------
  |  Branch (748:22): [True: 11.0k, False: 2.21k]
  ------------------
  749|  11.0k|      x[i] = (x[i] >> S) | (x[i + 1] << (WordInfo<W>::bits - S));
  750|  11.0k|   }
  751|  2.21k|   x[N - 1] >>= S;
  752|       |
  753|  2.21k|   return carry;
  754|  2.21k|}
_ZN5Botan9comba_sqrILm8ETkNS_8WordTypeEmEEvPT0_PKS1_:
  854|   152k|constexpr inline void comba_sqr(W z[2 * N], const W x[N]) {
  855|   152k|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (855:7): [True: 152k, Folded]
  ------------------
  856|       |      if constexpr(std::same_as<W, word> && N == 4) {
  857|       |         return bigint_comba_sqr4(z, x);
  858|       |      }
  859|       |      if constexpr(std::same_as<W, word> && N == 6) {
  860|       |         return bigint_comba_sqr6(z, x);
  861|       |      }
  862|       |      if constexpr(std::same_as<W, word> && N == 7) {
  863|       |         return bigint_comba_sqr7(z, x);
  864|       |      }
  865|   152k|      if constexpr(std::same_as<W, word> && N == 8) {
  866|   152k|         return bigint_comba_sqr8(z, x);
  867|   152k|      }
  868|       |      if constexpr(std::same_as<W, word> && N == 9) {
  869|       |         return bigint_comba_sqr9(z, x);
  870|       |      }
  871|       |      if constexpr(std::same_as<W, word> && N == 16) {
  872|       |         return bigint_comba_sqr16(z, x);
  873|       |      }
  874|   152k|   }
  875|       |
  876|      0|   word3<W> accum;
  877|       |
  878|   152k|   for(size_t i = 0; i != 2 * N; ++i) {
  ------------------
  |  Branch (878:22): [True: 0, False: 152k]
  ------------------
  879|      0|      const size_t start = i + 1 < N ? 0 : i + 1 - N;
  ------------------
  |  Branch (879:28): [True: 0, False: 0]
  ------------------
  880|      0|      const size_t end = std::min(N, i + 1);
  881|       |
  882|      0|      for(size_t j = start; j != end; ++j) {
  ------------------
  |  Branch (882:29): [True: 0, False: 0]
  ------------------
  883|      0|         accum.mul(x[j], x[i - j]);
  884|      0|      }
  885|      0|      z[i] = accum.extract();
  886|      0|   }
  887|   152k|}
_ZN5Botan22bigint_monty_maybe_subILm8ETkNS_8WordTypeEmEEvPT0_S1_PKS1_S4_:
  254|   367k|inline constexpr void bigint_monty_maybe_sub(W z[N], W x0, const W x[N], const W y[N]) {
  255|   367k|   W borrow = 0;
  256|       |
  257|  3.30M|   for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (257:22): [True: 2.94M, False: 367k]
  ------------------
  258|  2.94M|      z[i] = word_sub(x[i], y[i], &borrow);
  259|  2.94M|   }
  260|       |
  261|   367k|   borrow = (x0 - borrow) > x0;
  262|       |
  263|   367k|   CT::conditional_assign_mem(borrow, z, x, N);
  264|   367k|}
_ZN5Botan9comba_mulILm8ETkNS_8WordTypeEmEEvPT0_PKS1_S4_:
  818|   179k|constexpr inline void comba_mul(W z[2 * N], const W x[N], const W y[N]) {
  819|   179k|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (819:7): [True: 179k, Folded]
  ------------------
  820|       |      if constexpr(std::same_as<W, word> && N == 4) {
  821|       |         return bigint_comba_mul4(z, x, y);
  822|       |      }
  823|       |      if constexpr(std::same_as<W, word> && N == 6) {
  824|       |         return bigint_comba_mul6(z, x, y);
  825|       |      }
  826|       |      if constexpr(std::same_as<W, word> && N == 7) {
  827|       |         return bigint_comba_mul7(z, x, y);
  828|       |      }
  829|   179k|      if constexpr(std::same_as<W, word> && N == 8) {
  830|   179k|         return bigint_comba_mul8(z, x, y);
  831|   179k|      }
  832|       |      if constexpr(std::same_as<W, word> && N == 9) {
  833|       |         return bigint_comba_mul9(z, x, y);
  834|       |      }
  835|       |      if constexpr(std::same_as<W, word> && N == 16) {
  836|       |         return bigint_comba_mul16(z, x, y);
  837|       |      }
  838|   179k|   }
  839|       |
  840|      0|   word3<W> accum;
  841|       |
  842|   179k|   for(size_t i = 0; i != 2 * N; ++i) {
  ------------------
  |  Branch (842:22): [True: 0, False: 179k]
  ------------------
  843|      0|      const size_t start = i + 1 < N ? 0 : i + 1 - N;
  ------------------
  |  Branch (843:28): [True: 0, False: 0]
  ------------------
  844|      0|      const size_t end = std::min(N, i + 1);
  845|       |
  846|      0|      for(size_t j = start; j != end; ++j) {
  ------------------
  |  Branch (846:29): [True: 0, False: 0]
  ------------------
  847|      0|         accum.mul(x[j], y[i - j]);
  848|      0|      }
  849|      0|      z[i] = accum.extract();
  850|      0|   }
  851|   179k|}
_ZN5Botan10shift_leftILm1ETkNS_8WordTypeEmLm8EEET0_RNSt3__15arrayIS1_XT1_EEE:
  725|  13.1k|inline constexpr W shift_left(std::array<W, N>& x) {
  726|  13.1k|   static_assert(N >= 1, "Invalid input size");
  727|  13.1k|   static_assert(S > 0, "Zero shift not supported");
  728|  13.1k|   static_assert(S < WordInfo<W>::bits, "Shift too large");
  729|       |
  730|  13.1k|   const W carry = x[N - 1] >> (WordInfo<W>::bits - S);
  731|       |
  732|   105k|   for(size_t i = N - 1; i != 0; --i) {
  ------------------
  |  Branch (732:26): [True: 92.3k, False: 13.1k]
  ------------------
  733|  92.3k|      x[i] = (x[i] << S) | (x[i - 1] >> (WordInfo<W>::bits - S));
  734|  92.3k|   }
  735|  13.1k|   x[0] <<= S;
  736|       |
  737|  13.1k|   return carry;
  738|  13.1k|}
_ZN5Botan16read_window_bitsILm5EmLm8EEEmNSt3__14spanIKT0_XT1_EEEm:
 1071|  17.6k|constexpr size_t read_window_bits(std::span<const W, N> words, size_t offset) {
 1072|  17.6k|   static_assert(WindowBits >= 1 && WindowBits <= 7);
 1073|       |
 1074|  17.6k|   constexpr uint8_t WindowMask = static_cast<uint8_t>(1 << WindowBits) - 1;
 1075|       |
 1076|  17.6k|   constexpr size_t W_bits = sizeof(W) * 8;
 1077|  17.6k|   const auto bit_shift = offset % W_bits;
 1078|  17.6k|   const auto word_offset = words.size() - 1 - (offset / W_bits);
 1079|       |
 1080|  17.6k|   const bool single_byte_window = bit_shift <= (W_bits - WindowBits) || word_offset == 0;
  ------------------
  |  Branch (1080:36): [True: 16.4k, False: 1.19k]
  |  Branch (1080:74): [True: 171, False: 1.02k]
  ------------------
 1081|       |
 1082|  17.6k|   const auto w0 = words[word_offset];
 1083|       |
 1084|  17.6k|   if(single_byte_window) {
  ------------------
  |  Branch (1084:7): [True: 16.5k, False: 1.02k]
  ------------------
 1085|  16.5k|      return (w0 >> bit_shift) & WindowMask;
 1086|  16.5k|   } else {
 1087|       |      // Otherwise we must join two words and extract the result
 1088|  1.02k|      const auto w1 = words[word_offset - 1];
 1089|  1.02k|      const auto combined = ((w0 >> bit_shift) | (w1 << (W_bits - bit_shift)));
 1090|  1.02k|      return combined & WindowMask;
 1091|  1.02k|   }
 1092|  17.6k|}
_ZN5Botan11shift_rightILm1ETkNS_8WordTypeEmLm8EEET0_RNSt3__15arrayIS1_XT1_EEE:
  741|  1.42k|inline constexpr W shift_right(std::array<W, N>& x) {
  742|  1.42k|   static_assert(N >= 1, "Invalid input size");
  743|  1.42k|   static_assert(S > 0, "Zero shift not supported");
  744|  1.42k|   static_assert(S < WordInfo<W>::bits, "Shift too large");
  745|       |
  746|  1.42k|   const W carry = x[0] << (WordInfo<W>::bits - S);
  747|       |
  748|  11.4k|   for(size_t i = 0; i != N - 1; ++i) {
  ------------------
  |  Branch (748:22): [True: 9.98k, False: 1.42k]
  ------------------
  749|  9.98k|      x[i] = (x[i] >> S) | (x[i + 1] << (WordInfo<W>::bits - S));
  750|  9.98k|   }
  751|  1.42k|   x[N - 1] >>= S;
  752|       |
  753|  1.42k|   return carry;
  754|  1.42k|}
_ZN5Botan10shift_leftILm1ETkNS_8WordTypeEmLm9EEET0_RNSt3__15arrayIS1_XT1_EEE:
  725|  2.21M|inline constexpr W shift_left(std::array<W, N>& x) {
  726|  2.21M|   static_assert(N >= 1, "Invalid input size");
  727|  2.21M|   static_assert(S > 0, "Zero shift not supported");
  728|  2.21M|   static_assert(S < WordInfo<W>::bits, "Shift too large");
  729|       |
  730|  2.21M|   const W carry = x[N - 1] >> (WordInfo<W>::bits - S);
  731|       |
  732|  19.9M|   for(size_t i = N - 1; i != 0; --i) {
  ------------------
  |  Branch (732:26): [True: 17.7M, False: 2.21M]
  ------------------
  733|  17.7M|      x[i] = (x[i] << S) | (x[i - 1] >> (WordInfo<W>::bits - S));
  734|  17.7M|   }
  735|  2.21M|   x[0] <<= S;
  736|       |
  737|  2.21M|   return carry;
  738|  2.21M|}
_ZN5Botan22bigint_monty_maybe_subILm9ETkNS_8WordTypeEmEEvPT0_S1_PKS1_S4_:
  254|  2.23M|inline constexpr void bigint_monty_maybe_sub(W z[N], W x0, const W x[N], const W y[N]) {
  255|  2.23M|   W borrow = 0;
  256|       |
  257|  22.3M|   for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (257:22): [True: 20.1M, False: 2.23M]
  ------------------
  258|  20.1M|      z[i] = word_sub(x[i], y[i], &borrow);
  259|  20.1M|   }
  260|       |
  261|  2.23M|   borrow = (x0 - borrow) > x0;
  262|       |
  263|  2.23M|   CT::conditional_assign_mem(borrow, z, x, N);
  264|  2.23M|}
_ZN5Botan16read_window_bitsILm4EmLm18446744073709551615EEEmNSt3__14spanIKT0_XT1_EEEm:
 1071|  35.9k|constexpr size_t read_window_bits(std::span<const W, N> words, size_t offset) {
 1072|  35.9k|   static_assert(WindowBits >= 1 && WindowBits <= 7);
 1073|       |
 1074|  35.9k|   constexpr uint8_t WindowMask = static_cast<uint8_t>(1 << WindowBits) - 1;
 1075|       |
 1076|  35.9k|   constexpr size_t W_bits = sizeof(W) * 8;
 1077|  35.9k|   const auto bit_shift = offset % W_bits;
 1078|  35.9k|   const auto word_offset = words.size() - 1 - (offset / W_bits);
 1079|       |
 1080|  35.9k|   const bool single_byte_window = bit_shift <= (W_bits - WindowBits) || word_offset == 0;
  ------------------
  |  Branch (1080:36): [True: 35.9k, False: 0]
  |  Branch (1080:74): [True: 0, False: 0]
  ------------------
 1081|       |
 1082|  35.9k|   const auto w0 = words[word_offset];
 1083|       |
 1084|  35.9k|   if(single_byte_window) {
  ------------------
  |  Branch (1084:7): [True: 35.9k, False: 0]
  ------------------
 1085|  35.9k|      return (w0 >> bit_shift) & WindowMask;
 1086|  35.9k|   } else {
 1087|       |      // Otherwise we must join two words and extract the result
 1088|      0|      const auto w1 = words[word_offset - 1];
 1089|      0|      const auto combined = ((w0 >> bit_shift) | (w1 << (W_bits - bit_shift)));
 1090|      0|      return combined & WindowMask;
 1091|      0|   }
 1092|  35.9k|}
_ZN5Botan11shift_rightILm1ETkNS_8WordTypeEmLm9EEET0_RNSt3__15arrayIS1_XT1_EEE:
  741|  1.48k|inline constexpr W shift_right(std::array<W, N>& x) {
  742|  1.48k|   static_assert(N >= 1, "Invalid input size");
  743|  1.48k|   static_assert(S > 0, "Zero shift not supported");
  744|  1.48k|   static_assert(S < WordInfo<W>::bits, "Shift too large");
  745|       |
  746|  1.48k|   const W carry = x[0] << (WordInfo<W>::bits - S);
  747|       |
  748|  13.3k|   for(size_t i = 0; i != N - 1; ++i) {
  ------------------
  |  Branch (748:22): [True: 11.8k, False: 1.48k]
  ------------------
  749|  11.8k|      x[i] = (x[i] >> S) | (x[i + 1] << (WordInfo<W>::bits - S));
  750|  11.8k|   }
  751|  1.48k|   x[N - 1] >>= S;
  752|       |
  753|  1.48k|   return carry;
  754|  1.48k|}
_ZN5Botan10shift_leftILm32ETkNS_8WordTypeEmLm4EEET0_RNSt3__15arrayIS1_XT1_EEE:
  725|    449|inline constexpr W shift_left(std::array<W, N>& x) {
  726|    449|   static_assert(N >= 1, "Invalid input size");
  727|    449|   static_assert(S > 0, "Zero shift not supported");
  728|    449|   static_assert(S < WordInfo<W>::bits, "Shift too large");
  729|       |
  730|    449|   const W carry = x[N - 1] >> (WordInfo<W>::bits - S);
  731|       |
  732|  1.79k|   for(size_t i = N - 1; i != 0; --i) {
  ------------------
  |  Branch (732:26): [True: 1.34k, False: 449]
  ------------------
  733|  1.34k|      x[i] = (x[i] << S) | (x[i - 1] >> (WordInfo<W>::bits - S));
  734|  1.34k|   }
  735|    449|   x[0] <<= S;
  736|       |
  737|    449|   return carry;
  738|    449|}
_ZN5Botan13redc_crandallITkNS_8WordTypeEmLm4ETnT_Lm4294968273EEENSt3__15arrayIS1_XT0_EEENS2_4spanIKS1_XmlLi2ET0_EEE:
  992|   138k|constexpr std::array<W, N> redc_crandall(std::span<const W, 2 * N> z) {
  993|   138k|   static_assert(N >= 2);
  994|       |
  995|   138k|   std::array<W, N> hi = {};
  996|       |
  997|       |   // hi = hi * c + lo
  998|       |
  999|   138k|   W carry = 0;
 1000|   692k|   for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (1000:22): [True: 554k, False: 138k]
  ------------------
 1001|   554k|      hi[i] = word_madd3(z[i + N], C, z[i], &carry);
 1002|   554k|   }
 1003|       |
 1004|       |   // hi += carry * C
 1005|   138k|   word carry_c[2] = {0};
 1006|   138k|   carry_c[0] = word_madd2(carry, C, &carry_c[1]);
 1007|       |
 1008|   138k|   carry = bigint_add2(hi.data(), N, carry_c, 2);
 1009|       |
 1010|   138k|   constexpr W P0 = WordInfo<W>::max - (C - 1);
 1011|       |
 1012|   138k|   std::array<W, N> r = {};
 1013|       |
 1014|   138k|   W borrow = 0;
 1015|       |
 1016|       |   /*
 1017|       |   * For undetermined reasons, on GCC (only) removing this asm block causes
 1018|       |   * massive (up to 20%) performance regressions in secp256k1.
 1019|       |   *
 1020|       |   * The generated code without the asm seems quite reasonable, and timing
 1021|       |   * repeated calls to redc_crandall with the cycle counter show that GCC
 1022|       |   * computes it in about the same number of cycles with or without the asm.
 1023|       |   *
 1024|       |   * So the cause of the regression is unclear. But it is reproducible across
 1025|       |   * machines and GCC versions.
 1026|       |   */
 1027|       |#if defined(BOTAN_MP_USE_X86_64_ASM) && defined(__GNUC__) && !defined(__clang__)
 1028|       |   if constexpr(N == 4 && std::same_as<W, uint64_t>) {
 1029|       |      if(!std::is_constant_evaluated()) {
 1030|       |         asm volatile(R"(
 1031|       |                      movq 0(%[x]), %[borrow]
 1032|       |                      subq %[p0], %[borrow]
 1033|       |                      movq %[borrow], 0(%[r])
 1034|       |                      movq 8(%[x]), %[borrow]
 1035|       |                      sbbq $-1, %[borrow]
 1036|       |                      movq %[borrow], 8(%[r])
 1037|       |                      movq 16(%[x]), %[borrow]
 1038|       |                      sbbq $-1, %[borrow]
 1039|       |                      movq %[borrow], 16(%[r])
 1040|       |                      movq 24(%[x]), %[borrow]
 1041|       |                      sbbq $-1, %[borrow]
 1042|       |                      movq %[borrow], 24(%[r])
 1043|       |                      sbbq %[borrow],%[borrow]
 1044|       |                      negq %[borrow]
 1045|       |                      )"
 1046|       |                      : [borrow] "=r"(borrow)
 1047|       |                      : [x] "r"(hi.data()), [p0] "r"(P0), [r] "r"(r.data()), "0"(borrow)
 1048|       |                      : "cc", "memory");
 1049|       |
 1050|       |         borrow = (carry - borrow) > carry;
 1051|       |         CT::conditional_assign_mem(borrow, r.data(), hi.data(), N);
 1052|       |         return r;
 1053|       |      }
 1054|       |   }
 1055|       |#endif
 1056|       |
 1057|   138k|   r[0] = word_sub(hi[0], P0, &borrow);
 1058|   554k|   for(size_t i = 1; i != N; ++i) {
  ------------------
  |  Branch (1058:22): [True: 415k, False: 138k]
  ------------------
 1059|   415k|      r[i] = word_sub(hi[i], WordInfo<W>::max, &borrow);
 1060|   415k|   }
 1061|       |
 1062|   138k|   borrow = (carry - borrow) > carry;
 1063|       |
 1064|   138k|   CT::conditional_assign_mem(borrow, r.data(), hi.data(), N);
 1065|       |
 1066|   138k|   return r;
 1067|   138k|}
_ZN5Botan9comba_sqrILm9ETkNS_8WordTypeEmEEvPT0_PKS1_:
  854|   153k|constexpr inline void comba_sqr(W z[2 * N], const W x[N]) {
  855|   153k|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (855:7): [True: 153k, Folded]
  ------------------
  856|       |      if constexpr(std::same_as<W, word> && N == 4) {
  857|       |         return bigint_comba_sqr4(z, x);
  858|       |      }
  859|       |      if constexpr(std::same_as<W, word> && N == 6) {
  860|       |         return bigint_comba_sqr6(z, x);
  861|       |      }
  862|       |      if constexpr(std::same_as<W, word> && N == 7) {
  863|       |         return bigint_comba_sqr7(z, x);
  864|       |      }
  865|       |      if constexpr(std::same_as<W, word> && N == 8) {
  866|       |         return bigint_comba_sqr8(z, x);
  867|       |      }
  868|   153k|      if constexpr(std::same_as<W, word> && N == 9) {
  869|   153k|         return bigint_comba_sqr9(z, x);
  870|   153k|      }
  871|       |      if constexpr(std::same_as<W, word> && N == 16) {
  872|       |         return bigint_comba_sqr16(z, x);
  873|       |      }
  874|   153k|   }
  875|       |
  876|      0|   word3<W> accum;
  877|       |
  878|   153k|   for(size_t i = 0; i != 2 * N; ++i) {
  ------------------
  |  Branch (878:22): [True: 0, False: 153k]
  ------------------
  879|      0|      const size_t start = i + 1 < N ? 0 : i + 1 - N;
  ------------------
  |  Branch (879:28): [True: 0, False: 0]
  ------------------
  880|      0|      const size_t end = std::min(N, i + 1);
  881|       |
  882|      0|      for(size_t j = start; j != end; ++j) {
  ------------------
  |  Branch (882:29): [True: 0, False: 0]
  ------------------
  883|      0|         accum.mul(x[j], x[i - j]);
  884|      0|      }
  885|      0|      z[i] = accum.extract();
  886|      0|   }
  887|   153k|}
_ZN5Botan9comba_mulILm9ETkNS_8WordTypeEmEEvPT0_PKS1_S4_:
  818|   166k|constexpr inline void comba_mul(W z[2 * N], const W x[N], const W y[N]) {
  819|   166k|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (819:7): [True: 166k, Folded]
  ------------------
  820|       |      if constexpr(std::same_as<W, word> && N == 4) {
  821|       |         return bigint_comba_mul4(z, x, y);
  822|       |      }
  823|       |      if constexpr(std::same_as<W, word> && N == 6) {
  824|       |         return bigint_comba_mul6(z, x, y);
  825|       |      }
  826|       |      if constexpr(std::same_as<W, word> && N == 7) {
  827|       |         return bigint_comba_mul7(z, x, y);
  828|       |      }
  829|       |      if constexpr(std::same_as<W, word> && N == 8) {
  830|       |         return bigint_comba_mul8(z, x, y);
  831|       |      }
  832|   166k|      if constexpr(std::same_as<W, word> && N == 9) {
  833|   166k|         return bigint_comba_mul9(z, x, y);
  834|   166k|      }
  835|       |      if constexpr(std::same_as<W, word> && N == 16) {
  836|       |         return bigint_comba_mul16(z, x, y);
  837|       |      }
  838|   166k|   }
  839|       |
  840|      0|   word3<W> accum;
  841|       |
  842|   166k|   for(size_t i = 0; i != 2 * N; ++i) {
  ------------------
  |  Branch (842:22): [True: 0, False: 166k]
  ------------------
  843|      0|      const size_t start = i + 1 < N ? 0 : i + 1 - N;
  ------------------
  |  Branch (843:28): [True: 0, False: 0]
  ------------------
  844|      0|      const size_t end = std::min(N, i + 1);
  845|       |
  846|      0|      for(size_t j = start; j != end; ++j) {
  ------------------
  |  Branch (846:29): [True: 0, False: 0]
  ------------------
  847|      0|         accum.mul(x[j], y[i - j]);
  848|      0|      }
  849|      0|      z[i] = accum.extract();
  850|      0|   }
  851|   166k|}
_ZN5Botan10shift_leftILm16ETkNS_8WordTypeEmLm9EEET0_RNSt3__15arrayIS1_XT1_EEE:
  725|    467|inline constexpr W shift_left(std::array<W, N>& x) {
  726|    467|   static_assert(N >= 1, "Invalid input size");
  727|    467|   static_assert(S > 0, "Zero shift not supported");
  728|    467|   static_assert(S < WordInfo<W>::bits, "Shift too large");
  729|       |
  730|    467|   const W carry = x[N - 1] >> (WordInfo<W>::bits - S);
  731|       |
  732|  4.20k|   for(size_t i = N - 1; i != 0; --i) {
  ------------------
  |  Branch (732:26): [True: 3.73k, False: 467]
  ------------------
  733|  3.73k|      x[i] = (x[i] << S) | (x[i - 1] >> (WordInfo<W>::bits - S));
  734|  3.73k|   }
  735|    467|   x[0] <<= S;
  736|       |
  737|    467|   return carry;
  738|    467|}
_ZN5Botan22bigint_monty_maybe_subILm12ETkNS_8WordTypeEmEEvPT0_S1_PKS1_S4_:
  254|  5.19k|inline constexpr void bigint_monty_maybe_sub(W z[N], W x0, const W x[N], const W y[N]) {
  255|  5.19k|   W borrow = 0;
  256|       |
  257|  67.5k|   for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (257:22): [True: 62.3k, False: 5.19k]
  ------------------
  258|  62.3k|      z[i] = word_sub(x[i], y[i], &borrow);
  259|  62.3k|   }
  260|       |
  261|  5.19k|   borrow = (x0 - borrow) > x0;
  262|       |
  263|  5.19k|   CT::conditional_assign_mem(borrow, z, x, N);
  264|  5.19k|}
_ZN5Botan22bigint_monty_maybe_subILm16ETkNS_8WordTypeEmEEvPT0_S1_PKS1_S4_:
  254|  1.66k|inline constexpr void bigint_monty_maybe_sub(W z[N], W x0, const W x[N], const W y[N]) {
  255|  1.66k|   W borrow = 0;
  256|       |
  257|  28.3k|   for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (257:22): [True: 26.6k, False: 1.66k]
  ------------------
  258|  26.6k|      z[i] = word_sub(x[i], y[i], &borrow);
  259|  26.6k|   }
  260|       |
  261|  1.66k|   borrow = (x0 - borrow) > x0;
  262|       |
  263|  1.66k|   CT::conditional_assign_mem(borrow, z, x, N);
  264|  1.66k|}
_ZN5Botan9comba_mulILm7ETkNS_8WordTypeEmEEvPT0_PKS1_S4_:
  818|  15.0k|constexpr inline void comba_mul(W z[2 * N], const W x[N], const W y[N]) {
  819|  15.0k|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (819:7): [True: 15.0k, Folded]
  ------------------
  820|       |      if constexpr(std::same_as<W, word> && N == 4) {
  821|       |         return bigint_comba_mul4(z, x, y);
  822|       |      }
  823|       |      if constexpr(std::same_as<W, word> && N == 6) {
  824|       |         return bigint_comba_mul6(z, x, y);
  825|       |      }
  826|  15.0k|      if constexpr(std::same_as<W, word> && N == 7) {
  827|  15.0k|         return bigint_comba_mul7(z, x, y);
  828|  15.0k|      }
  829|       |      if constexpr(std::same_as<W, word> && N == 8) {
  830|       |         return bigint_comba_mul8(z, x, y);
  831|       |      }
  832|       |      if constexpr(std::same_as<W, word> && N == 9) {
  833|       |         return bigint_comba_mul9(z, x, y);
  834|       |      }
  835|       |      if constexpr(std::same_as<W, word> && N == 16) {
  836|       |         return bigint_comba_mul16(z, x, y);
  837|       |      }
  838|  15.0k|   }
  839|       |
  840|      0|   word3<W> accum;
  841|       |
  842|  15.0k|   for(size_t i = 0; i != 2 * N; ++i) {
  ------------------
  |  Branch (842:22): [True: 0, False: 15.0k]
  ------------------
  843|      0|      const size_t start = i + 1 < N ? 0 : i + 1 - N;
  ------------------
  |  Branch (843:28): [True: 0, False: 0]
  ------------------
  844|      0|      const size_t end = std::min(N, i + 1);
  845|       |
  846|      0|      for(size_t j = start; j != end; ++j) {
  ------------------
  |  Branch (846:29): [True: 0, False: 0]
  ------------------
  847|      0|         accum.mul(x[j], y[i - j]);
  848|      0|      }
  849|      0|      z[i] = accum.extract();
  850|      0|   }
  851|  15.0k|}
_ZN5Botan9comba_sqrILm7ETkNS_8WordTypeEmEEvPT0_PKS1_:
  854|  8.61k|constexpr inline void comba_sqr(W z[2 * N], const W x[N]) {
  855|  8.61k|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (855:7): [True: 8.61k, Folded]
  ------------------
  856|       |      if constexpr(std::same_as<W, word> && N == 4) {
  857|       |         return bigint_comba_sqr4(z, x);
  858|       |      }
  859|       |      if constexpr(std::same_as<W, word> && N == 6) {
  860|       |         return bigint_comba_sqr6(z, x);
  861|       |      }
  862|  8.61k|      if constexpr(std::same_as<W, word> && N == 7) {
  863|  8.61k|         return bigint_comba_sqr7(z, x);
  864|  8.61k|      }
  865|       |      if constexpr(std::same_as<W, word> && N == 8) {
  866|       |         return bigint_comba_sqr8(z, x);
  867|       |      }
  868|       |      if constexpr(std::same_as<W, word> && N == 9) {
  869|       |         return bigint_comba_sqr9(z, x);
  870|       |      }
  871|       |      if constexpr(std::same_as<W, word> && N == 16) {
  872|       |         return bigint_comba_sqr16(z, x);
  873|       |      }
  874|  8.61k|   }
  875|       |
  876|      0|   word3<W> accum;
  877|       |
  878|  8.61k|   for(size_t i = 0; i != 2 * N; ++i) {
  ------------------
  |  Branch (878:22): [True: 0, False: 8.61k]
  ------------------
  879|      0|      const size_t start = i + 1 < N ? 0 : i + 1 - N;
  ------------------
  |  Branch (879:28): [True: 0, False: 0]
  ------------------
  880|      0|      const size_t end = std::min(N, i + 1);
  881|       |
  882|      0|      for(size_t j = start; j != end; ++j) {
  ------------------
  |  Branch (882:29): [True: 0, False: 0]
  ------------------
  883|      0|         accum.mul(x[j], x[i - j]);
  884|      0|      }
  885|      0|      z[i] = accum.extract();
  886|      0|   }
  887|  8.61k|}

_ZN5Botan6PCurve15PrimeOrderCurve6ScalarD2Ev:
   74|  11.7k|            ~Scalar() { _zeroize(); }
_ZN5Botan6PCurve15PrimeOrderCurve11AffinePointD2Ev:
  102|  4.82k|            ~AffinePoint() = default;
_ZN5Botan6PCurve15PrimeOrderCurve15ProjectivePointD2Ev:
  136|  1.49k|            ~ProjectivePoint() = default;
_ZN5Botan6PCurve15PrimeOrderCurve6ScalarC2EOS2_:
   69|  5.85k|            Scalar(Scalar&& other) = default;
_ZN5Botan6PCurve15PrimeOrderCurve6ScalarC2ERKS2_:
   68|  3.90k|            Scalar(const Scalar& other) = default;
_ZN5Botan6PCurve15PrimeOrderCurve11AffinePointC2EOS2_:
   99|  2.98k|            AffinePoint(AffinePoint&& other) = default;
_ZNK5Botan6PCurve15PrimeOrderCurve6Scalar6_curveEv:
   78|  5.39k|            const auto& _curve() const { return m_curve; }
_ZNK5Botan6PCurve15PrimeOrderCurve6Scalar6_valueEv:
   80|  5.39k|            const auto& _value() const { return m_value; }
_ZN5Botan6PCurve15PrimeOrderCurve6Scalar7_createENSt3__110shared_ptrIKS1_EENS3_5arrayImLm9EEE:
   82|  1.95k|            static Scalar _create(CurvePtr curve, StorageUnit v) { return Scalar(std::move(curve), v); }
_ZN5Botan6PCurve15PrimeOrderCurve6ScalarC2ENSt3__110shared_ptrIKS1_EENS3_5arrayImLm9EEE:
   85|  1.95k|            Scalar(CurvePtr curve, StorageUnit v) : m_curve(std::move(curve)), m_value(v) {}
_ZNK5Botan6PCurve15PrimeOrderCurve11AffinePoint6_curveEv:
  106|  3.32k|            const auto& _curve() const { return m_curve; }
_ZNK5Botan6PCurve15PrimeOrderCurve11AffinePoint2_xEv:
  108|  3.32k|            const auto& _x() const { return m_x; }
_ZNK5Botan6PCurve15PrimeOrderCurve11AffinePoint2_yEv:
  110|  3.32k|            const auto& _y() const { return m_y; }
_ZN5Botan6PCurve15PrimeOrderCurve11AffinePoint7_createENSt3__110shared_ptrIKS1_EENS3_5arrayImLm9EEES8_:
  112|  1.83k|            static AffinePoint _create(CurvePtr curve, StorageUnit x, StorageUnit y) {
  113|  1.83k|               return AffinePoint(std::move(curve), x, y);
  114|  1.83k|            }
_ZN5Botan6PCurve15PrimeOrderCurve11AffinePointC2ENSt3__110shared_ptrIKS1_EENS3_5arrayImLm9EEES8_:
  117|  1.83k|            AffinePoint(CurvePtr curve, StorageUnit x, StorageUnit y) : m_curve(std::move(curve)), m_x(x), m_y(y) {}
_ZNK5Botan6PCurve15PrimeOrderCurve15ProjectivePoint6_curveEv:
  138|  1.49k|            const auto& _curve() const { return m_curve; }
_ZNK5Botan6PCurve15PrimeOrderCurve15ProjectivePoint2_xEv:
  140|  1.49k|            const auto& _x() const { return m_x; }
_ZNK5Botan6PCurve15PrimeOrderCurve15ProjectivePoint2_yEv:
  142|  1.49k|            const auto& _y() const { return m_y; }
_ZNK5Botan6PCurve15PrimeOrderCurve15ProjectivePoint2_zEv:
  144|  1.49k|            const auto& _z() const { return m_z; }
_ZN5Botan6PCurve15PrimeOrderCurve15ProjectivePoint7_createENSt3__110shared_ptrIKS1_EENS3_5arrayImLm9EEES8_S8_:
  146|  1.49k|            static ProjectivePoint _create(CurvePtr curve, StorageUnit x, StorageUnit y, StorageUnit z) {
  147|  1.49k|               return ProjectivePoint(std::move(curve), x, y, z);
  148|  1.49k|            }
_ZN5Botan6PCurve15PrimeOrderCurve15ProjectivePointC2ENSt3__110shared_ptrIKS1_EENS3_5arrayImLm9EEES8_S8_:
  152|  1.49k|                  m_curve(std::move(curve)), m_x(x), m_y(y), m_z(z) {}
_ZN5Botan6PCurve15PrimeOrderCurveD2Ev:
  165|    350|      virtual ~PrimeOrderCurve() = default;

pcurves_brainpool256r1.cpp:_ZN5Botan11dbl_genericINS_20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES3_E11FieldParamsEEEEES8_EESC_EET_RKSE_RKT0_:
  397|    833|inline constexpr ProjectivePoint dbl_generic(const ProjectivePoint& pt, const FieldElement& A) {
  398|       |   // Cost: 1M + 3S + 1A + 1*3
  399|    833|   const auto z2 = pt.z().square();
  400|    833|   const auto m = pt.x().square().mul3() + A * z2.square();
  401|       |
  402|       |   // Remaining cost: 3M + 3S + 3A + 2*2 + 1*4 + 1*8
  403|    833|   const auto y2 = pt.y().square();
  404|    833|   const auto s = pt.x().mul4() * y2;
  405|    833|   const auto nx = m.square() - s.mul2();
  406|    833|   const auto ny = m * (s - nx) - y2.square().mul8();
  407|    833|   const auto nz = pt.y().mul2() * pt.z();
  408|       |
  409|    833|   return ProjectivePoint(nx, ny, nz);
  410|    833|}
pcurves_brainpool256r1.cpp:_ZN5Botan9point_addINS_20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES3_E11FieldParamsEEEEES8_EESC_EET_RKSE_SG_:
  187|    735|inline constexpr ProjectivePoint point_add(const ProjectivePoint& a, const ProjectivePoint& b) {
  188|    735|   const auto a_is_identity = a.is_identity();
  189|    735|   const auto b_is_identity = b.is_identity();
  190|       |
  191|    735|   const auto Z1Z1 = a.z().square();
  192|    735|   const auto Z2Z2 = b.z().square();
  193|    735|   const auto U1 = a.x() * Z2Z2;
  194|    735|   const auto U2 = b.x() * Z1Z1;
  195|    735|   const auto S1 = a.y() * b.z() * Z2Z2;
  196|    735|   const auto S2 = b.y() * a.z() * Z1Z1;
  197|    735|   const auto H = U2 - U1;
  198|    735|   const auto r = S2 - S1;
  199|       |
  200|       |   /* Risky conditional
  201|       |   *
  202|       |   * This implementation uses projective coordinates, which do not have an efficient complete
  203|       |   * addition formula. We rely on the design of the multiplication algorithms to avoid doublings.
  204|       |   *
  205|       |   * This conditional only comes into play for the actual doubling case, not x + (-x) which
  206|       |   * is another exceptional case in some circumstances. Here if a == -b then H == 0 && r != 0,
  207|       |   * in which case at the end we'll set z to a.z * b.z * H = 0, resulting in the correct
  208|       |   * output (the identity element)
  209|       |   */
  210|    735|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (210:7): [True: 0, False: 735]
  ------------------
  211|      0|      return a.dbl();
  212|      0|   }
  213|       |
  214|    735|   const auto HH = H.square();
  215|    735|   const auto HHH = H * HH;
  216|    735|   const auto V = U1 * HH;
  217|    735|   const auto t2 = r.square();
  218|    735|   const auto t3 = V + V;
  219|    735|   const auto t4 = t2 - HHH;
  220|    735|   auto X3 = t4 - t3;
  221|    735|   const auto t5 = V - X3;
  222|    735|   const auto t6 = S1 * HHH;
  223|    735|   const auto t7 = r * t5;
  224|    735|   auto Y3 = t7 - t6;
  225|    735|   const auto t8 = b.z() * H;
  226|    735|   auto Z3 = a.z() * t8;
  227|       |
  228|       |   // if a is identity then return b
  229|    735|   FieldElement::conditional_assign(X3, Y3, Z3, a_is_identity, b.x(), b.y(), b.z());
  230|       |
  231|       |   // if b is identity then return a
  232|    735|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  233|       |
  234|    735|   return ProjectivePoint(X3, Y3, Z3);
  235|    735|}
pcurves_brainpool256r1.cpp:_ZN5Botan15to_affine_batchINS_6PCurve12_GLOBAL__N_114brainpool256r15CurveELb1EEEDaNSt3__14spanIKNT_15ProjectivePointELm18446744073709551615EEE:
  107|      1|auto to_affine_batch(std::span<const typename C::ProjectivePoint> projective) {
  108|      1|   using AffinePoint = typename C::AffinePoint;
  109|       |
  110|      1|   const size_t N = projective.size();
  111|      1|   std::vector<AffinePoint> affine;
  112|      1|   affine.reserve(N);
  113|       |
  114|      1|   CT::Choice any_identity = CT::Choice::no();
  115|       |
  116|  1.56k|   for(const auto& pt : projective) {
  ------------------
  |  Branch (116:23): [True: 1.56k, False: 1]
  ------------------
  117|  1.56k|      any_identity = any_identity || pt.is_identity();
  118|  1.56k|   }
  119|       |
  120|       |   // Conditional acceptable: N is public. State of points is not necessarily
  121|       |   // public, but we don't leak which point was the identity. In practice with
  122|       |   // the algorithms currently in use, the only time an identity can occur is
  123|       |   // during mul2 where the two points g/h have a small relation (ie h = g*k for
  124|       |   // some k < 16)
  125|       |
  126|      1|   if(N <= 2 || any_identity.as_bool()) {
  ------------------
  |  Branch (126:7): [True: 0, False: 1]
  |  Branch (126:17): [True: 0, False: 1]
  ------------------
  127|       |      // If there are identity elements, using the batch inversion gets
  128|       |      // tricky. It can be done, but this should be a rare situation so
  129|       |      // just punt to the serial conversion if it occurs
  130|      0|      for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (130:25): [True: 0, False: 0]
  ------------------
  131|      0|         affine.push_back(to_affine<C>(projective[i]));
  132|      0|      }
  133|      1|   } else {
  134|      1|      std::vector<typename C::FieldElement> c;
  135|      1|      c.reserve(N);
  136|       |
  137|       |      /*
  138|       |      Batch projective->affine using Montgomery's trick
  139|       |
  140|       |      See Algorithm 2.26 in "Guide to Elliptic Curve Cryptography"
  141|       |      (Hankerson, Menezes, Vanstone)
  142|       |      */
  143|       |
  144|      1|      c.push_back(projective[0].z());
  145|  1.56k|      for(size_t i = 1; i != N; ++i) {
  ------------------
  |  Branch (145:25): [True: 1.56k, False: 1]
  ------------------
  146|  1.56k|         c.push_back(c[i - 1] * projective[i].z());
  147|  1.56k|      }
  148|       |
  149|      1|      auto s_inv = [&]() {
  150|      1|         if constexpr(VariableTime) {
  151|      1|            return c[N - 1].invert_vartime();
  152|      1|         } else {
  153|      1|            return invert_field_element<C>(c[N - 1]);
  154|      1|         }
  155|      1|      }();
  156|       |
  157|  1.56k|      for(size_t i = N - 1; i > 0; --i) {
  ------------------
  |  Branch (157:29): [True: 1.56k, False: 1]
  ------------------
  158|  1.56k|         const auto& p = projective[i];
  159|       |
  160|  1.56k|         const auto z_inv = s_inv * c[i - 1];
  161|  1.56k|         const auto z2_inv = z_inv.square();
  162|  1.56k|         const auto z3_inv = z_inv * z2_inv;
  163|       |
  164|  1.56k|         s_inv = s_inv * p.z();
  165|       |
  166|  1.56k|         affine.push_back(AffinePoint(p.x() * z2_inv, p.y() * z3_inv));
  167|  1.56k|      }
  168|       |
  169|      1|      const auto z2_inv = s_inv.square();
  170|      1|      const auto z3_inv = s_inv * z2_inv;
  171|      1|      affine.push_back(AffinePoint(projective[0].x() * z2_inv, projective[0].y() * z3_inv));
  172|      1|      std::reverse(affine.begin(), affine.end());
  173|      1|      return affine;
  174|      1|   }
  175|       |
  176|      0|   return affine;
  177|      1|}
pcurves_brainpool256r1.cpp:_ZN5Botan9to_affineINS_6PCurve12_GLOBAL__N_114brainpool256r15CurveEEEDaRKNT_15ProjectivePointE:
   76|    164|inline constexpr auto to_affine(const typename C::ProjectivePoint& pt) {
   77|       |   // Not strictly required right? - default should work as long
   78|       |   // as (0,0) is identity and invert returns 0 on 0
   79|       |
   80|       |   if constexpr(curve_supports_fe_invert2<C>) {
   81|       |      const auto z2_inv = C::fe_invert2(pt.z());
   82|       |      const auto z3_inv = z2_inv.square() * pt.z();
   83|       |      return typename C::AffinePoint(pt.x() * z2_inv, pt.y() * z3_inv);
   84|    164|   } else {
   85|    164|      const auto z_inv = invert_field_element<C>(pt.z());
   86|    164|      const auto z2_inv = z_inv.square();
   87|    164|      const auto z3_inv = z_inv * z2_inv;
   88|    164|      return typename C::AffinePoint(pt.x() * z2_inv, pt.y() * z3_inv);
   89|    164|   }
   90|    164|}
pcurves_brainpool256r1.cpp:_ZN5Botan20invert_field_elementINS_6PCurve12_GLOBAL__N_114brainpool256r15CurveEEEDaRKNT_12FieldElementE:
   35|    164|inline constexpr auto invert_field_element(const typename C::FieldElement& fe) {
   36|       |   if constexpr(curve_supports_fe_invert2<C>) {
   37|       |      return C::fe_invert2(fe) * fe;
   38|    164|   } else {
   39|    164|      return fe.invert();
   40|    164|   }
   41|    164|}
pcurves_brainpool256r1.cpp:_ZZN5Botan15to_affine_batchINS_6PCurve12_GLOBAL__N_114brainpool256r15CurveELb1EEEDaNSt3__14spanIKNT_15ProjectivePointELm18446744073709551615EEEENKUlvE_clEv:
  149|      1|      auto s_inv = [&]() {
  150|      1|         if constexpr(VariableTime) {
  151|      1|            return c[N - 1].invert_vartime();
  152|       |         } else {
  153|       |            return invert_field_element<C>(c[N - 1]);
  154|       |         }
  155|      1|      }();
pcurves_brainpool256r1.cpp:_ZN5Botan22point_add_or_sub_mixedINS_20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES3_E11FieldParamsEEEEES8_EENS_16AffineCurvePointISC_EESC_EET_RKSG_RKT0_NS_2CT6ChoiceERKT1_:
  296|  6.88k|                                                        const FieldElement& one) {
  297|  6.88k|   const auto a_is_identity = a.is_identity();
  298|  6.88k|   const auto b_is_identity = b.is_identity();
  299|       |
  300|       |   /*
  301|       |   https://hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html#addition-add-1998-cmo-2
  302|       |
  303|       |   Cost: 8M + 3S + 6add + 1*2
  304|       |   */
  305|       |
  306|  6.88k|   auto by = b.y();
  307|  6.88k|   by.conditional_assign(sub, by.negate());
  308|       |
  309|  6.88k|   const auto Z1Z1 = a.z().square();
  310|  6.88k|   const auto U2 = b.x() * Z1Z1;
  311|  6.88k|   const auto S2 = by * a.z() * Z1Z1;
  312|  6.88k|   const auto H = U2 - a.x();
  313|  6.88k|   const auto r = S2 - a.y();
  314|       |
  315|       |   /* Risky conditional
  316|       |   *
  317|       |   * This implementation uses projective coordinates, which do not have an efficient complete
  318|       |   * addition formula. We rely on the design of the multiplication algorithms to avoid doublings.
  319|       |   *
  320|       |   * This conditional only comes into play for the actual doubling case, not x + (-x) which
  321|       |   * is another exceptional case in some circumstances. Here if a == -b then H == 0 && r != 0,
  322|       |   * in which case at the end we'll set z to a.z * H = 0, resulting in the correct output
  323|       |   * (the identity element)
  324|       |   */
  325|  6.88k|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (325:7): [True: 0, False: 6.88k]
  ------------------
  326|      0|      return a.dbl();
  327|      0|   }
  328|       |
  329|  6.88k|   const auto HH = H.square();
  330|  6.88k|   const auto HHH = H * HH;
  331|  6.88k|   const auto V = a.x() * HH;
  332|  6.88k|   const auto t2 = r.square();
  333|  6.88k|   const auto t3 = V + V;
  334|  6.88k|   const auto t4 = t2 - HHH;
  335|  6.88k|   auto X3 = t4 - t3;
  336|  6.88k|   const auto t5 = V - X3;
  337|  6.88k|   const auto t6 = a.y() * HHH;
  338|  6.88k|   const auto t7 = r * t5;
  339|  6.88k|   auto Y3 = t7 - t6;
  340|  6.88k|   auto Z3 = a.z() * H;
  341|       |
  342|       |   // if a is identity then return b
  343|  6.88k|   FieldElement::conditional_assign(X3, Y3, Z3, a_is_identity, b.x(), by, one);
  344|       |
  345|       |   // if b is identity then return a
  346|  6.88k|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  347|       |
  348|  6.88k|   return ProjectivePoint(X3, Y3, Z3);
  349|  6.88k|}
pcurves_brainpool384r1.cpp:_ZN5Botan11dbl_genericINS_20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES3_E11FieldParamsEEEEES8_EESC_EET_RKSE_RKT0_:
  397|  1.24k|inline constexpr ProjectivePoint dbl_generic(const ProjectivePoint& pt, const FieldElement& A) {
  398|       |   // Cost: 1M + 3S + 1A + 1*3
  399|  1.24k|   const auto z2 = pt.z().square();
  400|  1.24k|   const auto m = pt.x().square().mul3() + A * z2.square();
  401|       |
  402|       |   // Remaining cost: 3M + 3S + 3A + 2*2 + 1*4 + 1*8
  403|  1.24k|   const auto y2 = pt.y().square();
  404|  1.24k|   const auto s = pt.x().mul4() * y2;
  405|  1.24k|   const auto nx = m.square() - s.mul2();
  406|  1.24k|   const auto ny = m * (s - nx) - y2.square().mul8();
  407|  1.24k|   const auto nz = pt.y().mul2() * pt.z();
  408|       |
  409|  1.24k|   return ProjectivePoint(nx, ny, nz);
  410|  1.24k|}
pcurves_brainpool384r1.cpp:_ZN5Botan9point_addINS_20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES3_E11FieldParamsEEEEES8_EESC_EET_RKSE_SG_:
  187|  1.09k|inline constexpr ProjectivePoint point_add(const ProjectivePoint& a, const ProjectivePoint& b) {
  188|  1.09k|   const auto a_is_identity = a.is_identity();
  189|  1.09k|   const auto b_is_identity = b.is_identity();
  190|       |
  191|  1.09k|   const auto Z1Z1 = a.z().square();
  192|  1.09k|   const auto Z2Z2 = b.z().square();
  193|  1.09k|   const auto U1 = a.x() * Z2Z2;
  194|  1.09k|   const auto U2 = b.x() * Z1Z1;
  195|  1.09k|   const auto S1 = a.y() * b.z() * Z2Z2;
  196|  1.09k|   const auto S2 = b.y() * a.z() * Z1Z1;
  197|  1.09k|   const auto H = U2 - U1;
  198|  1.09k|   const auto r = S2 - S1;
  199|       |
  200|       |   /* Risky conditional
  201|       |   *
  202|       |   * This implementation uses projective coordinates, which do not have an efficient complete
  203|       |   * addition formula. We rely on the design of the multiplication algorithms to avoid doublings.
  204|       |   *
  205|       |   * This conditional only comes into play for the actual doubling case, not x + (-x) which
  206|       |   * is another exceptional case in some circumstances. Here if a == -b then H == 0 && r != 0,
  207|       |   * in which case at the end we'll set z to a.z * b.z * H = 0, resulting in the correct
  208|       |   * output (the identity element)
  209|       |   */
  210|  1.09k|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (210:7): [True: 0, False: 1.09k]
  ------------------
  211|      0|      return a.dbl();
  212|      0|   }
  213|       |
  214|  1.09k|   const auto HH = H.square();
  215|  1.09k|   const auto HHH = H * HH;
  216|  1.09k|   const auto V = U1 * HH;
  217|  1.09k|   const auto t2 = r.square();
  218|  1.09k|   const auto t3 = V + V;
  219|  1.09k|   const auto t4 = t2 - HHH;
  220|  1.09k|   auto X3 = t4 - t3;
  221|  1.09k|   const auto t5 = V - X3;
  222|  1.09k|   const auto t6 = S1 * HHH;
  223|  1.09k|   const auto t7 = r * t5;
  224|  1.09k|   auto Y3 = t7 - t6;
  225|  1.09k|   const auto t8 = b.z() * H;
  226|  1.09k|   auto Z3 = a.z() * t8;
  227|       |
  228|       |   // if a is identity then return b
  229|  1.09k|   FieldElement::conditional_assign(X3, Y3, Z3, a_is_identity, b.x(), b.y(), b.z());
  230|       |
  231|       |   // if b is identity then return a
  232|  1.09k|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  233|       |
  234|  1.09k|   return ProjectivePoint(X3, Y3, Z3);
  235|  1.09k|}
pcurves_brainpool384r1.cpp:_ZN5Botan15to_affine_batchINS_6PCurve12_GLOBAL__N_114brainpool384r15CurveELb1EEEDaNSt3__14spanIKNT_15ProjectivePointELm18446744073709551615EEE:
  107|      1|auto to_affine_batch(std::span<const typename C::ProjectivePoint> projective) {
  108|      1|   using AffinePoint = typename C::AffinePoint;
  109|       |
  110|      1|   const size_t N = projective.size();
  111|      1|   std::vector<AffinePoint> affine;
  112|      1|   affine.reserve(N);
  113|       |
  114|      1|   CT::Choice any_identity = CT::Choice::no();
  115|       |
  116|  2.33k|   for(const auto& pt : projective) {
  ------------------
  |  Branch (116:23): [True: 2.33k, False: 1]
  ------------------
  117|  2.33k|      any_identity = any_identity || pt.is_identity();
  118|  2.33k|   }
  119|       |
  120|       |   // Conditional acceptable: N is public. State of points is not necessarily
  121|       |   // public, but we don't leak which point was the identity. In practice with
  122|       |   // the algorithms currently in use, the only time an identity can occur is
  123|       |   // during mul2 where the two points g/h have a small relation (ie h = g*k for
  124|       |   // some k < 16)
  125|       |
  126|      1|   if(N <= 2 || any_identity.as_bool()) {
  ------------------
  |  Branch (126:7): [True: 0, False: 1]
  |  Branch (126:17): [True: 0, False: 1]
  ------------------
  127|       |      // If there are identity elements, using the batch inversion gets
  128|       |      // tricky. It can be done, but this should be a rare situation so
  129|       |      // just punt to the serial conversion if it occurs
  130|      0|      for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (130:25): [True: 0, False: 0]
  ------------------
  131|      0|         affine.push_back(to_affine<C>(projective[i]));
  132|      0|      }
  133|      1|   } else {
  134|      1|      std::vector<typename C::FieldElement> c;
  135|      1|      c.reserve(N);
  136|       |
  137|       |      /*
  138|       |      Batch projective->affine using Montgomery's trick
  139|       |
  140|       |      See Algorithm 2.26 in "Guide to Elliptic Curve Cryptography"
  141|       |      (Hankerson, Menezes, Vanstone)
  142|       |      */
  143|       |
  144|      1|      c.push_back(projective[0].z());
  145|  2.33k|      for(size_t i = 1; i != N; ++i) {
  ------------------
  |  Branch (145:25): [True: 2.33k, False: 1]
  ------------------
  146|  2.33k|         c.push_back(c[i - 1] * projective[i].z());
  147|  2.33k|      }
  148|       |
  149|      1|      auto s_inv = [&]() {
  150|      1|         if constexpr(VariableTime) {
  151|      1|            return c[N - 1].invert_vartime();
  152|      1|         } else {
  153|      1|            return invert_field_element<C>(c[N - 1]);
  154|      1|         }
  155|      1|      }();
  156|       |
  157|  2.33k|      for(size_t i = N - 1; i > 0; --i) {
  ------------------
  |  Branch (157:29): [True: 2.33k, False: 1]
  ------------------
  158|  2.33k|         const auto& p = projective[i];
  159|       |
  160|  2.33k|         const auto z_inv = s_inv * c[i - 1];
  161|  2.33k|         const auto z2_inv = z_inv.square();
  162|  2.33k|         const auto z3_inv = z_inv * z2_inv;
  163|       |
  164|  2.33k|         s_inv = s_inv * p.z();
  165|       |
  166|  2.33k|         affine.push_back(AffinePoint(p.x() * z2_inv, p.y() * z3_inv));
  167|  2.33k|      }
  168|       |
  169|      1|      const auto z2_inv = s_inv.square();
  170|      1|      const auto z3_inv = s_inv * z2_inv;
  171|      1|      affine.push_back(AffinePoint(projective[0].x() * z2_inv, projective[0].y() * z3_inv));
  172|      1|      std::reverse(affine.begin(), affine.end());
  173|      1|      return affine;
  174|      1|   }
  175|       |
  176|      0|   return affine;
  177|      1|}
pcurves_brainpool384r1.cpp:_ZN5Botan9to_affineINS_6PCurve12_GLOBAL__N_114brainpool384r15CurveEEEDaRKNT_15ProjectivePointE:
   76|    146|inline constexpr auto to_affine(const typename C::ProjectivePoint& pt) {
   77|       |   // Not strictly required right? - default should work as long
   78|       |   // as (0,0) is identity and invert returns 0 on 0
   79|       |
   80|       |   if constexpr(curve_supports_fe_invert2<C>) {
   81|       |      const auto z2_inv = C::fe_invert2(pt.z());
   82|       |      const auto z3_inv = z2_inv.square() * pt.z();
   83|       |      return typename C::AffinePoint(pt.x() * z2_inv, pt.y() * z3_inv);
   84|    146|   } else {
   85|    146|      const auto z_inv = invert_field_element<C>(pt.z());
   86|    146|      const auto z2_inv = z_inv.square();
   87|    146|      const auto z3_inv = z_inv * z2_inv;
   88|    146|      return typename C::AffinePoint(pt.x() * z2_inv, pt.y() * z3_inv);
   89|    146|   }
   90|    146|}
pcurves_brainpool384r1.cpp:_ZN5Botan20invert_field_elementINS_6PCurve12_GLOBAL__N_114brainpool384r15CurveEEEDaRKNT_12FieldElementE:
   35|    146|inline constexpr auto invert_field_element(const typename C::FieldElement& fe) {
   36|       |   if constexpr(curve_supports_fe_invert2<C>) {
   37|       |      return C::fe_invert2(fe) * fe;
   38|    146|   } else {
   39|    146|      return fe.invert();
   40|    146|   }
   41|    146|}
pcurves_brainpool384r1.cpp:_ZZN5Botan15to_affine_batchINS_6PCurve12_GLOBAL__N_114brainpool384r15CurveELb1EEEDaNSt3__14spanIKNT_15ProjectivePointELm18446744073709551615EEEENKUlvE_clEv:
  149|      1|      auto s_inv = [&]() {
  150|      1|         if constexpr(VariableTime) {
  151|      1|            return c[N - 1].invert_vartime();
  152|       |         } else {
  153|       |            return invert_field_element<C>(c[N - 1]);
  154|       |         }
  155|      1|      }();
pcurves_brainpool384r1.cpp:_ZN5Botan22point_add_or_sub_mixedINS_20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES3_E11FieldParamsEEEEES8_EENS_16AffineCurvePointISC_EESC_EET_RKSG_RKT0_NS_2CT6ChoiceERKT1_:
  296|  9.34k|                                                        const FieldElement& one) {
  297|  9.34k|   const auto a_is_identity = a.is_identity();
  298|  9.34k|   const auto b_is_identity = b.is_identity();
  299|       |
  300|       |   /*
  301|       |   https://hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html#addition-add-1998-cmo-2
  302|       |
  303|       |   Cost: 8M + 3S + 6add + 1*2
  304|       |   */
  305|       |
  306|  9.34k|   auto by = b.y();
  307|  9.34k|   by.conditional_assign(sub, by.negate());
  308|       |
  309|  9.34k|   const auto Z1Z1 = a.z().square();
  310|  9.34k|   const auto U2 = b.x() * Z1Z1;
  311|  9.34k|   const auto S2 = by * a.z() * Z1Z1;
  312|  9.34k|   const auto H = U2 - a.x();
  313|  9.34k|   const auto r = S2 - a.y();
  314|       |
  315|       |   /* Risky conditional
  316|       |   *
  317|       |   * This implementation uses projective coordinates, which do not have an efficient complete
  318|       |   * addition formula. We rely on the design of the multiplication algorithms to avoid doublings.
  319|       |   *
  320|       |   * This conditional only comes into play for the actual doubling case, not x + (-x) which
  321|       |   * is another exceptional case in some circumstances. Here if a == -b then H == 0 && r != 0,
  322|       |   * in which case at the end we'll set z to a.z * H = 0, resulting in the correct output
  323|       |   * (the identity element)
  324|       |   */
  325|  9.34k|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (325:7): [True: 0, False: 9.34k]
  ------------------
  326|      0|      return a.dbl();
  327|      0|   }
  328|       |
  329|  9.34k|   const auto HH = H.square();
  330|  9.34k|   const auto HHH = H * HH;
  331|  9.34k|   const auto V = a.x() * HH;
  332|  9.34k|   const auto t2 = r.square();
  333|  9.34k|   const auto t3 = V + V;
  334|  9.34k|   const auto t4 = t2 - HHH;
  335|  9.34k|   auto X3 = t4 - t3;
  336|  9.34k|   const auto t5 = V - X3;
  337|  9.34k|   const auto t6 = a.y() * HHH;
  338|  9.34k|   const auto t7 = r * t5;
  339|  9.34k|   auto Y3 = t7 - t6;
  340|  9.34k|   auto Z3 = a.z() * H;
  341|       |
  342|       |   // if a is identity then return b
  343|  9.34k|   FieldElement::conditional_assign(X3, Y3, Z3, a_is_identity, b.x(), by, one);
  344|       |
  345|       |   // if b is identity then return a
  346|  9.34k|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  347|       |
  348|  9.34k|   return ProjectivePoint(X3, Y3, Z3);
  349|  9.34k|}
pcurves_brainpool512r1.cpp:_ZN5Botan11dbl_genericINS_20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES3_E11FieldParamsEEEEES8_EESC_EET_RKSE_RKT0_:
  397|  1.64k|inline constexpr ProjectivePoint dbl_generic(const ProjectivePoint& pt, const FieldElement& A) {
  398|       |   // Cost: 1M + 3S + 1A + 1*3
  399|  1.64k|   const auto z2 = pt.z().square();
  400|  1.64k|   const auto m = pt.x().square().mul3() + A * z2.square();
  401|       |
  402|       |   // Remaining cost: 3M + 3S + 3A + 2*2 + 1*4 + 1*8
  403|  1.64k|   const auto y2 = pt.y().square();
  404|  1.64k|   const auto s = pt.x().mul4() * y2;
  405|  1.64k|   const auto nx = m.square() - s.mul2();
  406|  1.64k|   const auto ny = m * (s - nx) - y2.square().mul8();
  407|  1.64k|   const auto nz = pt.y().mul2() * pt.z();
  408|       |
  409|  1.64k|   return ProjectivePoint(nx, ny, nz);
  410|  1.64k|}
pcurves_brainpool512r1.cpp:_ZN5Botan9point_addINS_20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES3_E11FieldParamsEEEEES8_EESC_EET_RKSE_SG_:
  187|  1.45k|inline constexpr ProjectivePoint point_add(const ProjectivePoint& a, const ProjectivePoint& b) {
  188|  1.45k|   const auto a_is_identity = a.is_identity();
  189|  1.45k|   const auto b_is_identity = b.is_identity();
  190|       |
  191|  1.45k|   const auto Z1Z1 = a.z().square();
  192|  1.45k|   const auto Z2Z2 = b.z().square();
  193|  1.45k|   const auto U1 = a.x() * Z2Z2;
  194|  1.45k|   const auto U2 = b.x() * Z1Z1;
  195|  1.45k|   const auto S1 = a.y() * b.z() * Z2Z2;
  196|  1.45k|   const auto S2 = b.y() * a.z() * Z1Z1;
  197|  1.45k|   const auto H = U2 - U1;
  198|  1.45k|   const auto r = S2 - S1;
  199|       |
  200|       |   /* Risky conditional
  201|       |   *
  202|       |   * This implementation uses projective coordinates, which do not have an efficient complete
  203|       |   * addition formula. We rely on the design of the multiplication algorithms to avoid doublings.
  204|       |   *
  205|       |   * This conditional only comes into play for the actual doubling case, not x + (-x) which
  206|       |   * is another exceptional case in some circumstances. Here if a == -b then H == 0 && r != 0,
  207|       |   * in which case at the end we'll set z to a.z * b.z * H = 0, resulting in the correct
  208|       |   * output (the identity element)
  209|       |   */
  210|  1.45k|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (210:7): [True: 0, False: 1.45k]
  ------------------
  211|      0|      return a.dbl();
  212|      0|   }
  213|       |
  214|  1.45k|   const auto HH = H.square();
  215|  1.45k|   const auto HHH = H * HH;
  216|  1.45k|   const auto V = U1 * HH;
  217|  1.45k|   const auto t2 = r.square();
  218|  1.45k|   const auto t3 = V + V;
  219|  1.45k|   const auto t4 = t2 - HHH;
  220|  1.45k|   auto X3 = t4 - t3;
  221|  1.45k|   const auto t5 = V - X3;
  222|  1.45k|   const auto t6 = S1 * HHH;
  223|  1.45k|   const auto t7 = r * t5;
  224|  1.45k|   auto Y3 = t7 - t6;
  225|  1.45k|   const auto t8 = b.z() * H;
  226|  1.45k|   auto Z3 = a.z() * t8;
  227|       |
  228|       |   // if a is identity then return b
  229|  1.45k|   FieldElement::conditional_assign(X3, Y3, Z3, a_is_identity, b.x(), b.y(), b.z());
  230|       |
  231|       |   // if b is identity then return a
  232|  1.45k|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  233|       |
  234|  1.45k|   return ProjectivePoint(X3, Y3, Z3);
  235|  1.45k|}
pcurves_brainpool512r1.cpp:_ZN5Botan15to_affine_batchINS_6PCurve12_GLOBAL__N_114brainpool512r15CurveELb1EEEDaNSt3__14spanIKNT_15ProjectivePointELm18446744073709551615EEE:
  107|      1|auto to_affine_batch(std::span<const typename C::ProjectivePoint> projective) {
  108|      1|   using AffinePoint = typename C::AffinePoint;
  109|       |
  110|      1|   const size_t N = projective.size();
  111|      1|   std::vector<AffinePoint> affine;
  112|      1|   affine.reserve(N);
  113|       |
  114|      1|   CT::Choice any_identity = CT::Choice::no();
  115|       |
  116|  3.10k|   for(const auto& pt : projective) {
  ------------------
  |  Branch (116:23): [True: 3.10k, False: 1]
  ------------------
  117|  3.10k|      any_identity = any_identity || pt.is_identity();
  118|  3.10k|   }
  119|       |
  120|       |   // Conditional acceptable: N is public. State of points is not necessarily
  121|       |   // public, but we don't leak which point was the identity. In practice with
  122|       |   // the algorithms currently in use, the only time an identity can occur is
  123|       |   // during mul2 where the two points g/h have a small relation (ie h = g*k for
  124|       |   // some k < 16)
  125|       |
  126|      1|   if(N <= 2 || any_identity.as_bool()) {
  ------------------
  |  Branch (126:7): [True: 0, False: 1]
  |  Branch (126:17): [True: 0, False: 1]
  ------------------
  127|       |      // If there are identity elements, using the batch inversion gets
  128|       |      // tricky. It can be done, but this should be a rare situation so
  129|       |      // just punt to the serial conversion if it occurs
  130|      0|      for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (130:25): [True: 0, False: 0]
  ------------------
  131|      0|         affine.push_back(to_affine<C>(projective[i]));
  132|      0|      }
  133|      1|   } else {
  134|      1|      std::vector<typename C::FieldElement> c;
  135|      1|      c.reserve(N);
  136|       |
  137|       |      /*
  138|       |      Batch projective->affine using Montgomery's trick
  139|       |
  140|       |      See Algorithm 2.26 in "Guide to Elliptic Curve Cryptography"
  141|       |      (Hankerson, Menezes, Vanstone)
  142|       |      */
  143|       |
  144|      1|      c.push_back(projective[0].z());
  145|  3.10k|      for(size_t i = 1; i != N; ++i) {
  ------------------
  |  Branch (145:25): [True: 3.10k, False: 1]
  ------------------
  146|  3.10k|         c.push_back(c[i - 1] * projective[i].z());
  147|  3.10k|      }
  148|       |
  149|      1|      auto s_inv = [&]() {
  150|      1|         if constexpr(VariableTime) {
  151|      1|            return c[N - 1].invert_vartime();
  152|      1|         } else {
  153|      1|            return invert_field_element<C>(c[N - 1]);
  154|      1|         }
  155|      1|      }();
  156|       |
  157|  3.10k|      for(size_t i = N - 1; i > 0; --i) {
  ------------------
  |  Branch (157:29): [True: 3.10k, False: 1]
  ------------------
  158|  3.10k|         const auto& p = projective[i];
  159|       |
  160|  3.10k|         const auto z_inv = s_inv * c[i - 1];
  161|  3.10k|         const auto z2_inv = z_inv.square();
  162|  3.10k|         const auto z3_inv = z_inv * z2_inv;
  163|       |
  164|  3.10k|         s_inv = s_inv * p.z();
  165|       |
  166|  3.10k|         affine.push_back(AffinePoint(p.x() * z2_inv, p.y() * z3_inv));
  167|  3.10k|      }
  168|       |
  169|      1|      const auto z2_inv = s_inv.square();
  170|      1|      const auto z3_inv = s_inv * z2_inv;
  171|      1|      affine.push_back(AffinePoint(projective[0].x() * z2_inv, projective[0].y() * z3_inv));
  172|      1|      std::reverse(affine.begin(), affine.end());
  173|      1|      return affine;
  174|      1|   }
  175|       |
  176|      0|   return affine;
  177|      1|}
pcurves_brainpool512r1.cpp:_ZN5Botan9to_affineINS_6PCurve12_GLOBAL__N_114brainpool512r15CurveEEEDaRKNT_15ProjectivePointE:
   76|    171|inline constexpr auto to_affine(const typename C::ProjectivePoint& pt) {
   77|       |   // Not strictly required right? - default should work as long
   78|       |   // as (0,0) is identity and invert returns 0 on 0
   79|       |
   80|       |   if constexpr(curve_supports_fe_invert2<C>) {
   81|       |      const auto z2_inv = C::fe_invert2(pt.z());
   82|       |      const auto z3_inv = z2_inv.square() * pt.z();
   83|       |      return typename C::AffinePoint(pt.x() * z2_inv, pt.y() * z3_inv);
   84|    171|   } else {
   85|    171|      const auto z_inv = invert_field_element<C>(pt.z());
   86|    171|      const auto z2_inv = z_inv.square();
   87|    171|      const auto z3_inv = z_inv * z2_inv;
   88|    171|      return typename C::AffinePoint(pt.x() * z2_inv, pt.y() * z3_inv);
   89|    171|   }
   90|    171|}
pcurves_brainpool512r1.cpp:_ZN5Botan20invert_field_elementINS_6PCurve12_GLOBAL__N_114brainpool512r15CurveEEEDaRKNT_12FieldElementE:
   35|    171|inline constexpr auto invert_field_element(const typename C::FieldElement& fe) {
   36|       |   if constexpr(curve_supports_fe_invert2<C>) {
   37|       |      return C::fe_invert2(fe) * fe;
   38|    171|   } else {
   39|    171|      return fe.invert();
   40|    171|   }
   41|    171|}
pcurves_brainpool512r1.cpp:_ZZN5Botan15to_affine_batchINS_6PCurve12_GLOBAL__N_114brainpool512r15CurveELb1EEEDaNSt3__14spanIKNT_15ProjectivePointELm18446744073709551615EEEENKUlvE_clEv:
  149|      1|      auto s_inv = [&]() {
  150|      1|         if constexpr(VariableTime) {
  151|      1|            return c[N - 1].invert_vartime();
  152|       |         } else {
  153|       |            return invert_field_element<C>(c[N - 1]);
  154|       |         }
  155|      1|      }();
pcurves_brainpool512r1.cpp:_ZN5Botan22point_add_or_sub_mixedINS_20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES3_E11FieldParamsEEEEES8_EENS_16AffineCurvePointISC_EESC_EET_RKSG_RKT0_NS_2CT6ChoiceERKT1_:
  296|  14.5k|                                                        const FieldElement& one) {
  297|  14.5k|   const auto a_is_identity = a.is_identity();
  298|  14.5k|   const auto b_is_identity = b.is_identity();
  299|       |
  300|       |   /*
  301|       |   https://hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html#addition-add-1998-cmo-2
  302|       |
  303|       |   Cost: 8M + 3S + 6add + 1*2
  304|       |   */
  305|       |
  306|  14.5k|   auto by = b.y();
  307|  14.5k|   by.conditional_assign(sub, by.negate());
  308|       |
  309|  14.5k|   const auto Z1Z1 = a.z().square();
  310|  14.5k|   const auto U2 = b.x() * Z1Z1;
  311|  14.5k|   const auto S2 = by * a.z() * Z1Z1;
  312|  14.5k|   const auto H = U2 - a.x();
  313|  14.5k|   const auto r = S2 - a.y();
  314|       |
  315|       |   /* Risky conditional
  316|       |   *
  317|       |   * This implementation uses projective coordinates, which do not have an efficient complete
  318|       |   * addition formula. We rely on the design of the multiplication algorithms to avoid doublings.
  319|       |   *
  320|       |   * This conditional only comes into play for the actual doubling case, not x + (-x) which
  321|       |   * is another exceptional case in some circumstances. Here if a == -b then H == 0 && r != 0,
  322|       |   * in which case at the end we'll set z to a.z * H = 0, resulting in the correct output
  323|       |   * (the identity element)
  324|       |   */
  325|  14.5k|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (325:7): [True: 0, False: 14.5k]
  ------------------
  326|      0|      return a.dbl();
  327|      0|   }
  328|       |
  329|  14.5k|   const auto HH = H.square();
  330|  14.5k|   const auto HHH = H * HH;
  331|  14.5k|   const auto V = a.x() * HH;
  332|  14.5k|   const auto t2 = r.square();
  333|  14.5k|   const auto t3 = V + V;
  334|  14.5k|   const auto t4 = t2 - HHH;
  335|  14.5k|   auto X3 = t4 - t3;
  336|  14.5k|   const auto t5 = V - X3;
  337|  14.5k|   const auto t6 = a.y() * HHH;
  338|  14.5k|   const auto t7 = r * t5;
  339|  14.5k|   auto Y3 = t7 - t6;
  340|  14.5k|   auto Z3 = a.z() * H;
  341|       |
  342|       |   // if a is identity then return b
  343|  14.5k|   FieldElement::conditional_assign(X3, Y3, Z3, a_is_identity, b.x(), by, one);
  344|       |
  345|       |   // if b is identity then return a
  346|  14.5k|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  347|       |
  348|  14.5k|   return ProjectivePoint(X3, Y3, Z3);
  349|  14.5k|}
pcurves_generic.cpp:_ZN5Botan22point_add_or_sub_mixedINS_6PCurve22GenericProjectivePointENS1_18GenericAffinePointENS1_12_GLOBAL__N_112GenericFieldEEET_RKS6_RKT0_NS_2CT6ChoiceERKT1_:
  296|  9.77k|                                                        const FieldElement& one) {
  297|  9.77k|   const auto a_is_identity = a.is_identity();
  298|  9.77k|   const auto b_is_identity = b.is_identity();
  299|       |
  300|       |   /*
  301|       |   https://hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html#addition-add-1998-cmo-2
  302|       |
  303|       |   Cost: 8M + 3S + 6add + 1*2
  304|       |   */
  305|       |
  306|  9.77k|   auto by = b.y();
  307|  9.77k|   by.conditional_assign(sub, by.negate());
  308|       |
  309|  9.77k|   const auto Z1Z1 = a.z().square();
  310|  9.77k|   const auto U2 = b.x() * Z1Z1;
  311|  9.77k|   const auto S2 = by * a.z() * Z1Z1;
  312|  9.77k|   const auto H = U2 - a.x();
  313|  9.77k|   const auto r = S2 - a.y();
  314|       |
  315|       |   /* Risky conditional
  316|       |   *
  317|       |   * This implementation uses projective coordinates, which do not have an efficient complete
  318|       |   * addition formula. We rely on the design of the multiplication algorithms to avoid doublings.
  319|       |   *
  320|       |   * This conditional only comes into play for the actual doubling case, not x + (-x) which
  321|       |   * is another exceptional case in some circumstances. Here if a == -b then H == 0 && r != 0,
  322|       |   * in which case at the end we'll set z to a.z * H = 0, resulting in the correct output
  323|       |   * (the identity element)
  324|       |   */
  325|  9.77k|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (325:7): [True: 0, False: 9.77k]
  ------------------
  326|      0|      return a.dbl();
  327|      0|   }
  328|       |
  329|  9.77k|   const auto HH = H.square();
  330|  9.77k|   const auto HHH = H * HH;
  331|  9.77k|   const auto V = a.x() * HH;
  332|  9.77k|   const auto t2 = r.square();
  333|  9.77k|   const auto t3 = V + V;
  334|  9.77k|   const auto t4 = t2 - HHH;
  335|  9.77k|   auto X3 = t4 - t3;
  336|  9.77k|   const auto t5 = V - X3;
  337|  9.77k|   const auto t6 = a.y() * HHH;
  338|  9.77k|   const auto t7 = r * t5;
  339|  9.77k|   auto Y3 = t7 - t6;
  340|  9.77k|   auto Z3 = a.z() * H;
  341|       |
  342|       |   // if a is identity then return b
  343|  9.77k|   FieldElement::conditional_assign(X3, Y3, Z3, a_is_identity, b.x(), by, one);
  344|       |
  345|       |   // if b is identity then return a
  346|  9.77k|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  347|       |
  348|  9.77k|   return ProjectivePoint(X3, Y3, Z3);
  349|  9.77k|}
_ZN5Botan13dbl_a_minus_3INS_6PCurve22GenericProjectivePointEEET_RKS3_:
  362|  38.0k|inline constexpr ProjectivePoint dbl_a_minus_3(const ProjectivePoint& pt) {
  363|       |   /*
  364|       |   if a == -3 then
  365|       |   3*x^2 + a*z^4 == 3*x^2 - 3*z^4 == 3*(x^2-z^4) == 3*(x-z^2)*(x+z^2)
  366|       |   */
  367|  38.0k|   const auto z2 = pt.z().square();
  368|  38.0k|   const auto m = (pt.x() - z2).mul3() * (pt.x() + z2);
  369|       |
  370|       |   // Remaining cost: 3M + 3S + 3A + 2*2 + 1*4 + 1*8
  371|  38.0k|   const auto y2 = pt.y().square();
  372|  38.0k|   const auto s = pt.x().mul4() * y2;
  373|  38.0k|   const auto nx = m.square() - s.mul2();
  374|  38.0k|   const auto ny = m * (s - nx) - y2.square().mul8();
  375|  38.0k|   const auto nz = pt.y().mul2() * pt.z();
  376|       |
  377|  38.0k|   return ProjectivePoint(nx, ny, nz);
  378|  38.0k|}
_ZN5Botan10dbl_a_zeroINS_6PCurve22GenericProjectivePointEEET_RKS3_:
  381|  45.9k|inline constexpr ProjectivePoint dbl_a_zero(const ProjectivePoint& pt) {
  382|       |   // If a == 0 then 3*x^2 + a*z^4 == 3*x^2
  383|       |   // Cost: 1S + 1*3
  384|  45.9k|   const auto m = pt.x().square().mul3();
  385|       |
  386|       |   // Remaining cost: 3M + 3S + 3A + 2*2 + 1*4 + 1*8
  387|  45.9k|   const auto y2 = pt.y().square();
  388|  45.9k|   const auto s = pt.x().mul4() * y2;
  389|  45.9k|   const auto nx = m.square() - s.mul2();
  390|  45.9k|   const auto ny = m * (s - nx) - y2.square().mul8();
  391|  45.9k|   const auto nz = pt.y().mul2() * pt.z();
  392|       |
  393|  45.9k|   return ProjectivePoint(nx, ny, nz);
  394|  45.9k|}
pcurves_generic.cpp:_ZN5Botan11dbl_genericINS_6PCurve22GenericProjectivePointENS1_12_GLOBAL__N_112GenericFieldEEET_RKS5_RKT0_:
  397|   191k|inline constexpr ProjectivePoint dbl_generic(const ProjectivePoint& pt, const FieldElement& A) {
  398|       |   // Cost: 1M + 3S + 1A + 1*3
  399|   191k|   const auto z2 = pt.z().square();
  400|   191k|   const auto m = pt.x().square().mul3() + A * z2.square();
  401|       |
  402|       |   // Remaining cost: 3M + 3S + 3A + 2*2 + 1*4 + 1*8
  403|   191k|   const auto y2 = pt.y().square();
  404|   191k|   const auto s = pt.x().mul4() * y2;
  405|   191k|   const auto nx = m.square() - s.mul2();
  406|   191k|   const auto ny = m * (s - nx) - y2.square().mul8();
  407|   191k|   const auto nz = pt.y().mul2() * pt.z();
  408|       |
  409|   191k|   return ProjectivePoint(nx, ny, nz);
  410|   191k|}
pcurves_generic.cpp:_ZN5Botan20invert_field_elementINS_6PCurve12_GLOBAL__N_112GenericCurveEEEDaRKNT_12FieldElementE:
   35|    248|inline constexpr auto invert_field_element(const typename C::FieldElement& fe) {
   36|       |   if constexpr(curve_supports_fe_invert2<C>) {
   37|       |      return C::fe_invert2(fe) * fe;
   38|    248|   } else {
   39|    248|      return fe.invert();
   40|    248|   }
   41|    248|}
pcurves_generic.cpp:_ZN5Botan9point_addINS_6PCurve22GenericProjectivePointENS1_12_GLOBAL__N_112GenericFieldEEET_RKS5_S7_:
  187|   242k|inline constexpr ProjectivePoint point_add(const ProjectivePoint& a, const ProjectivePoint& b) {
  188|   242k|   const auto a_is_identity = a.is_identity();
  189|   242k|   const auto b_is_identity = b.is_identity();
  190|       |
  191|   242k|   const auto Z1Z1 = a.z().square();
  192|   242k|   const auto Z2Z2 = b.z().square();
  193|   242k|   const auto U1 = a.x() * Z2Z2;
  194|   242k|   const auto U2 = b.x() * Z1Z1;
  195|   242k|   const auto S1 = a.y() * b.z() * Z2Z2;
  196|   242k|   const auto S2 = b.y() * a.z() * Z1Z1;
  197|   242k|   const auto H = U2 - U1;
  198|   242k|   const auto r = S2 - S1;
  199|       |
  200|       |   /* Risky conditional
  201|       |   *
  202|       |   * This implementation uses projective coordinates, which do not have an efficient complete
  203|       |   * addition formula. We rely on the design of the multiplication algorithms to avoid doublings.
  204|       |   *
  205|       |   * This conditional only comes into play for the actual doubling case, not x + (-x) which
  206|       |   * is another exceptional case in some circumstances. Here if a == -b then H == 0 && r != 0,
  207|       |   * in which case at the end we'll set z to a.z * b.z * H = 0, resulting in the correct
  208|       |   * output (the identity element)
  209|       |   */
  210|   242k|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (210:7): [True: 0, False: 242k]
  ------------------
  211|      0|      return a.dbl();
  212|      0|   }
  213|       |
  214|   242k|   const auto HH = H.square();
  215|   242k|   const auto HHH = H * HH;
  216|   242k|   const auto V = U1 * HH;
  217|   242k|   const auto t2 = r.square();
  218|   242k|   const auto t3 = V + V;
  219|   242k|   const auto t4 = t2 - HHH;
  220|   242k|   auto X3 = t4 - t3;
  221|   242k|   const auto t5 = V - X3;
  222|   242k|   const auto t6 = S1 * HHH;
  223|   242k|   const auto t7 = r * t5;
  224|   242k|   auto Y3 = t7 - t6;
  225|   242k|   const auto t8 = b.z() * H;
  226|   242k|   auto Z3 = a.z() * t8;
  227|       |
  228|       |   // if a is identity then return b
  229|   242k|   FieldElement::conditional_assign(X3, Y3, Z3, a_is_identity, b.x(), b.y(), b.z());
  230|       |
  231|       |   // if b is identity then return a
  232|   242k|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  233|       |
  234|   242k|   return ProjectivePoint(X3, Y3, Z3);
  235|   242k|}
pcurves_generic.cpp:_ZN5Botan9to_affineINS_6PCurve12_GLOBAL__N_112GenericCurveEEEDaRKNT_15ProjectivePointE:
   76|    248|inline constexpr auto to_affine(const typename C::ProjectivePoint& pt) {
   77|       |   // Not strictly required right? - default should work as long
   78|       |   // as (0,0) is identity and invert returns 0 on 0
   79|       |
   80|       |   if constexpr(curve_supports_fe_invert2<C>) {
   81|       |      const auto z2_inv = C::fe_invert2(pt.z());
   82|       |      const auto z3_inv = z2_inv.square() * pt.z();
   83|       |      return typename C::AffinePoint(pt.x() * z2_inv, pt.y() * z3_inv);
   84|    248|   } else {
   85|    248|      const auto z_inv = invert_field_element<C>(pt.z());
   86|    248|      const auto z2_inv = z_inv.square();
   87|    248|      const auto z3_inv = z_inv * z2_inv;
   88|    248|      return typename C::AffinePoint(pt.x() * z2_inv, pt.y() * z3_inv);
   89|    248|   }
   90|    248|}
pcurves_generic.cpp:_ZN5Botan15to_affine_batchINS_6PCurve12_GLOBAL__N_112GenericCurveELb1EEEDaNSt3__14spanIKNT_15ProjectivePointELm18446744073709551615EEE:
  107|    342|auto to_affine_batch(std::span<const typename C::ProjectivePoint> projective) {
  108|    342|   using AffinePoint = typename C::AffinePoint;
  109|       |
  110|    342|   const size_t N = projective.size();
  111|    342|   std::vector<AffinePoint> affine;
  112|    342|   affine.reserve(N);
  113|       |
  114|    342|   CT::Choice any_identity = CT::Choice::no();
  115|       |
  116|   517k|   for(const auto& pt : projective) {
  ------------------
  |  Branch (116:23): [True: 517k, False: 342]
  ------------------
  117|   517k|      any_identity = any_identity || pt.is_identity();
  118|   517k|   }
  119|       |
  120|       |   // Conditional acceptable: N is public. State of points is not necessarily
  121|       |   // public, but we don't leak which point was the identity. In practice with
  122|       |   // the algorithms currently in use, the only time an identity can occur is
  123|       |   // during mul2 where the two points g/h have a small relation (ie h = g*k for
  124|       |   // some k < 16)
  125|       |
  126|    342|   if(N <= 2 || any_identity.as_bool()) {
  ------------------
  |  Branch (126:7): [True: 0, False: 342]
  |  Branch (126:17): [True: 0, False: 342]
  ------------------
  127|       |      // If there are identity elements, using the batch inversion gets
  128|       |      // tricky. It can be done, but this should be a rare situation so
  129|       |      // just punt to the serial conversion if it occurs
  130|      0|      for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (130:25): [True: 0, False: 0]
  ------------------
  131|      0|         affine.push_back(to_affine<C>(projective[i]));
  132|      0|      }
  133|    342|   } else {
  134|    342|      std::vector<typename C::FieldElement> c;
  135|    342|      c.reserve(N);
  136|       |
  137|       |      /*
  138|       |      Batch projective->affine using Montgomery's trick
  139|       |
  140|       |      See Algorithm 2.26 in "Guide to Elliptic Curve Cryptography"
  141|       |      (Hankerson, Menezes, Vanstone)
  142|       |      */
  143|       |
  144|    342|      c.push_back(projective[0].z());
  145|   517k|      for(size_t i = 1; i != N; ++i) {
  ------------------
  |  Branch (145:25): [True: 517k, False: 342]
  ------------------
  146|   517k|         c.push_back(c[i - 1] * projective[i].z());
  147|   517k|      }
  148|       |
  149|    342|      auto s_inv = [&]() {
  150|    342|         if constexpr(VariableTime) {
  151|    342|            return c[N - 1].invert_vartime();
  152|    342|         } else {
  153|    342|            return invert_field_element<C>(c[N - 1]);
  154|    342|         }
  155|    342|      }();
  156|       |
  157|   517k|      for(size_t i = N - 1; i > 0; --i) {
  ------------------
  |  Branch (157:29): [True: 517k, False: 342]
  ------------------
  158|   517k|         const auto& p = projective[i];
  159|       |
  160|   517k|         const auto z_inv = s_inv * c[i - 1];
  161|   517k|         const auto z2_inv = z_inv.square();
  162|   517k|         const auto z3_inv = z_inv * z2_inv;
  163|       |
  164|   517k|         s_inv = s_inv * p.z();
  165|       |
  166|   517k|         affine.push_back(AffinePoint(p.x() * z2_inv, p.y() * z3_inv));
  167|   517k|      }
  168|       |
  169|    342|      const auto z2_inv = s_inv.square();
  170|    342|      const auto z3_inv = s_inv * z2_inv;
  171|    342|      affine.push_back(AffinePoint(projective[0].x() * z2_inv, projective[0].y() * z3_inv));
  172|    342|      std::reverse(affine.begin(), affine.end());
  173|    342|      return affine;
  174|    342|   }
  175|       |
  176|      0|   return affine;
  177|    342|}
pcurves_generic.cpp:_ZZN5Botan15to_affine_batchINS_6PCurve12_GLOBAL__N_112GenericCurveELb1EEEDaNSt3__14spanIKNT_15ProjectivePointELm18446744073709551615EEEENKUlvE_clEv:
  149|    342|      auto s_inv = [&]() {
  150|    342|         if constexpr(VariableTime) {
  151|    342|            return c[N - 1].invert_vartime();
  152|       |         } else {
  153|       |            return invert_field_element<C>(c[N - 1]);
  154|       |         }
  155|    342|      }();
pcurves_secp224r1.cpp:_ZN5Botan13dbl_a_minus_3INS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEES8_EEEET_RKSE_:
  362|    731|inline constexpr ProjectivePoint dbl_a_minus_3(const ProjectivePoint& pt) {
  363|       |   /*
  364|       |   if a == -3 then
  365|       |   3*x^2 + a*z^4 == 3*x^2 - 3*z^4 == 3*(x^2-z^4) == 3*(x-z^2)*(x+z^2)
  366|       |   */
  367|    731|   const auto z2 = pt.z().square();
  368|    731|   const auto m = (pt.x() - z2).mul3() * (pt.x() + z2);
  369|       |
  370|       |   // Remaining cost: 3M + 3S + 3A + 2*2 + 1*4 + 1*8
  371|    731|   const auto y2 = pt.y().square();
  372|    731|   const auto s = pt.x().mul4() * y2;
  373|    731|   const auto nx = m.square() - s.mul2();
  374|    731|   const auto ny = m * (s - nx) - y2.square().mul8();
  375|    731|   const auto nz = pt.y().mul2() * pt.z();
  376|       |
  377|    731|   return ProjectivePoint(nx, ny, nz);
  378|    731|}
pcurves_secp224r1.cpp:_ZN5Botan9point_addINS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEES8_EESC_EET_RKSE_SG_:
  187|    645|inline constexpr ProjectivePoint point_add(const ProjectivePoint& a, const ProjectivePoint& b) {
  188|    645|   const auto a_is_identity = a.is_identity();
  189|    645|   const auto b_is_identity = b.is_identity();
  190|       |
  191|    645|   const auto Z1Z1 = a.z().square();
  192|    645|   const auto Z2Z2 = b.z().square();
  193|    645|   const auto U1 = a.x() * Z2Z2;
  194|    645|   const auto U2 = b.x() * Z1Z1;
  195|    645|   const auto S1 = a.y() * b.z() * Z2Z2;
  196|    645|   const auto S2 = b.y() * a.z() * Z1Z1;
  197|    645|   const auto H = U2 - U1;
  198|    645|   const auto r = S2 - S1;
  199|       |
  200|       |   /* Risky conditional
  201|       |   *
  202|       |   * This implementation uses projective coordinates, which do not have an efficient complete
  203|       |   * addition formula. We rely on the design of the multiplication algorithms to avoid doublings.
  204|       |   *
  205|       |   * This conditional only comes into play for the actual doubling case, not x + (-x) which
  206|       |   * is another exceptional case in some circumstances. Here if a == -b then H == 0 && r != 0,
  207|       |   * in which case at the end we'll set z to a.z * b.z * H = 0, resulting in the correct
  208|       |   * output (the identity element)
  209|       |   */
  210|    645|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (210:7): [True: 0, False: 645]
  ------------------
  211|      0|      return a.dbl();
  212|      0|   }
  213|       |
  214|    645|   const auto HH = H.square();
  215|    645|   const auto HHH = H * HH;
  216|    645|   const auto V = U1 * HH;
  217|    645|   const auto t2 = r.square();
  218|    645|   const auto t3 = V + V;
  219|    645|   const auto t4 = t2 - HHH;
  220|    645|   auto X3 = t4 - t3;
  221|    645|   const auto t5 = V - X3;
  222|    645|   const auto t6 = S1 * HHH;
  223|    645|   const auto t7 = r * t5;
  224|    645|   auto Y3 = t7 - t6;
  225|    645|   const auto t8 = b.z() * H;
  226|    645|   auto Z3 = a.z() * t8;
  227|       |
  228|       |   // if a is identity then return b
  229|    645|   FieldElement::conditional_assign(X3, Y3, Z3, a_is_identity, b.x(), b.y(), b.z());
  230|       |
  231|       |   // if b is identity then return a
  232|    645|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  233|       |
  234|    645|   return ProjectivePoint(X3, Y3, Z3);
  235|    645|}
pcurves_secp224r1.cpp:_ZN5Botan15to_affine_batchINS_6PCurve12_GLOBAL__N_19secp224r15CurveELb1EEEDaNSt3__14spanIKNT_15ProjectivePointELm18446744073709551615EEE:
  107|      1|auto to_affine_batch(std::span<const typename C::ProjectivePoint> projective) {
  108|      1|   using AffinePoint = typename C::AffinePoint;
  109|       |
  110|      1|   const size_t N = projective.size();
  111|      1|   std::vector<AffinePoint> affine;
  112|      1|   affine.reserve(N);
  113|       |
  114|      1|   CT::Choice any_identity = CT::Choice::no();
  115|       |
  116|  1.37k|   for(const auto& pt : projective) {
  ------------------
  |  Branch (116:23): [True: 1.37k, False: 1]
  ------------------
  117|  1.37k|      any_identity = any_identity || pt.is_identity();
  118|  1.37k|   }
  119|       |
  120|       |   // Conditional acceptable: N is public. State of points is not necessarily
  121|       |   // public, but we don't leak which point was the identity. In practice with
  122|       |   // the algorithms currently in use, the only time an identity can occur is
  123|       |   // during mul2 where the two points g/h have a small relation (ie h = g*k for
  124|       |   // some k < 16)
  125|       |
  126|      1|   if(N <= 2 || any_identity.as_bool()) {
  ------------------
  |  Branch (126:7): [True: 0, False: 1]
  |  Branch (126:17): [True: 0, False: 1]
  ------------------
  127|       |      // If there are identity elements, using the batch inversion gets
  128|       |      // tricky. It can be done, but this should be a rare situation so
  129|       |      // just punt to the serial conversion if it occurs
  130|      0|      for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (130:25): [True: 0, False: 0]
  ------------------
  131|      0|         affine.push_back(to_affine<C>(projective[i]));
  132|      0|      }
  133|      1|   } else {
  134|      1|      std::vector<typename C::FieldElement> c;
  135|      1|      c.reserve(N);
  136|       |
  137|       |      /*
  138|       |      Batch projective->affine using Montgomery's trick
  139|       |
  140|       |      See Algorithm 2.26 in "Guide to Elliptic Curve Cryptography"
  141|       |      (Hankerson, Menezes, Vanstone)
  142|       |      */
  143|       |
  144|      1|      c.push_back(projective[0].z());
  145|  1.37k|      for(size_t i = 1; i != N; ++i) {
  ------------------
  |  Branch (145:25): [True: 1.37k, False: 1]
  ------------------
  146|  1.37k|         c.push_back(c[i - 1] * projective[i].z());
  147|  1.37k|      }
  148|       |
  149|      1|      auto s_inv = [&]() {
  150|      1|         if constexpr(VariableTime) {
  151|      1|            return c[N - 1].invert_vartime();
  152|      1|         } else {
  153|      1|            return invert_field_element<C>(c[N - 1]);
  154|      1|         }
  155|      1|      }();
  156|       |
  157|  1.37k|      for(size_t i = N - 1; i > 0; --i) {
  ------------------
  |  Branch (157:29): [True: 1.37k, False: 1]
  ------------------
  158|  1.37k|         const auto& p = projective[i];
  159|       |
  160|  1.37k|         const auto z_inv = s_inv * c[i - 1];
  161|  1.37k|         const auto z2_inv = z_inv.square();
  162|  1.37k|         const auto z3_inv = z_inv * z2_inv;
  163|       |
  164|  1.37k|         s_inv = s_inv * p.z();
  165|       |
  166|  1.37k|         affine.push_back(AffinePoint(p.x() * z2_inv, p.y() * z3_inv));
  167|  1.37k|      }
  168|       |
  169|      1|      const auto z2_inv = s_inv.square();
  170|      1|      const auto z3_inv = s_inv * z2_inv;
  171|      1|      affine.push_back(AffinePoint(projective[0].x() * z2_inv, projective[0].y() * z3_inv));
  172|      1|      std::reverse(affine.begin(), affine.end());
  173|      1|      return affine;
  174|      1|   }
  175|       |
  176|      0|   return affine;
  177|      1|}
pcurves_secp224r1.cpp:_ZN5Botan9to_affineINS_6PCurve12_GLOBAL__N_19secp224r15CurveEEEDaRKNT_15ProjectivePointE:
   76|    198|inline constexpr auto to_affine(const typename C::ProjectivePoint& pt) {
   77|       |   // Not strictly required right? - default should work as long
   78|       |   // as (0,0) is identity and invert returns 0 on 0
   79|       |
   80|    198|   if constexpr(curve_supports_fe_invert2<C>) {
   81|    198|      const auto z2_inv = C::fe_invert2(pt.z());
   82|    198|      const auto z3_inv = z2_inv.square() * pt.z();
   83|    198|      return typename C::AffinePoint(pt.x() * z2_inv, pt.y() * z3_inv);
   84|       |   } else {
   85|       |      const auto z_inv = invert_field_element<C>(pt.z());
   86|       |      const auto z2_inv = z_inv.square();
   87|       |      const auto z3_inv = z_inv * z2_inv;
   88|       |      return typename C::AffinePoint(pt.x() * z2_inv, pt.y() * z3_inv);
   89|       |   }
   90|    198|}
pcurves_secp224r1.cpp:_ZZN5Botan15to_affine_batchINS_6PCurve12_GLOBAL__N_19secp224r15CurveELb1EEEDaNSt3__14spanIKNT_15ProjectivePointELm18446744073709551615EEEENKUlvE_clEv:
  149|      1|      auto s_inv = [&]() {
  150|      1|         if constexpr(VariableTime) {
  151|      1|            return c[N - 1].invert_vartime();
  152|       |         } else {
  153|       |            return invert_field_element<C>(c[N - 1]);
  154|       |         }
  155|      1|      }();
pcurves_secp224r1.cpp:_ZN5Botan22point_add_or_sub_mixedINS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEES8_EENS_16AffineCurvePointISC_EESC_EET_RKSG_RKT0_NS_2CT6ChoiceERKT1_:
  296|  7.32k|                                                        const FieldElement& one) {
  297|  7.32k|   const auto a_is_identity = a.is_identity();
  298|  7.32k|   const auto b_is_identity = b.is_identity();
  299|       |
  300|       |   /*
  301|       |   https://hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html#addition-add-1998-cmo-2
  302|       |
  303|       |   Cost: 8M + 3S + 6add + 1*2
  304|       |   */
  305|       |
  306|  7.32k|   auto by = b.y();
  307|  7.32k|   by.conditional_assign(sub, by.negate());
  308|       |
  309|  7.32k|   const auto Z1Z1 = a.z().square();
  310|  7.32k|   const auto U2 = b.x() * Z1Z1;
  311|  7.32k|   const auto S2 = by * a.z() * Z1Z1;
  312|  7.32k|   const auto H = U2 - a.x();
  313|  7.32k|   const auto r = S2 - a.y();
  314|       |
  315|       |   /* Risky conditional
  316|       |   *
  317|       |   * This implementation uses projective coordinates, which do not have an efficient complete
  318|       |   * addition formula. We rely on the design of the multiplication algorithms to avoid doublings.
  319|       |   *
  320|       |   * This conditional only comes into play for the actual doubling case, not x + (-x) which
  321|       |   * is another exceptional case in some circumstances. Here if a == -b then H == 0 && r != 0,
  322|       |   * in which case at the end we'll set z to a.z * H = 0, resulting in the correct output
  323|       |   * (the identity element)
  324|       |   */
  325|  7.32k|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (325:7): [True: 0, False: 7.32k]
  ------------------
  326|      0|      return a.dbl();
  327|      0|   }
  328|       |
  329|  7.32k|   const auto HH = H.square();
  330|  7.32k|   const auto HHH = H * HH;
  331|  7.32k|   const auto V = a.x() * HH;
  332|  7.32k|   const auto t2 = r.square();
  333|  7.32k|   const auto t3 = V + V;
  334|  7.32k|   const auto t4 = t2 - HHH;
  335|  7.32k|   auto X3 = t4 - t3;
  336|  7.32k|   const auto t5 = V - X3;
  337|  7.32k|   const auto t6 = a.y() * HHH;
  338|  7.32k|   const auto t7 = r * t5;
  339|  7.32k|   auto Y3 = t7 - t6;
  340|  7.32k|   auto Z3 = a.z() * H;
  341|       |
  342|       |   // if a is identity then return b
  343|  7.32k|   FieldElement::conditional_assign(X3, Y3, Z3, a_is_identity, b.x(), by, one);
  344|       |
  345|       |   // if b is identity then return a
  346|  7.32k|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  347|       |
  348|  7.32k|   return ProjectivePoint(X3, Y3, Z3);
  349|  7.32k|}
pcurves_secp256k1.cpp:_ZN5Botan10dbl_a_zeroINS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEES8_EEEET_RKSE_:
  381|    833|inline constexpr ProjectivePoint dbl_a_zero(const ProjectivePoint& pt) {
  382|       |   // If a == 0 then 3*x^2 + a*z^4 == 3*x^2
  383|       |   // Cost: 1S + 1*3
  384|    833|   const auto m = pt.x().square().mul3();
  385|       |
  386|       |   // Remaining cost: 3M + 3S + 3A + 2*2 + 1*4 + 1*8
  387|    833|   const auto y2 = pt.y().square();
  388|    833|   const auto s = pt.x().mul4() * y2;
  389|    833|   const auto nx = m.square() - s.mul2();
  390|    833|   const auto ny = m * (s - nx) - y2.square().mul8();
  391|    833|   const auto nz = pt.y().mul2() * pt.z();
  392|       |
  393|    833|   return ProjectivePoint(nx, ny, nz);
  394|    833|}
pcurves_secp256k1.cpp:_ZN5Botan9point_addINS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEES8_EESC_EET_RKSE_SG_:
  187|    735|inline constexpr ProjectivePoint point_add(const ProjectivePoint& a, const ProjectivePoint& b) {
  188|    735|   const auto a_is_identity = a.is_identity();
  189|    735|   const auto b_is_identity = b.is_identity();
  190|       |
  191|    735|   const auto Z1Z1 = a.z().square();
  192|    735|   const auto Z2Z2 = b.z().square();
  193|    735|   const auto U1 = a.x() * Z2Z2;
  194|    735|   const auto U2 = b.x() * Z1Z1;
  195|    735|   const auto S1 = a.y() * b.z() * Z2Z2;
  196|    735|   const auto S2 = b.y() * a.z() * Z1Z1;
  197|    735|   const auto H = U2 - U1;
  198|    735|   const auto r = S2 - S1;
  199|       |
  200|       |   /* Risky conditional
  201|       |   *
  202|       |   * This implementation uses projective coordinates, which do not have an efficient complete
  203|       |   * addition formula. We rely on the design of the multiplication algorithms to avoid doublings.
  204|       |   *
  205|       |   * This conditional only comes into play for the actual doubling case, not x + (-x) which
  206|       |   * is another exceptional case in some circumstances. Here if a == -b then H == 0 && r != 0,
  207|       |   * in which case at the end we'll set z to a.z * b.z * H = 0, resulting in the correct
  208|       |   * output (the identity element)
  209|       |   */
  210|    735|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (210:7): [True: 0, False: 735]
  ------------------
  211|      0|      return a.dbl();
  212|      0|   }
  213|       |
  214|    735|   const auto HH = H.square();
  215|    735|   const auto HHH = H * HH;
  216|    735|   const auto V = U1 * HH;
  217|    735|   const auto t2 = r.square();
  218|    735|   const auto t3 = V + V;
  219|    735|   const auto t4 = t2 - HHH;
  220|    735|   auto X3 = t4 - t3;
  221|    735|   const auto t5 = V - X3;
  222|    735|   const auto t6 = S1 * HHH;
  223|    735|   const auto t7 = r * t5;
  224|    735|   auto Y3 = t7 - t6;
  225|    735|   const auto t8 = b.z() * H;
  226|    735|   auto Z3 = a.z() * t8;
  227|       |
  228|       |   // if a is identity then return b
  229|    735|   FieldElement::conditional_assign(X3, Y3, Z3, a_is_identity, b.x(), b.y(), b.z());
  230|       |
  231|       |   // if b is identity then return a
  232|    735|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  233|       |
  234|    735|   return ProjectivePoint(X3, Y3, Z3);
  235|    735|}
pcurves_secp256k1.cpp:_ZN5Botan15to_affine_batchINS_6PCurve12_GLOBAL__N_19secp256k15CurveELb1EEEDaNSt3__14spanIKNT_15ProjectivePointELm18446744073709551615EEE:
  107|      1|auto to_affine_batch(std::span<const typename C::ProjectivePoint> projective) {
  108|      1|   using AffinePoint = typename C::AffinePoint;
  109|       |
  110|      1|   const size_t N = projective.size();
  111|      1|   std::vector<AffinePoint> affine;
  112|      1|   affine.reserve(N);
  113|       |
  114|      1|   CT::Choice any_identity = CT::Choice::no();
  115|       |
  116|  1.56k|   for(const auto& pt : projective) {
  ------------------
  |  Branch (116:23): [True: 1.56k, False: 1]
  ------------------
  117|  1.56k|      any_identity = any_identity || pt.is_identity();
  118|  1.56k|   }
  119|       |
  120|       |   // Conditional acceptable: N is public. State of points is not necessarily
  121|       |   // public, but we don't leak which point was the identity. In practice with
  122|       |   // the algorithms currently in use, the only time an identity can occur is
  123|       |   // during mul2 where the two points g/h have a small relation (ie h = g*k for
  124|       |   // some k < 16)
  125|       |
  126|      1|   if(N <= 2 || any_identity.as_bool()) {
  ------------------
  |  Branch (126:7): [True: 0, False: 1]
  |  Branch (126:17): [True: 0, False: 1]
  ------------------
  127|       |      // If there are identity elements, using the batch inversion gets
  128|       |      // tricky. It can be done, but this should be a rare situation so
  129|       |      // just punt to the serial conversion if it occurs
  130|      0|      for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (130:25): [True: 0, False: 0]
  ------------------
  131|      0|         affine.push_back(to_affine<C>(projective[i]));
  132|      0|      }
  133|      1|   } else {
  134|      1|      std::vector<typename C::FieldElement> c;
  135|      1|      c.reserve(N);
  136|       |
  137|       |      /*
  138|       |      Batch projective->affine using Montgomery's trick
  139|       |
  140|       |      See Algorithm 2.26 in "Guide to Elliptic Curve Cryptography"
  141|       |      (Hankerson, Menezes, Vanstone)
  142|       |      */
  143|       |
  144|      1|      c.push_back(projective[0].z());
  145|  1.56k|      for(size_t i = 1; i != N; ++i) {
  ------------------
  |  Branch (145:25): [True: 1.56k, False: 1]
  ------------------
  146|  1.56k|         c.push_back(c[i - 1] * projective[i].z());
  147|  1.56k|      }
  148|       |
  149|      1|      auto s_inv = [&]() {
  150|      1|         if constexpr(VariableTime) {
  151|      1|            return c[N - 1].invert_vartime();
  152|      1|         } else {
  153|      1|            return invert_field_element<C>(c[N - 1]);
  154|      1|         }
  155|      1|      }();
  156|       |
  157|  1.56k|      for(size_t i = N - 1; i > 0; --i) {
  ------------------
  |  Branch (157:29): [True: 1.56k, False: 1]
  ------------------
  158|  1.56k|         const auto& p = projective[i];
  159|       |
  160|  1.56k|         const auto z_inv = s_inv * c[i - 1];
  161|  1.56k|         const auto z2_inv = z_inv.square();
  162|  1.56k|         const auto z3_inv = z_inv * z2_inv;
  163|       |
  164|  1.56k|         s_inv = s_inv * p.z();
  165|       |
  166|  1.56k|         affine.push_back(AffinePoint(p.x() * z2_inv, p.y() * z3_inv));
  167|  1.56k|      }
  168|       |
  169|      1|      const auto z2_inv = s_inv.square();
  170|      1|      const auto z3_inv = s_inv * z2_inv;
  171|      1|      affine.push_back(AffinePoint(projective[0].x() * z2_inv, projective[0].y() * z3_inv));
  172|      1|      std::reverse(affine.begin(), affine.end());
  173|      1|      return affine;
  174|      1|   }
  175|       |
  176|      0|   return affine;
  177|      1|}
pcurves_secp256k1.cpp:_ZN5Botan9to_affineINS_6PCurve12_GLOBAL__N_19secp256k15CurveEEEDaRKNT_15ProjectivePointE:
   76|    149|inline constexpr auto to_affine(const typename C::ProjectivePoint& pt) {
   77|       |   // Not strictly required right? - default should work as long
   78|       |   // as (0,0) is identity and invert returns 0 on 0
   79|       |
   80|    149|   if constexpr(curve_supports_fe_invert2<C>) {
   81|    149|      const auto z2_inv = C::fe_invert2(pt.z());
   82|    149|      const auto z3_inv = z2_inv.square() * pt.z();
   83|    149|      return typename C::AffinePoint(pt.x() * z2_inv, pt.y() * z3_inv);
   84|       |   } else {
   85|       |      const auto z_inv = invert_field_element<C>(pt.z());
   86|       |      const auto z2_inv = z_inv.square();
   87|       |      const auto z3_inv = z_inv * z2_inv;
   88|       |      return typename C::AffinePoint(pt.x() * z2_inv, pt.y() * z3_inv);
   89|       |   }
   90|    149|}
pcurves_secp256k1.cpp:_ZZN5Botan15to_affine_batchINS_6PCurve12_GLOBAL__N_19secp256k15CurveELb1EEEDaNSt3__14spanIKNT_15ProjectivePointELm18446744073709551615EEEENKUlvE_clEv:
  149|      1|      auto s_inv = [&]() {
  150|      1|         if constexpr(VariableTime) {
  151|      1|            return c[N - 1].invert_vartime();
  152|       |         } else {
  153|       |            return invert_field_element<C>(c[N - 1]);
  154|       |         }
  155|      1|      }();
pcurves_secp256k1.cpp:_ZN5Botan22point_add_or_sub_mixedINS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEES8_EENS_16AffineCurvePointISC_EESC_EET_RKSG_RKT0_NS_2CT6ChoiceERKT1_:
  296|  6.25k|                                                        const FieldElement& one) {
  297|  6.25k|   const auto a_is_identity = a.is_identity();
  298|  6.25k|   const auto b_is_identity = b.is_identity();
  299|       |
  300|       |   /*
  301|       |   https://hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html#addition-add-1998-cmo-2
  302|       |
  303|       |   Cost: 8M + 3S + 6add + 1*2
  304|       |   */
  305|       |
  306|  6.25k|   auto by = b.y();
  307|  6.25k|   by.conditional_assign(sub, by.negate());
  308|       |
  309|  6.25k|   const auto Z1Z1 = a.z().square();
  310|  6.25k|   const auto U2 = b.x() * Z1Z1;
  311|  6.25k|   const auto S2 = by * a.z() * Z1Z1;
  312|  6.25k|   const auto H = U2 - a.x();
  313|  6.25k|   const auto r = S2 - a.y();
  314|       |
  315|       |   /* Risky conditional
  316|       |   *
  317|       |   * This implementation uses projective coordinates, which do not have an efficient complete
  318|       |   * addition formula. We rely on the design of the multiplication algorithms to avoid doublings.
  319|       |   *
  320|       |   * This conditional only comes into play for the actual doubling case, not x + (-x) which
  321|       |   * is another exceptional case in some circumstances. Here if a == -b then H == 0 && r != 0,
  322|       |   * in which case at the end we'll set z to a.z * H = 0, resulting in the correct output
  323|       |   * (the identity element)
  324|       |   */
  325|  6.25k|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (325:7): [True: 0, False: 6.25k]
  ------------------
  326|      0|      return a.dbl();
  327|      0|   }
  328|       |
  329|  6.25k|   const auto HH = H.square();
  330|  6.25k|   const auto HHH = H * HH;
  331|  6.25k|   const auto V = a.x() * HH;
  332|  6.25k|   const auto t2 = r.square();
  333|  6.25k|   const auto t3 = V + V;
  334|  6.25k|   const auto t4 = t2 - HHH;
  335|  6.25k|   auto X3 = t4 - t3;
  336|  6.25k|   const auto t5 = V - X3;
  337|  6.25k|   const auto t6 = a.y() * HHH;
  338|  6.25k|   const auto t7 = r * t5;
  339|  6.25k|   auto Y3 = t7 - t6;
  340|  6.25k|   auto Z3 = a.z() * H;
  341|       |
  342|       |   // if a is identity then return b
  343|  6.25k|   FieldElement::conditional_assign(X3, Y3, Z3, a_is_identity, b.x(), by, one);
  344|       |
  345|       |   // if b is identity then return a
  346|  6.25k|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  347|       |
  348|  6.25k|   return ProjectivePoint(X3, Y3, Z3);
  349|  6.25k|}
pcurves_secp256r1.cpp:_ZN5Botan13dbl_a_minus_3INS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS4_9secp256r16ParamsES5_E11FieldParamsEEEEES8_EEEET_RKSE_:
  362|    833|inline constexpr ProjectivePoint dbl_a_minus_3(const ProjectivePoint& pt) {
  363|       |   /*
  364|       |   if a == -3 then
  365|       |   3*x^2 + a*z^4 == 3*x^2 - 3*z^4 == 3*(x^2-z^4) == 3*(x-z^2)*(x+z^2)
  366|       |   */
  367|    833|   const auto z2 = pt.z().square();
  368|    833|   const auto m = (pt.x() - z2).mul3() * (pt.x() + z2);
  369|       |
  370|       |   // Remaining cost: 3M + 3S + 3A + 2*2 + 1*4 + 1*8
  371|    833|   const auto y2 = pt.y().square();
  372|    833|   const auto s = pt.x().mul4() * y2;
  373|    833|   const auto nx = m.square() - s.mul2();
  374|    833|   const auto ny = m * (s - nx) - y2.square().mul8();
  375|    833|   const auto nz = pt.y().mul2() * pt.z();
  376|       |
  377|    833|   return ProjectivePoint(nx, ny, nz);
  378|    833|}
pcurves_secp256r1.cpp:_ZN5Botan9point_addINS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS4_9secp256r16ParamsES5_E11FieldParamsEEEEES8_EESC_EET_RKSE_SG_:
  187|    735|inline constexpr ProjectivePoint point_add(const ProjectivePoint& a, const ProjectivePoint& b) {
  188|    735|   const auto a_is_identity = a.is_identity();
  189|    735|   const auto b_is_identity = b.is_identity();
  190|       |
  191|    735|   const auto Z1Z1 = a.z().square();
  192|    735|   const auto Z2Z2 = b.z().square();
  193|    735|   const auto U1 = a.x() * Z2Z2;
  194|    735|   const auto U2 = b.x() * Z1Z1;
  195|    735|   const auto S1 = a.y() * b.z() * Z2Z2;
  196|    735|   const auto S2 = b.y() * a.z() * Z1Z1;
  197|    735|   const auto H = U2 - U1;
  198|    735|   const auto r = S2 - S1;
  199|       |
  200|       |   /* Risky conditional
  201|       |   *
  202|       |   * This implementation uses projective coordinates, which do not have an efficient complete
  203|       |   * addition formula. We rely on the design of the multiplication algorithms to avoid doublings.
  204|       |   *
  205|       |   * This conditional only comes into play for the actual doubling case, not x + (-x) which
  206|       |   * is another exceptional case in some circumstances. Here if a == -b then H == 0 && r != 0,
  207|       |   * in which case at the end we'll set z to a.z * b.z * H = 0, resulting in the correct
  208|       |   * output (the identity element)
  209|       |   */
  210|    735|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (210:7): [True: 0, False: 735]
  ------------------
  211|      0|      return a.dbl();
  212|      0|   }
  213|       |
  214|    735|   const auto HH = H.square();
  215|    735|   const auto HHH = H * HH;
  216|    735|   const auto V = U1 * HH;
  217|    735|   const auto t2 = r.square();
  218|    735|   const auto t3 = V + V;
  219|    735|   const auto t4 = t2 - HHH;
  220|    735|   auto X3 = t4 - t3;
  221|    735|   const auto t5 = V - X3;
  222|    735|   const auto t6 = S1 * HHH;
  223|    735|   const auto t7 = r * t5;
  224|    735|   auto Y3 = t7 - t6;
  225|    735|   const auto t8 = b.z() * H;
  226|    735|   auto Z3 = a.z() * t8;
  227|       |
  228|       |   // if a is identity then return b
  229|    735|   FieldElement::conditional_assign(X3, Y3, Z3, a_is_identity, b.x(), b.y(), b.z());
  230|       |
  231|       |   // if b is identity then return a
  232|    735|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  233|       |
  234|    735|   return ProjectivePoint(X3, Y3, Z3);
  235|    735|}
pcurves_secp256r1.cpp:_ZN5Botan15to_affine_batchINS_6PCurve12_GLOBAL__N_19secp256r15CurveELb1EEEDaNSt3__14spanIKNT_15ProjectivePointELm18446744073709551615EEE:
  107|      1|auto to_affine_batch(std::span<const typename C::ProjectivePoint> projective) {
  108|      1|   using AffinePoint = typename C::AffinePoint;
  109|       |
  110|      1|   const size_t N = projective.size();
  111|      1|   std::vector<AffinePoint> affine;
  112|      1|   affine.reserve(N);
  113|       |
  114|      1|   CT::Choice any_identity = CT::Choice::no();
  115|       |
  116|  1.56k|   for(const auto& pt : projective) {
  ------------------
  |  Branch (116:23): [True: 1.56k, False: 1]
  ------------------
  117|  1.56k|      any_identity = any_identity || pt.is_identity();
  118|  1.56k|   }
  119|       |
  120|       |   // Conditional acceptable: N is public. State of points is not necessarily
  121|       |   // public, but we don't leak which point was the identity. In practice with
  122|       |   // the algorithms currently in use, the only time an identity can occur is
  123|       |   // during mul2 where the two points g/h have a small relation (ie h = g*k for
  124|       |   // some k < 16)
  125|       |
  126|      1|   if(N <= 2 || any_identity.as_bool()) {
  ------------------
  |  Branch (126:7): [True: 0, False: 1]
  |  Branch (126:17): [True: 0, False: 1]
  ------------------
  127|       |      // If there are identity elements, using the batch inversion gets
  128|       |      // tricky. It can be done, but this should be a rare situation so
  129|       |      // just punt to the serial conversion if it occurs
  130|      0|      for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (130:25): [True: 0, False: 0]
  ------------------
  131|      0|         affine.push_back(to_affine<C>(projective[i]));
  132|      0|      }
  133|      1|   } else {
  134|      1|      std::vector<typename C::FieldElement> c;
  135|      1|      c.reserve(N);
  136|       |
  137|       |      /*
  138|       |      Batch projective->affine using Montgomery's trick
  139|       |
  140|       |      See Algorithm 2.26 in "Guide to Elliptic Curve Cryptography"
  141|       |      (Hankerson, Menezes, Vanstone)
  142|       |      */
  143|       |
  144|      1|      c.push_back(projective[0].z());
  145|  1.56k|      for(size_t i = 1; i != N; ++i) {
  ------------------
  |  Branch (145:25): [True: 1.56k, False: 1]
  ------------------
  146|  1.56k|         c.push_back(c[i - 1] * projective[i].z());
  147|  1.56k|      }
  148|       |
  149|      1|      auto s_inv = [&]() {
  150|      1|         if constexpr(VariableTime) {
  151|      1|            return c[N - 1].invert_vartime();
  152|      1|         } else {
  153|      1|            return invert_field_element<C>(c[N - 1]);
  154|      1|         }
  155|      1|      }();
  156|       |
  157|  1.56k|      for(size_t i = N - 1; i > 0; --i) {
  ------------------
  |  Branch (157:29): [True: 1.56k, False: 1]
  ------------------
  158|  1.56k|         const auto& p = projective[i];
  159|       |
  160|  1.56k|         const auto z_inv = s_inv * c[i - 1];
  161|  1.56k|         const auto z2_inv = z_inv.square();
  162|  1.56k|         const auto z3_inv = z_inv * z2_inv;
  163|       |
  164|  1.56k|         s_inv = s_inv * p.z();
  165|       |
  166|  1.56k|         affine.push_back(AffinePoint(p.x() * z2_inv, p.y() * z3_inv));
  167|  1.56k|      }
  168|       |
  169|      1|      const auto z2_inv = s_inv.square();
  170|      1|      const auto z3_inv = s_inv * z2_inv;
  171|      1|      affine.push_back(AffinePoint(projective[0].x() * z2_inv, projective[0].y() * z3_inv));
  172|      1|      std::reverse(affine.begin(), affine.end());
  173|      1|      return affine;
  174|      1|   }
  175|       |
  176|      0|   return affine;
  177|      1|}
pcurves_secp256r1.cpp:_ZN5Botan9to_affineINS_6PCurve12_GLOBAL__N_19secp256r15CurveEEEDaRKNT_15ProjectivePointE:
   76|     85|inline constexpr auto to_affine(const typename C::ProjectivePoint& pt) {
   77|       |   // Not strictly required right? - default should work as long
   78|       |   // as (0,0) is identity and invert returns 0 on 0
   79|       |
   80|     85|   if constexpr(curve_supports_fe_invert2<C>) {
   81|     85|      const auto z2_inv = C::fe_invert2(pt.z());
   82|     85|      const auto z3_inv = z2_inv.square() * pt.z();
   83|     85|      return typename C::AffinePoint(pt.x() * z2_inv, pt.y() * z3_inv);
   84|       |   } else {
   85|       |      const auto z_inv = invert_field_element<C>(pt.z());
   86|       |      const auto z2_inv = z_inv.square();
   87|       |      const auto z3_inv = z_inv * z2_inv;
   88|       |      return typename C::AffinePoint(pt.x() * z2_inv, pt.y() * z3_inv);
   89|       |   }
   90|     85|}
pcurves_secp256r1.cpp:_ZZN5Botan15to_affine_batchINS_6PCurve12_GLOBAL__N_19secp256r15CurveELb1EEEDaNSt3__14spanIKNT_15ProjectivePointELm18446744073709551615EEEENKUlvE_clEv:
  149|      1|      auto s_inv = [&]() {
  150|      1|         if constexpr(VariableTime) {
  151|      1|            return c[N - 1].invert_vartime();
  152|       |         } else {
  153|       |            return invert_field_element<C>(c[N - 1]);
  154|       |         }
  155|      1|      }();
pcurves_secp256r1.cpp:_ZN5Botan22point_add_or_sub_mixedINS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS4_9secp256r16ParamsES5_E11FieldParamsEEEEES8_EENS_16AffineCurvePointISC_EESC_EET_RKSG_RKT0_NS_2CT6ChoiceERKT1_:
  296|  3.57k|                                                        const FieldElement& one) {
  297|  3.57k|   const auto a_is_identity = a.is_identity();
  298|  3.57k|   const auto b_is_identity = b.is_identity();
  299|       |
  300|       |   /*
  301|       |   https://hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html#addition-add-1998-cmo-2
  302|       |
  303|       |   Cost: 8M + 3S + 6add + 1*2
  304|       |   */
  305|       |
  306|  3.57k|   auto by = b.y();
  307|  3.57k|   by.conditional_assign(sub, by.negate());
  308|       |
  309|  3.57k|   const auto Z1Z1 = a.z().square();
  310|  3.57k|   const auto U2 = b.x() * Z1Z1;
  311|  3.57k|   const auto S2 = by * a.z() * Z1Z1;
  312|  3.57k|   const auto H = U2 - a.x();
  313|  3.57k|   const auto r = S2 - a.y();
  314|       |
  315|       |   /* Risky conditional
  316|       |   *
  317|       |   * This implementation uses projective coordinates, which do not have an efficient complete
  318|       |   * addition formula. We rely on the design of the multiplication algorithms to avoid doublings.
  319|       |   *
  320|       |   * This conditional only comes into play for the actual doubling case, not x + (-x) which
  321|       |   * is another exceptional case in some circumstances. Here if a == -b then H == 0 && r != 0,
  322|       |   * in which case at the end we'll set z to a.z * H = 0, resulting in the correct output
  323|       |   * (the identity element)
  324|       |   */
  325|  3.57k|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (325:7): [True: 0, False: 3.57k]
  ------------------
  326|      0|      return a.dbl();
  327|      0|   }
  328|       |
  329|  3.57k|   const auto HH = H.square();
  330|  3.57k|   const auto HHH = H * HH;
  331|  3.57k|   const auto V = a.x() * HH;
  332|  3.57k|   const auto t2 = r.square();
  333|  3.57k|   const auto t3 = V + V;
  334|  3.57k|   const auto t4 = t2 - HHH;
  335|  3.57k|   auto X3 = t4 - t3;
  336|  3.57k|   const auto t5 = V - X3;
  337|  3.57k|   const auto t6 = a.y() * HHH;
  338|  3.57k|   const auto t7 = r * t5;
  339|  3.57k|   auto Y3 = t7 - t6;
  340|  3.57k|   auto Z3 = a.z() * H;
  341|       |
  342|       |   // if a is identity then return b
  343|  3.57k|   FieldElement::conditional_assign(X3, Y3, Z3, a_is_identity, b.x(), by, one);
  344|       |
  345|       |   // if b is identity then return a
  346|  3.57k|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  347|       |
  348|  3.57k|   return ProjectivePoint(X3, Y3, Z3);
  349|  3.57k|}
pcurves_secp384r1.cpp:_ZN5Botan13dbl_a_minus_3INS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS4_9secp384r16ParamsES5_E11FieldParamsEEEEES8_EEEET_RKSE_:
  362|  1.24k|inline constexpr ProjectivePoint dbl_a_minus_3(const ProjectivePoint& pt) {
  363|       |   /*
  364|       |   if a == -3 then
  365|       |   3*x^2 + a*z^4 == 3*x^2 - 3*z^4 == 3*(x^2-z^4) == 3*(x-z^2)*(x+z^2)
  366|       |   */
  367|  1.24k|   const auto z2 = pt.z().square();
  368|  1.24k|   const auto m = (pt.x() - z2).mul3() * (pt.x() + z2);
  369|       |
  370|       |   // Remaining cost: 3M + 3S + 3A + 2*2 + 1*4 + 1*8
  371|  1.24k|   const auto y2 = pt.y().square();
  372|  1.24k|   const auto s = pt.x().mul4() * y2;
  373|  1.24k|   const auto nx = m.square() - s.mul2();
  374|  1.24k|   const auto ny = m * (s - nx) - y2.square().mul8();
  375|  1.24k|   const auto nz = pt.y().mul2() * pt.z();
  376|       |
  377|  1.24k|   return ProjectivePoint(nx, ny, nz);
  378|  1.24k|}
pcurves_secp384r1.cpp:_ZN5Botan9point_addINS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS4_9secp384r16ParamsES5_E11FieldParamsEEEEES8_EESC_EET_RKSE_SG_:
  187|  1.09k|inline constexpr ProjectivePoint point_add(const ProjectivePoint& a, const ProjectivePoint& b) {
  188|  1.09k|   const auto a_is_identity = a.is_identity();
  189|  1.09k|   const auto b_is_identity = b.is_identity();
  190|       |
  191|  1.09k|   const auto Z1Z1 = a.z().square();
  192|  1.09k|   const auto Z2Z2 = b.z().square();
  193|  1.09k|   const auto U1 = a.x() * Z2Z2;
  194|  1.09k|   const auto U2 = b.x() * Z1Z1;
  195|  1.09k|   const auto S1 = a.y() * b.z() * Z2Z2;
  196|  1.09k|   const auto S2 = b.y() * a.z() * Z1Z1;
  197|  1.09k|   const auto H = U2 - U1;
  198|  1.09k|   const auto r = S2 - S1;
  199|       |
  200|       |   /* Risky conditional
  201|       |   *
  202|       |   * This implementation uses projective coordinates, which do not have an efficient complete
  203|       |   * addition formula. We rely on the design of the multiplication algorithms to avoid doublings.
  204|       |   *
  205|       |   * This conditional only comes into play for the actual doubling case, not x + (-x) which
  206|       |   * is another exceptional case in some circumstances. Here if a == -b then H == 0 && r != 0,
  207|       |   * in which case at the end we'll set z to a.z * b.z * H = 0, resulting in the correct
  208|       |   * output (the identity element)
  209|       |   */
  210|  1.09k|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (210:7): [True: 0, False: 1.09k]
  ------------------
  211|      0|      return a.dbl();
  212|      0|   }
  213|       |
  214|  1.09k|   const auto HH = H.square();
  215|  1.09k|   const auto HHH = H * HH;
  216|  1.09k|   const auto V = U1 * HH;
  217|  1.09k|   const auto t2 = r.square();
  218|  1.09k|   const auto t3 = V + V;
  219|  1.09k|   const auto t4 = t2 - HHH;
  220|  1.09k|   auto X3 = t4 - t3;
  221|  1.09k|   const auto t5 = V - X3;
  222|  1.09k|   const auto t6 = S1 * HHH;
  223|  1.09k|   const auto t7 = r * t5;
  224|  1.09k|   auto Y3 = t7 - t6;
  225|  1.09k|   const auto t8 = b.z() * H;
  226|  1.09k|   auto Z3 = a.z() * t8;
  227|       |
  228|       |   // if a is identity then return b
  229|  1.09k|   FieldElement::conditional_assign(X3, Y3, Z3, a_is_identity, b.x(), b.y(), b.z());
  230|       |
  231|       |   // if b is identity then return a
  232|  1.09k|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  233|       |
  234|  1.09k|   return ProjectivePoint(X3, Y3, Z3);
  235|  1.09k|}
pcurves_secp384r1.cpp:_ZN5Botan15to_affine_batchINS_6PCurve12_GLOBAL__N_19secp384r15CurveELb1EEEDaNSt3__14spanIKNT_15ProjectivePointELm18446744073709551615EEE:
  107|      1|auto to_affine_batch(std::span<const typename C::ProjectivePoint> projective) {
  108|      1|   using AffinePoint = typename C::AffinePoint;
  109|       |
  110|      1|   const size_t N = projective.size();
  111|      1|   std::vector<AffinePoint> affine;
  112|      1|   affine.reserve(N);
  113|       |
  114|      1|   CT::Choice any_identity = CT::Choice::no();
  115|       |
  116|  2.33k|   for(const auto& pt : projective) {
  ------------------
  |  Branch (116:23): [True: 2.33k, False: 1]
  ------------------
  117|  2.33k|      any_identity = any_identity || pt.is_identity();
  118|  2.33k|   }
  119|       |
  120|       |   // Conditional acceptable: N is public. State of points is not necessarily
  121|       |   // public, but we don't leak which point was the identity. In practice with
  122|       |   // the algorithms currently in use, the only time an identity can occur is
  123|       |   // during mul2 where the two points g/h have a small relation (ie h = g*k for
  124|       |   // some k < 16)
  125|       |
  126|      1|   if(N <= 2 || any_identity.as_bool()) {
  ------------------
  |  Branch (126:7): [True: 0, False: 1]
  |  Branch (126:17): [True: 0, False: 1]
  ------------------
  127|       |      // If there are identity elements, using the batch inversion gets
  128|       |      // tricky. It can be done, but this should be a rare situation so
  129|       |      // just punt to the serial conversion if it occurs
  130|      0|      for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (130:25): [True: 0, False: 0]
  ------------------
  131|      0|         affine.push_back(to_affine<C>(projective[i]));
  132|      0|      }
  133|      1|   } else {
  134|      1|      std::vector<typename C::FieldElement> c;
  135|      1|      c.reserve(N);
  136|       |
  137|       |      /*
  138|       |      Batch projective->affine using Montgomery's trick
  139|       |
  140|       |      See Algorithm 2.26 in "Guide to Elliptic Curve Cryptography"
  141|       |      (Hankerson, Menezes, Vanstone)
  142|       |      */
  143|       |
  144|      1|      c.push_back(projective[0].z());
  145|  2.33k|      for(size_t i = 1; i != N; ++i) {
  ------------------
  |  Branch (145:25): [True: 2.33k, False: 1]
  ------------------
  146|  2.33k|         c.push_back(c[i - 1] * projective[i].z());
  147|  2.33k|      }
  148|       |
  149|      1|      auto s_inv = [&]() {
  150|      1|         if constexpr(VariableTime) {
  151|      1|            return c[N - 1].invert_vartime();
  152|      1|         } else {
  153|      1|            return invert_field_element<C>(c[N - 1]);
  154|      1|         }
  155|      1|      }();
  156|       |
  157|  2.33k|      for(size_t i = N - 1; i > 0; --i) {
  ------------------
  |  Branch (157:29): [True: 2.33k, False: 1]
  ------------------
  158|  2.33k|         const auto& p = projective[i];
  159|       |
  160|  2.33k|         const auto z_inv = s_inv * c[i - 1];
  161|  2.33k|         const auto z2_inv = z_inv.square();
  162|  2.33k|         const auto z3_inv = z_inv * z2_inv;
  163|       |
  164|  2.33k|         s_inv = s_inv * p.z();
  165|       |
  166|  2.33k|         affine.push_back(AffinePoint(p.x() * z2_inv, p.y() * z3_inv));
  167|  2.33k|      }
  168|       |
  169|      1|      const auto z2_inv = s_inv.square();
  170|      1|      const auto z3_inv = s_inv * z2_inv;
  171|      1|      affine.push_back(AffinePoint(projective[0].x() * z2_inv, projective[0].y() * z3_inv));
  172|      1|      std::reverse(affine.begin(), affine.end());
  173|      1|      return affine;
  174|      1|   }
  175|       |
  176|      0|   return affine;
  177|      1|}
pcurves_secp384r1.cpp:_ZN5Botan9to_affineINS_6PCurve12_GLOBAL__N_19secp384r15CurveEEEDaRKNT_15ProjectivePointE:
   76|    154|inline constexpr auto to_affine(const typename C::ProjectivePoint& pt) {
   77|       |   // Not strictly required right? - default should work as long
   78|       |   // as (0,0) is identity and invert returns 0 on 0
   79|       |
   80|    154|   if constexpr(curve_supports_fe_invert2<C>) {
   81|    154|      const auto z2_inv = C::fe_invert2(pt.z());
   82|    154|      const auto z3_inv = z2_inv.square() * pt.z();
   83|    154|      return typename C::AffinePoint(pt.x() * z2_inv, pt.y() * z3_inv);
   84|       |   } else {
   85|       |      const auto z_inv = invert_field_element<C>(pt.z());
   86|       |      const auto z2_inv = z_inv.square();
   87|       |      const auto z3_inv = z_inv * z2_inv;
   88|       |      return typename C::AffinePoint(pt.x() * z2_inv, pt.y() * z3_inv);
   89|       |   }
   90|    154|}
pcurves_secp384r1.cpp:_ZZN5Botan15to_affine_batchINS_6PCurve12_GLOBAL__N_19secp384r15CurveELb1EEEDaNSt3__14spanIKNT_15ProjectivePointELm18446744073709551615EEEENKUlvE_clEv:
  149|      1|      auto s_inv = [&]() {
  150|      1|         if constexpr(VariableTime) {
  151|      1|            return c[N - 1].invert_vartime();
  152|       |         } else {
  153|       |            return invert_field_element<C>(c[N - 1]);
  154|       |         }
  155|      1|      }();
pcurves_secp384r1.cpp:_ZN5Botan22point_add_or_sub_mixedINS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS4_9secp384r16ParamsES5_E11FieldParamsEEEEES8_EENS_16AffineCurvePointISC_EESC_EET_RKSG_RKT0_NS_2CT6ChoiceERKT1_:
  296|  9.85k|                                                        const FieldElement& one) {
  297|  9.85k|   const auto a_is_identity = a.is_identity();
  298|  9.85k|   const auto b_is_identity = b.is_identity();
  299|       |
  300|       |   /*
  301|       |   https://hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html#addition-add-1998-cmo-2
  302|       |
  303|       |   Cost: 8M + 3S + 6add + 1*2
  304|       |   */
  305|       |
  306|  9.85k|   auto by = b.y();
  307|  9.85k|   by.conditional_assign(sub, by.negate());
  308|       |
  309|  9.85k|   const auto Z1Z1 = a.z().square();
  310|  9.85k|   const auto U2 = b.x() * Z1Z1;
  311|  9.85k|   const auto S2 = by * a.z() * Z1Z1;
  312|  9.85k|   const auto H = U2 - a.x();
  313|  9.85k|   const auto r = S2 - a.y();
  314|       |
  315|       |   /* Risky conditional
  316|       |   *
  317|       |   * This implementation uses projective coordinates, which do not have an efficient complete
  318|       |   * addition formula. We rely on the design of the multiplication algorithms to avoid doublings.
  319|       |   *
  320|       |   * This conditional only comes into play for the actual doubling case, not x + (-x) which
  321|       |   * is another exceptional case in some circumstances. Here if a == -b then H == 0 && r != 0,
  322|       |   * in which case at the end we'll set z to a.z * H = 0, resulting in the correct output
  323|       |   * (the identity element)
  324|       |   */
  325|  9.85k|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (325:7): [True: 0, False: 9.85k]
  ------------------
  326|      0|      return a.dbl();
  327|      0|   }
  328|       |
  329|  9.85k|   const auto HH = H.square();
  330|  9.85k|   const auto HHH = H * HH;
  331|  9.85k|   const auto V = a.x() * HH;
  332|  9.85k|   const auto t2 = r.square();
  333|  9.85k|   const auto t3 = V + V;
  334|  9.85k|   const auto t4 = t2 - HHH;
  335|  9.85k|   auto X3 = t4 - t3;
  336|  9.85k|   const auto t5 = V - X3;
  337|  9.85k|   const auto t6 = a.y() * HHH;
  338|  9.85k|   const auto t7 = r * t5;
  339|  9.85k|   auto Y3 = t7 - t6;
  340|  9.85k|   auto Z3 = a.z() * H;
  341|       |
  342|       |   // if a is identity then return b
  343|  9.85k|   FieldElement::conditional_assign(X3, Y3, Z3, a_is_identity, b.x(), by, one);
  344|       |
  345|       |   // if b is identity then return a
  346|  9.85k|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  347|       |
  348|  9.85k|   return ProjectivePoint(X3, Y3, Z3);
  349|  9.85k|}
pcurves_secp521r1.cpp:_ZN5Botan13dbl_a_minus_3INS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEES8_EEEET_RKSE_:
  362|  1.64k|inline constexpr ProjectivePoint dbl_a_minus_3(const ProjectivePoint& pt) {
  363|       |   /*
  364|       |   if a == -3 then
  365|       |   3*x^2 + a*z^4 == 3*x^2 - 3*z^4 == 3*(x^2-z^4) == 3*(x-z^2)*(x+z^2)
  366|       |   */
  367|  1.64k|   const auto z2 = pt.z().square();
  368|  1.64k|   const auto m = (pt.x() - z2).mul3() * (pt.x() + z2);
  369|       |
  370|       |   // Remaining cost: 3M + 3S + 3A + 2*2 + 1*4 + 1*8
  371|  1.64k|   const auto y2 = pt.y().square();
  372|  1.64k|   const auto s = pt.x().mul4() * y2;
  373|  1.64k|   const auto nx = m.square() - s.mul2();
  374|  1.64k|   const auto ny = m * (s - nx) - y2.square().mul8();
  375|  1.64k|   const auto nz = pt.y().mul2() * pt.z();
  376|       |
  377|  1.64k|   return ProjectivePoint(nx, ny, nz);
  378|  1.64k|}
pcurves_secp521r1.cpp:_ZN5Botan9point_addINS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEES8_EESC_EET_RKSE_SG_:
  187|  1.45k|inline constexpr ProjectivePoint point_add(const ProjectivePoint& a, const ProjectivePoint& b) {
  188|  1.45k|   const auto a_is_identity = a.is_identity();
  189|  1.45k|   const auto b_is_identity = b.is_identity();
  190|       |
  191|  1.45k|   const auto Z1Z1 = a.z().square();
  192|  1.45k|   const auto Z2Z2 = b.z().square();
  193|  1.45k|   const auto U1 = a.x() * Z2Z2;
  194|  1.45k|   const auto U2 = b.x() * Z1Z1;
  195|  1.45k|   const auto S1 = a.y() * b.z() * Z2Z2;
  196|  1.45k|   const auto S2 = b.y() * a.z() * Z1Z1;
  197|  1.45k|   const auto H = U2 - U1;
  198|  1.45k|   const auto r = S2 - S1;
  199|       |
  200|       |   /* Risky conditional
  201|       |   *
  202|       |   * This implementation uses projective coordinates, which do not have an efficient complete
  203|       |   * addition formula. We rely on the design of the multiplication algorithms to avoid doublings.
  204|       |   *
  205|       |   * This conditional only comes into play for the actual doubling case, not x + (-x) which
  206|       |   * is another exceptional case in some circumstances. Here if a == -b then H == 0 && r != 0,
  207|       |   * in which case at the end we'll set z to a.z * b.z * H = 0, resulting in the correct
  208|       |   * output (the identity element)
  209|       |   */
  210|  1.45k|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (210:7): [True: 0, False: 1.45k]
  ------------------
  211|      0|      return a.dbl();
  212|      0|   }
  213|       |
  214|  1.45k|   const auto HH = H.square();
  215|  1.45k|   const auto HHH = H * HH;
  216|  1.45k|   const auto V = U1 * HH;
  217|  1.45k|   const auto t2 = r.square();
  218|  1.45k|   const auto t3 = V + V;
  219|  1.45k|   const auto t4 = t2 - HHH;
  220|  1.45k|   auto X3 = t4 - t3;
  221|  1.45k|   const auto t5 = V - X3;
  222|  1.45k|   const auto t6 = S1 * HHH;
  223|  1.45k|   const auto t7 = r * t5;
  224|  1.45k|   auto Y3 = t7 - t6;
  225|  1.45k|   const auto t8 = b.z() * H;
  226|  1.45k|   auto Z3 = a.z() * t8;
  227|       |
  228|       |   // if a is identity then return b
  229|  1.45k|   FieldElement::conditional_assign(X3, Y3, Z3, a_is_identity, b.x(), b.y(), b.z());
  230|       |
  231|       |   // if b is identity then return a
  232|  1.45k|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  233|       |
  234|  1.45k|   return ProjectivePoint(X3, Y3, Z3);
  235|  1.45k|}
pcurves_secp521r1.cpp:_ZN5Botan15to_affine_batchINS_6PCurve12_GLOBAL__N_19secp521r15CurveELb1EEEDaNSt3__14spanIKNT_15ProjectivePointELm18446744073709551615EEE:
  107|      1|auto to_affine_batch(std::span<const typename C::ProjectivePoint> projective) {
  108|      1|   using AffinePoint = typename C::AffinePoint;
  109|       |
  110|      1|   const size_t N = projective.size();
  111|      1|   std::vector<AffinePoint> affine;
  112|      1|   affine.reserve(N);
  113|       |
  114|      1|   CT::Choice any_identity = CT::Choice::no();
  115|       |
  116|  3.10k|   for(const auto& pt : projective) {
  ------------------
  |  Branch (116:23): [True: 3.10k, False: 1]
  ------------------
  117|  3.10k|      any_identity = any_identity || pt.is_identity();
  118|  3.10k|   }
  119|       |
  120|       |   // Conditional acceptable: N is public. State of points is not necessarily
  121|       |   // public, but we don't leak which point was the identity. In practice with
  122|       |   // the algorithms currently in use, the only time an identity can occur is
  123|       |   // during mul2 where the two points g/h have a small relation (ie h = g*k for
  124|       |   // some k < 16)
  125|       |
  126|      1|   if(N <= 2 || any_identity.as_bool()) {
  ------------------
  |  Branch (126:7): [True: 0, False: 1]
  |  Branch (126:17): [True: 0, False: 1]
  ------------------
  127|       |      // If there are identity elements, using the batch inversion gets
  128|       |      // tricky. It can be done, but this should be a rare situation so
  129|       |      // just punt to the serial conversion if it occurs
  130|      0|      for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (130:25): [True: 0, False: 0]
  ------------------
  131|      0|         affine.push_back(to_affine<C>(projective[i]));
  132|      0|      }
  133|      1|   } else {
  134|      1|      std::vector<typename C::FieldElement> c;
  135|      1|      c.reserve(N);
  136|       |
  137|       |      /*
  138|       |      Batch projective->affine using Montgomery's trick
  139|       |
  140|       |      See Algorithm 2.26 in "Guide to Elliptic Curve Cryptography"
  141|       |      (Hankerson, Menezes, Vanstone)
  142|       |      */
  143|       |
  144|      1|      c.push_back(projective[0].z());
  145|  3.10k|      for(size_t i = 1; i != N; ++i) {
  ------------------
  |  Branch (145:25): [True: 3.10k, False: 1]
  ------------------
  146|  3.10k|         c.push_back(c[i - 1] * projective[i].z());
  147|  3.10k|      }
  148|       |
  149|      1|      auto s_inv = [&]() {
  150|      1|         if constexpr(VariableTime) {
  151|      1|            return c[N - 1].invert_vartime();
  152|      1|         } else {
  153|      1|            return invert_field_element<C>(c[N - 1]);
  154|      1|         }
  155|      1|      }();
  156|       |
  157|  3.10k|      for(size_t i = N - 1; i > 0; --i) {
  ------------------
  |  Branch (157:29): [True: 3.10k, False: 1]
  ------------------
  158|  3.10k|         const auto& p = projective[i];
  159|       |
  160|  3.10k|         const auto z_inv = s_inv * c[i - 1];
  161|  3.10k|         const auto z2_inv = z_inv.square();
  162|  3.10k|         const auto z3_inv = z_inv * z2_inv;
  163|       |
  164|  3.10k|         s_inv = s_inv * p.z();
  165|       |
  166|  3.10k|         affine.push_back(AffinePoint(p.x() * z2_inv, p.y() * z3_inv));
  167|  3.10k|      }
  168|       |
  169|      1|      const auto z2_inv = s_inv.square();
  170|      1|      const auto z3_inv = s_inv * z2_inv;
  171|      1|      affine.push_back(AffinePoint(projective[0].x() * z2_inv, projective[0].y() * z3_inv));
  172|      1|      std::reverse(affine.begin(), affine.end());
  173|      1|      return affine;
  174|      1|   }
  175|       |
  176|      0|   return affine;
  177|      1|}
pcurves_secp521r1.cpp:_ZN5Botan9to_affineINS_6PCurve12_GLOBAL__N_19secp521r15CurveEEEDaRKNT_15ProjectivePointE:
   76|    176|inline constexpr auto to_affine(const typename C::ProjectivePoint& pt) {
   77|       |   // Not strictly required right? - default should work as long
   78|       |   // as (0,0) is identity and invert returns 0 on 0
   79|       |
   80|    176|   if constexpr(curve_supports_fe_invert2<C>) {
   81|    176|      const auto z2_inv = C::fe_invert2(pt.z());
   82|    176|      const auto z3_inv = z2_inv.square() * pt.z();
   83|    176|      return typename C::AffinePoint(pt.x() * z2_inv, pt.y() * z3_inv);
   84|       |   } else {
   85|       |      const auto z_inv = invert_field_element<C>(pt.z());
   86|       |      const auto z2_inv = z_inv.square();
   87|       |      const auto z3_inv = z_inv * z2_inv;
   88|       |      return typename C::AffinePoint(pt.x() * z2_inv, pt.y() * z3_inv);
   89|       |   }
   90|    176|}
pcurves_secp521r1.cpp:_ZZN5Botan15to_affine_batchINS_6PCurve12_GLOBAL__N_19secp521r15CurveELb1EEEDaNSt3__14spanIKNT_15ProjectivePointELm18446744073709551615EEEENKUlvE_clEv:
  149|      1|      auto s_inv = [&]() {
  150|      1|         if constexpr(VariableTime) {
  151|      1|            return c[N - 1].invert_vartime();
  152|       |         } else {
  153|       |            return invert_field_element<C>(c[N - 1]);
  154|       |         }
  155|      1|      }();
pcurves_secp521r1.cpp:_ZN5Botan22point_add_or_sub_mixedINS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEES8_EENS_16AffineCurvePointISC_EESC_EET_RKSG_RKT0_NS_2CT6ChoiceERKT1_:
  296|  15.1k|                                                        const FieldElement& one) {
  297|  15.1k|   const auto a_is_identity = a.is_identity();
  298|  15.1k|   const auto b_is_identity = b.is_identity();
  299|       |
  300|       |   /*
  301|       |   https://hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html#addition-add-1998-cmo-2
  302|       |
  303|       |   Cost: 8M + 3S + 6add + 1*2
  304|       |   */
  305|       |
  306|  15.1k|   auto by = b.y();
  307|  15.1k|   by.conditional_assign(sub, by.negate());
  308|       |
  309|  15.1k|   const auto Z1Z1 = a.z().square();
  310|  15.1k|   const auto U2 = b.x() * Z1Z1;
  311|  15.1k|   const auto S2 = by * a.z() * Z1Z1;
  312|  15.1k|   const auto H = U2 - a.x();
  313|  15.1k|   const auto r = S2 - a.y();
  314|       |
  315|       |   /* Risky conditional
  316|       |   *
  317|       |   * This implementation uses projective coordinates, which do not have an efficient complete
  318|       |   * addition formula. We rely on the design of the multiplication algorithms to avoid doublings.
  319|       |   *
  320|       |   * This conditional only comes into play for the actual doubling case, not x + (-x) which
  321|       |   * is another exceptional case in some circumstances. Here if a == -b then H == 0 && r != 0,
  322|       |   * in which case at the end we'll set z to a.z * H = 0, resulting in the correct output
  323|       |   * (the identity element)
  324|       |   */
  325|  15.1k|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (325:7): [True: 0, False: 15.1k]
  ------------------
  326|      0|      return a.dbl();
  327|      0|   }
  328|       |
  329|  15.1k|   const auto HH = H.square();
  330|  15.1k|   const auto HHH = H * HH;
  331|  15.1k|   const auto V = a.x() * HH;
  332|  15.1k|   const auto t2 = r.square();
  333|  15.1k|   const auto t3 = V + V;
  334|  15.1k|   const auto t4 = t2 - HHH;
  335|  15.1k|   auto X3 = t4 - t3;
  336|  15.1k|   const auto t5 = V - X3;
  337|  15.1k|   const auto t6 = a.y() * HHH;
  338|  15.1k|   const auto t7 = r * t5;
  339|  15.1k|   auto Y3 = t7 - t6;
  340|  15.1k|   auto Z3 = a.z() * H;
  341|       |
  342|       |   // if a is identity then return b
  343|  15.1k|   FieldElement::conditional_assign(X3, Y3, Z3, a_is_identity, b.x(), by, one);
  344|       |
  345|       |   // if b is identity then return a
  346|  15.1k|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  347|       |
  348|  15.1k|   return ProjectivePoint(X3, Y3, Z3);
  349|  15.1k|}

_ZNK5Botan6PCurve22GenericPrimeOrderCurve7_paramsEv:
  119|  54.4M|      const GenericCurveParams& _params() const { return *m_params; }

pcurves_brainpool256r1.cpp:_ZN5Botan23PrecomputedBaseMulTableINS_6PCurve12_GLOBAL__N_114brainpool256r15CurveELm6EEC2ERKNS_16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEEEE:
 1405|      1|            m_table(basemul_booth_setup<C, WindowBits>(p, BlindedScalar::Bits + 1)) {}
pcurves_brainpool256r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEES7_E11from_affineERKNS_16AffineCurvePointISB_EE:
 1016|    165|      static constexpr Self from_affine(const AffinePoint& pt) {
 1017|       |         /*
 1018|       |         * If the point is the identity element (x=0, y=0) then instead of
 1019|       |         * creating (x, y, 1) = (0, 0, 1) we want our projective identity
 1020|       |         * encoding of (0, 1, 0)
 1021|       |         *
 1022|       |         * Which we can achieve by a conditional swap of y and z if the
 1023|       |         * affine point is the identity.
 1024|       |         */
 1025|       |
 1026|    165|         auto x = pt.x();
 1027|    165|         auto y = pt.y();
 1028|    165|         auto z = FieldElement::one();
 1029|       |
 1030|    165|         FieldElement::conditional_swap(pt.is_identity(), y, z);
 1031|       |
 1032|    165|         return ProjectiveCurvePoint(x, y, z);
 1033|    165|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEEE1xEv:
  971|   247k|      constexpr const FieldElement& x() const { return m_x; }
pcurves_brainpool256r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEEE1yEv:
  976|   240k|      constexpr const FieldElement& y() const { return m_y; }
pcurves_brainpool256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE3oneEv:
  200|  7.21k|      static constexpr Self one() { return Self(Rep::one()); }
pcurves_brainpool256r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES0_E11FieldParamsEE3oneEv:
   99|  7.21k|      constexpr static std::array<W, N> one() { return R1; }
pcurves_brainpool256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEEC2ENSt3__15arrayImLm4EEE:
  898|   204k|      explicit constexpr IntMod(std::array<W, N> v) : m_val(v) {}
pcurves_brainpool256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE16conditional_swapENS_2CT6ChoiceERSA_SD_:
  410|    165|      static constexpr void conditional_swap(CT::Choice cond, Self& x, Self& y) {
  411|    165|         const W mask = cond.into_bitmask<W>();
  412|       |
  413|    825|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (413:28): [True: 660, False: 165]
  ------------------
  414|    660|            auto nx = Botan::choose(mask, y.m_val[i], x.m_val[i]);
  415|    660|            auto ny = Botan::choose(mask, x.m_val[i], y.m_val[i]);
  416|    660|            x.m_val[i] = nx;
  417|    660|            y.m_val[i] = ny;
  418|    660|         }
  419|    165|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEEE11is_identityEv:
  928|  7.54k|      constexpr CT::Choice is_identity() const { return x().is_zero() && y().is_zero(); }
pcurves_brainpool256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE7is_zeroEv:
  225|  40.2k|      constexpr CT::Choice is_zero() const { return CT::all_zeros(m_val.data(), m_val.size()).as_choice(); }
pcurves_brainpool256r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEES7_EC2ERKSB_SE_SE_:
 1056|  8.94k|            m_x(x), m_y(y), m_z(z) {}
pcurves_brainpool256r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEES7_E3dblEv:
 1121|    833|      constexpr Self dbl() const {
 1122|       |         if constexpr(Self::A_is_minus_3) {
 1123|       |            return dbl_a_minus_3(*this);
 1124|       |         } else if constexpr(Self::A_is_zero) {
 1125|       |            return dbl_a_zero(*this);
 1126|    833|         } else {
 1127|    833|            return dbl_generic(*this, A);
 1128|    833|         }
 1129|    833|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEES7_E1zEv:
 1172|  48.8k|      constexpr const FieldElement& z() const { return m_z; }
pcurves_brainpool256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE6squareEv:
  426|  31.8k|      constexpr BOTAN_FORCE_INLINE Self square() const {
  427|  31.8k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  428|  31.8k|         comba_sqr<N>(z.data(), this->data());
  429|  31.8k|         return Self(Rep::redc(z));
  430|  31.8k|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE4dataEv:
  896|   257k|      constexpr const W* data() const { return m_val.data(); }
pcurves_brainpool256r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES0_E11FieldParamsEE4redcERKNSt3__15arrayImLm8EEE:
  104|   161k|      constexpr static std::array<W, N> redc(const std::array<W, 2 * N>& z) {
  105|       |         if constexpr(P_dash == 1) {
  106|       |            return monty_redc_pdash1(z, P);
  107|   161k|         } else {
  108|   161k|            return monty_redc(z, P, P_dash);
  109|   161k|         }
  110|   161k|      }
pcurves_brainpool256r1.cpp:_ZN5BotanplERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEEESC_:
  265|  9.79k|      friend constexpr BOTAN_FORCE_INLINE Self operator+(const Self& a, const Self& b) {
  266|  9.79k|         std::array<W, N> t;  // NOLINT(*-member-init)
  267|       |
  268|  9.79k|         W carry = 0;
  269|  48.9k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (269:28): [True: 39.1k, False: 9.79k]
  ------------------
  270|  39.1k|            t[i] = word_add(a.m_val[i], b.m_val[i], &carry);
  271|  39.1k|         }
  272|       |
  273|  9.79k|         std::array<W, N> r;  // NOLINT(*-member-init)
  274|  9.79k|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  275|  9.79k|         return Self(r);
  276|  9.79k|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEES7_E1xEv:
 1162|  27.4k|      constexpr const FieldElement& x() const { return m_x; }
pcurves_brainpool256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE4mul3Ev:
  335|    833|      constexpr inline Self mul3() const { return mul2() + (*this); }
pcurves_brainpool256r1.cpp:_ZN5BotanmlERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEEESC_:
  346|  78.4k|      friend constexpr BOTAN_FORCE_INLINE Self operator*(const Self& a, const Self& b) {
  347|  78.4k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  348|  78.4k|         comba_mul<N>(z.data(), a.data(), b.data());
  349|  78.4k|         return Self(Rep::redc(z));
  350|  78.4k|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEES7_E1yEv:
 1167|  27.4k|      constexpr const FieldElement& y() const { return m_y; }
pcurves_brainpool256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE4mul4Ev:
  338|    833|      constexpr inline Self mul4() const { return mul2().mul2(); }
pcurves_brainpool256r1.cpp:_ZN5BotanmiERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEEESC_:
  281|  48.2k|      friend constexpr BOTAN_FORCE_INLINE Self operator-(const Self& a, const Self& b) {
  282|  48.2k|         std::array<W, N> r;  // NOLINT(*-member-init)
  283|  48.2k|         W carry = 0;
  284|   241k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (284:28): [True: 192k, False: 48.2k]
  ------------------
  285|   192k|            r[i] = word_sub(a.m_val[i], b.m_val[i], &carry);
  286|   192k|         }
  287|       |
  288|  48.2k|         const auto mask = CT::Mask<W>::expand(carry).value();
  289|       |
  290|  48.2k|         carry = 0;
  291|       |
  292|   241k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (292:28): [True: 192k, False: 48.2k]
  ------------------
  293|   192k|            r[i] = word_add(r[i], P[i] & mask, &carry);
  294|   192k|         }
  295|       |
  296|  48.2k|         return Self(r);
  297|  48.2k|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE4mul2Ev:
  325|  6.66k|      constexpr BOTAN_FORCE_INLINE Self mul2() const {
  326|  6.66k|         std::array<W, N> t = value();
  327|  6.66k|         const W carry = shift_left<1>(t);
  328|       |
  329|  6.66k|         std::array<W, N> r;  // NOLINT(*-member-init)
  330|  6.66k|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  331|  6.66k|         return Self(r);
  332|  6.66k|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE5valueEv:
  894|  6.66k|      constexpr const std::array<W, N>& value() const { return m_val; }
pcurves_brainpool256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE4mul8Ev:
  341|    833|      constexpr inline Self mul8() const { return mul2().mul2().mul2(); }
pcurves_brainpool256r1.cpp:_ZN5BotanplERKNS_20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEES7_EESE_:
 1064|    735|      friend constexpr Self operator+(const Self& a, const Self& b) { return Self::add(a, b); }
pcurves_brainpool256r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEES7_E3addERKSC_SE_:
 1103|    735|      constexpr static Self add(const Self& a, const Self& b) { return point_add<Self, FieldElement>(a, b); }
pcurves_brainpool256r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEES7_E11is_identityEv:
 1082|  9.92k|      constexpr CT::Choice is_identity() const { return z().is_zero(); }
pcurves_brainpool256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE18conditional_assignERSA_SB_SB_NS_2CT6ChoiceERKSA_SF_SF_:
  395|  15.4k|         Self& x, Self& y, Self& z, CT::Choice cond, const Self& nx, const Self& ny, const Self& nz) {
  396|  15.4k|         const W mask = cond.into_bitmask<W>();
  397|       |
  398|  77.0k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (398:28): [True: 61.6k, False: 15.4k]
  ------------------
  399|  61.6k|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  400|  61.6k|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  401|  61.6k|            z.m_val[i] = Botan::choose(mask, nz.m_val[i], z.m_val[i]);
  402|  61.6k|         }
  403|  15.4k|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE6invertEv:
  538|    164|      constexpr Self invert() const { return pow_vartime(Self::P_MINUS_2); }
pcurves_brainpool256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE11pow_vartimeERKNSt3__15arrayImLm4EEE:
  477|    164|      constexpr Self pow_vartime(const std::array<W, N>& exp) const {
  478|    164|         constexpr size_t WindowBits = (Self::BITS <= 256) ? 4 : 5;
  ------------------
  |  Branch (478:40): [True: 0, Folded]
  ------------------
  479|    164|         constexpr size_t WindowElements = (1 << WindowBits) - 1;
  480|       |
  481|    164|         constexpr size_t Windows = (Self::BITS + WindowBits - 1) / WindowBits;
  482|       |
  483|       |         /*
  484|       |         A simple fixed width window modular multiplication.
  485|       |
  486|       |         TODO: investigate using sliding window here
  487|       |         */
  488|       |
  489|    164|         std::array<Self, WindowElements> tbl;
  490|       |
  491|    164|         tbl[0] = (*this);
  492|       |
  493|  2.46k|         for(size_t i = 1; i != WindowElements; ++i) {
  ------------------
  |  Branch (493:28): [True: 2.29k, False: 164]
  ------------------
  494|       |            // Conditional ok: table indexes are public here
  495|  2.29k|            if(i % 2 == 1) {
  ------------------
  |  Branch (495:16): [True: 1.14k, False: 1.14k]
  ------------------
  496|  1.14k|               tbl[i] = tbl[i / 2].square();
  497|  1.14k|            } else {
  498|  1.14k|               tbl[i] = tbl[i - 1] * tbl[0];
  499|  1.14k|            }
  500|  2.29k|         }
  501|       |
  502|    164|         auto r = Self::one();
  503|       |
  504|    164|         const size_t w0 = read_window_bits<WindowBits>(std::span{exp}, (Windows - 1) * WindowBits);
  505|       |
  506|       |         // Conditional ok: this function is variable time
  507|    164|         if(w0 > 0) {
  ------------------
  |  Branch (507:13): [True: 164, False: 0]
  ------------------
  508|    164|            r = tbl[w0 - 1];
  509|    164|         }
  510|       |
  511|  10.4k|         for(size_t i = 1; i != Windows; ++i) {
  ------------------
  |  Branch (511:28): [True: 10.3k, False: 164]
  ------------------
  512|  10.3k|            r.square_n(WindowBits);
  513|       |
  514|  10.3k|            const size_t w = read_window_bits<WindowBits>(std::span{exp}, (Windows - i - 1) * WindowBits);
  515|       |
  516|       |            // Conditional ok: this function is variable time
  517|  10.3k|            if(w > 0) {
  ------------------
  |  Branch (517:16): [True: 9.67k, False: 656]
  ------------------
  518|  9.67k|               r *= tbl[w - 1];
  519|  9.67k|            }
  520|  10.3k|         }
  521|       |
  522|    164|         return r;
  523|    164|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEEC2Ev:
  180|  2.46k|      constexpr IntMod() : m_val({}) {}
pcurves_brainpool256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE8square_nEm:
  439|  10.3k|      constexpr void square_n(size_t n) {
  440|  10.3k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  441|  51.6k|         for(size_t i = 0; i != n; ++i) {
  ------------------
  |  Branch (441:28): [True: 41.3k, False: 10.3k]
  ------------------
  442|  41.3k|            comba_sqr<N>(z.data(), this->data());
  443|  41.3k|            m_val = Rep::redc(z);
  444|  41.3k|         }
  445|  10.3k|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEEmLERKSA_:
  355|  9.67k|      constexpr BOTAN_FORCE_INLINE Self& operator*=(const Self& other) {
  356|  9.67k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  357|  9.67k|         comba_mul<N>(z.data(), data(), other.data());
  358|  9.67k|         m_val = Rep::redc(z);
  359|  9.67k|         return (*this);
  360|  9.67k|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE14invert_vartimeEv:
  598|      1|      constexpr Self invert_vartime() const {
  599|       |         // Conditional ok: this function is variable time
  600|      1|         if(this->is_zero().as_bool()) {
  ------------------
  |  Branch (600:13): [True: 0, False: 1]
  ------------------
  601|      0|            return Self::zero();
  602|      0|         }
  603|       |
  604|      1|         auto x = Self(std::array<W, N>{1});  // 1 in standard domain
  605|      1|         auto b = Self(this->to_words());     // *this in standard domain
  606|       |
  607|       |         // First loop iteration
  608|      1|         Self::_invert_vartime_div2_helper(b, x);
  609|       |
  610|      1|         auto a = b.negate();
  611|       |         // y += x but y is zero at the outset
  612|      1|         auto y = x;
  613|       |
  614|       |         // First half of second loop iteration
  615|      1|         Self::_invert_vartime_div2_helper(a, y);
  616|       |
  617|    177|         for(;;) {
  618|       |            // Conditional ok: this function is variable time
  619|    177|            if(a.m_val == b.m_val) {
  ------------------
  |  Branch (619:16): [True: 1, False: 176]
  ------------------
  620|       |               // At this point it should be that a == b == 1
  621|      1|               auto r = y.negate();
  622|       |
  623|       |               // Convert back to Montgomery if required
  624|      1|               r.m_val = Rep::to_rep(r.m_val);
  625|      1|               return r;
  626|      1|            }
  627|       |
  628|    176|            auto nx = x + y;
  629|       |
  630|       |            /*
  631|       |            * Otherwise either b > a or a > b
  632|       |            *
  633|       |            * If b > a we want to set b to b - a
  634|       |            * Otherwise we want to set a to a - b
  635|       |            *
  636|       |            * Compute r = b - a and check if it underflowed
  637|       |            * If it did not then we are in the b > a path
  638|       |            */
  639|    176|            std::array<W, N> r;  // NOLINT(*-member-init)
  640|    176|            const word carry = bigint_sub3(r.data(), b.data(), N, a.data(), N);
  641|       |
  642|       |            // Conditional ok: this function is variable time
  643|    176|            if(carry == 0) {
  ------------------
  |  Branch (643:16): [True: 94, False: 82]
  ------------------
  644|       |               // b > a
  645|     94|               b.m_val = r;
  646|     94|               x = nx;
  647|     94|               Self::_invert_vartime_div2_helper(b, x);
  648|     94|            } else {
  649|       |               // We know this can't underflow because a > b
  650|     82|               bigint_sub3(r.data(), a.data(), N, b.data(), N);
  651|     82|               a.m_val = r;
  652|     82|               y = nx;
  653|     82|               Self::_invert_vartime_div2_helper(a, y);
  654|     82|            }
  655|    176|         }
  656|      1|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE4zeroEv:
  195|  14.1k|      static constexpr Self zero() { return Self(std::array<W, N>{0}); }
pcurves_brainpool256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE8to_wordsEv:
  734|      1|      constexpr std::array<W, Self::N> to_words() const { return Rep::from_rep(m_val); }
pcurves_brainpool256r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES0_E11FieldParamsEE8from_repERKNSt3__15arrayImLm4EEE:
  137|    329|      constexpr static std::array<W, N> from_rep(const std::array<W, N>& z) {
  138|    329|         std::array<W, 2 * N> ze = {};
  139|    329|         copy_mem(std::span{ze}.template first<N>(), z);
  140|    329|         return Self::redc(ze);
  141|    329|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE27_invert_vartime_div2_helperERSA_SB_:
  547|    178|      static constexpr void _invert_vartime_div2_helper(Self& a, Self& x) {
  548|    178|         constexpr auto INV_2 = p_div_2_plus_1(Rep::P);
  549|       |
  550|       |         // Conditional ok: this function is variable time
  551|    553|         while((a.m_val[0] & 1) != 1) {
  ------------------
  |  Branch (551:16): [True: 375, False: 178]
  ------------------
  552|    375|            shift_right<1>(a.m_val);
  553|       |
  554|    375|            const W borrow = shift_right<1>(x.m_val);
  555|       |
  556|       |            // Conditional ok: this function is variable time
  557|    375|            if(borrow) {
  ------------------
  |  Branch (557:16): [True: 193, False: 182]
  ------------------
  558|    193|               bigint_add2(x.m_val.data(), N, INV_2.data(), N);
  559|    193|            }
  560|    375|         }
  561|    178|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE6negateEv:
  452|  7.05k|      constexpr Self negate() const {
  453|  7.05k|         const W x_is_zero = ~CT::all_zeros(this->data(), N).value();
  454|       |
  455|  7.05k|         std::array<W, N> r;  // NOLINT(*-member-init)
  456|  7.05k|         W carry = 0;
  457|  35.2k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (457:28): [True: 28.2k, False: 7.05k]
  ------------------
  458|  28.2k|            r[i] = word_sub(P[i] & x_is_zero, m_val[i], &carry);
  459|  28.2k|         }
  460|       |
  461|  7.05k|         return Self(r);
  462|  7.05k|      }
pcurves_brainpool256r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES0_E11FieldParamsEE6to_repERKNSt3__15arrayImLm4EEE:
  115|      1|      constexpr static std::array<W, N> to_rep(const std::array<W, N>& x) {
  116|      1|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  117|      1|         comba_mul<N>(z.data(), x.data(), R2.data());
  118|      1|         return Self::redc(z);
  119|      1|      }
pcurves_brainpool256r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEEEC2ERKSB_SE_:
  917|  9.11k|      constexpr AffineCurvePoint(const FieldElement& x, const FieldElement& y) : m_x(x), m_y(y) {}
pcurves_brainpool256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE11stash_valueILm9EEENSt3__15arrayImXT_EEEv:
  759|    820|      std::array<W, L> stash_value() const {
  760|    820|         static_assert(L >= N);
  761|    820|         std::array<W, L> stash = {};
  762|  4.10k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 3.28k, False: 820]
  ------------------
  763|  3.28k|            stash[i] = m_val[i];
  764|  3.28k|         }
  765|    820|         return stash;
  766|    820|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan23PrecomputedBaseMulTableINS_6PCurve12_GLOBAL__N_114brainpool256r15CurveELm6EE3mulERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES7_E12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1407|    164|      ProjectivePoint mul(const Scalar& s, RandomNumberGenerator& rng) const {
 1408|    164|         const BlindedScalar scalar(s, rng);
 1409|    164|         return basemul_booth_exec<C, WindowBits>(m_table, scalar, rng);
 1410|    164|      }
pcurves_brainpool256r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_114brainpool256r15CurveELm7EEC2ERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES7_E12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1307|    164|      BlindedScalarBits(const typename C::Scalar& scalar, RandomNumberGenerator& rng) {
 1308|    164|         if(BlindingBits > 0 && rng.is_seeded()) {
  ------------------
  |  Branch (1308:13): [True: 164, Folded]
  |  Branch (1308:33): [True: 0, False: 164]
  ------------------
 1309|      0|            constexpr size_t MaskWords = (BlindingBits + WordInfo<W>::bits - 1) / WordInfo<W>::bits;
 1310|      0|            constexpr size_t MaskBytes = MaskWords * WordInfo<W>::bytes;
 1311|       |
 1312|      0|            constexpr size_t n_words = C::Words;
 1313|       |
 1314|      0|            uint8_t maskb[MaskBytes + (BlindingBits == 0 ? 1 : 0)] = {0};
 1315|      0|            rng.randomize(maskb, MaskBytes);
 1316|       |
 1317|      0|            W mask[n_words] = {0};
 1318|      0|            load_le(mask, maskb, MaskWords);
 1319|       |
 1320|       |            // Mask to exactly BlindingBits
 1321|      0|            constexpr size_t ExcessBits = MaskWords * WordInfo<W>::bits - BlindingBits;
 1322|      0|            if constexpr(ExcessBits > 0) {
 1323|      0|               constexpr W ExcessMask = (static_cast<W>(1) << (WordInfo<W>::bits - ExcessBits)) - 1;
 1324|      0|               mask[MaskWords - 1] &= ExcessMask;
 1325|      0|            }
 1326|       |
 1327|       |            // Set top and bottom bits of mask
 1328|      0|            constexpr size_t TopMaskBit = (BlindingBits - 1) % WordInfo<W>::bits;
 1329|      0|            mask[(BlindingBits - 1) / WordInfo<W>::bits] |= static_cast<W>(1) << TopMaskBit;
 1330|      0|            mask[0] |= 1;
 1331|       |
 1332|      0|            W mask_n[2 * n_words] = {0};
 1333|       |
 1334|      0|            const auto sw = scalar.to_words();
 1335|       |
 1336|       |            // Compute masked scalar s + k*n
 1337|      0|            comba_mul<n_words>(mask_n, mask, C::NW.data());
 1338|      0|            bigint_add2(mask_n, 2 * n_words, sw.data(), sw.size());
 1339|       |
 1340|      0|            std::reverse(mask_n, mask_n + 2 * n_words);
 1341|      0|            m_bytes = store_be<std::vector<uint8_t>>(mask_n);
 1342|      0|            m_bits = C::Scalar::BITS + BlindingBits;
 1343|    164|         } else {
 1344|       |            // No RNG available, skip blinding
 1345|    164|            m_bytes.resize(C::Scalar::BYTES);
 1346|    164|            scalar.serialize_to(std::span{m_bytes}.template first<C::Scalar::BYTES>());
 1347|    164|            m_bits = C::Scalar::BITS;
 1348|    164|         }
 1349|       |
 1350|    164|         CT::poison(m_bytes.data(), m_bytes.size());
 1351|    164|      }
pcurves_brainpool256r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES0_E12ScalarParamsEE8from_repERKNSt3__15arrayImLm4EEE:
  137|    355|      constexpr static std::array<W, N> from_rep(const std::array<W, N>& z) {
  138|    355|         std::array<W, 2 * N> ze = {};
  139|    355|         copy_mem(std::span{ze}.template first<N>(), z);
  140|    355|         return Self::redc(ze);
  141|    355|      }
pcurves_brainpool256r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES0_E12ScalarParamsEE4redcERKNSt3__15arrayImLm8EEE:
  104|    547|      constexpr static std::array<W, N> redc(const std::array<W, 2 * N>& z) {
  105|       |         if constexpr(P_dash == 1) {
  106|       |            return monty_redc_pdash1(z, P);
  107|    547|         } else {
  108|    547|            return monty_redc(z, P, P_dash);
  109|    547|         }
  110|    547|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E12ScalarParamsEEEE12serialize_toENSt3__14spanIhLm32EEE:
  739|    355|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    355|         auto v = Rep::from_rep(m_val);
  741|    355|         std::reverse(v.begin(), v.end());
  742|       |
  743|    355|         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|    355|            store_be(bytes, v);
  745|       |         } else {
  746|       |            // Remove leading zero bytes
  747|       |            const auto padded_bytes = store_be(v);
  748|       |            constexpr size_t extra = N * WordInfo<W>::bytes - Self::BYTES;
  749|       |            copy_mem(bytes, std::span{padded_bytes}.template subspan<extra, Self::BYTES>());
  750|       |         }
  751|    355|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_114brainpool256r15CurveELm7EE4bitsEv:
 1305|    164|      size_t bits() const { return m_bits; }
pcurves_brainpool256r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEES7_E18conditional_assignENS_2CT6ChoiceERKSC_:
 1084|    164|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
 1085|    164|         FieldElement::conditional_assign(m_x, m_y, m_z, cond, pt.x(), pt.y(), pt.z());
 1086|    164|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEES7_E6negateEv:
 1134|    164|      constexpr Self negate() const { return Self(x(), y().negate(), z()); }
pcurves_brainpool256r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEES7_E18_const_time_poisonEv:
 1174|    164|      constexpr void _const_time_poison() const { CT::poison_all(m_x, m_y, m_z); }
pcurves_brainpool256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE18_const_time_poisonEv:
  889|    492|      constexpr void _const_time_poison() const { CT::poison(m_val); }
pcurves_brainpool256r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_114brainpool256r15CurveELm7EE10get_windowEm:
 1353|  7.05k|      size_t get_window(size_t offset) const {
 1354|       |         // Extract a WindowBits sized window out of s, depending on offset.
 1355|  7.05k|         return read_window_bits<WindowBits>(std::span{m_bytes}, offset);
 1356|  7.05k|      }
pcurves_brainpool256r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEES7_E10add_or_subERKSC_RKNS_16AffineCurvePointISB_EENS_2CT6ChoiceE:
 1096|  6.88k|      constexpr static Self add_or_sub(const Self& a, const AffinePoint& b, CT::Choice sub) {
 1097|  6.88k|         return point_add_or_sub_mixed<Self, AffinePoint, FieldElement>(a, b, sub, FieldElement::one());
 1098|  6.88k|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE18conditional_assignENS_2CT6ChoiceERKSA_:
  367|  6.88k|      constexpr void conditional_assign(CT::Choice cond, const Self& nx) {
  368|  6.88k|         const W mask = cond.into_bitmask<W>();
  369|       |
  370|  34.4k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (370:28): [True: 27.5k, False: 6.88k]
  ------------------
  371|  27.5k|            m_val[i] = Botan::choose(mask, nx.m_val[i], m_val[i]);
  372|  27.5k|         }
  373|  6.88k|      }
pcurves_brainpool256r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEEE9ct_selectENSt3__14spanIKSC_Lm18446744073709551615EEEm:
  955|  7.05k|      static constexpr auto ct_select(std::span<const Self> pts, size_t idx) {
  956|  7.05k|         auto result = Self::identity(pts[0]);
  957|       |
  958|       |         // Intentionally wrapping; set to maximum size_t if idx == 0
  959|  7.05k|         const size_t idx1 = static_cast<size_t>(idx - 1);
  960|   232k|         for(size_t i = 0; i != pts.size(); ++i) {
  ------------------
  |  Branch (960:28): [True: 225k, False: 7.05k]
  ------------------
  961|   225k|            const auto found = CT::Mask<size_t>::is_equal(idx1, i).as_choice();
  962|   225k|            result.conditional_assign(found, pts[i]);
  963|   225k|         }
  964|       |
  965|  7.05k|         return result;
  966|  7.05k|      }
pcurves_brainpool256r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEEE8identityERKSC_:
  924|  7.05k|      static constexpr Self identity(const Self& /*unused*/) {
  925|  7.05k|         return Self(FieldElement::zero(), FieldElement::zero());
  926|  7.05k|      }
pcurves_brainpool256r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEEE18conditional_assignENS_2CT6ChoiceERKSC_:
  981|   225k|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
  982|   225k|         FieldElement::conditional_assign(m_x, m_y, cond, pt.x(), pt.y());
  983|   225k|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE18conditional_assignERSA_SB_NS_2CT6ChoiceERKSA_SF_:
  380|   225k|      static constexpr void conditional_assign(Self& x, Self& y, CT::Choice cond, const Self& nx, const Self& ny) {
  381|   225k|         const W mask = cond.into_bitmask<W>();
  382|       |
  383|  1.12M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (383:28): [True: 902k, False: 225k]
  ------------------
  384|   902k|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  385|   902k|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  386|   902k|         }
  387|   225k|      }
pcurves_brainpool256r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEES7_E13randomize_repERNS_21RandomNumberGeneratorE:
 1142|    656|      void randomize_rep(RandomNumberGenerator& rng) {
 1143|       |         // In certain contexts we may be called with a Null_RNG; in that case the
 1144|       |         // caller is accepting that randomization will not occur
 1145|       |
 1146|       |         // Conditional ok: caller's RNG state (seeded vs not) is presumed public
 1147|    656|         if(rng.is_seeded()) {
  ------------------
  |  Branch (1147:13): [True: 0, False: 656]
  ------------------
 1148|      0|            auto r = FieldElement::random(rng);
 1149|       |
 1150|      0|            auto r2 = r.square();
 1151|      0|            auto r3 = r2 * r;
 1152|       |
 1153|      0|            m_x *= r2;
 1154|      0|            m_y *= r3;
 1155|      0|            m_z *= r;
 1156|      0|         }
 1157|    656|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEES7_E20_const_time_unpoisonEv:
 1176|    164|      constexpr void _const_time_unpoison() const { CT::unpoison_all(m_x, m_y, m_z); }
pcurves_brainpool256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE20_const_time_unpoisonEv:
  891|    492|      constexpr void _const_time_unpoison() const { CT::unpoison(m_val); }
pcurves_brainpool256r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_114brainpool256r15CurveELm7EED2Ev:
 1358|    164|      ~BlindedScalarBits() {
 1359|    164|         secure_zeroize_buffer(m_bytes.data(), m_bytes.size());
 1360|    164|         CT::unpoison(m_bytes.data(), m_bytes.size());
 1361|    164|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E12ScalarParamsEEEE10from_stashILm9EEESA_RKNSt3__15arrayImXT_EEE:
  774|    546|      static Self from_stash(const std::array<W, L>& stash) {
  775|    546|         static_assert(L >= N);
  776|    546|         std::array<W, N> val = {};
  777|  2.73k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 2.18k, False: 546]
  ------------------
  778|  2.18k|            val[i] = stash[i];
  779|  2.18k|         }
  780|    546|         return Self(val);
  781|    546|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E12ScalarParamsEEEEC2ENSt3__15arrayImLm4EEE:
  898|    738|      explicit constexpr IntMod(std::array<W, N> v) : m_val(v) {}
pcurves_brainpool256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE12serialize_toENSt3__14spanIhLm32EEE:
  739|    328|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    328|         auto v = Rep::from_rep(m_val);
  741|    328|         std::reverse(v.begin(), v.end());
  742|       |
  743|    328|         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|    328|            store_be(bytes, v);
  745|       |         } else {
  746|       |            // Remove leading zero bytes
  747|       |            const auto padded_bytes = store_be(v);
  748|       |            constexpr size_t extra = N * WordInfo<W>::bytes - Self::BYTES;
  749|       |            copy_mem(bytes, std::span{padded_bytes}.template subspan<extra, Self::BYTES>());
  750|       |         }
  751|    328|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E12ScalarParamsEEEE11stash_valueILm9EEENSt3__15arrayImXT_EEEv:
  759|    191|      std::array<W, L> stash_value() const {
  760|    191|         static_assert(L >= N);
  761|    191|         std::array<W, L> stash = {};
  762|    955|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 764, False: 191]
  ------------------
  763|    764|            stash[i] = m_val[i];
  764|    764|         }
  765|    191|         return stash;
  766|    191|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE10from_stashILm9EEESA_RKNSt3__15arrayImXT_EEE:
  774|  1.14k|      static Self from_stash(const std::array<W, L>& stash) {
  775|  1.14k|         static_assert(L >= N);
  776|  1.14k|         std::array<W, N> val = {};
  777|  5.74k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 4.59k, False: 1.14k]
  ------------------
  778|  4.59k|            val[i] = stash[i];
  779|  4.59k|         }
  780|  1.14k|         return Self(val);
  781|  1.14k|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E12ScalarParamsEEEE7is_zeroEv:
  225|    383|      constexpr CT::Choice is_zero() const { return CT::all_zeros(m_val.data(), m_val.size()).as_choice(); }
pcurves_brainpool256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEEeqERKSA_:
  722|    164|      constexpr CT::Choice operator==(const Self& other) const {
  723|    164|         return CT::is_equal(this->data(), other.data(), N).as_choice();
  724|    164|      }
pcurves_brainpool256r1.cpp:_ZN5Botan13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsENS_13MontgomeryRepEE7x3_ax_bERKNS_6IntModINS5_INS6_11FieldParamsEEEEE:
 1275|    164|      static constexpr FieldElement x3_ax_b(const FieldElement& x) { return (x.square() + A) * x + B; }
pcurves_brainpool256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E12ScalarParamsEEEE11deserializeENSt3__14spanIKhLm18446744073709551615EEE:
  792|    192|      static std::optional<Self> deserialize(std::span<const uint8_t> bytes) {
  793|       |         // Conditional ok: input length is public
  794|    192|         if(bytes.size() != Self::BYTES) {
  ------------------
  |  Branch (794:13): [True: 0, False: 192]
  ------------------
  795|      0|            return {};
  796|      0|         }
  797|       |
  798|    192|         const auto words = bytes_to_words<W, N, BYTES>(bytes.first<Self::BYTES>());
  799|       |
  800|       |         // Conditional acceptable: std::optional is implicitly not constant time
  801|    192|         if(!bigint_ct_is_lt(words.data(), N, P.data(), N).as_bool()) {
  ------------------
  |  Branch (801:13): [True: 0, False: 192]
  ------------------
  802|      0|            return {};
  803|      0|         }
  804|       |
  805|       |         // Safe because we checked above that words is an integer < P
  806|    192|         return Self::from_words(words);
  807|    192|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E12ScalarParamsEEEE10from_wordsILm4EEESA_NSt3__15arrayImXT_EEE:
  211|    192|      static constexpr Self from_words(std::array<W, L> w) {
  212|    192|         if constexpr(L == N) {
  213|    192|            return Self(Rep::to_rep(w));
  214|       |         } else {
  215|       |            static_assert(L < N);
  216|       |            std::array<W, N> ew = {};
  217|       |            copy_mem(std::span{ew}.template first<L>(), w);
  218|       |            return Self(Rep::to_rep(ew));
  219|       |         }
  220|    192|      }
pcurves_brainpool256r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES0_E12ScalarParamsEE6to_repERKNSt3__15arrayImLm4EEE:
  115|    192|      constexpr static std::array<W, N> to_rep(const std::array<W, N>& x) {
  116|    192|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  117|    192|         comba_mul<N>(z.data(), x.data(), R2.data());
  118|    192|         return Self::redc(z);
  119|    192|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEEE12serialize_toENSt3__14spanIhLm65EEE:
  941|    164|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  942|    164|         BOTAN_STATE_CHECK(this->is_identity().as_bool() == false);
  ------------------
  |  |   51|    164|   do {                                                         \
  |  |   52|    164|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    164|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 164]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    164|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 164]
  |  |  ------------------
  ------------------
  943|    164|         BufferStuffer pack(bytes);
  944|    164|         pack.append(0x04);
  945|    164|         x().serialize_to(pack.next<FieldElement::BYTES>());
  946|    164|         y().serialize_to(pack.next<FieldElement::BYTES>());
  947|    164|         BOTAN_DEBUG_ASSERT(pack.full());
  ------------------
  |  |  130|    164|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    164|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 164]
  |  |  ------------------
  ------------------
  948|    164|      }
pcurves_brainpool384r1.cpp:_ZN5Botan23PrecomputedBaseMulTableINS_6PCurve12_GLOBAL__N_114brainpool384r15CurveELm6EEC2ERKNS_16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEEEE:
 1405|      1|            m_table(basemul_booth_setup<C, WindowBits>(p, BlindedScalar::Bits + 1)) {}
pcurves_brainpool384r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEES7_E11from_affineERKNS_16AffineCurvePointISB_EE:
 1016|    147|      static constexpr Self from_affine(const AffinePoint& pt) {
 1017|       |         /*
 1018|       |         * If the point is the identity element (x=0, y=0) then instead of
 1019|       |         * creating (x, y, 1) = (0, 0, 1) we want our projective identity
 1020|       |         * encoding of (0, 1, 0)
 1021|       |         *
 1022|       |         * Which we can achieve by a conditional swap of y and z if the
 1023|       |         * affine point is the identity.
 1024|       |         */
 1025|       |
 1026|    147|         auto x = pt.x();
 1027|    147|         auto y = pt.y();
 1028|    147|         auto z = FieldElement::one();
 1029|       |
 1030|    147|         FieldElement::conditional_swap(pt.is_identity(), y, z);
 1031|       |
 1032|    147|         return ProjectiveCurvePoint(x, y, z);
 1033|    147|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEEE1xEv:
  971|   332k|      constexpr const FieldElement& x() const { return m_x; }
pcurves_brainpool384r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEEE1yEv:
  976|   323k|      constexpr const FieldElement& y() const { return m_y; }
pcurves_brainpool384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE3oneEv:
  200|  9.63k|      static constexpr Self one() { return Self(Rep::one()); }
pcurves_brainpool384r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES0_E11FieldParamsEE3oneEv:
   99|  9.63k|      constexpr static std::array<W, N> one() { return R1; }
pcurves_brainpool384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEEC2ENSt3__15arrayImLm6EEE:
  898|   283k|      explicit constexpr IntMod(std::array<W, N> v) : m_val(v) {}
pcurves_brainpool384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE16conditional_swapENS_2CT6ChoiceERSA_SD_:
  410|    147|      static constexpr void conditional_swap(CT::Choice cond, Self& x, Self& y) {
  411|    147|         const W mask = cond.into_bitmask<W>();
  412|       |
  413|  1.02k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (413:28): [True: 882, False: 147]
  ------------------
  414|    882|            auto nx = Botan::choose(mask, y.m_val[i], x.m_val[i]);
  415|    882|            auto ny = Botan::choose(mask, x.m_val[i], y.m_val[i]);
  416|    882|            x.m_val[i] = nx;
  417|    882|            y.m_val[i] = ny;
  418|    882|         }
  419|    147|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEEE11is_identityEv:
  928|  9.92k|      constexpr CT::Choice is_identity() const { return x().is_zero() && y().is_zero(); }
pcurves_brainpool384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE7is_zeroEv:
  225|  54.6k|      constexpr CT::Choice is_zero() const { return CT::all_zeros(m_val.data(), m_val.size()).as_choice(); }
pcurves_brainpool384r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEES7_EC2ERKSB_SE_SE_:
 1056|  12.1k|            m_x(x), m_y(y), m_z(z) {}
pcurves_brainpool384r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEES7_E3dblEv:
 1121|  1.24k|      constexpr Self dbl() const {
 1122|       |         if constexpr(Self::A_is_minus_3) {
 1123|       |            return dbl_a_minus_3(*this);
 1124|       |         } else if constexpr(Self::A_is_zero) {
 1125|       |            return dbl_a_zero(*this);
 1126|  1.24k|         } else {
 1127|  1.24k|            return dbl_generic(*this, A);
 1128|  1.24k|         }
 1129|  1.24k|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEES7_E1zEv:
 1172|  67.7k|      constexpr const FieldElement& z() const { return m_z; }
pcurves_brainpool384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE6squareEv:
  426|  44.8k|      constexpr BOTAN_FORCE_INLINE Self square() const {
  427|  44.8k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  428|  44.8k|         comba_sqr<N>(z.data(), this->data());
  429|  44.8k|         return Self(Rep::redc(z));
  430|  44.8k|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE4dataEv:
  896|   351k|      constexpr const W* data() const { return m_val.data(); }
pcurves_brainpool384r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES0_E11FieldParamsEE4redcERKNSt3__15arrayImLm12EEE:
  104|   220k|      constexpr static std::array<W, N> redc(const std::array<W, 2 * N>& z) {
  105|       |         if constexpr(P_dash == 1) {
  106|       |            return monty_redc_pdash1(z, P);
  107|   220k|         } else {
  108|   220k|            return monty_redc(z, P, P_dash);
  109|   220k|         }
  110|   220k|      }
pcurves_brainpool384r1.cpp:_ZN5BotanplERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEEESC_:
  265|  13.4k|      friend constexpr BOTAN_FORCE_INLINE Self operator+(const Self& a, const Self& b) {
  266|  13.4k|         std::array<W, N> t;  // NOLINT(*-member-init)
  267|       |
  268|  13.4k|         W carry = 0;
  269|  94.3k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (269:28): [True: 80.8k, False: 13.4k]
  ------------------
  270|  80.8k|            t[i] = word_add(a.m_val[i], b.m_val[i], &carry);
  271|  80.8k|         }
  272|       |
  273|  13.4k|         std::array<W, N> r;  // NOLINT(*-member-init)
  274|  13.4k|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  275|  13.4k|         return Self(r);
  276|  13.4k|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEES7_E1xEv:
 1162|  37.8k|      constexpr const FieldElement& x() const { return m_x; }
pcurves_brainpool384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE4mul3Ev:
  335|  1.24k|      constexpr inline Self mul3() const { return mul2() + (*this); }
pcurves_brainpool384r1.cpp:_ZN5BotanmlERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEEESC_:
  346|   109k|      friend constexpr BOTAN_FORCE_INLINE Self operator*(const Self& a, const Self& b) {
  347|   109k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  348|   109k|         comba_mul<N>(z.data(), a.data(), b.data());
  349|   109k|         return Self(Rep::redc(z));
  350|   109k|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEES7_E1yEv:
 1167|  37.8k|      constexpr const FieldElement& y() const { return m_y; }
pcurves_brainpool384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE4mul4Ev:
  338|  1.24k|      constexpr inline Self mul4() const { return mul2().mul2(); }
pcurves_brainpool384r1.cpp:_ZN5BotanmiERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEEESC_:
  281|  66.3k|      friend constexpr BOTAN_FORCE_INLINE Self operator-(const Self& a, const Self& b) {
  282|  66.3k|         std::array<W, N> r;  // NOLINT(*-member-init)
  283|  66.3k|         W carry = 0;
  284|   464k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (284:28): [True: 398k, False: 66.3k]
  ------------------
  285|   398k|            r[i] = word_sub(a.m_val[i], b.m_val[i], &carry);
  286|   398k|         }
  287|       |
  288|  66.3k|         const auto mask = CT::Mask<W>::expand(carry).value();
  289|       |
  290|  66.3k|         carry = 0;
  291|       |
  292|   464k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (292:28): [True: 398k, False: 66.3k]
  ------------------
  293|   398k|            r[i] = word_add(r[i], P[i] & mask, &carry);
  294|   398k|         }
  295|       |
  296|  66.3k|         return Self(r);
  297|  66.3k|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE4mul2Ev:
  325|  9.92k|      constexpr BOTAN_FORCE_INLINE Self mul2() const {
  326|  9.92k|         std::array<W, N> t = value();
  327|  9.92k|         const W carry = shift_left<1>(t);
  328|       |
  329|  9.92k|         std::array<W, N> r;  // NOLINT(*-member-init)
  330|  9.92k|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  331|  9.92k|         return Self(r);
  332|  9.92k|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE5valueEv:
  894|  9.92k|      constexpr const std::array<W, N>& value() const { return m_val; }
pcurves_brainpool384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE4mul8Ev:
  341|  1.24k|      constexpr inline Self mul8() const { return mul2().mul2().mul2(); }
pcurves_brainpool384r1.cpp:_ZN5BotanplERKNS_20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEES7_EESE_:
 1064|  1.09k|      friend constexpr Self operator+(const Self& a, const Self& b) { return Self::add(a, b); }
pcurves_brainpool384r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEES7_E3addERKSC_SE_:
 1103|  1.09k|      constexpr static Self add(const Self& a, const Self& b) { return point_add<Self, FieldElement>(a, b); }
pcurves_brainpool384r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEES7_E11is_identityEv:
 1082|  13.8k|      constexpr CT::Choice is_identity() const { return z().is_zero(); }
pcurves_brainpool384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE18conditional_assignERSA_SB_SB_NS_2CT6ChoiceERKSA_SF_SF_:
  395|  21.0k|         Self& x, Self& y, Self& z, CT::Choice cond, const Self& nx, const Self& ny, const Self& nz) {
  396|  21.0k|         const W mask = cond.into_bitmask<W>();
  397|       |
  398|   147k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (398:28): [True: 126k, False: 21.0k]
  ------------------
  399|   126k|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  400|   126k|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  401|   126k|            z.m_val[i] = Botan::choose(mask, nz.m_val[i], z.m_val[i]);
  402|   126k|         }
  403|  21.0k|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE6invertEv:
  538|    146|      constexpr Self invert() const { return pow_vartime(Self::P_MINUS_2); }
pcurves_brainpool384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE11pow_vartimeERKNSt3__15arrayImLm6EEE:
  477|    146|      constexpr Self pow_vartime(const std::array<W, N>& exp) const {
  478|    146|         constexpr size_t WindowBits = (Self::BITS <= 256) ? 4 : 5;
  ------------------
  |  Branch (478:40): [Folded, False: 146]
  ------------------
  479|    146|         constexpr size_t WindowElements = (1 << WindowBits) - 1;
  480|       |
  481|    146|         constexpr size_t Windows = (Self::BITS + WindowBits - 1) / WindowBits;
  482|       |
  483|       |         /*
  484|       |         A simple fixed width window modular multiplication.
  485|       |
  486|       |         TODO: investigate using sliding window here
  487|       |         */
  488|       |
  489|    146|         std::array<Self, WindowElements> tbl;
  490|       |
  491|    146|         tbl[0] = (*this);
  492|       |
  493|  4.52k|         for(size_t i = 1; i != WindowElements; ++i) {
  ------------------
  |  Branch (493:28): [True: 4.38k, False: 146]
  ------------------
  494|       |            // Conditional ok: table indexes are public here
  495|  4.38k|            if(i % 2 == 1) {
  ------------------
  |  Branch (495:16): [True: 2.19k, False: 2.19k]
  ------------------
  496|  2.19k|               tbl[i] = tbl[i / 2].square();
  497|  2.19k|            } else {
  498|  2.19k|               tbl[i] = tbl[i - 1] * tbl[0];
  499|  2.19k|            }
  500|  4.38k|         }
  501|       |
  502|    146|         auto r = Self::one();
  503|       |
  504|    146|         const size_t w0 = read_window_bits<WindowBits>(std::span{exp}, (Windows - 1) * WindowBits);
  505|       |
  506|       |         // Conditional ok: this function is variable time
  507|    146|         if(w0 > 0) {
  ------------------
  |  Branch (507:13): [True: 146, False: 0]
  ------------------
  508|    146|            r = tbl[w0 - 1];
  509|    146|         }
  510|       |
  511|  11.2k|         for(size_t i = 1; i != Windows; ++i) {
  ------------------
  |  Branch (511:28): [True: 11.0k, False: 146]
  ------------------
  512|  11.0k|            r.square_n(WindowBits);
  513|       |
  514|  11.0k|            const size_t w = read_window_bits<WindowBits>(std::span{exp}, (Windows - i - 1) * WindowBits);
  515|       |
  516|       |            // Conditional ok: this function is variable time
  517|  11.0k|            if(w > 0) {
  ------------------
  |  Branch (517:16): [True: 10.6k, False: 438]
  ------------------
  518|  10.6k|               r *= tbl[w - 1];
  519|  10.6k|            }
  520|  11.0k|         }
  521|       |
  522|    146|         return r;
  523|    146|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEEC2Ev:
  180|  4.52k|      constexpr IntMod() : m_val({}) {}
pcurves_brainpool384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE8square_nEm:
  439|  11.0k|      constexpr void square_n(size_t n) {
  440|  11.0k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  441|  66.5k|         for(size_t i = 0; i != n; ++i) {
  ------------------
  |  Branch (441:28): [True: 55.4k, False: 11.0k]
  ------------------
  442|  55.4k|            comba_sqr<N>(z.data(), this->data());
  443|  55.4k|            m_val = Rep::redc(z);
  444|  55.4k|         }
  445|  11.0k|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEEmLERKSA_:
  355|  10.6k|      constexpr BOTAN_FORCE_INLINE Self& operator*=(const Self& other) {
  356|  10.6k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  357|  10.6k|         comba_mul<N>(z.data(), data(), other.data());
  358|  10.6k|         m_val = Rep::redc(z);
  359|  10.6k|         return (*this);
  360|  10.6k|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE14invert_vartimeEv:
  598|      1|      constexpr Self invert_vartime() const {
  599|       |         // Conditional ok: this function is variable time
  600|      1|         if(this->is_zero().as_bool()) {
  ------------------
  |  Branch (600:13): [True: 0, False: 1]
  ------------------
  601|      0|            return Self::zero();
  602|      0|         }
  603|       |
  604|      1|         auto x = Self(std::array<W, N>{1});  // 1 in standard domain
  605|      1|         auto b = Self(this->to_words());     // *this in standard domain
  606|       |
  607|       |         // First loop iteration
  608|      1|         Self::_invert_vartime_div2_helper(b, x);
  609|       |
  610|      1|         auto a = b.negate();
  611|       |         // y += x but y is zero at the outset
  612|      1|         auto y = x;
  613|       |
  614|       |         // First half of second loop iteration
  615|      1|         Self::_invert_vartime_div2_helper(a, y);
  616|       |
  617|    262|         for(;;) {
  618|       |            // Conditional ok: this function is variable time
  619|    262|            if(a.m_val == b.m_val) {
  ------------------
  |  Branch (619:16): [True: 1, False: 261]
  ------------------
  620|       |               // At this point it should be that a == b == 1
  621|      1|               auto r = y.negate();
  622|       |
  623|       |               // Convert back to Montgomery if required
  624|      1|               r.m_val = Rep::to_rep(r.m_val);
  625|      1|               return r;
  626|      1|            }
  627|       |
  628|    261|            auto nx = x + y;
  629|       |
  630|       |            /*
  631|       |            * Otherwise either b > a or a > b
  632|       |            *
  633|       |            * If b > a we want to set b to b - a
  634|       |            * Otherwise we want to set a to a - b
  635|       |            *
  636|       |            * Compute r = b - a and check if it underflowed
  637|       |            * If it did not then we are in the b > a path
  638|       |            */
  639|    261|            std::array<W, N> r;  // NOLINT(*-member-init)
  640|    261|            const word carry = bigint_sub3(r.data(), b.data(), N, a.data(), N);
  641|       |
  642|       |            // Conditional ok: this function is variable time
  643|    261|            if(carry == 0) {
  ------------------
  |  Branch (643:16): [True: 128, False: 133]
  ------------------
  644|       |               // b > a
  645|    128|               b.m_val = r;
  646|    128|               x = nx;
  647|    128|               Self::_invert_vartime_div2_helper(b, x);
  648|    133|            } else {
  649|       |               // We know this can't underflow because a > b
  650|    133|               bigint_sub3(r.data(), a.data(), N, b.data(), N);
  651|    133|               a.m_val = r;
  652|    133|               y = nx;
  653|    133|               Self::_invert_vartime_div2_helper(a, y);
  654|    133|            }
  655|    261|         }
  656|      1|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE4zeroEv:
  195|  18.9k|      static constexpr Self zero() { return Self(std::array<W, N>{0}); }
pcurves_brainpool384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE8to_wordsEv:
  734|      1|      constexpr std::array<W, Self::N> to_words() const { return Rep::from_rep(m_val); }
pcurves_brainpool384r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES0_E11FieldParamsEE8from_repERKNSt3__15arrayImLm6EEE:
  137|    293|      constexpr static std::array<W, N> from_rep(const std::array<W, N>& z) {
  138|    293|         std::array<W, 2 * N> ze = {};
  139|    293|         copy_mem(std::span{ze}.template first<N>(), z);
  140|    293|         return Self::redc(ze);
  141|    293|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE27_invert_vartime_div2_helperERSA_SB_:
  547|    263|      static constexpr void _invert_vartime_div2_helper(Self& a, Self& x) {
  548|    263|         constexpr auto INV_2 = p_div_2_plus_1(Rep::P);
  549|       |
  550|       |         // Conditional ok: this function is variable time
  551|    814|         while((a.m_val[0] & 1) != 1) {
  ------------------
  |  Branch (551:16): [True: 551, False: 263]
  ------------------
  552|    551|            shift_right<1>(a.m_val);
  553|       |
  554|    551|            const W borrow = shift_right<1>(x.m_val);
  555|       |
  556|       |            // Conditional ok: this function is variable time
  557|    551|            if(borrow) {
  ------------------
  |  Branch (557:16): [True: 291, False: 260]
  ------------------
  558|    291|               bigint_add2(x.m_val.data(), N, INV_2.data(), N);
  559|    291|            }
  560|    551|         }
  561|    263|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE6negateEv:
  452|  9.49k|      constexpr Self negate() const {
  453|  9.49k|         const W x_is_zero = ~CT::all_zeros(this->data(), N).value();
  454|       |
  455|  9.49k|         std::array<W, N> r;  // NOLINT(*-member-init)
  456|  9.49k|         W carry = 0;
  457|  66.4k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (457:28): [True: 56.9k, False: 9.49k]
  ------------------
  458|  56.9k|            r[i] = word_sub(P[i] & x_is_zero, m_val[i], &carry);
  459|  56.9k|         }
  460|       |
  461|  9.49k|         return Self(r);
  462|  9.49k|      }
pcurves_brainpool384r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES0_E11FieldParamsEE6to_repERKNSt3__15arrayImLm6EEE:
  115|      1|      constexpr static std::array<W, N> to_rep(const std::array<W, N>& x) {
  116|      1|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  117|      1|         comba_mul<N>(z.data(), x.data(), R2.data());
  118|      1|         return Self::redc(z);
  119|      1|      }
pcurves_brainpool384r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEEEC2ERKSB_SE_:
  917|  12.2k|      constexpr AffineCurvePoint(const FieldElement& x, const FieldElement& y) : m_x(x), m_y(y) {}
pcurves_brainpool384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE11stash_valueILm9EEENSt3__15arrayImXT_EEEv:
  759|    730|      std::array<W, L> stash_value() const {
  760|    730|         static_assert(L >= N);
  761|    730|         std::array<W, L> stash = {};
  762|  5.11k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 4.38k, False: 730]
  ------------------
  763|  4.38k|            stash[i] = m_val[i];
  764|  4.38k|         }
  765|    730|         return stash;
  766|    730|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan23PrecomputedBaseMulTableINS_6PCurve12_GLOBAL__N_114brainpool384r15CurveELm6EE3mulERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES7_E12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1407|    146|      ProjectivePoint mul(const Scalar& s, RandomNumberGenerator& rng) const {
 1408|    146|         const BlindedScalar scalar(s, rng);
 1409|    146|         return basemul_booth_exec<C, WindowBits>(m_table, scalar, rng);
 1410|    146|      }
pcurves_brainpool384r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_114brainpool384r15CurveELm7EEC2ERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES7_E12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1307|    146|      BlindedScalarBits(const typename C::Scalar& scalar, RandomNumberGenerator& rng) {
 1308|    146|         if(BlindingBits > 0 && rng.is_seeded()) {
  ------------------
  |  Branch (1308:13): [True: 146, Folded]
  |  Branch (1308:33): [True: 0, False: 146]
  ------------------
 1309|      0|            constexpr size_t MaskWords = (BlindingBits + WordInfo<W>::bits - 1) / WordInfo<W>::bits;
 1310|      0|            constexpr size_t MaskBytes = MaskWords * WordInfo<W>::bytes;
 1311|       |
 1312|      0|            constexpr size_t n_words = C::Words;
 1313|       |
 1314|      0|            uint8_t maskb[MaskBytes + (BlindingBits == 0 ? 1 : 0)] = {0};
 1315|      0|            rng.randomize(maskb, MaskBytes);
 1316|       |
 1317|      0|            W mask[n_words] = {0};
 1318|      0|            load_le(mask, maskb, MaskWords);
 1319|       |
 1320|       |            // Mask to exactly BlindingBits
 1321|      0|            constexpr size_t ExcessBits = MaskWords * WordInfo<W>::bits - BlindingBits;
 1322|      0|            if constexpr(ExcessBits > 0) {
 1323|      0|               constexpr W ExcessMask = (static_cast<W>(1) << (WordInfo<W>::bits - ExcessBits)) - 1;
 1324|      0|               mask[MaskWords - 1] &= ExcessMask;
 1325|      0|            }
 1326|       |
 1327|       |            // Set top and bottom bits of mask
 1328|      0|            constexpr size_t TopMaskBit = (BlindingBits - 1) % WordInfo<W>::bits;
 1329|      0|            mask[(BlindingBits - 1) / WordInfo<W>::bits] |= static_cast<W>(1) << TopMaskBit;
 1330|      0|            mask[0] |= 1;
 1331|       |
 1332|      0|            W mask_n[2 * n_words] = {0};
 1333|       |
 1334|      0|            const auto sw = scalar.to_words();
 1335|       |
 1336|       |            // Compute masked scalar s + k*n
 1337|      0|            comba_mul<n_words>(mask_n, mask, C::NW.data());
 1338|      0|            bigint_add2(mask_n, 2 * n_words, sw.data(), sw.size());
 1339|       |
 1340|      0|            std::reverse(mask_n, mask_n + 2 * n_words);
 1341|      0|            m_bytes = store_be<std::vector<uint8_t>>(mask_n);
 1342|      0|            m_bits = C::Scalar::BITS + BlindingBits;
 1343|    146|         } else {
 1344|       |            // No RNG available, skip blinding
 1345|    146|            m_bytes.resize(C::Scalar::BYTES);
 1346|    146|            scalar.serialize_to(std::span{m_bytes}.template first<C::Scalar::BYTES>());
 1347|    146|            m_bits = C::Scalar::BITS;
 1348|    146|         }
 1349|       |
 1350|    146|         CT::poison(m_bytes.data(), m_bytes.size());
 1351|    146|      }
pcurves_brainpool384r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES0_E12ScalarParamsEE8from_repERKNSt3__15arrayImLm6EEE:
  137|    321|      constexpr static std::array<W, N> from_rep(const std::array<W, N>& z) {
  138|    321|         std::array<W, 2 * N> ze = {};
  139|    321|         copy_mem(std::span{ze}.template first<N>(), z);
  140|    321|         return Self::redc(ze);
  141|    321|      }
pcurves_brainpool384r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES0_E12ScalarParamsEE4redcERKNSt3__15arrayImLm12EEE:
  104|    497|      constexpr static std::array<W, N> redc(const std::array<W, 2 * N>& z) {
  105|       |         if constexpr(P_dash == 1) {
  106|       |            return monty_redc_pdash1(z, P);
  107|    497|         } else {
  108|    497|            return monty_redc(z, P, P_dash);
  109|    497|         }
  110|    497|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E12ScalarParamsEEEE12serialize_toENSt3__14spanIhLm48EEE:
  739|    321|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    321|         auto v = Rep::from_rep(m_val);
  741|    321|         std::reverse(v.begin(), v.end());
  742|       |
  743|    321|         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|    321|            store_be(bytes, v);
  745|       |         } else {
  746|       |            // Remove leading zero bytes
  747|       |            const auto padded_bytes = store_be(v);
  748|       |            constexpr size_t extra = N * WordInfo<W>::bytes - Self::BYTES;
  749|       |            copy_mem(bytes, std::span{padded_bytes}.template subspan<extra, Self::BYTES>());
  750|       |         }
  751|    321|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_114brainpool384r15CurveELm7EE4bitsEv:
 1305|    146|      size_t bits() const { return m_bits; }
pcurves_brainpool384r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEES7_E18conditional_assignENS_2CT6ChoiceERKSC_:
 1084|    146|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
 1085|    146|         FieldElement::conditional_assign(m_x, m_y, m_z, cond, pt.x(), pt.y(), pt.z());
 1086|    146|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEES7_E6negateEv:
 1134|    146|      constexpr Self negate() const { return Self(x(), y().negate(), z()); }
pcurves_brainpool384r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEES7_E18_const_time_poisonEv:
 1174|    146|      constexpr void _const_time_poison() const { CT::poison_all(m_x, m_y, m_z); }
pcurves_brainpool384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE18_const_time_poisonEv:
  889|    438|      constexpr void _const_time_poison() const { CT::poison(m_val); }
pcurves_brainpool384r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_114brainpool384r15CurveELm7EE10get_windowEm:
 1353|  9.49k|      size_t get_window(size_t offset) const {
 1354|       |         // Extract a WindowBits sized window out of s, depending on offset.
 1355|  9.49k|         return read_window_bits<WindowBits>(std::span{m_bytes}, offset);
 1356|  9.49k|      }
pcurves_brainpool384r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEES7_E10add_or_subERKSC_RKNS_16AffineCurvePointISB_EENS_2CT6ChoiceE:
 1096|  9.34k|      constexpr static Self add_or_sub(const Self& a, const AffinePoint& b, CT::Choice sub) {
 1097|  9.34k|         return point_add_or_sub_mixed<Self, AffinePoint, FieldElement>(a, b, sub, FieldElement::one());
 1098|  9.34k|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE18conditional_assignENS_2CT6ChoiceERKSA_:
  367|  9.34k|      constexpr void conditional_assign(CT::Choice cond, const Self& nx) {
  368|  9.34k|         const W mask = cond.into_bitmask<W>();
  369|       |
  370|  65.4k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (370:28): [True: 56.0k, False: 9.34k]
  ------------------
  371|  56.0k|            m_val[i] = Botan::choose(mask, nx.m_val[i], m_val[i]);
  372|  56.0k|         }
  373|  9.34k|      }
pcurves_brainpool384r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEEE9ct_selectENSt3__14spanIKSC_Lm18446744073709551615EEEm:
  955|  9.49k|      static constexpr auto ct_select(std::span<const Self> pts, size_t idx) {
  956|  9.49k|         auto result = Self::identity(pts[0]);
  957|       |
  958|       |         // Intentionally wrapping; set to maximum size_t if idx == 0
  959|  9.49k|         const size_t idx1 = static_cast<size_t>(idx - 1);
  960|   313k|         for(size_t i = 0; i != pts.size(); ++i) {
  ------------------
  |  Branch (960:28): [True: 303k, False: 9.49k]
  ------------------
  961|   303k|            const auto found = CT::Mask<size_t>::is_equal(idx1, i).as_choice();
  962|   303k|            result.conditional_assign(found, pts[i]);
  963|   303k|         }
  964|       |
  965|  9.49k|         return result;
  966|  9.49k|      }
pcurves_brainpool384r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEEE8identityERKSC_:
  924|  9.49k|      static constexpr Self identity(const Self& /*unused*/) {
  925|  9.49k|         return Self(FieldElement::zero(), FieldElement::zero());
  926|  9.49k|      }
pcurves_brainpool384r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEEE18conditional_assignENS_2CT6ChoiceERKSC_:
  981|   303k|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
  982|   303k|         FieldElement::conditional_assign(m_x, m_y, cond, pt.x(), pt.y());
  983|   303k|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE18conditional_assignERSA_SB_NS_2CT6ChoiceERKSA_SF_:
  380|   303k|      static constexpr void conditional_assign(Self& x, Self& y, CT::Choice cond, const Self& nx, const Self& ny) {
  381|   303k|         const W mask = cond.into_bitmask<W>();
  382|       |
  383|  2.12M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (383:28): [True: 1.82M, False: 303k]
  ------------------
  384|  1.82M|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  385|  1.82M|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  386|  1.82M|         }
  387|   303k|      }
pcurves_brainpool384r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEES7_E13randomize_repERNS_21RandomNumberGeneratorE:
 1142|    584|      void randomize_rep(RandomNumberGenerator& rng) {
 1143|       |         // In certain contexts we may be called with a Null_RNG; in that case the
 1144|       |         // caller is accepting that randomization will not occur
 1145|       |
 1146|       |         // Conditional ok: caller's RNG state (seeded vs not) is presumed public
 1147|    584|         if(rng.is_seeded()) {
  ------------------
  |  Branch (1147:13): [True: 0, False: 584]
  ------------------
 1148|      0|            auto r = FieldElement::random(rng);
 1149|       |
 1150|      0|            auto r2 = r.square();
 1151|      0|            auto r3 = r2 * r;
 1152|       |
 1153|      0|            m_x *= r2;
 1154|      0|            m_y *= r3;
 1155|      0|            m_z *= r;
 1156|      0|         }
 1157|    584|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEES7_E20_const_time_unpoisonEv:
 1176|    146|      constexpr void _const_time_unpoison() const { CT::unpoison_all(m_x, m_y, m_z); }
pcurves_brainpool384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE20_const_time_unpoisonEv:
  891|    438|      constexpr void _const_time_unpoison() const { CT::unpoison(m_val); }
pcurves_brainpool384r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_114brainpool384r15CurveELm7EED2Ev:
 1358|    146|      ~BlindedScalarBits() {
 1359|    146|         secure_zeroize_buffer(m_bytes.data(), m_bytes.size());
 1360|    146|         CT::unpoison(m_bytes.data(), m_bytes.size());
 1361|    146|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E12ScalarParamsEEEE10from_stashILm9EEESA_RKNSt3__15arrayImXT_EEE:
  774|    496|      static Self from_stash(const std::array<W, L>& stash) {
  775|    496|         static_assert(L >= N);
  776|    496|         std::array<W, N> val = {};
  777|  3.47k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 2.97k, False: 496]
  ------------------
  778|  2.97k|            val[i] = stash[i];
  779|  2.97k|         }
  780|    496|         return Self(val);
  781|    496|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E12ScalarParamsEEEEC2ENSt3__15arrayImLm6EEE:
  898|    672|      explicit constexpr IntMod(std::array<W, N> v) : m_val(v) {}
pcurves_brainpool384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE12serialize_toENSt3__14spanIhLm48EEE:
  739|    292|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    292|         auto v = Rep::from_rep(m_val);
  741|    292|         std::reverse(v.begin(), v.end());
  742|       |
  743|    292|         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|    292|            store_be(bytes, v);
  745|       |         } else {
  746|       |            // Remove leading zero bytes
  747|       |            const auto padded_bytes = store_be(v);
  748|       |            constexpr size_t extra = N * WordInfo<W>::bytes - Self::BYTES;
  749|       |            copy_mem(bytes, std::span{padded_bytes}.template subspan<extra, Self::BYTES>());
  750|       |         }
  751|    292|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E12ScalarParamsEEEE11stash_valueILm9EEENSt3__15arrayImXT_EEEv:
  759|    175|      std::array<W, L> stash_value() const {
  760|    175|         static_assert(L >= N);
  761|    175|         std::array<W, L> stash = {};
  762|  1.22k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 1.05k, False: 175]
  ------------------
  763|  1.05k|            stash[i] = m_val[i];
  764|  1.05k|         }
  765|    175|         return stash;
  766|    175|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE10from_stashILm9EEESA_RKNSt3__15arrayImXT_EEE:
  774|  1.02k|      static Self from_stash(const std::array<W, L>& stash) {
  775|  1.02k|         static_assert(L >= N);
  776|  1.02k|         std::array<W, N> val = {};
  777|  7.15k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 6.13k, False: 1.02k]
  ------------------
  778|  6.13k|            val[i] = stash[i];
  779|  6.13k|         }
  780|  1.02k|         return Self(val);
  781|  1.02k|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E12ScalarParamsEEEE7is_zeroEv:
  225|    351|      constexpr CT::Choice is_zero() const { return CT::all_zeros(m_val.data(), m_val.size()).as_choice(); }
pcurves_brainpool384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEEeqERKSA_:
  722|    146|      constexpr CT::Choice operator==(const Self& other) const {
  723|    146|         return CT::is_equal(this->data(), other.data(), N).as_choice();
  724|    146|      }
pcurves_brainpool384r1.cpp:_ZN5Botan13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsENS_13MontgomeryRepEE7x3_ax_bERKNS_6IntModINS5_INS6_11FieldParamsEEEEE:
 1275|    146|      static constexpr FieldElement x3_ax_b(const FieldElement& x) { return (x.square() + A) * x + B; }
pcurves_brainpool384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E12ScalarParamsEEEE11deserializeENSt3__14spanIKhLm18446744073709551615EEE:
  792|    176|      static std::optional<Self> deserialize(std::span<const uint8_t> bytes) {
  793|       |         // Conditional ok: input length is public
  794|    176|         if(bytes.size() != Self::BYTES) {
  ------------------
  |  Branch (794:13): [True: 0, False: 176]
  ------------------
  795|      0|            return {};
  796|      0|         }
  797|       |
  798|    176|         const auto words = bytes_to_words<W, N, BYTES>(bytes.first<Self::BYTES>());
  799|       |
  800|       |         // Conditional acceptable: std::optional is implicitly not constant time
  801|    176|         if(!bigint_ct_is_lt(words.data(), N, P.data(), N).as_bool()) {
  ------------------
  |  Branch (801:13): [True: 0, False: 176]
  ------------------
  802|      0|            return {};
  803|      0|         }
  804|       |
  805|       |         // Safe because we checked above that words is an integer < P
  806|    176|         return Self::from_words(words);
  807|    176|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E12ScalarParamsEEEE10from_wordsILm6EEESA_NSt3__15arrayImXT_EEE:
  211|    176|      static constexpr Self from_words(std::array<W, L> w) {
  212|    176|         if constexpr(L == N) {
  213|    176|            return Self(Rep::to_rep(w));
  214|       |         } else {
  215|       |            static_assert(L < N);
  216|       |            std::array<W, N> ew = {};
  217|       |            copy_mem(std::span{ew}.template first<L>(), w);
  218|       |            return Self(Rep::to_rep(ew));
  219|       |         }
  220|    176|      }
pcurves_brainpool384r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES0_E12ScalarParamsEE6to_repERKNSt3__15arrayImLm6EEE:
  115|    176|      constexpr static std::array<W, N> to_rep(const std::array<W, N>& x) {
  116|    176|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  117|    176|         comba_mul<N>(z.data(), x.data(), R2.data());
  118|    176|         return Self::redc(z);
  119|    176|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEEE12serialize_toENSt3__14spanIhLm97EEE:
  941|    146|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  942|    146|         BOTAN_STATE_CHECK(this->is_identity().as_bool() == false);
  ------------------
  |  |   51|    146|   do {                                                         \
  |  |   52|    146|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    146|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 146]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    146|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 146]
  |  |  ------------------
  ------------------
  943|    146|         BufferStuffer pack(bytes);
  944|    146|         pack.append(0x04);
  945|    146|         x().serialize_to(pack.next<FieldElement::BYTES>());
  946|    146|         y().serialize_to(pack.next<FieldElement::BYTES>());
  947|    146|         BOTAN_DEBUG_ASSERT(pack.full());
  ------------------
  |  |  130|    146|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    146|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 146]
  |  |  ------------------
  ------------------
  948|    146|      }
pcurves_brainpool512r1.cpp:_ZN5Botan23PrecomputedBaseMulTableINS_6PCurve12_GLOBAL__N_114brainpool512r15CurveELm6EEC2ERKNS_16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEEEE:
 1405|      1|            m_table(basemul_booth_setup<C, WindowBits>(p, BlindedScalar::Bits + 1)) {}
pcurves_brainpool512r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEES7_E11from_affineERKNS_16AffineCurvePointISB_EE:
 1016|    172|      static constexpr Self from_affine(const AffinePoint& pt) {
 1017|       |         /*
 1018|       |         * If the point is the identity element (x=0, y=0) then instead of
 1019|       |         * creating (x, y, 1) = (0, 0, 1) we want our projective identity
 1020|       |         * encoding of (0, 1, 0)
 1021|       |         *
 1022|       |         * Which we can achieve by a conditional swap of y and z if the
 1023|       |         * affine point is the identity.
 1024|       |         */
 1025|       |
 1026|    172|         auto x = pt.x();
 1027|    172|         auto y = pt.y();
 1028|    172|         auto z = FieldElement::one();
 1029|       |
 1030|    172|         FieldElement::conditional_swap(pt.is_identity(), y, z);
 1031|       |
 1032|    172|         return ProjectiveCurvePoint(x, y, z);
 1033|    172|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEEE1xEv:
  971|   515k|      constexpr const FieldElement& x() const { return m_x; }
pcurves_brainpool512r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEEE1yEv:
  976|   501k|      constexpr const FieldElement& y() const { return m_y; }
pcurves_brainpool512r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE3oneEv:
  200|  14.8k|      static constexpr Self one() { return Self(Rep::one()); }
pcurves_brainpool512r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES0_E11FieldParamsEE3oneEv:
   99|  14.8k|      constexpr static std::array<W, N> one() { return R1; }
pcurves_brainpool512r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEEC2ENSt3__15arrayImLm8EEE:
  898|   421k|      explicit constexpr IntMod(std::array<W, N> v) : m_val(v) {}
pcurves_brainpool512r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE16conditional_swapENS_2CT6ChoiceERSA_SD_:
  410|    172|      static constexpr void conditional_swap(CT::Choice cond, Self& x, Self& y) {
  411|    172|         const W mask = cond.into_bitmask<W>();
  412|       |
  413|  1.54k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (413:28): [True: 1.37k, False: 172]
  ------------------
  414|  1.37k|            auto nx = Botan::choose(mask, y.m_val[i], x.m_val[i]);
  415|  1.37k|            auto ny = Botan::choose(mask, x.m_val[i], y.m_val[i]);
  416|  1.37k|            x.m_val[i] = nx;
  417|  1.37k|            y.m_val[i] = ny;
  418|  1.37k|         }
  419|    172|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEEE11is_identityEv:
  928|  15.2k|      constexpr CT::Choice is_identity() const { return x().is_zero() && y().is_zero(); }
pcurves_brainpool512r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE7is_zeroEv:
  225|  82.9k|      constexpr CT::Choice is_zero() const { return CT::all_zeros(m_val.data(), m_val.size()).as_choice(); }
pcurves_brainpool512r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEES7_EC2ERKSB_SE_SE_:
 1056|  18.1k|            m_x(x), m_y(y), m_z(z) {}
pcurves_brainpool512r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEES7_E3dblEv:
 1121|  1.64k|      constexpr Self dbl() const {
 1122|       |         if constexpr(Self::A_is_minus_3) {
 1123|       |            return dbl_a_minus_3(*this);
 1124|       |         } else if constexpr(Self::A_is_zero) {
 1125|       |            return dbl_a_zero(*this);
 1126|  1.64k|         } else {
 1127|  1.64k|            return dbl_generic(*this, A);
 1128|  1.64k|         }
 1129|  1.64k|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEES7_E1zEv:
 1172|   100k|      constexpr const FieldElement& z() const { return m_z; }
pcurves_brainpool512r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE6squareEv:
  426|  65.5k|      constexpr BOTAN_FORCE_INLINE Self square() const {
  427|  65.5k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  428|  65.5k|         comba_sqr<N>(z.data(), this->data());
  429|  65.5k|         return Self(Rep::redc(z));
  430|  65.5k|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE4dataEv:
  896|   527k|      constexpr const W* data() const { return m_val.data(); }
pcurves_brainpool512r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES0_E11FieldParamsEE4redcERKNSt3__15arrayImLm16EEE:
  104|   332k|      constexpr static std::array<W, N> redc(const std::array<W, 2 * N>& z) {
  105|       |         if constexpr(P_dash == 1) {
  106|       |            return monty_redc_pdash1(z, P);
  107|   332k|         } else {
  108|   332k|            return monty_redc(z, P, P_dash);
  109|   332k|         }
  110|   332k|      }
pcurves_brainpool512r1.cpp:_ZN5BotanplERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEEESC_:
  265|  19.9k|      friend constexpr BOTAN_FORCE_INLINE Self operator+(const Self& a, const Self& b) {
  266|  19.9k|         std::array<W, N> t;  // NOLINT(*-member-init)
  267|       |
  268|  19.9k|         W carry = 0;
  269|   179k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (269:28): [True: 159k, False: 19.9k]
  ------------------
  270|   159k|            t[i] = word_add(a.m_val[i], b.m_val[i], &carry);
  271|   159k|         }
  272|       |
  273|  19.9k|         std::array<W, N> r;  // NOLINT(*-member-init)
  274|  19.9k|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  275|  19.9k|         return Self(r);
  276|  19.9k|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEES7_E1xEv:
 1162|  56.5k|      constexpr const FieldElement& x() const { return m_x; }
pcurves_brainpool512r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE4mul3Ev:
  335|  1.64k|      constexpr inline Self mul3() const { return mul2() + (*this); }
pcurves_brainpool512r1.cpp:_ZN5BotanmlERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEEESC_:
  346|   162k|      friend constexpr BOTAN_FORCE_INLINE Self operator*(const Self& a, const Self& b) {
  347|   162k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  348|   162k|         comba_mul<N>(z.data(), a.data(), b.data());
  349|   162k|         return Self(Rep::redc(z));
  350|   162k|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEES7_E1yEv:
 1167|  56.5k|      constexpr const FieldElement& y() const { return m_y; }
pcurves_brainpool512r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE4mul4Ev:
  338|  1.64k|      constexpr inline Self mul4() const { return mul2().mul2(); }
pcurves_brainpool512r1.cpp:_ZN5BotanmiERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEEESC_:
  281|   100k|      friend constexpr BOTAN_FORCE_INLINE Self operator-(const Self& a, const Self& b) {
  282|   100k|         std::array<W, N> r;  // NOLINT(*-member-init)
  283|   100k|         W carry = 0;
  284|   907k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (284:28): [True: 807k, False: 100k]
  ------------------
  285|   807k|            r[i] = word_sub(a.m_val[i], b.m_val[i], &carry);
  286|   807k|         }
  287|       |
  288|   100k|         const auto mask = CT::Mask<W>::expand(carry).value();
  289|       |
  290|   100k|         carry = 0;
  291|       |
  292|   907k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (292:28): [True: 807k, False: 100k]
  ------------------
  293|   807k|            r[i] = word_add(r[i], P[i] & mask, &carry);
  294|   807k|         }
  295|       |
  296|   100k|         return Self(r);
  297|   100k|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE4mul2Ev:
  325|  13.1k|      constexpr BOTAN_FORCE_INLINE Self mul2() const {
  326|  13.1k|         std::array<W, N> t = value();
  327|  13.1k|         const W carry = shift_left<1>(t);
  328|       |
  329|  13.1k|         std::array<W, N> r;  // NOLINT(*-member-init)
  330|  13.1k|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  331|  13.1k|         return Self(r);
  332|  13.1k|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE5valueEv:
  894|  13.1k|      constexpr const std::array<W, N>& value() const { return m_val; }
pcurves_brainpool512r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE4mul8Ev:
  341|  1.64k|      constexpr inline Self mul8() const { return mul2().mul2().mul2(); }
pcurves_brainpool512r1.cpp:_ZN5BotanplERKNS_20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEES7_EESE_:
 1064|  1.45k|      friend constexpr Self operator+(const Self& a, const Self& b) { return Self::add(a, b); }
pcurves_brainpool512r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEES7_E3addERKSC_SE_:
 1103|  1.45k|      constexpr static Self add(const Self& a, const Self& b) { return point_add<Self, FieldElement>(a, b); }
pcurves_brainpool512r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEES7_E11is_identityEv:
 1082|  20.5k|      constexpr CT::Choice is_identity() const { return z().is_zero(); }
pcurves_brainpool512r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE18conditional_assignERSA_SB_SB_NS_2CT6ChoiceERKSA_SF_SF_:
  395|  32.1k|         Self& x, Self& y, Self& z, CT::Choice cond, const Self& nx, const Self& ny, const Self& nz) {
  396|  32.1k|         const W mask = cond.into_bitmask<W>();
  397|       |
  398|   289k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (398:28): [True: 257k, False: 32.1k]
  ------------------
  399|   257k|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  400|   257k|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  401|   257k|            z.m_val[i] = Botan::choose(mask, nz.m_val[i], z.m_val[i]);
  402|   257k|         }
  403|  32.1k|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE6invertEv:
  538|    171|      constexpr Self invert() const { return pow_vartime(Self::P_MINUS_2); }
pcurves_brainpool512r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE11pow_vartimeERKNSt3__15arrayImLm8EEE:
  477|    171|      constexpr Self pow_vartime(const std::array<W, N>& exp) const {
  478|    171|         constexpr size_t WindowBits = (Self::BITS <= 256) ? 4 : 5;
  ------------------
  |  Branch (478:40): [Folded, False: 171]
  ------------------
  479|    171|         constexpr size_t WindowElements = (1 << WindowBits) - 1;
  480|       |
  481|    171|         constexpr size_t Windows = (Self::BITS + WindowBits - 1) / WindowBits;
  482|       |
  483|       |         /*
  484|       |         A simple fixed width window modular multiplication.
  485|       |
  486|       |         TODO: investigate using sliding window here
  487|       |         */
  488|       |
  489|    171|         std::array<Self, WindowElements> tbl;
  490|       |
  491|    171|         tbl[0] = (*this);
  492|       |
  493|  5.30k|         for(size_t i = 1; i != WindowElements; ++i) {
  ------------------
  |  Branch (493:28): [True: 5.13k, False: 171]
  ------------------
  494|       |            // Conditional ok: table indexes are public here
  495|  5.13k|            if(i % 2 == 1) {
  ------------------
  |  Branch (495:16): [True: 2.56k, False: 2.56k]
  ------------------
  496|  2.56k|               tbl[i] = tbl[i / 2].square();
  497|  2.56k|            } else {
  498|  2.56k|               tbl[i] = tbl[i - 1] * tbl[0];
  499|  2.56k|            }
  500|  5.13k|         }
  501|       |
  502|    171|         auto r = Self::one();
  503|       |
  504|    171|         const size_t w0 = read_window_bits<WindowBits>(std::span{exp}, (Windows - 1) * WindowBits);
  505|       |
  506|       |         // Conditional ok: this function is variable time
  507|    171|         if(w0 > 0) {
  ------------------
  |  Branch (507:13): [True: 171, False: 0]
  ------------------
  508|    171|            r = tbl[w0 - 1];
  509|    171|         }
  510|       |
  511|  17.6k|         for(size_t i = 1; i != Windows; ++i) {
  ------------------
  |  Branch (511:28): [True: 17.4k, False: 171]
  ------------------
  512|  17.4k|            r.square_n(WindowBits);
  513|       |
  514|  17.4k|            const size_t w = read_window_bits<WindowBits>(std::span{exp}, (Windows - i - 1) * WindowBits);
  515|       |
  516|       |            // Conditional ok: this function is variable time
  517|  17.4k|            if(w > 0) {
  ------------------
  |  Branch (517:16): [True: 17.1k, False: 342]
  ------------------
  518|  17.1k|               r *= tbl[w - 1];
  519|  17.1k|            }
  520|  17.4k|         }
  521|       |
  522|    171|         return r;
  523|    171|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEEC2Ev:
  180|  5.30k|      constexpr IntMod() : m_val({}) {}
pcurves_brainpool512r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE8square_nEm:
  439|  17.4k|      constexpr void square_n(size_t n) {
  440|  17.4k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  441|   104k|         for(size_t i = 0; i != n; ++i) {
  ------------------
  |  Branch (441:28): [True: 87.2k, False: 17.4k]
  ------------------
  442|  87.2k|            comba_sqr<N>(z.data(), this->data());
  443|  87.2k|            m_val = Rep::redc(z);
  444|  87.2k|         }
  445|  17.4k|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEEmLERKSA_:
  355|  17.1k|      constexpr BOTAN_FORCE_INLINE Self& operator*=(const Self& other) {
  356|  17.1k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  357|  17.1k|         comba_mul<N>(z.data(), data(), other.data());
  358|  17.1k|         m_val = Rep::redc(z);
  359|  17.1k|         return (*this);
  360|  17.1k|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE14invert_vartimeEv:
  598|      1|      constexpr Self invert_vartime() const {
  599|       |         // Conditional ok: this function is variable time
  600|      1|         if(this->is_zero().as_bool()) {
  ------------------
  |  Branch (600:13): [True: 0, False: 1]
  ------------------
  601|      0|            return Self::zero();
  602|      0|         }
  603|       |
  604|      1|         auto x = Self(std::array<W, N>{1});  // 1 in standard domain
  605|      1|         auto b = Self(this->to_words());     // *this in standard domain
  606|       |
  607|       |         // First loop iteration
  608|      1|         Self::_invert_vartime_div2_helper(b, x);
  609|       |
  610|      1|         auto a = b.negate();
  611|       |         // y += x but y is zero at the outset
  612|      1|         auto y = x;
  613|       |
  614|       |         // First half of second loop iteration
  615|      1|         Self::_invert_vartime_div2_helper(a, y);
  616|       |
  617|    366|         for(;;) {
  618|       |            // Conditional ok: this function is variable time
  619|    366|            if(a.m_val == b.m_val) {
  ------------------
  |  Branch (619:16): [True: 1, False: 365]
  ------------------
  620|       |               // At this point it should be that a == b == 1
  621|      1|               auto r = y.negate();
  622|       |
  623|       |               // Convert back to Montgomery if required
  624|      1|               r.m_val = Rep::to_rep(r.m_val);
  625|      1|               return r;
  626|      1|            }
  627|       |
  628|    365|            auto nx = x + y;
  629|       |
  630|       |            /*
  631|       |            * Otherwise either b > a or a > b
  632|       |            *
  633|       |            * If b > a we want to set b to b - a
  634|       |            * Otherwise we want to set a to a - b
  635|       |            *
  636|       |            * Compute r = b - a and check if it underflowed
  637|       |            * If it did not then we are in the b > a path
  638|       |            */
  639|    365|            std::array<W, N> r;  // NOLINT(*-member-init)
  640|    365|            const word carry = bigint_sub3(r.data(), b.data(), N, a.data(), N);
  641|       |
  642|       |            // Conditional ok: this function is variable time
  643|    365|            if(carry == 0) {
  ------------------
  |  Branch (643:16): [True: 175, False: 190]
  ------------------
  644|       |               // b > a
  645|    175|               b.m_val = r;
  646|    175|               x = nx;
  647|    175|               Self::_invert_vartime_div2_helper(b, x);
  648|    190|            } else {
  649|       |               // We know this can't underflow because a > b
  650|    190|               bigint_sub3(r.data(), a.data(), N, b.data(), N);
  651|    190|               a.m_val = r;
  652|    190|               y = nx;
  653|    190|               Self::_invert_vartime_div2_helper(a, y);
  654|    190|            }
  655|    365|         }
  656|      1|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE4zeroEv:
  195|  29.4k|      static constexpr Self zero() { return Self(std::array<W, N>{0}); }
pcurves_brainpool512r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE8to_wordsEv:
  734|      1|      constexpr std::array<W, Self::N> to_words() const { return Rep::from_rep(m_val); }
pcurves_brainpool512r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES0_E11FieldParamsEE8from_repERKNSt3__15arrayImLm8EEE:
  137|    343|      constexpr static std::array<W, N> from_rep(const std::array<W, N>& z) {
  138|    343|         std::array<W, 2 * N> ze = {};
  139|    343|         copy_mem(std::span{ze}.template first<N>(), z);
  140|    343|         return Self::redc(ze);
  141|    343|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE27_invert_vartime_div2_helperERSA_SB_:
  547|    367|      static constexpr void _invert_vartime_div2_helper(Self& a, Self& x) {
  548|    367|         constexpr auto INV_2 = p_div_2_plus_1(Rep::P);
  549|       |
  550|       |         // Conditional ok: this function is variable time
  551|  1.08k|         while((a.m_val[0] & 1) != 1) {
  ------------------
  |  Branch (551:16): [True: 713, False: 367]
  ------------------
  552|    713|            shift_right<1>(a.m_val);
  553|       |
  554|    713|            const W borrow = shift_right<1>(x.m_val);
  555|       |
  556|       |            // Conditional ok: this function is variable time
  557|    713|            if(borrow) {
  ------------------
  |  Branch (557:16): [True: 362, False: 351]
  ------------------
  558|    362|               bigint_add2(x.m_val.data(), N, INV_2.data(), N);
  559|    362|            }
  560|    713|         }
  561|    367|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE6negateEv:
  452|  14.7k|      constexpr Self negate() const {
  453|  14.7k|         const W x_is_zero = ~CT::all_zeros(this->data(), N).value();
  454|       |
  455|  14.7k|         std::array<W, N> r;  // NOLINT(*-member-init)
  456|  14.7k|         W carry = 0;
  457|   132k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (457:28): [True: 117k, False: 14.7k]
  ------------------
  458|   117k|            r[i] = word_sub(P[i] & x_is_zero, m_val[i], &carry);
  459|   117k|         }
  460|       |
  461|  14.7k|         return Self(r);
  462|  14.7k|      }
pcurves_brainpool512r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES0_E11FieldParamsEE6to_repERKNSt3__15arrayImLm8EEE:
  115|      1|      constexpr static std::array<W, N> to_rep(const std::array<W, N>& x) {
  116|      1|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  117|      1|         comba_mul<N>(z.data(), x.data(), R2.data());
  118|      1|         return Self::redc(z);
  119|      1|      }
pcurves_brainpool512r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEEEC2ERKSB_SE_:
  917|  18.3k|      constexpr AffineCurvePoint(const FieldElement& x, const FieldElement& y) : m_x(x), m_y(y) {}
pcurves_brainpool512r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE11stash_valueILm9EEENSt3__15arrayImXT_EEEv:
  759|    855|      std::array<W, L> stash_value() const {
  760|    855|         static_assert(L >= N);
  761|    855|         std::array<W, L> stash = {};
  762|  7.69k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 6.84k, False: 855]
  ------------------
  763|  6.84k|            stash[i] = m_val[i];
  764|  6.84k|         }
  765|    855|         return stash;
  766|    855|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan23PrecomputedBaseMulTableINS_6PCurve12_GLOBAL__N_114brainpool512r15CurveELm6EE3mulERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES7_E12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1407|    171|      ProjectivePoint mul(const Scalar& s, RandomNumberGenerator& rng) const {
 1408|    171|         const BlindedScalar scalar(s, rng);
 1409|    171|         return basemul_booth_exec<C, WindowBits>(m_table, scalar, rng);
 1410|    171|      }
pcurves_brainpool512r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_114brainpool512r15CurveELm7EEC2ERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES7_E12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1307|    171|      BlindedScalarBits(const typename C::Scalar& scalar, RandomNumberGenerator& rng) {
 1308|    171|         if(BlindingBits > 0 && rng.is_seeded()) {
  ------------------
  |  Branch (1308:13): [True: 171, Folded]
  |  Branch (1308:33): [True: 0, False: 171]
  ------------------
 1309|      0|            constexpr size_t MaskWords = (BlindingBits + WordInfo<W>::bits - 1) / WordInfo<W>::bits;
 1310|      0|            constexpr size_t MaskBytes = MaskWords * WordInfo<W>::bytes;
 1311|       |
 1312|      0|            constexpr size_t n_words = C::Words;
 1313|       |
 1314|      0|            uint8_t maskb[MaskBytes + (BlindingBits == 0 ? 1 : 0)] = {0};
 1315|      0|            rng.randomize(maskb, MaskBytes);
 1316|       |
 1317|      0|            W mask[n_words] = {0};
 1318|      0|            load_le(mask, maskb, MaskWords);
 1319|       |
 1320|       |            // Mask to exactly BlindingBits
 1321|      0|            constexpr size_t ExcessBits = MaskWords * WordInfo<W>::bits - BlindingBits;
 1322|       |            if constexpr(ExcessBits > 0) {
 1323|       |               constexpr W ExcessMask = (static_cast<W>(1) << (WordInfo<W>::bits - ExcessBits)) - 1;
 1324|       |               mask[MaskWords - 1] &= ExcessMask;
 1325|       |            }
 1326|       |
 1327|       |            // Set top and bottom bits of mask
 1328|      0|            constexpr size_t TopMaskBit = (BlindingBits - 1) % WordInfo<W>::bits;
 1329|      0|            mask[(BlindingBits - 1) / WordInfo<W>::bits] |= static_cast<W>(1) << TopMaskBit;
 1330|      0|            mask[0] |= 1;
 1331|       |
 1332|      0|            W mask_n[2 * n_words] = {0};
 1333|       |
 1334|      0|            const auto sw = scalar.to_words();
 1335|       |
 1336|       |            // Compute masked scalar s + k*n
 1337|      0|            comba_mul<n_words>(mask_n, mask, C::NW.data());
 1338|      0|            bigint_add2(mask_n, 2 * n_words, sw.data(), sw.size());
 1339|       |
 1340|      0|            std::reverse(mask_n, mask_n + 2 * n_words);
 1341|      0|            m_bytes = store_be<std::vector<uint8_t>>(mask_n);
 1342|      0|            m_bits = C::Scalar::BITS + BlindingBits;
 1343|    171|         } else {
 1344|       |            // No RNG available, skip blinding
 1345|    171|            m_bytes.resize(C::Scalar::BYTES);
 1346|    171|            scalar.serialize_to(std::span{m_bytes}.template first<C::Scalar::BYTES>());
 1347|    171|            m_bits = C::Scalar::BITS;
 1348|    171|         }
 1349|       |
 1350|    171|         CT::poison(m_bytes.data(), m_bytes.size());
 1351|    171|      }
pcurves_brainpool512r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES0_E12ScalarParamsEE8from_repERKNSt3__15arrayImLm8EEE:
  137|    365|      constexpr static std::array<W, N> from_rep(const std::array<W, N>& z) {
  138|    365|         std::array<W, 2 * N> ze = {};
  139|    365|         copy_mem(std::span{ze}.template first<N>(), z);
  140|    365|         return Self::redc(ze);
  141|    365|      }
pcurves_brainpool512r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES0_E12ScalarParamsEE4redcERKNSt3__15arrayImLm16EEE:
  104|    560|      constexpr static std::array<W, N> redc(const std::array<W, 2 * N>& z) {
  105|       |         if constexpr(P_dash == 1) {
  106|       |            return monty_redc_pdash1(z, P);
  107|    560|         } else {
  108|    560|            return monty_redc(z, P, P_dash);
  109|    560|         }
  110|    560|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E12ScalarParamsEEEE12serialize_toENSt3__14spanIhLm64EEE:
  739|    365|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    365|         auto v = Rep::from_rep(m_val);
  741|    365|         std::reverse(v.begin(), v.end());
  742|       |
  743|    365|         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|    365|            store_be(bytes, v);
  745|       |         } else {
  746|       |            // Remove leading zero bytes
  747|       |            const auto padded_bytes = store_be(v);
  748|       |            constexpr size_t extra = N * WordInfo<W>::bytes - Self::BYTES;
  749|       |            copy_mem(bytes, std::span{padded_bytes}.template subspan<extra, Self::BYTES>());
  750|       |         }
  751|    365|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_114brainpool512r15CurveELm7EE4bitsEv:
 1305|    171|      size_t bits() const { return m_bits; }
pcurves_brainpool512r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEES7_E18conditional_assignENS_2CT6ChoiceERKSC_:
 1084|    171|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
 1085|    171|         FieldElement::conditional_assign(m_x, m_y, m_z, cond, pt.x(), pt.y(), pt.z());
 1086|    171|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEES7_E6negateEv:
 1134|    171|      constexpr Self negate() const { return Self(x(), y().negate(), z()); }
pcurves_brainpool512r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEES7_E18_const_time_poisonEv:
 1174|    171|      constexpr void _const_time_poison() const { CT::poison_all(m_x, m_y, m_z); }
pcurves_brainpool512r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE18_const_time_poisonEv:
  889|    513|      constexpr void _const_time_poison() const { CT::poison(m_val); }
pcurves_brainpool512r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_114brainpool512r15CurveELm7EE10get_windowEm:
 1353|  14.7k|      size_t get_window(size_t offset) const {
 1354|       |         // Extract a WindowBits sized window out of s, depending on offset.
 1355|  14.7k|         return read_window_bits<WindowBits>(std::span{m_bytes}, offset);
 1356|  14.7k|      }
pcurves_brainpool512r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEES7_E10add_or_subERKSC_RKNS_16AffineCurvePointISB_EENS_2CT6ChoiceE:
 1096|  14.5k|      constexpr static Self add_or_sub(const Self& a, const AffinePoint& b, CT::Choice sub) {
 1097|  14.5k|         return point_add_or_sub_mixed<Self, AffinePoint, FieldElement>(a, b, sub, FieldElement::one());
 1098|  14.5k|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE18conditional_assignENS_2CT6ChoiceERKSA_:
  367|  14.5k|      constexpr void conditional_assign(CT::Choice cond, const Self& nx) {
  368|  14.5k|         const W mask = cond.into_bitmask<W>();
  369|       |
  370|   130k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (370:28): [True: 116k, False: 14.5k]
  ------------------
  371|   116k|            m_val[i] = Botan::choose(mask, nx.m_val[i], m_val[i]);
  372|   116k|         }
  373|  14.5k|      }
pcurves_brainpool512r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEEE9ct_selectENSt3__14spanIKSC_Lm18446744073709551615EEEm:
  955|  14.7k|      static constexpr auto ct_select(std::span<const Self> pts, size_t idx) {
  956|  14.7k|         auto result = Self::identity(pts[0]);
  957|       |
  958|       |         // Intentionally wrapping; set to maximum size_t if idx == 0
  959|  14.7k|         const size_t idx1 = static_cast<size_t>(idx - 1);
  960|   485k|         for(size_t i = 0; i != pts.size(); ++i) {
  ------------------
  |  Branch (960:28): [True: 470k, False: 14.7k]
  ------------------
  961|   470k|            const auto found = CT::Mask<size_t>::is_equal(idx1, i).as_choice();
  962|   470k|            result.conditional_assign(found, pts[i]);
  963|   470k|         }
  964|       |
  965|  14.7k|         return result;
  966|  14.7k|      }
pcurves_brainpool512r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEEE8identityERKSC_:
  924|  14.7k|      static constexpr Self identity(const Self& /*unused*/) {
  925|  14.7k|         return Self(FieldElement::zero(), FieldElement::zero());
  926|  14.7k|      }
pcurves_brainpool512r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEEE18conditional_assignENS_2CT6ChoiceERKSC_:
  981|   470k|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
  982|   470k|         FieldElement::conditional_assign(m_x, m_y, cond, pt.x(), pt.y());
  983|   470k|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE18conditional_assignERSA_SB_NS_2CT6ChoiceERKSA_SF_:
  380|   470k|      static constexpr void conditional_assign(Self& x, Self& y, CT::Choice cond, const Self& nx, const Self& ny) {
  381|   470k|         const W mask = cond.into_bitmask<W>();
  382|       |
  383|  4.23M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (383:28): [True: 3.76M, False: 470k]
  ------------------
  384|  3.76M|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  385|  3.76M|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  386|  3.76M|         }
  387|   470k|      }
pcurves_brainpool512r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEES7_E13randomize_repERNS_21RandomNumberGeneratorE:
 1142|    684|      void randomize_rep(RandomNumberGenerator& rng) {
 1143|       |         // In certain contexts we may be called with a Null_RNG; in that case the
 1144|       |         // caller is accepting that randomization will not occur
 1145|       |
 1146|       |         // Conditional ok: caller's RNG state (seeded vs not) is presumed public
 1147|    684|         if(rng.is_seeded()) {
  ------------------
  |  Branch (1147:13): [True: 0, False: 684]
  ------------------
 1148|      0|            auto r = FieldElement::random(rng);
 1149|       |
 1150|      0|            auto r2 = r.square();
 1151|      0|            auto r3 = r2 * r;
 1152|       |
 1153|      0|            m_x *= r2;
 1154|      0|            m_y *= r3;
 1155|      0|            m_z *= r;
 1156|      0|         }
 1157|    684|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEES7_E20_const_time_unpoisonEv:
 1176|    171|      constexpr void _const_time_unpoison() const { CT::unpoison_all(m_x, m_y, m_z); }
pcurves_brainpool512r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE20_const_time_unpoisonEv:
  891|    513|      constexpr void _const_time_unpoison() const { CT::unpoison(m_val); }
pcurves_brainpool512r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_114brainpool512r15CurveELm7EED2Ev:
 1358|    171|      ~BlindedScalarBits() {
 1359|    171|         secure_zeroize_buffer(m_bytes.data(), m_bytes.size());
 1360|    171|         CT::unpoison(m_bytes.data(), m_bytes.size());
 1361|    171|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E12ScalarParamsEEEE10from_stashILm9EEESA_RKNSt3__15arrayImXT_EEE:
  774|    559|      static Self from_stash(const std::array<W, L>& stash) {
  775|    559|         static_assert(L >= N);
  776|    559|         std::array<W, N> val = {};
  777|  5.03k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 4.47k, False: 559]
  ------------------
  778|  4.47k|            val[i] = stash[i];
  779|  4.47k|         }
  780|    559|         return Self(val);
  781|    559|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E12ScalarParamsEEEEC2ENSt3__15arrayImLm8EEE:
  898|    754|      explicit constexpr IntMod(std::array<W, N> v) : m_val(v) {}
pcurves_brainpool512r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE12serialize_toENSt3__14spanIhLm64EEE:
  739|    342|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    342|         auto v = Rep::from_rep(m_val);
  741|    342|         std::reverse(v.begin(), v.end());
  742|       |
  743|    342|         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|    342|            store_be(bytes, v);
  745|       |         } else {
  746|       |            // Remove leading zero bytes
  747|       |            const auto padded_bytes = store_be(v);
  748|       |            constexpr size_t extra = N * WordInfo<W>::bytes - Self::BYTES;
  749|       |            copy_mem(bytes, std::span{padded_bytes}.template subspan<extra, Self::BYTES>());
  750|       |         }
  751|    342|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E12ScalarParamsEEEE11stash_valueILm9EEENSt3__15arrayImXT_EEEv:
  759|    194|      std::array<W, L> stash_value() const {
  760|    194|         static_assert(L >= N);
  761|    194|         std::array<W, L> stash = {};
  762|  1.74k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 1.55k, False: 194]
  ------------------
  763|  1.55k|            stash[i] = m_val[i];
  764|  1.55k|         }
  765|    194|         return stash;
  766|    194|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE10from_stashILm9EEESA_RKNSt3__15arrayImXT_EEE:
  774|  1.19k|      static Self from_stash(const std::array<W, L>& stash) {
  775|  1.19k|         static_assert(L >= N);
  776|  1.19k|         std::array<W, N> val = {};
  777|  10.7k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 9.57k, False: 1.19k]
  ------------------
  778|  9.57k|            val[i] = stash[i];
  779|  9.57k|         }
  780|  1.19k|         return Self(val);
  781|  1.19k|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E12ScalarParamsEEEE7is_zeroEv:
  225|    389|      constexpr CT::Choice is_zero() const { return CT::all_zeros(m_val.data(), m_val.size()).as_choice(); }
pcurves_brainpool512r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEEeqERKSA_:
  722|    171|      constexpr CT::Choice operator==(const Self& other) const {
  723|    171|         return CT::is_equal(this->data(), other.data(), N).as_choice();
  724|    171|      }
pcurves_brainpool512r1.cpp:_ZN5Botan13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsENS_13MontgomeryRepEE7x3_ax_bERKNS_6IntModINS5_INS6_11FieldParamsEEEEE:
 1275|    171|      static constexpr FieldElement x3_ax_b(const FieldElement& x) { return (x.square() + A) * x + B; }
pcurves_brainpool512r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E12ScalarParamsEEEE11deserializeENSt3__14spanIKhLm18446744073709551615EEE:
  792|    195|      static std::optional<Self> deserialize(std::span<const uint8_t> bytes) {
  793|       |         // Conditional ok: input length is public
  794|    195|         if(bytes.size() != Self::BYTES) {
  ------------------
  |  Branch (794:13): [True: 0, False: 195]
  ------------------
  795|      0|            return {};
  796|      0|         }
  797|       |
  798|    195|         const auto words = bytes_to_words<W, N, BYTES>(bytes.first<Self::BYTES>());
  799|       |
  800|       |         // Conditional acceptable: std::optional is implicitly not constant time
  801|    195|         if(!bigint_ct_is_lt(words.data(), N, P.data(), N).as_bool()) {
  ------------------
  |  Branch (801:13): [True: 0, False: 195]
  ------------------
  802|      0|            return {};
  803|      0|         }
  804|       |
  805|       |         // Safe because we checked above that words is an integer < P
  806|    195|         return Self::from_words(words);
  807|    195|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E12ScalarParamsEEEE10from_wordsILm8EEESA_NSt3__15arrayImXT_EEE:
  211|    195|      static constexpr Self from_words(std::array<W, L> w) {
  212|    195|         if constexpr(L == N) {
  213|    195|            return Self(Rep::to_rep(w));
  214|       |         } else {
  215|       |            static_assert(L < N);
  216|       |            std::array<W, N> ew = {};
  217|       |            copy_mem(std::span{ew}.template first<L>(), w);
  218|       |            return Self(Rep::to_rep(ew));
  219|       |         }
  220|    195|      }
pcurves_brainpool512r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES0_E12ScalarParamsEE6to_repERKNSt3__15arrayImLm8EEE:
  115|    195|      constexpr static std::array<W, N> to_rep(const std::array<W, N>& x) {
  116|    195|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  117|    195|         comba_mul<N>(z.data(), x.data(), R2.data());
  118|    195|         return Self::redc(z);
  119|    195|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEEE12serialize_toENSt3__14spanIhLm129EEE:
  941|    171|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  942|    171|         BOTAN_STATE_CHECK(this->is_identity().as_bool() == false);
  ------------------
  |  |   51|    171|   do {                                                         \
  |  |   52|    171|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    171|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 171]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    171|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 171]
  |  |  ------------------
  ------------------
  943|    171|         BufferStuffer pack(bytes);
  944|    171|         pack.append(0x04);
  945|    171|         x().serialize_to(pack.next<FieldElement::BYTES>());
  946|    171|         y().serialize_to(pack.next<FieldElement::BYTES>());
  947|    171|         BOTAN_DEBUG_ASSERT(pack.full());
  ------------------
  |  |  130|    171|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    171|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 171]
  |  |  ------------------
  ------------------
  948|    171|      }
pcurves_secp224r1.cpp:_ZN5Botan23PrecomputedBaseMulTableINS_6PCurve12_GLOBAL__N_19secp224r15CurveELm6EEC2ERKNS_16AffineCurvePointINS_6IntModINS3_12Secp224r1RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEEEE:
 1405|      1|            m_table(basemul_booth_setup<C, WindowBits>(p, BlindedScalar::Bits + 1)) {}
pcurves_secp224r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E11from_affineERKNS_16AffineCurvePointISB_EE:
 1016|    199|      static constexpr Self from_affine(const AffinePoint& pt) {
 1017|       |         /*
 1018|       |         * If the point is the identity element (x=0, y=0) then instead of
 1019|       |         * creating (x, y, 1) = (0, 0, 1) we want our projective identity
 1020|       |         * encoding of (0, 1, 0)
 1021|       |         *
 1022|       |         * Which we can achieve by a conditional swap of y and z if the
 1023|       |         * affine point is the identity.
 1024|       |         */
 1025|       |
 1026|    199|         auto x = pt.x();
 1027|    199|         auto y = pt.y();
 1028|    199|         auto z = FieldElement::one();
 1029|       |
 1030|    199|         FieldElement::conditional_swap(pt.is_identity(), y, z);
 1031|       |
 1032|    199|         return ProjectiveCurvePoint(x, y, z);
 1033|    199|      }
pcurves_secp224r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE1xEv:
  971|   264k|      constexpr const FieldElement& x() const { return m_x; }
pcurves_secp224r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE1yEv:
  976|   257k|      constexpr const FieldElement& y() const { return m_y; }
pcurves_secp224r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE3oneEv:
  200|  7.52k|      static constexpr Self one() { return Self(Rep::one()); }
pcurves_secp224r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEC2ENSt3__15arrayImLm4EEE:
  898|   207k|      explicit constexpr IntMod(std::array<W, N> v) : m_val(v) {}
pcurves_secp224r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE16conditional_swapENS_2CT6ChoiceERSA_SD_:
  410|    199|      static constexpr void conditional_swap(CT::Choice cond, Self& x, Self& y) {
  411|    199|         const W mask = cond.into_bitmask<W>();
  412|       |
  413|    995|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (413:28): [True: 796, False: 199]
  ------------------
  414|    796|            auto nx = Botan::choose(mask, y.m_val[i], x.m_val[i]);
  415|    796|            auto ny = Botan::choose(mask, x.m_val[i], y.m_val[i]);
  416|    796|            x.m_val[i] = nx;
  417|    796|            y.m_val[i] = ny;
  418|    796|         }
  419|    199|      }
pcurves_secp224r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE11is_identityEv:
  928|  8.11k|      constexpr CT::Choice is_identity() const { return x().is_zero() && y().is_zero(); }
pcurves_secp224r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE7is_zeroEv:
  225|  42.1k|      constexpr CT::Choice is_zero() const { return CT::all_zeros(m_val.data(), m_val.size()).as_choice(); }
pcurves_secp224r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_EC2ERKSB_SE_SE_:
 1056|  9.29k|            m_x(x), m_y(y), m_z(z) {}
pcurves_secp224r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E3dblEv:
 1121|    731|      constexpr Self dbl() const {
 1122|    731|         if constexpr(Self::A_is_minus_3) {
 1123|    731|            return dbl_a_minus_3(*this);
 1124|       |         } else if constexpr(Self::A_is_zero) {
 1125|       |            return dbl_a_zero(*this);
 1126|       |         } else {
 1127|       |            return dbl_generic(*this, A);
 1128|       |         }
 1129|    731|      }
pcurves_secp224r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E1zEv:
 1172|  49.6k|      constexpr const FieldElement& z() const { return m_z; }
pcurves_secp224r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE6squareEv:
  426|  30.5k|      constexpr BOTAN_FORCE_INLINE Self square() const {
  427|  30.5k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  428|  30.5k|         comba_sqr<N>(z.data(), this->data());
  429|  30.5k|         return Self(Rep::redc(z));
  430|  30.5k|      }
pcurves_secp224r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE4dataEv:
  896|   243k|      constexpr const W* data() const { return m_val.data(); }
pcurves_secp224r1.cpp:_ZN5BotanmlERKNS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEESC_:
  346|  78.3k|      friend constexpr BOTAN_FORCE_INLINE Self operator*(const Self& a, const Self& b) {
  347|  78.3k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  348|  78.3k|         comba_mul<N>(z.data(), a.data(), b.data());
  349|  78.3k|         return Self(Rep::redc(z));
  350|  78.3k|      }
pcurves_secp224r1.cpp:_ZN5BotanmiERKNS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEESC_:
  281|  50.7k|      friend constexpr BOTAN_FORCE_INLINE Self operator-(const Self& a, const Self& b) {
  282|  50.7k|         std::array<W, N> r;  // NOLINT(*-member-init)
  283|  50.7k|         W carry = 0;
  284|   253k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (284:28): [True: 203k, False: 50.7k]
  ------------------
  285|   203k|            r[i] = word_sub(a.m_val[i], b.m_val[i], &carry);
  286|   203k|         }
  287|       |
  288|  50.7k|         const auto mask = CT::Mask<W>::expand(carry).value();
  289|       |
  290|  50.7k|         carry = 0;
  291|       |
  292|   253k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (292:28): [True: 203k, False: 50.7k]
  ------------------
  293|   203k|            r[i] = word_add(r[i], P[i] & mask, &carry);
  294|   203k|         }
  295|       |
  296|  50.7k|         return Self(r);
  297|  50.7k|      }
pcurves_secp224r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E1xEv:
 1162|  28.9k|      constexpr const FieldElement& x() const { return m_x; }
pcurves_secp224r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE4mul3Ev:
  335|    731|      constexpr inline Self mul3() const { return mul2() + (*this); }
pcurves_secp224r1.cpp:_ZN5BotanplERKNS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEESC_:
  265|  10.1k|      friend constexpr BOTAN_FORCE_INLINE Self operator+(const Self& a, const Self& b) {
  266|  10.1k|         std::array<W, N> t;  // NOLINT(*-member-init)
  267|       |
  268|  10.1k|         W carry = 0;
  269|  50.6k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (269:28): [True: 40.5k, False: 10.1k]
  ------------------
  270|  40.5k|            t[i] = word_add(a.m_val[i], b.m_val[i], &carry);
  271|  40.5k|         }
  272|       |
  273|  10.1k|         std::array<W, N> r;  // NOLINT(*-member-init)
  274|  10.1k|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  275|  10.1k|         return Self(r);
  276|  10.1k|      }
pcurves_secp224r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E1yEv:
 1167|  28.1k|      constexpr const FieldElement& y() const { return m_y; }
pcurves_secp224r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE4mul4Ev:
  338|    731|      constexpr inline Self mul4() const { return mul2().mul2(); }
pcurves_secp224r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE4mul2Ev:
  325|  5.84k|      constexpr BOTAN_FORCE_INLINE Self mul2() const {
  326|  5.84k|         std::array<W, N> t = value();
  327|  5.84k|         const W carry = shift_left<1>(t);
  328|       |
  329|  5.84k|         std::array<W, N> r;  // NOLINT(*-member-init)
  330|  5.84k|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  331|  5.84k|         return Self(r);
  332|  5.84k|      }
pcurves_secp224r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE5valueEv:
  894|  5.84k|      constexpr const std::array<W, N>& value() const { return m_val; }
pcurves_secp224r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE4mul8Ev:
  341|    731|      constexpr inline Self mul8() const { return mul2().mul2().mul2(); }
pcurves_secp224r1.cpp:_ZN5BotanplERKNS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_EESE_:
 1064|    645|      friend constexpr Self operator+(const Self& a, const Self& b) { return Self::add(a, b); }
pcurves_secp224r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E3addERKSC_SE_:
 1103|    645|      constexpr static Self add(const Self& a, const Self& b) { return point_add<Self, FieldElement>(a, b); }
pcurves_secp224r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E11is_identityEv:
 1082|  9.99k|      constexpr CT::Choice is_identity() const { return z().is_zero(); }
pcurves_secp224r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE18conditional_assignERSA_SB_SB_NS_2CT6ChoiceERKSA_SF_SF_:
  395|  16.1k|         Self& x, Self& y, Self& z, CT::Choice cond, const Self& nx, const Self& ny, const Self& nz) {
  396|  16.1k|         const W mask = cond.into_bitmask<W>();
  397|       |
  398|  80.7k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (398:28): [True: 64.5k, False: 16.1k]
  ------------------
  399|  64.5k|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  400|  64.5k|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  401|  64.5k|            z.m_val[i] = Botan::choose(mask, nz.m_val[i], z.m_val[i]);
  402|  64.5k|         }
  403|  16.1k|      }
pcurves_secp224r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEmLERKSA_:
  355|  2.37k|      constexpr BOTAN_FORCE_INLINE Self& operator*=(const Self& other) {
  356|  2.37k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  357|  2.37k|         comba_mul<N>(z.data(), data(), other.data());
  358|  2.37k|         m_val = Rep::redc(z);
  359|  2.37k|         return (*this);
  360|  2.37k|      }
pcurves_secp224r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE8square_nEm:
  439|  1.58k|      constexpr void square_n(size_t n) {
  440|  1.58k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  441|  44.7k|         for(size_t i = 0; i != n; ++i) {
  ------------------
  |  Branch (441:28): [True: 43.1k, False: 1.58k]
  ------------------
  442|  43.1k|            comba_sqr<N>(z.data(), this->data());
  443|  43.1k|            m_val = Rep::redc(z);
  444|  43.1k|         }
  445|  1.58k|      }
pcurves_secp224r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE14invert_vartimeEv:
  598|      1|      constexpr Self invert_vartime() const {
  599|       |         // Conditional ok: this function is variable time
  600|      1|         if(this->is_zero().as_bool()) {
  ------------------
  |  Branch (600:13): [True: 0, False: 1]
  ------------------
  601|      0|            return Self::zero();
  602|      0|         }
  603|       |
  604|      1|         auto x = Self(std::array<W, N>{1});  // 1 in standard domain
  605|      1|         auto b = Self(this->to_words());     // *this in standard domain
  606|       |
  607|       |         // First loop iteration
  608|      1|         Self::_invert_vartime_div2_helper(b, x);
  609|       |
  610|      1|         auto a = b.negate();
  611|       |         // y += x but y is zero at the outset
  612|      1|         auto y = x;
  613|       |
  614|       |         // First half of second loop iteration
  615|      1|         Self::_invert_vartime_div2_helper(a, y);
  616|       |
  617|    153|         for(;;) {
  618|       |            // Conditional ok: this function is variable time
  619|    153|            if(a.m_val == b.m_val) {
  ------------------
  |  Branch (619:16): [True: 1, False: 152]
  ------------------
  620|       |               // At this point it should be that a == b == 1
  621|      1|               auto r = y.negate();
  622|       |
  623|       |               // Convert back to Montgomery if required
  624|      1|               r.m_val = Rep::to_rep(r.m_val);
  625|      1|               return r;
  626|      1|            }
  627|       |
  628|    152|            auto nx = x + y;
  629|       |
  630|       |            /*
  631|       |            * Otherwise either b > a or a > b
  632|       |            *
  633|       |            * If b > a we want to set b to b - a
  634|       |            * Otherwise we want to set a to a - b
  635|       |            *
  636|       |            * Compute r = b - a and check if it underflowed
  637|       |            * If it did not then we are in the b > a path
  638|       |            */
  639|    152|            std::array<W, N> r;  // NOLINT(*-member-init)
  640|    152|            const word carry = bigint_sub3(r.data(), b.data(), N, a.data(), N);
  641|       |
  642|       |            // Conditional ok: this function is variable time
  643|    152|            if(carry == 0) {
  ------------------
  |  Branch (643:16): [True: 81, False: 71]
  ------------------
  644|       |               // b > a
  645|     81|               b.m_val = r;
  646|     81|               x = nx;
  647|     81|               Self::_invert_vartime_div2_helper(b, x);
  648|     81|            } else {
  649|       |               // We know this can't underflow because a > b
  650|     71|               bigint_sub3(r.data(), a.data(), N, b.data(), N);
  651|     71|               a.m_val = r;
  652|     71|               y = nx;
  653|     71|               Self::_invert_vartime_div2_helper(a, y);
  654|     71|            }
  655|    152|         }
  656|      1|      }
pcurves_secp224r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE4zeroEv:
  195|  15.0k|      static constexpr Self zero() { return Self(std::array<W, N>{0}); }
pcurves_secp224r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE8to_wordsEv:
  734|      1|      constexpr std::array<W, Self::N> to_words() const { return Rep::from_rep(m_val); }
pcurves_secp224r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE27_invert_vartime_div2_helperERSA_SB_:
  547|    154|      static constexpr void _invert_vartime_div2_helper(Self& a, Self& x) {
  548|    154|         constexpr auto INV_2 = p_div_2_plus_1(Rep::P);
  549|       |
  550|       |         // Conditional ok: this function is variable time
  551|    479|         while((a.m_val[0] & 1) != 1) {
  ------------------
  |  Branch (551:16): [True: 325, False: 154]
  ------------------
  552|    325|            shift_right<1>(a.m_val);
  553|       |
  554|    325|            const W borrow = shift_right<1>(x.m_val);
  555|       |
  556|       |            // Conditional ok: this function is variable time
  557|    325|            if(borrow) {
  ------------------
  |  Branch (557:16): [True: 200, False: 125]
  ------------------
  558|    200|               bigint_add2(x.m_val.data(), N, INV_2.data(), N);
  559|    200|            }
  560|    325|         }
  561|    154|      }
pcurves_secp224r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE6negateEv:
  452|  7.52k|      constexpr Self negate() const {
  453|  7.52k|         const W x_is_zero = ~CT::all_zeros(this->data(), N).value();
  454|       |
  455|  7.52k|         std::array<W, N> r;  // NOLINT(*-member-init)
  456|  7.52k|         W carry = 0;
  457|  37.6k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (457:28): [True: 30.1k, False: 7.52k]
  ------------------
  458|  30.1k|            r[i] = word_sub(P[i] & x_is_zero, m_val[i], &carry);
  459|  30.1k|         }
  460|       |
  461|  7.52k|         return Self(r);
  462|  7.52k|      }
pcurves_secp224r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEEC2ERKSB_SE_:
  917|  9.49k|      constexpr AffineCurvePoint(const FieldElement& x, const FieldElement& y) : m_x(x), m_y(y) {}
pcurves_secp224r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE11stash_valueILm9EEENSt3__15arrayImXT_EEEv:
  759|    990|      std::array<W, L> stash_value() const {
  760|    990|         static_assert(L >= N);
  761|    990|         std::array<W, L> stash = {};
  762|  4.95k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 3.96k, False: 990]
  ------------------
  763|  3.96k|            stash[i] = m_val[i];
  764|  3.96k|         }
  765|    990|         return stash;
  766|    990|      }
pcurves_secp224r1.cpp:_ZNK5Botan23PrecomputedBaseMulTableINS_6PCurve12_GLOBAL__N_19secp224r15CurveELm6EE3mulERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS3_12Secp224r1RepEE12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1407|    198|      ProjectivePoint mul(const Scalar& s, RandomNumberGenerator& rng) const {
 1408|    198|         const BlindedScalar scalar(s, rng);
 1409|    198|         return basemul_booth_exec<C, WindowBits>(m_table, scalar, rng);
 1410|    198|      }
pcurves_secp224r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp224r15CurveELm7EEC2ERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS3_12Secp224r1RepEE12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1307|    198|      BlindedScalarBits(const typename C::Scalar& scalar, RandomNumberGenerator& rng) {
 1308|    198|         if(BlindingBits > 0 && rng.is_seeded()) {
  ------------------
  |  Branch (1308:13): [True: 198, Folded]
  |  Branch (1308:33): [True: 0, False: 198]
  ------------------
 1309|      0|            constexpr size_t MaskWords = (BlindingBits + WordInfo<W>::bits - 1) / WordInfo<W>::bits;
 1310|      0|            constexpr size_t MaskBytes = MaskWords * WordInfo<W>::bytes;
 1311|       |
 1312|      0|            constexpr size_t n_words = C::Words;
 1313|       |
 1314|      0|            uint8_t maskb[MaskBytes + (BlindingBits == 0 ? 1 : 0)] = {0};
 1315|      0|            rng.randomize(maskb, MaskBytes);
 1316|       |
 1317|      0|            W mask[n_words] = {0};
 1318|      0|            load_le(mask, maskb, MaskWords);
 1319|       |
 1320|       |            // Mask to exactly BlindingBits
 1321|      0|            constexpr size_t ExcessBits = MaskWords * WordInfo<W>::bits - BlindingBits;
 1322|      0|            if constexpr(ExcessBits > 0) {
 1323|      0|               constexpr W ExcessMask = (static_cast<W>(1) << (WordInfo<W>::bits - ExcessBits)) - 1;
 1324|      0|               mask[MaskWords - 1] &= ExcessMask;
 1325|      0|            }
 1326|       |
 1327|       |            // Set top and bottom bits of mask
 1328|      0|            constexpr size_t TopMaskBit = (BlindingBits - 1) % WordInfo<W>::bits;
 1329|      0|            mask[(BlindingBits - 1) / WordInfo<W>::bits] |= static_cast<W>(1) << TopMaskBit;
 1330|      0|            mask[0] |= 1;
 1331|       |
 1332|      0|            W mask_n[2 * n_words] = {0};
 1333|       |
 1334|      0|            const auto sw = scalar.to_words();
 1335|       |
 1336|       |            // Compute masked scalar s + k*n
 1337|      0|            comba_mul<n_words>(mask_n, mask, C::NW.data());
 1338|      0|            bigint_add2(mask_n, 2 * n_words, sw.data(), sw.size());
 1339|       |
 1340|      0|            std::reverse(mask_n, mask_n + 2 * n_words);
 1341|      0|            m_bytes = store_be<std::vector<uint8_t>>(mask_n);
 1342|      0|            m_bits = C::Scalar::BITS + BlindingBits;
 1343|    198|         } else {
 1344|       |            // No RNG available, skip blinding
 1345|    198|            m_bytes.resize(C::Scalar::BYTES);
 1346|    198|            scalar.serialize_to(std::span{m_bytes}.template first<C::Scalar::BYTES>());
 1347|    198|            m_bits = C::Scalar::BITS;
 1348|    198|         }
 1349|       |
 1350|    198|         CT::poison(m_bytes.data(), m_bytes.size());
 1351|    198|      }
pcurves_secp224r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp224r16ParamsENS4_12Secp224r1RepEE12ScalarParamsEE8from_repERKNSt3__15arrayImLm4EEE:
  137|    485|      constexpr static std::array<W, N> from_rep(const std::array<W, N>& z) {
  138|    485|         std::array<W, 2 * N> ze = {};
  139|    485|         copy_mem(std::span{ze}.template first<N>(), z);
  140|    485|         return Self::redc(ze);
  141|    485|      }
pcurves_secp224r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp224r16ParamsENS4_12Secp224r1RepEE12ScalarParamsEE4redcERKNSt3__15arrayImLm8EEE:
  104|    773|      constexpr static std::array<W, N> redc(const std::array<W, 2 * N>& z) {
  105|       |         if constexpr(P_dash == 1) {
  106|       |            return monty_redc_pdash1(z, P);
  107|    773|         } else {
  108|    773|            return monty_redc(z, P, P_dash);
  109|    773|         }
  110|    773|      }
pcurves_secp224r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp224r16ParamsENS5_12Secp224r1RepEE12ScalarParamsEEEE12serialize_toENSt3__14spanIhLm28EEE:
  739|    485|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    485|         auto v = Rep::from_rep(m_val);
  741|    485|         std::reverse(v.begin(), v.end());
  742|       |
  743|       |         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|       |            store_be(bytes, v);
  745|    485|         } else {
  746|       |            // Remove leading zero bytes
  747|    485|            const auto padded_bytes = store_be(v);
  748|    485|            constexpr size_t extra = N * WordInfo<W>::bytes - Self::BYTES;
  749|    485|            copy_mem(bytes, std::span{padded_bytes}.template subspan<extra, Self::BYTES>());
  750|    485|         }
  751|    485|      }
pcurves_secp224r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp224r15CurveELm7EE4bitsEv:
 1305|    198|      size_t bits() const { return m_bits; }
pcurves_secp224r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E18conditional_assignENS_2CT6ChoiceERKSC_:
 1084|    198|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
 1085|    198|         FieldElement::conditional_assign(m_x, m_y, m_z, cond, pt.x(), pt.y(), pt.z());
 1086|    198|      }
pcurves_secp224r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E6negateEv:
 1134|    198|      constexpr Self negate() const { return Self(x(), y().negate(), z()); }
pcurves_secp224r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E18_const_time_poisonEv:
 1174|    198|      constexpr void _const_time_poison() const { CT::poison_all(m_x, m_y, m_z); }
pcurves_secp224r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE18_const_time_poisonEv:
  889|    594|      constexpr void _const_time_poison() const { CT::poison(m_val); }
pcurves_secp224r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp224r15CurveELm7EE10get_windowEm:
 1353|  7.52k|      size_t get_window(size_t offset) const {
 1354|       |         // Extract a WindowBits sized window out of s, depending on offset.
 1355|  7.52k|         return read_window_bits<WindowBits>(std::span{m_bytes}, offset);
 1356|  7.52k|      }
pcurves_secp224r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E10add_or_subERKSC_RKNS_16AffineCurvePointISB_EENS_2CT6ChoiceE:
 1096|  7.32k|      constexpr static Self add_or_sub(const Self& a, const AffinePoint& b, CT::Choice sub) {
 1097|  7.32k|         return point_add_or_sub_mixed<Self, AffinePoint, FieldElement>(a, b, sub, FieldElement::one());
 1098|  7.32k|      }
pcurves_secp224r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE18conditional_assignENS_2CT6ChoiceERKSA_:
  367|  7.32k|      constexpr void conditional_assign(CT::Choice cond, const Self& nx) {
  368|  7.32k|         const W mask = cond.into_bitmask<W>();
  369|       |
  370|  36.6k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (370:28): [True: 29.3k, False: 7.32k]
  ------------------
  371|  29.3k|            m_val[i] = Botan::choose(mask, nx.m_val[i], m_val[i]);
  372|  29.3k|         }
  373|  7.32k|      }
pcurves_secp224r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE9ct_selectENSt3__14spanIKSC_Lm18446744073709551615EEEm:
  955|  7.52k|      static constexpr auto ct_select(std::span<const Self> pts, size_t idx) {
  956|  7.52k|         auto result = Self::identity(pts[0]);
  957|       |
  958|       |         // Intentionally wrapping; set to maximum size_t if idx == 0
  959|  7.52k|         const size_t idx1 = static_cast<size_t>(idx - 1);
  960|   248k|         for(size_t i = 0; i != pts.size(); ++i) {
  ------------------
  |  Branch (960:28): [True: 240k, False: 7.52k]
  ------------------
  961|   240k|            const auto found = CT::Mask<size_t>::is_equal(idx1, i).as_choice();
  962|   240k|            result.conditional_assign(found, pts[i]);
  963|   240k|         }
  964|       |
  965|  7.52k|         return result;
  966|  7.52k|      }
pcurves_secp224r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE8identityERKSC_:
  924|  7.52k|      static constexpr Self identity(const Self& /*unused*/) {
  925|  7.52k|         return Self(FieldElement::zero(), FieldElement::zero());
  926|  7.52k|      }
pcurves_secp224r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE18conditional_assignENS_2CT6ChoiceERKSC_:
  981|   240k|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
  982|   240k|         FieldElement::conditional_assign(m_x, m_y, cond, pt.x(), pt.y());
  983|   240k|      }
pcurves_secp224r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE18conditional_assignERSA_SB_NS_2CT6ChoiceERKSA_SF_:
  380|   240k|      static constexpr void conditional_assign(Self& x, Self& y, CT::Choice cond, const Self& nx, const Self& ny) {
  381|   240k|         const W mask = cond.into_bitmask<W>();
  382|       |
  383|  1.20M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (383:28): [True: 963k, False: 240k]
  ------------------
  384|   963k|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  385|   963k|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  386|   963k|         }
  387|   240k|      }
pcurves_secp224r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E13randomize_repERNS_21RandomNumberGeneratorE:
 1142|    792|      void randomize_rep(RandomNumberGenerator& rng) {
 1143|       |         // In certain contexts we may be called with a Null_RNG; in that case the
 1144|       |         // caller is accepting that randomization will not occur
 1145|       |
 1146|       |         // Conditional ok: caller's RNG state (seeded vs not) is presumed public
 1147|    792|         if(rng.is_seeded()) {
  ------------------
  |  Branch (1147:13): [True: 0, False: 792]
  ------------------
 1148|      0|            auto r = FieldElement::random(rng);
 1149|       |
 1150|      0|            auto r2 = r.square();
 1151|      0|            auto r3 = r2 * r;
 1152|       |
 1153|      0|            m_x *= r2;
 1154|      0|            m_y *= r3;
 1155|      0|            m_z *= r;
 1156|      0|         }
 1157|    792|      }
pcurves_secp224r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE11deserializeENSt3__14spanIKhLm18446744073709551615EEE:
  792|    160|      static std::optional<Self> deserialize(std::span<const uint8_t> bytes) {
  793|       |         // Conditional ok: input length is public
  794|    160|         if(bytes.size() != Self::BYTES) {
  ------------------
  |  Branch (794:13): [True: 0, False: 160]
  ------------------
  795|      0|            return {};
  796|      0|         }
  797|       |
  798|    160|         const auto words = bytes_to_words<W, N, BYTES>(bytes.first<Self::BYTES>());
  799|       |
  800|       |         // Conditional acceptable: std::optional is implicitly not constant time
  801|    160|         if(!bigint_ct_is_lt(words.data(), N, P.data(), N).as_bool()) {
  ------------------
  |  Branch (801:13): [True: 5, False: 155]
  ------------------
  802|      5|            return {};
  803|      5|         }
  804|       |
  805|       |         // Safe because we checked above that words is an integer < P
  806|    155|         return Self::from_words(words);
  807|    160|      }
pcurves_secp224r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE10from_wordsILm4EEESA_NSt3__15arrayImXT_EEE:
  211|    155|      static constexpr Self from_words(std::array<W, L> w) {
  212|    155|         if constexpr(L == N) {
  213|    155|            return Self(Rep::to_rep(w));
  214|       |         } else {
  215|       |            static_assert(L < N);
  216|       |            std::array<W, N> ew = {};
  217|       |            copy_mem(std::span{ew}.template first<L>(), w);
  218|       |            return Self(Rep::to_rep(ew));
  219|       |         }
  220|    155|      }
pcurves_secp224r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E20_const_time_unpoisonEv:
 1176|    198|      constexpr void _const_time_unpoison() const { CT::unpoison_all(m_x, m_y, m_z); }
pcurves_secp224r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE20_const_time_unpoisonEv:
  891|    594|      constexpr void _const_time_unpoison() const { CT::unpoison(m_val); }
pcurves_secp224r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp224r15CurveELm7EED2Ev:
 1358|    198|      ~BlindedScalarBits() {
 1359|    198|         secure_zeroize_buffer(m_bytes.data(), m_bytes.size());
 1360|    198|         CT::unpoison(m_bytes.data(), m_bytes.size());
 1361|    198|      }
pcurves_secp224r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp224r16ParamsENS5_12Secp224r1RepEE12ScalarParamsEEEE10from_stashILm9EEESB_RKNSt3__15arrayImXT_EEE:
  774|    772|      static Self from_stash(const std::array<W, L>& stash) {
  775|    772|         static_assert(L >= N);
  776|    772|         std::array<W, N> val = {};
  777|  3.86k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 3.08k, False: 772]
  ------------------
  778|  3.08k|            val[i] = stash[i];
  779|  3.08k|         }
  780|    772|         return Self(val);
  781|    772|      }
pcurves_secp224r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp224r16ParamsENS5_12Secp224r1RepEE12ScalarParamsEEEEC2ENSt3__15arrayImLm4EEE:
  898|  1.06k|      explicit constexpr IntMod(std::array<W, N> v) : m_val(v) {}
pcurves_secp224r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE12serialize_toENSt3__14spanIhLm28EEE:
  739|    396|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    396|         auto v = Rep::from_rep(m_val);
  741|    396|         std::reverse(v.begin(), v.end());
  742|       |
  743|       |         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|       |            store_be(bytes, v);
  745|    396|         } else {
  746|       |            // Remove leading zero bytes
  747|    396|            const auto padded_bytes = store_be(v);
  748|    396|            constexpr size_t extra = N * WordInfo<W>::bytes - Self::BYTES;
  749|    396|            copy_mem(bytes, std::span{padded_bytes}.template subspan<extra, Self::BYTES>());
  750|    396|         }
  751|    396|      }
pcurves_secp224r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp224r16ParamsENS5_12Secp224r1RepEE12ScalarParamsEEEE11stash_valueILm9EEENSt3__15arrayImXT_EEEv:
  759|    287|      std::array<W, L> stash_value() const {
  760|    287|         static_assert(L >= N);
  761|    287|         std::array<W, L> stash = {};
  762|  1.43k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 1.14k, False: 287]
  ------------------
  763|  1.14k|            stash[i] = m_val[i];
  764|  1.14k|         }
  765|    287|         return stash;
  766|    287|      }
pcurves_secp224r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE10from_stashILm9EEESA_RKNSt3__15arrayImXT_EEE:
  774|  1.38k|      static Self from_stash(const std::array<W, L>& stash) {
  775|  1.38k|         static_assert(L >= N);
  776|  1.38k|         std::array<W, N> val = {};
  777|  6.93k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 5.54k, False: 1.38k]
  ------------------
  778|  5.54k|            val[i] = stash[i];
  779|  5.54k|         }
  780|  1.38k|         return Self(val);
  781|  1.38k|      }
pcurves_secp224r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp224r16ParamsENS5_12Secp224r1RepEE12ScalarParamsEEEE7is_zeroEv:
  225|    575|      constexpr CT::Choice is_zero() const { return CT::all_zeros(m_val.data(), m_val.size()).as_choice(); }
pcurves_secp224r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEeqERKSA_:
  722|    274|      constexpr CT::Choice operator==(const Self& other) const {
  723|    274|         return CT::is_equal(this->data(), other.data(), N).as_choice();
  724|    274|      }
pcurves_secp224r1.cpp:_ZN5Botan13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp224r16ParamsENS3_12Secp224r1RepEE7x3_ax_bERKNS_6IntModINS5_INS6_11FieldParamsEEEEE:
 1275|    274|      static constexpr FieldElement x3_ax_b(const FieldElement& x) { return (x.square() + A) * x + B; }
pcurves_secp224r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp224r16ParamsENS5_12Secp224r1RepEE12ScalarParamsEEEE11deserializeENSt3__14spanIKhLm18446744073709551615EEE:
  792|    289|      static std::optional<Self> deserialize(std::span<const uint8_t> bytes) {
  793|       |         // Conditional ok: input length is public
  794|    289|         if(bytes.size() != Self::BYTES) {
  ------------------
  |  Branch (794:13): [True: 0, False: 289]
  ------------------
  795|      0|            return {};
  796|      0|         }
  797|       |
  798|    289|         const auto words = bytes_to_words<W, N, BYTES>(bytes.first<Self::BYTES>());
  799|       |
  800|       |         // Conditional acceptable: std::optional is implicitly not constant time
  801|    289|         if(!bigint_ct_is_lt(words.data(), N, P.data(), N).as_bool()) {
  ------------------
  |  Branch (801:13): [True: 1, False: 288]
  ------------------
  802|      1|            return {};
  803|      1|         }
  804|       |
  805|       |         // Safe because we checked above that words is an integer < P
  806|    288|         return Self::from_words(words);
  807|    289|      }
pcurves_secp224r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp224r16ParamsENS5_12Secp224r1RepEE12ScalarParamsEEEE10from_wordsILm4EEESB_NSt3__15arrayImXT_EEE:
  211|    288|      static constexpr Self from_words(std::array<W, L> w) {
  212|    288|         if constexpr(L == N) {
  213|    288|            return Self(Rep::to_rep(w));
  214|       |         } else {
  215|       |            static_assert(L < N);
  216|       |            std::array<W, N> ew = {};
  217|       |            copy_mem(std::span{ew}.template first<L>(), w);
  218|       |            return Self(Rep::to_rep(ew));
  219|       |         }
  220|    288|      }
pcurves_secp224r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp224r16ParamsENS4_12Secp224r1RepEE12ScalarParamsEE6to_repERKNSt3__15arrayImLm4EEE:
  115|    288|      constexpr static std::array<W, N> to_rep(const std::array<W, N>& x) {
  116|    288|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  117|    288|         comba_mul<N>(z.data(), x.data(), R2.data());
  118|    288|         return Self::redc(z);
  119|    288|      }
pcurves_secp224r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE12serialize_toENSt3__14spanIhLm57EEE:
  941|    198|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  942|    198|         BOTAN_STATE_CHECK(this->is_identity().as_bool() == false);
  ------------------
  |  |   51|    198|   do {                                                         \
  |  |   52|    198|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    198|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 198]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    198|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 198]
  |  |  ------------------
  ------------------
  943|    198|         BufferStuffer pack(bytes);
  944|    198|         pack.append(0x04);
  945|    198|         x().serialize_to(pack.next<FieldElement::BYTES>());
  946|    198|         y().serialize_to(pack.next<FieldElement::BYTES>());
  947|    198|         BOTAN_DEBUG_ASSERT(pack.full());
  ------------------
  |  |  130|    198|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    198|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 198]
  |  |  ------------------
  ------------------
  948|    198|      }
pcurves_secp256k1.cpp:_ZN5Botan23PrecomputedBaseMulTableINS_6PCurve12_GLOBAL__N_19secp256k15CurveELm6EEC2ERKNS_16AffineCurvePointINS_6IntModINS3_12Secp256k1RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEEEE:
 1405|      1|            m_table(basemul_booth_setup<C, WindowBits>(p, BlindedScalar::Bits + 1)) {}
pcurves_secp256k1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E11from_affineERKNS_16AffineCurvePointISB_EE:
 1016|    150|      static constexpr Self from_affine(const AffinePoint& pt) {
 1017|       |         /*
 1018|       |         * If the point is the identity element (x=0, y=0) then instead of
 1019|       |         * creating (x, y, 1) = (0, 0, 1) we want our projective identity
 1020|       |         * encoding of (0, 1, 0)
 1021|       |         *
 1022|       |         * Which we can achieve by a conditional swap of y and z if the
 1023|       |         * affine point is the identity.
 1024|       |         */
 1025|       |
 1026|    150|         auto x = pt.x();
 1027|    150|         auto y = pt.y();
 1028|    150|         auto z = FieldElement::one();
 1029|       |
 1030|    150|         FieldElement::conditional_swap(pt.is_identity(), y, z);
 1031|       |
 1032|    150|         return ProjectiveCurvePoint(x, y, z);
 1033|    150|      }
pcurves_secp256k1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE1xEv:
  971|   224k|      constexpr const FieldElement& x() const { return m_x; }
pcurves_secp256k1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE1yEv:
  976|   218k|      constexpr const FieldElement& y() const { return m_y; }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE3oneEv:
  200|  6.40k|      static constexpr Self one() { return Self(Rep::one()); }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEC2ENSt3__15arrayImLm4EEE:
  898|   184k|      explicit constexpr IntMod(std::array<W, N> v) : m_val(v) {}
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE16conditional_swapENS_2CT6ChoiceERSA_SD_:
  410|    150|      static constexpr void conditional_swap(CT::Choice cond, Self& x, Self& y) {
  411|    150|         const W mask = cond.into_bitmask<W>();
  412|       |
  413|    750|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (413:28): [True: 600, False: 150]
  ------------------
  414|    600|            auto nx = Botan::choose(mask, y.m_val[i], x.m_val[i]);
  415|    600|            auto ny = Botan::choose(mask, x.m_val[i], y.m_val[i]);
  416|    600|            x.m_val[i] = nx;
  417|    600|            y.m_val[i] = ny;
  418|    600|         }
  419|    150|      }
pcurves_secp256k1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE11is_identityEv:
  928|  6.85k|      constexpr CT::Choice is_identity() const { return x().is_zero() && y().is_zero(); }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE7is_zeroEv:
  225|  36.9k|      constexpr CT::Choice is_zero() const { return CT::all_zeros(m_val.data(), m_val.size()).as_choice(); }
pcurves_secp256k1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_EC2ERKSB_SE_SE_:
 1056|  8.27k|            m_x(x), m_y(y), m_z(z) {}
pcurves_secp256k1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E3dblEv:
 1121|    833|      constexpr Self dbl() const {
 1122|       |         if constexpr(Self::A_is_minus_3) {
 1123|       |            return dbl_a_minus_3(*this);
 1124|    833|         } else if constexpr(Self::A_is_zero) {
 1125|    833|            return dbl_a_zero(*this);
 1126|       |         } else {
 1127|       |            return dbl_generic(*this, A);
 1128|       |         }
 1129|    833|      }
pcurves_secp256k1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E1xEv:
 1162|  25.5k|      constexpr const FieldElement& x() const { return m_x; }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE6squareEv:
  426|  27.3k|      constexpr BOTAN_FORCE_INLINE Self square() const {
  427|  27.3k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  428|  27.3k|         comba_sqr<N>(z.data(), this->data());
  429|  27.3k|         return Self(Rep::redc(z));
  430|  27.3k|      }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE4dataEv:
  896|   219k|      constexpr const W* data() const { return m_val.data(); }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE4mul3Ev:
  335|    833|      constexpr inline Self mul3() const { return mul2() + (*this); }
pcurves_secp256k1.cpp:_ZN5BotanplERKNS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEESC_:
  265|  8.29k|      friend constexpr BOTAN_FORCE_INLINE Self operator+(const Self& a, const Self& b) {
  266|  8.29k|         std::array<W, N> t;  // NOLINT(*-member-init)
  267|       |
  268|  8.29k|         W carry = 0;
  269|  41.4k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (269:28): [True: 33.1k, False: 8.29k]
  ------------------
  270|  33.1k|            t[i] = word_add(a.m_val[i], b.m_val[i], &carry);
  271|  33.1k|         }
  272|       |
  273|  8.29k|         std::array<W, N> r;  // NOLINT(*-member-init)
  274|  8.29k|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  275|  8.29k|         return Self(r);
  276|  8.29k|      }
pcurves_secp256k1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E1yEv:
 1167|  25.5k|      constexpr const FieldElement& y() const { return m_y; }
pcurves_secp256k1.cpp:_ZN5BotanmlERKNS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEESC_:
  346|  71.5k|      friend constexpr BOTAN_FORCE_INLINE Self operator*(const Self& a, const Self& b) {
  347|  71.5k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  348|  71.5k|         comba_mul<N>(z.data(), a.data(), b.data());
  349|  71.5k|         return Self(Rep::redc(z));
  350|  71.5k|      }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE4mul4Ev:
  338|    833|      constexpr inline Self mul4() const { return mul2().mul2(); }
pcurves_secp256k1.cpp:_ZN5BotanmiERKNS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEESC_:
  281|  44.4k|      friend constexpr BOTAN_FORCE_INLINE Self operator-(const Self& a, const Self& b) {
  282|  44.4k|         std::array<W, N> r;  // NOLINT(*-member-init)
  283|  44.4k|         W carry = 0;
  284|   222k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (284:28): [True: 177k, False: 44.4k]
  ------------------
  285|   177k|            r[i] = word_sub(a.m_val[i], b.m_val[i], &carry);
  286|   177k|         }
  287|       |
  288|  44.4k|         const auto mask = CT::Mask<W>::expand(carry).value();
  289|       |
  290|  44.4k|         carry = 0;
  291|       |
  292|   222k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (292:28): [True: 177k, False: 44.4k]
  ------------------
  293|   177k|            r[i] = word_add(r[i], P[i] & mask, &carry);
  294|   177k|         }
  295|       |
  296|  44.4k|         return Self(r);
  297|  44.4k|      }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE4mul2Ev:
  325|  6.66k|      constexpr BOTAN_FORCE_INLINE Self mul2() const {
  326|  6.66k|         std::array<W, N> t = value();
  327|  6.66k|         const W carry = shift_left<1>(t);
  328|       |
  329|  6.66k|         std::array<W, N> r;  // NOLINT(*-member-init)
  330|  6.66k|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  331|  6.66k|         return Self(r);
  332|  6.66k|      }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE5valueEv:
  894|  6.66k|      constexpr const std::array<W, N>& value() const { return m_val; }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE4mul8Ev:
  341|    833|      constexpr inline Self mul8() const { return mul2().mul2().mul2(); }
pcurves_secp256k1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E1zEv:
 1172|  44.9k|      constexpr const FieldElement& z() const { return m_z; }
pcurves_secp256k1.cpp:_ZN5BotanplERKNS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_EESE_:
 1064|    735|      friend constexpr Self operator+(const Self& a, const Self& b) { return Self::add(a, b); }
pcurves_secp256k1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E3addERKSC_SE_:
 1103|    735|      constexpr static Self add(const Self& a, const Self& b) { return point_add<Self, FieldElement>(a, b); }
pcurves_secp256k1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E11is_identityEv:
 1082|  9.29k|      constexpr CT::Choice is_identity() const { return z().is_zero(); }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE18conditional_assignERSA_SB_SB_NS_2CT6ChoiceERKSA_SF_SF_:
  395|  14.1k|         Self& x, Self& y, Self& z, CT::Choice cond, const Self& nx, const Self& ny, const Self& nz) {
  396|  14.1k|         const W mask = cond.into_bitmask<W>();
  397|       |
  398|  70.6k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (398:28): [True: 56.5k, False: 14.1k]
  ------------------
  399|  56.5k|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  400|  56.5k|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  401|  56.5k|            z.m_val[i] = Botan::choose(mask, nz.m_val[i], z.m_val[i]);
  402|  56.5k|         }
  403|  14.1k|      }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEmLERKSA_:
  355|  1.93k|      constexpr BOTAN_FORCE_INLINE Self& operator*=(const Self& other) {
  356|  1.93k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  357|  1.93k|         comba_mul<N>(z.data(), data(), other.data());
  358|  1.93k|         m_val = Rep::redc(z);
  359|  1.93k|         return (*this);
  360|  1.93k|      }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE8square_nEm:
  439|  1.93k|      constexpr void square_n(size_t n) {
  440|  1.93k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  441|  39.6k|         for(size_t i = 0; i != n; ++i) {
  ------------------
  |  Branch (441:28): [True: 37.6k, False: 1.93k]
  ------------------
  442|  37.6k|            comba_sqr<N>(z.data(), this->data());
  443|  37.6k|            m_val = Rep::redc(z);
  444|  37.6k|         }
  445|  1.93k|      }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE14invert_vartimeEv:
  598|      1|      constexpr Self invert_vartime() const {
  599|       |         // Conditional ok: this function is variable time
  600|      1|         if(this->is_zero().as_bool()) {
  ------------------
  |  Branch (600:13): [True: 0, False: 1]
  ------------------
  601|      0|            return Self::zero();
  602|      0|         }
  603|       |
  604|      1|         auto x = Self(std::array<W, N>{1});  // 1 in standard domain
  605|      1|         auto b = Self(this->to_words());     // *this in standard domain
  606|       |
  607|       |         // First loop iteration
  608|      1|         Self::_invert_vartime_div2_helper(b, x);
  609|       |
  610|      1|         auto a = b.negate();
  611|       |         // y += x but y is zero at the outset
  612|      1|         auto y = x;
  613|       |
  614|       |         // First half of second loop iteration
  615|      1|         Self::_invert_vartime_div2_helper(a, y);
  616|       |
  617|    176|         for(;;) {
  618|       |            // Conditional ok: this function is variable time
  619|    176|            if(a.m_val == b.m_val) {
  ------------------
  |  Branch (619:16): [True: 1, False: 175]
  ------------------
  620|       |               // At this point it should be that a == b == 1
  621|      1|               auto r = y.negate();
  622|       |
  623|       |               // Convert back to Montgomery if required
  624|      1|               r.m_val = Rep::to_rep(r.m_val);
  625|      1|               return r;
  626|      1|            }
  627|       |
  628|    175|            auto nx = x + y;
  629|       |
  630|       |            /*
  631|       |            * Otherwise either b > a or a > b
  632|       |            *
  633|       |            * If b > a we want to set b to b - a
  634|       |            * Otherwise we want to set a to a - b
  635|       |            *
  636|       |            * Compute r = b - a and check if it underflowed
  637|       |            * If it did not then we are in the b > a path
  638|       |            */
  639|    175|            std::array<W, N> r;  // NOLINT(*-member-init)
  640|    175|            const word carry = bigint_sub3(r.data(), b.data(), N, a.data(), N);
  641|       |
  642|       |            // Conditional ok: this function is variable time
  643|    175|            if(carry == 0) {
  ------------------
  |  Branch (643:16): [True: 105, False: 70]
  ------------------
  644|       |               // b > a
  645|    105|               b.m_val = r;
  646|    105|               x = nx;
  647|    105|               Self::_invert_vartime_div2_helper(b, x);
  648|    105|            } else {
  649|       |               // We know this can't underflow because a > b
  650|     70|               bigint_sub3(r.data(), a.data(), N, b.data(), N);
  651|     70|               a.m_val = r;
  652|     70|               y = nx;
  653|     70|               Self::_invert_vartime_div2_helper(a, y);
  654|     70|            }
  655|    175|         }
  656|      1|      }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE4zeroEv:
  195|  12.8k|      static constexpr Self zero() { return Self(std::array<W, N>{0}); }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE8to_wordsEv:
  734|      1|      constexpr std::array<W, Self::N> to_words() const { return Rep::from_rep(m_val); }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE27_invert_vartime_div2_helperERSA_SB_:
  547|    177|      static constexpr void _invert_vartime_div2_helper(Self& a, Self& x) {
  548|    177|         constexpr auto INV_2 = p_div_2_plus_1(Rep::P);
  549|       |
  550|       |         // Conditional ok: this function is variable time
  551|    541|         while((a.m_val[0] & 1) != 1) {
  ------------------
  |  Branch (551:16): [True: 364, False: 177]
  ------------------
  552|    364|            shift_right<1>(a.m_val);
  553|       |
  554|    364|            const W borrow = shift_right<1>(x.m_val);
  555|       |
  556|       |            // Conditional ok: this function is variable time
  557|    364|            if(borrow) {
  ------------------
  |  Branch (557:16): [True: 186, False: 178]
  ------------------
  558|    186|               bigint_add2(x.m_val.data(), N, INV_2.data(), N);
  559|    186|            }
  560|    364|         }
  561|    177|      }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE6negateEv:
  452|  6.40k|      constexpr Self negate() const {
  453|  6.40k|         const W x_is_zero = ~CT::all_zeros(this->data(), N).value();
  454|       |
  455|  6.40k|         std::array<W, N> r;  // NOLINT(*-member-init)
  456|  6.40k|         W carry = 0;
  457|  32.0k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (457:28): [True: 25.6k, False: 6.40k]
  ------------------
  458|  25.6k|            r[i] = word_sub(P[i] & x_is_zero, m_val[i], &carry);
  459|  25.6k|         }
  460|       |
  461|  6.40k|         return Self(r);
  462|  6.40k|      }
pcurves_secp256k1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEEC2ERKSB_SE_:
  917|  8.42k|      constexpr AffineCurvePoint(const FieldElement& x, const FieldElement& y) : m_x(x), m_y(y) {}
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE11stash_valueILm9EEENSt3__15arrayImXT_EEEv:
  759|    745|      std::array<W, L> stash_value() const {
  760|    745|         static_assert(L >= N);
  761|    745|         std::array<W, L> stash = {};
  762|  3.72k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 2.98k, False: 745]
  ------------------
  763|  2.98k|            stash[i] = m_val[i];
  764|  2.98k|         }
  765|    745|         return stash;
  766|    745|      }
pcurves_secp256k1.cpp:_ZNK5Botan23PrecomputedBaseMulTableINS_6PCurve12_GLOBAL__N_19secp256k15CurveELm6EE3mulERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS3_12Secp256k1RepEE12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1407|    149|      ProjectivePoint mul(const Scalar& s, RandomNumberGenerator& rng) const {
 1408|    149|         const BlindedScalar scalar(s, rng);
 1409|    149|         return basemul_booth_exec<C, WindowBits>(m_table, scalar, rng);
 1410|    149|      }
pcurves_secp256k1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp256k15CurveELm7EEC2ERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS3_12Secp256k1RepEE12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1307|    149|      BlindedScalarBits(const typename C::Scalar& scalar, RandomNumberGenerator& rng) {
 1308|    149|         if(BlindingBits > 0 && rng.is_seeded()) {
  ------------------
  |  Branch (1308:13): [True: 149, Folded]
  |  Branch (1308:33): [True: 0, False: 149]
  ------------------
 1309|      0|            constexpr size_t MaskWords = (BlindingBits + WordInfo<W>::bits - 1) / WordInfo<W>::bits;
 1310|      0|            constexpr size_t MaskBytes = MaskWords * WordInfo<W>::bytes;
 1311|       |
 1312|      0|            constexpr size_t n_words = C::Words;
 1313|       |
 1314|      0|            uint8_t maskb[MaskBytes + (BlindingBits == 0 ? 1 : 0)] = {0};
 1315|      0|            rng.randomize(maskb, MaskBytes);
 1316|       |
 1317|      0|            W mask[n_words] = {0};
 1318|      0|            load_le(mask, maskb, MaskWords);
 1319|       |
 1320|       |            // Mask to exactly BlindingBits
 1321|      0|            constexpr size_t ExcessBits = MaskWords * WordInfo<W>::bits - BlindingBits;
 1322|      0|            if constexpr(ExcessBits > 0) {
 1323|      0|               constexpr W ExcessMask = (static_cast<W>(1) << (WordInfo<W>::bits - ExcessBits)) - 1;
 1324|      0|               mask[MaskWords - 1] &= ExcessMask;
 1325|      0|            }
 1326|       |
 1327|       |            // Set top and bottom bits of mask
 1328|      0|            constexpr size_t TopMaskBit = (BlindingBits - 1) % WordInfo<W>::bits;
 1329|      0|            mask[(BlindingBits - 1) / WordInfo<W>::bits] |= static_cast<W>(1) << TopMaskBit;
 1330|      0|            mask[0] |= 1;
 1331|       |
 1332|      0|            W mask_n[2 * n_words] = {0};
 1333|       |
 1334|      0|            const auto sw = scalar.to_words();
 1335|       |
 1336|       |            // Compute masked scalar s + k*n
 1337|      0|            comba_mul<n_words>(mask_n, mask, C::NW.data());
 1338|      0|            bigint_add2(mask_n, 2 * n_words, sw.data(), sw.size());
 1339|       |
 1340|      0|            std::reverse(mask_n, mask_n + 2 * n_words);
 1341|      0|            m_bytes = store_be<std::vector<uint8_t>>(mask_n);
 1342|      0|            m_bits = C::Scalar::BITS + BlindingBits;
 1343|    149|         } else {
 1344|       |            // No RNG available, skip blinding
 1345|    149|            m_bytes.resize(C::Scalar::BYTES);
 1346|    149|            scalar.serialize_to(std::span{m_bytes}.template first<C::Scalar::BYTES>());
 1347|    149|            m_bits = C::Scalar::BITS;
 1348|    149|         }
 1349|       |
 1350|    149|         CT::poison(m_bytes.data(), m_bytes.size());
 1351|    149|      }
pcurves_secp256k1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS4_12Secp256k1RepEE12ScalarParamsEE8from_repERKNSt3__15arrayImLm4EEE:
  137|    344|      constexpr static std::array<W, N> from_rep(const std::array<W, N>& z) {
  138|    344|         std::array<W, 2 * N> ze = {};
  139|    344|         copy_mem(std::span{ze}.template first<N>(), z);
  140|    344|         return Self::redc(ze);
  141|    344|      }
pcurves_secp256k1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS4_12Secp256k1RepEE12ScalarParamsEE4redcERKNSt3__15arrayImLm8EEE:
  104|    540|      constexpr static std::array<W, N> redc(const std::array<W, 2 * N>& z) {
  105|       |         if constexpr(P_dash == 1) {
  106|       |            return monty_redc_pdash1(z, P);
  107|    540|         } else {
  108|    540|            return monty_redc(z, P, P_dash);
  109|    540|         }
  110|    540|      }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS5_12Secp256k1RepEE12ScalarParamsEEEE12serialize_toENSt3__14spanIhLm32EEE:
  739|    344|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    344|         auto v = Rep::from_rep(m_val);
  741|    344|         std::reverse(v.begin(), v.end());
  742|       |
  743|    344|         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|    344|            store_be(bytes, v);
  745|       |         } else {
  746|       |            // Remove leading zero bytes
  747|       |            const auto padded_bytes = store_be(v);
  748|       |            constexpr size_t extra = N * WordInfo<W>::bytes - Self::BYTES;
  749|       |            copy_mem(bytes, std::span{padded_bytes}.template subspan<extra, Self::BYTES>());
  750|       |         }
  751|    344|      }
pcurves_secp256k1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp256k15CurveELm7EE4bitsEv:
 1305|    149|      size_t bits() const { return m_bits; }
pcurves_secp256k1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E18conditional_assignENS_2CT6ChoiceERKSC_:
 1084|    149|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
 1085|    149|         FieldElement::conditional_assign(m_x, m_y, m_z, cond, pt.x(), pt.y(), pt.z());
 1086|    149|      }
pcurves_secp256k1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E6negateEv:
 1134|    149|      constexpr Self negate() const { return Self(x(), y().negate(), z()); }
pcurves_secp256k1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E18_const_time_poisonEv:
 1174|    149|      constexpr void _const_time_poison() const { CT::poison_all(m_x, m_y, m_z); }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE18_const_time_poisonEv:
  889|    447|      constexpr void _const_time_poison() const { CT::poison(m_val); }
pcurves_secp256k1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp256k15CurveELm7EE10get_windowEm:
 1353|  6.40k|      size_t get_window(size_t offset) const {
 1354|       |         // Extract a WindowBits sized window out of s, depending on offset.
 1355|  6.40k|         return read_window_bits<WindowBits>(std::span{m_bytes}, offset);
 1356|  6.40k|      }
pcurves_secp256k1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E10add_or_subERKSC_RKNS_16AffineCurvePointISB_EENS_2CT6ChoiceE:
 1096|  6.25k|      constexpr static Self add_or_sub(const Self& a, const AffinePoint& b, CT::Choice sub) {
 1097|  6.25k|         return point_add_or_sub_mixed<Self, AffinePoint, FieldElement>(a, b, sub, FieldElement::one());
 1098|  6.25k|      }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE18conditional_assignENS_2CT6ChoiceERKSA_:
  367|  6.25k|      constexpr void conditional_assign(CT::Choice cond, const Self& nx) {
  368|  6.25k|         const W mask = cond.into_bitmask<W>();
  369|       |
  370|  31.2k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (370:28): [True: 25.0k, False: 6.25k]
  ------------------
  371|  25.0k|            m_val[i] = Botan::choose(mask, nx.m_val[i], m_val[i]);
  372|  25.0k|         }
  373|  6.25k|      }
pcurves_secp256k1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE9ct_selectENSt3__14spanIKSC_Lm18446744073709551615EEEm:
  955|  6.40k|      static constexpr auto ct_select(std::span<const Self> pts, size_t idx) {
  956|  6.40k|         auto result = Self::identity(pts[0]);
  957|       |
  958|       |         // Intentionally wrapping; set to maximum size_t if idx == 0
  959|  6.40k|         const size_t idx1 = static_cast<size_t>(idx - 1);
  960|   211k|         for(size_t i = 0; i != pts.size(); ++i) {
  ------------------
  |  Branch (960:28): [True: 205k, False: 6.40k]
  ------------------
  961|   205k|            const auto found = CT::Mask<size_t>::is_equal(idx1, i).as_choice();
  962|   205k|            result.conditional_assign(found, pts[i]);
  963|   205k|         }
  964|       |
  965|  6.40k|         return result;
  966|  6.40k|      }
pcurves_secp256k1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE8identityERKSC_:
  924|  6.40k|      static constexpr Self identity(const Self& /*unused*/) {
  925|  6.40k|         return Self(FieldElement::zero(), FieldElement::zero());
  926|  6.40k|      }
pcurves_secp256k1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE18conditional_assignENS_2CT6ChoiceERKSC_:
  981|   205k|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
  982|   205k|         FieldElement::conditional_assign(m_x, m_y, cond, pt.x(), pt.y());
  983|   205k|      }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE18conditional_assignERSA_SB_NS_2CT6ChoiceERKSA_SF_:
  380|   205k|      static constexpr void conditional_assign(Self& x, Self& y, CT::Choice cond, const Self& nx, const Self& ny) {
  381|   205k|         const W mask = cond.into_bitmask<W>();
  382|       |
  383|  1.02M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (383:28): [True: 820k, False: 205k]
  ------------------
  384|   820k|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  385|   820k|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  386|   820k|         }
  387|   205k|      }
pcurves_secp256k1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E13randomize_repERNS_21RandomNumberGeneratorE:
 1142|    596|      void randomize_rep(RandomNumberGenerator& rng) {
 1143|       |         // In certain contexts we may be called with a Null_RNG; in that case the
 1144|       |         // caller is accepting that randomization will not occur
 1145|       |
 1146|       |         // Conditional ok: caller's RNG state (seeded vs not) is presumed public
 1147|    596|         if(rng.is_seeded()) {
  ------------------
  |  Branch (1147:13): [True: 0, False: 596]
  ------------------
 1148|      0|            auto r = FieldElement::random(rng);
 1149|       |
 1150|      0|            auto r2 = r.square();
 1151|      0|            auto r3 = r2 * r;
 1152|       |
 1153|      0|            m_x *= r2;
 1154|      0|            m_y *= r3;
 1155|      0|            m_z *= r;
 1156|      0|         }
 1157|    596|      }
pcurves_secp256k1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E20_const_time_unpoisonEv:
 1176|    149|      constexpr void _const_time_unpoison() const { CT::unpoison_all(m_x, m_y, m_z); }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE20_const_time_unpoisonEv:
  891|    447|      constexpr void _const_time_unpoison() const { CT::unpoison(m_val); }
pcurves_secp256k1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp256k15CurveELm7EED2Ev:
 1358|    149|      ~BlindedScalarBits() {
 1359|    149|         secure_zeroize_buffer(m_bytes.data(), m_bytes.size());
 1360|    149|         CT::unpoison(m_bytes.data(), m_bytes.size());
 1361|    149|      }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS5_12Secp256k1RepEE12ScalarParamsEEEE10from_stashILm9EEESB_RKNSt3__15arrayImXT_EEE:
  774|    539|      static Self from_stash(const std::array<W, L>& stash) {
  775|    539|         static_assert(L >= N);
  776|    539|         std::array<W, N> val = {};
  777|  2.69k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 2.15k, False: 539]
  ------------------
  778|  2.15k|            val[i] = stash[i];
  779|  2.15k|         }
  780|    539|         return Self(val);
  781|    539|      }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS5_12Secp256k1RepEE12ScalarParamsEEEEC2ENSt3__15arrayImLm4EEE:
  898|    735|      explicit constexpr IntMod(std::array<W, N> v) : m_val(v) {}
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE12serialize_toENSt3__14spanIhLm32EEE:
  739|    298|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    298|         auto v = Rep::from_rep(m_val);
  741|    298|         std::reverse(v.begin(), v.end());
  742|       |
  743|    298|         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|    298|            store_be(bytes, v);
  745|       |         } else {
  746|       |            // Remove leading zero bytes
  747|       |            const auto padded_bytes = store_be(v);
  748|       |            constexpr size_t extra = N * WordInfo<W>::bytes - Self::BYTES;
  749|       |            copy_mem(bytes, std::span{padded_bytes}.template subspan<extra, Self::BYTES>());
  750|       |         }
  751|    298|      }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS5_12Secp256k1RepEE12ScalarParamsEEEE11stash_valueILm9EEENSt3__15arrayImXT_EEEv:
  759|    195|      std::array<W, L> stash_value() const {
  760|    195|         static_assert(L >= N);
  761|    195|         std::array<W, L> stash = {};
  762|    975|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 780, False: 195]
  ------------------
  763|    780|            stash[i] = m_val[i];
  764|    780|         }
  765|    195|         return stash;
  766|    195|      }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE10from_stashILm9EEESA_RKNSt3__15arrayImXT_EEE:
  774|  1.04k|      static Self from_stash(const std::array<W, L>& stash) {
  775|  1.04k|         static_assert(L >= N);
  776|  1.04k|         std::array<W, N> val = {};
  777|  5.21k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 4.17k, False: 1.04k]
  ------------------
  778|  4.17k|            val[i] = stash[i];
  779|  4.17k|         }
  780|  1.04k|         return Self(val);
  781|  1.04k|      }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS5_12Secp256k1RepEE12ScalarParamsEEEE7is_zeroEv:
  225|    391|      constexpr CT::Choice is_zero() const { return CT::all_zeros(m_val.data(), m_val.size()).as_choice(); }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEeqERKSA_:
  722|    149|      constexpr CT::Choice operator==(const Self& other) const {
  723|    149|         return CT::is_equal(this->data(), other.data(), N).as_choice();
  724|    149|      }
pcurves_secp256k1.cpp:_ZN5Botan13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS3_12Secp256k1RepEE7x3_ax_bERKNS_6IntModINS5_INS6_11FieldParamsEEEEE:
 1275|    149|      static constexpr FieldElement x3_ax_b(const FieldElement& x) { return (x.square() + A) * x + B; }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS5_12Secp256k1RepEE12ScalarParamsEEEE11deserializeENSt3__14spanIKhLm18446744073709551615EEE:
  792|    196|      static std::optional<Self> deserialize(std::span<const uint8_t> bytes) {
  793|       |         // Conditional ok: input length is public
  794|    196|         if(bytes.size() != Self::BYTES) {
  ------------------
  |  Branch (794:13): [True: 0, False: 196]
  ------------------
  795|      0|            return {};
  796|      0|         }
  797|       |
  798|    196|         const auto words = bytes_to_words<W, N, BYTES>(bytes.first<Self::BYTES>());
  799|       |
  800|       |         // Conditional acceptable: std::optional is implicitly not constant time
  801|    196|         if(!bigint_ct_is_lt(words.data(), N, P.data(), N).as_bool()) {
  ------------------
  |  Branch (801:13): [True: 0, False: 196]
  ------------------
  802|      0|            return {};
  803|      0|         }
  804|       |
  805|       |         // Safe because we checked above that words is an integer < P
  806|    196|         return Self::from_words(words);
  807|    196|      }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS5_12Secp256k1RepEE12ScalarParamsEEEE10from_wordsILm4EEESB_NSt3__15arrayImXT_EEE:
  211|    196|      static constexpr Self from_words(std::array<W, L> w) {
  212|    196|         if constexpr(L == N) {
  213|    196|            return Self(Rep::to_rep(w));
  214|       |         } else {
  215|       |            static_assert(L < N);
  216|       |            std::array<W, N> ew = {};
  217|       |            copy_mem(std::span{ew}.template first<L>(), w);
  218|       |            return Self(Rep::to_rep(ew));
  219|       |         }
  220|    196|      }
pcurves_secp256k1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS4_12Secp256k1RepEE12ScalarParamsEE6to_repERKNSt3__15arrayImLm4EEE:
  115|    196|      constexpr static std::array<W, N> to_rep(const std::array<W, N>& x) {
  116|    196|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  117|    196|         comba_mul<N>(z.data(), x.data(), R2.data());
  118|    196|         return Self::redc(z);
  119|    196|      }
pcurves_secp256k1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE12serialize_toENSt3__14spanIhLm65EEE:
  941|    149|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  942|    149|         BOTAN_STATE_CHECK(this->is_identity().as_bool() == false);
  ------------------
  |  |   51|    149|   do {                                                         \
  |  |   52|    149|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    149|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 149]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    149|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 149]
  |  |  ------------------
  ------------------
  943|    149|         BufferStuffer pack(bytes);
  944|    149|         pack.append(0x04);
  945|    149|         x().serialize_to(pack.next<FieldElement::BYTES>());
  946|    149|         y().serialize_to(pack.next<FieldElement::BYTES>());
  947|    149|         BOTAN_DEBUG_ASSERT(pack.full());
  ------------------
  |  |  130|    149|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    149|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 149]
  |  |  ------------------
  ------------------
  948|    149|      }
pcurves_secp256r1.cpp:_ZN5Botan23PrecomputedBaseMulTableINS_6PCurve12_GLOBAL__N_19secp256r15CurveELm6EEC2ERKNS_16AffineCurvePointINS_6IntModINS2_12Secp256r1RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEEEE:
 1405|      1|            m_table(basemul_booth_setup<C, WindowBits>(p, BlindedScalar::Bits + 1)) {}
pcurves_secp256r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_E11from_affineERKNS_16AffineCurvePointISB_EE:
 1016|     86|      static constexpr Self from_affine(const AffinePoint& pt) {
 1017|       |         /*
 1018|       |         * If the point is the identity element (x=0, y=0) then instead of
 1019|       |         * creating (x, y, 1) = (0, 0, 1) we want our projective identity
 1020|       |         * encoding of (0, 1, 0)
 1021|       |         *
 1022|       |         * Which we can achieve by a conditional swap of y and z if the
 1023|       |         * affine point is the identity.
 1024|       |         */
 1025|       |
 1026|     86|         auto x = pt.x();
 1027|     86|         auto y = pt.y();
 1028|     86|         auto z = FieldElement::one();
 1029|       |
 1030|     86|         FieldElement::conditional_swap(pt.is_identity(), y, z);
 1031|       |
 1032|     86|         return ProjectiveCurvePoint(x, y, z);
 1033|     86|      }
pcurves_secp256r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEEE1xEv:
  971|   128k|      constexpr const FieldElement& x() const { return m_x; }
pcurves_secp256r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEEE1yEv:
  976|   124k|      constexpr const FieldElement& y() const { return m_y; }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE3oneEv:
  200|  3.65k|      static constexpr Self one() { return Self(Rep::one()); }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEEC2ENSt3__15arrayImLm4EEE:
  898|   126k|      explicit constexpr IntMod(std::array<W, N> v) : m_val(v) {}
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE16conditional_swapENS_2CT6ChoiceERSA_SD_:
  410|     86|      static constexpr void conditional_swap(CT::Choice cond, Self& x, Self& y) {
  411|     86|         const W mask = cond.into_bitmask<W>();
  412|       |
  413|    430|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (413:28): [True: 344, False: 86]
  ------------------
  414|    344|            auto nx = Botan::choose(mask, y.m_val[i], x.m_val[i]);
  415|    344|            auto ny = Botan::choose(mask, x.m_val[i], y.m_val[i]);
  416|    344|            x.m_val[i] = nx;
  417|    344|            y.m_val[i] = ny;
  418|    344|         }
  419|     86|      }
pcurves_secp256r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEEE11is_identityEv:
  928|  3.91k|      constexpr CT::Choice is_identity() const { return x().is_zero() && y().is_zero(); }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE7is_zeroEv:
  225|  23.0k|      constexpr CT::Choice is_zero() const { return CT::all_zeros(m_val.data(), m_val.size()).as_choice(); }
pcurves_secp256r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_EC2ERKSB_SE_SE_:
 1056|  5.39k|            m_x(x), m_y(y), m_z(z) {}
pcurves_secp256r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_E3dblEv:
 1121|    833|      constexpr Self dbl() const {
 1122|    833|         if constexpr(Self::A_is_minus_3) {
 1123|    833|            return dbl_a_minus_3(*this);
 1124|       |         } else if constexpr(Self::A_is_zero) {
 1125|       |            return dbl_a_zero(*this);
 1126|       |         } else {
 1127|       |            return dbl_generic(*this, A);
 1128|       |         }
 1129|    833|      }
pcurves_secp256r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_E1zEv:
 1172|  31.9k|      constexpr const FieldElement& z() const { return m_z; }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE6squareEv:
  426|  19.0k|      constexpr BOTAN_FORCE_INLINE Self square() const {
  427|  19.0k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  428|  19.0k|         comba_sqr<N>(z.data(), this->data());
  429|  19.0k|         return Self(Rep::redc(z));
  430|  19.0k|      }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE4dataEv:
  896|   147k|      constexpr const W* data() const { return m_val.data(); }
pcurves_secp256r1.cpp:_ZN5BotanmlERKNS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEEESC_:
  346|  50.4k|      friend constexpr BOTAN_FORCE_INLINE Self operator*(const Self& a, const Self& b) {
  347|  50.4k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  348|  50.4k|         comba_mul<N>(z.data(), a.data(), b.data());
  349|  50.4k|         return Self(Rep::redc(z));
  350|  50.4k|      }
pcurves_secp256r1.cpp:_ZN5BotanmiERKNS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEEESC_:
  281|  29.1k|      friend constexpr BOTAN_FORCE_INLINE Self operator-(const Self& a, const Self& b) {
  282|  29.1k|         std::array<W, N> r;  // NOLINT(*-member-init)
  283|  29.1k|         W carry = 0;
  284|   145k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (284:28): [True: 116k, False: 29.1k]
  ------------------
  285|   116k|            r[i] = word_sub(a.m_val[i], b.m_val[i], &carry);
  286|   116k|         }
  287|       |
  288|  29.1k|         const auto mask = CT::Mask<W>::expand(carry).value();
  289|       |
  290|  29.1k|         carry = 0;
  291|       |
  292|   145k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (292:28): [True: 116k, False: 29.1k]
  ------------------
  293|   116k|            r[i] = word_add(r[i], P[i] & mask, &carry);
  294|   116k|         }
  295|       |
  296|  29.1k|         return Self(r);
  297|  29.1k|      }
pcurves_secp256r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_E1xEv:
 1162|  18.0k|      constexpr const FieldElement& x() const { return m_x; }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE4mul3Ev:
  335|    833|      constexpr inline Self mul3() const { return mul2() + (*this); }
pcurves_secp256r1.cpp:_ZN5BotanplERKNS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEEESC_:
  265|  6.31k|      friend constexpr BOTAN_FORCE_INLINE Self operator+(const Self& a, const Self& b) {
  266|  6.31k|         std::array<W, N> t;  // NOLINT(*-member-init)
  267|       |
  268|  6.31k|         W carry = 0;
  269|  31.5k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (269:28): [True: 25.2k, False: 6.31k]
  ------------------
  270|  25.2k|            t[i] = word_add(a.m_val[i], b.m_val[i], &carry);
  271|  25.2k|         }
  272|       |
  273|  6.31k|         std::array<W, N> r;  // NOLINT(*-member-init)
  274|  6.31k|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  275|  6.31k|         return Self(r);
  276|  6.31k|      }
pcurves_secp256r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_E1yEv:
 1167|  17.2k|      constexpr const FieldElement& y() const { return m_y; }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE4mul4Ev:
  338|    833|      constexpr inline Self mul4() const { return mul2().mul2(); }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE4mul2Ev:
  325|  6.66k|      constexpr BOTAN_FORCE_INLINE Self mul2() const {
  326|  6.66k|         std::array<W, N> t = value();
  327|  6.66k|         const W carry = shift_left<1>(t);
  328|       |
  329|  6.66k|         std::array<W, N> r;  // NOLINT(*-member-init)
  330|  6.66k|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  331|  6.66k|         return Self(r);
  332|  6.66k|      }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE5valueEv:
  894|  6.66k|      constexpr const std::array<W, N>& value() const { return m_val; }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE4mul8Ev:
  341|    833|      constexpr inline Self mul8() const { return mul2().mul2().mul2(); }
pcurves_secp256r1.cpp:_ZN5BotanplERKNS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_EESE_:
 1064|    735|      friend constexpr Self operator+(const Self& a, const Self& b) { return Self::add(a, b); }
pcurves_secp256r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_E3addERKSC_SE_:
 1103|    735|      constexpr static Self add(const Self& a, const Self& b) { return point_add<Self, FieldElement>(a, b); }
pcurves_secp256r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_E11is_identityEv:
 1082|  6.60k|      constexpr CT::Choice is_identity() const { return z().is_zero(); }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE18conditional_assignERSA_SB_SB_NS_2CT6ChoiceERKSA_SF_SF_:
  395|  8.69k|         Self& x, Self& y, Self& z, CT::Choice cond, const Self& nx, const Self& ny, const Self& nz) {
  396|  8.69k|         const W mask = cond.into_bitmask<W>();
  397|       |
  398|  43.4k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (398:28): [True: 34.7k, False: 8.69k]
  ------------------
  399|  34.7k|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  400|  34.7k|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  401|  34.7k|            z.m_val[i] = Botan::choose(mask, nz.m_val[i], z.m_val[i]);
  402|  34.7k|         }
  403|  8.69k|      }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEEmLERKSA_:
  355|    935|      constexpr BOTAN_FORCE_INLINE Self& operator*=(const Self& other) {
  356|    935|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  357|    935|         comba_mul<N>(z.data(), data(), other.data());
  358|    935|         m_val = Rep::redc(z);
  359|    935|         return (*this);
  360|    935|      }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE8square_nEm:
  439|    765|      constexpr void square_n(size_t n) {
  440|    765|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  441|  22.1k|         for(size_t i = 0; i != n; ++i) {
  ------------------
  |  Branch (441:28): [True: 21.4k, False: 765]
  ------------------
  442|  21.4k|            comba_sqr<N>(z.data(), this->data());
  443|  21.4k|            m_val = Rep::redc(z);
  444|  21.4k|         }
  445|    765|      }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE14invert_vartimeEv:
  598|      1|      constexpr Self invert_vartime() const {
  599|       |         // Conditional ok: this function is variable time
  600|      1|         if(this->is_zero().as_bool()) {
  ------------------
  |  Branch (600:13): [True: 0, False: 1]
  ------------------
  601|      0|            return Self::zero();
  602|      0|         }
  603|       |
  604|      1|         auto x = Self(std::array<W, N>{1});  // 1 in standard domain
  605|      1|         auto b = Self(this->to_words());     // *this in standard domain
  606|       |
  607|       |         // First loop iteration
  608|      1|         Self::_invert_vartime_div2_helper(b, x);
  609|       |
  610|      1|         auto a = b.negate();
  611|       |         // y += x but y is zero at the outset
  612|      1|         auto y = x;
  613|       |
  614|       |         // First half of second loop iteration
  615|      1|         Self::_invert_vartime_div2_helper(a, y);
  616|       |
  617|    176|         for(;;) {
  618|       |            // Conditional ok: this function is variable time
  619|    176|            if(a.m_val == b.m_val) {
  ------------------
  |  Branch (619:16): [True: 1, False: 175]
  ------------------
  620|       |               // At this point it should be that a == b == 1
  621|      1|               auto r = y.negate();
  622|       |
  623|       |               // Convert back to Montgomery if required
  624|      1|               r.m_val = Rep::to_rep(r.m_val);
  625|      1|               return r;
  626|      1|            }
  627|       |
  628|    175|            auto nx = x + y;
  629|       |
  630|       |            /*
  631|       |            * Otherwise either b > a or a > b
  632|       |            *
  633|       |            * If b > a we want to set b to b - a
  634|       |            * Otherwise we want to set a to a - b
  635|       |            *
  636|       |            * Compute r = b - a and check if it underflowed
  637|       |            * If it did not then we are in the b > a path
  638|       |            */
  639|    175|            std::array<W, N> r;  // NOLINT(*-member-init)
  640|    175|            const word carry = bigint_sub3(r.data(), b.data(), N, a.data(), N);
  641|       |
  642|       |            // Conditional ok: this function is variable time
  643|    175|            if(carry == 0) {
  ------------------
  |  Branch (643:16): [True: 85, False: 90]
  ------------------
  644|       |               // b > a
  645|     85|               b.m_val = r;
  646|     85|               x = nx;
  647|     85|               Self::_invert_vartime_div2_helper(b, x);
  648|     90|            } else {
  649|       |               // We know this can't underflow because a > b
  650|     90|               bigint_sub3(r.data(), a.data(), N, b.data(), N);
  651|     90|               a.m_val = r;
  652|     90|               y = nx;
  653|     90|               Self::_invert_vartime_div2_helper(a, y);
  654|     90|            }
  655|    175|         }
  656|      1|      }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE4zeroEv:
  195|  7.31k|      static constexpr Self zero() { return Self(std::array<W, N>{0}); }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE8to_wordsEv:
  734|      1|      constexpr std::array<W, Self::N> to_words() const { return Rep::from_rep(m_val); }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE27_invert_vartime_div2_helperERSA_SB_:
  547|    177|      static constexpr void _invert_vartime_div2_helper(Self& a, Self& x) {
  548|    177|         constexpr auto INV_2 = p_div_2_plus_1(Rep::P);
  549|       |
  550|       |         // Conditional ok: this function is variable time
  551|    545|         while((a.m_val[0] & 1) != 1) {
  ------------------
  |  Branch (551:16): [True: 368, False: 177]
  ------------------
  552|    368|            shift_right<1>(a.m_val);
  553|       |
  554|    368|            const W borrow = shift_right<1>(x.m_val);
  555|       |
  556|       |            // Conditional ok: this function is variable time
  557|    368|            if(borrow) {
  ------------------
  |  Branch (557:16): [True: 129, False: 239]
  ------------------
  558|    129|               bigint_add2(x.m_val.data(), N, INV_2.data(), N);
  559|    129|            }
  560|    368|         }
  561|    177|      }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE6negateEv:
  452|  3.65k|      constexpr Self negate() const {
  453|  3.65k|         const W x_is_zero = ~CT::all_zeros(this->data(), N).value();
  454|       |
  455|  3.65k|         std::array<W, N> r;  // NOLINT(*-member-init)
  456|  3.65k|         W carry = 0;
  457|  18.2k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (457:28): [True: 14.6k, False: 3.65k]
  ------------------
  458|  14.6k|            r[i] = word_sub(P[i] & x_is_zero, m_val[i], &carry);
  459|  14.6k|         }
  460|       |
  461|  3.65k|         return Self(r);
  462|  3.65k|      }
pcurves_secp256r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEEEC2ERKSB_SE_:
  917|  5.47k|      constexpr AffineCurvePoint(const FieldElement& x, const FieldElement& y) : m_x(x), m_y(y) {}
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE11stash_valueILm9EEENSt3__15arrayImXT_EEEv:
  759|    425|      std::array<W, L> stash_value() const {
  760|    425|         static_assert(L >= N);
  761|    425|         std::array<W, L> stash = {};
  762|  2.12k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 1.70k, False: 425]
  ------------------
  763|  1.70k|            stash[i] = m_val[i];
  764|  1.70k|         }
  765|    425|         return stash;
  766|    425|      }
pcurves_secp256r1.cpp:_ZNK5Botan23PrecomputedBaseMulTableINS_6PCurve12_GLOBAL__N_19secp256r15CurveELm6EE3mulERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS2_12Secp256r1RepEE12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1407|     85|      ProjectivePoint mul(const Scalar& s, RandomNumberGenerator& rng) const {
 1408|     85|         const BlindedScalar scalar(s, rng);
 1409|     85|         return basemul_booth_exec<C, WindowBits>(m_table, scalar, rng);
 1410|     85|      }
pcurves_secp256r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp256r15CurveELm7EEC2ERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS2_12Secp256r1RepEE12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1307|     85|      BlindedScalarBits(const typename C::Scalar& scalar, RandomNumberGenerator& rng) {
 1308|     85|         if(BlindingBits > 0 && rng.is_seeded()) {
  ------------------
  |  Branch (1308:13): [True: 85, Folded]
  |  Branch (1308:33): [True: 0, False: 85]
  ------------------
 1309|      0|            constexpr size_t MaskWords = (BlindingBits + WordInfo<W>::bits - 1) / WordInfo<W>::bits;
 1310|      0|            constexpr size_t MaskBytes = MaskWords * WordInfo<W>::bytes;
 1311|       |
 1312|      0|            constexpr size_t n_words = C::Words;
 1313|       |
 1314|      0|            uint8_t maskb[MaskBytes + (BlindingBits == 0 ? 1 : 0)] = {0};
 1315|      0|            rng.randomize(maskb, MaskBytes);
 1316|       |
 1317|      0|            W mask[n_words] = {0};
 1318|      0|            load_le(mask, maskb, MaskWords);
 1319|       |
 1320|       |            // Mask to exactly BlindingBits
 1321|      0|            constexpr size_t ExcessBits = MaskWords * WordInfo<W>::bits - BlindingBits;
 1322|      0|            if constexpr(ExcessBits > 0) {
 1323|      0|               constexpr W ExcessMask = (static_cast<W>(1) << (WordInfo<W>::bits - ExcessBits)) - 1;
 1324|      0|               mask[MaskWords - 1] &= ExcessMask;
 1325|      0|            }
 1326|       |
 1327|       |            // Set top and bottom bits of mask
 1328|      0|            constexpr size_t TopMaskBit = (BlindingBits - 1) % WordInfo<W>::bits;
 1329|      0|            mask[(BlindingBits - 1) / WordInfo<W>::bits] |= static_cast<W>(1) << TopMaskBit;
 1330|      0|            mask[0] |= 1;
 1331|       |
 1332|      0|            W mask_n[2 * n_words] = {0};
 1333|       |
 1334|      0|            const auto sw = scalar.to_words();
 1335|       |
 1336|       |            // Compute masked scalar s + k*n
 1337|      0|            comba_mul<n_words>(mask_n, mask, C::NW.data());
 1338|      0|            bigint_add2(mask_n, 2 * n_words, sw.data(), sw.size());
 1339|       |
 1340|      0|            std::reverse(mask_n, mask_n + 2 * n_words);
 1341|      0|            m_bytes = store_be<std::vector<uint8_t>>(mask_n);
 1342|      0|            m_bits = C::Scalar::BITS + BlindingBits;
 1343|     85|         } else {
 1344|       |            // No RNG available, skip blinding
 1345|     85|            m_bytes.resize(C::Scalar::BYTES);
 1346|     85|            scalar.serialize_to(std::span{m_bytes}.template first<C::Scalar::BYTES>());
 1347|     85|            m_bits = C::Scalar::BITS;
 1348|     85|         }
 1349|       |
 1350|     85|         CT::poison(m_bytes.data(), m_bytes.size());
 1351|     85|      }
pcurves_secp256r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS3_12Secp256r1RepEE12ScalarParamsEE8from_repERKNSt3__15arrayImLm4EEE:
  137|    170|      constexpr static std::array<W, N> from_rep(const std::array<W, N>& z) {
  138|    170|         std::array<W, 2 * N> ze = {};
  139|    170|         copy_mem(std::span{ze}.template first<N>(), z);
  140|    170|         return Self::redc(ze);
  141|    170|      }
pcurves_secp256r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS3_12Secp256r1RepEE12ScalarParamsEE4redcERKNSt3__15arrayImLm8EEE:
  104|    256|      constexpr static std::array<W, N> redc(const std::array<W, 2 * N>& z) {
  105|       |         if constexpr(P_dash == 1) {
  106|       |            return monty_redc_pdash1(z, P);
  107|    256|         } else {
  108|    256|            return monty_redc(z, P, P_dash);
  109|    256|         }
  110|    256|      }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS4_12Secp256r1RepEE12ScalarParamsEEEE12serialize_toENSt3__14spanIhLm32EEE:
  739|    170|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    170|         auto v = Rep::from_rep(m_val);
  741|    170|         std::reverse(v.begin(), v.end());
  742|       |
  743|    170|         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|    170|            store_be(bytes, v);
  745|       |         } else {
  746|       |            // Remove leading zero bytes
  747|       |            const auto padded_bytes = store_be(v);
  748|       |            constexpr size_t extra = N * WordInfo<W>::bytes - Self::BYTES;
  749|       |            copy_mem(bytes, std::span{padded_bytes}.template subspan<extra, Self::BYTES>());
  750|       |         }
  751|    170|      }
pcurves_secp256r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp256r15CurveELm7EE4bitsEv:
 1305|     85|      size_t bits() const { return m_bits; }
pcurves_secp256r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_E18conditional_assignENS_2CT6ChoiceERKSC_:
 1084|     85|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
 1085|     85|         FieldElement::conditional_assign(m_x, m_y, m_z, cond, pt.x(), pt.y(), pt.z());
 1086|     85|      }
pcurves_secp256r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_E6negateEv:
 1134|     85|      constexpr Self negate() const { return Self(x(), y().negate(), z()); }
pcurves_secp256r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_E18_const_time_poisonEv:
 1174|     85|      constexpr void _const_time_poison() const { CT::poison_all(m_x, m_y, m_z); }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE18_const_time_poisonEv:
  889|    255|      constexpr void _const_time_poison() const { CT::poison(m_val); }
pcurves_secp256r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp256r15CurveELm7EE10get_windowEm:
 1353|  3.65k|      size_t get_window(size_t offset) const {
 1354|       |         // Extract a WindowBits sized window out of s, depending on offset.
 1355|  3.65k|         return read_window_bits<WindowBits>(std::span{m_bytes}, offset);
 1356|  3.65k|      }
pcurves_secp256r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_E10add_or_subERKSC_RKNS_16AffineCurvePointISB_EENS_2CT6ChoiceE:
 1096|  3.57k|      constexpr static Self add_or_sub(const Self& a, const AffinePoint& b, CT::Choice sub) {
 1097|  3.57k|         return point_add_or_sub_mixed<Self, AffinePoint, FieldElement>(a, b, sub, FieldElement::one());
 1098|  3.57k|      }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE18conditional_assignENS_2CT6ChoiceERKSA_:
  367|  3.57k|      constexpr void conditional_assign(CT::Choice cond, const Self& nx) {
  368|  3.57k|         const W mask = cond.into_bitmask<W>();
  369|       |
  370|  17.8k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (370:28): [True: 14.2k, False: 3.57k]
  ------------------
  371|  14.2k|            m_val[i] = Botan::choose(mask, nx.m_val[i], m_val[i]);
  372|  14.2k|         }
  373|  3.57k|      }
pcurves_secp256r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEEE9ct_selectENSt3__14spanIKSC_Lm18446744073709551615EEEm:
  955|  3.65k|      static constexpr auto ct_select(std::span<const Self> pts, size_t idx) {
  956|  3.65k|         auto result = Self::identity(pts[0]);
  957|       |
  958|       |         // Intentionally wrapping; set to maximum size_t if idx == 0
  959|  3.65k|         const size_t idx1 = static_cast<size_t>(idx - 1);
  960|   120k|         for(size_t i = 0; i != pts.size(); ++i) {
  ------------------
  |  Branch (960:28): [True: 116k, False: 3.65k]
  ------------------
  961|   116k|            const auto found = CT::Mask<size_t>::is_equal(idx1, i).as_choice();
  962|   116k|            result.conditional_assign(found, pts[i]);
  963|   116k|         }
  964|       |
  965|  3.65k|         return result;
  966|  3.65k|      }
pcurves_secp256r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEEE8identityERKSC_:
  924|  3.65k|      static constexpr Self identity(const Self& /*unused*/) {
  925|  3.65k|         return Self(FieldElement::zero(), FieldElement::zero());
  926|  3.65k|      }
pcurves_secp256r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEEE18conditional_assignENS_2CT6ChoiceERKSC_:
  981|   116k|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
  982|   116k|         FieldElement::conditional_assign(m_x, m_y, cond, pt.x(), pt.y());
  983|   116k|      }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE18conditional_assignERSA_SB_NS_2CT6ChoiceERKSA_SF_:
  380|   116k|      static constexpr void conditional_assign(Self& x, Self& y, CT::Choice cond, const Self& nx, const Self& ny) {
  381|   116k|         const W mask = cond.into_bitmask<W>();
  382|       |
  383|   584k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (383:28): [True: 467k, False: 116k]
  ------------------
  384|   467k|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  385|   467k|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  386|   467k|         }
  387|   116k|      }
pcurves_secp256r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_E13randomize_repERNS_21RandomNumberGeneratorE:
 1142|    340|      void randomize_rep(RandomNumberGenerator& rng) {
 1143|       |         // In certain contexts we may be called with a Null_RNG; in that case the
 1144|       |         // caller is accepting that randomization will not occur
 1145|       |
 1146|       |         // Conditional ok: caller's RNG state (seeded vs not) is presumed public
 1147|    340|         if(rng.is_seeded()) {
  ------------------
  |  Branch (1147:13): [True: 0, False: 340]
  ------------------
 1148|      0|            auto r = FieldElement::random(rng);
 1149|       |
 1150|      0|            auto r2 = r.square();
 1151|      0|            auto r3 = r2 * r;
 1152|       |
 1153|      0|            m_x *= r2;
 1154|      0|            m_y *= r3;
 1155|      0|            m_z *= r;
 1156|      0|         }
 1157|    340|      }
pcurves_secp256r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_E20_const_time_unpoisonEv:
 1176|     85|      constexpr void _const_time_unpoison() const { CT::unpoison_all(m_x, m_y, m_z); }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE20_const_time_unpoisonEv:
  891|    255|      constexpr void _const_time_unpoison() const { CT::unpoison(m_val); }
pcurves_secp256r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp256r15CurveELm7EED2Ev:
 1358|     85|      ~BlindedScalarBits() {
 1359|     85|         secure_zeroize_buffer(m_bytes.data(), m_bytes.size());
 1360|     85|         CT::unpoison(m_bytes.data(), m_bytes.size());
 1361|     85|      }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS4_12Secp256r1RepEE12ScalarParamsEEEE10from_stashILm9EEESB_RKNSt3__15arrayImXT_EEE:
  774|    255|      static Self from_stash(const std::array<W, L>& stash) {
  775|    255|         static_assert(L >= N);
  776|    255|         std::array<W, N> val = {};
  777|  1.27k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 1.02k, False: 255]
  ------------------
  778|  1.02k|            val[i] = stash[i];
  779|  1.02k|         }
  780|    255|         return Self(val);
  781|    255|      }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS4_12Secp256r1RepEE12ScalarParamsEEEEC2ENSt3__15arrayImLm4EEE:
  898|    341|      explicit constexpr IntMod(std::array<W, N> v) : m_val(v) {}
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE12serialize_toENSt3__14spanIhLm32EEE:
  739|    170|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    170|         auto v = Rep::from_rep(m_val);
  741|    170|         std::reverse(v.begin(), v.end());
  742|       |
  743|    170|         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|    170|            store_be(bytes, v);
  745|       |         } else {
  746|       |            // Remove leading zero bytes
  747|       |            const auto padded_bytes = store_be(v);
  748|       |            constexpr size_t extra = N * WordInfo<W>::bytes - Self::BYTES;
  749|       |            copy_mem(bytes, std::span{padded_bytes}.template subspan<extra, Self::BYTES>());
  750|       |         }
  751|    170|      }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS4_12Secp256r1RepEE12ScalarParamsEEEE11stash_valueILm9EEENSt3__15arrayImXT_EEEv:
  759|     85|      std::array<W, L> stash_value() const {
  760|     85|         static_assert(L >= N);
  761|     85|         std::array<W, L> stash = {};
  762|    425|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 340, False: 85]
  ------------------
  763|    340|            stash[i] = m_val[i];
  764|    340|         }
  765|     85|         return stash;
  766|     85|      }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE10from_stashILm9EEESA_RKNSt3__15arrayImXT_EEE:
  774|    595|      static Self from_stash(const std::array<W, L>& stash) {
  775|    595|         static_assert(L >= N);
  776|    595|         std::array<W, N> val = {};
  777|  2.97k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 2.38k, False: 595]
  ------------------
  778|  2.38k|            val[i] = stash[i];
  779|  2.38k|         }
  780|    595|         return Self(val);
  781|    595|      }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS4_12Secp256r1RepEE12ScalarParamsEEEE7is_zeroEv:
  225|    171|      constexpr CT::Choice is_zero() const { return CT::all_zeros(m_val.data(), m_val.size()).as_choice(); }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEEeqERKSA_:
  722|     85|      constexpr CT::Choice operator==(const Self& other) const {
  723|     85|         return CT::is_equal(this->data(), other.data(), N).as_choice();
  724|     85|      }
pcurves_secp256r1.cpp:_ZN5Botan13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS2_12Secp256r1RepEE7x3_ax_bERKNS_6IntModINS5_INS6_11FieldParamsEEEEE:
 1275|     85|      static constexpr FieldElement x3_ax_b(const FieldElement& x) { return (x.square() + A) * x + B; }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS4_12Secp256r1RepEE12ScalarParamsEEEE11deserializeENSt3__14spanIKhLm18446744073709551615EEE:
  792|     86|      static std::optional<Self> deserialize(std::span<const uint8_t> bytes) {
  793|       |         // Conditional ok: input length is public
  794|     86|         if(bytes.size() != Self::BYTES) {
  ------------------
  |  Branch (794:13): [True: 0, False: 86]
  ------------------
  795|      0|            return {};
  796|      0|         }
  797|       |
  798|     86|         const auto words = bytes_to_words<W, N, BYTES>(bytes.first<Self::BYTES>());
  799|       |
  800|       |         // Conditional acceptable: std::optional is implicitly not constant time
  801|     86|         if(!bigint_ct_is_lt(words.data(), N, P.data(), N).as_bool()) {
  ------------------
  |  Branch (801:13): [True: 0, False: 86]
  ------------------
  802|      0|            return {};
  803|      0|         }
  804|       |
  805|       |         // Safe because we checked above that words is an integer < P
  806|     86|         return Self::from_words(words);
  807|     86|      }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS4_12Secp256r1RepEE12ScalarParamsEEEE10from_wordsILm4EEESB_NSt3__15arrayImXT_EEE:
  211|     86|      static constexpr Self from_words(std::array<W, L> w) {
  212|     86|         if constexpr(L == N) {
  213|     86|            return Self(Rep::to_rep(w));
  214|       |         } else {
  215|       |            static_assert(L < N);
  216|       |            std::array<W, N> ew = {};
  217|       |            copy_mem(std::span{ew}.template first<L>(), w);
  218|       |            return Self(Rep::to_rep(ew));
  219|       |         }
  220|     86|      }
pcurves_secp256r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS3_12Secp256r1RepEE12ScalarParamsEE6to_repERKNSt3__15arrayImLm4EEE:
  115|     86|      constexpr static std::array<W, N> to_rep(const std::array<W, N>& x) {
  116|     86|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  117|     86|         comba_mul<N>(z.data(), x.data(), R2.data());
  118|     86|         return Self::redc(z);
  119|     86|      }
pcurves_secp256r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEEE12serialize_toENSt3__14spanIhLm65EEE:
  941|     85|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  942|     85|         BOTAN_STATE_CHECK(this->is_identity().as_bool() == false);
  ------------------
  |  |   51|     85|   do {                                                         \
  |  |   52|     85|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|     85|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 85]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|     85|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 85]
  |  |  ------------------
  ------------------
  943|     85|         BufferStuffer pack(bytes);
  944|     85|         pack.append(0x04);
  945|     85|         x().serialize_to(pack.next<FieldElement::BYTES>());
  946|     85|         y().serialize_to(pack.next<FieldElement::BYTES>());
  947|     85|         BOTAN_DEBUG_ASSERT(pack.full());
  ------------------
  |  |  130|     85|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|     85|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 85]
  |  |  ------------------
  ------------------
  948|     85|      }
pcurves_secp384r1.cpp:_ZN5Botan23PrecomputedBaseMulTableINS_6PCurve12_GLOBAL__N_19secp384r15CurveELm6EEC2ERKNS_16AffineCurvePointINS_6IntModINS2_12Secp384r1RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEEEE:
 1405|      1|            m_table(basemul_booth_setup<C, WindowBits>(p, BlindedScalar::Bits + 1)) {}
pcurves_secp384r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEES7_E11from_affineERKNS_16AffineCurvePointISB_EE:
 1016|    155|      static constexpr Self from_affine(const AffinePoint& pt) {
 1017|       |         /*
 1018|       |         * If the point is the identity element (x=0, y=0) then instead of
 1019|       |         * creating (x, y, 1) = (0, 0, 1) we want our projective identity
 1020|       |         * encoding of (0, 1, 0)
 1021|       |         *
 1022|       |         * Which we can achieve by a conditional swap of y and z if the
 1023|       |         * affine point is the identity.
 1024|       |         */
 1025|       |
 1026|    155|         auto x = pt.x();
 1027|    155|         auto y = pt.y();
 1028|    155|         auto z = FieldElement::one();
 1029|       |
 1030|    155|         FieldElement::conditional_swap(pt.is_identity(), y, z);
 1031|       |
 1032|    155|         return ProjectiveCurvePoint(x, y, z);
 1033|    155|      }
pcurves_secp384r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEEE1xEv:
  971|   351k|      constexpr const FieldElement& x() const { return m_x; }
pcurves_secp384r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEEE1yEv:
  976|   341k|      constexpr const FieldElement& y() const { return m_y; }
pcurves_secp384r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE3oneEv:
  200|  10.0k|      static constexpr Self one() { return Self(Rep::one()); }
pcurves_secp384r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEEC2ENSt3__15arrayImLm6EEE:
  898|   289k|      explicit constexpr IntMod(std::array<W, N> v) : m_val(v) {}
pcurves_secp384r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE16conditional_swapENS_2CT6ChoiceERSA_SD_:
  410|    155|      static constexpr void conditional_swap(CT::Choice cond, Self& x, Self& y) {
  411|    155|         const W mask = cond.into_bitmask<W>();
  412|       |
  413|  1.08k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (413:28): [True: 930, False: 155]
  ------------------
  414|    930|            auto nx = Botan::choose(mask, y.m_val[i], x.m_val[i]);
  415|    930|            auto ny = Botan::choose(mask, x.m_val[i], y.m_val[i]);
  416|    930|            x.m_val[i] = nx;
  417|    930|            y.m_val[i] = ny;
  418|    930|         }
  419|    155|      }
pcurves_secp384r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEEE11is_identityEv:
  928|  10.4k|      constexpr CT::Choice is_identity() const { return x().is_zero() && y().is_zero(); }
pcurves_secp384r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE7is_zeroEv:
  225|  57.2k|      constexpr CT::Choice is_zero() const { return CT::all_zeros(m_val.data(), m_val.size()).as_choice(); }
pcurves_secp384r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEES7_EC2ERKSB_SE_SE_:
 1056|  12.6k|            m_x(x), m_y(y), m_z(z) {}
pcurves_secp384r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEES7_E3dblEv:
 1121|  1.24k|      constexpr Self dbl() const {
 1122|  1.24k|         if constexpr(Self::A_is_minus_3) {
 1123|  1.24k|            return dbl_a_minus_3(*this);
 1124|       |         } else if constexpr(Self::A_is_zero) {
 1125|       |            return dbl_a_zero(*this);
 1126|       |         } else {
 1127|       |            return dbl_generic(*this, A);
 1128|       |         }
 1129|  1.24k|      }
pcurves_secp384r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEES7_E1zEv:
 1172|  70.4k|      constexpr const FieldElement& z() const { return m_z; }
pcurves_secp384r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE6squareEv:
  426|  42.0k|      constexpr BOTAN_FORCE_INLINE Self square() const {
  427|  42.0k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  428|  42.0k|         comba_sqr<N>(z.data(), this->data());
  429|  42.0k|         return Self(Rep::redc(z));
  430|  42.0k|      }
pcurves_secp384r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE4dataEv:
  896|   338k|      constexpr const W* data() const { return m_val.data(); }
pcurves_secp384r1.cpp:_ZN5BotanmlERKNS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEEESC_:
  346|   111k|      friend constexpr BOTAN_FORCE_INLINE Self operator*(const Self& a, const Self& b) {
  347|   111k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  348|   111k|         comba_mul<N>(z.data(), a.data(), b.data());
  349|   111k|         return Self(Rep::redc(z));
  350|   111k|      }
pcurves_secp384r1.cpp:_ZN5BotanmiERKNS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEEESC_:
  281|  70.6k|      friend constexpr BOTAN_FORCE_INLINE Self operator-(const Self& a, const Self& b) {
  282|  70.6k|         std::array<W, N> r;  // NOLINT(*-member-init)
  283|  70.6k|         W carry = 0;
  284|   494k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (284:28): [True: 424k, False: 70.6k]
  ------------------
  285|   424k|            r[i] = word_sub(a.m_val[i], b.m_val[i], &carry);
  286|   424k|         }
  287|       |
  288|  70.6k|         const auto mask = CT::Mask<W>::expand(carry).value();
  289|       |
  290|  70.6k|         carry = 0;
  291|       |
  292|   494k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (292:28): [True: 424k, False: 70.6k]
  ------------------
  293|   424k|            r[i] = word_add(r[i], P[i] & mask, &carry);
  294|   424k|         }
  295|       |
  296|  70.6k|         return Self(r);
  297|  70.6k|      }
pcurves_secp384r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEES7_E1xEv:
 1162|  40.6k|      constexpr const FieldElement& x() const { return m_x; }
pcurves_secp384r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE4mul3Ev:
  335|  1.24k|      constexpr inline Self mul3() const { return mul2() + (*this); }
pcurves_secp384r1.cpp:_ZN5BotanplERKNS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEEESC_:
  265|  13.9k|      friend constexpr BOTAN_FORCE_INLINE Self operator+(const Self& a, const Self& b) {
  266|  13.9k|         std::array<W, N> t;  // NOLINT(*-member-init)
  267|       |
  268|  13.9k|         W carry = 0;
  269|  97.9k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (269:28): [True: 83.9k, False: 13.9k]
  ------------------
  270|  83.9k|            t[i] = word_add(a.m_val[i], b.m_val[i], &carry);
  271|  83.9k|         }
  272|       |
  273|  13.9k|         std::array<W, N> r;  // NOLINT(*-member-init)
  274|  13.9k|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  275|  13.9k|         return Self(r);
  276|  13.9k|      }
pcurves_secp384r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEES7_E1yEv:
 1167|  39.3k|      constexpr const FieldElement& y() const { return m_y; }
pcurves_secp384r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE4mul4Ev:
  338|  1.24k|      constexpr inline Self mul4() const { return mul2().mul2(); }
pcurves_secp384r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE4mul2Ev:
  325|  9.92k|      constexpr BOTAN_FORCE_INLINE Self mul2() const {
  326|  9.92k|         std::array<W, N> t = value();
  327|  9.92k|         const W carry = shift_left<1>(t);
  328|       |
  329|  9.92k|         std::array<W, N> r;  // NOLINT(*-member-init)
  330|  9.92k|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  331|  9.92k|         return Self(r);
  332|  9.92k|      }
pcurves_secp384r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE5valueEv:
  894|  9.92k|      constexpr const std::array<W, N>& value() const { return m_val; }
pcurves_secp384r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE4mul8Ev:
  341|  1.24k|      constexpr inline Self mul8() const { return mul2().mul2().mul2(); }
pcurves_secp384r1.cpp:_ZN5BotanplERKNS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEES7_EESE_:
 1064|  1.09k|      friend constexpr Self operator+(const Self& a, const Self& b) { return Self::add(a, b); }
pcurves_secp384r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEES7_E3addERKSC_SE_:
 1103|  1.09k|      constexpr static Self add(const Self& a, const Self& b) { return point_add<Self, FieldElement>(a, b); }
pcurves_secp384r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEES7_E11is_identityEv:
 1082|  14.3k|      constexpr CT::Choice is_identity() const { return z().is_zero(); }
pcurves_secp384r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE18conditional_assignERSA_SB_SB_NS_2CT6ChoiceERKSA_SF_SF_:
  395|  22.0k|         Self& x, Self& y, Self& z, CT::Choice cond, const Self& nx, const Self& ny, const Self& nz) {
  396|  22.0k|         const W mask = cond.into_bitmask<W>();
  397|       |
  398|   154k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (398:28): [True: 132k, False: 22.0k]
  ------------------
  399|   132k|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  400|   132k|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  401|   132k|            z.m_val[i] = Botan::choose(mask, nz.m_val[i], z.m_val[i]);
  402|   132k|         }
  403|  22.0k|      }
pcurves_secp384r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEEmLERKSA_:
  355|  2.00k|      constexpr BOTAN_FORCE_INLINE Self& operator*=(const Self& other) {
  356|  2.00k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  357|  2.00k|         comba_mul<N>(z.data(), data(), other.data());
  358|  2.00k|         m_val = Rep::redc(z);
  359|  2.00k|         return (*this);
  360|  2.00k|      }
pcurves_secp384r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE8square_nEm:
  439|  1.84k|      constexpr void square_n(size_t n) {
  440|  1.84k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  441|  60.5k|         for(size_t i = 0; i != n; ++i) {
  ------------------
  |  Branch (441:28): [True: 58.6k, False: 1.84k]
  ------------------
  442|  58.6k|            comba_sqr<N>(z.data(), this->data());
  443|  58.6k|            m_val = Rep::redc(z);
  444|  58.6k|         }
  445|  1.84k|      }
pcurves_secp384r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE14invert_vartimeEv:
  598|      1|      constexpr Self invert_vartime() const {
  599|       |         // Conditional ok: this function is variable time
  600|      1|         if(this->is_zero().as_bool()) {
  ------------------
  |  Branch (600:13): [True: 0, False: 1]
  ------------------
  601|      0|            return Self::zero();
  602|      0|         }
  603|       |
  604|      1|         auto x = Self(std::array<W, N>{1});  // 1 in standard domain
  605|      1|         auto b = Self(this->to_words());     // *this in standard domain
  606|       |
  607|       |         // First loop iteration
  608|      1|         Self::_invert_vartime_div2_helper(b, x);
  609|       |
  610|      1|         auto a = b.negate();
  611|       |         // y += x but y is zero at the outset
  612|      1|         auto y = x;
  613|       |
  614|       |         // First half of second loop iteration
  615|      1|         Self::_invert_vartime_div2_helper(a, y);
  616|       |
  617|    252|         for(;;) {
  618|       |            // Conditional ok: this function is variable time
  619|    252|            if(a.m_val == b.m_val) {
  ------------------
  |  Branch (619:16): [True: 1, False: 251]
  ------------------
  620|       |               // At this point it should be that a == b == 1
  621|      1|               auto r = y.negate();
  622|       |
  623|       |               // Convert back to Montgomery if required
  624|      1|               r.m_val = Rep::to_rep(r.m_val);
  625|      1|               return r;
  626|      1|            }
  627|       |
  628|    251|            auto nx = x + y;
  629|       |
  630|       |            /*
  631|       |            * Otherwise either b > a or a > b
  632|       |            *
  633|       |            * If b > a we want to set b to b - a
  634|       |            * Otherwise we want to set a to a - b
  635|       |            *
  636|       |            * Compute r = b - a and check if it underflowed
  637|       |            * If it did not then we are in the b > a path
  638|       |            */
  639|    251|            std::array<W, N> r;  // NOLINT(*-member-init)
  640|    251|            const word carry = bigint_sub3(r.data(), b.data(), N, a.data(), N);
  641|       |
  642|       |            // Conditional ok: this function is variable time
  643|    251|            if(carry == 0) {
  ------------------
  |  Branch (643:16): [True: 118, False: 133]
  ------------------
  644|       |               // b > a
  645|    118|               b.m_val = r;
  646|    118|               x = nx;
  647|    118|               Self::_invert_vartime_div2_helper(b, x);
  648|    133|            } else {
  649|       |               // We know this can't underflow because a > b
  650|    133|               bigint_sub3(r.data(), a.data(), N, b.data(), N);
  651|    133|               a.m_val = r;
  652|    133|               y = nx;
  653|    133|               Self::_invert_vartime_div2_helper(a, y);
  654|    133|            }
  655|    251|         }
  656|      1|      }
pcurves_secp384r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE4zeroEv:
  195|  20.0k|      static constexpr Self zero() { return Self(std::array<W, N>{0}); }
pcurves_secp384r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE8to_wordsEv:
  734|      1|      constexpr std::array<W, Self::N> to_words() const { return Rep::from_rep(m_val); }
pcurves_secp384r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE27_invert_vartime_div2_helperERSA_SB_:
  547|    253|      static constexpr void _invert_vartime_div2_helper(Self& a, Self& x) {
  548|    253|         constexpr auto INV_2 = p_div_2_plus_1(Rep::P);
  549|       |
  550|       |         // Conditional ok: this function is variable time
  551|    809|         while((a.m_val[0] & 1) != 1) {
  ------------------
  |  Branch (551:16): [True: 556, False: 253]
  ------------------
  552|    556|            shift_right<1>(a.m_val);
  553|       |
  554|    556|            const W borrow = shift_right<1>(x.m_val);
  555|       |
  556|       |            // Conditional ok: this function is variable time
  557|    556|            if(borrow) {
  ------------------
  |  Branch (557:16): [True: 248, False: 308]
  ------------------
  558|    248|               bigint_add2(x.m_val.data(), N, INV_2.data(), N);
  559|    248|            }
  560|    556|         }
  561|    253|      }
pcurves_secp384r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE6negateEv:
  452|  10.0k|      constexpr Self negate() const {
  453|  10.0k|         const W x_is_zero = ~CT::all_zeros(this->data(), N).value();
  454|       |
  455|  10.0k|         std::array<W, N> r;  // NOLINT(*-member-init)
  456|  10.0k|         W carry = 0;
  457|  70.0k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (457:28): [True: 60.0k, False: 10.0k]
  ------------------
  458|  60.0k|            r[i] = word_sub(P[i] & x_is_zero, m_val[i], &carry);
  459|  60.0k|         }
  460|       |
  461|  10.0k|         return Self(r);
  462|  10.0k|      }
pcurves_secp384r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEEEC2ERKSB_SE_:
  917|  12.8k|      constexpr AffineCurvePoint(const FieldElement& x, const FieldElement& y) : m_x(x), m_y(y) {}
pcurves_secp384r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE11stash_valueILm9EEENSt3__15arrayImXT_EEEv:
  759|    770|      std::array<W, L> stash_value() const {
  760|    770|         static_assert(L >= N);
  761|    770|         std::array<W, L> stash = {};
  762|  5.39k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 4.62k, False: 770]
  ------------------
  763|  4.62k|            stash[i] = m_val[i];
  764|  4.62k|         }
  765|    770|         return stash;
  766|    770|      }
pcurves_secp384r1.cpp:_ZNK5Botan23PrecomputedBaseMulTableINS_6PCurve12_GLOBAL__N_19secp384r15CurveELm6EE3mulERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS2_12Secp384r1RepEE12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1407|    154|      ProjectivePoint mul(const Scalar& s, RandomNumberGenerator& rng) const {
 1408|    154|         const BlindedScalar scalar(s, rng);
 1409|    154|         return basemul_booth_exec<C, WindowBits>(m_table, scalar, rng);
 1410|    154|      }
pcurves_secp384r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp384r15CurveELm7EEC2ERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS2_12Secp384r1RepEE12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1307|    154|      BlindedScalarBits(const typename C::Scalar& scalar, RandomNumberGenerator& rng) {
 1308|    154|         if(BlindingBits > 0 && rng.is_seeded()) {
  ------------------
  |  Branch (1308:13): [True: 154, Folded]
  |  Branch (1308:33): [True: 0, False: 154]
  ------------------
 1309|      0|            constexpr size_t MaskWords = (BlindingBits + WordInfo<W>::bits - 1) / WordInfo<W>::bits;
 1310|      0|            constexpr size_t MaskBytes = MaskWords * WordInfo<W>::bytes;
 1311|       |
 1312|      0|            constexpr size_t n_words = C::Words;
 1313|       |
 1314|      0|            uint8_t maskb[MaskBytes + (BlindingBits == 0 ? 1 : 0)] = {0};
 1315|      0|            rng.randomize(maskb, MaskBytes);
 1316|       |
 1317|      0|            W mask[n_words] = {0};
 1318|      0|            load_le(mask, maskb, MaskWords);
 1319|       |
 1320|       |            // Mask to exactly BlindingBits
 1321|      0|            constexpr size_t ExcessBits = MaskWords * WordInfo<W>::bits - BlindingBits;
 1322|      0|            if constexpr(ExcessBits > 0) {
 1323|      0|               constexpr W ExcessMask = (static_cast<W>(1) << (WordInfo<W>::bits - ExcessBits)) - 1;
 1324|      0|               mask[MaskWords - 1] &= ExcessMask;
 1325|      0|            }
 1326|       |
 1327|       |            // Set top and bottom bits of mask
 1328|      0|            constexpr size_t TopMaskBit = (BlindingBits - 1) % WordInfo<W>::bits;
 1329|      0|            mask[(BlindingBits - 1) / WordInfo<W>::bits] |= static_cast<W>(1) << TopMaskBit;
 1330|      0|            mask[0] |= 1;
 1331|       |
 1332|      0|            W mask_n[2 * n_words] = {0};
 1333|       |
 1334|      0|            const auto sw = scalar.to_words();
 1335|       |
 1336|       |            // Compute masked scalar s + k*n
 1337|      0|            comba_mul<n_words>(mask_n, mask, C::NW.data());
 1338|      0|            bigint_add2(mask_n, 2 * n_words, sw.data(), sw.size());
 1339|       |
 1340|      0|            std::reverse(mask_n, mask_n + 2 * n_words);
 1341|      0|            m_bytes = store_be<std::vector<uint8_t>>(mask_n);
 1342|      0|            m_bits = C::Scalar::BITS + BlindingBits;
 1343|    154|         } else {
 1344|       |            // No RNG available, skip blinding
 1345|    154|            m_bytes.resize(C::Scalar::BYTES);
 1346|    154|            scalar.serialize_to(std::span{m_bytes}.template first<C::Scalar::BYTES>());
 1347|    154|            m_bits = C::Scalar::BITS;
 1348|    154|         }
 1349|       |
 1350|    154|         CT::poison(m_bytes.data(), m_bytes.size());
 1351|    154|      }
pcurves_secp384r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp384r16ParamsENS3_12Secp384r1RepEE12ScalarParamsEE8from_repERKNSt3__15arrayImLm6EEE:
  137|    361|      constexpr static std::array<W, N> from_rep(const std::array<W, N>& z) {
  138|    361|         std::array<W, 2 * N> ze = {};
  139|    361|         copy_mem(std::span{ze}.template first<N>(), z);
  140|    361|         return Self::redc(ze);
  141|    361|      }
pcurves_secp384r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp384r16ParamsENS3_12Secp384r1RepEE12ScalarParamsEE4redcERKNSt3__15arrayImLm12EEE:
  104|    569|      constexpr static std::array<W, N> redc(const std::array<W, 2 * N>& z) {
  105|       |         if constexpr(P_dash == 1) {
  106|       |            return monty_redc_pdash1(z, P);
  107|    569|         } else {
  108|    569|            return monty_redc(z, P, P_dash);
  109|    569|         }
  110|    569|      }
pcurves_secp384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp384r16ParamsENS4_12Secp384r1RepEE12ScalarParamsEEEE12serialize_toENSt3__14spanIhLm48EEE:
  739|    361|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    361|         auto v = Rep::from_rep(m_val);
  741|    361|         std::reverse(v.begin(), v.end());
  742|       |
  743|    361|         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|    361|            store_be(bytes, v);
  745|       |         } else {
  746|       |            // Remove leading zero bytes
  747|       |            const auto padded_bytes = store_be(v);
  748|       |            constexpr size_t extra = N * WordInfo<W>::bytes - Self::BYTES;
  749|       |            copy_mem(bytes, std::span{padded_bytes}.template subspan<extra, Self::BYTES>());
  750|       |         }
  751|    361|      }
pcurves_secp384r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp384r15CurveELm7EE4bitsEv:
 1305|    154|      size_t bits() const { return m_bits; }
pcurves_secp384r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEES7_E18conditional_assignENS_2CT6ChoiceERKSC_:
 1084|    154|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
 1085|    154|         FieldElement::conditional_assign(m_x, m_y, m_z, cond, pt.x(), pt.y(), pt.z());
 1086|    154|      }
pcurves_secp384r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEES7_E6negateEv:
 1134|    154|      constexpr Self negate() const { return Self(x(), y().negate(), z()); }
pcurves_secp384r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEES7_E18_const_time_poisonEv:
 1174|    154|      constexpr void _const_time_poison() const { CT::poison_all(m_x, m_y, m_z); }
pcurves_secp384r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE18_const_time_poisonEv:
  889|    462|      constexpr void _const_time_poison() const { CT::poison(m_val); }
pcurves_secp384r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp384r15CurveELm7EE10get_windowEm:
 1353|  10.0k|      size_t get_window(size_t offset) const {
 1354|       |         // Extract a WindowBits sized window out of s, depending on offset.
 1355|  10.0k|         return read_window_bits<WindowBits>(std::span{m_bytes}, offset);
 1356|  10.0k|      }
pcurves_secp384r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEES7_E10add_or_subERKSC_RKNS_16AffineCurvePointISB_EENS_2CT6ChoiceE:
 1096|  9.85k|      constexpr static Self add_or_sub(const Self& a, const AffinePoint& b, CT::Choice sub) {
 1097|  9.85k|         return point_add_or_sub_mixed<Self, AffinePoint, FieldElement>(a, b, sub, FieldElement::one());
 1098|  9.85k|      }
pcurves_secp384r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE18conditional_assignENS_2CT6ChoiceERKSA_:
  367|  9.85k|      constexpr void conditional_assign(CT::Choice cond, const Self& nx) {
  368|  9.85k|         const W mask = cond.into_bitmask<W>();
  369|       |
  370|  68.9k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (370:28): [True: 59.1k, False: 9.85k]
  ------------------
  371|  59.1k|            m_val[i] = Botan::choose(mask, nx.m_val[i], m_val[i]);
  372|  59.1k|         }
  373|  9.85k|      }
pcurves_secp384r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEEE9ct_selectENSt3__14spanIKSC_Lm18446744073709551615EEEm:
  955|  10.0k|      static constexpr auto ct_select(std::span<const Self> pts, size_t idx) {
  956|  10.0k|         auto result = Self::identity(pts[0]);
  957|       |
  958|       |         // Intentionally wrapping; set to maximum size_t if idx == 0
  959|  10.0k|         const size_t idx1 = static_cast<size_t>(idx - 1);
  960|   330k|         for(size_t i = 0; i != pts.size(); ++i) {
  ------------------
  |  Branch (960:28): [True: 320k, False: 10.0k]
  ------------------
  961|   320k|            const auto found = CT::Mask<size_t>::is_equal(idx1, i).as_choice();
  962|   320k|            result.conditional_assign(found, pts[i]);
  963|   320k|         }
  964|       |
  965|  10.0k|         return result;
  966|  10.0k|      }
pcurves_secp384r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEEE8identityERKSC_:
  924|  10.0k|      static constexpr Self identity(const Self& /*unused*/) {
  925|  10.0k|         return Self(FieldElement::zero(), FieldElement::zero());
  926|  10.0k|      }
pcurves_secp384r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEEE18conditional_assignENS_2CT6ChoiceERKSC_:
  981|   320k|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
  982|   320k|         FieldElement::conditional_assign(m_x, m_y, cond, pt.x(), pt.y());
  983|   320k|      }
pcurves_secp384r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE18conditional_assignERSA_SB_NS_2CT6ChoiceERKSA_SF_:
  380|   320k|      static constexpr void conditional_assign(Self& x, Self& y, CT::Choice cond, const Self& nx, const Self& ny) {
  381|   320k|         const W mask = cond.into_bitmask<W>();
  382|       |
  383|  2.24M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (383:28): [True: 1.92M, False: 320k]
  ------------------
  384|  1.92M|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  385|  1.92M|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  386|  1.92M|         }
  387|   320k|      }
pcurves_secp384r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEES7_E13randomize_repERNS_21RandomNumberGeneratorE:
 1142|    616|      void randomize_rep(RandomNumberGenerator& rng) {
 1143|       |         // In certain contexts we may be called with a Null_RNG; in that case the
 1144|       |         // caller is accepting that randomization will not occur
 1145|       |
 1146|       |         // Conditional ok: caller's RNG state (seeded vs not) is presumed public
 1147|    616|         if(rng.is_seeded()) {
  ------------------
  |  Branch (1147:13): [True: 0, False: 616]
  ------------------
 1148|      0|            auto r = FieldElement::random(rng);
 1149|       |
 1150|      0|            auto r2 = r.square();
 1151|      0|            auto r3 = r2 * r;
 1152|       |
 1153|      0|            m_x *= r2;
 1154|      0|            m_y *= r3;
 1155|      0|            m_z *= r;
 1156|      0|         }
 1157|    616|      }
pcurves_secp384r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEES7_E20_const_time_unpoisonEv:
 1176|    154|      constexpr void _const_time_unpoison() const { CT::unpoison_all(m_x, m_y, m_z); }
pcurves_secp384r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE20_const_time_unpoisonEv:
  891|    462|      constexpr void _const_time_unpoison() const { CT::unpoison(m_val); }
pcurves_secp384r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp384r15CurveELm7EED2Ev:
 1358|    154|      ~BlindedScalarBits() {
 1359|    154|         secure_zeroize_buffer(m_bytes.data(), m_bytes.size());
 1360|    154|         CT::unpoison(m_bytes.data(), m_bytes.size());
 1361|    154|      }
pcurves_secp384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp384r16ParamsENS4_12Secp384r1RepEE12ScalarParamsEEEE10from_stashILm9EEESB_RKNSt3__15arrayImXT_EEE:
  774|    568|      static Self from_stash(const std::array<W, L>& stash) {
  775|    568|         static_assert(L >= N);
  776|    568|         std::array<W, N> val = {};
  777|  3.97k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 3.40k, False: 568]
  ------------------
  778|  3.40k|            val[i] = stash[i];
  779|  3.40k|         }
  780|    568|         return Self(val);
  781|    568|      }
pcurves_secp384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp384r16ParamsENS4_12Secp384r1RepEE12ScalarParamsEEEEC2ENSt3__15arrayImLm6EEE:
  898|    776|      explicit constexpr IntMod(std::array<W, N> v) : m_val(v) {}
pcurves_secp384r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE12serialize_toENSt3__14spanIhLm48EEE:
  739|    308|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    308|         auto v = Rep::from_rep(m_val);
  741|    308|         std::reverse(v.begin(), v.end());
  742|       |
  743|    308|         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|    308|            store_be(bytes, v);
  745|       |         } else {
  746|       |            // Remove leading zero bytes
  747|       |            const auto padded_bytes = store_be(v);
  748|       |            constexpr size_t extra = N * WordInfo<W>::bytes - Self::BYTES;
  749|       |            copy_mem(bytes, std::span{padded_bytes}.template subspan<extra, Self::BYTES>());
  750|       |         }
  751|    308|      }
pcurves_secp384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp384r16ParamsENS4_12Secp384r1RepEE12ScalarParamsEEEE11stash_valueILm9EEENSt3__15arrayImXT_EEEv:
  759|    207|      std::array<W, L> stash_value() const {
  760|    207|         static_assert(L >= N);
  761|    207|         std::array<W, L> stash = {};
  762|  1.44k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 1.24k, False: 207]
  ------------------
  763|  1.24k|            stash[i] = m_val[i];
  764|  1.24k|         }
  765|    207|         return stash;
  766|    207|      }
pcurves_secp384r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE10from_stashILm9EEESA_RKNSt3__15arrayImXT_EEE:
  774|  1.07k|      static Self from_stash(const std::array<W, L>& stash) {
  775|  1.07k|         static_assert(L >= N);
  776|  1.07k|         std::array<W, N> val = {};
  777|  7.54k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 6.46k, False: 1.07k]
  ------------------
  778|  6.46k|            val[i] = stash[i];
  779|  6.46k|         }
  780|  1.07k|         return Self(val);
  781|  1.07k|      }
pcurves_secp384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp384r16ParamsENS4_12Secp384r1RepEE12ScalarParamsEEEE7is_zeroEv:
  225|    415|      constexpr CT::Choice is_zero() const { return CT::all_zeros(m_val.data(), m_val.size()).as_choice(); }
pcurves_secp384r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEEeqERKSA_:
  722|    154|      constexpr CT::Choice operator==(const Self& other) const {
  723|    154|         return CT::is_equal(this->data(), other.data(), N).as_choice();
  724|    154|      }
pcurves_secp384r1.cpp:_ZN5Botan13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp384r16ParamsENS2_12Secp384r1RepEE7x3_ax_bERKNS_6IntModINS5_INS6_11FieldParamsEEEEE:
 1275|    154|      static constexpr FieldElement x3_ax_b(const FieldElement& x) { return (x.square() + A) * x + B; }
pcurves_secp384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp384r16ParamsENS4_12Secp384r1RepEE12ScalarParamsEEEE11deserializeENSt3__14spanIKhLm18446744073709551615EEE:
  792|    208|      static std::optional<Self> deserialize(std::span<const uint8_t> bytes) {
  793|       |         // Conditional ok: input length is public
  794|    208|         if(bytes.size() != Self::BYTES) {
  ------------------
  |  Branch (794:13): [True: 0, False: 208]
  ------------------
  795|      0|            return {};
  796|      0|         }
  797|       |
  798|    208|         const auto words = bytes_to_words<W, N, BYTES>(bytes.first<Self::BYTES>());
  799|       |
  800|       |         // Conditional acceptable: std::optional is implicitly not constant time
  801|    208|         if(!bigint_ct_is_lt(words.data(), N, P.data(), N).as_bool()) {
  ------------------
  |  Branch (801:13): [True: 0, False: 208]
  ------------------
  802|      0|            return {};
  803|      0|         }
  804|       |
  805|       |         // Safe because we checked above that words is an integer < P
  806|    208|         return Self::from_words(words);
  807|    208|      }
pcurves_secp384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp384r16ParamsENS4_12Secp384r1RepEE12ScalarParamsEEEE10from_wordsILm6EEESB_NSt3__15arrayImXT_EEE:
  211|    208|      static constexpr Self from_words(std::array<W, L> w) {
  212|    208|         if constexpr(L == N) {
  213|    208|            return Self(Rep::to_rep(w));
  214|       |         } else {
  215|       |            static_assert(L < N);
  216|       |            std::array<W, N> ew = {};
  217|       |            copy_mem(std::span{ew}.template first<L>(), w);
  218|       |            return Self(Rep::to_rep(ew));
  219|       |         }
  220|    208|      }
pcurves_secp384r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp384r16ParamsENS3_12Secp384r1RepEE12ScalarParamsEE6to_repERKNSt3__15arrayImLm6EEE:
  115|    208|      constexpr static std::array<W, N> to_rep(const std::array<W, N>& x) {
  116|    208|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  117|    208|         comba_mul<N>(z.data(), x.data(), R2.data());
  118|    208|         return Self::redc(z);
  119|    208|      }
pcurves_secp384r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEEE12serialize_toENSt3__14spanIhLm97EEE:
  941|    154|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  942|    154|         BOTAN_STATE_CHECK(this->is_identity().as_bool() == false);
  ------------------
  |  |   51|    154|   do {                                                         \
  |  |   52|    154|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    154|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 154]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    154|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 154]
  |  |  ------------------
  ------------------
  943|    154|         BufferStuffer pack(bytes);
  944|    154|         pack.append(0x04);
  945|    154|         x().serialize_to(pack.next<FieldElement::BYTES>());
  946|    154|         y().serialize_to(pack.next<FieldElement::BYTES>());
  947|    154|         BOTAN_DEBUG_ASSERT(pack.full());
  ------------------
  |  |  130|    154|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    154|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 154]
  |  |  ------------------
  ------------------
  948|    154|      }
pcurves_secp521r1.cpp:_ZN5Botan23PrecomputedBaseMulTableINS_6PCurve12_GLOBAL__N_19secp521r15CurveELm6EEC2ERKNS_16AffineCurvePointINS_6IntModINS3_7P521RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEEEE:
 1405|      1|            m_table(basemul_booth_setup<C, WindowBits>(p, BlindedScalar::Bits + 1)) {}
pcurves_secp521r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E11from_affineERKNS_16AffineCurvePointISB_EE:
 1016|    177|      static constexpr Self from_affine(const AffinePoint& pt) {
 1017|       |         /*
 1018|       |         * If the point is the identity element (x=0, y=0) then instead of
 1019|       |         * creating (x, y, 1) = (0, 0, 1) we want our projective identity
 1020|       |         * encoding of (0, 1, 0)
 1021|       |         *
 1022|       |         * Which we can achieve by a conditional swap of y and z if the
 1023|       |         * affine point is the identity.
 1024|       |         */
 1025|       |
 1026|    177|         auto x = pt.x();
 1027|    177|         auto y = pt.y();
 1028|    177|         auto z = FieldElement::one();
 1029|       |
 1030|    177|         FieldElement::conditional_swap(pt.is_identity(), y, z);
 1031|       |
 1032|    177|         return ProjectiveCurvePoint(x, y, z);
 1033|    177|      }
pcurves_secp521r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE1xEv:
  971|   536k|      constexpr const FieldElement& x() const { return m_x; }
pcurves_secp521r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE1yEv:
  976|   521k|      constexpr const FieldElement& y() const { return m_y; }
pcurves_secp521r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE3oneEv:
  200|  15.3k|      static constexpr Self one() { return Self(Rep::one()); }
pcurves_secp521r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEC2ENSt3__15arrayImLm9EEE:
  898|   429k|      explicit constexpr IntMod(std::array<W, N> v) : m_val(v) {}
pcurves_secp521r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE16conditional_swapENS_2CT6ChoiceERSA_SD_:
  410|    177|      static constexpr void conditional_swap(CT::Choice cond, Self& x, Self& y) {
  411|    177|         const W mask = cond.into_bitmask<W>();
  412|       |
  413|  1.77k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (413:28): [True: 1.59k, False: 177]
  ------------------
  414|  1.59k|            auto nx = Botan::choose(mask, y.m_val[i], x.m_val[i]);
  415|  1.59k|            auto ny = Botan::choose(mask, x.m_val[i], y.m_val[i]);
  416|  1.59k|            x.m_val[i] = nx;
  417|  1.59k|            y.m_val[i] = ny;
  418|  1.59k|         }
  419|    177|      }
pcurves_secp521r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE11is_identityEv:
  928|  15.8k|      constexpr CT::Choice is_identity() const { return x().is_zero() && y().is_zero(); }
pcurves_secp521r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE7is_zeroEv:
  225|  86.0k|      constexpr CT::Choice is_zero() const { return CT::all_zeros(m_val.data(), m_val.size()).as_choice(); }
pcurves_secp521r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_EC2ERKSB_SE_SE_:
 1056|  18.7k|            m_x(x), m_y(y), m_z(z) {}
pcurves_secp521r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E3dblEv:
 1121|  1.64k|      constexpr Self dbl() const {
 1122|  1.64k|         if constexpr(Self::A_is_minus_3) {
 1123|  1.64k|            return dbl_a_minus_3(*this);
 1124|       |         } else if constexpr(Self::A_is_zero) {
 1125|       |            return dbl_a_zero(*this);
 1126|       |         } else {
 1127|       |            return dbl_generic(*this, A);
 1128|       |         }
 1129|  1.64k|      }
pcurves_secp521r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E1zEv:
 1172|   103k|      constexpr const FieldElement& z() const { return m_z; }
pcurves_secp521r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE6squareEv:
  426|  61.9k|      constexpr BOTAN_FORCE_INLINE Self square() const {
  427|  61.9k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  428|  61.9k|         comba_sqr<N>(z.data(), this->data());
  429|  61.9k|         return Self(Rep::redc(z));
  430|  61.9k|      }
pcurves_secp521r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE4dataEv:
  896|   503k|      constexpr const W* data() const { return m_val.data(); }
pcurves_secp521r1.cpp:_ZN5BotanmlERKNS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEESC_:
  346|   164k|      friend constexpr BOTAN_FORCE_INLINE Self operator*(const Self& a, const Self& b) {
  347|   164k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  348|   164k|         comba_mul<N>(z.data(), a.data(), b.data());
  349|   164k|         return Self(Rep::redc(z));
  350|   164k|      }
pcurves_secp521r1.cpp:_ZN5BotanmiERKNS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEESC_:
  281|   106k|      friend constexpr BOTAN_FORCE_INLINE Self operator-(const Self& a, const Self& b) {
  282|   106k|         std::array<W, N> r;  // NOLINT(*-member-init)
  283|   106k|         W carry = 0;
  284|  1.06M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (284:28): [True: 955k, False: 106k]
  ------------------
  285|   955k|            r[i] = word_sub(a.m_val[i], b.m_val[i], &carry);
  286|   955k|         }
  287|       |
  288|   106k|         const auto mask = CT::Mask<W>::expand(carry).value();
  289|       |
  290|   106k|         carry = 0;
  291|       |
  292|  1.06M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (292:28): [True: 955k, False: 106k]
  ------------------
  293|   955k|            r[i] = word_add(r[i], P[i] & mask, &carry);
  294|   955k|         }
  295|       |
  296|   106k|         return Self(r);
  297|   106k|      }
pcurves_secp521r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E1xEv:
 1162|  59.9k|      constexpr const FieldElement& x() const { return m_x; }
pcurves_secp521r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE4mul3Ev:
  335|  1.64k|      constexpr inline Self mul3() const { return mul2() + (*this); }
pcurves_secp521r1.cpp:_ZN5BotanplERKNS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEESC_:
  265|  20.7k|      friend constexpr BOTAN_FORCE_INLINE Self operator+(const Self& a, const Self& b) {
  266|  20.7k|         std::array<W, N> t;  // NOLINT(*-member-init)
  267|       |
  268|  20.7k|         W carry = 0;
  269|   207k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (269:28): [True: 186k, False: 20.7k]
  ------------------
  270|   186k|            t[i] = word_add(a.m_val[i], b.m_val[i], &carry);
  271|   186k|         }
  272|       |
  273|  20.7k|         std::array<W, N> r;  // NOLINT(*-member-init)
  274|  20.7k|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  275|  20.7k|         return Self(r);
  276|  20.7k|      }
pcurves_secp521r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E1yEv:
 1167|  58.3k|      constexpr const FieldElement& y() const { return m_y; }
pcurves_secp521r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE4mul4Ev:
  338|  1.64k|      constexpr inline Self mul4() const { return mul2().mul2(); }
pcurves_secp521r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE4mul2Ev:
  325|  13.1k|      constexpr BOTAN_FORCE_INLINE Self mul2() const {
  326|  13.1k|         std::array<W, N> t = value();
  327|  13.1k|         const W carry = shift_left<1>(t);
  328|       |
  329|  13.1k|         std::array<W, N> r;  // NOLINT(*-member-init)
  330|  13.1k|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  331|  13.1k|         return Self(r);
  332|  13.1k|      }
pcurves_secp521r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE5valueEv:
  894|  13.1k|      constexpr const std::array<W, N>& value() const { return m_val; }
pcurves_secp521r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE4mul8Ev:
  341|  1.64k|      constexpr inline Self mul8() const { return mul2().mul2().mul2(); }
pcurves_secp521r1.cpp:_ZN5BotanplERKNS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_EESE_:
 1064|  1.45k|      friend constexpr Self operator+(const Self& a, const Self& b) { return Self::add(a, b); }
pcurves_secp521r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E3addERKSC_SE_:
 1103|  1.45k|      constexpr static Self add(const Self& a, const Self& b) { return point_add<Self, FieldElement>(a, b); }
pcurves_secp521r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E11is_identityEv:
 1082|  21.1k|      constexpr CT::Choice is_identity() const { return z().is_zero(); }
pcurves_secp521r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE18conditional_assignERSA_SB_SB_NS_2CT6ChoiceERKSA_SF_SF_:
  395|  33.3k|         Self& x, Self& y, Self& z, CT::Choice cond, const Self& nx, const Self& ny, const Self& nz) {
  396|  33.3k|         const W mask = cond.into_bitmask<W>();
  397|       |
  398|   333k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (398:28): [True: 300k, False: 33.3k]
  ------------------
  399|   300k|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  400|   300k|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  401|   300k|            z.m_val[i] = Botan::choose(mask, nz.m_val[i], z.m_val[i]);
  402|   300k|         }
  403|  33.3k|      }
pcurves_secp521r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEmLERKSA_:
  355|  2.11k|      constexpr BOTAN_FORCE_INLINE Self& operator*=(const Self& other) {
  356|  2.11k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  357|  2.11k|         comba_mul<N>(z.data(), data(), other.data());
  358|  2.11k|         m_val = Rep::redc(z);
  359|  2.11k|         return (*this);
  360|  2.11k|      }
pcurves_secp521r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE8square_nEm:
  439|  1.93k|      constexpr void square_n(size_t n) {
  440|  1.93k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  441|  93.1k|         for(size_t i = 0; i != n; ++i) {
  ------------------
  |  Branch (441:28): [True: 91.1k, False: 1.93k]
  ------------------
  442|  91.1k|            comba_sqr<N>(z.data(), this->data());
  443|  91.1k|            m_val = Rep::redc(z);
  444|  91.1k|         }
  445|  1.93k|      }
pcurves_secp521r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE14invert_vartimeEv:
  598|      1|      constexpr Self invert_vartime() const {
  599|       |         // Conditional ok: this function is variable time
  600|      1|         if(this->is_zero().as_bool()) {
  ------------------
  |  Branch (600:13): [True: 0, False: 1]
  ------------------
  601|      0|            return Self::zero();
  602|      0|         }
  603|       |
  604|      1|         auto x = Self(std::array<W, N>{1});  // 1 in standard domain
  605|      1|         auto b = Self(this->to_words());     // *this in standard domain
  606|       |
  607|       |         // First loop iteration
  608|      1|         Self::_invert_vartime_div2_helper(b, x);
  609|       |
  610|      1|         auto a = b.negate();
  611|       |         // y += x but y is zero at the outset
  612|      1|         auto y = x;
  613|       |
  614|       |         // First half of second loop iteration
  615|      1|         Self::_invert_vartime_div2_helper(a, y);
  616|       |
  617|    350|         for(;;) {
  618|       |            // Conditional ok: this function is variable time
  619|    350|            if(a.m_val == b.m_val) {
  ------------------
  |  Branch (619:16): [True: 1, False: 349]
  ------------------
  620|       |               // At this point it should be that a == b == 1
  621|      1|               auto r = y.negate();
  622|       |
  623|       |               // Convert back to Montgomery if required
  624|      1|               r.m_val = Rep::to_rep(r.m_val);
  625|      1|               return r;
  626|      1|            }
  627|       |
  628|    349|            auto nx = x + y;
  629|       |
  630|       |            /*
  631|       |            * Otherwise either b > a or a > b
  632|       |            *
  633|       |            * If b > a we want to set b to b - a
  634|       |            * Otherwise we want to set a to a - b
  635|       |            *
  636|       |            * Compute r = b - a and check if it underflowed
  637|       |            * If it did not then we are in the b > a path
  638|       |            */
  639|    349|            std::array<W, N> r;  // NOLINT(*-member-init)
  640|    349|            const word carry = bigint_sub3(r.data(), b.data(), N, a.data(), N);
  641|       |
  642|       |            // Conditional ok: this function is variable time
  643|    349|            if(carry == 0) {
  ------------------
  |  Branch (643:16): [True: 170, False: 179]
  ------------------
  644|       |               // b > a
  645|    170|               b.m_val = r;
  646|    170|               x = nx;
  647|    170|               Self::_invert_vartime_div2_helper(b, x);
  648|    179|            } else {
  649|       |               // We know this can't underflow because a > b
  650|    179|               bigint_sub3(r.data(), a.data(), N, b.data(), N);
  651|    179|               a.m_val = r;
  652|    179|               y = nx;
  653|    179|               Self::_invert_vartime_div2_helper(a, y);
  654|    179|            }
  655|    349|         }
  656|      1|      }
pcurves_secp521r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE4zeroEv:
  195|  30.6k|      static constexpr Self zero() { return Self(std::array<W, N>{0}); }
pcurves_secp521r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE8to_wordsEv:
  734|      1|      constexpr std::array<W, Self::N> to_words() const { return Rep::from_rep(m_val); }
pcurves_secp521r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE27_invert_vartime_div2_helperERSA_SB_:
  547|    351|      static constexpr void _invert_vartime_div2_helper(Self& a, Self& x) {
  548|    351|         constexpr auto INV_2 = p_div_2_plus_1(Rep::P);
  549|       |
  550|       |         // Conditional ok: this function is variable time
  551|  1.09k|         while((a.m_val[0] & 1) != 1) {
  ------------------
  |  Branch (551:16): [True: 742, False: 351]
  ------------------
  552|    742|            shift_right<1>(a.m_val);
  553|       |
  554|    742|            const W borrow = shift_right<1>(x.m_val);
  555|       |
  556|       |            // Conditional ok: this function is variable time
  557|    742|            if(borrow) {
  ------------------
  |  Branch (557:16): [True: 109, False: 633]
  ------------------
  558|    109|               bigint_add2(x.m_val.data(), N, INV_2.data(), N);
  559|    109|            }
  560|    742|         }
  561|    351|      }
pcurves_secp521r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE6negateEv:
  452|  15.3k|      constexpr Self negate() const {
  453|  15.3k|         const W x_is_zero = ~CT::all_zeros(this->data(), N).value();
  454|       |
  455|  15.3k|         std::array<W, N> r;  // NOLINT(*-member-init)
  456|  15.3k|         W carry = 0;
  457|   153k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (457:28): [True: 137k, False: 15.3k]
  ------------------
  458|   137k|            r[i] = word_sub(P[i] & x_is_zero, m_val[i], &carry);
  459|   137k|         }
  460|       |
  461|  15.3k|         return Self(r);
  462|  15.3k|      }
pcurves_secp521r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEEC2ERKSB_SE_:
  917|  18.9k|      constexpr AffineCurvePoint(const FieldElement& x, const FieldElement& y) : m_x(x), m_y(y) {}
pcurves_secp521r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE11stash_valueILm9EEENSt3__15arrayImXT_EEEv:
  759|    882|      std::array<W, L> stash_value() const {
  760|    882|         static_assert(L >= N);
  761|    882|         std::array<W, L> stash = {};
  762|  8.82k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 7.93k, False: 882]
  ------------------
  763|  7.93k|            stash[i] = m_val[i];
  764|  7.93k|         }
  765|    882|         return stash;
  766|    882|      }
pcurves_secp521r1.cpp:_ZNK5Botan23PrecomputedBaseMulTableINS_6PCurve12_GLOBAL__N_19secp521r15CurveELm6EE3mulERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS3_7P521RepEE12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1407|    176|      ProjectivePoint mul(const Scalar& s, RandomNumberGenerator& rng) const {
 1408|    176|         const BlindedScalar scalar(s, rng);
 1409|    176|         return basemul_booth_exec<C, WindowBits>(m_table, scalar, rng);
 1410|    176|      }
pcurves_secp521r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp521r15CurveELm7EEC2ERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS3_7P521RepEE12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1307|    176|      BlindedScalarBits(const typename C::Scalar& scalar, RandomNumberGenerator& rng) {
 1308|    176|         if(BlindingBits > 0 && rng.is_seeded()) {
  ------------------
  |  Branch (1308:13): [True: 176, Folded]
  |  Branch (1308:33): [True: 0, False: 176]
  ------------------
 1309|      0|            constexpr size_t MaskWords = (BlindingBits + WordInfo<W>::bits - 1) / WordInfo<W>::bits;
 1310|      0|            constexpr size_t MaskBytes = MaskWords * WordInfo<W>::bytes;
 1311|       |
 1312|      0|            constexpr size_t n_words = C::Words;
 1313|       |
 1314|      0|            uint8_t maskb[MaskBytes + (BlindingBits == 0 ? 1 : 0)] = {0};
 1315|      0|            rng.randomize(maskb, MaskBytes);
 1316|       |
 1317|      0|            W mask[n_words] = {0};
 1318|      0|            load_le(mask, maskb, MaskWords);
 1319|       |
 1320|       |            // Mask to exactly BlindingBits
 1321|      0|            constexpr size_t ExcessBits = MaskWords * WordInfo<W>::bits - BlindingBits;
 1322|      0|            if constexpr(ExcessBits > 0) {
 1323|      0|               constexpr W ExcessMask = (static_cast<W>(1) << (WordInfo<W>::bits - ExcessBits)) - 1;
 1324|      0|               mask[MaskWords - 1] &= ExcessMask;
 1325|      0|            }
 1326|       |
 1327|       |            // Set top and bottom bits of mask
 1328|      0|            constexpr size_t TopMaskBit = (BlindingBits - 1) % WordInfo<W>::bits;
 1329|      0|            mask[(BlindingBits - 1) / WordInfo<W>::bits] |= static_cast<W>(1) << TopMaskBit;
 1330|      0|            mask[0] |= 1;
 1331|       |
 1332|      0|            W mask_n[2 * n_words] = {0};
 1333|       |
 1334|      0|            const auto sw = scalar.to_words();
 1335|       |
 1336|       |            // Compute masked scalar s + k*n
 1337|      0|            comba_mul<n_words>(mask_n, mask, C::NW.data());
 1338|      0|            bigint_add2(mask_n, 2 * n_words, sw.data(), sw.size());
 1339|       |
 1340|      0|            std::reverse(mask_n, mask_n + 2 * n_words);
 1341|      0|            m_bytes = store_be<std::vector<uint8_t>>(mask_n);
 1342|      0|            m_bits = C::Scalar::BITS + BlindingBits;
 1343|    176|         } else {
 1344|       |            // No RNG available, skip blinding
 1345|    176|            m_bytes.resize(C::Scalar::BYTES);
 1346|    176|            scalar.serialize_to(std::span{m_bytes}.template first<C::Scalar::BYTES>());
 1347|    176|            m_bits = C::Scalar::BITS;
 1348|    176|         }
 1349|       |
 1350|    176|         CT::poison(m_bytes.data(), m_bytes.size());
 1351|    176|      }
pcurves_secp521r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp521r16ParamsENS4_7P521RepEE12ScalarParamsEE8from_repERKNSt3__15arrayImLm9EEE:
  137|    462|      constexpr static std::array<W, N> from_rep(const std::array<W, N>& z) {
  138|    462|         std::array<W, 2 * N> ze = {};
  139|    462|         copy_mem(std::span{ze}.template first<N>(), z);
  140|    462|         return Self::redc(ze);
  141|    462|      }
pcurves_secp521r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp521r16ParamsENS4_7P521RepEE12ScalarParamsEE4redcERKNSt3__15arrayImLm18EEE:
  104|    749|      constexpr static std::array<W, N> redc(const std::array<W, 2 * N>& z) {
  105|       |         if constexpr(P_dash == 1) {
  106|       |            return monty_redc_pdash1(z, P);
  107|    749|         } else {
  108|    749|            return monty_redc(z, P, P_dash);
  109|    749|         }
  110|    749|      }
pcurves_secp521r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp521r16ParamsENS5_7P521RepEE12ScalarParamsEEEE12serialize_toENSt3__14spanIhLm66EEE:
  739|    462|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    462|         auto v = Rep::from_rep(m_val);
  741|    462|         std::reverse(v.begin(), v.end());
  742|       |
  743|       |         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|       |            store_be(bytes, v);
  745|    462|         } else {
  746|       |            // Remove leading zero bytes
  747|    462|            const auto padded_bytes = store_be(v);
  748|    462|            constexpr size_t extra = N * WordInfo<W>::bytes - Self::BYTES;
  749|    462|            copy_mem(bytes, std::span{padded_bytes}.template subspan<extra, Self::BYTES>());
  750|    462|         }
  751|    462|      }
pcurves_secp521r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp521r15CurveELm7EE4bitsEv:
 1305|    176|      size_t bits() const { return m_bits; }
pcurves_secp521r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E18conditional_assignENS_2CT6ChoiceERKSC_:
 1084|    176|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
 1085|    176|         FieldElement::conditional_assign(m_x, m_y, m_z, cond, pt.x(), pt.y(), pt.z());
 1086|    176|      }
pcurves_secp521r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E6negateEv:
 1134|    176|      constexpr Self negate() const { return Self(x(), y().negate(), z()); }
pcurves_secp521r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E18_const_time_poisonEv:
 1174|    176|      constexpr void _const_time_poison() const { CT::poison_all(m_x, m_y, m_z); }
pcurves_secp521r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE18_const_time_poisonEv:
  889|    528|      constexpr void _const_time_poison() const { CT::poison(m_val); }
pcurves_secp521r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp521r15CurveELm7EE10get_windowEm:
 1353|  15.3k|      size_t get_window(size_t offset) const {
 1354|       |         // Extract a WindowBits sized window out of s, depending on offset.
 1355|  15.3k|         return read_window_bits<WindowBits>(std::span{m_bytes}, offset);
 1356|  15.3k|      }
pcurves_secp521r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E10add_or_subERKSC_RKNS_16AffineCurvePointISB_EENS_2CT6ChoiceE:
 1096|  15.1k|      constexpr static Self add_or_sub(const Self& a, const AffinePoint& b, CT::Choice sub) {
 1097|  15.1k|         return point_add_or_sub_mixed<Self, AffinePoint, FieldElement>(a, b, sub, FieldElement::one());
 1098|  15.1k|      }
pcurves_secp521r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE18conditional_assignENS_2CT6ChoiceERKSA_:
  367|  15.1k|      constexpr void conditional_assign(CT::Choice cond, const Self& nx) {
  368|  15.1k|         const W mask = cond.into_bitmask<W>();
  369|       |
  370|   151k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (370:28): [True: 136k, False: 15.1k]
  ------------------
  371|   136k|            m_val[i] = Botan::choose(mask, nx.m_val[i], m_val[i]);
  372|   136k|         }
  373|  15.1k|      }
pcurves_secp521r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE9ct_selectENSt3__14spanIKSC_Lm18446744073709551615EEEm:
  955|  15.3k|      static constexpr auto ct_select(std::span<const Self> pts, size_t idx) {
  956|  15.3k|         auto result = Self::identity(pts[0]);
  957|       |
  958|       |         // Intentionally wrapping; set to maximum size_t if idx == 0
  959|  15.3k|         const size_t idx1 = static_cast<size_t>(idx - 1);
  960|   505k|         for(size_t i = 0; i != pts.size(); ++i) {
  ------------------
  |  Branch (960:28): [True: 489k, False: 15.3k]
  ------------------
  961|   489k|            const auto found = CT::Mask<size_t>::is_equal(idx1, i).as_choice();
  962|   489k|            result.conditional_assign(found, pts[i]);
  963|   489k|         }
  964|       |
  965|  15.3k|         return result;
  966|  15.3k|      }
pcurves_secp521r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE8identityERKSC_:
  924|  15.3k|      static constexpr Self identity(const Self& /*unused*/) {
  925|  15.3k|         return Self(FieldElement::zero(), FieldElement::zero());
  926|  15.3k|      }
pcurves_secp521r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE18conditional_assignENS_2CT6ChoiceERKSC_:
  981|   489k|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
  982|   489k|         FieldElement::conditional_assign(m_x, m_y, cond, pt.x(), pt.y());
  983|   489k|      }
pcurves_secp521r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE18conditional_assignERSA_SB_NS_2CT6ChoiceERKSA_SF_:
  380|   489k|      static constexpr void conditional_assign(Self& x, Self& y, CT::Choice cond, const Self& nx, const Self& ny) {
  381|   489k|         const W mask = cond.into_bitmask<W>();
  382|       |
  383|  4.89M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (383:28): [True: 4.40M, False: 489k]
  ------------------
  384|  4.40M|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  385|  4.40M|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  386|  4.40M|         }
  387|   489k|      }
pcurves_secp521r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E13randomize_repERNS_21RandomNumberGeneratorE:
 1142|    704|      void randomize_rep(RandomNumberGenerator& rng) {
 1143|       |         // In certain contexts we may be called with a Null_RNG; in that case the
 1144|       |         // caller is accepting that randomization will not occur
 1145|       |
 1146|       |         // Conditional ok: caller's RNG state (seeded vs not) is presumed public
 1147|    704|         if(rng.is_seeded()) {
  ------------------
  |  Branch (1147:13): [True: 0, False: 704]
  ------------------
 1148|      0|            auto r = FieldElement::random(rng);
 1149|       |
 1150|      0|            auto r2 = r.square();
 1151|      0|            auto r3 = r2 * r;
 1152|       |
 1153|      0|            m_x *= r2;
 1154|      0|            m_y *= r3;
 1155|      0|            m_z *= r;
 1156|      0|         }
 1157|    704|      }
pcurves_secp521r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE11deserializeENSt3__14spanIKhLm18446744073709551615EEE:
  792|    178|      static std::optional<Self> deserialize(std::span<const uint8_t> bytes) {
  793|       |         // Conditional ok: input length is public
  794|    178|         if(bytes.size() != Self::BYTES) {
  ------------------
  |  Branch (794:13): [True: 0, False: 178]
  ------------------
  795|      0|            return {};
  796|      0|         }
  797|       |
  798|    178|         const auto words = bytes_to_words<W, N, BYTES>(bytes.first<Self::BYTES>());
  799|       |
  800|       |         // Conditional acceptable: std::optional is implicitly not constant time
  801|    178|         if(!bigint_ct_is_lt(words.data(), N, P.data(), N).as_bool()) {
  ------------------
  |  Branch (801:13): [True: 14, False: 164]
  ------------------
  802|     14|            return {};
  803|     14|         }
  804|       |
  805|       |         // Safe because we checked above that words is an integer < P
  806|    164|         return Self::from_words(words);
  807|    178|      }
pcurves_secp521r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE10from_wordsILm9EEESA_NSt3__15arrayImXT_EEE:
  211|    164|      static constexpr Self from_words(std::array<W, L> w) {
  212|    164|         if constexpr(L == N) {
  213|    164|            return Self(Rep::to_rep(w));
  214|       |         } else {
  215|       |            static_assert(L < N);
  216|       |            std::array<W, N> ew = {};
  217|       |            copy_mem(std::span{ew}.template first<L>(), w);
  218|       |            return Self(Rep::to_rep(ew));
  219|       |         }
  220|    164|      }
pcurves_secp521r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E20_const_time_unpoisonEv:
 1176|    176|      constexpr void _const_time_unpoison() const { CT::unpoison_all(m_x, m_y, m_z); }
pcurves_secp521r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE20_const_time_unpoisonEv:
  891|    528|      constexpr void _const_time_unpoison() const { CT::unpoison(m_val); }
pcurves_secp521r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp521r15CurveELm7EED2Ev:
 1358|    176|      ~BlindedScalarBits() {
 1359|    176|         secure_zeroize_buffer(m_bytes.data(), m_bytes.size());
 1360|    176|         CT::unpoison(m_bytes.data(), m_bytes.size());
 1361|    176|      }
pcurves_secp521r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp521r16ParamsENS5_7P521RepEE12ScalarParamsEEEE10from_stashILm9EEESB_RKNSt3__15arrayImXT_EEE:
  774|    748|      static Self from_stash(const std::array<W, L>& stash) {
  775|    748|         static_assert(L >= N);
  776|    748|         std::array<W, N> val = {};
  777|  7.48k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 6.73k, False: 748]
  ------------------
  778|  6.73k|            val[i] = stash[i];
  779|  6.73k|         }
  780|    748|         return Self(val);
  781|    748|      }
pcurves_secp521r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp521r16ParamsENS5_7P521RepEE12ScalarParamsEEEEC2ENSt3__15arrayImLm9EEE:
  898|  1.03k|      explicit constexpr IntMod(std::array<W, N> v) : m_val(v) {}
pcurves_secp521r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE12serialize_toENSt3__14spanIhLm66EEE:
  739|    354|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    354|         auto v = Rep::from_rep(m_val);
  741|    354|         std::reverse(v.begin(), v.end());
  742|       |
  743|       |         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|       |            store_be(bytes, v);
  745|    354|         } else {
  746|       |            // Remove leading zero bytes
  747|    354|            const auto padded_bytes = store_be(v);
  748|    354|            constexpr size_t extra = N * WordInfo<W>::bytes - Self::BYTES;
  749|    354|            copy_mem(bytes, std::span{padded_bytes}.template subspan<extra, Self::BYTES>());
  750|    354|         }
  751|    354|      }
pcurves_secp521r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp521r16ParamsENS5_7P521RepEE12ScalarParamsEEEE11stash_valueILm9EEENSt3__15arrayImXT_EEEv:
  759|    286|      std::array<W, L> stash_value() const {
  760|    286|         static_assert(L >= N);
  761|    286|         std::array<W, L> stash = {};
  762|  2.86k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 2.57k, False: 286]
  ------------------
  763|  2.57k|            stash[i] = m_val[i];
  764|  2.57k|         }
  765|    286|         return stash;
  766|    286|      }
pcurves_secp521r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE10from_stashILm9EEESA_RKNSt3__15arrayImXT_EEE:
  774|  1.23k|      static Self from_stash(const std::array<W, L>& stash) {
  775|  1.23k|         static_assert(L >= N);
  776|  1.23k|         std::array<W, N> val = {};
  777|  12.3k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 11.1k, False: 1.23k]
  ------------------
  778|  11.1k|            val[i] = stash[i];
  779|  11.1k|         }
  780|  1.23k|         return Self(val);
  781|  1.23k|      }
pcurves_secp521r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp521r16ParamsENS5_7P521RepEE12ScalarParamsEEEE7is_zeroEv:
  225|    573|      constexpr CT::Choice is_zero() const { return CT::all_zeros(m_val.data(), m_val.size()).as_choice(); }
pcurves_secp521r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEeqERKSA_:
  722|    255|      constexpr CT::Choice operator==(const Self& other) const {
  723|    255|         return CT::is_equal(this->data(), other.data(), N).as_choice();
  724|    255|      }
pcurves_secp521r1.cpp:_ZN5Botan13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp521r16ParamsENS3_7P521RepEE7x3_ax_bERKNS_6IntModINS5_INS6_11FieldParamsEEEEE:
 1275|    255|      static constexpr FieldElement x3_ax_b(const FieldElement& x) { return (x.square() + A) * x + B; }
pcurves_secp521r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp521r16ParamsENS5_7P521RepEE12ScalarParamsEEEE11deserializeENSt3__14spanIKhLm18446744073709551615EEE:
  792|    289|      static std::optional<Self> deserialize(std::span<const uint8_t> bytes) {
  793|       |         // Conditional ok: input length is public
  794|    289|         if(bytes.size() != Self::BYTES) {
  ------------------
  |  Branch (794:13): [True: 0, False: 289]
  ------------------
  795|      0|            return {};
  796|      0|         }
  797|       |
  798|    289|         const auto words = bytes_to_words<W, N, BYTES>(bytes.first<Self::BYTES>());
  799|       |
  800|       |         // Conditional acceptable: std::optional is implicitly not constant time
  801|    289|         if(!bigint_ct_is_lt(words.data(), N, P.data(), N).as_bool()) {
  ------------------
  |  Branch (801:13): [True: 2, False: 287]
  ------------------
  802|      2|            return {};
  803|      2|         }
  804|       |
  805|       |         // Safe because we checked above that words is an integer < P
  806|    287|         return Self::from_words(words);
  807|    289|      }
pcurves_secp521r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp521r16ParamsENS5_7P521RepEE12ScalarParamsEEEE10from_wordsILm9EEESB_NSt3__15arrayImXT_EEE:
  211|    287|      static constexpr Self from_words(std::array<W, L> w) {
  212|    287|         if constexpr(L == N) {
  213|    287|            return Self(Rep::to_rep(w));
  214|       |         } else {
  215|       |            static_assert(L < N);
  216|       |            std::array<W, N> ew = {};
  217|       |            copy_mem(std::span{ew}.template first<L>(), w);
  218|       |            return Self(Rep::to_rep(ew));
  219|       |         }
  220|    287|      }
pcurves_secp521r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp521r16ParamsENS4_7P521RepEE12ScalarParamsEE6to_repERKNSt3__15arrayImLm9EEE:
  115|    287|      constexpr static std::array<W, N> to_rep(const std::array<W, N>& x) {
  116|    287|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  117|    287|         comba_mul<N>(z.data(), x.data(), R2.data());
  118|    287|         return Self::redc(z);
  119|    287|      }
pcurves_secp521r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE12serialize_toENSt3__14spanIhLm133EEE:
  941|    177|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  942|    177|         BOTAN_STATE_CHECK(this->is_identity().as_bool() == false);
  ------------------
  |  |   51|    177|   do {                                                         \
  |  |   52|    177|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    177|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 177]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    177|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 177]
  |  |  ------------------
  ------------------
  943|    177|         BufferStuffer pack(bytes);
  944|    177|         pack.append(0x04);
  945|    177|         x().serialize_to(pack.next<FieldElement::BYTES>());
  946|    177|         y().serialize_to(pack.next<FieldElement::BYTES>());
  947|    177|         BOTAN_DEBUG_ASSERT(pack.full());
  ------------------
  |  |  130|    177|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    177|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 177]
  |  |  ------------------
  ------------------
  948|    177|      }

pcurves_brainpool256r1.cpp:_ZN5Botan19basemul_booth_setupINS_6PCurve12_GLOBAL__N_114brainpool256r15CurveELm6EEENSt3__16vectorINT_11AffinePointENS5_9allocatorIS8_EEEERKS8_m:
  254|      1|std::vector<typename C::AffinePoint> basemul_booth_setup(const typename C::AffinePoint& p, size_t max_scalar_bits) {
  255|      1|   static_assert(WindowBits >= 1 && WindowBits <= 8);
  256|       |
  257|       |   // 2^(W-1) elements per window [1*base .. 2^(W-1)*base]
  258|      1|   constexpr size_t WindowElements = 1 << (WindowBits - 1);
  259|       |
  260|      1|   const size_t Windows = (max_scalar_bits + WindowBits - 1) / WindowBits;
  261|       |
  262|      1|   const size_t TableSize = Windows * WindowElements;
  263|       |
  264|      1|   std::vector<typename C::ProjectivePoint> table;
  265|      1|   table.reserve(TableSize);
  266|       |
  267|      1|   auto accum = C::ProjectivePoint::from_affine(p);
  268|       |
  269|     50|   for(size_t i = 0; i != TableSize; i += WindowElements) {
  ------------------
  |  Branch (269:22): [True: 49, False: 1]
  ------------------
  270|     49|      table.push_back(accum);
  271|       |
  272|  1.56k|      for(size_t j = 1; j != WindowElements; ++j) {
  ------------------
  |  Branch (272:25): [True: 1.51k, False: 49]
  ------------------
  273|       |         // Conditional ok: loop iteration count is public
  274|  1.51k|         if(j % 2 == 1) {
  ------------------
  |  Branch (274:13): [True: 784, False: 735]
  ------------------
  275|    784|            table.emplace_back(table[i + j / 2].dbl());
  276|    784|         } else {
  277|    735|            table.emplace_back(table[i + j - 1] + table[i]);
  278|    735|         }
  279|  1.51k|      }
  280|       |
  281|       |      // Advance to next window's base: 2^W * current_base
  282|       |      // The last entry is 2^(W-1) * base, so doubling gives 2^W * base
  283|     49|      accum = table[i + WindowElements - 1].dbl();
  284|     49|   }
  285|       |
  286|       |   // Variable time batch conversion is fine since generator is public
  287|      1|   return to_affine_batch<C, true>(table);
  288|      1|}
pcurves_brainpool256r1.cpp:_ZN5Botan18basemul_booth_execINS_6PCurve12_GLOBAL__N_114brainpool256r15CurveELm6ENS_17BlindedScalarBitsIS4_Lm7EEEEENT_15ProjectivePointENSt3__14spanIKNS7_11AffinePointELm18446744073709551615EEERKT1_RNS_21RandomNumberGeneratorE:
  308|    164|                                               RandomNumberGenerator& rng) {
  309|    164|   static constexpr size_t WindowElements = 1 << (WindowBits - 1);
  310|       |
  311|    164|   const size_t windows = (scalar.bits() + WindowBits) / WindowBits;
  312|       |
  313|    164|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    164|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    164|      const size_t raw = w_bits << 1;
  317|    164|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    164|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    164|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    164|      pt.conditional_assign(tneg, pt.negate());
  322|    164|      CT::poison(pt);
  323|    164|      pt.randomize_rep(rng);
  324|    164|      return pt;
  325|    164|   }();
  326|       |
  327|  7.05k|   for(size_t i = 1; i != windows; ++i) {
  ------------------
  |  Branch (327:22): [True: 6.88k, False: 164]
  ------------------
  328|       |      // Extract W+1 bits overlapping by 1 with the previous window
  329|  6.88k|      const size_t bit_pos = WindowBits * i - 1;
  330|  6.88k|      const size_t raw = scalar.get_window(bit_pos);
  331|  6.88k|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  332|       |
  333|  6.88k|      const auto tbl_i = table.subspan(WindowElements * i, WindowElements);
  334|       |
  335|  6.88k|      accum = C::ProjectivePoint::add_or_sub(accum, C::AffinePoint::ct_select(tbl_i, tidx), tneg);
  336|       |
  337|       |      // Conditional ok: loop iteration count is public
  338|  6.88k|      if(i <= 3) {
  ------------------
  |  Branch (338:10): [True: 492, False: 6.39k]
  ------------------
  339|    492|         accum.randomize_rep(rng);
  340|    492|      }
  341|  6.88k|   }
  342|       |
  343|    164|   CT::unpoison(accum);
  344|    164|   return accum;
  345|    164|}
pcurves_brainpool256r1.cpp:_ZZN5Botan18basemul_booth_execINS_6PCurve12_GLOBAL__N_114brainpool256r15CurveELm6ENS_17BlindedScalarBitsIS4_Lm7EEEEENT_15ProjectivePointENSt3__14spanIKNS7_11AffinePointELm18446744073709551615EEERKT1_RNS_21RandomNumberGeneratorEENKUlvE_clEv:
  313|    164|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    164|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    164|      const size_t raw = w_bits << 1;
  317|    164|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    164|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    164|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    164|      pt.conditional_assign(tneg, pt.negate());
  322|    164|      CT::poison(pt);
  323|    164|      pt.randomize_rep(rng);
  324|    164|      return pt;
  325|    164|   }();
_ZN5Botan12booth_recodeILm6ETkNSt3__117unsigned_integralEmEENS1_4pairImNS_2CT6ChoiceEEET0_:
  294|  84.1k|constexpr std::pair<size_t, CT::Choice> booth_recode(T x) {
  295|  84.1k|   static_assert(WindowBits >= 1 && WindowBits <= 8);
  296|       |
  297|  84.1k|   auto s_mask = CT::Mask<T>::expand(x >> WindowBits);
  298|  84.1k|   const T neg_x = (1 << (WindowBits + 1)) - x - 1;
  299|  84.1k|   T d = s_mask.select(neg_x, x);
  300|  84.1k|   d = (d >> 1) + (d & 1);
  301|       |
  302|  84.1k|   return std::make_pair(static_cast<size_t>(d), s_mask.as_choice());
  303|  84.1k|}
_ZN5Botan20scalar_blinding_bitsEm:
   41|    590|constexpr size_t scalar_blinding_bits(size_t scalar_bits) {
   42|       |   // For blinding use 1/8 the order length for most curves; for P-521 we round down a bit
   43|       |   // so the masked scalar fits exactly in 9 or 18 words.
   44|       |
   45|    590|   if(scalar_bits == 521) {
  ------------------
  |  Branch (45:7): [True: 17, False: 573]
  ------------------
   46|     17|      return 55;
   47|    573|   } else {
   48|    573|      return scalar_bits / 8;
   49|    573|   }
   50|    590|}
pcurves_brainpool384r1.cpp:_ZN5Botan19basemul_booth_setupINS_6PCurve12_GLOBAL__N_114brainpool384r15CurveELm6EEENSt3__16vectorINT_11AffinePointENS5_9allocatorIS8_EEEERKS8_m:
  254|      1|std::vector<typename C::AffinePoint> basemul_booth_setup(const typename C::AffinePoint& p, size_t max_scalar_bits) {
  255|      1|   static_assert(WindowBits >= 1 && WindowBits <= 8);
  256|       |
  257|       |   // 2^(W-1) elements per window [1*base .. 2^(W-1)*base]
  258|      1|   constexpr size_t WindowElements = 1 << (WindowBits - 1);
  259|       |
  260|      1|   const size_t Windows = (max_scalar_bits + WindowBits - 1) / WindowBits;
  261|       |
  262|      1|   const size_t TableSize = Windows * WindowElements;
  263|       |
  264|      1|   std::vector<typename C::ProjectivePoint> table;
  265|      1|   table.reserve(TableSize);
  266|       |
  267|      1|   auto accum = C::ProjectivePoint::from_affine(p);
  268|       |
  269|     74|   for(size_t i = 0; i != TableSize; i += WindowElements) {
  ------------------
  |  Branch (269:22): [True: 73, False: 1]
  ------------------
  270|     73|      table.push_back(accum);
  271|       |
  272|  2.33k|      for(size_t j = 1; j != WindowElements; ++j) {
  ------------------
  |  Branch (272:25): [True: 2.26k, False: 73]
  ------------------
  273|       |         // Conditional ok: loop iteration count is public
  274|  2.26k|         if(j % 2 == 1) {
  ------------------
  |  Branch (274:13): [True: 1.16k, False: 1.09k]
  ------------------
  275|  1.16k|            table.emplace_back(table[i + j / 2].dbl());
  276|  1.16k|         } else {
  277|  1.09k|            table.emplace_back(table[i + j - 1] + table[i]);
  278|  1.09k|         }
  279|  2.26k|      }
  280|       |
  281|       |      // Advance to next window's base: 2^W * current_base
  282|       |      // The last entry is 2^(W-1) * base, so doubling gives 2^W * base
  283|     73|      accum = table[i + WindowElements - 1].dbl();
  284|     73|   }
  285|       |
  286|       |   // Variable time batch conversion is fine since generator is public
  287|      1|   return to_affine_batch<C, true>(table);
  288|      1|}
pcurves_brainpool384r1.cpp:_ZN5Botan18basemul_booth_execINS_6PCurve12_GLOBAL__N_114brainpool384r15CurveELm6ENS_17BlindedScalarBitsIS4_Lm7EEEEENT_15ProjectivePointENSt3__14spanIKNS7_11AffinePointELm18446744073709551615EEERKT1_RNS_21RandomNumberGeneratorE:
  308|    146|                                               RandomNumberGenerator& rng) {
  309|    146|   static constexpr size_t WindowElements = 1 << (WindowBits - 1);
  310|       |
  311|    146|   const size_t windows = (scalar.bits() + WindowBits) / WindowBits;
  312|       |
  313|    146|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    146|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    146|      const size_t raw = w_bits << 1;
  317|    146|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    146|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    146|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    146|      pt.conditional_assign(tneg, pt.negate());
  322|    146|      CT::poison(pt);
  323|    146|      pt.randomize_rep(rng);
  324|    146|      return pt;
  325|    146|   }();
  326|       |
  327|  9.49k|   for(size_t i = 1; i != windows; ++i) {
  ------------------
  |  Branch (327:22): [True: 9.34k, False: 146]
  ------------------
  328|       |      // Extract W+1 bits overlapping by 1 with the previous window
  329|  9.34k|      const size_t bit_pos = WindowBits * i - 1;
  330|  9.34k|      const size_t raw = scalar.get_window(bit_pos);
  331|  9.34k|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  332|       |
  333|  9.34k|      const auto tbl_i = table.subspan(WindowElements * i, WindowElements);
  334|       |
  335|  9.34k|      accum = C::ProjectivePoint::add_or_sub(accum, C::AffinePoint::ct_select(tbl_i, tidx), tneg);
  336|       |
  337|       |      // Conditional ok: loop iteration count is public
  338|  9.34k|      if(i <= 3) {
  ------------------
  |  Branch (338:10): [True: 438, False: 8.90k]
  ------------------
  339|    438|         accum.randomize_rep(rng);
  340|    438|      }
  341|  9.34k|   }
  342|       |
  343|    146|   CT::unpoison(accum);
  344|    146|   return accum;
  345|    146|}
pcurves_brainpool384r1.cpp:_ZZN5Botan18basemul_booth_execINS_6PCurve12_GLOBAL__N_114brainpool384r15CurveELm6ENS_17BlindedScalarBitsIS4_Lm7EEEEENT_15ProjectivePointENSt3__14spanIKNS7_11AffinePointELm18446744073709551615EEERKT1_RNS_21RandomNumberGeneratorEENKUlvE_clEv:
  313|    146|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    146|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    146|      const size_t raw = w_bits << 1;
  317|    146|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    146|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    146|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    146|      pt.conditional_assign(tneg, pt.negate());
  322|    146|      CT::poison(pt);
  323|    146|      pt.randomize_rep(rng);
  324|    146|      return pt;
  325|    146|   }();
pcurves_brainpool512r1.cpp:_ZN5Botan19basemul_booth_setupINS_6PCurve12_GLOBAL__N_114brainpool512r15CurveELm6EEENSt3__16vectorINT_11AffinePointENS5_9allocatorIS8_EEEERKS8_m:
  254|      1|std::vector<typename C::AffinePoint> basemul_booth_setup(const typename C::AffinePoint& p, size_t max_scalar_bits) {
  255|      1|   static_assert(WindowBits >= 1 && WindowBits <= 8);
  256|       |
  257|       |   // 2^(W-1) elements per window [1*base .. 2^(W-1)*base]
  258|      1|   constexpr size_t WindowElements = 1 << (WindowBits - 1);
  259|       |
  260|      1|   const size_t Windows = (max_scalar_bits + WindowBits - 1) / WindowBits;
  261|       |
  262|      1|   const size_t TableSize = Windows * WindowElements;
  263|       |
  264|      1|   std::vector<typename C::ProjectivePoint> table;
  265|      1|   table.reserve(TableSize);
  266|       |
  267|      1|   auto accum = C::ProjectivePoint::from_affine(p);
  268|       |
  269|     98|   for(size_t i = 0; i != TableSize; i += WindowElements) {
  ------------------
  |  Branch (269:22): [True: 97, False: 1]
  ------------------
  270|     97|      table.push_back(accum);
  271|       |
  272|  3.10k|      for(size_t j = 1; j != WindowElements; ++j) {
  ------------------
  |  Branch (272:25): [True: 3.00k, False: 97]
  ------------------
  273|       |         // Conditional ok: loop iteration count is public
  274|  3.00k|         if(j % 2 == 1) {
  ------------------
  |  Branch (274:13): [True: 1.55k, False: 1.45k]
  ------------------
  275|  1.55k|            table.emplace_back(table[i + j / 2].dbl());
  276|  1.55k|         } else {
  277|  1.45k|            table.emplace_back(table[i + j - 1] + table[i]);
  278|  1.45k|         }
  279|  3.00k|      }
  280|       |
  281|       |      // Advance to next window's base: 2^W * current_base
  282|       |      // The last entry is 2^(W-1) * base, so doubling gives 2^W * base
  283|     97|      accum = table[i + WindowElements - 1].dbl();
  284|     97|   }
  285|       |
  286|       |   // Variable time batch conversion is fine since generator is public
  287|      1|   return to_affine_batch<C, true>(table);
  288|      1|}
pcurves_brainpool512r1.cpp:_ZN5Botan18basemul_booth_execINS_6PCurve12_GLOBAL__N_114brainpool512r15CurveELm6ENS_17BlindedScalarBitsIS4_Lm7EEEEENT_15ProjectivePointENSt3__14spanIKNS7_11AffinePointELm18446744073709551615EEERKT1_RNS_21RandomNumberGeneratorE:
  308|    171|                                               RandomNumberGenerator& rng) {
  309|    171|   static constexpr size_t WindowElements = 1 << (WindowBits - 1);
  310|       |
  311|    171|   const size_t windows = (scalar.bits() + WindowBits) / WindowBits;
  312|       |
  313|    171|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    171|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    171|      const size_t raw = w_bits << 1;
  317|    171|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    171|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    171|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    171|      pt.conditional_assign(tneg, pt.negate());
  322|    171|      CT::poison(pt);
  323|    171|      pt.randomize_rep(rng);
  324|    171|      return pt;
  325|    171|   }();
  326|       |
  327|  14.7k|   for(size_t i = 1; i != windows; ++i) {
  ------------------
  |  Branch (327:22): [True: 14.5k, False: 171]
  ------------------
  328|       |      // Extract W+1 bits overlapping by 1 with the previous window
  329|  14.5k|      const size_t bit_pos = WindowBits * i - 1;
  330|  14.5k|      const size_t raw = scalar.get_window(bit_pos);
  331|  14.5k|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  332|       |
  333|  14.5k|      const auto tbl_i = table.subspan(WindowElements * i, WindowElements);
  334|       |
  335|  14.5k|      accum = C::ProjectivePoint::add_or_sub(accum, C::AffinePoint::ct_select(tbl_i, tidx), tneg);
  336|       |
  337|       |      // Conditional ok: loop iteration count is public
  338|  14.5k|      if(i <= 3) {
  ------------------
  |  Branch (338:10): [True: 513, False: 14.0k]
  ------------------
  339|    513|         accum.randomize_rep(rng);
  340|    513|      }
  341|  14.5k|   }
  342|       |
  343|    171|   CT::unpoison(accum);
  344|    171|   return accum;
  345|    171|}
pcurves_brainpool512r1.cpp:_ZZN5Botan18basemul_booth_execINS_6PCurve12_GLOBAL__N_114brainpool512r15CurveELm6ENS_17BlindedScalarBitsIS4_Lm7EEEEENT_15ProjectivePointENSt3__14spanIKNS7_11AffinePointELm18446744073709551615EEERKT1_RNS_21RandomNumberGeneratorEENKUlvE_clEv:
  313|    171|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    171|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    171|      const size_t raw = w_bits << 1;
  317|    171|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    171|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    171|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    171|      pt.conditional_assign(tneg, pt.negate());
  322|    171|      CT::poison(pt);
  323|    171|      pt.randomize_rep(rng);
  324|    171|      return pt;
  325|    171|   }();
pcurves_generic.cpp:_ZN5Botan18basemul_booth_execINS_6PCurve12_GLOBAL__N_112GenericCurveELm6ENS2_24GenericBlindedScalarBitsEEENT_15ProjectivePointENSt3__14spanIKNS5_11AffinePointELm18446744073709551615EEERKT1_RNS_21RandomNumberGeneratorE:
  308|    248|                                               RandomNumberGenerator& rng) {
  309|    248|   static constexpr size_t WindowElements = 1 << (WindowBits - 1);
  310|       |
  311|    248|   const size_t windows = (scalar.bits() + WindowBits) / WindowBits;
  312|       |
  313|    248|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    248|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    248|      const size_t raw = w_bits << 1;
  317|    248|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    248|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    248|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    248|      pt.conditional_assign(tneg, pt.negate());
  322|    248|      CT::poison(pt);
  323|    248|      pt.randomize_rep(rng);
  324|    248|      return pt;
  325|    248|   }();
  326|       |
  327|  10.0k|   for(size_t i = 1; i != windows; ++i) {
  ------------------
  |  Branch (327:22): [True: 9.77k, False: 248]
  ------------------
  328|       |      // Extract W+1 bits overlapping by 1 with the previous window
  329|  9.77k|      const size_t bit_pos = WindowBits * i - 1;
  330|  9.77k|      const size_t raw = scalar.get_window(bit_pos);
  331|  9.77k|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  332|       |
  333|  9.77k|      const auto tbl_i = table.subspan(WindowElements * i, WindowElements);
  334|       |
  335|  9.77k|      accum = C::ProjectivePoint::add_or_sub(accum, C::AffinePoint::ct_select(tbl_i, tidx), tneg);
  336|       |
  337|       |      // Conditional ok: loop iteration count is public
  338|  9.77k|      if(i <= 3) {
  ------------------
  |  Branch (338:10): [True: 744, False: 9.03k]
  ------------------
  339|    744|         accum.randomize_rep(rng);
  340|    744|      }
  341|  9.77k|   }
  342|       |
  343|    248|   CT::unpoison(accum);
  344|    248|   return accum;
  345|    248|}
pcurves_generic.cpp:_ZZN5Botan18basemul_booth_execINS_6PCurve12_GLOBAL__N_112GenericCurveELm6ENS2_24GenericBlindedScalarBitsEEENT_15ProjectivePointENSt3__14spanIKNS5_11AffinePointELm18446744073709551615EEERKT1_RNS_21RandomNumberGeneratorEENKUlvE_clEv:
  313|    248|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    248|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    248|      const size_t raw = w_bits << 1;
  317|    248|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    248|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    248|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    248|      pt.conditional_assign(tneg, pt.negate());
  322|    248|      CT::poison(pt);
  323|    248|      pt.randomize_rep(rng);
  324|    248|      return pt;
  325|    248|   }();
pcurves_generic.cpp:_ZN5Botan19basemul_booth_setupINS_6PCurve12_GLOBAL__N_112GenericCurveELm6EEENSt3__16vectorINT_11AffinePointENS4_9allocatorIS7_EEEERKS7_m:
  254|    342|std::vector<typename C::AffinePoint> basemul_booth_setup(const typename C::AffinePoint& p, size_t max_scalar_bits) {
  255|    342|   static_assert(WindowBits >= 1 && WindowBits <= 8);
  256|       |
  257|       |   // 2^(W-1) elements per window [1*base .. 2^(W-1)*base]
  258|    342|   constexpr size_t WindowElements = 1 << (WindowBits - 1);
  259|       |
  260|    342|   const size_t Windows = (max_scalar_bits + WindowBits - 1) / WindowBits;
  261|       |
  262|    342|   const size_t TableSize = Windows * WindowElements;
  263|       |
  264|    342|   std::vector<typename C::ProjectivePoint> table;
  265|    342|   table.reserve(TableSize);
  266|       |
  267|    342|   auto accum = C::ProjectivePoint::from_affine(p);
  268|       |
  269|  16.5k|   for(size_t i = 0; i != TableSize; i += WindowElements) {
  ------------------
  |  Branch (269:22): [True: 16.1k, False: 342]
  ------------------
  270|  16.1k|      table.push_back(accum);
  271|       |
  272|   517k|      for(size_t j = 1; j != WindowElements; ++j) {
  ------------------
  |  Branch (272:25): [True: 501k, False: 16.1k]
  ------------------
  273|       |         // Conditional ok: loop iteration count is public
  274|   501k|         if(j % 2 == 1) {
  ------------------
  |  Branch (274:13): [True: 258k, False: 242k]
  ------------------
  275|   258k|            table.emplace_back(table[i + j / 2].dbl());
  276|   258k|         } else {
  277|   242k|            table.emplace_back(table[i + j - 1] + table[i]);
  278|   242k|         }
  279|   501k|      }
  280|       |
  281|       |      // Advance to next window's base: 2^W * current_base
  282|       |      // The last entry is 2^(W-1) * base, so doubling gives 2^W * base
  283|  16.1k|      accum = table[i + WindowElements - 1].dbl();
  284|  16.1k|   }
  285|       |
  286|       |   // Variable time batch conversion is fine since generator is public
  287|    342|   return to_affine_batch<C, true>(table);
  288|    342|}
pcurves_secp224r1.cpp:_ZN5Botan19basemul_booth_setupINS_6PCurve12_GLOBAL__N_19secp224r15CurveELm6EEENSt3__16vectorINT_11AffinePointENS5_9allocatorIS8_EEEERKS8_m:
  254|      1|std::vector<typename C::AffinePoint> basemul_booth_setup(const typename C::AffinePoint& p, size_t max_scalar_bits) {
  255|      1|   static_assert(WindowBits >= 1 && WindowBits <= 8);
  256|       |
  257|       |   // 2^(W-1) elements per window [1*base .. 2^(W-1)*base]
  258|      1|   constexpr size_t WindowElements = 1 << (WindowBits - 1);
  259|       |
  260|      1|   const size_t Windows = (max_scalar_bits + WindowBits - 1) / WindowBits;
  261|       |
  262|      1|   const size_t TableSize = Windows * WindowElements;
  263|       |
  264|      1|   std::vector<typename C::ProjectivePoint> table;
  265|      1|   table.reserve(TableSize);
  266|       |
  267|      1|   auto accum = C::ProjectivePoint::from_affine(p);
  268|       |
  269|     44|   for(size_t i = 0; i != TableSize; i += WindowElements) {
  ------------------
  |  Branch (269:22): [True: 43, False: 1]
  ------------------
  270|     43|      table.push_back(accum);
  271|       |
  272|  1.37k|      for(size_t j = 1; j != WindowElements; ++j) {
  ------------------
  |  Branch (272:25): [True: 1.33k, False: 43]
  ------------------
  273|       |         // Conditional ok: loop iteration count is public
  274|  1.33k|         if(j % 2 == 1) {
  ------------------
  |  Branch (274:13): [True: 688, False: 645]
  ------------------
  275|    688|            table.emplace_back(table[i + j / 2].dbl());
  276|    688|         } else {
  277|    645|            table.emplace_back(table[i + j - 1] + table[i]);
  278|    645|         }
  279|  1.33k|      }
  280|       |
  281|       |      // Advance to next window's base: 2^W * current_base
  282|       |      // The last entry is 2^(W-1) * base, so doubling gives 2^W * base
  283|     43|      accum = table[i + WindowElements - 1].dbl();
  284|     43|   }
  285|       |
  286|       |   // Variable time batch conversion is fine since generator is public
  287|      1|   return to_affine_batch<C, true>(table);
  288|      1|}
pcurves_secp224r1.cpp:_ZN5Botan18basemul_booth_execINS_6PCurve12_GLOBAL__N_19secp224r15CurveELm6ENS_17BlindedScalarBitsIS4_Lm7EEEEENT_15ProjectivePointENSt3__14spanIKNS7_11AffinePointELm18446744073709551615EEERKT1_RNS_21RandomNumberGeneratorE:
  308|    198|                                               RandomNumberGenerator& rng) {
  309|    198|   static constexpr size_t WindowElements = 1 << (WindowBits - 1);
  310|       |
  311|    198|   const size_t windows = (scalar.bits() + WindowBits) / WindowBits;
  312|       |
  313|    198|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    198|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    198|      const size_t raw = w_bits << 1;
  317|    198|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    198|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    198|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    198|      pt.conditional_assign(tneg, pt.negate());
  322|    198|      CT::poison(pt);
  323|    198|      pt.randomize_rep(rng);
  324|    198|      return pt;
  325|    198|   }();
  326|       |
  327|  7.52k|   for(size_t i = 1; i != windows; ++i) {
  ------------------
  |  Branch (327:22): [True: 7.32k, False: 198]
  ------------------
  328|       |      // Extract W+1 bits overlapping by 1 with the previous window
  329|  7.32k|      const size_t bit_pos = WindowBits * i - 1;
  330|  7.32k|      const size_t raw = scalar.get_window(bit_pos);
  331|  7.32k|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  332|       |
  333|  7.32k|      const auto tbl_i = table.subspan(WindowElements * i, WindowElements);
  334|       |
  335|  7.32k|      accum = C::ProjectivePoint::add_or_sub(accum, C::AffinePoint::ct_select(tbl_i, tidx), tneg);
  336|       |
  337|       |      // Conditional ok: loop iteration count is public
  338|  7.32k|      if(i <= 3) {
  ------------------
  |  Branch (338:10): [True: 594, False: 6.73k]
  ------------------
  339|    594|         accum.randomize_rep(rng);
  340|    594|      }
  341|  7.32k|   }
  342|       |
  343|    198|   CT::unpoison(accum);
  344|    198|   return accum;
  345|    198|}
pcurves_secp224r1.cpp:_ZZN5Botan18basemul_booth_execINS_6PCurve12_GLOBAL__N_19secp224r15CurveELm6ENS_17BlindedScalarBitsIS4_Lm7EEEEENT_15ProjectivePointENSt3__14spanIKNS7_11AffinePointELm18446744073709551615EEERKT1_RNS_21RandomNumberGeneratorEENKUlvE_clEv:
  313|    198|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    198|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    198|      const size_t raw = w_bits << 1;
  317|    198|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    198|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    198|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    198|      pt.conditional_assign(tneg, pt.negate());
  322|    198|      CT::poison(pt);
  323|    198|      pt.randomize_rep(rng);
  324|    198|      return pt;
  325|    198|   }();
pcurves_secp256k1.cpp:_ZN5Botan19basemul_booth_setupINS_6PCurve12_GLOBAL__N_19secp256k15CurveELm6EEENSt3__16vectorINT_11AffinePointENS5_9allocatorIS8_EEEERKS8_m:
  254|      1|std::vector<typename C::AffinePoint> basemul_booth_setup(const typename C::AffinePoint& p, size_t max_scalar_bits) {
  255|      1|   static_assert(WindowBits >= 1 && WindowBits <= 8);
  256|       |
  257|       |   // 2^(W-1) elements per window [1*base .. 2^(W-1)*base]
  258|      1|   constexpr size_t WindowElements = 1 << (WindowBits - 1);
  259|       |
  260|      1|   const size_t Windows = (max_scalar_bits + WindowBits - 1) / WindowBits;
  261|       |
  262|      1|   const size_t TableSize = Windows * WindowElements;
  263|       |
  264|      1|   std::vector<typename C::ProjectivePoint> table;
  265|      1|   table.reserve(TableSize);
  266|       |
  267|      1|   auto accum = C::ProjectivePoint::from_affine(p);
  268|       |
  269|     50|   for(size_t i = 0; i != TableSize; i += WindowElements) {
  ------------------
  |  Branch (269:22): [True: 49, False: 1]
  ------------------
  270|     49|      table.push_back(accum);
  271|       |
  272|  1.56k|      for(size_t j = 1; j != WindowElements; ++j) {
  ------------------
  |  Branch (272:25): [True: 1.51k, False: 49]
  ------------------
  273|       |         // Conditional ok: loop iteration count is public
  274|  1.51k|         if(j % 2 == 1) {
  ------------------
  |  Branch (274:13): [True: 784, False: 735]
  ------------------
  275|    784|            table.emplace_back(table[i + j / 2].dbl());
  276|    784|         } else {
  277|    735|            table.emplace_back(table[i + j - 1] + table[i]);
  278|    735|         }
  279|  1.51k|      }
  280|       |
  281|       |      // Advance to next window's base: 2^W * current_base
  282|       |      // The last entry is 2^(W-1) * base, so doubling gives 2^W * base
  283|     49|      accum = table[i + WindowElements - 1].dbl();
  284|     49|   }
  285|       |
  286|       |   // Variable time batch conversion is fine since generator is public
  287|      1|   return to_affine_batch<C, true>(table);
  288|      1|}
pcurves_secp256k1.cpp:_ZN5Botan18basemul_booth_execINS_6PCurve12_GLOBAL__N_19secp256k15CurveELm6ENS_17BlindedScalarBitsIS4_Lm7EEEEENT_15ProjectivePointENSt3__14spanIKNS7_11AffinePointELm18446744073709551615EEERKT1_RNS_21RandomNumberGeneratorE:
  308|    149|                                               RandomNumberGenerator& rng) {
  309|    149|   static constexpr size_t WindowElements = 1 << (WindowBits - 1);
  310|       |
  311|    149|   const size_t windows = (scalar.bits() + WindowBits) / WindowBits;
  312|       |
  313|    149|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    149|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    149|      const size_t raw = w_bits << 1;
  317|    149|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    149|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    149|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    149|      pt.conditional_assign(tneg, pt.negate());
  322|    149|      CT::poison(pt);
  323|    149|      pt.randomize_rep(rng);
  324|    149|      return pt;
  325|    149|   }();
  326|       |
  327|  6.40k|   for(size_t i = 1; i != windows; ++i) {
  ------------------
  |  Branch (327:22): [True: 6.25k, False: 149]
  ------------------
  328|       |      // Extract W+1 bits overlapping by 1 with the previous window
  329|  6.25k|      const size_t bit_pos = WindowBits * i - 1;
  330|  6.25k|      const size_t raw = scalar.get_window(bit_pos);
  331|  6.25k|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  332|       |
  333|  6.25k|      const auto tbl_i = table.subspan(WindowElements * i, WindowElements);
  334|       |
  335|  6.25k|      accum = C::ProjectivePoint::add_or_sub(accum, C::AffinePoint::ct_select(tbl_i, tidx), tneg);
  336|       |
  337|       |      // Conditional ok: loop iteration count is public
  338|  6.25k|      if(i <= 3) {
  ------------------
  |  Branch (338:10): [True: 447, False: 5.81k]
  ------------------
  339|    447|         accum.randomize_rep(rng);
  340|    447|      }
  341|  6.25k|   }
  342|       |
  343|    149|   CT::unpoison(accum);
  344|    149|   return accum;
  345|    149|}
pcurves_secp256k1.cpp:_ZZN5Botan18basemul_booth_execINS_6PCurve12_GLOBAL__N_19secp256k15CurveELm6ENS_17BlindedScalarBitsIS4_Lm7EEEEENT_15ProjectivePointENSt3__14spanIKNS7_11AffinePointELm18446744073709551615EEERKT1_RNS_21RandomNumberGeneratorEENKUlvE_clEv:
  313|    149|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    149|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    149|      const size_t raw = w_bits << 1;
  317|    149|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    149|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    149|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    149|      pt.conditional_assign(tneg, pt.negate());
  322|    149|      CT::poison(pt);
  323|    149|      pt.randomize_rep(rng);
  324|    149|      return pt;
  325|    149|   }();
pcurves_secp256r1.cpp:_ZN5Botan19basemul_booth_setupINS_6PCurve12_GLOBAL__N_19secp256r15CurveELm6EEENSt3__16vectorINT_11AffinePointENS5_9allocatorIS8_EEEERKS8_m:
  254|      1|std::vector<typename C::AffinePoint> basemul_booth_setup(const typename C::AffinePoint& p, size_t max_scalar_bits) {
  255|      1|   static_assert(WindowBits >= 1 && WindowBits <= 8);
  256|       |
  257|       |   // 2^(W-1) elements per window [1*base .. 2^(W-1)*base]
  258|      1|   constexpr size_t WindowElements = 1 << (WindowBits - 1);
  259|       |
  260|      1|   const size_t Windows = (max_scalar_bits + WindowBits - 1) / WindowBits;
  261|       |
  262|      1|   const size_t TableSize = Windows * WindowElements;
  263|       |
  264|      1|   std::vector<typename C::ProjectivePoint> table;
  265|      1|   table.reserve(TableSize);
  266|       |
  267|      1|   auto accum = C::ProjectivePoint::from_affine(p);
  268|       |
  269|     50|   for(size_t i = 0; i != TableSize; i += WindowElements) {
  ------------------
  |  Branch (269:22): [True: 49, False: 1]
  ------------------
  270|     49|      table.push_back(accum);
  271|       |
  272|  1.56k|      for(size_t j = 1; j != WindowElements; ++j) {
  ------------------
  |  Branch (272:25): [True: 1.51k, False: 49]
  ------------------
  273|       |         // Conditional ok: loop iteration count is public
  274|  1.51k|         if(j % 2 == 1) {
  ------------------
  |  Branch (274:13): [True: 784, False: 735]
  ------------------
  275|    784|            table.emplace_back(table[i + j / 2].dbl());
  276|    784|         } else {
  277|    735|            table.emplace_back(table[i + j - 1] + table[i]);
  278|    735|         }
  279|  1.51k|      }
  280|       |
  281|       |      // Advance to next window's base: 2^W * current_base
  282|       |      // The last entry is 2^(W-1) * base, so doubling gives 2^W * base
  283|     49|      accum = table[i + WindowElements - 1].dbl();
  284|     49|   }
  285|       |
  286|       |   // Variable time batch conversion is fine since generator is public
  287|      1|   return to_affine_batch<C, true>(table);
  288|      1|}
pcurves_secp256r1.cpp:_ZN5Botan18basemul_booth_execINS_6PCurve12_GLOBAL__N_19secp256r15CurveELm6ENS_17BlindedScalarBitsIS4_Lm7EEEEENT_15ProjectivePointENSt3__14spanIKNS7_11AffinePointELm18446744073709551615EEERKT1_RNS_21RandomNumberGeneratorE:
  308|     85|                                               RandomNumberGenerator& rng) {
  309|     85|   static constexpr size_t WindowElements = 1 << (WindowBits - 1);
  310|       |
  311|     85|   const size_t windows = (scalar.bits() + WindowBits) / WindowBits;
  312|       |
  313|     85|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|     85|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|     85|      const size_t raw = w_bits << 1;
  317|     85|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|     85|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|     85|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|     85|      pt.conditional_assign(tneg, pt.negate());
  322|     85|      CT::poison(pt);
  323|     85|      pt.randomize_rep(rng);
  324|     85|      return pt;
  325|     85|   }();
  326|       |
  327|  3.65k|   for(size_t i = 1; i != windows; ++i) {
  ------------------
  |  Branch (327:22): [True: 3.57k, False: 85]
  ------------------
  328|       |      // Extract W+1 bits overlapping by 1 with the previous window
  329|  3.57k|      const size_t bit_pos = WindowBits * i - 1;
  330|  3.57k|      const size_t raw = scalar.get_window(bit_pos);
  331|  3.57k|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  332|       |
  333|  3.57k|      const auto tbl_i = table.subspan(WindowElements * i, WindowElements);
  334|       |
  335|  3.57k|      accum = C::ProjectivePoint::add_or_sub(accum, C::AffinePoint::ct_select(tbl_i, tidx), tneg);
  336|       |
  337|       |      // Conditional ok: loop iteration count is public
  338|  3.57k|      if(i <= 3) {
  ------------------
  |  Branch (338:10): [True: 255, False: 3.31k]
  ------------------
  339|    255|         accum.randomize_rep(rng);
  340|    255|      }
  341|  3.57k|   }
  342|       |
  343|     85|   CT::unpoison(accum);
  344|     85|   return accum;
  345|     85|}
pcurves_secp256r1.cpp:_ZZN5Botan18basemul_booth_execINS_6PCurve12_GLOBAL__N_19secp256r15CurveELm6ENS_17BlindedScalarBitsIS4_Lm7EEEEENT_15ProjectivePointENSt3__14spanIKNS7_11AffinePointELm18446744073709551615EEERKT1_RNS_21RandomNumberGeneratorEENKUlvE_clEv:
  313|     85|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|     85|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|     85|      const size_t raw = w_bits << 1;
  317|     85|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|     85|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|     85|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|     85|      pt.conditional_assign(tneg, pt.negate());
  322|     85|      CT::poison(pt);
  323|     85|      pt.randomize_rep(rng);
  324|     85|      return pt;
  325|     85|   }();
pcurves_secp384r1.cpp:_ZN5Botan19basemul_booth_setupINS_6PCurve12_GLOBAL__N_19secp384r15CurveELm6EEENSt3__16vectorINT_11AffinePointENS5_9allocatorIS8_EEEERKS8_m:
  254|      1|std::vector<typename C::AffinePoint> basemul_booth_setup(const typename C::AffinePoint& p, size_t max_scalar_bits) {
  255|      1|   static_assert(WindowBits >= 1 && WindowBits <= 8);
  256|       |
  257|       |   // 2^(W-1) elements per window [1*base .. 2^(W-1)*base]
  258|      1|   constexpr size_t WindowElements = 1 << (WindowBits - 1);
  259|       |
  260|      1|   const size_t Windows = (max_scalar_bits + WindowBits - 1) / WindowBits;
  261|       |
  262|      1|   const size_t TableSize = Windows * WindowElements;
  263|       |
  264|      1|   std::vector<typename C::ProjectivePoint> table;
  265|      1|   table.reserve(TableSize);
  266|       |
  267|      1|   auto accum = C::ProjectivePoint::from_affine(p);
  268|       |
  269|     74|   for(size_t i = 0; i != TableSize; i += WindowElements) {
  ------------------
  |  Branch (269:22): [True: 73, False: 1]
  ------------------
  270|     73|      table.push_back(accum);
  271|       |
  272|  2.33k|      for(size_t j = 1; j != WindowElements; ++j) {
  ------------------
  |  Branch (272:25): [True: 2.26k, False: 73]
  ------------------
  273|       |         // Conditional ok: loop iteration count is public
  274|  2.26k|         if(j % 2 == 1) {
  ------------------
  |  Branch (274:13): [True: 1.16k, False: 1.09k]
  ------------------
  275|  1.16k|            table.emplace_back(table[i + j / 2].dbl());
  276|  1.16k|         } else {
  277|  1.09k|            table.emplace_back(table[i + j - 1] + table[i]);
  278|  1.09k|         }
  279|  2.26k|      }
  280|       |
  281|       |      // Advance to next window's base: 2^W * current_base
  282|       |      // The last entry is 2^(W-1) * base, so doubling gives 2^W * base
  283|     73|      accum = table[i + WindowElements - 1].dbl();
  284|     73|   }
  285|       |
  286|       |   // Variable time batch conversion is fine since generator is public
  287|      1|   return to_affine_batch<C, true>(table);
  288|      1|}
pcurves_secp384r1.cpp:_ZN5Botan18basemul_booth_execINS_6PCurve12_GLOBAL__N_19secp384r15CurveELm6ENS_17BlindedScalarBitsIS4_Lm7EEEEENT_15ProjectivePointENSt3__14spanIKNS7_11AffinePointELm18446744073709551615EEERKT1_RNS_21RandomNumberGeneratorE:
  308|    154|                                               RandomNumberGenerator& rng) {
  309|    154|   static constexpr size_t WindowElements = 1 << (WindowBits - 1);
  310|       |
  311|    154|   const size_t windows = (scalar.bits() + WindowBits) / WindowBits;
  312|       |
  313|    154|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    154|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    154|      const size_t raw = w_bits << 1;
  317|    154|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    154|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    154|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    154|      pt.conditional_assign(tneg, pt.negate());
  322|    154|      CT::poison(pt);
  323|    154|      pt.randomize_rep(rng);
  324|    154|      return pt;
  325|    154|   }();
  326|       |
  327|  10.0k|   for(size_t i = 1; i != windows; ++i) {
  ------------------
  |  Branch (327:22): [True: 9.85k, False: 154]
  ------------------
  328|       |      // Extract W+1 bits overlapping by 1 with the previous window
  329|  9.85k|      const size_t bit_pos = WindowBits * i - 1;
  330|  9.85k|      const size_t raw = scalar.get_window(bit_pos);
  331|  9.85k|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  332|       |
  333|  9.85k|      const auto tbl_i = table.subspan(WindowElements * i, WindowElements);
  334|       |
  335|  9.85k|      accum = C::ProjectivePoint::add_or_sub(accum, C::AffinePoint::ct_select(tbl_i, tidx), tneg);
  336|       |
  337|       |      // Conditional ok: loop iteration count is public
  338|  9.85k|      if(i <= 3) {
  ------------------
  |  Branch (338:10): [True: 462, False: 9.39k]
  ------------------
  339|    462|         accum.randomize_rep(rng);
  340|    462|      }
  341|  9.85k|   }
  342|       |
  343|    154|   CT::unpoison(accum);
  344|    154|   return accum;
  345|    154|}
pcurves_secp384r1.cpp:_ZZN5Botan18basemul_booth_execINS_6PCurve12_GLOBAL__N_19secp384r15CurveELm6ENS_17BlindedScalarBitsIS4_Lm7EEEEENT_15ProjectivePointENSt3__14spanIKNS7_11AffinePointELm18446744073709551615EEERKT1_RNS_21RandomNumberGeneratorEENKUlvE_clEv:
  313|    154|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    154|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    154|      const size_t raw = w_bits << 1;
  317|    154|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    154|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    154|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    154|      pt.conditional_assign(tneg, pt.negate());
  322|    154|      CT::poison(pt);
  323|    154|      pt.randomize_rep(rng);
  324|    154|      return pt;
  325|    154|   }();
pcurves_secp521r1.cpp:_ZN5Botan19basemul_booth_setupINS_6PCurve12_GLOBAL__N_19secp521r15CurveELm6EEENSt3__16vectorINT_11AffinePointENS5_9allocatorIS8_EEEERKS8_m:
  254|      1|std::vector<typename C::AffinePoint> basemul_booth_setup(const typename C::AffinePoint& p, size_t max_scalar_bits) {
  255|      1|   static_assert(WindowBits >= 1 && WindowBits <= 8);
  256|       |
  257|       |   // 2^(W-1) elements per window [1*base .. 2^(W-1)*base]
  258|      1|   constexpr size_t WindowElements = 1 << (WindowBits - 1);
  259|       |
  260|      1|   const size_t Windows = (max_scalar_bits + WindowBits - 1) / WindowBits;
  261|       |
  262|      1|   const size_t TableSize = Windows * WindowElements;
  263|       |
  264|      1|   std::vector<typename C::ProjectivePoint> table;
  265|      1|   table.reserve(TableSize);
  266|       |
  267|      1|   auto accum = C::ProjectivePoint::from_affine(p);
  268|       |
  269|     98|   for(size_t i = 0; i != TableSize; i += WindowElements) {
  ------------------
  |  Branch (269:22): [True: 97, False: 1]
  ------------------
  270|     97|      table.push_back(accum);
  271|       |
  272|  3.10k|      for(size_t j = 1; j != WindowElements; ++j) {
  ------------------
  |  Branch (272:25): [True: 3.00k, False: 97]
  ------------------
  273|       |         // Conditional ok: loop iteration count is public
  274|  3.00k|         if(j % 2 == 1) {
  ------------------
  |  Branch (274:13): [True: 1.55k, False: 1.45k]
  ------------------
  275|  1.55k|            table.emplace_back(table[i + j / 2].dbl());
  276|  1.55k|         } else {
  277|  1.45k|            table.emplace_back(table[i + j - 1] + table[i]);
  278|  1.45k|         }
  279|  3.00k|      }
  280|       |
  281|       |      // Advance to next window's base: 2^W * current_base
  282|       |      // The last entry is 2^(W-1) * base, so doubling gives 2^W * base
  283|     97|      accum = table[i + WindowElements - 1].dbl();
  284|     97|   }
  285|       |
  286|       |   // Variable time batch conversion is fine since generator is public
  287|      1|   return to_affine_batch<C, true>(table);
  288|      1|}
pcurves_secp521r1.cpp:_ZN5Botan18basemul_booth_execINS_6PCurve12_GLOBAL__N_19secp521r15CurveELm6ENS_17BlindedScalarBitsIS4_Lm7EEEEENT_15ProjectivePointENSt3__14spanIKNS7_11AffinePointELm18446744073709551615EEERKT1_RNS_21RandomNumberGeneratorE:
  308|    176|                                               RandomNumberGenerator& rng) {
  309|    176|   static constexpr size_t WindowElements = 1 << (WindowBits - 1);
  310|       |
  311|    176|   const size_t windows = (scalar.bits() + WindowBits) / WindowBits;
  312|       |
  313|    176|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    176|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    176|      const size_t raw = w_bits << 1;
  317|    176|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    176|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    176|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    176|      pt.conditional_assign(tneg, pt.negate());
  322|    176|      CT::poison(pt);
  323|    176|      pt.randomize_rep(rng);
  324|    176|      return pt;
  325|    176|   }();
  326|       |
  327|  15.3k|   for(size_t i = 1; i != windows; ++i) {
  ------------------
  |  Branch (327:22): [True: 15.1k, False: 176]
  ------------------
  328|       |      // Extract W+1 bits overlapping by 1 with the previous window
  329|  15.1k|      const size_t bit_pos = WindowBits * i - 1;
  330|  15.1k|      const size_t raw = scalar.get_window(bit_pos);
  331|  15.1k|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  332|       |
  333|  15.1k|      const auto tbl_i = table.subspan(WindowElements * i, WindowElements);
  334|       |
  335|  15.1k|      accum = C::ProjectivePoint::add_or_sub(accum, C::AffinePoint::ct_select(tbl_i, tidx), tneg);
  336|       |
  337|       |      // Conditional ok: loop iteration count is public
  338|  15.1k|      if(i <= 3) {
  ------------------
  |  Branch (338:10): [True: 528, False: 14.6k]
  ------------------
  339|    528|         accum.randomize_rep(rng);
  340|    528|      }
  341|  15.1k|   }
  342|       |
  343|    176|   CT::unpoison(accum);
  344|    176|   return accum;
  345|    176|}
pcurves_secp521r1.cpp:_ZZN5Botan18basemul_booth_execINS_6PCurve12_GLOBAL__N_19secp521r15CurveELm6ENS_17BlindedScalarBitsIS4_Lm7EEEEENT_15ProjectivePointENSt3__14spanIKNS7_11AffinePointELm18446744073709551615EEERKT1_RNS_21RandomNumberGeneratorEENKUlvE_clEv:
  313|    176|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    176|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    176|      const size_t raw = w_bits << 1;
  317|    176|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    176|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    176|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    176|      pt.conditional_assign(tneg, pt.negate());
  322|    176|      CT::poison(pt);
  323|    176|      pt.randomize_rep(rng);
  324|    176|      return pt;
  325|    176|   }();

_ZN5Botan10get_uint32ITkNS_8WordTypeEmEEjPKT_m:
   33|  8.77M|constexpr uint32_t get_uint32(const W xw[], size_t i) {
   34|  8.77M|   static_assert(WordInfo<W>::bits == 32 || WordInfo<W>::bits == 64);
   35|       |
   36|       |   if constexpr(WordInfo<W>::bits == 32) {
   37|       |      return xw[i];
   38|  8.77M|   } else {
   39|  8.77M|      return static_cast<uint32_t>(xw[i / 2] >> ((i % 2) * 32));
   40|  8.77M|   }
   41|  8.77M|}
_ZN5Botan12SolinasAccumImLm4EEC2ERNSt3__15arrayImLm4EEE:
   50|   246k|      constexpr explicit SolinasAccum(std::array<W, N>& r) : m_r(r) {}
_ZN5Botan12SolinasAccumImLm4EE5accumEl:
   52|  1.81M|      constexpr void accum(int64_t v) {
   53|  1.81M|         BOTAN_DEBUG_ASSERT(m_idx < N32);
  ------------------
  |  |  130|  1.81M|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  1.81M|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 1.81M]
  |  |  ------------------
  ------------------
   54|       |
   55|  1.81M|         m_S += v;
   56|  1.81M|         const uint32_t r = static_cast<uint32_t>(m_S);
   57|  1.81M|         m_S >>= 32;
   58|       |
   59|       |         if constexpr(WordInfo<W>::bits == 32) {
   60|       |            m_r[m_idx] = r;
   61|  1.81M|         } else {
   62|  1.81M|            m_r[m_idx / 2] |= static_cast<uint64_t>(r) << (32 * (m_idx % 2));
   63|  1.81M|         }
   64|       |
   65|  1.81M|         m_idx += 1;
   66|  1.81M|      }
_ZN5Botan12SolinasAccumImLm4EE11final_carryEl:
   68|   246k|      constexpr W final_carry(int64_t C) {
   69|   246k|         m_S += C;
   70|   246k|         BOTAN_DEBUG_ASSERT(m_S >= 0);
  ------------------
  |  |  130|   246k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|   246k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 246k]
  |  |  ------------------
  ------------------
   71|   246k|         return static_cast<W>(m_S);
   72|   246k|      }
_ZN5Botan20solinas_correct_redcILm4ETkNS_8WordTypeEmEEvRNSt3__15arrayIT0_XT_EEERKS4_S7_:
   84|   246k|constexpr inline void solinas_correct_redc(std::array<W, N>& r, const std::array<W, N>& P, const std::array<W, N>& C) {
   85|   246k|   W borrow = 0;
   86|  1.23M|   for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (86:22): [True: 985k, False: 246k]
  ------------------
   87|   985k|      r[i] = word_sub(r[i], C[i], &borrow);
   88|   985k|   }
   89|       |
   90|       |   // borrow is either 0 or 1, perfect for setting up a mask without extra work
   91|   246k|   const W mask = CT::value_barrier<W>(0 - borrow);
   92|       |
   93|   246k|   W carry = 0;
   94|       |
   95|  1.23M|   for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (95:22): [True: 985k, False: 246k]
  ------------------
   96|   985k|      r[i] = word_add(r[i], P[i] & mask, &carry);
   97|   985k|   }
   98|   246k|}
_ZN5Botan12SolinasAccumImLm6EEC2ERNSt3__15arrayImLm6EEE:
   50|   214k|      constexpr explicit SolinasAccum(std::array<W, N>& r) : m_r(r) {}
_ZN5Botan12SolinasAccumImLm6EE5accumEl:
   52|  2.57M|      constexpr void accum(int64_t v) {
   53|  2.57M|         BOTAN_DEBUG_ASSERT(m_idx < N32);
  ------------------
  |  |  130|  2.57M|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  2.57M|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 2.57M]
  |  |  ------------------
  ------------------
   54|       |
   55|  2.57M|         m_S += v;
   56|  2.57M|         const uint32_t r = static_cast<uint32_t>(m_S);
   57|  2.57M|         m_S >>= 32;
   58|       |
   59|       |         if constexpr(WordInfo<W>::bits == 32) {
   60|       |            m_r[m_idx] = r;
   61|  2.57M|         } else {
   62|  2.57M|            m_r[m_idx / 2] |= static_cast<uint64_t>(r) << (32 * (m_idx % 2));
   63|  2.57M|         }
   64|       |
   65|  2.57M|         m_idx += 1;
   66|  2.57M|      }
_ZN5Botan12SolinasAccumImLm6EE11final_carryEl:
   68|   214k|      constexpr W final_carry(int64_t C) {
   69|   214k|         m_S += C;
   70|   214k|         BOTAN_DEBUG_ASSERT(m_S >= 0);
  ------------------
  |  |  130|   214k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|   214k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 214k]
  |  |  ------------------
  ------------------
   71|   214k|         return static_cast<W>(m_S);
   72|   214k|      }
_ZN5Botan20solinas_correct_redcILm6ETkNS_8WordTypeEmEEvRNSt3__15arrayIT0_XT_EEERKS4_S7_:
   84|   214k|constexpr inline void solinas_correct_redc(std::array<W, N>& r, const std::array<W, N>& P, const std::array<W, N>& C) {
   85|   214k|   W borrow = 0;
   86|  1.49M|   for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (86:22): [True: 1.28M, False: 214k]
  ------------------
   87|  1.28M|      r[i] = word_sub(r[i], C[i], &borrow);
   88|  1.28M|   }
   89|       |
   90|       |   // borrow is either 0 or 1, perfect for setting up a mask without extra work
   91|   214k|   const W mask = CT::value_barrier<W>(0 - borrow);
   92|       |
   93|   214k|   W carry = 0;
   94|       |
   95|  1.49M|   for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (95:22): [True: 1.28M, False: 214k]
  ------------------
   96|  1.28M|      r[i] = word_add(r[i], P[i] & mask, &carry);
   97|  1.28M|   }
   98|   214k|}

_ZN5Botan10monty_redcITkNS_8WordTypeEmLm4EEENSt3__15arrayIT_XT0_EEERKNS2_IS3_XmlLi2ET0_EEERKS4_S3_:
  110|   163k|   -> std::array<W, N> {
  111|   163k|   static_assert(N >= 1);
  112|       |
  113|   163k|   std::array<W, N> ws;  // NOLINT(*-member-init)
  114|   163k|   std::array<W, N> r;   // NOLINT(*-member-init)
  115|       |
  116|       |   // Conditional ok: the parameter size is public
  117|   163k|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (117:7): [True: 163k, Folded]
  ------------------
  118|       |      // This range ensures we cover fields of 256, 384 and 512 bits for both 32 and 64 bit words
  119|   163k|      if constexpr(N == 4) {
  120|   163k|         bigint_monty_redc_4(r.data(), z.data(), p.data(), p_dash, ws.data());
  121|   163k|         return r;
  122|       |      } else if constexpr(N == 6) {
  123|       |         bigint_monty_redc_6(r.data(), z.data(), p.data(), p_dash, ws.data());
  124|       |         return r;
  125|       |      } else if constexpr(N == 8) {
  126|       |         bigint_monty_redc_8(r.data(), z.data(), p.data(), p_dash, ws.data());
  127|       |         return r;
  128|       |      } else if constexpr(N == 12) {
  129|       |         bigint_monty_redc_12(r.data(), z.data(), p.data(), p_dash, ws.data());
  130|       |         return r;
  131|       |      } else if constexpr(N == 16) {
  132|       |         bigint_monty_redc_16(r.data(), z.data(), p.data(), p_dash, ws.data());
  133|       |         return r;
  134|       |      }
  135|   163k|   }
  136|       |
  137|      0|   word3<W> accum;
  138|       |
  139|   163k|   accum.add(z[0]);
  140|       |
  141|   163k|   ws[0] = accum.monty_step(p[0], p_dash);
  142|       |
  143|   163k|   for(size_t i = 1; i != N; ++i) {
  ------------------
  |  Branch (143:22): [True: 0, False: 163k]
  ------------------
  144|      0|      for(size_t j = 0; j < i; ++j) {
  ------------------
  |  Branch (144:25): [True: 0, False: 0]
  ------------------
  145|      0|         accum.mul(ws[j], p[i - j]);
  146|      0|      }
  147|       |
  148|      0|      accum.add(z[i]);
  149|       |
  150|      0|      ws[i] = accum.monty_step(p[0], p_dash);
  151|      0|   }
  152|       |
  153|   163k|   for(size_t i = 0; i != N - 1; ++i) {
  ------------------
  |  Branch (153:22): [True: 0, False: 163k]
  ------------------
  154|      0|      for(size_t j = i + 1; j != N; ++j) {
  ------------------
  |  Branch (154:29): [True: 0, False: 0]
  ------------------
  155|      0|         accum.mul(ws[j], p[N + i - j]);
  156|      0|      }
  157|       |
  158|      0|      accum.add(z[N + i]);
  159|       |
  160|      0|      ws[i] = accum.extract();
  161|      0|   }
  162|       |
  163|   163k|   accum.add(z[2 * N - 1]);
  164|       |
  165|   163k|   ws[N - 1] = accum.extract();
  166|       |   // w1 is the final part, which is not stored in the workspace
  167|   163k|   const W w1 = accum.extract();
  168|       |
  169|   163k|   bigint_monty_maybe_sub<N>(r.data(), w1, ws.data(), p.data());
  170|       |
  171|   163k|   return r;
  172|   163k|}
_ZN5Botan14bytes_to_wordsITkNS_8WordTypeEmLm4ELm32EEEDaNSt3__14spanIKhXT1_EEE:
  287|    474|inline constexpr auto bytes_to_words(std::span<const uint8_t, L> bytes) {
  288|    474|   static_assert(L <= WordInfo<W>::bytes * N);
  289|       |
  290|    474|   std::array<W, N> r = {};
  291|       |
  292|    474|   constexpr size_t full_words = L / WordInfo<W>::bytes;
  293|    474|   constexpr size_t extra_bytes = L % WordInfo<W>::bytes;
  294|       |
  295|    474|   static_assert(full_words + (extra_bytes ? 1 : 0) <= N);
  296|       |
  297|  2.37k|   for(size_t i = 0; i != full_words; ++i) {
  ------------------
  |  Branch (297:22): [True: 1.89k, False: 474]
  ------------------
  298|  1.89k|      r[i] = load_be<W>(bytes.data(), full_words - 1 - i);
  299|  1.89k|   }
  300|       |
  301|       |   if constexpr(extra_bytes > 0) {
  302|       |      constexpr size_t shift = extra_bytes * 8;
  303|       |      shift_left<shift>(r);
  304|       |
  305|       |      for(size_t i = 0; i != extra_bytes; ++i) {
  306|       |         const W b0 = bytes[WordInfo<W>::bytes * full_words + i];
  307|       |         r[0] |= (b0 << (8 * (extra_bytes - 1 - i)));
  308|       |      }
  309|       |   }
  310|       |
  311|    474|   return r;
  312|    474|}
_ZN5Botan14bytes_to_wordsITkNS_8WordTypeEmLm8ELm64EEEDaNSt3__14spanIKhXT1_EEE:
  287|    195|inline constexpr auto bytes_to_words(std::span<const uint8_t, L> bytes) {
  288|    195|   static_assert(L <= WordInfo<W>::bytes * N);
  289|       |
  290|    195|   std::array<W, N> r = {};
  291|       |
  292|    195|   constexpr size_t full_words = L / WordInfo<W>::bytes;
  293|    195|   constexpr size_t extra_bytes = L % WordInfo<W>::bytes;
  294|       |
  295|    195|   static_assert(full_words + (extra_bytes ? 1 : 0) <= N);
  296|       |
  297|  1.75k|   for(size_t i = 0; i != full_words; ++i) {
  ------------------
  |  Branch (297:22): [True: 1.56k, False: 195]
  ------------------
  298|  1.56k|      r[i] = load_be<W>(bytes.data(), full_words - 1 - i);
  299|  1.56k|   }
  300|       |
  301|       |   if constexpr(extra_bytes > 0) {
  302|       |      constexpr size_t shift = extra_bytes * 8;
  303|       |      shift_left<shift>(r);
  304|       |
  305|       |      for(size_t i = 0; i != extra_bytes; ++i) {
  306|       |         const W b0 = bytes[WordInfo<W>::bytes * full_words + i];
  307|       |         r[0] |= (b0 << (8 * (extra_bytes - 1 - i)));
  308|       |      }
  309|       |   }
  310|       |
  311|    195|   return r;
  312|    195|}
_ZN5Botan10monty_redcITkNS_8WordTypeEmLm6EEENSt3__15arrayIT_XT0_EEERKNS2_IS3_XmlLi2ET0_EEERKS4_S3_:
  110|   221k|   -> std::array<W, N> {
  111|   221k|   static_assert(N >= 1);
  112|       |
  113|   221k|   std::array<W, N> ws;  // NOLINT(*-member-init)
  114|   221k|   std::array<W, N> r;   // NOLINT(*-member-init)
  115|       |
  116|       |   // Conditional ok: the parameter size is public
  117|   221k|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (117:7): [True: 221k, Folded]
  ------------------
  118|       |      // This range ensures we cover fields of 256, 384 and 512 bits for both 32 and 64 bit words
  119|       |      if constexpr(N == 4) {
  120|       |         bigint_monty_redc_4(r.data(), z.data(), p.data(), p_dash, ws.data());
  121|       |         return r;
  122|   221k|      } else if constexpr(N == 6) {
  123|   221k|         bigint_monty_redc_6(r.data(), z.data(), p.data(), p_dash, ws.data());
  124|   221k|         return r;
  125|       |      } else if constexpr(N == 8) {
  126|       |         bigint_monty_redc_8(r.data(), z.data(), p.data(), p_dash, ws.data());
  127|       |         return r;
  128|       |      } else if constexpr(N == 12) {
  129|       |         bigint_monty_redc_12(r.data(), z.data(), p.data(), p_dash, ws.data());
  130|       |         return r;
  131|       |      } else if constexpr(N == 16) {
  132|       |         bigint_monty_redc_16(r.data(), z.data(), p.data(), p_dash, ws.data());
  133|       |         return r;
  134|       |      }
  135|   221k|   }
  136|       |
  137|      0|   word3<W> accum;
  138|       |
  139|   221k|   accum.add(z[0]);
  140|       |
  141|   221k|   ws[0] = accum.monty_step(p[0], p_dash);
  142|       |
  143|   221k|   for(size_t i = 1; i != N; ++i) {
  ------------------
  |  Branch (143:22): [True: 0, False: 221k]
  ------------------
  144|      0|      for(size_t j = 0; j < i; ++j) {
  ------------------
  |  Branch (144:25): [True: 0, False: 0]
  ------------------
  145|      0|         accum.mul(ws[j], p[i - j]);
  146|      0|      }
  147|       |
  148|      0|      accum.add(z[i]);
  149|       |
  150|      0|      ws[i] = accum.monty_step(p[0], p_dash);
  151|      0|   }
  152|       |
  153|   221k|   for(size_t i = 0; i != N - 1; ++i) {
  ------------------
  |  Branch (153:22): [True: 0, False: 221k]
  ------------------
  154|      0|      for(size_t j = i + 1; j != N; ++j) {
  ------------------
  |  Branch (154:29): [True: 0, False: 0]
  ------------------
  155|      0|         accum.mul(ws[j], p[N + i - j]);
  156|      0|      }
  157|       |
  158|      0|      accum.add(z[N + i]);
  159|       |
  160|      0|      ws[i] = accum.extract();
  161|      0|   }
  162|       |
  163|   221k|   accum.add(z[2 * N - 1]);
  164|       |
  165|   221k|   ws[N - 1] = accum.extract();
  166|       |   // w1 is the final part, which is not stored in the workspace
  167|   221k|   const W w1 = accum.extract();
  168|       |
  169|   221k|   bigint_monty_maybe_sub<N>(r.data(), w1, ws.data(), p.data());
  170|       |
  171|   221k|   return r;
  172|   221k|}
_ZN5Botan14bytes_to_wordsITkNS_8WordTypeEmLm6ELm48EEEDaNSt3__14spanIKhXT1_EEE:
  287|    384|inline constexpr auto bytes_to_words(std::span<const uint8_t, L> bytes) {
  288|    384|   static_assert(L <= WordInfo<W>::bytes * N);
  289|       |
  290|    384|   std::array<W, N> r = {};
  291|       |
  292|    384|   constexpr size_t full_words = L / WordInfo<W>::bytes;
  293|    384|   constexpr size_t extra_bytes = L % WordInfo<W>::bytes;
  294|       |
  295|    384|   static_assert(full_words + (extra_bytes ? 1 : 0) <= N);
  296|       |
  297|  2.68k|   for(size_t i = 0; i != full_words; ++i) {
  ------------------
  |  Branch (297:22): [True: 2.30k, False: 384]
  ------------------
  298|  2.30k|      r[i] = load_be<W>(bytes.data(), full_words - 1 - i);
  299|  2.30k|   }
  300|       |
  301|       |   if constexpr(extra_bytes > 0) {
  302|       |      constexpr size_t shift = extra_bytes * 8;
  303|       |      shift_left<shift>(r);
  304|       |
  305|       |      for(size_t i = 0; i != extra_bytes; ++i) {
  306|       |         const W b0 = bytes[WordInfo<W>::bytes * full_words + i];
  307|       |         r[0] |= (b0 << (8 * (extra_bytes - 1 - i)));
  308|       |      }
  309|       |   }
  310|       |
  311|    384|   return r;
  312|    384|}
_ZN5Botan10monty_redcITkNS_8WordTypeEmLm8EEENSt3__15arrayIT_XT0_EEERKNS2_IS3_XmlLi2ET0_EEERKS4_S3_:
  110|   332k|   -> std::array<W, N> {
  111|   332k|   static_assert(N >= 1);
  112|       |
  113|   332k|   std::array<W, N> ws;  // NOLINT(*-member-init)
  114|   332k|   std::array<W, N> r;   // NOLINT(*-member-init)
  115|       |
  116|       |   // Conditional ok: the parameter size is public
  117|   332k|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (117:7): [True: 332k, Folded]
  ------------------
  118|       |      // This range ensures we cover fields of 256, 384 and 512 bits for both 32 and 64 bit words
  119|       |      if constexpr(N == 4) {
  120|       |         bigint_monty_redc_4(r.data(), z.data(), p.data(), p_dash, ws.data());
  121|       |         return r;
  122|       |      } else if constexpr(N == 6) {
  123|       |         bigint_monty_redc_6(r.data(), z.data(), p.data(), p_dash, ws.data());
  124|       |         return r;
  125|   332k|      } else if constexpr(N == 8) {
  126|   332k|         bigint_monty_redc_8(r.data(), z.data(), p.data(), p_dash, ws.data());
  127|   332k|         return r;
  128|       |      } else if constexpr(N == 12) {
  129|       |         bigint_monty_redc_12(r.data(), z.data(), p.data(), p_dash, ws.data());
  130|       |         return r;
  131|       |      } else if constexpr(N == 16) {
  132|       |         bigint_monty_redc_16(r.data(), z.data(), p.data(), p_dash, ws.data());
  133|       |         return r;
  134|       |      }
  135|   332k|   }
  136|       |
  137|      0|   word3<W> accum;
  138|       |
  139|   332k|   accum.add(z[0]);
  140|       |
  141|   332k|   ws[0] = accum.monty_step(p[0], p_dash);
  142|       |
  143|   332k|   for(size_t i = 1; i != N; ++i) {
  ------------------
  |  Branch (143:22): [True: 0, False: 332k]
  ------------------
  144|      0|      for(size_t j = 0; j < i; ++j) {
  ------------------
  |  Branch (144:25): [True: 0, False: 0]
  ------------------
  145|      0|         accum.mul(ws[j], p[i - j]);
  146|      0|      }
  147|       |
  148|      0|      accum.add(z[i]);
  149|       |
  150|      0|      ws[i] = accum.monty_step(p[0], p_dash);
  151|      0|   }
  152|       |
  153|   332k|   for(size_t i = 0; i != N - 1; ++i) {
  ------------------
  |  Branch (153:22): [True: 0, False: 332k]
  ------------------
  154|      0|      for(size_t j = i + 1; j != N; ++j) {
  ------------------
  |  Branch (154:29): [True: 0, False: 0]
  ------------------
  155|      0|         accum.mul(ws[j], p[N + i - j]);
  156|      0|      }
  157|       |
  158|      0|      accum.add(z[N + i]);
  159|       |
  160|      0|      ws[i] = accum.extract();
  161|      0|   }
  162|       |
  163|   332k|   accum.add(z[2 * N - 1]);
  164|       |
  165|   332k|   ws[N - 1] = accum.extract();
  166|       |   // w1 is the final part, which is not stored in the workspace
  167|   332k|   const W w1 = accum.extract();
  168|       |
  169|   332k|   bigint_monty_maybe_sub<N>(r.data(), w1, ws.data(), p.data());
  170|       |
  171|   332k|   return r;
  172|   332k|}
_ZN5Botan14bytes_to_wordsITkNS_8WordTypeEmLm4ELm28EEEDaNSt3__14spanIKhXT1_EEE:
  287|    449|inline constexpr auto bytes_to_words(std::span<const uint8_t, L> bytes) {
  288|    449|   static_assert(L <= WordInfo<W>::bytes * N);
  289|       |
  290|    449|   std::array<W, N> r = {};
  291|       |
  292|    449|   constexpr size_t full_words = L / WordInfo<W>::bytes;
  293|    449|   constexpr size_t extra_bytes = L % WordInfo<W>::bytes;
  294|       |
  295|    449|   static_assert(full_words + (extra_bytes ? 1 : 0) <= N);
  296|       |
  297|  1.79k|   for(size_t i = 0; i != full_words; ++i) {
  ------------------
  |  Branch (297:22): [True: 1.34k, False: 449]
  ------------------
  298|  1.34k|      r[i] = load_be<W>(bytes.data(), full_words - 1 - i);
  299|  1.34k|   }
  300|       |
  301|    449|   if constexpr(extra_bytes > 0) {
  302|    449|      constexpr size_t shift = extra_bytes * 8;
  303|    449|      shift_left<shift>(r);
  304|       |
  305|  2.24k|      for(size_t i = 0; i != extra_bytes; ++i) {
  ------------------
  |  Branch (305:25): [True: 1.79k, False: 449]
  ------------------
  306|  1.79k|         const W b0 = bytes[WordInfo<W>::bytes * full_words + i];
  307|  1.79k|         r[0] |= (b0 << (8 * (extra_bytes - 1 - i)));
  308|  1.79k|      }
  309|    449|   }
  310|       |
  311|    449|   return r;
  312|    449|}
_ZN5Botan10monty_redcITkNS_8WordTypeEmLm9EEENSt3__15arrayIT_XT0_EEERKNS2_IS3_XmlLi2ET0_EEERKS4_S3_:
  110|    749|   -> std::array<W, N> {
  111|    749|   static_assert(N >= 1);
  112|       |
  113|    749|   std::array<W, N> ws;  // NOLINT(*-member-init)
  114|    749|   std::array<W, N> r;   // NOLINT(*-member-init)
  115|       |
  116|       |   // Conditional ok: the parameter size is public
  117|    749|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (117:7): [True: 749, Folded]
  ------------------
  118|       |      // This range ensures we cover fields of 256, 384 and 512 bits for both 32 and 64 bit words
  119|       |      if constexpr(N == 4) {
  120|       |         bigint_monty_redc_4(r.data(), z.data(), p.data(), p_dash, ws.data());
  121|       |         return r;
  122|       |      } else if constexpr(N == 6) {
  123|       |         bigint_monty_redc_6(r.data(), z.data(), p.data(), p_dash, ws.data());
  124|       |         return r;
  125|       |      } else if constexpr(N == 8) {
  126|       |         bigint_monty_redc_8(r.data(), z.data(), p.data(), p_dash, ws.data());
  127|       |         return r;
  128|       |      } else if constexpr(N == 12) {
  129|       |         bigint_monty_redc_12(r.data(), z.data(), p.data(), p_dash, ws.data());
  130|       |         return r;
  131|    749|      } else if constexpr(N == 16) {
  132|    749|         bigint_monty_redc_16(r.data(), z.data(), p.data(), p_dash, ws.data());
  133|    749|         return r;
  134|    749|      }
  135|    749|   }
  136|       |
  137|    749|   word3<W> accum;
  138|       |
  139|    749|   accum.add(z[0]);
  140|       |
  141|    749|   ws[0] = accum.monty_step(p[0], p_dash);
  142|       |
  143|  6.74k|   for(size_t i = 1; i != N; ++i) {
  ------------------
  |  Branch (143:22): [True: 5.99k, False: 749]
  ------------------
  144|  32.9k|      for(size_t j = 0; j < i; ++j) {
  ------------------
  |  Branch (144:25): [True: 26.9k, False: 5.99k]
  ------------------
  145|  26.9k|         accum.mul(ws[j], p[i - j]);
  146|  26.9k|      }
  147|       |
  148|  5.99k|      accum.add(z[i]);
  149|       |
  150|  5.99k|      ws[i] = accum.monty_step(p[0], p_dash);
  151|  5.99k|   }
  152|       |
  153|  6.74k|   for(size_t i = 0; i != N - 1; ++i) {
  ------------------
  |  Branch (153:22): [True: 5.99k, False: 749]
  ------------------
  154|  32.9k|      for(size_t j = i + 1; j != N; ++j) {
  ------------------
  |  Branch (154:29): [True: 26.9k, False: 5.99k]
  ------------------
  155|  26.9k|         accum.mul(ws[j], p[N + i - j]);
  156|  26.9k|      }
  157|       |
  158|  5.99k|      accum.add(z[N + i]);
  159|       |
  160|  5.99k|      ws[i] = accum.extract();
  161|  5.99k|   }
  162|       |
  163|    749|   accum.add(z[2 * N - 1]);
  164|       |
  165|    749|   ws[N - 1] = accum.extract();
  166|       |   // w1 is the final part, which is not stored in the workspace
  167|    749|   const W w1 = accum.extract();
  168|       |
  169|    749|   bigint_monty_maybe_sub<N>(r.data(), w1, ws.data(), p.data());
  170|       |
  171|    749|   return r;
  172|    749|}
_ZN5Botan14bytes_to_wordsITkNS_8WordTypeEmLm9ELm66EEEDaNSt3__14spanIKhXT1_EEE:
  287|    467|inline constexpr auto bytes_to_words(std::span<const uint8_t, L> bytes) {
  288|    467|   static_assert(L <= WordInfo<W>::bytes * N);
  289|       |
  290|    467|   std::array<W, N> r = {};
  291|       |
  292|    467|   constexpr size_t full_words = L / WordInfo<W>::bytes;
  293|    467|   constexpr size_t extra_bytes = L % WordInfo<W>::bytes;
  294|       |
  295|    467|   static_assert(full_words + (extra_bytes ? 1 : 0) <= N);
  296|       |
  297|  4.20k|   for(size_t i = 0; i != full_words; ++i) {
  ------------------
  |  Branch (297:22): [True: 3.73k, False: 467]
  ------------------
  298|  3.73k|      r[i] = load_be<W>(bytes.data(), full_words - 1 - i);
  299|  3.73k|   }
  300|       |
  301|    467|   if constexpr(extra_bytes > 0) {
  302|    467|      constexpr size_t shift = extra_bytes * 8;
  303|    467|      shift_left<shift>(r);
  304|       |
  305|  1.40k|      for(size_t i = 0; i != extra_bytes; ++i) {
  ------------------
  |  Branch (305:25): [True: 934, False: 467]
  ------------------
  306|    934|         const W b0 = bytes[WordInfo<W>::bytes * full_words + i];
  307|    934|         r[0] |= (b0 << (8 * (extra_bytes - 1 - i)));
  308|    934|      }
  309|    467|   }
  310|       |
  311|    467|   return r;
  312|    467|}

pcurves_brainpool256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE8instanceEv:
  344|  1.74k|      static std::shared_ptr<const PrimeOrderCurve> instance() {
  345|  1.74k|         static auto g_curve = std::make_shared<const PrimeOrderCurveImpl<C>>();
  346|  1.74k|         return g_curve;
  347|  1.74k|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEEC2Ev:
  342|      1|      PrimeOrderCurveImpl() : m_mul_by_g(C::G) {}
pcurves_brainpool256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE19field_element_bytesEv:
   36|    328|      size_t field_element_bytes() const override { return C::FieldElement::BYTES; }
pcurves_brainpool256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE8mul_by_gERKNS0_15PrimeOrderCurve6ScalarERNS_21RandomNumberGeneratorE:
   38|    164|      ProjectivePoint mul_by_g(const Scalar& scalar, RandomNumberGenerator& rng) const override {
   39|    164|         return stash(m_mul_by_g.mul(from_stash(scalar), rng));
   40|    164|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE5stashERKNS_20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEESA_EE:
  376|    164|      static ProjectivePoint stash(const typename C::ProjectivePoint& pt) {
  377|    164|         auto x_w = pt.x().template stash_value<StorageWords>();
  378|    164|         auto y_w = pt.y().template stash_value<StorageWords>();
  379|    164|         auto z_w = pt.z().template stash_value<StorageWords>();
  380|    164|         return ProjectivePoint::_create(instance(), x_w, y_w, z_w);
  381|    164|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE10from_stashERKNS0_15PrimeOrderCurve6ScalarE:
  354|    546|      static typename C::Scalar from_stash(const Scalar& s) {
  355|    546|         if(s._curve() != instance()) {
  ------------------
  |  Branch (355:13): [True: 0, False: 546]
  ------------------
  356|      0|            throw Invalid_Argument("Curve mismatch");
  357|      0|         }
  358|    546|         return C::Scalar::from_stash(s._value());
  359|    546|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE5stashERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES7_E12ScalarParamsEEEEE:
  350|    191|      static Scalar stash(const typename C::Scalar& s) {
  351|    191|         return Scalar::_create(instance(), s.template stash_value<StorageWords>());
  352|    191|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE10from_stashERKNS0_15PrimeOrderCurve11AffinePointE:
  367|    328|      static typename C::AffinePoint from_stash(const AffinePoint& pt) {
  368|    328|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (368:13): [True: 0, False: 328]
  ------------------
  369|      0|            throw Invalid_Argument("Curve mismatch");
  370|      0|         }
  371|    328|         auto x = C::FieldElement::from_stash(pt._x());
  372|    328|         auto y = C::FieldElement::from_stash(pt._y());
  373|    328|         return typename C::AffinePoint(x, y);
  374|    328|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE5stashERKNS_16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEEEE:
  361|    164|      static AffinePoint stash(const typename C::AffinePoint& pt) {
  362|    164|         auto x_w = pt.x().template stash_value<StorageWords>();
  363|    164|         auto y_w = pt.y().template stash_value<StorageWords>();
  364|    164|         return AffinePoint::_create(instance(), x_w, y_w);
  365|    164|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE18deserialize_scalarENSt3__14spanIKhLm18446744073709551615EEE:
  224|    192|      std::optional<Scalar> deserialize_scalar(std::span<const uint8_t> bytes) const override {
  225|    192|         if(auto scalar = C::Scalar::deserialize(bytes)) {
  ------------------
  |  Branch (225:18): [True: 192, False: 0]
  ------------------
  226|    192|            if(!scalar->is_zero().as_bool()) {
  ------------------
  |  Branch (226:16): [True: 191, False: 1]
  ------------------
  227|    191|               return stash(*scalar);
  228|    191|            }
  229|    192|         }
  230|       |
  231|      1|         return {};
  232|    192|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE15point_to_affineERKNS0_15PrimeOrderCurve15ProjectivePointE:
  192|    164|      AffinePoint point_to_affine(const ProjectivePoint& pt) const override {
  193|    164|         auto affine = to_affine<C>(from_stash(pt));
  194|       |
  195|    164|         const auto y2 = affine.y().square();
  196|    164|         const auto x3_ax_b = C::x3_ax_b(affine.x());
  197|    164|         const auto valid_point = affine.is_identity() || (y2 == x3_ax_b);
  198|       |
  199|    164|         BOTAN_ASSERT(valid_point.as_bool(), "Computed point is on the curve");
  ------------------
  |  |   64|    164|   do {                                                                                 \
  |  |   65|    164|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|    164|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 164]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|    164|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 164]
  |  |  ------------------
  ------------------
  200|       |
  201|    164|         return stash(affine);
  202|    164|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE10from_stashERKNS0_15PrimeOrderCurve15ProjectivePointE:
  383|    164|      static typename C::ProjectivePoint from_stash(const ProjectivePoint& pt) {
  384|    164|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (384:13): [True: 0, False: 164]
  ------------------
  385|      0|            throw Invalid_Argument("Curve mismatch");
  386|      0|         }
  387|    164|         auto x = C::FieldElement::from_stash(pt._x());
  388|    164|         auto y = C::FieldElement::from_stash(pt._y());
  389|    164|         auto z = C::FieldElement::from_stash(pt._z());
  390|    164|         return typename C::ProjectivePoint(x, y, z);
  391|    164|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE24affine_point_is_identityERKNS0_15PrimeOrderCurve11AffinePointE:
  210|    164|      bool affine_point_is_identity(const AffinePoint& pt) const override {
  211|    164|         return from_stash(pt).is_identity().as_bool();
  212|    164|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE15serialize_pointENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve11AffinePointE:
  214|    164|      void serialize_point(std::span<uint8_t> bytes, const AffinePoint& pt) const override {
  215|    164|         BOTAN_ARG_CHECK(bytes.size() == C::AffinePoint::BYTES, "Invalid length for serialize_point");
  ------------------
  |  |   35|    164|   do {                                                          \
  |  |   36|    164|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    164|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 164]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    164|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 164]
  |  |  ------------------
  ------------------
  216|    164|         from_stash(pt).serialize_to(bytes.subspan<0, C::AffinePoint::BYTES>());
  217|    164|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE16serialize_scalarENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve6ScalarE:
  219|    191|      void serialize_scalar(std::span<uint8_t> bytes, const Scalar& scalar) const override {
  220|    191|         BOTAN_ARG_CHECK(bytes.size() == C::Scalar::BYTES, "Invalid length to serialize_scalar");
  ------------------
  |  |   35|    191|   do {                                                          \
  |  |   36|    191|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    191|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 191]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    191|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 191]
  |  |  ------------------
  ------------------
  221|    191|         return from_stash(scalar).serialize_to(bytes.subspan<0, C::Scalar::BYTES>());
  222|    191|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE14scalar_is_zeroERKNS0_15PrimeOrderCurve6ScalarE:
  332|    191|      bool scalar_is_zero(const Scalar& s) const override { return from_stash(s).is_zero().as_bool(); }
pcurves_brainpool384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE8instanceEv:
  344|  1.57k|      static std::shared_ptr<const PrimeOrderCurve> instance() {
  345|  1.57k|         static auto g_curve = std::make_shared<const PrimeOrderCurveImpl<C>>();
  346|  1.57k|         return g_curve;
  347|  1.57k|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEEC2Ev:
  342|      1|      PrimeOrderCurveImpl() : m_mul_by_g(C::G) {}
pcurves_brainpool384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE19field_element_bytesEv:
   36|    292|      size_t field_element_bytes() const override { return C::FieldElement::BYTES; }
pcurves_brainpool384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE8mul_by_gERKNS0_15PrimeOrderCurve6ScalarERNS_21RandomNumberGeneratorE:
   38|    146|      ProjectivePoint mul_by_g(const Scalar& scalar, RandomNumberGenerator& rng) const override {
   39|    146|         return stash(m_mul_by_g.mul(from_stash(scalar), rng));
   40|    146|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE5stashERKNS_20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEESA_EE:
  376|    146|      static ProjectivePoint stash(const typename C::ProjectivePoint& pt) {
  377|    146|         auto x_w = pt.x().template stash_value<StorageWords>();
  378|    146|         auto y_w = pt.y().template stash_value<StorageWords>();
  379|    146|         auto z_w = pt.z().template stash_value<StorageWords>();
  380|    146|         return ProjectivePoint::_create(instance(), x_w, y_w, z_w);
  381|    146|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE10from_stashERKNS0_15PrimeOrderCurve6ScalarE:
  354|    496|      static typename C::Scalar from_stash(const Scalar& s) {
  355|    496|         if(s._curve() != instance()) {
  ------------------
  |  Branch (355:13): [True: 0, False: 496]
  ------------------
  356|      0|            throw Invalid_Argument("Curve mismatch");
  357|      0|         }
  358|    496|         return C::Scalar::from_stash(s._value());
  359|    496|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE5stashERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES7_E12ScalarParamsEEEEE:
  350|    175|      static Scalar stash(const typename C::Scalar& s) {
  351|    175|         return Scalar::_create(instance(), s.template stash_value<StorageWords>());
  352|    175|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE10from_stashERKNS0_15PrimeOrderCurve11AffinePointE:
  367|    292|      static typename C::AffinePoint from_stash(const AffinePoint& pt) {
  368|    292|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (368:13): [True: 0, False: 292]
  ------------------
  369|      0|            throw Invalid_Argument("Curve mismatch");
  370|      0|         }
  371|    292|         auto x = C::FieldElement::from_stash(pt._x());
  372|    292|         auto y = C::FieldElement::from_stash(pt._y());
  373|    292|         return typename C::AffinePoint(x, y);
  374|    292|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE5stashERKNS_16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEEEE:
  361|    146|      static AffinePoint stash(const typename C::AffinePoint& pt) {
  362|    146|         auto x_w = pt.x().template stash_value<StorageWords>();
  363|    146|         auto y_w = pt.y().template stash_value<StorageWords>();
  364|    146|         return AffinePoint::_create(instance(), x_w, y_w);
  365|    146|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE18deserialize_scalarENSt3__14spanIKhLm18446744073709551615EEE:
  224|    176|      std::optional<Scalar> deserialize_scalar(std::span<const uint8_t> bytes) const override {
  225|    176|         if(auto scalar = C::Scalar::deserialize(bytes)) {
  ------------------
  |  Branch (225:18): [True: 176, False: 0]
  ------------------
  226|    176|            if(!scalar->is_zero().as_bool()) {
  ------------------
  |  Branch (226:16): [True: 175, False: 1]
  ------------------
  227|    175|               return stash(*scalar);
  228|    175|            }
  229|    176|         }
  230|       |
  231|      1|         return {};
  232|    176|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE15point_to_affineERKNS0_15PrimeOrderCurve15ProjectivePointE:
  192|    146|      AffinePoint point_to_affine(const ProjectivePoint& pt) const override {
  193|    146|         auto affine = to_affine<C>(from_stash(pt));
  194|       |
  195|    146|         const auto y2 = affine.y().square();
  196|    146|         const auto x3_ax_b = C::x3_ax_b(affine.x());
  197|    146|         const auto valid_point = affine.is_identity() || (y2 == x3_ax_b);
  198|       |
  199|    146|         BOTAN_ASSERT(valid_point.as_bool(), "Computed point is on the curve");
  ------------------
  |  |   64|    146|   do {                                                                                 \
  |  |   65|    146|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|    146|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 146]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|    146|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 146]
  |  |  ------------------
  ------------------
  200|       |
  201|    146|         return stash(affine);
  202|    146|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE10from_stashERKNS0_15PrimeOrderCurve15ProjectivePointE:
  383|    146|      static typename C::ProjectivePoint from_stash(const ProjectivePoint& pt) {
  384|    146|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (384:13): [True: 0, False: 146]
  ------------------
  385|      0|            throw Invalid_Argument("Curve mismatch");
  386|      0|         }
  387|    146|         auto x = C::FieldElement::from_stash(pt._x());
  388|    146|         auto y = C::FieldElement::from_stash(pt._y());
  389|    146|         auto z = C::FieldElement::from_stash(pt._z());
  390|    146|         return typename C::ProjectivePoint(x, y, z);
  391|    146|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE24affine_point_is_identityERKNS0_15PrimeOrderCurve11AffinePointE:
  210|    146|      bool affine_point_is_identity(const AffinePoint& pt) const override {
  211|    146|         return from_stash(pt).is_identity().as_bool();
  212|    146|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE15serialize_pointENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve11AffinePointE:
  214|    146|      void serialize_point(std::span<uint8_t> bytes, const AffinePoint& pt) const override {
  215|    146|         BOTAN_ARG_CHECK(bytes.size() == C::AffinePoint::BYTES, "Invalid length for serialize_point");
  ------------------
  |  |   35|    146|   do {                                                          \
  |  |   36|    146|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    146|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 146]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    146|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 146]
  |  |  ------------------
  ------------------
  216|    146|         from_stash(pt).serialize_to(bytes.subspan<0, C::AffinePoint::BYTES>());
  217|    146|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE16serialize_scalarENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve6ScalarE:
  219|    175|      void serialize_scalar(std::span<uint8_t> bytes, const Scalar& scalar) const override {
  220|    175|         BOTAN_ARG_CHECK(bytes.size() == C::Scalar::BYTES, "Invalid length to serialize_scalar");
  ------------------
  |  |   35|    175|   do {                                                          \
  |  |   36|    175|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    175|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 175]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    175|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 175]
  |  |  ------------------
  ------------------
  221|    175|         return from_stash(scalar).serialize_to(bytes.subspan<0, C::Scalar::BYTES>());
  222|    175|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE14scalar_is_zeroERKNS0_15PrimeOrderCurve6ScalarE:
  332|    175|      bool scalar_is_zero(const Scalar& s) const override { return from_stash(s).is_zero().as_bool(); }
pcurves_brainpool512r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE8instanceEv:
  344|  1.80k|      static std::shared_ptr<const PrimeOrderCurve> instance() {
  345|  1.80k|         static auto g_curve = std::make_shared<const PrimeOrderCurveImpl<C>>();
  346|  1.80k|         return g_curve;
  347|  1.80k|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEEC2Ev:
  342|      1|      PrimeOrderCurveImpl() : m_mul_by_g(C::G) {}
pcurves_brainpool512r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE19field_element_bytesEv:
   36|    342|      size_t field_element_bytes() const override { return C::FieldElement::BYTES; }
pcurves_brainpool512r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE8mul_by_gERKNS0_15PrimeOrderCurve6ScalarERNS_21RandomNumberGeneratorE:
   38|    171|      ProjectivePoint mul_by_g(const Scalar& scalar, RandomNumberGenerator& rng) const override {
   39|    171|         return stash(m_mul_by_g.mul(from_stash(scalar), rng));
   40|    171|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE5stashERKNS_20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEESA_EE:
  376|    171|      static ProjectivePoint stash(const typename C::ProjectivePoint& pt) {
  377|    171|         auto x_w = pt.x().template stash_value<StorageWords>();
  378|    171|         auto y_w = pt.y().template stash_value<StorageWords>();
  379|    171|         auto z_w = pt.z().template stash_value<StorageWords>();
  380|    171|         return ProjectivePoint::_create(instance(), x_w, y_w, z_w);
  381|    171|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE10from_stashERKNS0_15PrimeOrderCurve6ScalarE:
  354|    559|      static typename C::Scalar from_stash(const Scalar& s) {
  355|    559|         if(s._curve() != instance()) {
  ------------------
  |  Branch (355:13): [True: 0, False: 559]
  ------------------
  356|      0|            throw Invalid_Argument("Curve mismatch");
  357|      0|         }
  358|    559|         return C::Scalar::from_stash(s._value());
  359|    559|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE5stashERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES7_E12ScalarParamsEEEEE:
  350|    194|      static Scalar stash(const typename C::Scalar& s) {
  351|    194|         return Scalar::_create(instance(), s.template stash_value<StorageWords>());
  352|    194|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE10from_stashERKNS0_15PrimeOrderCurve11AffinePointE:
  367|    342|      static typename C::AffinePoint from_stash(const AffinePoint& pt) {
  368|    342|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (368:13): [True: 0, False: 342]
  ------------------
  369|      0|            throw Invalid_Argument("Curve mismatch");
  370|      0|         }
  371|    342|         auto x = C::FieldElement::from_stash(pt._x());
  372|    342|         auto y = C::FieldElement::from_stash(pt._y());
  373|    342|         return typename C::AffinePoint(x, y);
  374|    342|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE5stashERKNS_16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEEEE:
  361|    171|      static AffinePoint stash(const typename C::AffinePoint& pt) {
  362|    171|         auto x_w = pt.x().template stash_value<StorageWords>();
  363|    171|         auto y_w = pt.y().template stash_value<StorageWords>();
  364|    171|         return AffinePoint::_create(instance(), x_w, y_w);
  365|    171|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE18deserialize_scalarENSt3__14spanIKhLm18446744073709551615EEE:
  224|    195|      std::optional<Scalar> deserialize_scalar(std::span<const uint8_t> bytes) const override {
  225|    195|         if(auto scalar = C::Scalar::deserialize(bytes)) {
  ------------------
  |  Branch (225:18): [True: 195, False: 0]
  ------------------
  226|    195|            if(!scalar->is_zero().as_bool()) {
  ------------------
  |  Branch (226:16): [True: 194, False: 1]
  ------------------
  227|    194|               return stash(*scalar);
  228|    194|            }
  229|    195|         }
  230|       |
  231|      1|         return {};
  232|    195|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE15point_to_affineERKNS0_15PrimeOrderCurve15ProjectivePointE:
  192|    171|      AffinePoint point_to_affine(const ProjectivePoint& pt) const override {
  193|    171|         auto affine = to_affine<C>(from_stash(pt));
  194|       |
  195|    171|         const auto y2 = affine.y().square();
  196|    171|         const auto x3_ax_b = C::x3_ax_b(affine.x());
  197|    171|         const auto valid_point = affine.is_identity() || (y2 == x3_ax_b);
  198|       |
  199|    171|         BOTAN_ASSERT(valid_point.as_bool(), "Computed point is on the curve");
  ------------------
  |  |   64|    171|   do {                                                                                 \
  |  |   65|    171|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|    171|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 171]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|    171|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 171]
  |  |  ------------------
  ------------------
  200|       |
  201|    171|         return stash(affine);
  202|    171|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE10from_stashERKNS0_15PrimeOrderCurve15ProjectivePointE:
  383|    171|      static typename C::ProjectivePoint from_stash(const ProjectivePoint& pt) {
  384|    171|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (384:13): [True: 0, False: 171]
  ------------------
  385|      0|            throw Invalid_Argument("Curve mismatch");
  386|      0|         }
  387|    171|         auto x = C::FieldElement::from_stash(pt._x());
  388|    171|         auto y = C::FieldElement::from_stash(pt._y());
  389|    171|         auto z = C::FieldElement::from_stash(pt._z());
  390|    171|         return typename C::ProjectivePoint(x, y, z);
  391|    171|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE24affine_point_is_identityERKNS0_15PrimeOrderCurve11AffinePointE:
  210|    171|      bool affine_point_is_identity(const AffinePoint& pt) const override {
  211|    171|         return from_stash(pt).is_identity().as_bool();
  212|    171|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE15serialize_pointENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve11AffinePointE:
  214|    171|      void serialize_point(std::span<uint8_t> bytes, const AffinePoint& pt) const override {
  215|    171|         BOTAN_ARG_CHECK(bytes.size() == C::AffinePoint::BYTES, "Invalid length for serialize_point");
  ------------------
  |  |   35|    171|   do {                                                          \
  |  |   36|    171|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    171|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 171]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    171|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 171]
  |  |  ------------------
  ------------------
  216|    171|         from_stash(pt).serialize_to(bytes.subspan<0, C::AffinePoint::BYTES>());
  217|    171|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE16serialize_scalarENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve6ScalarE:
  219|    194|      void serialize_scalar(std::span<uint8_t> bytes, const Scalar& scalar) const override {
  220|    194|         BOTAN_ARG_CHECK(bytes.size() == C::Scalar::BYTES, "Invalid length to serialize_scalar");
  ------------------
  |  |   35|    194|   do {                                                          \
  |  |   36|    194|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    194|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 194]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    194|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 194]
  |  |  ------------------
  ------------------
  221|    194|         return from_stash(scalar).serialize_to(bytes.subspan<0, C::Scalar::BYTES>());
  222|    194|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE14scalar_is_zeroERKNS0_15PrimeOrderCurve6ScalarE:
  332|    194|      bool scalar_is_zero(const Scalar& s) const override { return from_stash(s).is_zero().as_bool(); }
pcurves_secp224r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE8instanceEv:
  344|  2.33k|      static std::shared_ptr<const PrimeOrderCurve> instance() {
  345|  2.33k|         static auto g_curve = std::make_shared<const PrimeOrderCurveImpl<C>>();
  346|  2.33k|         return g_curve;
  347|  2.33k|      }
pcurves_secp224r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEEC2Ev:
  342|      1|      PrimeOrderCurveImpl() : m_mul_by_g(C::G) {}
pcurves_secp224r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE19field_element_bytesEv:
   36|    396|      size_t field_element_bytes() const override { return C::FieldElement::BYTES; }
pcurves_secp224r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE8mul_by_gERKNS0_15PrimeOrderCurve6ScalarERNS_21RandomNumberGeneratorE:
   38|    198|      ProjectivePoint mul_by_g(const Scalar& scalar, RandomNumberGenerator& rng) const override {
   39|    198|         return stash(m_mul_by_g.mul(from_stash(scalar), rng));
   40|    198|      }
pcurves_secp224r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE5stashERKNS_20ProjectiveCurvePointINS_6IntModINS3_12Secp224r1RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEESA_EE:
  376|    198|      static ProjectivePoint stash(const typename C::ProjectivePoint& pt) {
  377|    198|         auto x_w = pt.x().template stash_value<StorageWords>();
  378|    198|         auto y_w = pt.y().template stash_value<StorageWords>();
  379|    198|         auto z_w = pt.z().template stash_value<StorageWords>();
  380|    198|         return ProjectivePoint::_create(instance(), x_w, y_w, z_w);
  381|    198|      }
pcurves_secp224r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE10from_stashERKNS0_15PrimeOrderCurve6ScalarE:
  354|    772|      static typename C::Scalar from_stash(const Scalar& s) {
  355|    772|         if(s._curve() != instance()) {
  ------------------
  |  Branch (355:13): [True: 0, False: 772]
  ------------------
  356|      0|            throw Invalid_Argument("Curve mismatch");
  357|      0|         }
  358|    772|         return C::Scalar::from_stash(s._value());
  359|    772|      }
pcurves_secp224r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE5stashERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS3_12Secp224r1RepEE12ScalarParamsEEEEE:
  350|    287|      static Scalar stash(const typename C::Scalar& s) {
  351|    287|         return Scalar::_create(instance(), s.template stash_value<StorageWords>());
  352|    287|      }
pcurves_secp224r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE10from_stashERKNS0_15PrimeOrderCurve11AffinePointE:
  367|    396|      static typename C::AffinePoint from_stash(const AffinePoint& pt) {
  368|    396|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (368:13): [True: 0, False: 396]
  ------------------
  369|      0|            throw Invalid_Argument("Curve mismatch");
  370|      0|         }
  371|    396|         auto x = C::FieldElement::from_stash(pt._x());
  372|    396|         auto y = C::FieldElement::from_stash(pt._y());
  373|    396|         return typename C::AffinePoint(x, y);
  374|    396|      }
pcurves_secp224r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE5stashERKNS_16AffineCurvePointINS_6IntModINS3_12Secp224r1RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEEEE:
  361|    198|      static AffinePoint stash(const typename C::AffinePoint& pt) {
  362|    198|         auto x_w = pt.x().template stash_value<StorageWords>();
  363|    198|         auto y_w = pt.y().template stash_value<StorageWords>();
  364|    198|         return AffinePoint::_create(instance(), x_w, y_w);
  365|    198|      }
pcurves_secp224r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE30deserialize_point_uncompressedENSt3__14spanIKhLm18446744073709551615EEE:
  244|     80|      std::optional<AffinePoint> deserialize_point_uncompressed(std::span<const uint8_t> bytes) const override {
  245|     80|         constexpr size_t FieldElementBytes = C::FieldElement::BYTES;
  246|     80|         constexpr size_t UncompressedBytes = 2 * C::FieldElement::BYTES + 1;
  247|       |
  248|     80|         if(bytes.size() == UncompressedBytes && bytes[0] == 0x04) {
  ------------------
  |  Branch (248:13): [True: 80, False: 0]
  |  Branch (248:50): [True: 80, False: 0]
  ------------------
  249|     80|            const auto encoded_point = bytes.subspan(1);
  250|     80|            auto x = C::FieldElement::deserialize(encoded_point.first(FieldElementBytes));
  251|     80|            auto y = C::FieldElement::deserialize(encoded_point.last(FieldElementBytes));
  252|       |
  253|     80|            if(x && y) {
  ------------------
  |  Branch (253:16): [True: 77, False: 3]
  |  Branch (253:21): [True: 76, False: 1]
  ------------------
  254|       |               // Check that y^2 = x^3 + ax + b
  255|     76|               const auto lhs = (*y).square();
  256|     76|               const auto rhs = C::x3_ax_b(*x);
  257|     76|               const auto valid = (lhs == rhs);
  258|     76|               if(valid.as_bool()) {
  ------------------
  |  Branch (258:19): [True: 0, False: 76]
  ------------------
  259|      0|                  return stash(typename C::AffinePoint(*x, *y));
  260|      0|               }
  261|     76|            }
  262|     80|         }
  263|       |
  264|     80|         return {};
  265|     80|      }
pcurves_secp224r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE18deserialize_scalarENSt3__14spanIKhLm18446744073709551615EEE:
  224|    289|      std::optional<Scalar> deserialize_scalar(std::span<const uint8_t> bytes) const override {
  225|    289|         if(auto scalar = C::Scalar::deserialize(bytes)) {
  ------------------
  |  Branch (225:18): [True: 288, False: 1]
  ------------------
  226|    288|            if(!scalar->is_zero().as_bool()) {
  ------------------
  |  Branch (226:16): [True: 287, False: 1]
  ------------------
  227|    287|               return stash(*scalar);
  228|    287|            }
  229|    288|         }
  230|       |
  231|      2|         return {};
  232|    289|      }
pcurves_secp224r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE15point_to_affineERKNS0_15PrimeOrderCurve15ProjectivePointE:
  192|    198|      AffinePoint point_to_affine(const ProjectivePoint& pt) const override {
  193|    198|         auto affine = to_affine<C>(from_stash(pt));
  194|       |
  195|    198|         const auto y2 = affine.y().square();
  196|    198|         const auto x3_ax_b = C::x3_ax_b(affine.x());
  197|    198|         const auto valid_point = affine.is_identity() || (y2 == x3_ax_b);
  198|       |
  199|    198|         BOTAN_ASSERT(valid_point.as_bool(), "Computed point is on the curve");
  ------------------
  |  |   64|    198|   do {                                                                                 \
  |  |   65|    198|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|    198|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 198]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|    198|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 198]
  |  |  ------------------
  ------------------
  200|       |
  201|    198|         return stash(affine);
  202|    198|      }
pcurves_secp224r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE10from_stashERKNS0_15PrimeOrderCurve15ProjectivePointE:
  383|    198|      static typename C::ProjectivePoint from_stash(const ProjectivePoint& pt) {
  384|    198|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (384:13): [True: 0, False: 198]
  ------------------
  385|      0|            throw Invalid_Argument("Curve mismatch");
  386|      0|         }
  387|    198|         auto x = C::FieldElement::from_stash(pt._x());
  388|    198|         auto y = C::FieldElement::from_stash(pt._y());
  389|    198|         auto z = C::FieldElement::from_stash(pt._z());
  390|    198|         return typename C::ProjectivePoint(x, y, z);
  391|    198|      }
pcurves_secp224r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE24affine_point_is_identityERKNS0_15PrimeOrderCurve11AffinePointE:
  210|    198|      bool affine_point_is_identity(const AffinePoint& pt) const override {
  211|    198|         return from_stash(pt).is_identity().as_bool();
  212|    198|      }
pcurves_secp224r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE15serialize_pointENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve11AffinePointE:
  214|    198|      void serialize_point(std::span<uint8_t> bytes, const AffinePoint& pt) const override {
  215|    198|         BOTAN_ARG_CHECK(bytes.size() == C::AffinePoint::BYTES, "Invalid length for serialize_point");
  ------------------
  |  |   35|    198|   do {                                                          \
  |  |   36|    198|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    198|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 198]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    198|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 198]
  |  |  ------------------
  ------------------
  216|    198|         from_stash(pt).serialize_to(bytes.subspan<0, C::AffinePoint::BYTES>());
  217|    198|      }
pcurves_secp224r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE16serialize_scalarENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve6ScalarE:
  219|    287|      void serialize_scalar(std::span<uint8_t> bytes, const Scalar& scalar) const override {
  220|    287|         BOTAN_ARG_CHECK(bytes.size() == C::Scalar::BYTES, "Invalid length to serialize_scalar");
  ------------------
  |  |   35|    287|   do {                                                          \
  |  |   36|    287|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    287|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 287]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    287|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 287]
  |  |  ------------------
  ------------------
  221|    287|         return from_stash(scalar).serialize_to(bytes.subspan<0, C::Scalar::BYTES>());
  222|    287|      }
pcurves_secp224r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE14scalar_is_zeroERKNS0_15PrimeOrderCurve6ScalarE:
  332|    287|      bool scalar_is_zero(const Scalar& s) const override { return from_stash(s).is_zero().as_bool(); }
pcurves_secp256k1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE8instanceEv:
  344|  1.67k|      static std::shared_ptr<const PrimeOrderCurve> instance() {
  345|  1.67k|         static auto g_curve = std::make_shared<const PrimeOrderCurveImpl<C>>();
  346|  1.67k|         return g_curve;
  347|  1.67k|      }
pcurves_secp256k1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEEC2Ev:
  342|      1|      PrimeOrderCurveImpl() : m_mul_by_g(C::G) {}
pcurves_secp256k1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE19field_element_bytesEv:
   36|    298|      size_t field_element_bytes() const override { return C::FieldElement::BYTES; }
pcurves_secp256k1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE8mul_by_gERKNS0_15PrimeOrderCurve6ScalarERNS_21RandomNumberGeneratorE:
   38|    149|      ProjectivePoint mul_by_g(const Scalar& scalar, RandomNumberGenerator& rng) const override {
   39|    149|         return stash(m_mul_by_g.mul(from_stash(scalar), rng));
   40|    149|      }
pcurves_secp256k1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE5stashERKNS_20ProjectiveCurvePointINS_6IntModINS3_12Secp256k1RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEESA_EE:
  376|    149|      static ProjectivePoint stash(const typename C::ProjectivePoint& pt) {
  377|    149|         auto x_w = pt.x().template stash_value<StorageWords>();
  378|    149|         auto y_w = pt.y().template stash_value<StorageWords>();
  379|    149|         auto z_w = pt.z().template stash_value<StorageWords>();
  380|    149|         return ProjectivePoint::_create(instance(), x_w, y_w, z_w);
  381|    149|      }
pcurves_secp256k1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE10from_stashERKNS0_15PrimeOrderCurve6ScalarE:
  354|    539|      static typename C::Scalar from_stash(const Scalar& s) {
  355|    539|         if(s._curve() != instance()) {
  ------------------
  |  Branch (355:13): [True: 0, False: 539]
  ------------------
  356|      0|            throw Invalid_Argument("Curve mismatch");
  357|      0|         }
  358|    539|         return C::Scalar::from_stash(s._value());
  359|    539|      }
pcurves_secp256k1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE5stashERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS3_12Secp256k1RepEE12ScalarParamsEEEEE:
  350|    195|      static Scalar stash(const typename C::Scalar& s) {
  351|    195|         return Scalar::_create(instance(), s.template stash_value<StorageWords>());
  352|    195|      }
pcurves_secp256k1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE10from_stashERKNS0_15PrimeOrderCurve11AffinePointE:
  367|    298|      static typename C::AffinePoint from_stash(const AffinePoint& pt) {
  368|    298|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (368:13): [True: 0, False: 298]
  ------------------
  369|      0|            throw Invalid_Argument("Curve mismatch");
  370|      0|         }
  371|    298|         auto x = C::FieldElement::from_stash(pt._x());
  372|    298|         auto y = C::FieldElement::from_stash(pt._y());
  373|    298|         return typename C::AffinePoint(x, y);
  374|    298|      }
pcurves_secp256k1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE5stashERKNS_16AffineCurvePointINS_6IntModINS3_12Secp256k1RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEEEE:
  361|    149|      static AffinePoint stash(const typename C::AffinePoint& pt) {
  362|    149|         auto x_w = pt.x().template stash_value<StorageWords>();
  363|    149|         auto y_w = pt.y().template stash_value<StorageWords>();
  364|    149|         return AffinePoint::_create(instance(), x_w, y_w);
  365|    149|      }
pcurves_secp256k1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE18deserialize_scalarENSt3__14spanIKhLm18446744073709551615EEE:
  224|    196|      std::optional<Scalar> deserialize_scalar(std::span<const uint8_t> bytes) const override {
  225|    196|         if(auto scalar = C::Scalar::deserialize(bytes)) {
  ------------------
  |  Branch (225:18): [True: 196, False: 0]
  ------------------
  226|    196|            if(!scalar->is_zero().as_bool()) {
  ------------------
  |  Branch (226:16): [True: 195, False: 1]
  ------------------
  227|    195|               return stash(*scalar);
  228|    195|            }
  229|    196|         }
  230|       |
  231|      1|         return {};
  232|    196|      }
pcurves_secp256k1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE15point_to_affineERKNS0_15PrimeOrderCurve15ProjectivePointE:
  192|    149|      AffinePoint point_to_affine(const ProjectivePoint& pt) const override {
  193|    149|         auto affine = to_affine<C>(from_stash(pt));
  194|       |
  195|    149|         const auto y2 = affine.y().square();
  196|    149|         const auto x3_ax_b = C::x3_ax_b(affine.x());
  197|    149|         const auto valid_point = affine.is_identity() || (y2 == x3_ax_b);
  198|       |
  199|    149|         BOTAN_ASSERT(valid_point.as_bool(), "Computed point is on the curve");
  ------------------
  |  |   64|    149|   do {                                                                                 \
  |  |   65|    149|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|    149|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 149]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|    149|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 149]
  |  |  ------------------
  ------------------
  200|       |
  201|    149|         return stash(affine);
  202|    149|      }
pcurves_secp256k1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE10from_stashERKNS0_15PrimeOrderCurve15ProjectivePointE:
  383|    149|      static typename C::ProjectivePoint from_stash(const ProjectivePoint& pt) {
  384|    149|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (384:13): [True: 0, False: 149]
  ------------------
  385|      0|            throw Invalid_Argument("Curve mismatch");
  386|      0|         }
  387|    149|         auto x = C::FieldElement::from_stash(pt._x());
  388|    149|         auto y = C::FieldElement::from_stash(pt._y());
  389|    149|         auto z = C::FieldElement::from_stash(pt._z());
  390|    149|         return typename C::ProjectivePoint(x, y, z);
  391|    149|      }
pcurves_secp256k1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE24affine_point_is_identityERKNS0_15PrimeOrderCurve11AffinePointE:
  210|    149|      bool affine_point_is_identity(const AffinePoint& pt) const override {
  211|    149|         return from_stash(pt).is_identity().as_bool();
  212|    149|      }
pcurves_secp256k1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE15serialize_pointENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve11AffinePointE:
  214|    149|      void serialize_point(std::span<uint8_t> bytes, const AffinePoint& pt) const override {
  215|    149|         BOTAN_ARG_CHECK(bytes.size() == C::AffinePoint::BYTES, "Invalid length for serialize_point");
  ------------------
  |  |   35|    149|   do {                                                          \
  |  |   36|    149|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    149|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 149]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    149|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 149]
  |  |  ------------------
  ------------------
  216|    149|         from_stash(pt).serialize_to(bytes.subspan<0, C::AffinePoint::BYTES>());
  217|    149|      }
pcurves_secp256k1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE16serialize_scalarENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve6ScalarE:
  219|    195|      void serialize_scalar(std::span<uint8_t> bytes, const Scalar& scalar) const override {
  220|    195|         BOTAN_ARG_CHECK(bytes.size() == C::Scalar::BYTES, "Invalid length to serialize_scalar");
  ------------------
  |  |   35|    195|   do {                                                          \
  |  |   36|    195|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    195|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 195]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    195|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 195]
  |  |  ------------------
  ------------------
  221|    195|         return from_stash(scalar).serialize_to(bytes.subspan<0, C::Scalar::BYTES>());
  222|    195|      }
pcurves_secp256k1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE14scalar_is_zeroERKNS0_15PrimeOrderCurve6ScalarE:
  332|    195|      bool scalar_is_zero(const Scalar& s) const override { return from_stash(s).is_zero().as_bool(); }
pcurves_secp256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE8instanceEv:
  344|    929|      static std::shared_ptr<const PrimeOrderCurve> instance() {
  345|    929|         static auto g_curve = std::make_shared<const PrimeOrderCurveImpl<C>>();
  346|    929|         return g_curve;
  347|    929|      }
pcurves_secp256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEEC2Ev:
  342|      1|      PrimeOrderCurveImpl() : m_mul_by_g(C::G) {}
pcurves_secp256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE19field_element_bytesEv:
   36|    170|      size_t field_element_bytes() const override { return C::FieldElement::BYTES; }
pcurves_secp256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE8mul_by_gERKNS0_15PrimeOrderCurve6ScalarERNS_21RandomNumberGeneratorE:
   38|     85|      ProjectivePoint mul_by_g(const Scalar& scalar, RandomNumberGenerator& rng) const override {
   39|     85|         return stash(m_mul_by_g.mul(from_stash(scalar), rng));
   40|     85|      }
pcurves_secp256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE5stashERKNS_20ProjectiveCurvePointINS_6IntModINS2_12Secp256r1RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEESA_EE:
  376|     85|      static ProjectivePoint stash(const typename C::ProjectivePoint& pt) {
  377|     85|         auto x_w = pt.x().template stash_value<StorageWords>();
  378|     85|         auto y_w = pt.y().template stash_value<StorageWords>();
  379|     85|         auto z_w = pt.z().template stash_value<StorageWords>();
  380|     85|         return ProjectivePoint::_create(instance(), x_w, y_w, z_w);
  381|     85|      }
pcurves_secp256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE10from_stashERKNS0_15PrimeOrderCurve6ScalarE:
  354|    255|      static typename C::Scalar from_stash(const Scalar& s) {
  355|    255|         if(s._curve() != instance()) {
  ------------------
  |  Branch (355:13): [True: 0, False: 255]
  ------------------
  356|      0|            throw Invalid_Argument("Curve mismatch");
  357|      0|         }
  358|    255|         return C::Scalar::from_stash(s._value());
  359|    255|      }
pcurves_secp256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE5stashERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS2_12Secp256r1RepEE12ScalarParamsEEEEE:
  350|     85|      static Scalar stash(const typename C::Scalar& s) {
  351|     85|         return Scalar::_create(instance(), s.template stash_value<StorageWords>());
  352|     85|      }
pcurves_secp256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE10from_stashERKNS0_15PrimeOrderCurve11AffinePointE:
  367|    170|      static typename C::AffinePoint from_stash(const AffinePoint& pt) {
  368|    170|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (368:13): [True: 0, False: 170]
  ------------------
  369|      0|            throw Invalid_Argument("Curve mismatch");
  370|      0|         }
  371|    170|         auto x = C::FieldElement::from_stash(pt._x());
  372|    170|         auto y = C::FieldElement::from_stash(pt._y());
  373|    170|         return typename C::AffinePoint(x, y);
  374|    170|      }
pcurves_secp256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE5stashERKNS_16AffineCurvePointINS_6IntModINS2_12Secp256r1RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEEEE:
  361|     85|      static AffinePoint stash(const typename C::AffinePoint& pt) {
  362|     85|         auto x_w = pt.x().template stash_value<StorageWords>();
  363|     85|         auto y_w = pt.y().template stash_value<StorageWords>();
  364|     85|         return AffinePoint::_create(instance(), x_w, y_w);
  365|     85|      }
pcurves_secp256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE18deserialize_scalarENSt3__14spanIKhLm18446744073709551615EEE:
  224|     86|      std::optional<Scalar> deserialize_scalar(std::span<const uint8_t> bytes) const override {
  225|     86|         if(auto scalar = C::Scalar::deserialize(bytes)) {
  ------------------
  |  Branch (225:18): [True: 86, False: 0]
  ------------------
  226|     86|            if(!scalar->is_zero().as_bool()) {
  ------------------
  |  Branch (226:16): [True: 85, False: 1]
  ------------------
  227|     85|               return stash(*scalar);
  228|     85|            }
  229|     86|         }
  230|       |
  231|      1|         return {};
  232|     86|      }
pcurves_secp256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE15point_to_affineERKNS0_15PrimeOrderCurve15ProjectivePointE:
  192|     85|      AffinePoint point_to_affine(const ProjectivePoint& pt) const override {
  193|     85|         auto affine = to_affine<C>(from_stash(pt));
  194|       |
  195|     85|         const auto y2 = affine.y().square();
  196|     85|         const auto x3_ax_b = C::x3_ax_b(affine.x());
  197|     85|         const auto valid_point = affine.is_identity() || (y2 == x3_ax_b);
  198|       |
  199|     85|         BOTAN_ASSERT(valid_point.as_bool(), "Computed point is on the curve");
  ------------------
  |  |   64|     85|   do {                                                                                 \
  |  |   65|     85|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|     85|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 85]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|     85|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 85]
  |  |  ------------------
  ------------------
  200|       |
  201|     85|         return stash(affine);
  202|     85|      }
pcurves_secp256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE10from_stashERKNS0_15PrimeOrderCurve15ProjectivePointE:
  383|     85|      static typename C::ProjectivePoint from_stash(const ProjectivePoint& pt) {
  384|     85|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (384:13): [True: 0, False: 85]
  ------------------
  385|      0|            throw Invalid_Argument("Curve mismatch");
  386|      0|         }
  387|     85|         auto x = C::FieldElement::from_stash(pt._x());
  388|     85|         auto y = C::FieldElement::from_stash(pt._y());
  389|     85|         auto z = C::FieldElement::from_stash(pt._z());
  390|     85|         return typename C::ProjectivePoint(x, y, z);
  391|     85|      }
pcurves_secp256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE24affine_point_is_identityERKNS0_15PrimeOrderCurve11AffinePointE:
  210|     85|      bool affine_point_is_identity(const AffinePoint& pt) const override {
  211|     85|         return from_stash(pt).is_identity().as_bool();
  212|     85|      }
pcurves_secp256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE15serialize_pointENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve11AffinePointE:
  214|     85|      void serialize_point(std::span<uint8_t> bytes, const AffinePoint& pt) const override {
  215|     85|         BOTAN_ARG_CHECK(bytes.size() == C::AffinePoint::BYTES, "Invalid length for serialize_point");
  ------------------
  |  |   35|     85|   do {                                                          \
  |  |   36|     85|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|     85|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 85]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|     85|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 85]
  |  |  ------------------
  ------------------
  216|     85|         from_stash(pt).serialize_to(bytes.subspan<0, C::AffinePoint::BYTES>());
  217|     85|      }
pcurves_secp256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE16serialize_scalarENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve6ScalarE:
  219|     85|      void serialize_scalar(std::span<uint8_t> bytes, const Scalar& scalar) const override {
  220|     85|         BOTAN_ARG_CHECK(bytes.size() == C::Scalar::BYTES, "Invalid length to serialize_scalar");
  ------------------
  |  |   35|     85|   do {                                                          \
  |  |   36|     85|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|     85|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 85]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|     85|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 85]
  |  |  ------------------
  ------------------
  221|     85|         return from_stash(scalar).serialize_to(bytes.subspan<0, C::Scalar::BYTES>());
  222|     85|      }
pcurves_secp256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE14scalar_is_zeroERKNS0_15PrimeOrderCurve6ScalarE:
  332|     85|      bool scalar_is_zero(const Scalar& s) const override { return from_stash(s).is_zero().as_bool(); }
pcurves_secp384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE8instanceEv:
  344|  1.76k|      static std::shared_ptr<const PrimeOrderCurve> instance() {
  345|  1.76k|         static auto g_curve = std::make_shared<const PrimeOrderCurveImpl<C>>();
  346|  1.76k|         return g_curve;
  347|  1.76k|      }
pcurves_secp384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEEC2Ev:
  342|      1|      PrimeOrderCurveImpl() : m_mul_by_g(C::G) {}
pcurves_secp384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE19field_element_bytesEv:
   36|    308|      size_t field_element_bytes() const override { return C::FieldElement::BYTES; }
pcurves_secp384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE8mul_by_gERKNS0_15PrimeOrderCurve6ScalarERNS_21RandomNumberGeneratorE:
   38|    154|      ProjectivePoint mul_by_g(const Scalar& scalar, RandomNumberGenerator& rng) const override {
   39|    154|         return stash(m_mul_by_g.mul(from_stash(scalar), rng));
   40|    154|      }
pcurves_secp384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE5stashERKNS_20ProjectiveCurvePointINS_6IntModINS2_12Secp384r1RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEESA_EE:
  376|    154|      static ProjectivePoint stash(const typename C::ProjectivePoint& pt) {
  377|    154|         auto x_w = pt.x().template stash_value<StorageWords>();
  378|    154|         auto y_w = pt.y().template stash_value<StorageWords>();
  379|    154|         auto z_w = pt.z().template stash_value<StorageWords>();
  380|    154|         return ProjectivePoint::_create(instance(), x_w, y_w, z_w);
  381|    154|      }
pcurves_secp384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE10from_stashERKNS0_15PrimeOrderCurve6ScalarE:
  354|    568|      static typename C::Scalar from_stash(const Scalar& s) {
  355|    568|         if(s._curve() != instance()) {
  ------------------
  |  Branch (355:13): [True: 0, False: 568]
  ------------------
  356|      0|            throw Invalid_Argument("Curve mismatch");
  357|      0|         }
  358|    568|         return C::Scalar::from_stash(s._value());
  359|    568|      }
pcurves_secp384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE5stashERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS2_12Secp384r1RepEE12ScalarParamsEEEEE:
  350|    207|      static Scalar stash(const typename C::Scalar& s) {
  351|    207|         return Scalar::_create(instance(), s.template stash_value<StorageWords>());
  352|    207|      }
pcurves_secp384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE10from_stashERKNS0_15PrimeOrderCurve11AffinePointE:
  367|    308|      static typename C::AffinePoint from_stash(const AffinePoint& pt) {
  368|    308|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (368:13): [True: 0, False: 308]
  ------------------
  369|      0|            throw Invalid_Argument("Curve mismatch");
  370|      0|         }
  371|    308|         auto x = C::FieldElement::from_stash(pt._x());
  372|    308|         auto y = C::FieldElement::from_stash(pt._y());
  373|    308|         return typename C::AffinePoint(x, y);
  374|    308|      }
pcurves_secp384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE5stashERKNS_16AffineCurvePointINS_6IntModINS2_12Secp384r1RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEEEE:
  361|    154|      static AffinePoint stash(const typename C::AffinePoint& pt) {
  362|    154|         auto x_w = pt.x().template stash_value<StorageWords>();
  363|    154|         auto y_w = pt.y().template stash_value<StorageWords>();
  364|    154|         return AffinePoint::_create(instance(), x_w, y_w);
  365|    154|      }
pcurves_secp384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE18deserialize_scalarENSt3__14spanIKhLm18446744073709551615EEE:
  224|    208|      std::optional<Scalar> deserialize_scalar(std::span<const uint8_t> bytes) const override {
  225|    208|         if(auto scalar = C::Scalar::deserialize(bytes)) {
  ------------------
  |  Branch (225:18): [True: 208, False: 0]
  ------------------
  226|    208|            if(!scalar->is_zero().as_bool()) {
  ------------------
  |  Branch (226:16): [True: 207, False: 1]
  ------------------
  227|    207|               return stash(*scalar);
  228|    207|            }
  229|    208|         }
  230|       |
  231|      1|         return {};
  232|    208|      }
pcurves_secp384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE15point_to_affineERKNS0_15PrimeOrderCurve15ProjectivePointE:
  192|    154|      AffinePoint point_to_affine(const ProjectivePoint& pt) const override {
  193|    154|         auto affine = to_affine<C>(from_stash(pt));
  194|       |
  195|    154|         const auto y2 = affine.y().square();
  196|    154|         const auto x3_ax_b = C::x3_ax_b(affine.x());
  197|    154|         const auto valid_point = affine.is_identity() || (y2 == x3_ax_b);
  198|       |
  199|    154|         BOTAN_ASSERT(valid_point.as_bool(), "Computed point is on the curve");
  ------------------
  |  |   64|    154|   do {                                                                                 \
  |  |   65|    154|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|    154|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 154]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|    154|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 154]
  |  |  ------------------
  ------------------
  200|       |
  201|    154|         return stash(affine);
  202|    154|      }
pcurves_secp384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE10from_stashERKNS0_15PrimeOrderCurve15ProjectivePointE:
  383|    154|      static typename C::ProjectivePoint from_stash(const ProjectivePoint& pt) {
  384|    154|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (384:13): [True: 0, False: 154]
  ------------------
  385|      0|            throw Invalid_Argument("Curve mismatch");
  386|      0|         }
  387|    154|         auto x = C::FieldElement::from_stash(pt._x());
  388|    154|         auto y = C::FieldElement::from_stash(pt._y());
  389|    154|         auto z = C::FieldElement::from_stash(pt._z());
  390|    154|         return typename C::ProjectivePoint(x, y, z);
  391|    154|      }
pcurves_secp384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE24affine_point_is_identityERKNS0_15PrimeOrderCurve11AffinePointE:
  210|    154|      bool affine_point_is_identity(const AffinePoint& pt) const override {
  211|    154|         return from_stash(pt).is_identity().as_bool();
  212|    154|      }
pcurves_secp384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE15serialize_pointENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve11AffinePointE:
  214|    154|      void serialize_point(std::span<uint8_t> bytes, const AffinePoint& pt) const override {
  215|    154|         BOTAN_ARG_CHECK(bytes.size() == C::AffinePoint::BYTES, "Invalid length for serialize_point");
  ------------------
  |  |   35|    154|   do {                                                          \
  |  |   36|    154|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    154|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 154]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    154|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 154]
  |  |  ------------------
  ------------------
  216|    154|         from_stash(pt).serialize_to(bytes.subspan<0, C::AffinePoint::BYTES>());
  217|    154|      }
pcurves_secp384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE16serialize_scalarENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve6ScalarE:
  219|    207|      void serialize_scalar(std::span<uint8_t> bytes, const Scalar& scalar) const override {
  220|    207|         BOTAN_ARG_CHECK(bytes.size() == C::Scalar::BYTES, "Invalid length to serialize_scalar");
  ------------------
  |  |   35|    207|   do {                                                          \
  |  |   36|    207|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    207|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 207]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    207|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 207]
  |  |  ------------------
  ------------------
  221|    207|         return from_stash(scalar).serialize_to(bytes.subspan<0, C::Scalar::BYTES>());
  222|    207|      }
pcurves_secp384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE14scalar_is_zeroERKNS0_15PrimeOrderCurve6ScalarE:
  332|    207|      bool scalar_is_zero(const Scalar& s) const override { return from_stash(s).is_zero().as_bool(); }
pcurves_secp521r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE8instanceEv:
  344|  2.21k|      static std::shared_ptr<const PrimeOrderCurve> instance() {
  345|  2.21k|         static auto g_curve = std::make_shared<const PrimeOrderCurveImpl<C>>();
  346|  2.21k|         return g_curve;
  347|  2.21k|      }
pcurves_secp521r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEEC2Ev:
  342|      1|      PrimeOrderCurveImpl() : m_mul_by_g(C::G) {}
pcurves_secp521r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE19field_element_bytesEv:
   36|    354|      size_t field_element_bytes() const override { return C::FieldElement::BYTES; }
pcurves_secp521r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE8mul_by_gERKNS0_15PrimeOrderCurve6ScalarERNS_21RandomNumberGeneratorE:
   38|    176|      ProjectivePoint mul_by_g(const Scalar& scalar, RandomNumberGenerator& rng) const override {
   39|    176|         return stash(m_mul_by_g.mul(from_stash(scalar), rng));
   40|    176|      }
pcurves_secp521r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE5stashERKNS_20ProjectiveCurvePointINS_6IntModINS3_7P521RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEESA_EE:
  376|    176|      static ProjectivePoint stash(const typename C::ProjectivePoint& pt) {
  377|    176|         auto x_w = pt.x().template stash_value<StorageWords>();
  378|    176|         auto y_w = pt.y().template stash_value<StorageWords>();
  379|    176|         auto z_w = pt.z().template stash_value<StorageWords>();
  380|    176|         return ProjectivePoint::_create(instance(), x_w, y_w, z_w);
  381|    176|      }
pcurves_secp521r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE10from_stashERKNS0_15PrimeOrderCurve6ScalarE:
  354|    748|      static typename C::Scalar from_stash(const Scalar& s) {
  355|    748|         if(s._curve() != instance()) {
  ------------------
  |  Branch (355:13): [True: 0, False: 748]
  ------------------
  356|      0|            throw Invalid_Argument("Curve mismatch");
  357|      0|         }
  358|    748|         return C::Scalar::from_stash(s._value());
  359|    748|      }
pcurves_secp521r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE5stashERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS3_7P521RepEE12ScalarParamsEEEEE:
  350|    286|      static Scalar stash(const typename C::Scalar& s) {
  351|    286|         return Scalar::_create(instance(), s.template stash_value<StorageWords>());
  352|    286|      }
pcurves_secp521r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE10from_stashERKNS0_15PrimeOrderCurve11AffinePointE:
  367|    354|      static typename C::AffinePoint from_stash(const AffinePoint& pt) {
  368|    354|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (368:13): [True: 0, False: 354]
  ------------------
  369|      0|            throw Invalid_Argument("Curve mismatch");
  370|      0|         }
  371|    354|         auto x = C::FieldElement::from_stash(pt._x());
  372|    354|         auto y = C::FieldElement::from_stash(pt._y());
  373|    354|         return typename C::AffinePoint(x, y);
  374|    354|      }
pcurves_secp521r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE5stashERKNS_16AffineCurvePointINS_6IntModINS3_7P521RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEEEE:
  361|    177|      static AffinePoint stash(const typename C::AffinePoint& pt) {
  362|    177|         auto x_w = pt.x().template stash_value<StorageWords>();
  363|    177|         auto y_w = pt.y().template stash_value<StorageWords>();
  364|    177|         return AffinePoint::_create(instance(), x_w, y_w);
  365|    177|      }
pcurves_secp521r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE30deserialize_point_uncompressedENSt3__14spanIKhLm18446744073709551615EEE:
  244|     89|      std::optional<AffinePoint> deserialize_point_uncompressed(std::span<const uint8_t> bytes) const override {
  245|     89|         constexpr size_t FieldElementBytes = C::FieldElement::BYTES;
  246|     89|         constexpr size_t UncompressedBytes = 2 * C::FieldElement::BYTES + 1;
  247|       |
  248|     89|         if(bytes.size() == UncompressedBytes && bytes[0] == 0x04) {
  ------------------
  |  Branch (248:13): [True: 89, False: 0]
  |  Branch (248:50): [True: 89, False: 0]
  ------------------
  249|     89|            const auto encoded_point = bytes.subspan(1);
  250|     89|            auto x = C::FieldElement::deserialize(encoded_point.first(FieldElementBytes));
  251|     89|            auto y = C::FieldElement::deserialize(encoded_point.last(FieldElementBytes));
  252|       |
  253|     89|            if(x && y) {
  ------------------
  |  Branch (253:16): [True: 84, False: 5]
  |  Branch (253:21): [True: 79, False: 5]
  ------------------
  254|       |               // Check that y^2 = x^3 + ax + b
  255|     79|               const auto lhs = (*y).square();
  256|     79|               const auto rhs = C::x3_ax_b(*x);
  257|     79|               const auto valid = (lhs == rhs);
  258|     79|               if(valid.as_bool()) {
  ------------------
  |  Branch (258:19): [True: 1, False: 78]
  ------------------
  259|      1|                  return stash(typename C::AffinePoint(*x, *y));
  260|      1|               }
  261|     79|            }
  262|     89|         }
  263|       |
  264|     88|         return {};
  265|     89|      }
pcurves_secp521r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE18deserialize_scalarENSt3__14spanIKhLm18446744073709551615EEE:
  224|    289|      std::optional<Scalar> deserialize_scalar(std::span<const uint8_t> bytes) const override {
  225|    289|         if(auto scalar = C::Scalar::deserialize(bytes)) {
  ------------------
  |  Branch (225:18): [True: 287, False: 2]
  ------------------
  226|    287|            if(!scalar->is_zero().as_bool()) {
  ------------------
  |  Branch (226:16): [True: 286, False: 1]
  ------------------
  227|    286|               return stash(*scalar);
  228|    286|            }
  229|    287|         }
  230|       |
  231|      3|         return {};
  232|    289|      }
pcurves_secp521r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE15point_to_affineERKNS0_15PrimeOrderCurve15ProjectivePointE:
  192|    176|      AffinePoint point_to_affine(const ProjectivePoint& pt) const override {
  193|    176|         auto affine = to_affine<C>(from_stash(pt));
  194|       |
  195|    176|         const auto y2 = affine.y().square();
  196|    176|         const auto x3_ax_b = C::x3_ax_b(affine.x());
  197|    176|         const auto valid_point = affine.is_identity() || (y2 == x3_ax_b);
  198|       |
  199|    176|         BOTAN_ASSERT(valid_point.as_bool(), "Computed point is on the curve");
  ------------------
  |  |   64|    176|   do {                                                                                 \
  |  |   65|    176|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|    176|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 176]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|    176|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 176]
  |  |  ------------------
  ------------------
  200|       |
  201|    176|         return stash(affine);
  202|    176|      }
pcurves_secp521r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE10from_stashERKNS0_15PrimeOrderCurve15ProjectivePointE:
  383|    176|      static typename C::ProjectivePoint from_stash(const ProjectivePoint& pt) {
  384|    176|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (384:13): [True: 0, False: 176]
  ------------------
  385|      0|            throw Invalid_Argument("Curve mismatch");
  386|      0|         }
  387|    176|         auto x = C::FieldElement::from_stash(pt._x());
  388|    176|         auto y = C::FieldElement::from_stash(pt._y());
  389|    176|         auto z = C::FieldElement::from_stash(pt._z());
  390|    176|         return typename C::ProjectivePoint(x, y, z);
  391|    176|      }
pcurves_secp521r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE24affine_point_is_identityERKNS0_15PrimeOrderCurve11AffinePointE:
  210|    177|      bool affine_point_is_identity(const AffinePoint& pt) const override {
  211|    177|         return from_stash(pt).is_identity().as_bool();
  212|    177|      }
pcurves_secp521r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE15serialize_pointENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve11AffinePointE:
  214|    177|      void serialize_point(std::span<uint8_t> bytes, const AffinePoint& pt) const override {
  215|    177|         BOTAN_ARG_CHECK(bytes.size() == C::AffinePoint::BYTES, "Invalid length for serialize_point");
  ------------------
  |  |   35|    177|   do {                                                          \
  |  |   36|    177|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    177|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 177]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    177|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 177]
  |  |  ------------------
  ------------------
  216|    177|         from_stash(pt).serialize_to(bytes.subspan<0, C::AffinePoint::BYTES>());
  217|    177|      }
pcurves_secp521r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE16serialize_scalarENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve6ScalarE:
  219|    286|      void serialize_scalar(std::span<uint8_t> bytes, const Scalar& scalar) const override {
  220|    286|         BOTAN_ARG_CHECK(bytes.size() == C::Scalar::BYTES, "Invalid length to serialize_scalar");
  ------------------
  |  |   35|    286|   do {                                                          \
  |  |   36|    286|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    286|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 286]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    286|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 286]
  |  |  ------------------
  ------------------
  221|    286|         return from_stash(scalar).serialize_to(bytes.subspan<0, C::Scalar::BYTES>());
  222|    286|      }
pcurves_secp521r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE14scalar_is_zeroERKNS0_15PrimeOrderCurve6ScalarE:
  332|    286|      bool scalar_is_zero(const Scalar& s) const override { return from_stash(s).is_zero().as_bool(); }

_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EEC2EOS4_:
  409|    900|      PolynomialVector(ThisPolynomialVector&& other) noexcept = default;
_ZNK5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EE4sizeEv:
  414|    857|      size_t size() const { return m_vec.size(); }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EED2Ev:
  412|  1.35k|      ~PolynomialVector() = default;
_ZN5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE0EED2Ev:
  274|  8.41k|      ~Polynomial() = default;
_ZN5Botan8CRYSTALS3nttITkNS0_14crystals_traitENS_19DilithiumPolyTraitsEEENS0_16PolynomialVectorIT_LNS0_6DomainE1EEENS3_IS4_LS5_0EEE:
  574|     75|PolynomialVector<Trait, Domain::NTT> ntt(PolynomialVector<Trait, Domain::Normal> polyvec) {
  575|     75|   auto polyvec_ntt = detail::domain_cast<Domain::NTT>(std::move(polyvec));
  576|    418|   for(auto& poly : polyvec_ntt) {
  ------------------
  |  Branch (576:19): [True: 418, False: 75]
  ------------------
  577|    418|      Trait::ntt(poly.coefficients());
  578|    418|   }
  579|     75|   return polyvec_ntt;
  580|     75|}
_ZN5Botan8CRYSTALS6detail11domain_castILNS0_6DomainE1ETtTyTnS3_ENS0_16PolynomialVectorETkNS0_14crystals_traitENS_19DilithiumPolyTraitsELS3_0EQneT_T2_EET0_IT1_XT_EEOS6_IS7_XT2_EE:
  163|     75|StructureT<Trait, To> domain_cast(StructureT<Trait, From>&& p) {
  164|       |   // The public factory method `from_domain_cast` is just a workaround for
  165|       |   // Xcode and NDK not understanding the friend declaration to allow this
  166|       |   // to directly call the private constructor.
  167|     75|   return StructureT<Trait, To>::from_domain_cast(std::move(p));
  168|     75|}
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE1EE16from_domain_castILS3_0EQneT0_TL0__EES4_ONS1_IS2_XT_EEE:
  396|     75|      static PolynomialVector<Trait, D> from_domain_cast(PolynomialVector<Trait, OtherD>&& other) {
  397|     75|         return PolynomialVector<Trait, D>(std::move(other));
  398|     75|      }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE1EEC2ILS3_0EQneT0_TL0__EEONS1_IS2_XT_EEE:
  379|     75|            m_polys_storage(std::move(other.m_polys_storage)) {
  380|     75|         BOTAN_DEBUG_ASSERT(m_polys_storage.size() % Trait::N == 0);
  ------------------
  |  |  130|     75|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|     75|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 75]
  |  |  ------------------
  ------------------
  381|     75|         const size_t vecsize = m_polys_storage.size() / Trait::N;
  382|    493|         for(size_t i = 0; i < vecsize; ++i) {
  ------------------
  |  Branch (382:28): [True: 418, False: 75]
  ------------------
  383|    418|            m_vec.emplace_back(
  384|    418|               Polynomial<Trait, D>(std::span{m_polys_storage}.subspan(i * Trait::N).template first<Trait::N>()));
  385|    418|         }
  386|     75|      }
_ZN5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE1EEC2EOS4_:
  261|  7.85k|            m_coeffs_storage(std::move(other.m_coeffs_storage)), m_coeffs(other.m_coeffs) {}
_ZN5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE1EEC2ENSt3__14spanIiLm256EEE:
  256|  3.69k|      explicit Polynomial(std::span<T, Trait::N> coeffs) : m_coeffs(coeffs) { BOTAN_DEBUG_ASSERT(!owns_storage()); }
  ------------------
  |  |  130|  3.69k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  3.69k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 3.69k]
  |  |  ------------------
  ------------------
_ZN5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE1EED2Ev:
  274|  11.5k|      ~Polynomial() = default;
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE1EE5beginEv:
  481|     75|      decltype(auto) begin() { return m_vec.begin(); }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE1EE3endEv:
  485|     75|      decltype(auto) end() { return m_vec.end(); }
_ZN5Botan8CRYSTALS10Trait_BaseINS_18DilithiumConstantsENS_19DilithiumPolyTraitsEE5fqmulEii:
   96|  1.76M|      static constexpr T fqmul(T a, T b) { return DerivedT::montgomery_reduce_coefficient(static_cast<T2>(a) * b); }
_ZN5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE1EE12coefficientsEv:
  302|  1.38k|      std::span<T, Trait::N> coefficients() { return m_coeffs; }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EEC2Em:
  401|    375|      explicit PolynomialVector(size_t vecsize) : m_polys_storage(vecsize * Trait::N) {
  402|  2.65k|         for(size_t i = 0; i < vecsize; ++i) {
  ------------------
  |  Branch (402:28): [True: 2.28k, False: 375]
  ------------------
  403|  2.28k|            m_vec.emplace_back(
  404|  2.28k|               Polynomial<Trait, D>(std::span{m_polys_storage}.subspan(i * Trait::N).template first<Trait::N>()));
  405|  2.28k|         }
  406|    375|      }
_ZN5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE0EEC2EOS4_:
  261|  5.65k|            m_coeffs_storage(std::move(other.m_coeffs_storage)), m_coeffs(other.m_coeffs) {}
_ZN5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE0EEC2ENSt3__14spanIiLm256EEE:
  256|  2.76k|      explicit Polynomial(std::span<T, Trait::N> coeffs) : m_coeffs(coeffs) { BOTAN_DEBUG_ASSERT(!owns_storage()); }
  ------------------
  |  |  130|  2.76k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  2.76k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 2.76k]
  |  |  ------------------
  ------------------
_ZNK5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EEixEm:
  479|   247k|      const Polynomial<Trait, D>& operator[](size_t i) const { return m_vec[i]; }
_ZNK5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE0EEixEm:
  308|   246k|      T operator[](size_t i) const { return m_coeffs[i]; }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EEixEm:
  477|   246k|      Polynomial<Trait, D>& operator[](size_t i) { return m_vec[i]; }
_ZN5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE0EEixEm:
  306|   246k|      T& operator[](size_t i) { return m_coeffs[i]; }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE1EED2Ev:
  412|    707|      ~PolynomialVector() = default;
_ZN5Botan8CRYSTALS16PolynomialMatrixINS_19DilithiumPolyTraitsEED2Ev:
  509|     75|      ~PolynomialMatrix() = default;
_ZN5Botan8CRYSTALSmlITkNS0_14crystals_traitENS_19DilithiumPolyTraitsEEENS0_16PolynomialVectorIT_LNS0_6DomainE1EEERKNS0_16PolynomialMatrixIS4_EERKS6_:
  618|     75|                                               const PolynomialVector<Trait, Domain::NTT>& vec) {
  619|     75|   PolynomialVector<Trait, Domain::NTT> result(mat.size());
  620|    557|   for(size_t i = 0; i < mat.size(); ++i) {
  ------------------
  |  Branch (620:22): [True: 482, False: 75]
  ------------------
  621|    482|      Trait::polyvec_pointwise_acc_montgomery(result[i].coefficients(), mat[i].coefficients(), vec.coefficients());
  622|    482|   }
  623|     75|   return result;
  624|     75|}
_ZNK5Botan8CRYSTALS16PolynomialMatrixINS_19DilithiumPolyTraitsEE4sizeEv:
  511|    632|      size_t size() const { return m_mat.size(); }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE1EEC2Em:
  401|    557|      explicit PolynomialVector(size_t vecsize) : m_polys_storage(vecsize * Trait::N) {
  402|  3.83k|         for(size_t i = 0; i < vecsize; ++i) {
  ------------------
  |  Branch (402:28): [True: 3.28k, False: 557]
  ------------------
  403|  3.28k|            m_vec.emplace_back(
  404|  3.28k|               Polynomial<Trait, D>(std::span{m_polys_storage}.subspan(i * Trait::N).template first<Trait::N>()));
  405|  3.28k|         }
  406|    557|      }
_ZN5Botan8CRYSTALS10Trait_BaseINS_18DilithiumConstantsENS_19DilithiumPolyTraitsEE32polyvec_pointwise_acc_montgomeryENSt3__14spanIiLm256EEENS6_IKiLm18446744073709551615EEES9_:
  131|    482|                                                             std::span<const T> v) {
  132|    482|         clear_mem(w);
  133|    482|         std::array<T, N> t{};
  134|  3.28k|         for(size_t i = 0; i < polys_in_polyvec(u); ++i) {
  ------------------
  |  Branch (134:28): [True: 2.79k, False: 482]
  ------------------
  135|  2.79k|            DerivedT::poly_pointwise_montgomery(t, poly_in_polyvec(u, i), poly_in_polyvec(v, i));
  136|  2.79k|            poly_add(w, w, t);
  137|  2.79k|         }
  138|    482|         barrett_reduce(w);
  139|    482|      }
_ZN5Botan8CRYSTALS10Trait_BaseINS_18DilithiumConstantsENS_19DilithiumPolyTraitsEE16polys_in_polyvecENSt3__14spanIKiLm18446744073709551615EEE:
   81|  3.28k|      static constexpr size_t polys_in_polyvec(std::span<const T> polyvec) {
   82|  3.28k|         BOTAN_DEBUG_ASSERT(polyvec.size() % N == 0);
  ------------------
  |  |  130|  3.28k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  3.28k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 3.28k]
  |  |  ------------------
  ------------------
   83|  3.28k|         return polyvec.size() / N;
   84|  3.28k|      }
_ZN5Botan8CRYSTALS10Trait_BaseINS_18DilithiumConstantsENS_19DilithiumPolyTraitsEE15poly_in_polyvecIKiQoosr3stdE7same_asINT_1TETL0__Esr3stdE7same_asIKS8_S9_EEENSt3__14spanIS7_Lm256EEENSC_IS7_Lm18446744073709551615EEEm:
   89|  5.59k|      static constexpr std::span<U, N> poly_in_polyvec(std::span<U> polyvec, size_t index) {
   90|  5.59k|         BOTAN_DEBUG_ASSERT(polyvec.size() % N == 0);
  ------------------
  |  |  130|  5.59k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  5.59k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 5.59k]
  |  |  ------------------
  ------------------
   91|  5.59k|         BOTAN_DEBUG_ASSERT(polyvec.size() / N > index);
  ------------------
  |  |  130|  5.59k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  5.59k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 5.59k]
  |  |  ------------------
  ------------------
   92|  5.59k|         auto polyspan = polyvec.subspan(index * N, N);
   93|  5.59k|         return std::span<U, N>{polyspan.data(), polyspan.size()};
   94|  5.59k|      }
_ZN5Botan8CRYSTALS10Trait_BaseINS_18DilithiumConstantsENS_19DilithiumPolyTraitsEE8poly_addENSt3__14spanIiLm256EEENS6_IKiLm256EEES9_:
   99|  3.28k|      static constexpr void poly_add(std::span<T, N> result, std::span<const T, N> lhs, std::span<const T, N> rhs) {
  100|   842k|         for(size_t i = 0; i < N; ++i) {
  ------------------
  |  Branch (100:28): [True: 839k, False: 3.28k]
  ------------------
  101|   839k|            result[i] = lhs[i] + rhs[i];
  102|   839k|         }
  103|  3.28k|      }
_ZN5Botan8CRYSTALS10Trait_BaseINS_18DilithiumConstantsENS_19DilithiumPolyTraitsEE14barrett_reduceENSt3__14spanIiLm256EEE:
  122|    964|      constexpr static void barrett_reduce(std::span<T, N> poly) {
  123|   246k|         for(auto& coeff : poly) {
  ------------------
  |  Branch (123:26): [True: 246k, False: 964]
  ------------------
  124|   246k|            coeff = DerivedT::barrett_reduce_coefficient(coeff);
  125|   246k|         }
  126|    964|      }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE1EEixEm:
  477|  3.28k|      Polynomial<Trait, D>& operator[](size_t i) { return m_vec[i]; }
_ZNK5Botan8CRYSTALS16PolynomialMatrixINS_19DilithiumPolyTraitsEEixEm:
  522|    482|      const PolynomialVector<Trait, Domain::NTT>& operator[](size_t i) const { return m_mat[i]; }
_ZNK5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE1EE12coefficientsEv:
  445|    964|      std::span<const T> coefficients() const { return m_polys_storage; }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE1EE6reduceEv:
  463|     75|      ThisPolynomialVector& reduce() {
  464|    482|         for(auto& p : m_vec) {
  ------------------
  |  Branch (464:22): [True: 482, False: 75]
  ------------------
  465|    482|            Trait::barrett_reduce(p.coefficients());
  466|    482|         }
  467|     75|         return *this;
  468|     75|      }
_ZN5Botan8CRYSTALS11inverse_nttITkNS0_14crystals_traitENS_19DilithiumPolyTraitsEEENS0_16PolynomialVectorIT_LNS0_6DomainE0EEENS3_IS4_LS5_1EEE:
  583|     75|PolynomialVector<Trait, Domain::Normal> inverse_ntt(PolynomialVector<Trait, Domain::NTT> polyvec_ntt) {
  584|     75|   auto polyvec = detail::domain_cast<Domain::Normal>(std::move(polyvec_ntt));
  585|    482|   for(auto& poly : polyvec) {
  ------------------
  |  Branch (585:19): [True: 482, False: 75]
  ------------------
  586|    482|      Trait::inverse_ntt(poly.coefficients());
  587|    482|   }
  588|     75|   return polyvec;
  589|     75|}
_ZN5Botan8CRYSTALS6detail11domain_castILNS0_6DomainE0ETtTyTnS3_ENS0_16PolynomialVectorETkNS0_14crystals_traitENS_19DilithiumPolyTraitsELS3_1EQneT_T2_EET0_IT1_XT_EEOS6_IS7_XT2_EE:
  163|     75|StructureT<Trait, To> domain_cast(StructureT<Trait, From>&& p) {
  164|       |   // The public factory method `from_domain_cast` is just a workaround for
  165|       |   // Xcode and NDK not understanding the friend declaration to allow this
  166|       |   // to directly call the private constructor.
  167|     75|   return StructureT<Trait, To>::from_domain_cast(std::move(p));
  168|     75|}
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EE16from_domain_castILS3_1EQneT0_TL0__EES4_ONS1_IS2_XT_EEE:
  396|     75|      static PolynomialVector<Trait, D> from_domain_cast(PolynomialVector<Trait, OtherD>&& other) {
  397|     75|         return PolynomialVector<Trait, D>(std::move(other));
  398|     75|      }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EEC2ILS3_1EQneT0_TL0__EEONS1_IS2_XT_EEE:
  379|     75|            m_polys_storage(std::move(other.m_polys_storage)) {
  380|     75|         BOTAN_DEBUG_ASSERT(m_polys_storage.size() % Trait::N == 0);
  ------------------
  |  |  130|     75|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|     75|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 75]
  |  |  ------------------
  ------------------
  381|     75|         const size_t vecsize = m_polys_storage.size() / Trait::N;
  382|    557|         for(size_t i = 0; i < vecsize; ++i) {
  ------------------
  |  Branch (382:28): [True: 482, False: 75]
  ------------------
  383|    482|            m_vec.emplace_back(
  384|    482|               Polynomial<Trait, D>(std::span{m_polys_storage}.subspan(i * Trait::N).template first<Trait::N>()));
  385|    482|         }
  386|     75|      }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EE5beginEv:
  481|    225|      decltype(auto) begin() { return m_vec.begin(); }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EE3endEv:
  485|    225|      decltype(auto) end() { return m_vec.end(); }
_ZN5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE0EE12coefficientsEv:
  302|  1.92k|      std::span<T, Trait::N> coefficients() { return m_coeffs; }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE1EEC2EOS4_:
  409|     75|      PolynomialVector(ThisPolynomialVector&& other) noexcept = default;
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EE17conditional_add_qEv:
  470|     75|      ThisPolynomialVector& conditional_add_q() {
  471|    482|         for(auto& v : m_vec) {
  ------------------
  |  Branch (471:22): [True: 482, False: 75]
  ------------------
  472|    482|            Trait::poly_cadd_q(v.coefficients());
  473|    482|         }
  474|     75|         return *this;
  475|     75|      }
_ZN5Botan8CRYSTALS10Trait_BaseINS_18DilithiumConstantsENS_19DilithiumPolyTraitsEE11poly_cadd_qENSt3__14spanIiLm256EEE:
  112|    482|      static constexpr void poly_cadd_q(std::span<T, N> coeffs) {
  113|   123k|         for(auto& coeff : coeffs) {
  ------------------
  |  Branch (113:26): [True: 123k, False: 482]
  ------------------
  114|   123k|            using unsigned_T = std::make_unsigned_t<T>;
  115|   123k|            const auto is_negative = CT::Mask<unsigned_T>::expand_top_bit(static_cast<unsigned_T>(coeff));
  116|   123k|            coeff += is_negative.if_set_return(Q);
  117|   123k|         }
  118|    482|      }
_ZNK5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EE5cloneEv:
  418|     75|      ThisPolynomialVector clone() const {
  419|     75|         ThisPolynomialVector res(size());
  420|       |
  421|       |         // The default-constructed PolynomialVector has set up res.m_vec to
  422|       |         // point to res.m_polys_storage. Therefore we can just copy the data
  423|       |         // into res.m_polys_storage to fill the non-owning polynomials.
  424|     75|         copy_mem(res.m_polys_storage, m_polys_storage);
  425|       |
  426|     75|         return res;
  427|     75|      }
_ZNK5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE0EE18_const_time_poisonEv:
  330|    900|      void _const_time_poison() const { CT::poison(m_coeffs); }
_ZNK5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE0EE12coefficientsEv:
  304|    482|      std::span<const T, Trait::N> coefficients() const { return m_coeffs; }
_ZNK5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EE20_const_time_unpoisonEv:
  491|    300|      void _const_time_unpoison() const { CT::unpoison_range(m_vec); }
_ZNK5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE0EE20_const_time_unpoisonEv:
  332|  1.86k|      void _const_time_unpoison() const { CT::unpoison(m_coeffs); }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EEpLERKS4_:
  447|     75|      ThisPolynomialVector& operator+=(const ThisPolynomialVector& other) {
  448|     75|         BOTAN_ASSERT(m_vec.size() == other.m_vec.size(), "cannot add polynomial vectors of differing lengths");
  ------------------
  |  |   64|     75|   do {                                                                                 \
  |  |   65|     75|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|     75|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 75]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|     75|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 75]
  |  |  ------------------
  ------------------
  449|    557|         for(size_t i = 0; i < m_vec.size(); ++i) {
  ------------------
  |  Branch (449:28): [True: 482, False: 75]
  ------------------
  450|    482|            Trait::poly_add(m_vec[i].coefficients(), m_vec[i].coefficients(), other.m_vec[i].coefficients());
  451|    482|         }
  452|     75|         return *this;
  453|     75|      }
_ZN5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE0EE5beginEv:
  310|    900|      decltype(auto) begin() { return m_coeffs.begin(); }
_ZN5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE0EE3endEv:
  314|    900|      decltype(auto) end() { return m_coeffs.end(); }
_ZNK5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE0EE4sizeEv:
  276|   155k|      constexpr size_t size() const { return m_coeffs.size(); }
_ZNK5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EE5beginEv:
  483|     75|      decltype(auto) begin() const { return m_vec.begin(); }
_ZNK5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EE3endEv:
  487|     75|      decltype(auto) end() const { return m_vec.end(); }
_ZN5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE1EE5beginEv:
  310|  2.79k|      decltype(auto) begin() { return m_coeffs.begin(); }
_ZN5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE1EE3endEv:
  314|  2.79k|      decltype(auto) end() { return m_coeffs.end(); }
_ZN5Botan8CRYSTALS16PolynomialMatrixINS_19DilithiumPolyTraitsEEC2Emm:
  513|     75|      PolynomialMatrix(size_t rows, size_t cols) {
  514|     75|         m_mat.reserve(rows);
  515|    557|         for(size_t i = 0; i < rows; ++i) {
  ------------------
  |  Branch (515:28): [True: 482, False: 75]
  ------------------
  516|    482|            m_mat.emplace_back(cols);
  517|    482|         }
  518|     75|      }
_ZN5Botan8CRYSTALS16PolynomialMatrixINS_19DilithiumPolyTraitsEEixEm:
  520|  2.79k|      PolynomialVector<Trait, Domain::NTT>& operator[](size_t i) { return m_mat[i]; }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EED2Ev:
  412|    280|      ~PolynomialVector() = default;
_ZN5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE1EED2Ev:
  274|  1.43k|      ~Polynomial() = default;
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EEC2Em:
  401|    105|      explicit PolynomialVector(size_t vecsize) : m_polys_storage(vecsize * Trait::N) {
  402|    455|         for(size_t i = 0; i < vecsize; ++i) {
  ------------------
  |  Branch (402:28): [True: 350, False: 105]
  ------------------
  403|    350|            m_vec.emplace_back(
  404|    350|               Polynomial<Trait, D>(std::span{m_polys_storage}.subspan(i * Trait::N).template first<Trait::N>()));
  405|    350|         }
  406|    105|      }
_ZN5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE1EEC2EOS4_:
  261|    925|            m_coeffs_storage(std::move(other.m_coeffs_storage)), m_coeffs(other.m_coeffs) {}
_ZN5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE1EEC2ENSt3__14spanIsLm256EEE:
  256|    510|      explicit Polynomial(std::span<T, Trait::N> coeffs) : m_coeffs(coeffs) { BOTAN_DEBUG_ASSERT(!owns_storage()); }
  ------------------
  |  |  130|    510|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    510|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 510]
  |  |  ------------------
  ------------------
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EEC2EOS4_:
  409|    125|      PolynomialVector(ThisPolynomialVector&& other) noexcept = default;
_ZN5Botan8CRYSTALS16PolynomialMatrixINS_15KyberPolyTraitsEED2Ev:
  509|     25|      ~PolynomialMatrix() = default;
_ZN5Botan8CRYSTALS10Trait_BaseINS_14KyberConstantsENS_15KyberPolyTraitsEE5fqmulEss:
   96|   336k|      static constexpr T fqmul(T a, T b) { return DerivedT::montgomery_reduce_coefficient(static_cast<T2>(a) * b); }
_ZN5Botan8CRYSTALS10Trait_BaseINS_14KyberConstantsENS_15KyberPolyTraitsEE14barrett_reduceENSt3__14spanIsLm256EEE:
  122|    400|      constexpr static void barrett_reduce(std::span<T, N> poly) {
  123|   102k|         for(auto& coeff : poly) {
  ------------------
  |  Branch (123:26): [True: 102k, False: 400]
  ------------------
  124|   102k|            coeff = DerivedT::barrett_reduce_coefficient(coeff);
  125|   102k|         }
  126|    400|      }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE0EE5beginEv:
  481|     50|      decltype(auto) begin() { return m_vec.begin(); }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE0EE3endEv:
  485|     50|      decltype(auto) end() { return m_vec.end(); }
_ZNK5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE0EE4sizeEv:
  276|  6.08k|      constexpr size_t size() const { return m_coeffs.size(); }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EE5beginEv:
  481|     75|      decltype(auto) begin() { return m_vec.begin(); }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EE3endEv:
  485|     75|      decltype(auto) end() { return m_vec.end(); }
_ZN5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE1EE5beginEv:
  310|    350|      decltype(auto) begin() { return m_coeffs.begin(); }
_ZN5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE1EE3endEv:
  314|    350|      decltype(auto) end() { return m_coeffs.end(); }
_ZNK5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE1EE4sizeEv:
  276|  5.20k|      constexpr size_t size() const { return m_coeffs.size(); }
_ZNK5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EE20_const_time_unpoisonEv:
  491|     50|      void _const_time_unpoison() const { CT::unpoison_range(m_vec); }
_ZNK5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE1EE20_const_time_unpoisonEv:
  332|    160|      void _const_time_unpoison() const { CT::unpoison(m_coeffs); }
_ZNK5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EE5beginEv:
  483|     25|      decltype(auto) begin() const { return m_vec.begin(); }
_ZNK5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EE3endEv:
  487|     25|      decltype(auto) end() const { return m_vec.end(); }
_ZNK5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE1EEixEm:
  308|  20.4k|      T operator[](size_t i) const { return m_coeffs[i]; }
_ZNK5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE1EE12coefficientsEv:
  304|     80|      std::span<const T, Trait::N> coefficients() const { return m_coeffs; }
_ZN5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE0EED2Ev:
  274|    450|      ~Polynomial() = default;
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE0EED2Ev:
  412|     50|      ~PolynomialVector() = default;
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE0EEC2Em:
  401|     50|      explicit PolynomialVector(size_t vecsize) : m_polys_storage(vecsize * Trait::N) {
  402|    210|         for(size_t i = 0; i < vecsize; ++i) {
  ------------------
  |  Branch (402:28): [True: 160, False: 50]
  ------------------
  403|    160|            m_vec.emplace_back(
  404|    160|               Polynomial<Trait, D>(std::span{m_polys_storage}.subspan(i * Trait::N).template first<Trait::N>()));
  405|    160|         }
  406|     50|      }
_ZN5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE0EEC2EOS4_:
  261|    290|            m_coeffs_storage(std::move(other.m_coeffs_storage)), m_coeffs(other.m_coeffs) {}
_ZN5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE0EEC2ENSt3__14spanIsLm256EEE:
  256|    160|      explicit Polynomial(std::span<T, Trait::N> coeffs) : m_coeffs(coeffs) { BOTAN_DEBUG_ASSERT(!owns_storage()); }
  ------------------
  |  |  130|    160|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    160|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 160]
  |  |  ------------------
  ------------------
_ZN5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE0EEixEm:
  306|  40.9k|      T& operator[](size_t i) { return m_coeffs[i]; }
_ZN5Botan8CRYSTALS3nttITkNS0_14crystals_traitENS_15KyberPolyTraitsEEENS0_16PolynomialVectorIT_LNS0_6DomainE1EEENS3_IS4_LS5_0EEE:
  574|     50|PolynomialVector<Trait, Domain::NTT> ntt(PolynomialVector<Trait, Domain::Normal> polyvec) {
  575|     50|   auto polyvec_ntt = detail::domain_cast<Domain::NTT>(std::move(polyvec));
  576|    160|   for(auto& poly : polyvec_ntt) {
  ------------------
  |  Branch (576:19): [True: 160, False: 50]
  ------------------
  577|    160|      Trait::ntt(poly.coefficients());
  578|    160|   }
  579|     50|   return polyvec_ntt;
  580|     50|}
_ZN5Botan8CRYSTALS6detail11domain_castILNS0_6DomainE1ETtTyTnS3_ENS0_16PolynomialVectorETkNS0_14crystals_traitENS_15KyberPolyTraitsELS3_0EQneT_T2_EET0_IT1_XT_EEOS6_IS7_XT2_EE:
  163|     50|StructureT<Trait, To> domain_cast(StructureT<Trait, From>&& p) {
  164|       |   // The public factory method `from_domain_cast` is just a workaround for
  165|       |   // Xcode and NDK not understanding the friend declaration to allow this
  166|       |   // to directly call the private constructor.
  167|     50|   return StructureT<Trait, To>::from_domain_cast(std::move(p));
  168|     50|}
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EE16from_domain_castILS3_0EQneT0_TL0__EES4_ONS1_IS2_XT_EEE:
  396|     50|      static PolynomialVector<Trait, D> from_domain_cast(PolynomialVector<Trait, OtherD>&& other) {
  397|     50|         return PolynomialVector<Trait, D>(std::move(other));
  398|     50|      }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EEC2ILS3_0EQneT0_TL0__EEONS1_IS2_XT_EEE:
  379|     50|            m_polys_storage(std::move(other.m_polys_storage)) {
  380|     50|         BOTAN_DEBUG_ASSERT(m_polys_storage.size() % Trait::N == 0);
  ------------------
  |  |  130|     50|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|     50|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 50]
  |  |  ------------------
  ------------------
  381|     50|         const size_t vecsize = m_polys_storage.size() / Trait::N;
  382|    210|         for(size_t i = 0; i < vecsize; ++i) {
  ------------------
  |  Branch (382:28): [True: 160, False: 50]
  ------------------
  383|    160|            m_vec.emplace_back(
  384|    160|               Polynomial<Trait, D>(std::span{m_polys_storage}.subspan(i * Trait::N).template first<Trait::N>()));
  385|    160|         }
  386|     50|      }
_ZN5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE1EE12coefficientsEv:
  302|    560|      std::span<T, Trait::N> coefficients() { return m_coeffs; }
_ZN5Botan8CRYSTALSmlITkNS0_14crystals_traitENS_15KyberPolyTraitsEEENS0_16PolynomialVectorIT_LNS0_6DomainE1EEERKNS0_16PolynomialMatrixIS4_EERKS6_:
  618|     25|                                               const PolynomialVector<Trait, Domain::NTT>& vec) {
  619|     25|   PolynomialVector<Trait, Domain::NTT> result(mat.size());
  620|    105|   for(size_t i = 0; i < mat.size(); ++i) {
  ------------------
  |  Branch (620:22): [True: 80, False: 25]
  ------------------
  621|     80|      Trait::polyvec_pointwise_acc_montgomery(result[i].coefficients(), mat[i].coefficients(), vec.coefficients());
  622|     80|   }
  623|     25|   return result;
  624|     25|}
_ZNK5Botan8CRYSTALS16PolynomialMatrixINS_15KyberPolyTraitsEE4sizeEv:
  511|    130|      size_t size() const { return m_mat.size(); }
_ZN5Botan8CRYSTALS10Trait_BaseINS_14KyberConstantsENS_15KyberPolyTraitsEE32polyvec_pointwise_acc_montgomeryENSt3__14spanIsLm256EEENS6_IKsLm18446744073709551615EEES9_:
  131|     80|                                                             std::span<const T> v) {
  132|     80|         clear_mem(w);
  133|     80|         std::array<T, N> t{};
  134|    350|         for(size_t i = 0; i < polys_in_polyvec(u); ++i) {
  ------------------
  |  Branch (134:28): [True: 270, False: 80]
  ------------------
  135|    270|            DerivedT::poly_pointwise_montgomery(t, poly_in_polyvec(u, i), poly_in_polyvec(v, i));
  136|    270|            poly_add(w, w, t);
  137|    270|         }
  138|     80|         barrett_reduce(w);
  139|     80|      }
_ZN5Botan8CRYSTALS10Trait_BaseINS_14KyberConstantsENS_15KyberPolyTraitsEE16polys_in_polyvecENSt3__14spanIKsLm18446744073709551615EEE:
   81|    350|      static constexpr size_t polys_in_polyvec(std::span<const T> polyvec) {
   82|    350|         BOTAN_DEBUG_ASSERT(polyvec.size() % N == 0);
  ------------------
  |  |  130|    350|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    350|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 350]
  |  |  ------------------
  ------------------
   83|    350|         return polyvec.size() / N;
   84|    350|      }
_ZN5Botan8CRYSTALS10Trait_BaseINS_14KyberConstantsENS_15KyberPolyTraitsEE15poly_in_polyvecIKsQoosr3stdE7same_asINT_1TETL0__Esr3stdE7same_asIKS8_S9_EEENSt3__14spanIS7_Lm256EEENSC_IS7_Lm18446744073709551615EEEm:
   89|    540|      static constexpr std::span<U, N> poly_in_polyvec(std::span<U> polyvec, size_t index) {
   90|    540|         BOTAN_DEBUG_ASSERT(polyvec.size() % N == 0);
  ------------------
  |  |  130|    540|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    540|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 540]
  |  |  ------------------
  ------------------
   91|    540|         BOTAN_DEBUG_ASSERT(polyvec.size() / N > index);
  ------------------
  |  |  130|    540|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    540|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 540]
  |  |  ------------------
  ------------------
   92|    540|         auto polyspan = polyvec.subspan(index * N, N);
   93|    540|         return std::span<U, N>{polyspan.data(), polyspan.size()};
   94|    540|      }
_ZN5Botan8CRYSTALS10Trait_BaseINS_14KyberConstantsENS_15KyberPolyTraitsEE8poly_addENSt3__14spanIsLm256EEENS6_IKsLm256EEES9_:
   99|    350|      static constexpr void poly_add(std::span<T, N> result, std::span<const T, N> lhs, std::span<const T, N> rhs) {
  100|  89.9k|         for(size_t i = 0; i < N; ++i) {
  ------------------
  |  Branch (100:28): [True: 89.6k, False: 350]
  ------------------
  101|  89.6k|            result[i] = lhs[i] + rhs[i];
  102|  89.6k|         }
  103|    350|      }
_ZNK5Botan8CRYSTALS16PolynomialMatrixINS_15KyberPolyTraitsEEixEm:
  522|     80|      const PolynomialVector<Trait, Domain::NTT>& operator[](size_t i) const { return m_mat[i]; }
_ZNK5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EE12coefficientsEv:
  445|    160|      std::span<const T> coefficients() const { return m_polys_storage; }
_ZN5Botan8CRYSTALS10montgomeryITkNS0_14crystals_traitENS_15KyberPolyTraitsELNS0_6DomainE1EEENS0_16PolynomialVectorIT_XT0_EEES6_:
  598|     25|PolynomialVector<Trait, D> montgomery(PolynomialVector<Trait, D> polyvec) {
  599|     80|   for(auto& p : polyvec) {
  ------------------
  |  Branch (599:16): [True: 80, False: 25]
  ------------------
  600|     80|      detail::montgomery(p);
  601|     80|   }
  602|     25|   return polyvec;
  603|     25|}
_ZN5Botan8CRYSTALS6detail10montgomeryITkNS0_14crystals_traitENS_15KyberPolyTraitsELNS0_6DomainE1EEEvRNS0_10PolynomialIT_XT0_EEE:
  540|     80|void montgomery(Polynomial<Trait, D>& p) {
  541|  20.4k|   for(auto& c : p) {
  ------------------
  |  Branch (541:16): [True: 20.4k, False: 80]
  ------------------
  542|  20.4k|      c = Trait::to_montgomery(c);
  543|  20.4k|   }
  544|     80|}
_ZN5Botan8CRYSTALS10Trait_BaseINS_14KyberConstantsENS_15KyberPolyTraitsEE13to_montgomeryEs:
  120|  20.4k|      static constexpr T to_montgomery(T a) { return fqmul(a, MONTY_SQUARED); }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EEpLERKS4_:
  447|     25|      ThisPolynomialVector& operator+=(const ThisPolynomialVector& other) {
  448|     25|         BOTAN_ASSERT(m_vec.size() == other.m_vec.size(), "cannot add polynomial vectors of differing lengths");
  ------------------
  |  |   64|     25|   do {                                                                                 \
  |  |   65|     25|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|     25|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 25]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|     25|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 25]
  |  |  ------------------
  ------------------
  449|    105|         for(size_t i = 0; i < m_vec.size(); ++i) {
  ------------------
  |  Branch (449:28): [True: 80, False: 25]
  ------------------
  450|     80|            Trait::poly_add(m_vec[i].coefficients(), m_vec[i].coefficients(), other.m_vec[i].coefficients());
  451|     80|         }
  452|     25|         return *this;
  453|     25|      }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EE6reduceEv:
  463|     50|      ThisPolynomialVector& reduce() {
  464|    160|         for(auto& p : m_vec) {
  ------------------
  |  Branch (464:22): [True: 160, False: 50]
  ------------------
  465|    160|            Trait::barrett_reduce(p.coefficients());
  466|    160|         }
  467|     50|         return *this;
  468|     50|      }
_ZN5Botan8CRYSTALS16PolynomialMatrixINS_15KyberPolyTraitsEEC2Emm:
  513|     25|      PolynomialMatrix(size_t rows, size_t cols) {
  514|     25|         m_mat.reserve(rows);
  515|    105|         for(size_t i = 0; i < rows; ++i) {
  ------------------
  |  Branch (515:28): [True: 80, False: 25]
  ------------------
  516|     80|            m_mat.emplace_back(cols);
  517|     80|         }
  518|     25|      }
_ZN5Botan8CRYSTALS16PolynomialMatrixINS_15KyberPolyTraitsEEixEm:
  520|    270|      PolynomialVector<Trait, Domain::NTT>& operator[](size_t i) { return m_mat[i]; }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EEixEm:
  477|    350|      Polynomial<Trait, D>& operator[](size_t i) { return m_vec[i]; }

_ZN5Botan8CRYSTALS4packILi1023ETkNS0_14crystals_traitENS_19DilithiumPolyTraitsELNS0_6DomainE0EEEvRKNS0_10PolynomialIT0_XT1_EEERNS_13BufferStufferE:
  223|    482|constexpr void pack(const Polynomial<PolyTrait, D>& p, BufferStuffer& stuffer) {
  224|    482|   using unsigned_T = std::make_unsigned_t<typename PolyTrait::T>;
  225|    482|   pack<range>(p, stuffer, [](typename PolyTrait::T x) { return static_cast<unsigned_T>(x); });
  226|    482|}
_ZN5Botan8CRYSTALS4packILi1023ETkNS0_14crystals_traitENS_19DilithiumPolyTraitsELNS0_6DomainE0ETkNS0_12coeff_map_fnINT0_1TEEEZNS0_4packILi1023ETkNS0_14crystals_traitES2_LS3_0EEEvRKNS0_10PolynomialIS5_XT1_EEERNS_13BufferStufferEEUliE_EEvSB_SD_T2_:
  117|    482|constexpr void pack(const Polynomial<PolyTrait, D>& p, BufferStuffer& stuffer, MapFnT map) {
  118|    482|   using trait = BitPackingTrait<range, PolyTrait>;
  119|       |
  120|    482|   BOTAN_DEBUG_ASSERT(stuffer.remaining_capacity() >= p.size() * trait::bits_per_coeff / 8);
  ------------------
  |  |  130|    482|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    482|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 482]
  |  |  ------------------
  ------------------
  121|       |
  122|       |   // Bit-packing example that shows a coefficients' bit-pack that spills across
  123|       |   // more than one 64-bit collectors. This illustrates the algorithm below.
  124|       |   //
  125|       |   //                         0                                       64                                       128
  126|       |   // Collectors   (64 bits): |               collectors[0]            |               collectors[1]            |
  127|       |   //                         |                                        |                                        |
  128|       |   // Coefficients (11 bits): | c[0] | c[1] | c[2] | c[3] | c[4] | c[5] | c[6] | c[7] |      |      |      |      | ...
  129|       |   //                         |                                                       |                         |
  130|       |   //                         |         < byte-aligned coefficient pack >             |  < byte-aligned pad. >  |
  131|       |   //                         |             (one inner loop iteration)                |
  132|       |   //                         0                                                      88 (divisible by 8)
  133|       |
  134|  31.3k|   for(size_t i = 0; i < p.size(); i += trait::coeffs_per_pack) {
  ------------------
  |  Branch (134:22): [True: 30.8k, False: 482]
  ------------------
  135|       |      // The collectors array is filled with bit-packed coefficients to produce
  136|       |      // a byte-aligned pack of coefficients. When coefficients fall onto the
  137|       |      // boundary of two collectors, their bits must be split.
  138|  30.8k|      typename trait::collector_array collectors = {0};
  139|   154k|      for(size_t j = 0, bit_offset = 0, c = 0; j < trait::coeffs_per_pack; ++j) {
  ------------------
  |  Branch (139:48): [True: 123k, False: 30.8k]
  ------------------
  140|       |         // Transform p[i] via a custom map function (that may be a NOOP).
  141|   123k|         const typename trait::unsigned_T mapped_coeff = map(p[i + j]);
  142|   123k|         const auto coeff_value = static_cast<typename trait::sink_t>(mapped_coeff);
  143|       |
  144|       |         // pack() is called only on data produced by us. If the values returned
  145|       |         // by the map function are not in the range [0, range] we have a bug.
  146|   123k|         BOTAN_DEBUG_ASSERT(coeff_value <= range);
  ------------------
  |  |  130|   123k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|   123k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 123k]
  |  |  ------------------
  ------------------
  147|       |
  148|       |         // Bit-pack the coefficient into the collectors array and keep track of
  149|       |         // the bit-offset within the current collector. Note that this might
  150|       |         // shift some high-bits of the coefficient out of the current collector.
  151|   123k|         collectors[c] |= coeff_value << bit_offset;
  152|   123k|         bit_offset += trait::bits_per_coeff;
  153|       |
  154|       |         // If the bit-offset now exceeds the collector's bit-width, we fill the
  155|       |         // next collector with the high-bits that didn't fit into the previous.
  156|       |         // The bit-offset is adjusted to now point into the new collector.
  157|   123k|         if(bit_offset > trait::bits_in_collector) {
  ------------------
  |  Branch (157:13): [True: 0, False: 123k]
  ------------------
  158|      0|            bit_offset = bit_offset - trait::bits_in_collector;
  159|      0|            collectors[++c] = coeff_value >> (trait::bits_per_coeff - bit_offset);
  160|      0|         }
  161|   123k|      }
  162|       |
  163|       |      // One byte-aligned pack of bit-packed coefficients is now stored in the
  164|       |      // collectors and can be written to an output buffer. Note that we might
  165|       |      // have to remove some padding bytes of unused collector space.
  166|  30.8k|      const auto bytes = store_le(collectors);
  167|  30.8k|      stuffer.append(std::span{bytes}.template first<trait::bytes_per_pack>());
  168|  30.8k|   }
  169|    482|}
_ZZN5Botan8CRYSTALS4packILi1023ETkNS0_14crystals_traitENS_19DilithiumPolyTraitsELNS0_6DomainE0EEEvRKNS0_10PolynomialIT0_XT1_EEERNS_13BufferStufferEENKUliE_clEi:
  225|   123k|   pack<range>(p, stuffer, [](typename PolyTrait::T x) { return static_cast<unsigned_T>(x); });
_ZN5Botan8CRYSTALS4packILi3328ETkNS0_14crystals_traitENS_15KyberPolyTraitsELNS0_6DomainE1EEEvRKNS0_10PolynomialIT0_XT1_EEERNS_13BufferStufferE:
  223|     80|constexpr void pack(const Polynomial<PolyTrait, D>& p, BufferStuffer& stuffer) {
  224|     80|   using unsigned_T = std::make_unsigned_t<typename PolyTrait::T>;
  225|     80|   pack<range>(p, stuffer, [](typename PolyTrait::T x) { return static_cast<unsigned_T>(x); });
  226|     80|}
_ZN5Botan8CRYSTALS4packILi3328ETkNS0_14crystals_traitENS_15KyberPolyTraitsELNS0_6DomainE1ETkNS0_12coeff_map_fnINT0_1TEEEZNS0_4packILi3328ETkNS0_14crystals_traitES2_LS3_1EEEvRKNS0_10PolynomialIS5_XT1_EEERNS_13BufferStufferEEUlsE_EEvSB_SD_T2_:
  117|     80|constexpr void pack(const Polynomial<PolyTrait, D>& p, BufferStuffer& stuffer, MapFnT map) {
  118|     80|   using trait = BitPackingTrait<range, PolyTrait>;
  119|       |
  120|     80|   BOTAN_DEBUG_ASSERT(stuffer.remaining_capacity() >= p.size() * trait::bits_per_coeff / 8);
  ------------------
  |  |  130|     80|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|     80|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 80]
  |  |  ------------------
  ------------------
  121|       |
  122|       |   // Bit-packing example that shows a coefficients' bit-pack that spills across
  123|       |   // more than one 64-bit collectors. This illustrates the algorithm below.
  124|       |   //
  125|       |   //                         0                                       64                                       128
  126|       |   // Collectors   (64 bits): |               collectors[0]            |               collectors[1]            |
  127|       |   //                         |                                        |                                        |
  128|       |   // Coefficients (11 bits): | c[0] | c[1] | c[2] | c[3] | c[4] | c[5] | c[6] | c[7] |      |      |      |      | ...
  129|       |   //                         |                                                       |                         |
  130|       |   //                         |         < byte-aligned coefficient pack >             |  < byte-aligned pad. >  |
  131|       |   //                         |             (one inner loop iteration)                |
  132|       |   //                         0                                                      88 (divisible by 8)
  133|       |
  134|  5.20k|   for(size_t i = 0; i < p.size(); i += trait::coeffs_per_pack) {
  ------------------
  |  Branch (134:22): [True: 5.12k, False: 80]
  ------------------
  135|       |      // The collectors array is filled with bit-packed coefficients to produce
  136|       |      // a byte-aligned pack of coefficients. When coefficients fall onto the
  137|       |      // boundary of two collectors, their bits must be split.
  138|  5.12k|      typename trait::collector_array collectors = {0};
  139|  25.6k|      for(size_t j = 0, bit_offset = 0, c = 0; j < trait::coeffs_per_pack; ++j) {
  ------------------
  |  Branch (139:48): [True: 20.4k, False: 5.12k]
  ------------------
  140|       |         // Transform p[i] via a custom map function (that may be a NOOP).
  141|  20.4k|         const typename trait::unsigned_T mapped_coeff = map(p[i + j]);
  142|  20.4k|         const auto coeff_value = static_cast<typename trait::sink_t>(mapped_coeff);
  143|       |
  144|       |         // pack() is called only on data produced by us. If the values returned
  145|       |         // by the map function are not in the range [0, range] we have a bug.
  146|  20.4k|         BOTAN_DEBUG_ASSERT(coeff_value <= range);
  ------------------
  |  |  130|  20.4k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  20.4k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 20.4k]
  |  |  ------------------
  ------------------
  147|       |
  148|       |         // Bit-pack the coefficient into the collectors array and keep track of
  149|       |         // the bit-offset within the current collector. Note that this might
  150|       |         // shift some high-bits of the coefficient out of the current collector.
  151|  20.4k|         collectors[c] |= coeff_value << bit_offset;
  152|  20.4k|         bit_offset += trait::bits_per_coeff;
  153|       |
  154|       |         // If the bit-offset now exceeds the collector's bit-width, we fill the
  155|       |         // next collector with the high-bits that didn't fit into the previous.
  156|       |         // The bit-offset is adjusted to now point into the new collector.
  157|  20.4k|         if(bit_offset > trait::bits_in_collector) {
  ------------------
  |  Branch (157:13): [True: 0, False: 20.4k]
  ------------------
  158|      0|            bit_offset = bit_offset - trait::bits_in_collector;
  159|      0|            collectors[++c] = coeff_value >> (trait::bits_per_coeff - bit_offset);
  160|      0|         }
  161|  20.4k|      }
  162|       |
  163|       |      // One byte-aligned pack of bit-packed coefficients is now stored in the
  164|       |      // collectors and can be written to an output buffer. Note that we might
  165|       |      // have to remove some padding bytes of unused collector space.
  166|  5.12k|      const auto bytes = store_le(collectors);
  167|  5.12k|      stuffer.append(std::span{bytes}.template first<trait::bytes_per_pack>());
  168|  5.12k|   }
  169|     80|}
_ZZN5Botan8CRYSTALS4packILi3328ETkNS0_14crystals_traitENS_15KyberPolyTraitsELNS0_6DomainE1EEEvRKNS0_10PolynomialIT0_XT1_EEERNS_13BufferStufferEENKUlsE_clEs:
  225|  20.4k|   pack<range>(p, stuffer, [](typename PolyTrait::T x) { return static_cast<unsigned_T>(x); });

_ZN5Botan6bitlenEm:
  101|    823|constexpr auto bitlen(size_t x) {
  102|    823|   return ceil_log2(x + 1);
  103|    823|}
_ZN5Botan6detail11Bounded_XOFIRNS_3XOFELm894EEC2ES3_:
  173|  2.79k|      explicit Bounded_XOF(XofT xof) : m_xof(xof), m_bytes_consumed(0) {}
dilithium_algos.cpp:_ZN5Botan6detail11Bounded_XOFIRNS_3XOFELm894EE4nextILm3EZNS_15Dilithium_Algos12_GLOBAL__N_118sample_ntt_uniformENS_10StrongSpanIKNS_6StrongINSt3__16vectorIhNSA_9allocatorIhEEEENS_20DilithiumPublicSeed_EJEEEEERNS_8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNSJ_6DomainE1EEEtRKNS_18DilithiumConstantsEE3$_0ZNS7_18sample_ntt_uniformESI_SO_tSR_E3$_1Qaasr3stdE9invocableITL0_0_NSA_5arrayIhXTL0__EEEEsr3stdE9invocableITL0_1_NSA_20__invoke_result_implIvJSU_SW_EE4typeEEEEDaRKT0_RKT1_:
  195|   716k|                          const PredicateFnT& predicate = default_predicate<bytes, MappedValueT<bytes, MapFnT>>) {
  196|   717k|         while(true) {
  ------------------
  |  Branch (196:16): [True: 717k, Folded]
  ------------------
  197|   717k|            auto output = transformer(take<bytes>());
  198|   717k|            if(predicate(output)) {
  ------------------
  |  Branch (198:16): [True: 716k, False: 733]
  ------------------
  199|   716k|               return output;
  200|   716k|            }
  201|   717k|         }
  202|   716k|      }
_ZN5Botan6detail11Bounded_XOFIRNS_3XOFELm894EE4takeILm3EEENSt3__15arrayIhXT_EEEv:
  206|   717k|      constexpr std::array<uint8_t, bytes> take() {
  207|   717k|         m_bytes_consumed += bytes;
  208|   717k|         if(m_bytes_consumed > bound) {
  ------------------
  |  Branch (208:13): [True: 0, False: 717k]
  ------------------
  209|      0|            throw Internal_Error("XOF consumed more bytes than allowed");
  210|      0|         }
  211|   717k|         return m_xof.template output<bytes>();
  212|   717k|      }
_ZN5Botan6detail11Bounded_XOFIRNS_3XOFELm481EEC2ES3_:
  173|    900|      explicit Bounded_XOF(XofT xof) : m_xof(xof), m_bytes_consumed(0) {}
_ZN5Botan6detail11Bounded_XOFIRNS_3XOFELm481EE9next_byteIFbhEQsr3stdE9invocableITL0__hEEEDaOT_:
  180|   160k|      constexpr auto next_byte(PredicateFnT&& predicate = default_predicate<1, uint8_t>) {
  181|   160k|         return next<1>([](const auto bytes) { return bytes[0]; }, std::forward<PredicateFnT>(predicate));
  182|   160k|      }
_ZN5Botan6detail11Bounded_XOFIRNS_3XOFELm481EE4nextILm1EZNS4_9next_byteIFbhEQsr3stdE9invocableITL0__hEEEDaOT_EUlS9_E_S7_Qaasr3stdE9invocableITL0_0_NSt3__15arrayIhXTL0__EEEEsr3stdE9invocableITL0_1_NSD_20__invoke_result_implIvJSC_SF_EE4typeEEEEDaRKT0_RKT1_:
  195|   160k|                          const PredicateFnT& predicate = default_predicate<bytes, MappedValueT<bytes, MapFnT>>) {
  196|   160k|         while(true) {
  ------------------
  |  Branch (196:16): [True: 160k, Folded]
  ------------------
  197|   160k|            auto output = transformer(take<bytes>());
  198|   160k|            if(predicate(output)) {
  ------------------
  |  Branch (198:16): [True: 160k, False: 0]
  ------------------
  199|   160k|               return output;
  200|   160k|            }
  201|   160k|         }
  202|   160k|      }
_ZZN5Botan6detail11Bounded_XOFIRNS_3XOFELm481EE9next_byteIFbhEQsr3stdE9invocableITL0__hEEEDaOT_ENKUlS8_E_clINSt3__15arrayIhLm1EEEEEDaS8_:
  181|   160k|         return next<1>([](const auto bytes) { return bytes[0]; }, std::forward<PredicateFnT>(predicate));
_ZN5Botan6detail11Bounded_XOFIRNS_3XOFELm481EE4takeILm1EEENSt3__15arrayIhXT_EEEv:
  206|   160k|      constexpr std::array<uint8_t, bytes> take() {
  207|   160k|         m_bytes_consumed += bytes;
  208|   160k|         if(m_bytes_consumed > bound) {
  ------------------
  |  Branch (208:13): [True: 0, False: 160k]
  ------------------
  209|      0|            throw Internal_Error("XOF consumed more bytes than allowed");
  210|      0|         }
  211|   160k|         return m_xof.template output<bytes>();
  212|   160k|      }
_ZN5Botan6detail11Bounded_XOFIRNS_3XOFELm481EE17default_predicateILm1EhEEbT0_:
  164|   160k|      constexpr static bool default_predicate(T /*v*/) {
  165|   160k|         return true;
  166|   160k|      }
_ZN5Botan6detail11Bounded_XOFIRNS_3XOFELm840EEC2ES3_:
  173|    270|      explicit Bounded_XOF(XofT xof) : m_xof(xof), m_bytes_consumed(0) {}
kyber_algos.cpp:_ZN5Botan6detail11Bounded_XOFIRNS_3XOFELm840EE4nextILm3EZZNS_11Kyber_Algos12_GLOBAL__N_118sample_ntt_uniformERNS_8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS8_6DomainE1EEES3_EN3$_0clEvEUlT_E_FbNSt3__14pairINSH_8optionalItEESK_EEEQaasr3stdE9invocableITL0_0_NSH_5arrayIhXTL0__EEEEsr3stdE9invocableITL0_1_NSH_20__invoke_result_implIvJSN_SP_EE4typeEEEEDaRKT0_RKT1_:
  195|  42.8k|                          const PredicateFnT& predicate = default_predicate<bytes, MappedValueT<bytes, MapFnT>>) {
  196|  42.8k|         while(true) {
  ------------------
  |  Branch (196:16): [True: 42.8k, Folded]
  ------------------
  197|  42.8k|            auto output = transformer(take<bytes>());
  198|  42.8k|            if(predicate(output)) {
  ------------------
  |  Branch (198:16): [True: 42.8k, False: 0]
  ------------------
  199|  42.8k|               return output;
  200|  42.8k|            }
  201|  42.8k|         }
  202|  42.8k|      }
_ZN5Botan6detail11Bounded_XOFIRNS_3XOFELm840EE4takeILm3EEENSt3__15arrayIhXT_EEEv:
  206|  42.8k|      constexpr std::array<uint8_t, bytes> take() {
  207|  42.8k|         m_bytes_consumed += bytes;
  208|  42.8k|         if(m_bytes_consumed > bound) {
  ------------------
  |  Branch (208:13): [True: 0, False: 42.8k]
  ------------------
  209|      0|            throw Internal_Error("XOF consumed more bytes than allowed");
  210|      0|         }
  211|  42.8k|         return m_xof.template output<bytes>();
  212|  42.8k|      }
_ZN5Botan6detail11Bounded_XOFIRNS_3XOFELm840EE17default_predicateILm3ENSt3__14pairINS6_8optionalItEES9_EEEEbT0_:
  164|  42.8k|      constexpr static bool default_predicate(T /*v*/) {
  165|  42.8k|         return true;
  166|  42.8k|      }

_ZN5Botan3rhoILm14ELm18ELm41ETkNSt3__117unsigned_integralEmEET2_S2_:
   53|    160|BOTAN_FORCE_INLINE constexpr T rho(T x) {
   54|    160|   return rotr<R1>(x) ^ rotr<R2>(x) ^ rotr<R3>(x);
   55|    160|}
_ZN5Botan4rotrILm14ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   37|    160|{
   38|    160|   return static_cast<T>((input >> ROT) | (input << (8 * sizeof(T) - ROT)));
   39|    160|}
_ZN5Botan4rotrILm18ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   37|    160|{
   38|    160|   return static_cast<T>((input >> ROT) | (input << (8 * sizeof(T) - ROT)));
   39|    160|}
_ZN5Botan4rotrILm41ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   37|    160|{
   38|    160|   return static_cast<T>((input >> ROT) | (input << (8 * sizeof(T) - ROT)));
   39|    160|}
_ZN5Botan3rhoILm28ELm34ELm39ETkNSt3__117unsigned_integralEmEET2_S2_:
   53|    160|BOTAN_FORCE_INLINE constexpr T rho(T x) {
   54|    160|   return rotr<R1>(x) ^ rotr<R2>(x) ^ rotr<R3>(x);
   55|    160|}
_ZN5Botan4rotrILm28ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   37|    160|{
   38|    160|   return static_cast<T>((input >> ROT) | (input << (8 * sizeof(T) - ROT)));
   39|    160|}
_ZN5Botan4rotrILm34ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   37|    160|{
   38|    160|   return static_cast<T>((input >> ROT) | (input << (8 * sizeof(T) - ROT)));
   39|    160|}
_ZN5Botan4rotrILm39ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   37|    160|{
   38|    160|   return static_cast<T>((input >> ROT) | (input << (8 * sizeof(T) - ROT)));
   39|    160|}
_ZN5Botan4rotlILm1ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|  2.61M|{
   26|  2.61M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|  2.61M|}
_ZN5Botan4rotlILm44ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   436k|{
   26|   436k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   436k|}
_ZN5Botan4rotlILm43ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   436k|{
   26|   436k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   436k|}
_ZN5Botan4rotlILm21ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   436k|{
   26|   436k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   436k|}
_ZN5Botan4rotlILm14ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   436k|{
   26|   436k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   436k|}
_ZN5Botan4rotlILm28ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   436k|{
   26|   436k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   436k|}
_ZN5Botan4rotlILm20ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   436k|{
   26|   436k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   436k|}
_ZN5Botan4rotlILm3ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   436k|{
   26|   436k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   436k|}
_ZN5Botan4rotlILm45ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   436k|{
   26|   436k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   436k|}
_ZN5Botan4rotlILm61ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   436k|{
   26|   436k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   436k|}
_ZN5Botan4rotlILm6ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   436k|{
   26|   436k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   436k|}
_ZN5Botan4rotlILm25ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   436k|{
   26|   436k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   436k|}
_ZN5Botan4rotlILm8ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   436k|{
   26|   436k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   436k|}
_ZN5Botan4rotlILm18ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   436k|{
   26|   436k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   436k|}
_ZN5Botan4rotlILm27ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   436k|{
   26|   436k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   436k|}
_ZN5Botan4rotlILm36ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   436k|{
   26|   436k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   436k|}
_ZN5Botan4rotlILm10ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   436k|{
   26|   436k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   436k|}
_ZN5Botan4rotlILm15ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   436k|{
   26|   436k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   436k|}
_ZN5Botan4rotlILm56ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   436k|{
   26|   436k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   436k|}
_ZN5Botan4rotlILm62ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   436k|{
   26|   436k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   436k|}
_ZN5Botan4rotlILm55ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   436k|{
   26|   436k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   436k|}
_ZN5Botan4rotlILm39ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   436k|{
   26|   436k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   436k|}
_ZN5Botan4rotlILm41ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   436k|{
   26|   436k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   436k|}
_ZN5Botan4rotlILm2ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   436k|{
   26|   436k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   436k|}

_ZN5Botan8round_upEmm:
   26|  40.0k|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|  40.0k|   BOTAN_ARG_CHECK(align_to != 0, "align_to must not be 0");
  ------------------
  |  |   35|  40.0k|   do {                                                          \
  |  |   36|  40.0k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  40.0k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 40.0k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  40.0k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 40.0k]
  |  |  ------------------
  ------------------
   29|       |
   30|  40.0k|   if(n % align_to > 0) {
  ------------------
  |  Branch (30:7): [True: 36.7k, False: 3.29k]
  ------------------
   31|  36.7k|      const size_t adj = align_to - (n % align_to);
   32|  36.7k|      BOTAN_ARG_CHECK(n + adj >= n, "Integer overflow during rounding");
  ------------------
  |  |   35|  36.7k|   do {                                                          \
  |  |   36|  36.7k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  36.7k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 36.7k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  36.7k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 36.7k]
  |  |  ------------------
  ------------------
   33|  36.7k|      n += adj;
   34|  36.7k|   }
   35|  40.0k|   return n;
   36|  40.0k|}

_ZNK5Botan9SCAN_Name9arg_countEv:
   43|  3.95k|      size_t arg_count() const { return m_args.size(); }
_ZNK5Botan9SCAN_Name9algo_nameEv:
   38|  5.32k|      const std::string& algo_name() const { return m_alg_name; }

_ZN5Botan14scoped_cleanupIZNS_2CT13scoped_poisonIJNSt3__16vectorIhNS_16secure_allocatorIhEEEEEQaaaagtsZT_Li0Efraa10poisonableIT_Efraa12unpoisonableIS8_EEEDaDpRKS8_EUlvE_EC2ESC_:
   26|      1|      explicit scoped_cleanup(FunT cleanup) : m_cleanup(std::move(cleanup)) {}
_ZN5Botan14scoped_cleanupIZNS_2CT13scoped_poisonIJNSt3__16vectorIhNS_16secure_allocatorIhEEEEEQaaaagtsZT_Li0Efraa10poisonableIT_Efraa12unpoisonableIS8_EEEDaDpRKS8_EUlvE_EC2EOSD_:
   32|      1|      scoped_cleanup(scoped_cleanup&& other) noexcept : m_cleanup(std::move(other.m_cleanup)) { other.disengage(); }
_ZN5Botan14scoped_cleanupIZNS_2CT13scoped_poisonIJNSt3__16vectorIhNS_16secure_allocatorIhEEEEEQaaaagtsZT_Li0Efraa10poisonableIT_Efraa12unpoisonableIS8_EEEDaDpRKS8_EUlvE_E9disengageEv:
   43|      1|      void disengage() noexcept { m_cleanup.reset(); }
_ZN5Botan14scoped_cleanupIZNS_2CT13scoped_poisonIJNSt3__16vectorIhNS_16secure_allocatorIhEEEEEQaaaagtsZT_Li0Efraa10poisonableIT_Efraa12unpoisonableIS8_EEEDaDpRKS8_EUlvE_ED2Ev:
   34|      2|      ~scoped_cleanup() {
   35|      2|         if(m_cleanup.has_value()) {
  ------------------
  |  Branch (35:13): [True: 1, False: 1]
  ------------------
   36|      1|            (*m_cleanup)();  // NOLINT(bugprone-exception-escape) clang-tidy bug
   37|      1|         }
   38|      2|      }

_ZNK5Botan7SHA_51213output_lengthEv:
   74|      2|      size_t output_length() const override { return output_bytes; }

_ZN5Botan9SHA2_64_FEmmmRmmmmS0_m:
   42|    160|   uint64_t A, uint64_t B, uint64_t C, uint64_t& D, uint64_t E, uint64_t F, uint64_t G, uint64_t& H, uint64_t M) {
   43|    160|   H += rho<14, 18, 41>(E) + choose(E, F, G) + M;
   44|    160|   D += H;
   45|    160|   H += rho<28, 34, 39>(A) + majority(A, B, C);
   46|    160|}

_ZNK5Botan5SHA_313output_lengthEv:
   31|     50|      size_t output_length() const override { return m_output_length; }

_ZN5Botan13SHAKE_128_XOFC2Ev:
   52|  2.82k|      SHAKE_128_XOF() : SHAKE_XOF(256) {}
_ZN5Botan13SHAKE_256_XOFC2Ev:
   66|  1.07k|      SHAKE_256_XOF() : SHAKE_XOF(512) {}

_ZN5Botan9SIMD_2x64C2Ev:
   50|     16|            m_simd(_mm_setzero_si128())
   51|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
   52|       |            m_simd(wasm_u64x2_const_splat(0))
   53|       |#endif
   54|     16|      {
   55|     16|      }
_ZN5Botan9SIMD_2x647load_beEPKv:
   90|     16|      static SIMD_2x64 BOTAN_FN_ISA_SIMD_2X64 load_be(const void* in) { return SIMD_2x64::load_le(in).bswap(); }
_ZNK5Botan9SIMD_2x645bswapEv:
  100|     16|      SIMD_2x64 BOTAN_FN_ISA_SIMD_2X64 bswap() const {
  101|     16|#if defined(BOTAN_SIMD_USE_SSSE3)
  102|     16|         const auto idx = _mm_set_epi8(8, 9, 10, 11, 12, 13, 14, 15, 0, 1, 2, 3, 4, 5, 6, 7);
  103|     16|         return SIMD_2x64(_mm_shuffle_epi8(m_simd, idx));
  104|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  105|       |         return SIMD_2x64(wasm_i8x16_shuffle(m_simd, m_simd, 7, 6, 5, 4, 3, 2, 1, 0, 15, 14, 13, 12, 11, 10, 9, 8));
  106|       |#endif
  107|     16|      }
_ZN5Botan9SIMD_2x64C2EDv2_x:
  316|    624|      explicit BOTAN_FN_ISA_SIMD_2X64 SIMD_2x64(native_simd_type x) : m_simd(x) {}
_ZNK5Botan9SIMD_2x64plERKS0_:
  144|    272|      SIMD_2x64 BOTAN_FN_ISA_SIMD_2X64 operator+(const SIMD_2x64& other) const {
  145|    272|         SIMD_2x64 retval(*this);
  146|    272|         retval += other;
  147|    272|         return retval;
  148|    272|      }
_ZN5Botan9SIMD_2x64pLERKS0_:
  156|    272|      void BOTAN_FN_ISA_SIMD_2X64 operator+=(const SIMD_2x64& other) {
  157|    272|#if defined(BOTAN_SIMD_USE_SSSE3)
  158|    272|         m_simd = _mm_add_epi64(m_simd, other.m_simd);
  159|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  160|       |         m_simd = wasm_i64x2_add(m_simd, other.m_simd);
  161|       |#endif
  162|    272|      }
_ZN5Botan9SIMD_2x647load_leEPKv:
   82|     96|      static SIMD_2x64 BOTAN_FN_ISA_SIMD_2X64 load_le(const void* in) {
   83|     96|#if defined(BOTAN_SIMD_USE_SSSE3)
   84|     96|         return SIMD_2x64(_mm_loadu_si128(reinterpret_cast<const __m128i*>(in)));
   85|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
   86|       |         return SIMD_2x64(wasm_v128_load(in));
   87|       |#endif
   88|     96|      }
_ZNK5Botan9SIMD_2x648store_leEPm:
  126|     80|      void BOTAN_FN_ISA_SIMD_2X64 store_le(uint64_t out[2]) const { this->store_le(reinterpret_cast<uint8_t*>(out)); }
_ZNK5Botan9SIMD_2x648store_leEPh:
  128|     80|      void BOTAN_FN_ISA_SIMD_2X64 store_le(uint8_t out[]) const {
  129|     80|#if defined(BOTAN_SIMD_USE_SSSE3)
  130|     80|         _mm_storeu_si128(reinterpret_cast<__m128i*>(out), m_simd);
  131|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  132|       |         wasm_v128_store(out, m_simd);
  133|       |#endif
  134|     80|      }
_ZN5Botan9SIMD_2x647alignr8ERKS0_S2_:
  240|    128|      static SIMD_2x64 BOTAN_FN_ISA_SIMD_2X64 alignr8(const SIMD_2x64& a, const SIMD_2x64& b) {
  241|    128|#if defined(BOTAN_SIMD_USE_SSSE3)
  242|    128|         return SIMD_2x64(_mm_alignr_epi8(a.m_simd, b.m_simd, 8));
  243|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  244|       |         return SIMD_2x64(
  245|       |            wasm_i8x16_shuffle(b.m_simd, a.m_simd, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23));
  246|       |#endif
  247|    128|      }
_ZNK5Botan9SIMD_2x644rotrILm1EEES0_vQaagtT_Li0EltT_Li64E:
  184|     64|      {
  185|     64|#if defined(BOTAN_SIMD_USE_SSSE3)
  186|       |         if constexpr(ROT == 8) {
  187|       |            auto tab = _mm_setr_epi8(1, 2, 3, 4, 5, 6, 7, 0, 9, 10, 11, 12, 13, 14, 15, 8);
  188|       |            return SIMD_2x64(_mm_shuffle_epi8(m_simd, tab));
  189|       |         } else if constexpr(ROT == 16) {
  190|       |            auto tab = _mm_setr_epi8(2, 3, 4, 5, 6, 7, 0, 1, 10, 11, 12, 13, 14, 15, 8, 9);
  191|       |            return SIMD_2x64(_mm_shuffle_epi8(m_simd, tab));
  192|       |         } else if constexpr(ROT == 24) {
  193|       |            auto tab = _mm_setr_epi8(3, 4, 5, 6, 7, 0, 1, 2, 11, 12, 13, 14, 15, 8, 9, 10);
  194|       |            return SIMD_2x64(_mm_shuffle_epi8(m_simd, tab));
  195|       |         } else if constexpr(ROT == 32) {
  196|       |            auto tab = _mm_setr_epi8(4, 5, 6, 7, 0, 1, 2, 3, 12, 13, 14, 15, 8, 9, 10, 11);
  197|       |            return SIMD_2x64(_mm_shuffle_epi8(m_simd, tab));
  198|     64|         } else {
  199|     64|            return SIMD_2x64(_mm_or_si128(_mm_srli_epi64(m_simd, static_cast<int>(ROT)),
  200|     64|                                          _mm_slli_epi64(m_simd, static_cast<int>(64 - ROT))));
  201|     64|         }
  202|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  203|       |         if constexpr(ROT == 8) {
  204|       |            return SIMD_2x64(wasm_i8x16_shuffle(m_simd, m_simd, 1, 2, 3, 4, 5, 6, 7, 0, 9, 10, 11, 12, 13, 14, 15, 8));
  205|       |         } else if constexpr(ROT == 16) {
  206|       |            return SIMD_2x64(wasm_i8x16_shuffle(m_simd, m_simd, 2, 3, 4, 5, 6, 7, 0, 1, 10, 11, 12, 13, 14, 15, 8, 9));
  207|       |         } else if constexpr(ROT == 24) {
  208|       |            return SIMD_2x64(wasm_i8x16_shuffle(m_simd, m_simd, 3, 4, 5, 6, 7, 0, 1, 2, 11, 12, 13, 14, 15, 8, 9, 10));
  209|       |         } else if constexpr(ROT == 32) {
  210|       |            return SIMD_2x64(wasm_i8x16_shuffle(m_simd, m_simd, 4, 5, 6, 7, 0, 1, 2, 3, 12, 13, 14, 15, 8, 9, 10, 11));
  211|       |         } else {
  212|       |            return SIMD_2x64(wasm_v128_or(wasm_u64x2_shr(m_simd, ROT), wasm_i64x2_shl(m_simd, 64 - ROT)));
  213|       |         }
  214|       |#endif
  215|     64|      }
_ZNK5Botan9SIMD_2x64eoERKS0_:
  150|    256|      SIMD_2x64 BOTAN_FN_ISA_SIMD_2X64 operator^(const SIMD_2x64& other) const {
  151|    256|         SIMD_2x64 retval(*this);
  152|    256|         retval ^= other;
  153|    256|         return retval;
  154|    256|      }
_ZN5Botan9SIMD_2x64eOERKS0_:
  164|    256|      void BOTAN_FN_ISA_SIMD_2X64 operator^=(const SIMD_2x64& other) {
  165|    256|#if defined(BOTAN_SIMD_USE_SSSE3)
  166|    256|         m_simd = _mm_xor_si128(m_simd, other.m_simd);
  167|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  168|       |         m_simd = wasm_v128_xor(m_simd, other.m_simd);
  169|       |#endif
  170|    256|      }
_ZNK5Botan9SIMD_2x644rotrILm8EEES0_vQaagtT_Li0EltT_Li64E:
  184|     64|      {
  185|     64|#if defined(BOTAN_SIMD_USE_SSSE3)
  186|     64|         if constexpr(ROT == 8) {
  187|     64|            auto tab = _mm_setr_epi8(1, 2, 3, 4, 5, 6, 7, 0, 9, 10, 11, 12, 13, 14, 15, 8);
  188|     64|            return SIMD_2x64(_mm_shuffle_epi8(m_simd, tab));
  189|       |         } else if constexpr(ROT == 16) {
  190|       |            auto tab = _mm_setr_epi8(2, 3, 4, 5, 6, 7, 0, 1, 10, 11, 12, 13, 14, 15, 8, 9);
  191|       |            return SIMD_2x64(_mm_shuffle_epi8(m_simd, tab));
  192|       |         } else if constexpr(ROT == 24) {
  193|       |            auto tab = _mm_setr_epi8(3, 4, 5, 6, 7, 0, 1, 2, 11, 12, 13, 14, 15, 8, 9, 10);
  194|       |            return SIMD_2x64(_mm_shuffle_epi8(m_simd, tab));
  195|       |         } else if constexpr(ROT == 32) {
  196|       |            auto tab = _mm_setr_epi8(4, 5, 6, 7, 0, 1, 2, 3, 12, 13, 14, 15, 8, 9, 10, 11);
  197|       |            return SIMD_2x64(_mm_shuffle_epi8(m_simd, tab));
  198|       |         } else {
  199|       |            return SIMD_2x64(_mm_or_si128(_mm_srli_epi64(m_simd, static_cast<int>(ROT)),
  200|       |                                          _mm_slli_epi64(m_simd, static_cast<int>(64 - ROT))));
  201|       |         }
  202|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  203|       |         if constexpr(ROT == 8) {
  204|       |            return SIMD_2x64(wasm_i8x16_shuffle(m_simd, m_simd, 1, 2, 3, 4, 5, 6, 7, 0, 9, 10, 11, 12, 13, 14, 15, 8));
  205|       |         } else if constexpr(ROT == 16) {
  206|       |            return SIMD_2x64(wasm_i8x16_shuffle(m_simd, m_simd, 2, 3, 4, 5, 6, 7, 0, 1, 10, 11, 12, 13, 14, 15, 8, 9));
  207|       |         } else if constexpr(ROT == 24) {
  208|       |            return SIMD_2x64(wasm_i8x16_shuffle(m_simd, m_simd, 3, 4, 5, 6, 7, 0, 1, 2, 11, 12, 13, 14, 15, 8, 9, 10));
  209|       |         } else if constexpr(ROT == 32) {
  210|       |            return SIMD_2x64(wasm_i8x16_shuffle(m_simd, m_simd, 4, 5, 6, 7, 0, 1, 2, 3, 12, 13, 14, 15, 8, 9, 10, 11));
  211|       |         } else {
  212|       |            return SIMD_2x64(wasm_v128_or(wasm_u64x2_shr(m_simd, ROT), wasm_i64x2_shl(m_simd, 64 - ROT)));
  213|       |         }
  214|       |#endif
  215|     64|      }
_ZNK5Botan9SIMD_2x643shrILi7EEES0_v:
  223|     64|      SIMD_2x64 BOTAN_FN_ISA_SIMD_2X64 shr() const noexcept {
  224|     64|#if defined(BOTAN_SIMD_USE_SSSE3)
  225|     64|         return SIMD_2x64(_mm_srli_epi64(m_simd, SHIFT));
  226|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  227|       |         return SIMD_2x64(wasm_u64x2_shr(m_simd, SHIFT));
  228|       |#endif
  229|     64|      }
_ZNK5Botan9SIMD_2x644rotrILm19EEES0_vQaagtT_Li0EltT_Li64E:
  184|     64|      {
  185|     64|#if defined(BOTAN_SIMD_USE_SSSE3)
  186|       |         if constexpr(ROT == 8) {
  187|       |            auto tab = _mm_setr_epi8(1, 2, 3, 4, 5, 6, 7, 0, 9, 10, 11, 12, 13, 14, 15, 8);
  188|       |            return SIMD_2x64(_mm_shuffle_epi8(m_simd, tab));
  189|       |         } else if constexpr(ROT == 16) {
  190|       |            auto tab = _mm_setr_epi8(2, 3, 4, 5, 6, 7, 0, 1, 10, 11, 12, 13, 14, 15, 8, 9);
  191|       |            return SIMD_2x64(_mm_shuffle_epi8(m_simd, tab));
  192|       |         } else if constexpr(ROT == 24) {
  193|       |            auto tab = _mm_setr_epi8(3, 4, 5, 6, 7, 0, 1, 2, 11, 12, 13, 14, 15, 8, 9, 10);
  194|       |            return SIMD_2x64(_mm_shuffle_epi8(m_simd, tab));
  195|       |         } else if constexpr(ROT == 32) {
  196|       |            auto tab = _mm_setr_epi8(4, 5, 6, 7, 0, 1, 2, 3, 12, 13, 14, 15, 8, 9, 10, 11);
  197|       |            return SIMD_2x64(_mm_shuffle_epi8(m_simd, tab));
  198|     64|         } else {
  199|     64|            return SIMD_2x64(_mm_or_si128(_mm_srli_epi64(m_simd, static_cast<int>(ROT)),
  200|     64|                                          _mm_slli_epi64(m_simd, static_cast<int>(64 - ROT))));
  201|     64|         }
  202|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  203|       |         if constexpr(ROT == 8) {
  204|       |            return SIMD_2x64(wasm_i8x16_shuffle(m_simd, m_simd, 1, 2, 3, 4, 5, 6, 7, 0, 9, 10, 11, 12, 13, 14, 15, 8));
  205|       |         } else if constexpr(ROT == 16) {
  206|       |            return SIMD_2x64(wasm_i8x16_shuffle(m_simd, m_simd, 2, 3, 4, 5, 6, 7, 0, 1, 10, 11, 12, 13, 14, 15, 8, 9));
  207|       |         } else if constexpr(ROT == 24) {
  208|       |            return SIMD_2x64(wasm_i8x16_shuffle(m_simd, m_simd, 3, 4, 5, 6, 7, 0, 1, 2, 11, 12, 13, 14, 15, 8, 9, 10));
  209|       |         } else if constexpr(ROT == 32) {
  210|       |            return SIMD_2x64(wasm_i8x16_shuffle(m_simd, m_simd, 4, 5, 6, 7, 0, 1, 2, 3, 12, 13, 14, 15, 8, 9, 10, 11));
  211|       |         } else {
  212|       |            return SIMD_2x64(wasm_v128_or(wasm_u64x2_shr(m_simd, ROT), wasm_i64x2_shl(m_simd, 64 - ROT)));
  213|       |         }
  214|       |#endif
  215|     64|      }
_ZNK5Botan9SIMD_2x644rotrILm61EEES0_vQaagtT_Li0EltT_Li64E:
  184|     64|      {
  185|     64|#if defined(BOTAN_SIMD_USE_SSSE3)
  186|       |         if constexpr(ROT == 8) {
  187|       |            auto tab = _mm_setr_epi8(1, 2, 3, 4, 5, 6, 7, 0, 9, 10, 11, 12, 13, 14, 15, 8);
  188|       |            return SIMD_2x64(_mm_shuffle_epi8(m_simd, tab));
  189|       |         } else if constexpr(ROT == 16) {
  190|       |            auto tab = _mm_setr_epi8(2, 3, 4, 5, 6, 7, 0, 1, 10, 11, 12, 13, 14, 15, 8, 9);
  191|       |            return SIMD_2x64(_mm_shuffle_epi8(m_simd, tab));
  192|       |         } else if constexpr(ROT == 24) {
  193|       |            auto tab = _mm_setr_epi8(3, 4, 5, 6, 7, 0, 1, 2, 11, 12, 13, 14, 15, 8, 9, 10);
  194|       |            return SIMD_2x64(_mm_shuffle_epi8(m_simd, tab));
  195|       |         } else if constexpr(ROT == 32) {
  196|       |            auto tab = _mm_setr_epi8(4, 5, 6, 7, 0, 1, 2, 3, 12, 13, 14, 15, 8, 9, 10, 11);
  197|       |            return SIMD_2x64(_mm_shuffle_epi8(m_simd, tab));
  198|     64|         } else {
  199|     64|            return SIMD_2x64(_mm_or_si128(_mm_srli_epi64(m_simd, static_cast<int>(ROT)),
  200|     64|                                          _mm_slli_epi64(m_simd, static_cast<int>(64 - ROT))));
  201|     64|         }
  202|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  203|       |         if constexpr(ROT == 8) {
  204|       |            return SIMD_2x64(wasm_i8x16_shuffle(m_simd, m_simd, 1, 2, 3, 4, 5, 6, 7, 0, 9, 10, 11, 12, 13, 14, 15, 8));
  205|       |         } else if constexpr(ROT == 16) {
  206|       |            return SIMD_2x64(wasm_i8x16_shuffle(m_simd, m_simd, 2, 3, 4, 5, 6, 7, 0, 1, 10, 11, 12, 13, 14, 15, 8, 9));
  207|       |         } else if constexpr(ROT == 24) {
  208|       |            return SIMD_2x64(wasm_i8x16_shuffle(m_simd, m_simd, 3, 4, 5, 6, 7, 0, 1, 2, 11, 12, 13, 14, 15, 8, 9, 10));
  209|       |         } else if constexpr(ROT == 32) {
  210|       |            return SIMD_2x64(wasm_i8x16_shuffle(m_simd, m_simd, 4, 5, 6, 7, 0, 1, 2, 3, 12, 13, 14, 15, 8, 9, 10, 11));
  211|       |         } else {
  212|       |            return SIMD_2x64(wasm_v128_or(wasm_u64x2_shr(m_simd, ROT), wasm_i64x2_shl(m_simd, 64 - ROT)));
  213|       |         }
  214|       |#endif
  215|     64|      }
_ZNK5Botan9SIMD_2x643shrILi6EEES0_v:
  223|     64|      SIMD_2x64 BOTAN_FN_ISA_SIMD_2X64 shr() const noexcept {
  224|     64|#if defined(BOTAN_SIMD_USE_SSSE3)
  225|     64|         return SIMD_2x64(_mm_srli_epi64(m_simd, SHIFT));
  226|       |#elif defined(BOTAN_SIMD_USE_SIMD128)
  227|       |         return SIMD_2x64(wasm_u64x2_shr(m_simd, SHIFT));
  228|       |#endif
  229|     64|      }

_ZN5Botan6SpongeILm25EmE11state_bytesEv:
   43|  3.95k|      constexpr static size_t state_bytes() { return sizeof(state_t); }
_ZN5Botan6SpongeILm25EmE10state_bitsEv:
   45|  3.95k|      constexpr static size_t state_bits() { return state_bytes() * 8; }
_ZNK5Botan6SpongeILm25EmE9byte_rateEv:
   49|   933k|      constexpr size_t byte_rate() const { return m_bit_rate / 8; }
_ZN5Botan6SpongeILm25EmEC2ENS1_6ConfigE:
   39|  3.95k|      constexpr explicit Sponge(Config config) : m_S(config.initial_state), m_S_cursor(0), m_bit_rate(config.bit_rate) {
   40|  3.95k|         BOTAN_ARG_CHECK(m_bit_rate % word_bits == 0 && m_bit_rate < words * word_bits, "Invalid sponge bit rate");
  ------------------
  |  |   35|  3.95k|   do {                                                          \
  |  |   36|  3.95k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  7.90k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 3.95k, False: 0]
  |  |  |  Branch (37:12): [True: 3.95k, False: 0]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  3.95k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 3.95k]
  |  |  ------------------
  ------------------
   41|  3.95k|      }
_ZN5Botan6SpongeILm25EmE5stateEv:
   55|  1.37M|      constexpr auto& state() { return m_S; }
_ZN5Botan6SpongeILm25EmE12reset_cursorEv:
   62|  4.81k|      void reset_cursor() { m_S_cursor = 0; }
_ZN5Botan6SpongeILm25EmE7_cursorEv:
   59|   929k|      size_t& _cursor() { return m_S_cursor; }
_ZNK5Botan6SpongeILm25EmE6cursorEv:
   57|  8.66k|      size_t cursor() const { return m_S_cursor; }

_ZN5Botan18absorb_into_spongeITkNS_6detail28SpongeLikeWithTrivialPermuteENS_18Keccak_PermutationEEEvRT_NSt3__14spanIKhLm18446744073709551615EEE:
  233|  8.55k|inline void absorb_into_sponge(detail::SpongeLikeWithTrivialPermute auto& sponge, std::span<const uint8_t> input) {
  234|  8.55k|   absorb_into_sponge(sponge, input, [&sponge] { sponge.permute(); });
  235|  8.55k|}
_ZN5Botan18absorb_into_spongeITkNS_6detail10SpongeLikeENS_18Keccak_PermutationETkNS1_13PermutationFnEZNS_18absorb_into_spongeITkNS1_28SpongeLikeWithTrivialPermuteES2_EEvRT_NSt3__14spanIKhLm18446744073709551615EEEEUlvE_EEvS5_S9_RKT0_:
  223|  8.55k|                               const detail::PermutationFn auto& permutation_fn) {
  224|  8.55k|   using word_t = typename SpongeT::word_t;
  225|       |
  226|  8.55k|   BufferSlicer input_slicer(input);
  227|  8.55k|   process_bytes_in_sponge(sponge, input.size(), permutation_fn, [&](word_t state_word, auto bounds) {
  228|  8.55k|      return state_word ^ bounds.read_from(input_slicer);
  229|  8.55k|   });
  230|  8.55k|   BOTAN_ASSERT_NOMSG(input_slicer.empty());
  ------------------
  |  |   77|  8.55k|   do {                                                                     \
  |  |   78|  8.55k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  8.55k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 8.55k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  8.55k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 8.55k]
  |  |  ------------------
  ------------------
  231|  8.55k|}
_ZN5Botan23process_bytes_in_spongeITkNS_6detail10SpongeLikeENS_18Keccak_PermutationETkNS1_13PermutationFnEZNS_18absorb_into_spongeITkNS1_28SpongeLikeWithTrivialPermuteES2_EEvRT_NSt3__14spanIKhLm18446744073709551615EEEEUlvE_TkNS1_10ModifierFnIS4_EEZNS_18absorb_into_spongeITkNS1_10SpongeLikeES2_TkNS1_13PermutationFnESA_EEvS5_S9_RKT0_EUlmS4_E_EEvS5_mSF_RKT1_:
  139|  8.55k|                                                const detail::ModifierFn<SpongeT> auto& modifier_fn) {
  140|  8.55k|   if(bytes_to_process == 0) {
  ------------------
  |  Branch (140:7): [True: 0, False: 8.55k]
  ------------------
  141|      0|      return;
  142|      0|   }
  143|       |
  144|  8.55k|   constexpr auto word_bytes = SpongeT::word_bytes;
  145|  8.55k|   const auto byte_rate = sponge.byte_rate();
  146|  8.55k|   auto& S = sponge.state();
  147|  8.55k|   auto& cursor = sponge._cursor();
  148|       |
  149|       |   // If necessary, try to get aligned with the sponge state's words array
  150|  8.55k|   const auto bytes_out_of_word_alignment = static_cast<size_t>(cursor % word_bytes);
  151|  8.55k|   if(bytes_out_of_word_alignment > 0) {
  ------------------
  |  Branch (151:7): [True: 0, False: 8.55k]
  ------------------
  152|      0|      const auto bytes_until_word_alignment = word_bytes - bytes_out_of_word_alignment;
  153|      0|      const auto bytes_from_input = std::min(bytes_to_process, bytes_until_word_alignment);
  154|      0|      BOTAN_DEBUG_ASSERT(bytes_from_input < word_bytes);
  ------------------
  |  |  130|      0|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|      0|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 0]
  |  |  ------------------
  ------------------
  155|       |
  156|      0|      S[cursor / word_bytes] = modifier_fn(S[cursor / word_bytes],
  157|      0|                                           detail::PartialWordBounds<SpongeT>{
  158|      0|                                              .offset = bytes_out_of_word_alignment,
  159|      0|                                              .length = bytes_from_input,
  160|      0|                                           });
  161|      0|      cursor += bytes_from_input;
  162|      0|      bytes_to_process -= bytes_from_input;
  163|       |
  164|      0|      if(cursor == byte_rate) {
  ------------------
  |  Branch (164:10): [True: 0, False: 0]
  ------------------
  165|      0|         permutation_fn();
  166|      0|         cursor = 0;
  167|      0|      }
  168|      0|   }
  169|       |
  170|       |   // If we didn't exhaust the bytes to process for this invocation, we should
  171|       |   // be word-aligned with the sponge state now
  172|  8.55k|   BOTAN_DEBUG_ASSERT(bytes_to_process == 0 || cursor % word_bytes == 0);
  ------------------
  |  |  130|  8.55k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  8.55k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 8.55k]
  |  |  ------------------
  ------------------
  173|       |
  174|       |   // Block-wise incorporation of the input data into the sponge state until
  175|       |   // all input bytes are processed
  176|  14.2k|   while(bytes_to_process >= word_bytes) {
  ------------------
  |  Branch (176:10): [True: 5.67k, False: 8.55k]
  ------------------
  177|       |      // Process full words until we either run out of data or reach the
  178|       |      // end of the current sponge state block
  179|  49.7k|      while(bytes_to_process >= word_bytes && cursor < byte_rate) {
  ------------------
  |  Branch (179:13): [True: 45.3k, False: 4.33k]
  |  Branch (179:47): [True: 44.0k, False: 1.34k]
  ------------------
  180|  44.0k|         S[cursor / word_bytes] = modifier_fn(S[cursor / word_bytes], detail::FullWordBounds<SpongeT>{});
  181|  44.0k|         cursor += word_bytes;
  182|  44.0k|         bytes_to_process -= word_bytes;
  183|  44.0k|      }
  184|       |
  185|  5.67k|      if(cursor == byte_rate) {
  ------------------
  |  Branch (185:10): [True: 1.34k, False: 4.33k]
  ------------------
  186|  1.34k|         permutation_fn();
  187|  1.34k|         cursor = 0;
  188|  1.34k|      }
  189|  5.67k|   }
  190|       |
  191|       |   // Process the remaining bytes that don't fill an entire word.
  192|       |   // Therefore, leaving the sponge state in an unaligned state that won't
  193|       |   // need another permutation until the next call to process().
  194|  8.55k|   BOTAN_DEBUG_ASSERT(bytes_to_process < word_bytes && cursor < byte_rate);
  ------------------
  |  |  130|  8.55k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  8.55k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 8.55k]
  |  |  ------------------
  ------------------
  195|  8.55k|   if(bytes_to_process > 0) {
  ------------------
  |  Branch (195:7): [True: 4.23k, False: 4.32k]
  ------------------
  196|  4.23k|      S[cursor / word_bytes] = modifier_fn(S[cursor / word_bytes],
  197|  4.23k|                                           detail::PartialWordBounds<SpongeT>{
  198|  4.23k|                                              .offset = 0,
  199|  4.23k|                                              .length = bytes_to_process,
  200|  4.23k|                                           });
  201|  4.23k|      cursor += bytes_to_process;
  202|  4.23k|   }
  203|  8.55k|}
_ZZN5Botan18absorb_into_spongeITkNS_6detail10SpongeLikeENS_18Keccak_PermutationETkNS1_13PermutationFnEZNS_18absorb_into_spongeITkNS1_28SpongeLikeWithTrivialPermuteES2_EEvRT_NSt3__14spanIKhLm18446744073709551615EEEEUlvE_EEvS5_S9_RKT0_ENKUlmS4_E_clINS1_17PartialWordBoundsIS2_EEEEDamS4_:
  227|  4.23k|   process_bytes_in_sponge(sponge, input.size(), permutation_fn, [&](word_t state_word, auto bounds) {
  228|  4.23k|      return state_word ^ bounds.read_from(input_slicer);
  229|  4.23k|   });
_ZNK5Botan6detail17PartialWordBoundsINS_18Keccak_PermutationEE9read_fromERNS_12BufferSlicerE:
   59|  4.23k|      word_t read_from(BufferSlicer& slicer) const {
   60|  4.23k|         std::array<uint8_t, word_bytes> partial_word_bytes{};
   61|  4.23k|         slicer.copy_into(std::span{partial_word_bytes}.subspan(offset, length));
   62|  4.23k|         return load_le(partial_word_bytes);
   63|  4.23k|      }
_ZZN5Botan18absorb_into_spongeITkNS_6detail28SpongeLikeWithTrivialPermuteENS_18Keccak_PermutationEEEvRT_NSt3__14spanIKhLm18446744073709551615EEEENKUlvE_clEv:
  234|  1.34k|   absorb_into_sponge(sponge, input, [&sponge] { sponge.permute(); });
_ZZN5Botan18absorb_into_spongeITkNS_6detail10SpongeLikeENS_18Keccak_PermutationETkNS1_13PermutationFnEZNS_18absorb_into_spongeITkNS1_28SpongeLikeWithTrivialPermuteES2_EEvRT_NSt3__14spanIKhLm18446744073709551615EEEEUlvE_EEvS5_S9_RKT0_ENKUlmS4_E_clINS1_14FullWordBoundsIS2_EEEEDamS4_:
  227|  44.0k|   process_bytes_in_sponge(sponge, input.size(), permutation_fn, [&](word_t state_word, auto bounds) {
  228|  44.0k|      return state_word ^ bounds.read_from(input_slicer);
  229|  44.0k|   });
_ZNK5Botan6detail14FullWordBoundsINS_18Keccak_PermutationEE9read_fromERNS_12BufferSlicerE:
   97|  44.0k|      word_t read_from(BufferSlicer& slicer) const { return load_le(slicer.take<word_bytes>()); }
_ZN5Botan19squeeze_from_spongeITkNS_6detail28SpongeLikeWithTrivialPermuteENS_18Keccak_PermutationEEEvRT_NSt3__14spanIhLm18446744073709551615EEE:
  258|   920k|inline void squeeze_from_sponge(detail::SpongeLikeWithTrivialPermute auto& sponge, std::span<uint8_t> output) {
  259|   920k|   squeeze_from_sponge(sponge, output, [&sponge] { sponge.permute(); });
  260|   920k|}
_ZN5Botan19squeeze_from_spongeITkNS_6detail10SpongeLikeENS_18Keccak_PermutationETkNS1_13PermutationFnEZNS_19squeeze_from_spongeITkNS1_28SpongeLikeWithTrivialPermuteES2_EEvRT_NSt3__14spanIhLm18446744073709551615EEEEUlvE_EEvS5_S8_RKT0_:
  247|   920k|                                const detail::PermutationFn auto& permutation_fn) {
  248|   920k|   using word_t = typename SpongeT::word_t;
  249|       |
  250|   920k|   BufferStuffer output_stuffer(output);
  251|   920k|   process_bytes_in_sponge(sponge, output.size(), permutation_fn, [&](word_t state_word, auto bounds) {
  252|   920k|      bounds.write_into(output_stuffer, state_word);
  253|   920k|      return state_word;
  254|   920k|   });
  255|   920k|   BOTAN_ASSERT_NOMSG(output_stuffer.full());
  ------------------
  |  |   77|   920k|   do {                                                                     \
  |  |   78|   920k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|   920k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 920k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|   920k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 920k]
  |  |  ------------------
  ------------------
  256|   920k|}
_ZN5Botan23process_bytes_in_spongeITkNS_6detail10SpongeLikeENS_18Keccak_PermutationETkNS1_13PermutationFnEZNS_19squeeze_from_spongeITkNS1_28SpongeLikeWithTrivialPermuteES2_EEvRT_NSt3__14spanIhLm18446744073709551615EEEEUlvE_TkNS1_10ModifierFnIS4_EEZNS_19squeeze_from_spongeITkNS1_10SpongeLikeES2_TkNS1_13PermutationFnES9_EEvS5_S8_RKT0_EUlmS4_E_EEvS5_mSE_RKT1_:
  139|   920k|                                                const detail::ModifierFn<SpongeT> auto& modifier_fn) {
  140|   920k|   if(bytes_to_process == 0) {
  ------------------
  |  Branch (140:7): [True: 0, False: 920k]
  ------------------
  141|      0|      return;
  142|      0|   }
  143|       |
  144|   920k|   constexpr auto word_bytes = SpongeT::word_bytes;
  145|   920k|   const auto byte_rate = sponge.byte_rate();
  146|   920k|   auto& S = sponge.state();
  147|   920k|   auto& cursor = sponge._cursor();
  148|       |
  149|       |   // If necessary, try to get aligned with the sponge state's words array
  150|   920k|   const auto bytes_out_of_word_alignment = static_cast<size_t>(cursor % word_bytes);
  151|   920k|   if(bytes_out_of_word_alignment > 0) {
  ------------------
  |  Branch (151:7): [True: 804k, False: 116k]
  ------------------
  152|   804k|      const auto bytes_until_word_alignment = word_bytes - bytes_out_of_word_alignment;
  153|   804k|      const auto bytes_from_input = std::min(bytes_to_process, bytes_until_word_alignment);
  154|   804k|      BOTAN_DEBUG_ASSERT(bytes_from_input < word_bytes);
  ------------------
  |  |  130|   804k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|   804k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 804k]
  |  |  ------------------
  ------------------
  155|       |
  156|   804k|      S[cursor / word_bytes] = modifier_fn(S[cursor / word_bytes],
  157|   804k|                                           detail::PartialWordBounds<SpongeT>{
  158|   804k|                                              .offset = bytes_out_of_word_alignment,
  159|   804k|                                              .length = bytes_from_input,
  160|   804k|                                           });
  161|   804k|      cursor += bytes_from_input;
  162|   804k|      bytes_to_process -= bytes_from_input;
  163|       |
  164|   804k|      if(cursor == byte_rate) {
  ------------------
  |  Branch (164:10): [True: 12.4k, False: 791k]
  ------------------
  165|  12.4k|         permutation_fn();
  166|  12.4k|         cursor = 0;
  167|  12.4k|      }
  168|   804k|   }
  169|       |
  170|       |   // If we didn't exhaust the bytes to process for this invocation, we should
  171|       |   // be word-aligned with the sponge state now
  172|   920k|   BOTAN_DEBUG_ASSERT(bytes_to_process == 0 || cursor % word_bytes == 0);
  ------------------
  |  |  130|   920k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|   920k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 920k]
  |  |  ------------------
  ------------------
  173|       |
  174|       |   // Block-wise incorporation of the input data into the sponge state until
  175|       |   // all input bytes are processed
  176|   921k|   while(bytes_to_process >= word_bytes) {
  ------------------
  |  Branch (176:10): [True: 532, False: 920k]
  ------------------
  177|       |      // Process full words until we either run out of data or reach the
  178|       |      // end of the current sponge state block
  179|  5.36k|      while(bytes_to_process >= word_bytes && cursor < byte_rate) {
  ------------------
  |  Branch (179:13): [True: 4.85k, False: 512]
  |  Branch (179:47): [True: 4.83k, False: 20]
  ------------------
  180|  4.83k|         S[cursor / word_bytes] = modifier_fn(S[cursor / word_bytes], detail::FullWordBounds<SpongeT>{});
  181|  4.83k|         cursor += word_bytes;
  182|  4.83k|         bytes_to_process -= word_bytes;
  183|  4.83k|      }
  184|       |
  185|    532|      if(cursor == byte_rate) {
  ------------------
  |  Branch (185:10): [True: 20, False: 512]
  ------------------
  186|     20|         permutation_fn();
  187|     20|         cursor = 0;
  188|     20|      }
  189|    532|   }
  190|       |
  191|       |   // Process the remaining bytes that don't fill an entire word.
  192|       |   // Therefore, leaving the sponge state in an unaligned state that won't
  193|       |   // need another permutation until the next call to process().
  194|   920k|   BOTAN_DEBUG_ASSERT(bytes_to_process < word_bytes && cursor < byte_rate);
  ------------------
  |  |  130|   920k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|   920k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 920k]
  |  |  ------------------
  ------------------
  195|   920k|   if(bytes_to_process > 0) {
  ------------------
  |  Branch (195:7): [True: 305k, False: 614k]
  ------------------
  196|   305k|      S[cursor / word_bytes] = modifier_fn(S[cursor / word_bytes],
  197|   305k|                                           detail::PartialWordBounds<SpongeT>{
  198|   305k|                                              .offset = 0,
  199|   305k|                                              .length = bytes_to_process,
  200|   305k|                                           });
  201|   305k|      cursor += bytes_to_process;
  202|   305k|   }
  203|   920k|}
_ZZN5Botan19squeeze_from_spongeITkNS_6detail10SpongeLikeENS_18Keccak_PermutationETkNS1_13PermutationFnEZNS_19squeeze_from_spongeITkNS1_28SpongeLikeWithTrivialPermuteES2_EEvRT_NSt3__14spanIhLm18446744073709551615EEEEUlvE_EEvS5_S8_RKT0_ENKUlmS4_E_clINS1_17PartialWordBoundsIS2_EEEEDamS4_:
  251|  1.10M|   process_bytes_in_sponge(sponge, output.size(), permutation_fn, [&](word_t state_word, auto bounds) {
  252|  1.10M|      bounds.write_into(output_stuffer, state_word);
  253|  1.10M|      return state_word;
  254|  1.10M|   });
_ZNK5Botan6detail17PartialWordBoundsINS_18Keccak_PermutationEE10write_intoERNS_13BufferStufferEm:
   69|  1.10M|      void write_into(BufferStuffer& stuffer, word_t partial_word) const {
   70|  1.10M|         const auto partial_word_bytes = store_le(partial_word);
   71|  1.10M|         stuffer.append(std::span{partial_word_bytes}.subspan(offset, length));
   72|  1.10M|      }
_ZZN5Botan19squeeze_from_spongeITkNS_6detail28SpongeLikeWithTrivialPermuteENS_18Keccak_PermutationEEEvRT_NSt3__14spanIhLm18446744073709551615EEEENKUlvE_clEv:
  259|  12.4k|   squeeze_from_sponge(sponge, output, [&sponge] { sponge.permute(); });
_ZZN5Botan19squeeze_from_spongeITkNS_6detail10SpongeLikeENS_18Keccak_PermutationETkNS1_13PermutationFnEZNS_19squeeze_from_spongeITkNS1_28SpongeLikeWithTrivialPermuteES2_EEvRT_NSt3__14spanIhLm18446744073709551615EEEEUlvE_EEvS5_S8_RKT0_ENKUlmS4_E_clINS1_14FullWordBoundsIS2_EEEEDamS4_:
  251|  4.83k|   process_bytes_in_sponge(sponge, output.size(), permutation_fn, [&](word_t state_word, auto bounds) {
  252|  4.83k|      bounds.write_into(output_stuffer, state_word);
  253|  4.83k|      return state_word;
  254|  4.83k|   });
_ZNK5Botan6detail14FullWordBoundsINS_18Keccak_PermutationEE10write_intoERNS_13BufferStufferEm:
   99|  4.83k|      void write_into(BufferStuffer& stuffer, word_t full_word) const { stuffer.append(store_le(full_word)); }

_ZN5Botan2CT13value_barrierITkNSt3__117unsigned_integralEmQntsr3stdE7same_asIbT_EEES3_S3_:
   43|   654M|constexpr inline T value_barrier(T x) {
   44|   654M|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (44:7): [Folded, False: 654M]
  ------------------
   45|      0|      return x;
   46|   654M|   } else {
   47|   654M|#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|   654M|      asm("" : "+r"(x) : /* no input */);  // NOLINT(*-no-assembler)
   56|   654M|      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|   654M|   }
   64|   654M|}
_ZN5Botan2CT13value_barrierITkNSt3__117unsigned_integralEjQntsr3stdE7same_asIbT_EEES3_S3_:
   43|   260k|constexpr inline T value_barrier(T x) {
   44|   260k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (44:7): [Folded, False: 260k]
  ------------------
   45|      0|      return x;
   46|   260k|   } else {
   47|   260k|#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|   260k|      asm("" : "+r"(x) : /* no input */);  // NOLINT(*-no-assembler)
   56|   260k|      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|   260k|   }
   64|   260k|}
_ZN5Botan2CT13value_barrierITkNSt3__117unsigned_integralEhQntsr3stdE7same_asIbT_EEES3_S3_:
   43|  2.70M|constexpr inline T value_barrier(T x) {
   44|  2.70M|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (44:7): [Folded, False: 2.70M]
  ------------------
   45|      0|      return x;
   46|  2.70M|   } else {
   47|  2.70M|#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|  2.70M|      asm("" : "+r"(x) : /* no input */);  // NOLINT(*-no-assembler)
   56|  2.70M|      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|  2.70M|   }
   64|  2.70M|}

_ZN5Botan21Allocator_InitializerC2Ev:
   57|      1|      Allocator_Initializer() { initialize_allocator(); }

_ZNK5Botan14ASN1_BitString5bytesEv:
  206|  1.53k|      std::span<const uint8_t> bytes() const { return std::span{m_bytes}; }
_ZNK5Botan14ASN1_BitString11unused_bitsEv:
  211|    769|      size_t unused_bits() const { return m_unused_bits; }
_ZNK5Botan10BER_Object6is_setEv:
  267|   177k|      bool is_set() const { return m_type_tag != ASN1_Type::NoObject; }
_ZNK5Botan10BER_Object7taggingEv:
  272|  68.8k|      uint32_t tagging() const { return type_tag() | class_tag(); }
_ZNK5Botan10BER_Object8type_tagEv:
  277|  72.1k|      ASN1_Type type_tag() const { return m_type_tag; }
_ZNK5Botan10BER_Object9class_tagEv:
  282|  84.0k|      ASN1_Class class_tag() const { return m_class_tag; }
_ZNK5Botan10BER_Object4bitsEv:
  298|   712k|      const uint8_t* bits() const { return m_value.data(); }
_ZNK5Botan10BER_Object6lengthEv:
  303|  1.51M|      size_t length() const { return m_value.size(); }
_ZNK5Botan10BER_Object4dataEv:
  308|  25.2k|      std::span<const uint8_t> data() const { return std::span{m_value}; }
_ZN5Botan10BER_Object12mutable_bitsEm:
  344|  59.5k|      uint8_t* mutable_bits(size_t length) {
  345|  59.5k|         m_value.resize(length);
  346|  59.5k|         return m_value.data();
  347|  59.5k|      }
_ZNK5Botan3OID5emptyEv:
  468|  11.9k|      bool empty() const { return m_id.empty(); }
_ZNK5Botan3OID9has_valueEv:
  474|  5.78k|      bool has_value() const { return !empty(); }
_ZNK5Botan3OIDeqERKS0_:
  510|  33.4k|      bool operator==(const OID& other) const { return m_id == other.m_id; }
_ZNK5Botan19AlgorithmIdentifier3oidEv:
  688|  14.0k|      const OID& oid() const { return m_oid; }
_ZNK5Botan19AlgorithmIdentifier10parametersEv:
  693|  3.54k|      const std::vector<uint8_t>& parameters() const { return m_parameters; }
_ZNK5Botan19AlgorithmIdentifier20parameters_are_emptyEv:
  715|  9.29k|      bool parameters_are_empty() const { return m_parameters.empty(); }
_ZNK5Botan19AlgorithmIdentifier28parameters_are_null_or_emptyEv:
  720|  5.91k|      bool parameters_are_null_or_empty() const { return parameters_are_empty() || parameters_are_null(); }
  ------------------
  |  Branch (720:58): [True: 2.03k, False: 3.88k]
  |  Branch (720:84): [True: 2, False: 3.88k]
  ------------------
_ZN5BotanorENS_10ASN1_ClassES0_:
   91|  23.6k|inline ASN1_Class operator|(ASN1_Class x, ASN1_Class y) {
   92|  23.6k|   return static_cast<ASN1_Class>(static_cast<uint32_t>(x) | static_cast<uint32_t>(y));
   93|  23.6k|}
_ZN5BotanorENS_9ASN1_TypeENS_10ASN1_ClassE:
   98|  68.8k|inline uint32_t operator|(ASN1_Type x, ASN1_Class y) {
   99|  68.8k|   return static_cast<uint32_t>(x) | static_cast<uint32_t>(y);
  100|  68.8k|}
_ZN5BotanorENS_10ASN1_ClassENS_9ASN1_TypeE:
  105|  9.27k|inline uint32_t operator|(ASN1_Class x, ASN1_Type y) {
  106|  9.27k|   return static_cast<uint32_t>(x) | static_cast<uint32_t>(y);
  107|  9.27k|}
_ZN5BotanneERKNS_3OIDES2_:
  561|  5.60k|inline bool operator!=(const OID& a, const OID& b) {
  562|  5.60k|   return !(a == b);
  563|  5.60k|}
_ZNKSt3__14hashIN5Botan3OIDEEclERKS2_:
  761|  1.74k|      size_t operator()(const Botan::OID& oid) const noexcept { return static_cast<size_t>(oid.hash_code()); }
_ZN5Botan3OIDC2Ev:
  423|  24.6k|      explicit OID() = default;
_ZN5Botan11ASN1_ObjectC2Ev:
  146|  70.2k|      ASN1_Object() = default;
_ZN5Botan11ASN1_ObjectD2Ev:
  168|  80.1k|      virtual ~ASN1_Object() = default;
_ZN5Botan11ASN1_ObjectC2ERKS0_:
  151|  2.34k|      ASN1_Object(const ASN1_Object&) = default;
_ZN5Botan11ASN1_ObjectaSERKS0_:
  156|  3.32k|      ASN1_Object& operator=(const ASN1_Object&) = default;
_ZN5Botan19AlgorithmIdentifierC2Ev:
  655|  13.8k|      AlgorithmIdentifier() = default;
_ZN5Botan11ASN1_ObjectC2EOS0_:
  161|  7.55k|      ASN1_Object(ASN1_Object&&) = default;
_ZN5Botan10BER_ObjectC2Ev:
  239|   110k|      BER_Object() = default;
_ZN5Botan10BER_ObjectaSEOS0_:
  259|  26.5k|      BER_Object& operator=(BER_Object&& other) = default;
_ZN5Botan10BER_ObjectC2EOS0_:
  249|  24.8k|      BER_Object(BER_Object&& other) = default;
_ZN5Botan14ASN1_BitStringC2Ev:
  179|    779|      ASN1_BitString() = default;

_ZN5Botan13ignore_paramsIJPKmmEEEvDpRKT_:
  142|  36.9M|constexpr void ignore_params([[maybe_unused]] const T&... args) {}
_ZN5Botan13ignore_paramsIJmEEEvDpRKT_:
  142|  30.2k|constexpr void ignore_params([[maybe_unused]] const T&... args) {}
_ZN5Botan13ignore_paramsIJNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEEEEvDpRKT_:
  142|    511|constexpr void ignore_params([[maybe_unused]] const T&... args) {}
_ZN5Botan13ignore_paramsIJPKhmEEEvDpRKT_:
  142|  2.87k|constexpr void ignore_params([[maybe_unused]] const T&... args) {}
_ZN5Botan13ignore_paramsIJPKbmEEEvDpRKT_:
  142|   320k|constexpr void ignore_params([[maybe_unused]] const T&... args) {}
_ZN5Botan13ignore_paramsIJPKimEEEvDpRKT_:
  142|  2.76k|constexpr void ignore_params([[maybe_unused]] const T&... args) {}
_ZN5Botan13ignore_paramsIJPKsmEEEvDpRKT_:
  142|    160|constexpr void ignore_params([[maybe_unused]] const T&... args) {}
_ZN5Botan13ignore_paramsIJNSt3__14spanIKhLm18446744073709551615EEES4_EEEvDpRKT_:
  142|  4.28k|constexpr void ignore_params([[maybe_unused]] const T&... args) {}

_ZN5Botan11BER_Decoder6Limits3DEREv:
   42|  13.9k|            static Limits DER() { return Limits(false, 0, false, DefaultMaxObjectSize, false); }
_ZN5Botan11BER_Decoder6LimitsC2EbmbNSt3__18optionalImEEb:
  133|  13.9k|                  m_allow_ber(allow_ber),
  134|  13.9k|                  m_max_nested_indef(max_nested_indef),
  135|  13.9k|                  m_allow_standalone_eoc(allow_standalone_eoc),
  136|  13.9k|                  m_max_object_size(max_object_size),
  137|  13.9k|                  m_reject_default_value_encoding(reject_default_value_encoding) {}
_ZN5Botan11BER_Decoder14start_sequenceEv:
  275|  19.8k|      BER_Decoder start_sequence() { return start_cons(ASN1_Type::Sequence, ASN1_Class::Universal); }
_ZN5Botan11BER_Decoder6decodeERNS_6BigIntE:
  368|  4.56k|      BER_Decoder& decode(BigInt& out) { return decode(out, ASN1_Type::Integer, ASN1_Class::Universal); }
_ZN5Botan11BER_Decoder6decodeINSt3__19allocatorIhEEEERS0_RNS2_6vectorIhT_EENS_9ASN1_TypeE:
  386|  1.13k|      BER_Decoder& decode(std::vector<uint8_t, Alloc>& out, ASN1_Type real_type) {
  387|  1.13k|         return decode(out, real_type, real_type, ASN1_Class::Universal);
  388|  1.13k|      }
_ZN5Botan11BER_Decoder16decode_and_checkImEERS0_RKT_NSt3__117basic_string_viewIcNS6_11char_traitsIcEEEE:
  701|  11.0k|      BER_Decoder& decode_and_check(const T& expected, std::string_view error_msg) {
  702|  11.0k|         T actual;
  703|  11.0k|         decode(actual);
  704|       |
  705|  11.0k|         if(actual != expected) {
  ------------------
  |  Branch (705:13): [True: 95, False: 10.9k]
  ------------------
  706|     95|            throw Decoding_Error(error_msg);
  707|     95|         }
  708|       |
  709|  10.9k|         return (*this);
  710|  11.0k|      }
_ZN5Botan11BER_Decoder6decodeERm:
  363|  11.0k|      BER_Decoder& decode(size_t& out) { return decode(out, ASN1_Type::Integer, ASN1_Class::Universal); }
_ZN5Botan11BER_Decoder16decode_and_checkINS_3OIDEEERS0_RKT_NSt3__117basic_string_viewIcNS7_11char_traitsIcEEEE:
  701|  1.14k|      BER_Decoder& decode_and_check(const T& expected, std::string_view error_msg) {
  702|  1.14k|         T actual;
  703|  1.14k|         decode(actual);
  704|       |
  705|  1.14k|         if(actual != expected) {
  ------------------
  |  Branch (705:13): [True: 5, False: 1.14k]
  ------------------
  706|      5|            throw Decoding_Error(error_msg);
  707|      5|         }
  708|       |
  709|  1.14k|         return (*this);
  710|  1.14k|      }
_ZN5Botan11BER_Decoder22decode_optional_stringINSt3__19allocatorIhEEEERS0_RNS2_6vectorIhT_EENS_9ASN1_TypeESA_NS_10ASN1_ClassE:
  756|  1.14k|                                          ASN1_Class class_tag = ASN1_Class::ContextSpecific) {
  757|  1.14k|         return decode_optional_string(out, real_type, static_cast<uint32_t>(expected_tag), class_tag);
  758|  1.14k|      }
_ZN5Botan11BER_Decoder22decode_optional_stringINSt3__19allocatorIhEEEERS0_RNS2_6vectorIhT_EENS_9ASN1_TypeEjNS_10ASN1_ClassE:
  724|  1.14k|                                          ASN1_Class class_tag = ASN1_Class::ContextSpecific) {
  725|  1.14k|         BER_Object obj = get_next_object();
  726|       |
  727|  1.14k|         const ASN1_Type type_tag = static_cast<ASN1_Type>(expected_tag);
  728|       |
  729|  1.14k|         if(obj.is_a(type_tag, class_tag)) {
  ------------------
  |  Branch (729:13): [True: 1.06k, False: 80]
  ------------------
  730|  1.06k|            if(class_tag == ASN1_Class::ExplicitContextSpecific) {
  ------------------
  |  Branch (730:16): [True: 0, False: 1.06k]
  ------------------
  731|      0|               BER_Decoder(obj, m_limits).decode(out, real_type).verify_end();
  732|  1.06k|            } else {
  733|  1.06k|               push_back(std::move(obj));
  734|  1.06k|               decode(out, real_type, type_tag, class_tag);
  735|  1.06k|            }
  736|  1.06k|         } else {
  737|     80|            out.clear();
  738|     80|            push_back(std::move(obj));
  739|     80|         }
  740|       |
  741|  1.14k|         return (*this);
  742|  1.14k|      }
_ZN5Botan11BER_DecoderC2ERKNS_10BER_ObjectENS0_6LimitsE:
  167|    801|            BER_Decoder(obj.data(), limits) {}
_ZNK5Botan11BER_Decoder6Limits18allow_ber_encodingEv:
   56|   156k|            bool allow_ber_encoding() const { return m_allow_ber; }
_ZNK5Botan11BER_Decoder6Limits20require_der_encodingEv:
   61|  96.6k|            bool require_der_encoding() const { return !allow_ber_encoding(); }
_ZNK5Botan11BER_Decoder6Limits15max_object_sizeEv:
   80|  59.7k|            std::optional<size_t> max_object_size() const { return m_max_object_size; }
_ZNK5Botan11BER_Decoder6limitsEv:
  197|  19.6k|      Limits limits() const { return m_limits; }
_ZN5Botan11BER_Decoder6decodeINS_16secure_allocatorIhEEEERS0_RNSt3__16vectorIhT_EENS_9ASN1_TypeE:
  386|  11.4k|      BER_Decoder& decode(std::vector<uint8_t, Alloc>& out, ASN1_Type real_type) {
  387|  11.4k|         return decode(out, real_type, real_type, ASN1_Class::Universal);
  388|  11.4k|      }
_ZN5Botan11BER_Decoder9raw_bytesINSt3__19allocatorIhEEEERS0_RNS2_6vectorIhT_EE:
  338|  5.91k|      BER_Decoder& raw_bytes(std::vector<uint8_t, Alloc>& out) {
  339|  5.91k|         out.clear();
  340|   436k|         for(;;) {
  341|   436k|            if(auto next = this->read_next_byte()) {
  ------------------
  |  Branch (341:21): [True: 430k, False: 5.91k]
  ------------------
  342|   430k|               out.push_back(*next);
  343|   430k|            } else {
  344|  5.91k|               break;
  345|  5.91k|            }
  346|   436k|         }
  347|  5.91k|         return (*this);
  348|  5.91k|      }
_ZN5Botan11BER_Decoder15decode_optionalINS_3OIDEEERS0_RT_NS_9ASN1_TypeENS_10ASN1_ClassERKS4_:
  553|  3.33k|      BER_Decoder& decode_optional(T& out, ASN1_Type type_tag, ASN1_Class class_tag, const T& default_value = T()) {
  554|  3.33k|         std::optional<T> optval;
  555|  3.33k|         this->decode_optional(optval, type_tag, class_tag);
  556|  3.33k|         out = optval ? *optval : default_value;
  ------------------
  |  Branch (556:16): [True: 20, False: 3.31k]
  ------------------
  557|  3.33k|         return (*this);
  558|  3.33k|      }
_ZN5Botan11BER_Decoder15decode_optionalINS_3OIDEEERS0_RNSt3__18optionalIT_EENS_9ASN1_TypeENS_10ASN1_ClassE:
  827|  3.33k|BER_Decoder& BER_Decoder::decode_optional(std::optional<T>& optval, ASN1_Type type_tag, ASN1_Class class_tag) {
  828|  3.33k|   BER_Object obj = get_next_object();
  829|       |
  830|  3.33k|   if(obj.is_a(type_tag, class_tag)) {
  ------------------
  |  Branch (830:7): [True: 22, False: 3.31k]
  ------------------
  831|     22|      T out{};
  832|     22|      if(class_tag == ASN1_Class::ExplicitContextSpecific) {
  ------------------
  |  Branch (832:10): [True: 22, False: 0]
  ------------------
  833|     22|         BER_Decoder(obj, m_limits).decode(out).verify_end();
  834|     22|      } else {
  835|      0|         this->push_back(std::move(obj));
  836|      0|         if constexpr(std::is_base_of_v<ASN1_Object, T>) {
  837|       |            // Object types check the tag in decode_from; a re-tagging
  838|       |            // implicit override of an object is not supported here
  839|      0|            this->decode(out);
  840|       |         } else {
  841|       |            this->decode(out, type_tag, class_tag);
  842|       |         }
  843|      0|      }
  844|     22|      optval = std::move(out);
  845|  3.31k|   } else {
  846|  3.31k|      this->push_back(std::move(obj));
  847|  3.31k|      optval = std::nullopt;
  848|  3.31k|   }
  849|       |
  850|  3.33k|   return (*this);
  851|  3.33k|}
_ZN5Botan11BER_Decoder39decode_optional_octet_aligned_bitstringINS_16secure_allocatorIhEEEERS0_RNSt3__16vectorIhT_EEjNS_10ASN1_ClassE:
  771|  3.32k|                                                           ASN1_Class class_tag = ASN1_Class::ContextSpecific) {
  772|  3.32k|         BER_Object obj = get_next_object();
  773|       |
  774|  3.32k|         const ASN1_Type type_tag = static_cast<ASN1_Type>(expected_tag);
  775|       |
  776|  3.32k|         if(obj.is_a(type_tag, class_tag)) {
  ------------------
  |  Branch (776:13): [True: 779, False: 2.54k]
  ------------------
  777|    779|            if(class_tag == ASN1_Class::ExplicitContextSpecific) {
  ------------------
  |  Branch (777:16): [True: 779, False: 0]
  ------------------
  778|    779|               BER_Decoder(obj, m_limits).decode_octet_aligned_bitstring(out).verify_end();
  779|    779|            } else {
  780|      0|               push_back(std::move(obj));
  781|      0|               decode_octet_aligned_bitstring(out, type_tag, class_tag);
  782|      0|            }
  783|  2.54k|         } else {
  784|  2.54k|            out.clear();
  785|  2.54k|            push_back(std::move(obj));
  786|  2.54k|         }
  787|       |
  788|  3.32k|         return (*this);
  789|  3.32k|      }
_ZN5Botan11BER_Decoder30decode_octet_aligned_bitstringINS_16secure_allocatorIhEEEERS0_RNSt3__16vectorIhT_EENS_9ASN1_TypeENS_10ASN1_ClassE:
  464|    779|                                                  ASN1_Class class_tag = ASN1_Class::Universal) {
  465|    779|         ASN1_BitString bits;
  466|    779|         decode_bitstring(bits, type_tag, class_tag);
  467|       |
  468|    779|         if(bits.unused_bits() != 0) {
  ------------------
  |  Branch (468:13): [True: 3, False: 776]
  ------------------
  469|      3|            throw Decoding_Error("Expected octet-aligned BIT STRING");
  470|      3|         }
  471|       |
  472|    776|         out.assign(bits.bytes().begin(), bits.bytes().end());
  473|    776|         return (*this);
  474|    779|      }

_ZN5Botan6BigInt4zeroEv:
   50|  14.6k|      static BigInt zero() { return BigInt(); }
_ZN5Botan6BigInt3oneEv:
   55|  1.81k|      static BigInt one() { return BigInt::from_u64(1); }
_ZN5Botan6BigIntC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   98|  13.7k|      explicit BigInt(std::string_view str) { *this = BigInt::from_string(str); }
_ZN5Botan6BigIntC2ENSt3__14spanIKhLm18446744073709551615EEE:
  139|    245|      explicit BigInt(std::span<const uint8_t> bytes) { assign_from_bytes(bytes); }
_ZN5Botan6BigIntC2EOS0_:
  183|  27.3k|      BigInt(BigInt&& other) noexcept { this->swap(other); }
_ZN5Botan6BigIntD2Ev:
  185|  5.32M|      ~BigInt() { _const_time_unpoison(); }
_ZN5Botan6BigIntaSEOS0_:
  190|  2.02M|      BigInt& operator=(BigInt&& other) noexcept {
  191|  2.02M|         if(this != &other) {
  ------------------
  |  Branch (191:13): [True: 2.02M, False: 0]
  ------------------
  192|  2.02M|            this->swap(other);
  193|  2.02M|         }
  194|       |
  195|  2.02M|         return (*this);
  196|  2.02M|      }
_ZN5Botan6BigInt4swapERS0_:
  207|  2.83M|      void swap(BigInt& other) noexcept {
  208|  2.83M|         m_data.swap(other.m_data);
  209|  2.83M|         std::swap(m_signedness, other.m_signedness);
  210|  2.83M|      }
_ZN5Botan6BigInt8swap_regERNSt3__16vectorImNS_16secure_allocatorImEEEE:
  218|   545k|      BOTAN_DEPRECATED("Deprecated no replacement") void swap_reg(secure_vector<word>& reg) {
  219|   545k|         m_data.swap(reg);
  220|       |         // sign left unchanged
  221|   545k|      }
_ZN5Botan6BigIntpLEm:
  233|  3.20k|      BigInt& operator+=(word y) { return add(&y, 1, Positive); }
_ZN5Botan6BigIntmIEm:
  245|  1.92k|      BigInt& operator-=(word y) { return sub(&y, 1, Positive); }
_ZN5Botan6BigInt3subEPKmmNS0_4SignE:
  358|  55.5k|      BigInt& sub(const word y[], size_t y_words, Sign sign) {
  359|  55.5k|         return add(y, y_words, sign == Positive ? Negative : Positive);
  ------------------
  |  Branch (359:33): [True: 55.5k, False: 0]
  ------------------
  360|  55.5k|      }
_ZN5Botan6BigInt5clearEv:
  441|  37.4k|      void clear() {
  442|  37.4k|         m_data.set_to_zero();
  443|  37.4k|         m_signedness = Positive;
  444|  37.4k|      }
_ZNK5Botan6BigInt7is_evenEv:
  481|  8.85k|      bool is_even() const { return !get_bit(0); }
_ZNK5Botan6BigInt6is_oddEv:
  487|   814k|      bool is_odd() const { return get_bit(0); }
_ZNK5Botan6BigInt6signumEv:
  493|  9.94M|      int signum() const {
  494|  9.94M|         if(sig_words() == 0) {
  ------------------
  |  Branch (494:13): [True: 15.6k, False: 9.92M]
  ------------------
  495|  15.6k|            return 0;
  496|  15.6k|         }
  497|  9.92M|         return (sign() == Negative) ? -1 : 1;
  ------------------
  |  Branch (497:17): [True: 9.78k, False: 9.91M]
  ------------------
  498|  9.94M|      }
_ZNK5Botan6BigInt7is_zeroEv:
  510|   637k|      bool is_zero() const { return sig_words() == 0; }
_ZN5Botan6BigInt7set_bitEm:
  516|  15.0k|      void set_bit(size_t n) { conditionally_set_bit(n, true); }
_ZN5Botan6BigInt21conditionally_set_bitEmb:
  526|   460k|      void conditionally_set_bit(size_t n, bool set_it) {
  527|   460k|         const size_t which = n / (sizeof(word) * 8);
  528|   460k|         const word mask = static_cast<word>(set_it) << (n % (sizeof(word) * 8));
  529|   460k|         m_data.set_word_at(which, word_at(which) | mask);
  530|   460k|      }
_ZNK5Botan6BigInt7get_bitEm:
  549|  1.34M|      bool get_bit(size_t n) const { return ((word_at(n / (sizeof(word) * 8)) >> (n % (sizeof(word) * 8))) & 1) == 1; }
_ZNK5Botan6BigInt7word_atEm:
  601|  21.8M|      word word_at(size_t n) const { return m_data.get_word_at(n); }
_ZN5Botan6BigInt11set_word_atEmm:
  608|  10.0M|      BOTAN_DEPRECATED("Deprecated no replacement") void set_word_at(size_t i, word w) { m_data.set_word_at(i, w); }
_ZN5Botan6BigInt9set_wordsEPKmm:
  615|  30.4k|      BOTAN_DEPRECATED("Deprecated no replacement") void set_words(const word w[], size_t len) {
  616|  30.4k|         m_data.set_words(w, len);
  617|  30.4k|      }
_ZNK5Botan6BigInt4signEv:
  641|  14.2M|      Sign sign() const { return (m_signedness); }
_ZNK5Botan6BigInt12reverse_signEv:
  647|  5.12k|      Sign reverse_sign() const {
  648|  5.12k|         if(sign() == Positive) {
  ------------------
  |  Branch (648:13): [True: 3.84k, False: 1.28k]
  ------------------
  649|  3.84k|            return Negative;
  650|  3.84k|         }
  651|  1.28k|         return Positive;
  652|  5.12k|      }
_ZN5Botan6BigInt9flip_signEv:
  657|  3.20k|      BOTAN_DEPRECATED("Deprecated no replacement") void flip_sign() { set_sign(reverse_sign()); }
_ZN5Botan6BigInt8set_signENS0_4SignE:
  663|  1.45M|      void set_sign(Sign sign) {
  664|  1.45M|         if(sign == Negative && is_zero()) {
  ------------------
  |  Branch (664:13): [True: 6.03k, False: 1.45M]
  |  Branch (664:33): [True: 1.92k, False: 4.11k]
  ------------------
  665|  1.92k|            sign = Positive;
  666|  1.92k|         }
  667|       |
  668|  1.45M|         m_signedness = sign;
  669|  1.45M|      }
_ZNK5Botan6BigInt4sizeEv:
  681|  48.6M|      size_t size() const { return m_data.size(); }
_ZNK5Botan6BigInt9sig_wordsEv:
  687|  24.4M|      size_t sig_words() const { return m_data.sig_words(); }
_ZN5Botan6BigInt12mutable_dataEv:
  712|  13.7M|      BOTAN_DEPRECATED("Deprecated no replacement") word* mutable_data() { return m_data.mutable_data(); }
_ZNK5Botan6BigInt4dataEv:
  718|  13.0k|      BOTAN_DEPRECATED("Deprecated no replacement") const word* data() const { return m_data.const_data(); }
_ZN5Botan6BigInt15get_word_vectorEv:
  723|   404k|      BOTAN_DEPRECATED("Deprecated no replacement") secure_vector<word>& get_word_vector() {
  724|   404k|         return m_data.mutable_vector();
  725|   404k|      }
_ZNK5Botan6BigInt7grow_toEm:
  738|  6.65M|      BOTAN_DEPRECATED("Deprecated no replacement") void grow_to(size_t n) const { m_data.grow_to(n); }
_ZN5Botan6BigInt10power_of_2Em:
  906|  5.12k|      static BigInt power_of_2(size_t n) {
  907|  5.12k|         BigInt b;
  908|  5.12k|         b.set_bit(n);
  909|  5.12k|         return b;
  910|  5.12k|      }
_ZN5Botan6BigInt6decodeEPKhm:
  943|    270|      BOTAN_DEPRECATED("Use BigInt::from_bytes") static BigInt decode(const uint8_t buf[], size_t length) {
  944|    270|         return BigInt::from_bytes(std::span{buf, length});
  945|    270|      }
_ZN5Botan6BigInt11encode_1363EPhmRKS0_:
 1001|    200|      static void encode_1363(uint8_t out[], size_t bytes, const BigInt& n) {
 1002|    200|         n.serialize_to(std::span{out, bytes});
 1003|    200|      }
_ZNK5Botan6BigInt8_as_spanEv:
 1023|  1.08M|      std::span<const word> _as_span() const { return m_data.const_span(); }
_ZNK5Botan6BigInt5_dataEv:
 1033|  36.6M|      const word* _data() const { return m_data.const_data(); }
_ZN5Botan6BigInt18_assign_from_bytesENSt3__14spanIKhLm18446744073709551615EEE:
 1044|  15.2k|      void _assign_from_bytes(std::span<const uint8_t> bytes) { assign_from_bytes(bytes); }
_ZN5Botan6BigInt11_from_wordsERNSt3__16vectorImNS_16secure_allocatorImEEEE:
 1052|  2.45M|      static BigInt _from_words(secure_vector<word>& words) {
 1053|  2.45M|         BigInt bn;
 1054|  2.45M|         bn.m_data.swap(words);
 1055|  2.45M|         return bn;
 1056|  2.45M|      }
_ZN5Botan6BigInt4Data12mutable_dataEv:
 1083|  14.6M|            word* mutable_data() {
 1084|  14.6M|               invalidate_sig_words();
 1085|  14.6M|               return m_reg.data();
 1086|  14.6M|            }
_ZNK5Botan6BigInt4Data10const_dataEv:
 1088|  42.0M|            const word* const_data() const { return m_reg.data(); }
_ZNK5Botan6BigInt4Data10const_spanEv:
 1090|  1.08M|            std::span<const word> const_span() const { return std::span{m_reg}; }
_ZN5Botan6BigInt4Data14mutable_vectorEv:
 1092|   404k|            secure_vector<word>& mutable_vector() {
 1093|   404k|               invalidate_sig_words();
 1094|   404k|               return m_reg;
 1095|   404k|            }
_ZNK5Botan6BigInt4Data11get_word_atEm:
 1099|  21.8M|            word get_word_at(size_t n) const {
 1100|  21.8M|               if(n < m_reg.size()) {
  ------------------
  |  Branch (1100:19): [True: 21.7M, False: 14.4k]
  ------------------
 1101|  21.7M|                  return m_reg[n];
 1102|  21.7M|               }
 1103|  14.4k|               return 0;
 1104|  21.8M|            }
_ZN5Botan6BigInt4Data11set_word_atEmm:
 1106|  10.5M|            void set_word_at(size_t i, word w) {
 1107|  10.5M|               invalidate_sig_words();
 1108|  10.5M|               if(i >= m_reg.size()) {
  ------------------
  |  Branch (1108:19): [True: 364k, False: 10.1M]
  ------------------
 1109|   364k|                  if(w == 0) {
  ------------------
  |  Branch (1109:22): [True: 337k, False: 26.7k]
  ------------------
 1110|   337k|                     return;
 1111|   337k|                  }
 1112|  26.7k|                  grow_to(i + 1);
 1113|  26.7k|               }
 1114|  10.1M|               m_reg[i] = w;
 1115|  10.1M|            }
_ZN5Botan6BigInt4Data9set_wordsEPKmm:
 1117|  30.4k|            void set_words(const word w[], size_t len) {
 1118|  30.4k|               invalidate_sig_words();
 1119|  30.4k|               m_reg.assign(w, w + len);
 1120|  30.4k|            }
_ZNK5Botan6BigInt4Data7grow_toEm:
 1126|  6.69M|            void grow_to(size_t n) const {
 1127|  6.69M|               if(n > size()) {
  ------------------
  |  Branch (1127:19): [True: 3.50M, False: 3.18M]
  ------------------
 1128|  3.50M|                  if(n <= m_reg.capacity()) {
  ------------------
  |  Branch (1128:22): [True: 562k, False: 2.94M]
  ------------------
 1129|   562k|                     m_reg.resize(n);
 1130|  2.94M|                  } else {
 1131|  2.94M|                     m_reg.resize(n + (8 - (n % 8)));
 1132|  2.94M|                  }
 1133|  3.50M|               }
 1134|  6.69M|            }
_ZNK5Botan6BigInt4Data4sizeEv:
 1136|  61.5M|            size_t size() const { return m_reg.size(); }
_ZN5Botan6BigInt4Data4swapERS1_:
 1151|  2.83M|            void swap(Data& other) noexcept {
 1152|  2.83M|               m_reg.swap(other.m_reg);
 1153|  2.83M|               std::swap(m_sig_words, other.m_sig_words);
 1154|  2.83M|            }
_ZN5Botan6BigInt4Data4swapERNSt3__16vectorImNS_16secure_allocatorImEEEE:
 1156|  3.03M|            void swap(secure_vector<word>& reg) noexcept {
 1157|  3.03M|               m_reg.swap(reg);
 1158|  3.03M|               invalidate_sig_words();
 1159|  3.03M|            }
_ZNK5Botan6BigInt4Data20invalidate_sig_wordsEv:
 1161|  28.6M|            void invalidate_sig_words() const noexcept { m_sig_words = sig_words_npos; }
_ZNK5Botan6BigInt4Data9sig_wordsEv:
 1163|  24.4M|            size_t sig_words() const {
 1164|  24.4M|               if(m_sig_words == sig_words_npos) {
  ------------------
  |  Branch (1164:19): [True: 8.31M, False: 16.1M]
  ------------------
 1165|  8.31M|                  m_sig_words = calc_sig_words();
 1166|  8.31M|               }
 1167|  24.4M|               return m_sig_words;
 1168|  24.4M|            }
_ZN5BotanplERKNS_6BigIntES2_:
 1189|   809k|inline BigInt operator+(const BigInt& x, const BigInt& y) {
 1190|   809k|   return BigInt::add2(x, y._data(), y.sig_words(), y.sign());
 1191|   809k|}
_ZN5BotanplERKNS_6BigIntEm:
 1199|  2.27k|inline BigInt operator+(const BigInt& x, word y) {
 1200|  2.27k|   return BigInt::add2(x, &y, 1, BigInt::Positive);
 1201|  2.27k|}
_ZN5BotanmiERKNS_6BigIntES2_:
 1219|  1.92k|inline BigInt operator-(const BigInt& x, const BigInt& y) {
 1220|  1.92k|   return BigInt::add2(x, y._data(), y.sig_words(), y.reverse_sign());
 1221|  1.92k|}
_ZN5BotanmiERKNS_6BigIntEm:
 1229|  4.60k|inline BigInt operator-(const BigInt& x, word y) {
 1230|  4.60k|   return BigInt::add2(x, &y, 1, BigInt::Negative);
 1231|  4.60k|}
_ZN5BotanmlEmRKNS_6BigIntE:
 1255|  50.1k|inline BigInt operator*(word x, const BigInt& y) {
 1256|  50.1k|   return y * x;
 1257|  50.1k|}
_ZN5BotaneqERKNS_6BigIntES2_:
 1313|  20.8k|inline bool operator==(const BigInt& a, const BigInt& b) {
 1314|  20.8k|   return a.is_equal(b);
 1315|  20.8k|}
_ZN5BotanneERKNS_6BigIntES2_:
 1323|  4.24k|inline bool operator!=(const BigInt& a, const BigInt& b) {
 1324|  4.24k|   return !a.is_equal(b);
 1325|  4.24k|}
_ZN5BotangeERKNS_6BigIntES2_:
 1343|  14.3k|inline bool operator>=(const BigInt& a, const BigInt& b) {
 1344|  14.3k|   return (a.cmp(b) >= 0);
 1345|  14.3k|}
_ZN5BotanltERKNS_6BigIntES2_:
 1353|  20.2k|inline bool operator<(const BigInt& a, const BigInt& b) {
 1354|  20.2k|   return a.is_less_than(b);
 1355|  20.2k|}
_ZN5BotangtERKNS_6BigIntES2_:
 1363|    183|inline bool operator>(const BigInt& a, const BigInt& b) {
 1364|    183|   return b.is_less_than(a);
 1365|    183|}
_ZN5BotaneqERKNS_6BigIntEm:
 1373|  57.2k|inline bool operator==(const BigInt& a, word b) {
 1374|  57.2k|   return (a.cmp_word(b) == 0);
 1375|  57.2k|}
_ZN5BotanneERKNS_6BigIntEm:
 1383|  2.31k|inline bool operator!=(const BigInt& a, word b) {
 1384|  2.31k|   return (a.cmp_word(b) != 0);
 1385|  2.31k|}
_ZN5BotanleERKNS_6BigIntEm:
 1393|  3.70k|inline bool operator<=(const BigInt& a, word b) {
 1394|  3.70k|   return (a.cmp_word(b) <= 0);
 1395|  3.70k|}
_ZN5BotangeERKNS_6BigIntEm:
 1403|  7.25k|inline bool operator>=(const BigInt& a, word b) {
 1404|  7.25k|   return (a.cmp_word(b) >= 0);
 1405|  7.25k|}
_ZN5BotanltERKNS_6BigIntEm:
 1413|  18.4k|inline bool operator<(const BigInt& a, word b) {
 1414|  18.4k|   return (a.cmp_word(b) < 0);
 1415|  18.4k|}
_ZN5BotangtERKNS_6BigIntEm:
 1423|  2.60k|inline bool operator>(const BigInt& a, word b) {
 1424|  2.60k|   return (a.cmp_word(b) > 0);
 1425|  2.60k|}
_ZNK5Botan6BigInt9serializeINSt3__16vectorIhNS2_9allocatorIhEEEEEET_m:
  790|    486|      T serialize(size_t len) const {
  791|       |         // TODO this supports std::vector and secure_vector
  792|       |         // it would be nice if this also could work with std::array as in
  793|       |         //   bn.serialize_to<std::array<uint8_t, 32>>(32);
  794|    486|         T out(len);
  795|    486|         this->serialize_to(out);
  796|    486|         return out;
  797|    486|      }
_ZN5Botan6BigIntC2Ev:
   45|  4.87M|      BigInt() = default;
_ZN5Botan6BigIntC2ERKS0_:
   88|   405k|      BigInt(const BigInt& other) = default;
_ZN5Botan6BigIntaSERKS0_:
  201|  1.11M|      BigInt& operator=(const BigInt&) = default;

_ZN5Botan20Buffered_Computation6updateEPKhm:
   35|      2|      void update(const uint8_t in[], size_t length) { add_data({in, length}); }
_ZN5Botan20Buffered_Computation6updateENSt3__14spanIKhLm18446744073709551615EEE:
   41|     75|      void update(std::span<const uint8_t> in) { add_data(in); }
_ZN5Botan20Buffered_Computation5finalEPh:
   97|      2|      void final(uint8_t out[]) { final_result({out, output_length()}); }
_ZN5Botan20Buffered_ComputationD2Ev:
  169|     52|      virtual ~Buffered_Computation() = default;
_ZN5Botan20Buffered_Computation5finalITkNS_8concepts21resizable_byte_bufferENSt3__16vectorIhNS_16secure_allocatorIhEEEEEET_v:
  104|     25|      T final() {
  105|     25|         T output(output_length());
  106|     25|         final_result(output);
  107|     25|         return output;
  108|     25|      }
_ZN5Botan20Buffered_Computation7processITkNS_8concepts21resizable_byte_bufferENS_6StrongINSt3__16vectorIhNS4_9allocatorIhEEEENS_21KyberHashedPublicKey_EJEEEEET_NS4_4spanIKhLm18446744073709551615EEE:
  164|     25|      T process(std::span<const uint8_t> in) {
  165|     25|         update(in);
  166|     25|         return final<T>();
  167|     25|      }
_ZN5Botan20Buffered_Computation5finalITkNS_8concepts21resizable_byte_bufferENS_6StrongINSt3__16vectorIhNS4_9allocatorIhEEEENS_21KyberHashedPublicKey_EJEEEEET_v:
  104|     25|      T final() {
  105|     25|         T output(output_length());
  106|     25|         final_result(output);
  107|     25|         return output;
  108|     25|      }

_ZN5Botan8CurveGFp4swapERS0_:
   82|   172k|      void swap(CurveGFp& other) noexcept { std::swap(m_group, other.m_group); }
_ZNK5Botan8CurveGFpeqERKS0_:
   84|   112k|      bool operator==(const CurveGFp& other) const { return (m_group == other.m_group); }
_ZN5Botan8CurveGFpC2Ev:
   75|   203k|      CurveGFp() = default;

_ZN5Botan17DataSource_MemoryC2ENSt3__14spanIKhLm18446744073709551615EEE:
  181|  21.6k|      explicit DataSource_Memory(std::span<const uint8_t> in) : m_offset(0) {
  182|       |         // Guard against forming a range from a null pointer (eg an empty span)
  183|  21.6k|         if(!in.empty()) {
  ------------------
  |  Branch (183:13): [True: 21.5k, False: 30]
  ------------------
  184|  21.5k|            m_source.assign(in.begin(), in.end());
  185|  21.5k|         }
  186|  21.6k|      }
_ZN5Botan10DataSourceC2Ev:
  107|  47.7k|      DataSource() = default;
_ZN5Botan10DataSourceD2Ev:
  109|  41.3k|      virtual ~DataSource() = default;
_ZN5Botan17DataSource_MemoryC2ENSt3__16vectorIhNS_16secure_allocatorIhEEEE:
  175|      2|      explicit DataSource_Memory(secure_vector<uint8_t> in) : m_source(std::move(in)), m_offset(0) {}

_ZN5Botan11DER_Encoder10add_objectENS_9ASN1_TypeENS_10ASN1_ClassENSt3__14spanIKhLm18446744073709551615EEE:
  410|  2.23k|      DER_Encoder& add_object(ASN1_Type type_tag, ASN1_Class class_tag, std::span<const uint8_t> rep) {
  411|  2.23k|         return add_object(type_tag, class_tag, rep.data(), rep.size());
  412|  2.23k|      }
_ZN5Botan11DER_Encoder10add_objectENS_9ASN1_TypeENS_10ASN1_ClassERKNSt3__16vectorIhNS3_9allocatorIhEEEE:
  421|  2.23k|      DER_Encoder& add_object(ASN1_Type type_tag, ASN1_Class class_tag, const std::vector<uint8_t>& rep) {
  422|  2.23k|         return add_object(type_tag, class_tag, std::span{rep});
  423|  2.23k|      }

_ZN5Botan12DH_PublicKeyC2Ev:
   68|    290|      DH_PublicKey() = default;

_ZNK5Botan13DilithiumMode19is_dilithium_round3Ev:
   49|    153|      bool is_dilithium_round3() const { return !is_ml_dsa(); }
_ZNK5Botan13DilithiumMode4modeEv:
   53|    459|      Mode mode() const { return m_mode; }
_ZN5Botan19Dilithium_PublicKeyC2Ev:
  101|     78|      Dilithium_PublicKey() = default;

_ZN5Botan13DSA_PublicKeyC2Ev:
   71|     11|      DSA_PublicKey() = default;

_ZNK5Botan14EC_AffinePoint5innerEv:
  354|  1.59k|      const EC_AffinePoint_Data& inner() const { return *m_point; }

_ZN5Botan8EC_GroupC2ERKNS_3OIDE:
  177|     15|      BOTAN_DEPRECATED("Use EC_Group::from_OID") explicit EC_Group(const OID& oid) { *this = EC_Group::from_OID(oid); }
_ZNK5Botan8EC_Group5_dataEv:
  545|  3.41k|      const std::shared_ptr<EC_Group_Data>& _data() const { return m_data; }
_ZN5Botan8EC_GroupC2EOS0_:
  238|  3.78k|      EC_Group(EC_Group&&) = default;

_ZN5Botan8EC_PointC2EOS0_:
   65|    200|      EC_Point(EC_Point&& other) noexcept { this->swap(other); }
_ZN5Botan8EC_PointaSEOS0_:
   75|   144k|      EC_Point& operator=(EC_Point&& other) noexcept {
   76|   144k|         if(this != &other) {
  ------------------
  |  Branch (76:13): [True: 144k, False: 0]
  ------------------
   77|   144k|            this->swap(other);
   78|   144k|         }
   79|   144k|         return (*this);
   80|   144k|      }
_ZNK5Botan8EC_Point7is_zeroEv:
  170|   398k|      bool is_zero() const { return m_z.is_zero(); }
_ZNK5Botan8EC_Point5get_xEv:
  248|   196k|      BOTAN_DEPRECATED("Use affine coordinates only") const BigInt& get_x() const { return m_x; }
_ZNK5Botan8EC_Point5get_yEv:
  255|   196k|      BOTAN_DEPRECATED("Use affine coordinates only") const BigInt& get_y() const { return m_y; }
_ZNK5Botan8EC_Point4plusERKS0_RNSt3__16vectorINS_6BigIntENS3_9allocatorIS5_EEEE:
  357|   112k|      EC_Point plus(const EC_Point& other, std::vector<BigInt>& workspace) const {
  358|   112k|         EC_Point x = (*this);
  359|   112k|         x.add(other, workspace);
  360|   112k|         return x;
  361|   112k|      }
_ZNK5Botan8EC_Point9get_curveEv:
  380|    249|      BOTAN_DEPRECATED("Deprecated no replacement") const CurveGFp& get_curve() const { return m_curve; }
_ZN5Botan8EC_PointD2Ev:
   82|   318k|      ~EC_Point() = default;
_ZN5Botan8EC_PointC2Ev:
   49|   201k|      EC_Point() = default;
_ZN5Botan8EC_PointC2ERKS0_:
   60|   112k|      EC_Point(const EC_Point&) = default;
_ZN5Botan8EC_PointaSERKS0_:
   70|   112k|      EC_Point& operator=(const EC_Point&) = default;

_ZNK5Botan9EC_Scalar10is_nonzeroEv:
  170|  2.18k|      bool is_nonzero() const { return !is_zero(); }
_ZNK5Botan9EC_Scalar6_innerEv:
  277|  1.59k|      const EC_Scalar_Data& _inner() const { return inner(); }
_ZNK5Botan9EC_Scalar5innerEv:
  291|  7.55k|      const EC_Scalar_Data& inner() const { return *m_scalar; }

_ZN5Botan12EC_PublicKeyC2Ev:
  140|  3.36k|      EC_PublicKey() = default;
_ZN5Botan12EC_PublicKeyD2Ev:
   42|  3.36k|      ~EC_PublicKey() override = default;
_ZN5Botan13EC_PrivateKeyD2Ev:
  173|  1.59k|      ~EC_PrivateKey() override = default;

_ZN5Botan15ECDH_PrivateKeyC1ERKNS_19AlgorithmIdentifierENSt3__14spanIKhLm18446744073709551615EEE:
   87|    883|            EC_PrivateKey(alg_id, key_bits) {}
_ZN5Botan14ECDH_PublicKeyC2Ev:
   67|    645|      ECDH_PublicKey() = default;

_ZN5Botan16ECDSA_PrivateKeyC1ERKNS_19AlgorithmIdentifierENSt3__14spanIKhLm18446744073709551615EEE:
   98|  2.48k|            EC_PrivateKey(assert_algorithm_identifier(alg_id, "ECDSA"), key_bits) {}
_ZN5Botan15ECDSA_PublicKeyC2Ev:
   79|  2.48k|      ECDSA_PublicKey() = default;

_ZN5Botan17Ed25519_PublicKeyC2Ev:
   63|     10|      Ed25519_PublicKey() = default;

_ZN5Botan15Ed448_PublicKeyC2Ev:
   70|      8|      Ed448_PublicKey() = default;

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

_ZN5Botan19GOST_3410_PublicKeyC2Ev:
   72|      2|      GOST_3410_PublicKey() = default;

_ZN5Botan15Kyber_PublicKeyD2Ev:
  105|     33|      ~Kyber_PublicKey() override = default;
_ZNK5Botan9KyberMode4modeEv:
   60|     58|      Mode mode() const { return m_mode; }
_ZN5Botan15Kyber_PublicKeyC2Ev:
  135|     33|      Kyber_PublicKey() = default;

_ZN5Botan8copy_memITkNS_6ranges23contiguous_output_rangeERNSt3__14spanIhLm18446744073709551615EEETkNS1_16contiguous_rangeENS3_IKhLm18446744073709551615EEEQaasr3stdE9is_same_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISF_EESG_E4type10value_typeENS8_IXsr21__is_primary_templateINS9_Iu14__remove_cvrefIDTclL_ZNSB_5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENSH_ISP_EESQ_E4type10value_typeEEsr3stdE23is_trivially_copyable_vISU_EEEvOSC_RKSM_:
  160|  1.07k|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|  1.07k|   ranges::assert_equal_byte_lengths(out, in);
  162|  1.07k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 1.07k]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|  1.07k|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 1.07k, False: 0]
  ------------------
  165|  1.07k|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|  1.07k|   }
  167|  1.07k|}
_ZN5Botan11clear_bytesEPvm:
  101|  16.1M|inline constexpr void clear_bytes(void* ptr, size_t bytes) {
  102|  16.1M|   if(bytes > 0) {
  ------------------
  |  Branch (102:7): [True: 16.1M, False: 37.4k]
  ------------------
  103|  16.1M|      std::memset(ptr, 0, bytes);
  104|  16.1M|   }
  105|  16.1M|}
_ZN5Botan9clear_memImEEvPT_m:
  118|  3.33M|inline constexpr void clear_mem(T* ptr, size_t n) {
  119|  3.33M|   clear_bytes(ptr, sizeof(T) * n);
  120|  3.33M|}
_ZN5Botan8copy_memIhQsr3stdE12is_trivial_vIu7__decayIT_EEEEvPS1_PKS1_m:
  144|  1.70M|inline constexpr void copy_mem(T* out, const T* in, size_t n) {
  145|  1.70M|   BOTAN_ASSERT_IMPLICATION(n > 0, in != nullptr && out != nullptr, "If n > 0 then args are not null");
  ------------------
  |  |  103|  1.70M|   do {                                                                                          \
  |  |  104|  1.70M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                              \
  |  |  105|  3.36M|      if((expr1) && !(expr2)) {                                                                  \
  |  |  ------------------
  |  |  |  Branch (105:10): [True: 1.68M, False: 26.0k]
  |  |  |  Branch (105:23): [True: 1.68M, False: 0]
  |  |  |  Branch (105:23): [True: 1.68M, False: 0]
  |  |  ------------------
  |  |  106|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                                     \
  |  |  107|      0|         Botan::assertion_failure(#expr1 " implies " #expr2, msg, __func__, __FILE__, __LINE__); \
  |  |  108|      0|      }                                                                                          \
  |  |  109|  1.70M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (109:12): [Folded, False: 1.70M]
  |  |  ------------------
  ------------------
  146|       |
  147|  1.70M|   if(in != nullptr && out != nullptr && n > 0) {
  ------------------
  |  Branch (147:7): [True: 1.70M, False: 37]
  |  Branch (147:24): [True: 1.70M, False: 2.13k]
  |  Branch (147:42): [True: 1.68M, False: 23.8k]
  ------------------
  148|  1.68M|      std::memmove(out, in, sizeof(T) * n);
  149|  1.68M|   }
  150|  1.70M|}
_ZN5Botan19secure_scrub_memoryITkNS_6ranges23contiguous_output_rangeERNSt3__16vectorIhNS2_9allocatorIhEEEEEEvOT_:
   59|   135k|void secure_scrub_memory(ranges::contiguous_output_range auto&& data) {
   60|   135k|   secure_scrub_memory(std::ranges::data(data), ranges::size_bytes(data));
   61|   135k|}
_ZN5Botan9clear_memIhEEvPT_m:
  118|  15.6k|inline constexpr void clear_mem(T* ptr, size_t n) {
  119|  15.6k|   clear_bytes(ptr, sizeof(T) * n);
  120|  15.6k|}
_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|  44.6k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromT& in) {
  200|  44.6k|   typecast_copy(out, std::span<const FromT, 1>(&in, 1));
  201|  44.6k|}
_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|  44.6k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  44.6k|   ranges::assert_equal_byte_lengths(out, in);
  178|  44.6k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  44.6k|}
_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|  4.48k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  4.48k|   ranges::assert_equal_byte_lengths(out, in);
  178|  4.48k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  4.48k|}
_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|  4.48k|inline constexpr void typecast_copy(ToT& out, const FromR& in) {
  189|  4.48k|   typecast_copy(std::span<ToT, 1>(&out, 1), in);
  190|  4.48k|}
_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|  4.48k|inline constexpr ToT typecast_copy(const FromR& src) {
  211|  4.48k|   ToT dst;  // NOLINT(*-member-init)
  212|  4.48k|   typecast_copy(dst, src);
  213|  4.48k|   return dst;
  214|  4.48k|}
_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|   181k|inline constexpr ToT typecast_copy(const FromR& src) {
  211|   181k|   ToT dst;  // NOLINT(*-member-init)
  212|   181k|   typecast_copy(dst, src);
  213|   181k|   return dst;
  214|   181k|}
_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|   181k|inline constexpr void typecast_copy(ToT& out, const FromR& in) {
  189|   181k|   typecast_copy(std::span<ToT, 1>(&out, 1), in);
  190|   181k|}
_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|   181k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|   181k|   ranges::assert_equal_byte_lengths(out, in);
  178|   181k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|   181k|}
_ZN5Botan8copy_memImQsr3stdE12is_trivial_vIu7__decayIT_EEEEvPS1_PKS1_m:
  144|  2.85M|inline constexpr void copy_mem(T* out, const T* in, size_t n) {
  145|  2.85M|   BOTAN_ASSERT_IMPLICATION(n > 0, in != nullptr && out != nullptr, "If n > 0 then args are not null");
  ------------------
  |  |  103|  2.85M|   do {                                                                                          \
  |  |  104|  2.85M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                              \
  |  |  105|  5.70M|      if((expr1) && !(expr2)) {                                                                  \
  |  |  ------------------
  |  |  |  Branch (105:10): [True: 2.85M, False: 0]
  |  |  |  Branch (105:23): [True: 2.85M, False: 0]
  |  |  |  Branch (105:23): [True: 2.85M, False: 0]
  |  |  ------------------
  |  |  106|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                                     \
  |  |  107|      0|         Botan::assertion_failure(#expr1 " implies " #expr2, msg, __func__, __FILE__, __LINE__); \
  |  |  108|      0|      }                                                                                          \
  |  |  109|  2.85M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (109:12): [Folded, False: 2.85M]
  |  |  ------------------
  ------------------
  146|       |
  147|  2.85M|   if(in != nullptr && out != nullptr && n > 0) {
  ------------------
  |  Branch (147:7): [True: 2.85M, False: 0]
  |  Branch (147:24): [True: 2.85M, False: 0]
  |  Branch (147:42): [True: 2.85M, False: 0]
  ------------------
  148|  2.85M|      std::memmove(out, in, sizeof(T) * n);
  149|  2.85M|   }
  150|  2.85M|}
_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|  26.3k|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|  26.3k|   ranges::assert_equal_byte_lengths(out, in);
  162|  26.3k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 26.3k]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|  26.3k|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 26.3k, False: 1]
  ------------------
  165|  26.3k|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|  26.3k|   }
  167|  26.3k|}
_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|  28.6k|inline constexpr ToT typecast_copy(const FromR& src) {
  211|  28.6k|   ToT dst;  // NOLINT(*-member-init)
  212|  28.6k|   typecast_copy(dst, src);
  213|  28.6k|   return dst;
  214|  28.6k|}
_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|  28.6k|inline constexpr void typecast_copy(ToT& out, const FromR& in) {
  189|  28.6k|   typecast_copy(std::span<ToT, 1>(&out, 1), in);
  190|  28.6k|}
_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|  28.6k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  28.6k|   ranges::assert_equal_byte_lengths(out, in);
  178|  28.6k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  28.6k|}
_ZN5Botan9clear_memITkNS_6ranges23contiguous_output_rangeENSt3__14spanImLm18446744073709551615EEEEEvOT_Qsr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRS5_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISD_EESE_E4type10value_typeEE:
  132|  2.45M|{
  133|  2.45M|   clear_bytes(std::ranges::data(mem), ranges::size_bytes(mem));
  134|  2.45M|}
_ZN5Botan8copy_memITkNS_6ranges23contiguous_output_rangeENSt3__14spanImLm18446744073709551615EEETkNS1_16contiguous_rangeENS3_IKmLm18446744073709551615EEEQaasr3stdE9is_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|  8.65k|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|  8.65k|   ranges::assert_equal_byte_lengths(out, in);
  162|  8.65k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 8.65k]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|  8.65k|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 8.57k, False: 73]
  ------------------
  165|  8.57k|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|  8.57k|   }
  167|  8.65k|}
_ZN5Botan8copy_memITkNS_6ranges23contiguous_output_rangeERNSt3__16vectorImNS_16secure_allocatorImEEEETkNS1_16contiguous_rangeENS2_4spanImLm18446744073709551615EEEQaasr3stdE9is_same_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISH_EESI_E4type10value_typeENSA_IXsr21__is_primary_templateINSB_Iu14__remove_cvrefIDTclL_ZNSD_5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENSJ_ISR_EESS_E4type10value_typeEEsr3stdE23is_trivially_copyable_vISW_EEEvOSE_RKSO_:
  160|   496k|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|   496k|   ranges::assert_equal_byte_lengths(out, in);
  162|   496k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 496k]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|   496k|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 496k, False: 0]
  ------------------
  165|   496k|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|   496k|   }
  167|   496k|}
_ZN5Botan8copy_memITkNS_6ranges23contiguous_output_rangeENSt3__14spanImLm4EEETkNS1_16contiguous_rangeENS2_5arrayImLm4EEEQaasr3stdE9is_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|  1.68k|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|  1.68k|   ranges::assert_equal_byte_lengths(out, in);
  162|  1.68k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 1.68k]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|  1.68k|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 1.68k, False: 0]
  ------------------
  165|  1.68k|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|  1.68k|   }
  167|  1.68k|}
_ZN5Botan8copy_memITkNS_6ranges23contiguous_output_rangeENSt3__14spanImLm6EEETkNS1_16contiguous_rangeENS2_5arrayImLm6EEEQaasr3stdE9is_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|    975|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|    975|   ranges::assert_equal_byte_lengths(out, in);
  162|    975|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 975]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|    975|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 975, False: 0]
  ------------------
  165|    975|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|    975|   }
  167|    975|}
_ZN5Botan8copy_memITkNS_6ranges23contiguous_output_rangeENSt3__14spanImLm8EEETkNS1_16contiguous_rangeENS2_5arrayImLm8EEEQaasr3stdE9is_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|    708|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|    708|   ranges::assert_equal_byte_lengths(out, in);
  162|    708|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 708]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|    708|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 708, False: 0]
  ------------------
  165|    708|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|    708|   }
  167|    708|}
_ZN5Botan8copy_memITkNS_6ranges23contiguous_output_rangeENSt3__14spanImLm9EEETkNS1_16contiguous_rangeENS2_5arrayImLm9EEEQaasr3stdE9is_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|  1.53k|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|  1.53k|   ranges::assert_equal_byte_lengths(out, in);
  162|  1.53k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 1.53k]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|  1.53k|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 1.53k, False: 0]
  ------------------
  165|  1.53k|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|  1.53k|   }
  167|  1.53k|}
_ZN5Botan9clear_memITkNS_6ranges23contiguous_output_rangeERNSt3__15arrayImLm18EEEEEvOT_Qsr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRS6_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISE_EESF_E4type10value_typeEE:
  132|  10.3M|{
  133|  10.3M|   clear_bytes(std::ranges::data(mem), ranges::size_bytes(mem));
  134|  10.3M|}
_ZN5Botan8copy_memITkNS_6ranges23contiguous_output_rangeERNSt3__14spanIhLm28EEETkNS1_16contiguous_rangeENS3_IKhLm28EEEQaasr3stdE9is_same_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISF_EESG_E4type10value_typeENS8_IXsr21__is_primary_templateINS9_Iu14__remove_cvrefIDTclL_ZNSB_5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENSH_ISP_EESQ_E4type10value_typeEEsr3stdE23is_trivially_copyable_vISU_EEEvOSC_RKSM_:
  160|    881|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|    881|   ranges::assert_equal_byte_lengths(out, in);
  162|    881|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 881]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|    881|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 881, False: 0]
  ------------------
  165|    881|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|    881|   }
  167|    881|}
_ZN5Botan8copy_memITkNS_6ranges23contiguous_output_rangeERNSt3__14spanIhLm66EEETkNS1_16contiguous_rangeENS3_IKhLm66EEEQaasr3stdE9is_same_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISF_EESG_E4type10value_typeENS8_IXsr21__is_primary_templateINS9_Iu14__remove_cvrefIDTclL_ZNSB_5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENSH_ISP_EESQ_E4type10value_typeEEsr3stdE23is_trivially_copyable_vISU_EEEvOSC_RKSM_:
  160|    816|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|    816|   ranges::assert_equal_byte_lengths(out, in);
  162|    816|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 816]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|    816|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 816, False: 0]
  ------------------
  165|    816|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|    816|   }
  167|    816|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeERNSt3__15arrayIhLm8EEETkNS1_16contiguous_rangeENS3_ImLm1EEEQaasr3stdE23is_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|  1.15M|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  1.15M|   ranges::assert_equal_byte_lengths(out, in);
  178|  1.15M|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  1.15M|}
_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|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeERKNSt3__14spanIhLm2EEEtQaaaasr3stdE23is_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|    270|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromT& in) {
  200|    270|   typecast_copy(out, std::span<const FromT, 1>(&in, 1));
  201|    270|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeERKNSt3__14spanIhLm2EEETkNS1_16contiguous_rangeENS3_IKtLm1EEEQaasr3stdE23is_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|    270|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|    270|   ranges::assert_equal_byte_lengths(out, in);
  178|    270|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|    270|}
_ZN5Botan13typecast_copyIjTkNS_6ranges16contiguous_rangeENSt3__14spanIhLm4EEEQaaaasr3stdE26is_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|  44.1k|inline constexpr ToT typecast_copy(const FromR& src) {
  211|  44.1k|   ToT dst;  // NOLINT(*-member-init)
  212|  44.1k|   typecast_copy(dst, src);
  213|  44.1k|   return dst;
  214|  44.1k|}
_ZN5Botan13typecast_copyIjTkNS_6ranges16contiguous_rangeENSt3__14spanIhLm4EEEQaaaasr3stdE23is_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|  44.1k|inline constexpr void typecast_copy(ToT& out, const FromR& in) {
  189|  44.1k|   typecast_copy(std::span<ToT, 1>(&out, 1), in);
  190|  44.1k|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeENSt3__14spanIjLm1EEETkNS1_16contiguous_rangeENS3_IhLm4EEEQaasr3stdE23is_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|  44.1k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  44.1k|   ranges::assert_equal_byte_lengths(out, in);
  178|  44.1k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  44.1k|}
_ZN5Botan13typecast_copyItTkNS_6ranges16contiguous_rangeENSt3__14spanIhLm2EEEQaaaasr3stdE26is_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.79k|inline constexpr ToT typecast_copy(const FromR& src) {
  211|  2.79k|   ToT dst;  // NOLINT(*-member-init)
  212|  2.79k|   typecast_copy(dst, src);
  213|  2.79k|   return dst;
  214|  2.79k|}
_ZN5Botan13typecast_copyItTkNS_6ranges16contiguous_rangeENSt3__14spanIhLm2EEEQaaaasr3stdE23is_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.79k|inline constexpr void typecast_copy(ToT& out, const FromR& in) {
  189|  2.79k|   typecast_copy(std::span<ToT, 1>(&out, 1), in);
  190|  2.79k|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeENSt3__14spanItLm1EEETkNS1_16contiguous_rangeENS3_IhLm2EEEQaasr3stdE23is_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.79k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  2.79k|   ranges::assert_equal_byte_lengths(out, in);
  178|  2.79k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  2.79k|}
_ZN5Botan8copy_memITkNS_6ranges23contiguous_output_rangeERNSt3__15arrayImLm7EEETkNS1_16contiguous_rangeENS2_4spanIKmLm7EEEQaasr3stdE9is_same_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISG_EESH_E4type10value_typeENS9_IXsr21__is_primary_templateINSA_Iu14__remove_cvrefIDTclL_ZNSC_5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENSI_ISQ_EESR_E4type10value_typeEEsr3stdE23is_trivially_copyable_vISV_EEEvOSD_RKSN_:
  160|     16|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|     16|   ranges::assert_equal_byte_lengths(out, in);
  162|     16|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 16]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|     16|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 16, False: 0]
  ------------------
  165|     16|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|     16|   }
  167|     16|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeERNSt3__14spanIhLm56EEETkNS1_16contiguous_rangeENS2_5arrayImLm7EEEQaasr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISF_EESG_E4type10value_typeEEsr3stdE23is_trivially_copyable_vINS8_IXsr21__is_primary_templateINS9_Iu14__remove_cvrefIDTclL_ZNSB_5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENSH_ISP_EESQ_E4type10value_typeEEEEvOSM_RKSC_:
  176|      3|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|      3|   ranges::assert_equal_byte_lengths(out, in);
  178|      3|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|      3|}
_ZN5Botan8copy_memITkNS_6ranges23contiguous_output_rangeERNSt3__14spanIhLm56EEETkNS1_16contiguous_rangeENS2_6vectorIhNS_16secure_allocatorIhEEEEQaasr3stdE9is_same_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISH_EESI_E4type10value_typeENSA_IXsr21__is_primary_templateINSB_Iu14__remove_cvrefIDTclL_ZNSD_5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENSJ_ISR_EESS_E4type10value_typeEEsr3stdE23is_trivially_copyable_vISW_EEEvOSE_RKSO_:
  160|      1|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|      1|   ranges::assert_equal_byte_lengths(out, in);
  162|      1|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 1]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|      1|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 1, False: 0]
  ------------------
  165|      1|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|      1|   }
  167|      1|}
_ZN5Botan13typecast_copyINS_6StrongINSt3__15arrayIhLm56EEENS_11ScalarX448_EJEEETkNS_6ranges16contiguous_rangeENS2_4spanIKhLm18446744073709551615EEEQaaaasr3stdE26is_default_constructible_vIT_Esr3stdE23is_trivially_copyable_vISB_Esr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISJ_EESK_E4type10value_typeEEEESB_RKSG_:
  210|      1|inline constexpr ToT typecast_copy(const FromR& src) {
  211|      1|   ToT dst;  // NOLINT(*-member-init)
  212|      1|   typecast_copy(dst, src);
  213|      1|   return dst;
  214|      1|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeERNS_6StrongINSt3__15arrayIhLm56EEENS_11ScalarX448_EJEEETkNS1_16contiguous_rangeENS3_4spanIKhLm18446744073709551615EEEQaasr3stdE23is_trivially_copyable_vINS3_11conditionalIXsr21__is_primary_templateINS3_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS3_6ranges5__cpo5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENS3_26indirectly_readable_traitsISJ_EESK_E4type10value_typeEEsr3stdE23is_trivially_copyable_vINSC_IXsr21__is_primary_templateINSD_Iu14__remove_cvrefIDTclL_ZNSF_5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENSL_IST_EESU_E4type10value_typeEEEEvOSQ_RKSG_:
  176|      1|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|      1|   ranges::assert_equal_byte_lengths(out, in);
  178|      1|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|      1|}
_ZN5Botan9clear_memITkNS_6ranges23contiguous_output_rangeERNSt3__14spanIiLm256EEEEEvOT_Qsr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRS6_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISE_EESF_E4type10value_typeEE:
  132|    482|{
  133|    482|   clear_bytes(std::ranges::data(mem), ranges::size_bytes(mem));
  134|    482|}
_ZN5Botan8copy_memITkNS_6ranges23contiguous_output_rangeERNSt3__16vectorIiNS2_9allocatorIiEEEETkNS1_16contiguous_rangeES6_Qaasr3stdE9is_same_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISF_EESG_E4type10value_typeENS8_IXsr21__is_primary_templateINS9_Iu14__remove_cvrefIDTclL_ZNSB_5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENSH_ISP_EESQ_E4type10value_typeEEsr3stdE23is_trivially_copyable_vISU_EEEvOSC_RKSM_:
  160|     75|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|     75|   ranges::assert_equal_byte_lengths(out, in);
  162|     75|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 75]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|     75|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 75, False: 0]
  ------------------
  165|     75|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|     75|   }
  167|     75|}
_ZN5Botan9clear_memITkNS_6ranges23contiguous_output_rangeERNSt3__14spanIsLm256EEEEEvOT_Qsr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRS6_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISE_EESF_E4type10value_typeEE:
  132|     80|{
  133|     80|   clear_bytes(std::ranges::data(mem), ranges::size_bytes(mem));
  134|     80|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeERNSt3__15arrayImLm7EEETkNS1_16contiguous_rangeENS2_4spanIKhLm56EEEQaasr3stdE23is_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|      2|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|      2|   ranges::assert_equal_byte_lengths(out, in);
  178|      2|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|      2|}
_ZN5Botan9clear_memITkNS_6ranges23contiguous_output_rangeERNSt3__15arrayImLm7EEEEEvOT_Qsr3stdE23is_trivially_copyable_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRS6_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISE_EESF_E4type10value_typeEE:
  132|  40.5k|{
  133|  40.5k|   clear_bytes(std::ranges::data(mem), ranges::size_bytes(mem));
  134|  40.5k|}
_ZN5Botan8copy_memITkNS_6ranges23contiguous_output_rangeERNSt3__15arrayImLm7EEETkNS1_16contiguous_rangeENS2_4spanImLm7EEEQaasr3stdE9is_same_vINS2_11conditionalIXsr21__is_primary_templateINS2_15iterator_traitsIu14__remove_cvrefIDTclL_ZNS2_6ranges5__cpo5beginEEclsr3stdE7declvalIRT_EEEEEEEEE5valueENS2_26indirectly_readable_traitsISF_EESG_E4type10value_typeENS8_IXsr21__is_primary_templateINS9_Iu14__remove_cvrefIDTclL_ZNSB_5beginEEclsr3stdE7declvalIRT0_EEEEEEEEE5valueENSH_ISP_EESQ_E4type10value_typeEEsr3stdE23is_trivially_copyable_vISU_EEEvOSC_RKSM_:
  160|      8|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|      8|   ranges::assert_equal_byte_lengths(out, in);
  162|      8|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 8]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|      8|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 8, False: 0]
  ------------------
  165|      8|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|      8|   }
  167|      8|}
_ZN5Botan8copy_memITkNS_6ranges23contiguous_output_rangeENSt3__14spanIhLm114EEETkNS1_16contiguous_rangeENS3_IKhLm114EEEQaasr3stdE9is_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|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|      2|   ranges::assert_equal_byte_lengths(out, in);
  162|      2|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 2]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|      2|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 2, False: 0]
  ------------------
  165|      2|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|      2|   }
  167|      2|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeERNSt3__15arrayImLm15EEETkNS1_16contiguous_rangeENS3_IhLm120EEEQaasr3stdE23is_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|      2|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|      2|   ranges::assert_equal_byte_lengths(out, in);
  178|      2|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|      2|}
_ZN5Botan13typecast_copyITkNS_6ranges23contiguous_output_rangeERNSt3__15arrayIhLm2EEETkNS1_16contiguous_rangeENS3_ItLm1EEEQaasr3stdE23is_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|  3.69k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  3.69k|   ranges::assert_equal_byte_lengths(out, in);
  178|  3.69k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  3.69k|}

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

_ZN5Botan15PKCS8_ExceptionC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   30|  1.80k|      explicit PKCS8_Exception(std::string_view error) : Decoding_Error("PKCS #8", error) {}

_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm18446744073709551615EEETpTkNS0_14spanable_rangeEJNS3_IKhLm18446744073709551615EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  27.4k|{
  101|  27.4k|   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|  27.4k|   } else {
  107|  27.4k|      const size_t expected_size = s0.size_bytes();
  108|  27.4k|      const bool correct_size =
  109|  27.4k|         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|  27.4k|      if(!correct_size) {
  ------------------
  |  Branch (111:10): [True: 0, False: 27.4k]
  ------------------
  112|      0|         memory_region_size_violation();
  113|      0|      }
  114|  27.4k|   }
  115|  27.4k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIhLm18446744073709551615EEEEEmRKT_:
   59|  54.9k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  54.9k|   return std::span{r}.size_bytes();
   61|  54.9k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm32ETkNS0_14spanable_rangeENSt3__14spanIhLm32EEEEEvRKT0_:
   77|      1|inline constexpr void assert_exact_byte_length(const R& r) {
   78|      1|   const std::span s{r};
   79|      1|   if constexpr(statically_spanable_range<R>) {
   80|      1|      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|      1|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm32ETkNS0_14spanable_rangeENSt3__15arrayImLm4EEEEEvRKT0_:
   77|  4.22k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  4.22k|   const std::span s{r};
   79|  4.22k|   if constexpr(statically_spanable_range<R>) {
   80|  4.22k|      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|  4.22k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm32EEETpTkNS0_14spanable_rangeEJNS2_5arrayImLm4EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  1.66k|{
  101|  1.66k|   const std::span s0{r0};
  102|       |
  103|  1.66k|   if constexpr(statically_spanable_range<R0>) {
  104|  1.66k|      constexpr size_t expected_size = s0.size_bytes();
  105|  1.66k|      (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|  1.66k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__16vectorIhNS2_9allocatorIhEEEEEEmRKT_:
   59|   135k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|   135k|   return std::span{r}.size_bytes();
   61|   135k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__14spanIhLm8EEEEEvRKT0_:
   77|   113k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|   113k|   const std::span s{r};
   79|   113k|   if constexpr(statically_spanable_range<R>) {
   80|   113k|      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|   113k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm8EEETpTkNS0_14spanable_rangeEJNS3_IKmLm1EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  44.6k|{
  101|  44.6k|   const std::span s0{r0};
  102|       |
  103|  44.6k|   if constexpr(statically_spanable_range<R0>) {
  104|  44.6k|      constexpr size_t expected_size = s0.size_bytes();
  105|  44.6k|      (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.6k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__14spanIKmLm1EEEEEvRKT0_:
   77|  44.6k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  44.6k|   const std::span s{r};
   79|  44.6k|   if constexpr(statically_spanable_range<R>) {
   80|  44.6k|      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|  44.6k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIhLm8EEEEEmRKT_:
   59|  44.6k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  44.6k|   return std::span{r}.size_bytes();
   61|  44.6k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm4ETkNS0_14spanable_rangeENSt3__14spanIKhLm4EEEEEvRKT0_:
   77|  8.96k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  8.96k|   const std::span s{r};
   79|  8.96k|   if constexpr(statically_spanable_range<R>) {
   80|  8.96k|      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|  8.96k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIjLm1EEETpTkNS0_14spanable_rangeEJNS3_IKhLm4EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  4.48k|{
  101|  4.48k|   const std::span s0{r0};
  102|       |
  103|  4.48k|   if constexpr(statically_spanable_range<R0>) {
  104|  4.48k|      constexpr size_t expected_size = s0.size_bytes();
  105|  4.48k|      (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|  4.48k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIjLm1EEEEEmRKT_:
   59|  48.6k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  48.6k|   return std::span{r}.size_bytes();
   61|  48.6k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm4ETkNS0_14spanable_rangeENSt3__14spanIhLm4EEEEEvRKT0_:
   77|  44.1k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  44.1k|   const std::span s{r};
   79|  44.1k|   if constexpr(statically_spanable_range<R>) {
   80|  44.1k|      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|  44.1k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__14spanIKhLm8EEEEEvRKT0_:
   77|   363k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|   363k|   const std::span s{r};
   79|   363k|   if constexpr(statically_spanable_range<R>) {
   80|   363k|      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|   363k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanImLm1EEETpTkNS0_14spanable_rangeEJNS3_IKhLm8EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|   181k|{
  101|   181k|   const std::span s0{r0};
  102|       |
  103|   181k|   if constexpr(statically_spanable_range<R0>) {
  104|   181k|      constexpr size_t expected_size = s0.size_bytes();
  105|   181k|      (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|   181k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanImLm1EEEEEmRKT_:
   59|   210k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|   210k|   return std::span{r}.size_bytes();
   61|   210k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm18446744073709551615EEETpTkNS0_14spanable_rangeEJNS3_IKmLm18446744073709551615EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|      2|{
  101|      2|   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|   } else {
  107|      2|      const size_t expected_size = s0.size_bytes();
  108|      2|      const bool correct_size =
  109|      2|         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|      2|      if(!correct_size) {
  ------------------
  |  Branch (111:10): [True: 0, False: 2]
  ------------------
  112|      0|         memory_region_size_violation();
  113|      0|      }
  114|      2|   }
  115|      2|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanImLm18446744073709551615EEEEEmRKT_:
   59|  2.46M|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  2.46M|   return std::span{r}.size_bytes();
   61|  2.46M|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__15arrayIhLm8EEEEEvRKT0_:
   77|  28.6k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  28.6k|   const std::span s{r};
   79|  28.6k|   if constexpr(statically_spanable_range<R>) {
   80|  28.6k|      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|  28.6k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanImLm1EEETpTkNS0_14spanable_rangeEJNS3_IhLm8EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  28.6k|{
  101|  28.6k|   const std::span s0{r0};
  102|       |
  103|  28.6k|   if constexpr(statically_spanable_range<R0>) {
  104|  28.6k|      constexpr size_t expected_size = s0.size_bytes();
  105|  28.6k|      (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|  28.6k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanImLm18446744073709551615EEETpTkNS0_14spanable_rangeEJNS3_IKmLm18446744073709551615EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  8.65k|{
  101|  8.65k|   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|  8.65k|   } else {
  107|  8.65k|      const size_t expected_size = s0.size_bytes();
  108|  8.65k|      const bool correct_size =
  109|  8.65k|         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|  8.65k|      if(!correct_size) {
  ------------------
  |  Branch (111:10): [True: 0, False: 8.65k]
  ------------------
  112|      0|         memory_region_size_violation();
  113|      0|      }
  114|  8.65k|   }
  115|  8.65k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__16vectorImNS_16secure_allocatorImEEEETpTkNS0_14spanable_rangeEJNS2_4spanImLm18446744073709551615EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|   496k|{
  101|   496k|   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|   496k|   } else {
  107|   496k|      const size_t expected_size = s0.size_bytes();
  108|   496k|      const bool correct_size =
  109|   496k|         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|   496k|      if(!correct_size) {
  ------------------
  |  Branch (111:10): [True: 0, False: 496k]
  ------------------
  112|      0|         memory_region_size_violation();
  113|      0|      }
  114|   496k|   }
  115|   496k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__16vectorImNS_16secure_allocatorImEEEEEEmRKT_:
   59|   992k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|   992k|   return std::span{r}.size_bytes();
   61|   992k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanImLm4EEETpTkNS0_14spanable_rangeEJNS2_5arrayImLm4EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  1.68k|{
  101|  1.68k|   const std::span s0{r0};
  102|       |
  103|  1.68k|   if constexpr(statically_spanable_range<R0>) {
  104|  1.68k|      constexpr size_t expected_size = s0.size_bytes();
  105|  1.68k|      (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|  1.68k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanImLm4EEEEEmRKT_:
   59|  3.36k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  3.36k|   return std::span{r}.size_bytes();
   61|  3.36k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__15arrayImLm1EEEEEvRKT0_:
   77|  2.30M|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  2.30M|   const std::span s{r};
   79|  2.30M|   if constexpr(statically_spanable_range<R>) {
   80|  2.30M|      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.30M|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanImLm6EEETpTkNS0_14spanable_rangeEJNS2_5arrayImLm6EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|    975|{
  101|    975|   const std::span s0{r0};
  102|       |
  103|    975|   if constexpr(statically_spanable_range<R0>) {
  104|    975|      constexpr size_t expected_size = s0.size_bytes();
  105|    975|      (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|    975|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm48ETkNS0_14spanable_rangeENSt3__15arrayImLm6EEEEEvRKT0_:
   77|  2.25k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  2.25k|   const std::span s{r};
   79|  2.25k|   if constexpr(statically_spanable_range<R>) {
   80|  2.25k|      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.25k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanImLm6EEEEEmRKT_:
   59|  1.95k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  1.95k|   return std::span{r}.size_bytes();
   61|  1.95k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm48EEETpTkNS0_14spanable_rangeEJNS2_5arrayImLm6EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  1.28k|{
  101|  1.28k|   const std::span s0{r0};
  102|       |
  103|  1.28k|   if constexpr(statically_spanable_range<R0>) {
  104|  1.28k|      constexpr size_t expected_size = s0.size_bytes();
  105|  1.28k|      (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|  1.28k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanImLm8EEETpTkNS0_14spanable_rangeEJNS2_5arrayImLm8EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|    708|{
  101|    708|   const std::span s0{r0};
  102|       |
  103|    708|   if constexpr(statically_spanable_range<R0>) {
  104|    708|      constexpr size_t expected_size = s0.size_bytes();
  105|    708|      (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|    708|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm64ETkNS0_14spanable_rangeENSt3__15arrayImLm8EEEEEvRKT0_:
   77|  1.41k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  1.41k|   const std::span s{r};
   79|  1.41k|   if constexpr(statically_spanable_range<R>) {
   80|  1.41k|      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|  1.41k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanImLm8EEEEEmRKT_:
   59|  1.41k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  1.41k|   return std::span{r}.size_bytes();
   61|  1.41k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm64EEETpTkNS0_14spanable_rangeEJNS2_5arrayImLm8EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|    707|{
  101|    707|   const std::span s0{r0};
  102|       |
  103|    707|   if constexpr(statically_spanable_range<R0>) {
  104|    707|      constexpr size_t expected_size = s0.size_bytes();
  105|    707|      (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|    707|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanImLm9EEETpTkNS0_14spanable_rangeEJNS2_5arrayImLm9EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  1.53k|{
  101|  1.53k|   const std::span s0{r0};
  102|       |
  103|  1.53k|   if constexpr(statically_spanable_range<R0>) {
  104|  1.53k|      constexpr size_t expected_size = s0.size_bytes();
  105|  1.53k|      (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|  1.53k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm72ETkNS0_14spanable_rangeENSt3__15arrayImLm9EEEEEvRKT0_:
   77|  3.43k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  3.43k|   const std::span s{r};
   79|  3.43k|   if constexpr(statically_spanable_range<R>) {
   80|  3.43k|      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|  3.43k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanImLm9EEEEEmRKT_:
   59|  3.07k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  3.07k|   return std::span{r}.size_bytes();
   61|  3.07k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__15arrayImLm18EEEEEmRKT_:
   59|  10.3M|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  10.3M|   return std::span{r}.size_bytes();
   61|  10.3M|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__15arrayIhLm72EEETpTkNS0_14spanable_rangeEJNS3_ImLm9EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  1.89k|{
  101|  1.89k|   const std::span s0{r0};
  102|       |
  103|  1.89k|   if constexpr(statically_spanable_range<R0>) {
  104|  1.89k|      constexpr size_t expected_size = s0.size_bytes();
  105|  1.89k|      (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|  1.89k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__15arrayIhLm32EEETpTkNS0_14spanable_rangeEJNS3_ImLm4EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|    881|{
  101|    881|   const std::span s0{r0};
  102|       |
  103|    881|   if constexpr(statically_spanable_range<R0>) {
  104|    881|      constexpr size_t expected_size = s0.size_bytes();
  105|    881|      (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|    881|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm28EEETpTkNS0_14spanable_rangeEJNS3_IKhLm28EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|    881|{
  101|    881|   const std::span s0{r0};
  102|       |
  103|    881|   if constexpr(statically_spanable_range<R0>) {
  104|    881|      constexpr size_t expected_size = s0.size_bytes();
  105|    881|      (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|    881|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm28ETkNS0_14spanable_rangeENSt3__14spanIKhLm28EEEEEvRKT0_:
   77|    881|inline constexpr void assert_exact_byte_length(const R& r) {
   78|    881|   const std::span s{r};
   79|    881|   if constexpr(statically_spanable_range<R>) {
   80|    881|      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|    881|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIhLm28EEEEEmRKT_:
   59|  1.76k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  1.76k|   return std::span{r}.size_bytes();
   61|  1.76k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm66EEETpTkNS0_14spanable_rangeEJNS3_IKhLm66EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|    816|{
  101|    816|   const std::span s0{r0};
  102|       |
  103|    816|   if constexpr(statically_spanable_range<R0>) {
  104|    816|      constexpr size_t expected_size = s0.size_bytes();
  105|    816|      (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|    816|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm66ETkNS0_14spanable_rangeENSt3__14spanIKhLm66EEEEEvRKT0_:
   77|    816|inline constexpr void assert_exact_byte_length(const R& r) {
   78|    816|   const std::span s{r};
   79|    816|   if constexpr(statically_spanable_range<R>) {
   80|    816|      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|    816|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIhLm66EEEEEmRKT_:
   59|  1.63k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  1.63k|   return std::span{r}.size_bytes();
   61|  1.63k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__15arrayIhLm8EEETpTkNS0_14spanable_rangeEJNS3_ImLm1EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  2.30M|{
  101|  2.30M|   const std::span s0{r0};
  102|       |
  103|  2.30M|   if constexpr(statically_spanable_range<R0>) {
  104|  2.30M|      constexpr size_t expected_size = s0.size_bytes();
  105|  2.30M|      (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.30M|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__15arrayIhLm8EEEEEmRKT_:
   59|  1.15M|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  1.15M|   return std::span{r}.size_bytes();
   61|  1.15M|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__15arrayIhLm1EEETpTkNS0_14spanable_rangeEJS4_EEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|    160|{
  101|    160|   const std::span s0{r0};
  102|       |
  103|    160|   if constexpr(statically_spanable_range<R0>) {
  104|    160|      constexpr size_t expected_size = s0.size_bytes();
  105|    160|      (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|    160|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm1ETkNS0_14spanable_rangeENSt3__15arrayIhLm1EEEEEvRKT0_:
   77|    160|inline constexpr void assert_exact_byte_length(const R& r) {
   78|    160|   const std::span s{r};
   79|    160|   if constexpr(statically_spanable_range<R>) {
   80|    160|      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|    160|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm1ETkNS0_14spanable_rangeENSt3__14spanIhLm1EEEEEvRKT0_:
   77|    320|inline constexpr void assert_exact_byte_length(const R& r) {
   78|    320|   const std::span s{r};
   79|    320|   if constexpr(statically_spanable_range<R>) {
   80|    320|      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|    320|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanItLm1EEEEEmRKT_:
   59|  2.79k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  2.79k|   return std::span{r}.size_bytes();
   61|  2.79k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm2ETkNS0_14spanable_rangeENSt3__14spanIhLm2EEEEEvRKT0_:
   77|  3.33k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  3.33k|   const std::span s{r};
   79|  3.33k|   if constexpr(statically_spanable_range<R>) {
   80|  3.33k|      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|  3.33k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm2EEETpTkNS0_14spanable_rangeEJNS3_IKtLm1EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|    270|{
  101|    270|   const std::span s0{r0};
  102|       |
  103|    270|   if constexpr(statically_spanable_range<R0>) {
  104|    270|      constexpr size_t expected_size = s0.size_bytes();
  105|    270|      (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|    270|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm2ETkNS0_14spanable_rangeENSt3__14spanIKtLm1EEEEEvRKT0_:
   77|    270|inline constexpr void assert_exact_byte_length(const R& r) {
   78|    270|   const std::span s{r};
   79|    270|   if constexpr(statically_spanable_range<R>) {
   80|    270|      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|    270|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIhLm2EEEEEmRKT_:
   59|    270|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|    270|   return std::span{r}.size_bytes();
   61|    270|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIjLm1EEETpTkNS0_14spanable_rangeEJNS3_IhLm4EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  44.1k|{
  101|  44.1k|   const std::span s0{r0};
  102|       |
  103|  44.1k|   if constexpr(statically_spanable_range<R0>) {
  104|  44.1k|      constexpr size_t expected_size = s0.size_bytes();
  105|  44.1k|      (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.1k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanItLm1EEETpTkNS0_14spanable_rangeEJNS3_IhLm2EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  2.79k|{
  101|  2.79k|   const std::span s0{r0};
  102|       |
  103|  2.79k|   if constexpr(statically_spanable_range<R0>) {
  104|  2.79k|      constexpr size_t expected_size = s0.size_bytes();
  105|  2.79k|      (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.79k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm56ETkNS0_14spanable_rangeENSt3__14spanIKmLm7EEEEEvRKT0_:
   77|     16|inline constexpr void assert_exact_byte_length(const R& r) {
   78|     16|   const std::span s{r};
   79|     16|   if constexpr(statically_spanable_range<R>) {
   80|     16|      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|     16|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__15arrayImLm7EEETpTkNS0_14spanable_rangeEJNS2_4spanIKmLm7EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|     16|{
  101|     16|   const std::span s0{r0};
  102|       |
  103|     16|   if constexpr(statically_spanable_range<R0>) {
  104|     16|      constexpr size_t expected_size = s0.size_bytes();
  105|     16|      (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|     16|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__15arrayImLm7EEEEEmRKT_:
   59|  40.6k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  40.6k|   return std::span{r}.size_bytes();
   61|  40.6k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm56EEETpTkNS0_14spanable_rangeEJNS2_5arrayImLm7EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|      6|{
  101|      6|   const std::span s0{r0};
  102|       |
  103|      6|   if constexpr(statically_spanable_range<R0>) {
  104|      6|      constexpr size_t expected_size = s0.size_bytes();
  105|      6|      (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|      6|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm56ETkNS0_14spanable_rangeENSt3__15arrayImLm7EEEEEvRKT0_:
   77|      6|inline constexpr void assert_exact_byte_length(const R& r) {
   78|      6|   const std::span s{r};
   79|      6|   if constexpr(statically_spanable_range<R>) {
   80|      6|      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|      6|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIhLm56EEEEEmRKT_:
   59|      5|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|      5|   return std::span{r}.size_bytes();
   61|      5|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm56EEETpTkNS0_14spanable_rangeEJNS2_6vectorIhNS_16secure_allocatorIhEEEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|      1|{
  101|      1|   const std::span s0{r0};
  102|       |
  103|      1|   if constexpr(statically_spanable_range<R0>) {
  104|      1|      constexpr size_t expected_size = s0.size_bytes();
  105|      1|      (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|      1|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm56ETkNS0_14spanable_rangeENSt3__16vectorIhNS_16secure_allocatorIhEEEEEEvRKT0_:
   77|      1|inline constexpr void assert_exact_byte_length(const R& r) {
   78|      1|   const std::span s{r};
   79|       |   if constexpr(statically_spanable_range<R>) {
   80|       |      static_assert(s.size_bytes() == expected, "memory region does not have expected byte lengths");
   81|      1|   } else {
   82|      1|      if(s.size_bytes() != expected) {
  ------------------
  |  Branch (82:10): [True: 0, False: 1]
  ------------------
   83|      0|         memory_region_size_violation();
   84|      0|      }
   85|      1|   }
   86|      1|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENS_6StrongINSt3__15arrayIhLm56EEENS_11ScalarX448_EJEEETpTkNS0_14spanable_rangeEJNS3_4spanIKhLm18446744073709551615EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|      1|{
  101|      1|   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|      1|   } else {
  107|      1|      const size_t expected_size = s0.size_bytes();
  108|      1|      const bool correct_size =
  109|      1|         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|      1|      if(!correct_size) {
  ------------------
  |  Branch (111:10): [True: 0, False: 1]
  ------------------
  112|      0|         memory_region_size_violation();
  113|      0|      }
  114|      1|   }
  115|      1|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENS_6StrongINSt3__15arrayIhLm56EEENS_11ScalarX448_EJEEEEEmRKT_:
   59|      1|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|      1|   return std::span{r}.size_bytes();
   61|      1|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIiLm256EEEEEmRKT_:
   59|    482|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|    482|   return std::span{r}.size_bytes();
   61|    482|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__16vectorIiNS2_9allocatorIiEEEETpTkNS0_14spanable_rangeEJS6_EEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|     75|{
  101|     75|   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|     75|   } else {
  107|     75|      const size_t expected_size = s0.size_bytes();
  108|     75|      const bool correct_size =
  109|     75|         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|     75|      if(!correct_size) {
  ------------------
  |  Branch (111:10): [True: 0, False: 75]
  ------------------
  112|      0|         memory_region_size_violation();
  113|      0|      }
  114|     75|   }
  115|     75|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__16vectorIiNS2_9allocatorIiEEEEEEmRKT_:
   59|    150|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|    150|   return std::span{r}.size_bytes();
   61|    150|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm2ETkNS0_14spanable_rangeENSt3__15arrayIhLm2EEEEEvRKT0_:
   77|  2.79k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  2.79k|   const std::span s{r};
   79|  2.79k|   if constexpr(statically_spanable_range<R>) {
   80|  2.79k|      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.79k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm2ETkNS0_14spanable_rangeENSt3__15arrayItLm1EEEEEvRKT0_:
   77|  7.66k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  7.66k|   const std::span s{r};
   79|  7.66k|   if constexpr(statically_spanable_range<R>) {
   80|  7.66k|      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|  7.66k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__15arrayIhLm2EEETpTkNS0_14spanable_rangeEJNS3_ItLm1EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  7.66k|{
  101|  7.66k|   const std::span s0{r0};
  102|       |
  103|  7.66k|   if constexpr(statically_spanable_range<R0>) {
  104|  7.66k|      constexpr size_t expected_size = s0.size_bytes();
  105|  7.66k|      (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|  7.66k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm4ETkNS0_14spanable_rangeENSt3__15arrayIhLm4EEEEEvRKT0_:
   77|  44.1k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  44.1k|   const std::span s{r};
   79|  44.1k|   if constexpr(statically_spanable_range<R>) {
   80|  44.1k|      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|  44.1k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIsLm256EEEEEmRKT_:
   59|     80|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|     80|   return std::span{r}.size_bytes();
   61|     80|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__15arrayImLm7EEETpTkNS0_14spanable_rangeEJNS2_4spanIKhLm56EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|      4|{
  101|      4|   const std::span s0{r0};
  102|       |
  103|      4|   if constexpr(statically_spanable_range<R0>) {
  104|      4|      constexpr size_t expected_size = s0.size_bytes();
  105|      4|      (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|      4|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm56ETkNS0_14spanable_rangeENSt3__14spanIKhLm56EEEEEvRKT0_:
   77|      4|inline constexpr void assert_exact_byte_length(const R& r) {
   78|      4|   const std::span s{r};
   79|      4|   if constexpr(statically_spanable_range<R>) {
   80|      4|      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|      4|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__15arrayImLm7EEETpTkNS0_14spanable_rangeEJNS2_4spanImLm7EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|      8|{
  101|      8|   const std::span s0{r0};
  102|       |
  103|      8|   if constexpr(statically_spanable_range<R0>) {
  104|      8|      constexpr size_t expected_size = s0.size_bytes();
  105|      8|      (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|      8|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm56ETkNS0_14spanable_rangeENSt3__14spanImLm7EEEEEvRKT0_:
   77|      8|inline constexpr void assert_exact_byte_length(const R& r) {
   78|      8|   const std::span s{r};
   79|      8|   if constexpr(statically_spanable_range<R>) {
   80|      8|      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|      8|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm114EEETpTkNS0_14spanable_rangeEJNS3_IKhLm114EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|      2|{
  101|      2|   const std::span s0{r0};
  102|       |
  103|      2|   if constexpr(statically_spanable_range<R0>) {
  104|      2|      constexpr size_t expected_size = s0.size_bytes();
  105|      2|      (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|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm114ETkNS0_14spanable_rangeENSt3__14spanIKhLm114EEEEEvRKT0_:
   77|      2|inline constexpr void assert_exact_byte_length(const R& r) {
   78|      2|   const std::span s{r};
   79|      2|   if constexpr(statically_spanable_range<R>) {
   80|      2|      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|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIhLm114EEEEEmRKT_:
   59|      4|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|      4|   return std::span{r}.size_bytes();
   61|      4|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__15arrayImLm15EEETpTkNS0_14spanable_rangeEJNS3_IhLm120EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|      4|{
  101|      4|   const std::span s0{r0};
  102|       |
  103|      4|   if constexpr(statically_spanable_range<R0>) {
  104|      4|      constexpr size_t expected_size = s0.size_bytes();
  105|      4|      (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|      4|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm120ETkNS0_14spanable_rangeENSt3__15arrayIhLm120EEEEEvRKT0_:
   77|      4|inline constexpr void assert_exact_byte_length(const R& r) {
   78|      4|   const std::span s{r};
   79|      4|   if constexpr(statically_spanable_range<R>) {
   80|      4|      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|      4|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__15arrayImLm15EEEEEmRKT_:
   59|      2|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|      2|   return std::span{r}.size_bytes();
   61|      2|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__15arrayIhLm2EEEEEmRKT_:
   59|  3.69k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  3.69k|   return std::span{r}.size_bytes();
   61|  3.69k|}

_ZNK5Botan8Null_RNG9is_seededEv:
  399|  7.65k|      bool is_seeded() const override { return false; }
_ZN5Botan21RandomNumberGeneratorC2Ev:
   57|  1.59k|      RandomNumberGenerator() = default;

_ZN5Botan13RSA_PublicKeyC2Ev:
   87|     45|      RSA_PublicKey() = default;

_ZN5Botan16secure_allocatorIhE10deallocateEPhm:
  102|   113k|      void deallocate(T* p, std::size_t n) { deallocate_memory(p, n, sizeof(T)); }
_ZN5Botan16secure_allocatorIhE8allocateEm:
   95|   113k|      T* allocate(std::size_t n) { return static_cast<T*>(allocate_memory(n, sizeof(T))); }
_ZN5Botan16secure_allocatorImE10deallocateEPmm:
  102|  12.6M|      void deallocate(T* p, std::size_t n) { deallocate_memory(p, n, sizeof(T)); }
_ZN5Botan16secure_allocatorImE8allocateEm:
   95|  12.6M|      T* allocate(std::size_t n) { return static_cast<T*>(allocate_memory(n, sizeof(T))); }
_ZN5BotanneIhhEEbRKNS_16secure_allocatorIT_EERKNS1_IT0_EE:
  123|  13.9k|inline bool operator!=(const secure_allocator<T>& /*a*/, const secure_allocator<U>& /*b*/) {
  124|  13.9k|   return false;
  125|  13.9k|}
_ZN5BotanpLIhNS_16secure_allocatorIhEES2_EERNSt3__16vectorIT_T0_EES8_RKNS4_IS5_T1_EE:
  168|  1.76k|std::vector<T, Alloc>& operator+=(std::vector<T, Alloc>& out, const std::vector<T, Alloc2>& in) {
  169|  1.76k|   out.insert(out.end(), in.begin(), in.end());
  170|  1.76k|   return out;
  171|  1.76k|}

_ZNK5Botan18Sphincs_Parameters9hash_typeEv:
   71|     17|      Sphincs_Hash_Type hash_type() const { return m_hash_type; }
_ZNK5Botan18Sphincs_Parameters13parameter_setEv:
   76|     17|      Sphincs_Parameter_Set parameter_set() const { return m_set; }
_ZNK5Botan18Sphincs_Parameters1nEv:
   96|     20|      size_t n() const { return m_n; }
_ZNK5Botan18Sphincs_Parameters16public_key_bytesEv:
  195|     52|      uint32_t public_key_bytes() const { return m_n * 2; }
_ZNK5Botan18Sphincs_Parameters17private_key_bytesEv:
  200|     32|      uint32_t private_key_bytes() const { return m_n * 2 + public_key_bytes(); }

_ZN5Botan18unwrap_strong_typeIRmEEDcOT_:
  328|  44.6k|[[nodiscard]] constexpr decltype(auto) unwrap_strong_type(T&& t) {
  329|  44.6k|   if constexpr(!concepts::strong_type<std::remove_cvref_t<T>>) {
  330|       |      // If the parameter type isn't a strong type, return it as is.
  331|  44.6k|      return std::forward<T>(t);
  332|       |   } else {
  333|       |      // Unwrap the strong type and return the underlying value.
  334|       |      return std::forward<T>(t).get();
  335|       |   }
  336|  44.6k|}
_ZN5Botan16wrap_strong_typeIjRjQoosr3stdE18constructible_fromIT_T0_Eaasr8conceptsE11strong_typeIS2_Esr3stdE18constructible_fromINS2_12wrapped_typeES3_EEEDcOS3_:
  353|  48.6k|[[nodiscard]] constexpr decltype(auto) wrap_strong_type(ParamT&& t) {
  354|  48.6k|   if constexpr(std::same_as<std::remove_cvref_t<ParamT>, T>) {
  355|       |      // Noop, if the parameter type already is the desired return type.
  356|  48.6k|      return std::forward<ParamT>(t);
  357|       |   } else if constexpr(std::constructible_from<T, ParamT>) {
  358|       |      // Implicit conversion from the parameter type to the return type.
  359|       |      return T{std::forward<ParamT>(t)};
  360|       |   } else {
  361|       |      // Explicitly calling the wrapped type's constructor to support
  362|       |      // implicit conversions on types that mark their constructors as explicit.
  363|       |      static_assert(concepts::strong_type<T> && std::constructible_from<typename T::wrapped_type, ParamT>);
  364|       |      return T{typename T::wrapped_type{std::forward<ParamT>(t)}};
  365|       |   }
  366|  48.6k|}
_ZN5Botan16wrap_strong_typeImRmQoosr3stdE18constructible_fromIT_T0_Eaasr8conceptsE11strong_typeIS2_Esr3stdE18constructible_fromINS2_12wrapped_typeES3_EEEDcOS3_:
  353|   210k|[[nodiscard]] constexpr decltype(auto) wrap_strong_type(ParamT&& t) {
  354|   210k|   if constexpr(std::same_as<std::remove_cvref_t<ParamT>, T>) {
  355|       |      // Noop, if the parameter type already is the desired return type.
  356|   210k|      return std::forward<ParamT>(t);
  357|       |   } else if constexpr(std::constructible_from<T, ParamT>) {
  358|       |      // Implicit conversion from the parameter type to the return type.
  359|       |      return T{std::forward<ParamT>(t)};
  360|       |   } else {
  361|       |      // Explicitly calling the wrapped type's constructor to support
  362|       |      // implicit conversions on types that mark their constructors as explicit.
  363|       |      static_assert(concepts::strong_type<T> && std::constructible_from<typename T::wrapped_type, ParamT>);
  364|       |      return T{typename T::wrapped_type{std::forward<ParamT>(t)}};
  365|       |   }
  366|   210k|}
_ZNK5Botan6detail29Container_Strong_Adapter_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEE4sizeEv:
  210|    650|      size_type size() const noexcept(noexcept(this->get().size())) { return this->get().size(); }
_ZNKR5Botan6detail11Strong_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEE3getEv:
  113|  1.10k|      constexpr const T& get() const& { return m_value; }
_ZN5Botan18unwrap_strong_typeIRNSt3__16vectorIhNS1_9allocatorIhEEEEEEDcOT_:
  328|     50|[[nodiscard]] constexpr decltype(auto) unwrap_strong_type(T&& t) {
  329|     50|   if constexpr(!concepts::strong_type<std::remove_cvref_t<T>>) {
  330|       |      // If the parameter type isn't a strong type, return it as is.
  331|     50|      return std::forward<T>(t);
  332|       |   } else {
  333|       |      // Unwrap the strong type and return the underlying value.
  334|       |      return std::forward<T>(t).get();
  335|       |   }
  336|     50|}
_ZN5Botan6detail11Strong_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEED2Ev:
  101|    620|      ~Strong_Base() = default;
_ZN5Botan6detail11Strong_BaseINSt3__16vectorIhNS_16secure_allocatorIhEEEEED2Ev:
  101|  1.13k|      ~Strong_Base() = default;
_ZNK5Botan6detail29Container_Strong_Adapter_BaseINSt3__16vectorIhNS_16secure_allocatorIhEEEEE4sizeEv:
  210|  1.02k|      size_type size() const noexcept(noexcept(this->get().size())) { return this->get().size(); }
_ZNKR5Botan6detail11Strong_BaseINSt3__16vectorIhNS_16secure_allocatorIhEEEEE3getEv:
  113|  1.65k|      constexpr const T& get() const& { return m_value; }
_ZN5Botan6detail11Strong_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEEC2Ev:
   85|     35|      Strong_Base() = default;
_ZN5Botan6detail29Container_Strong_Adapter_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEEC2INS2_11__wrap_iterIPKhEEEET_SD_:
  173|     35|      Container_Strong_Adapter_Base(InputIt begin, InputIt end) : Container_Strong_Adapter_Base(T(begin, end)) {}
_ZN5Botan6detail11Strong_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEEC2ES6_:
  105|    310|      constexpr explicit Strong_Base(T v) : m_value(std::move(v)) {}
_ZN5Botan6detail11Strong_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEEaSEOS7_:
   99|     35|      Strong_Base& operator=(Strong_Base&&) noexcept = default;
_ZN5Botan6detail29Container_Strong_Adapter_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEEC2EmQsr8conceptsE19resizable_containerIT_E:
  167|    250|            : Container_Strong_Adapter_Base(T(size)) {}
_ZNR5Botan6detail11Strong_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEE3getEv:
  109|    300|      constexpr T& get() & { return m_value; }
_ZN5Botan6detail29Container_Strong_Adapter_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEE3endEv:
  186|     25|      decltype(auto) end() noexcept(noexcept(this->get().end())) { return this->get().end(); }
_ZN5Botan18unwrap_strong_typeIRhEEDcOT_:
  328|    160|[[nodiscard]] constexpr decltype(auto) unwrap_strong_type(T&& t) {
  329|    160|   if constexpr(!concepts::strong_type<std::remove_cvref_t<T>>) {
  330|       |      // If the parameter type isn't a strong type, return it as is.
  331|    160|      return std::forward<T>(t);
  332|       |   } else {
  333|       |      // Unwrap the strong type and return the underlying value.
  334|       |      return std::forward<T>(t).get();
  335|       |   }
  336|    160|}
_ZN5Botan6detail11Strong_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEEC2EOS7_:
   91|    275|      Strong_Base(Strong_Base&&) noexcept = default;
_ZNK5Botan6detail14Strong_AdapterINSt3__16vectorIhNS2_9allocatorIhEEEEE4dataEv:
  281|    375|      decltype(auto) data() const noexcept(noexcept(this->get().data())) { return this->get().data(); }
_ZN5Botan6detail11Strong_BaseINSt3__16vectorIhNS_16secure_allocatorIhEEEEEC2Ev:
   85|     35|      Strong_Base() = default;
_ZN5Botan6detail29Container_Strong_Adapter_BaseINSt3__16vectorIhNS_16secure_allocatorIhEEEEEC2INS2_11__wrap_iterIPKhEEEET_SD_:
  173|     85|      Container_Strong_Adapter_Base(InputIt begin, InputIt end) : Container_Strong_Adapter_Base(T(begin, end)) {}
_ZN5Botan6detail11Strong_BaseINSt3__16vectorIhNS_16secure_allocatorIhEEEEEC2ES6_:
  105|    473|      constexpr explicit Strong_Base(T v) : m_value(std::move(v)) {}
_ZN5Botan6detail11Strong_BaseINSt3__16vectorIhNS_16secure_allocatorIhEEEEEaSEOS7_:
   99|     35|      Strong_Base& operator=(Strong_Base&&) noexcept = default;
_ZNR5Botan6detail11Strong_BaseINSt3__16vectorIhNS_16secure_allocatorIhEEEEE3getEv:
  109|    310|      constexpr T& get() & { return m_value; }
_ZN5Botan6detail14Strong_AdapterINSt3__16vectorIhNS_16secure_allocatorIhEEEEE4dataEv:
  279|    310|      decltype(auto) data() noexcept(noexcept(this->get().data())) { return this->get().data(); }
_ZN5Botan6detail11Strong_BaseINSt3__16vectorIhNS_16secure_allocatorIhEEEEEC2EOS7_:
   91|    625|      Strong_Base(Strong_Base&&) noexcept = default;
_ZN5Botan6detail14Strong_AdapterINSt3__16vectorIhNS2_9allocatorIhEEEEE4dataEv:
  279|    250|      decltype(auto) data() noexcept(noexcept(this->get().data())) { return this->get().data(); }
_ZNK5Botan6detail14Strong_AdapterINSt3__16vectorIhNS_16secure_allocatorIhEEEEE4dataEv:
  281|    635|      decltype(auto) data() const noexcept(noexcept(this->get().data())) { return this->get().data(); }
_ZN5Botan6detail29Container_Strong_Adapter_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEE5beginEv:
  178|     25|      decltype(auto) begin() noexcept(noexcept(this->get().begin())) { return this->get().begin(); }
_ZN5Botan16wrap_strong_typeItRtQoosr3stdE18constructible_fromIT_T0_Eaasr8conceptsE11strong_typeIS2_Esr3stdE18constructible_fromINS2_12wrapped_typeES3_EEEDcOS3_:
  353|  2.79k|[[nodiscard]] constexpr decltype(auto) wrap_strong_type(ParamT&& t) {
  354|  2.79k|   if constexpr(std::same_as<std::remove_cvref_t<ParamT>, T>) {
  355|       |      // Noop, if the parameter type already is the desired return type.
  356|  2.79k|      return std::forward<ParamT>(t);
  357|       |   } else if constexpr(std::constructible_from<T, ParamT>) {
  358|       |      // Implicit conversion from the parameter type to the return type.
  359|       |      return T{std::forward<ParamT>(t)};
  360|       |   } else {
  361|       |      // Explicitly calling the wrapped type's constructor to support
  362|       |      // implicit conversions on types that mark their constructors as explicit.
  363|       |      static_assert(concepts::strong_type<T> && std::constructible_from<typename T::wrapped_type, ParamT>);
  364|       |      return T{typename T::wrapped_type{std::forward<ParamT>(t)}};
  365|       |   }
  366|  2.79k|}
_ZN5Botan18unwrap_strong_typeIRtEEDcOT_:
  328|    270|[[nodiscard]] constexpr decltype(auto) unwrap_strong_type(T&& t) {
  329|    270|   if constexpr(!concepts::strong_type<std::remove_cvref_t<T>>) {
  330|       |      // If the parameter type isn't a strong type, return it as is.
  331|    270|      return std::forward<T>(t);
  332|       |   } else {
  333|       |      // Unwrap the strong type and return the underlying value.
  334|       |      return std::forward<T>(t).get();
  335|       |   }
  336|    270|}
_ZN5Botan6detail29Container_Strong_Adapter_BaseINSt3__16vectorIhNS_16secure_allocatorIhEEEEEC2EmQsr8conceptsE19resizable_containerIT_E:
  167|    310|            : Container_Strong_Adapter_Base(T(size)) {}
_ZNK5Botan6detail29Container_Strong_Adapter_BaseINSt3__15arrayIhLm56EEEE5beginEv:
  182|      1|      decltype(auto) begin() const noexcept(noexcept(this->get().begin())) { return this->get().begin(); }
_ZNK5Botan6detail29Container_Strong_Adapter_BaseINSt3__15arrayIhLm56EEEE3endEv:
  190|      1|      decltype(auto) end() const noexcept(noexcept(this->get().end())) { return this->get().end(); }
_ZNK5Botan6detail14Strong_AdapterINSt3__15arrayIhLm56EEEE4dataEv:
  281|      2|      decltype(auto) data() const noexcept(noexcept(this->get().data())) { return this->get().data(); }
_ZNK5Botan6detail29Container_Strong_Adapter_BaseINSt3__15arrayIhLm56EEEE4sizeEv:
  210|      2|      size_type size() const noexcept(noexcept(this->get().size())) { return this->get().size(); }
_ZN5Botan6detail14Strong_AdapterINSt3__15arrayIhLm56EEEE4dataEv:
  279|      1|      decltype(auto) data() noexcept(noexcept(this->get().data())) { return this->get().data(); }
_ZNR5Botan6detail11Strong_BaseINSt3__15arrayIhLm56EEEE3getEv:
  109|      3|      constexpr T& get() & { return m_value; }
_ZN5Botan6detail29Container_Strong_Adapter_BaseINSt3__15arrayIhLm56EEEEixIiEEDcOT_:
  248|      2|      decltype(auto) operator[](U&& i) noexcept(noexcept(this->get().operator[](i))) {
  249|      2|         return this->get()[std::forward<U>(i)];
  250|      2|      }
_ZNKR5Botan6detail11Strong_BaseINSt3__15arrayIhLm56EEEE3getEv:
  113|    456|      constexpr const T& get() const& { return m_value; }
_ZNK5Botan6detail29Container_Strong_Adapter_BaseINSt3__15arrayIhLm56EEEEixImEEDcOT_:
  240|    448|      decltype(auto) operator[](U&& i) const noexcept(noexcept(this->get().operator[](i))) {
  241|    448|         return this->get()[std::forward<U>(i)];
  242|    448|      }
_ZN5Botan6detail11Strong_BaseINSt3__15arrayIhLm56EEEEC2ES4_:
  105|      1|      constexpr explicit Strong_Base(T v) : m_value(std::move(v)) {}
_ZNK5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_29DilithiumSerializedPublicKey_EJEEEE4dataEv:
 1171|     75|      decltype(auto) data() const noexcept(noexcept(this->m_span.data())) { return this->m_span.data(); }
_ZNK5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_29DilithiumSerializedPublicKey_EJEEEE4sizeEv:
 1175|     75|      decltype(auto) size() const noexcept(noexcept(this->m_span.size())) { return this->m_span.size(); }
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_29DilithiumSerializedPublicKey_EJEEEEC2ERS9_:
 1113|     75|      StrongSpan(T& strong) : m_span(strong) {}
_ZNK5Botan6detail29Container_Strong_Adapter_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEE5emptyEvQsr8conceptsE9has_emptyIT_E:
  216|     75|      {
  217|     75|         return this->get().empty();
  218|     75|      }
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_20DilithiumPublicSeed_EJEEEEC2ERS9_:
 1113|    150|      StrongSpan(T& strong) : m_span(strong) {}
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_22DilithiumSeedRhoPrime_EJEEEEC2ERS9_:
 1113|     75|      StrongSpan(T& strong) : m_span(strong) {}
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_24DilithiumSeedRandomness_EJEEEE4dataEv:
 1167|     75|      decltype(auto) data() noexcept(noexcept(this->m_span.data())) { return this->m_span.data(); }
_ZNK5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_24DilithiumSeedRandomness_EJEEEE4sizeEv:
 1175|     75|      decltype(auto) size() const noexcept(noexcept(this->m_span.size())) { return this->m_span.size(); }
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_20DilithiumPublicSeed_EJEEEE4dataEv:
 1167|  2.87k|      decltype(auto) data() noexcept(noexcept(this->m_span.data())) { return this->m_span.data(); }
_ZNK5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_20DilithiumPublicSeed_EJEEEE4sizeEv:
 1175|  2.87k|      decltype(auto) size() const noexcept(noexcept(this->m_span.size())) { return this->m_span.size(); }
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_22DilithiumSeedRhoPrime_EJEEEE4dataEv:
 1167|    900|      decltype(auto) data() noexcept(noexcept(this->m_span.data())) { return this->m_span.data(); }
_ZNK5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_22DilithiumSeedRhoPrime_EJEEEE4sizeEv:
 1175|    900|      decltype(auto) size() const noexcept(noexcept(this->m_span.size())) { return this->m_span.size(); }
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_24DilithiumSeedRandomness_EJEEEEC2ERS9_:
 1113|     75|      StrongSpan(T& strong) : m_span(strong) {}
_ZN5Botan6detail14Strong_AdapterINSt3__16vectorIhNS_16secure_allocatorIhEEEEEC2ENS2_4spanIKhLm18446744073709551615EEE:
  269|     78|            Strong_Adapter(T(span.begin(), span.end())) {}
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_13KyberSeedRho_EJEEEEC2ERS9_:
 1113|     25|      StrongSpan(T& strong) : m_span(strong) {}
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_25KyberSerializedPublicKey_EJEEEE4dataEv:
 1167|     25|      decltype(auto) data() noexcept(noexcept(this->m_span.data())) { return this->m_span.data(); }
_ZNK5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_25KyberSerializedPublicKey_EJEEEE4sizeEv:
 1175|     25|      decltype(auto) size() const noexcept(noexcept(this->m_span.size())) { return this->m_span.size(); }
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_13KyberSeedRho_EJEEEE4dataEv:
 1167|    270|      decltype(auto) data() noexcept(noexcept(this->m_span.data())) { return this->m_span.data(); }
_ZNK5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_13KyberSeedRho_EJEEEE4sizeEv:
 1175|    295|      decltype(auto) size() const noexcept(noexcept(this->m_span.size())) { return this->m_span.size(); }
_ZNK5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_20KyberSeedRandomness_EJEEEE4dataEv:
 1171|     25|      decltype(auto) data() const noexcept(noexcept(this->m_span.data())) { return this->m_span.data(); }
_ZNK5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_20KyberSeedRandomness_EJEEEE4sizeEv:
 1175|     25|      decltype(auto) size() const noexcept(noexcept(this->m_span.size())) { return this->m_span.size(); }
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_24KyberSamplingRandomness_EJEEEE4dataEv:
 1167|    160|      decltype(auto) data() noexcept(noexcept(this->m_span.data())) { return this->m_span.data(); }
_ZNK5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_24KyberSamplingRandomness_EJEEEE4sizeEv:
 1175|    160|      decltype(auto) size() const noexcept(noexcept(this->m_span.size())) { return this->m_span.size(); }
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_20KyberSeedRandomness_EJEEEEC2ERS9_:
 1113|     25|      StrongSpan(T& strong) : m_span(strong) {}
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_15KyberSeedSigma_EJEEEEC2ERS9_:
 1113|     25|      StrongSpan(T& strong) : m_span(strong) {}
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_15KyberSeedSigma_EJEEEE3getEv:
 1163|    160|      underlying_span get() { return m_span; }
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_24KyberSamplingRandomness_EJEEEEC2ERS9_:
 1113|    160|      StrongSpan(T& strong) : m_span(strong) {}
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_25KyberSerializedPublicKey_EJEEEEC2ERS9_:
 1113|     25|      StrongSpan(T& strong) : m_span(strong) {}

_ZN5Botan24Key_Length_SpecificationC2Em:
   28|  4.28k|      explicit Key_Length_Specification(size_t keylen) : m_min_keylen(keylen), m_max_keylen(keylen), m_keylen_mod(1) {}
_ZNK5Botan24Key_Length_Specification15valid_keylengthEm:
   44|  4.28k|      bool valid_keylength(size_t length) const {
   45|  4.28k|         return ((length >= m_min_keylen) && (length <= m_max_keylen) && (length % m_keylen_mod == 0));
  ------------------
  |  Branch (45:18): [True: 4.28k, False: 0]
  |  Branch (45:46): [True: 4.28k, False: 0]
  |  Branch (45:74): [True: 4.28k, False: 0]
  ------------------
   46|  4.28k|      }

_ZN5Botan16X25519_PublicKeyC2Ev:
   57|      9|      X25519_PublicKey() = default;

_ZN5Botan14X448_PublicKeyC2Ev:
   62|      1|      X448_PublicKey() = default;

_ZN5Botan3XOF5clearEv:
   66|    430|      void clear() {
   67|    430|         m_xof_started = false;
   68|    430|         reset();
   69|    430|      }
_ZN5Botan3XOF6updateENSt3__14spanIKhLm18446744073709551615EEE:
  147|  8.48k|      void update(std::span<const uint8_t> input) {
  148|  8.48k|         if(!m_xof_started) {
  ------------------
  |  Branch (148:13): [True: 4.28k, False: 4.20k]
  ------------------
  149|       |            // If the user didn't start() before the first input, we enforce
  150|       |            // it with a default value, here.
  151|  4.28k|            start();
  152|  4.28k|         }
  153|  8.48k|         add_data(input);
  154|  8.48k|      }
_ZN5Botan3XOF6outputENSt3__14spanIhLm18446744073709551615EEE:
  191|      2|      void output(std::span<uint8_t> output) { generate_bytes(output); }
_ZN5Botan3XOFD2Ev:
   31|  3.90k|      virtual ~XOF() = default;
_ZNK5Botan3XOF8key_specEv:
  102|  4.28k|      virtual Key_Length_Specification key_spec() const {
  103|       |         // Keys are not supported by default
  104|  4.28k|         return Key_Length_Specification(0);
  105|  4.28k|      }
_ZNK5Botan3XOF17valid_salt_lengthEm:
   93|  4.28k|      virtual bool valid_salt_length(size_t salt_len) const {
   94|       |         // Salts are not supported by default
   95|  4.28k|         return salt_len == 0;
   96|  4.28k|      }
_ZN5Botan3XOF6outputITkNS_8concepts21resizable_byte_bufferENS_6StrongINSt3__16vectorIhNS4_9allocatorIhEEEENS_25DilithiumHashedPublicKey_EJEEEEET_m:
  161|     75|      T output(size_t bytes) {
  162|     75|         T out(bytes);
  163|     75|         generate_bytes(out);
  164|     75|         return out;
  165|     75|      }
_ZN5Botan3XOF6outputITkNS_8concepts21resizable_byte_bufferENS_6StrongINSt3__16vectorIhNS4_9allocatorIhEEEENS_20DilithiumPublicSeed_EJEEEEET_m:
  161|     75|      T output(size_t bytes) {
  162|     75|         T out(bytes);
  163|     75|         generate_bytes(out);
  164|     75|         return out;
  165|     75|      }
_ZN5Botan3XOF6outputITkNS_8concepts21resizable_byte_bufferENS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_22DilithiumSeedRhoPrime_EJEEEEET_m:
  161|     75|      T output(size_t bytes) {
  162|     75|         T out(bytes);
  163|     75|         generate_bytes(out);
  164|     75|         return out;
  165|     75|      }
_ZN5Botan3XOF6outputITkNS_8concepts21resizable_byte_bufferENS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_15DilithiumSeedK_EJEEEEET_m:
  161|     75|      T output(size_t bytes) {
  162|     75|         T out(bytes);
  163|     75|         generate_bytes(out);
  164|     75|         return out;
  165|     75|      }
_ZN5Botan3XOF6outputILm1EEENSt3__15arrayIhXT_EEEv:
  172|   160k|      std::array<uint8_t, count> output() {
  173|   160k|         std::array<uint8_t, count> out;  // NOLINT(*-member-init)
  174|   160k|         generate_bytes(out);
  175|   160k|         return out;
  176|   160k|      }
_ZN5Botan3XOF6outputILm3EEENSt3__15arrayIhXT_EEEv:
  172|   759k|      std::array<uint8_t, count> output() {
  173|   759k|         std::array<uint8_t, count> out;  // NOLINT(*-member-init)
  174|   759k|         generate_bytes(out);
  175|   759k|         return out;
  176|   759k|      }
_ZN5Botan3XOF6outputITkNS_8concepts21resizable_byte_bufferENS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_24KyberSamplingRandomness_EJEEEEET_m:
  161|    160|      T output(size_t bytes) {
  162|    160|         T out(bytes);
  163|    160|         generate_bytes(out);
  164|    160|         return out;
  165|    160|      }

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.93k|extern "C" int LLVMFuzzerTestOneInput(const uint8_t in[], size_t len) {
   40|  6.93k|   if(len <= max_fuzzer_input_size) {
  ------------------
  |  Branch (40:7): [True: 6.92k, False: 7]
  ------------------
   41|  6.92k|      try {
   42|  6.92k|         fuzz(std::span<const uint8_t>(in, len));
   43|  6.92k|      } 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.92k|   }
   51|  6.93k|   return 0;
   52|  6.93k|}

_Z4fuzzNSt3__14spanIKhLm18446744073709551615EEE:
   14|  6.92k|void fuzz(std::span<const uint8_t> in) {
   15|  6.92k|   try {
   16|  6.92k|      Botan::DataSource_Memory input(in);
   17|  6.92k|      Botan::PKCS8::load_key(input);
   18|  6.92k|   } catch(const Botan::Exception& e) {}
   19|       |
   20|       |   /*
   21|       |   * This avoids OOMs in OSS-Fuzz caused by storing precomputations
   22|       |   * for thousands of curves randomly generated by the fuzzer.
   23|       |   *
   24|       |   * TODO(Botan4) we can remove this call once support for explicit curves
   25|       |   * is removed
   26|       |   */
   27|  6.92k|   Botan::EC_Group::clear_registered_curve_data();
   28|  6.92k|}

_ZNK5Botan19AlgorithmIdentifier19parameters_are_nullEv:
   50|  3.88k|bool AlgorithmIdentifier::parameters_are_null() const {
   51|  3.88k|   return (m_parameters.size() == 2 && (m_parameters[0] == 0x05) && (m_parameters[1] == 0x00));
  ------------------
  |  Branch (51:12): [True: 46, False: 3.84k]
  |  Branch (51:40): [True: 8, False: 38]
  |  Branch (51:69): [True: 2, False: 6]
  ------------------
   52|  3.88k|}
_ZN5Botan19AlgorithmIdentifier11decode_fromERNS_11BER_DecoderE:
   72|  6.02k|void AlgorithmIdentifier::decode_from(BER_Decoder& codec) {
   73|  6.02k|   codec.start_sequence().decode(m_oid).raw_bytes(m_parameters).end_cons();
   74|       |
   75|       |   /*
   76|       |   * The parameters field is OPTIONAL ANY but in practice it is one of
   77|       |   * - empty
   78|       |   * - NULL
   79|       |   * - SEQUENCE
   80|       |   * - OBJECT IDENTIFIER (namedCurve)
   81|       |   * - OCTET STRING (CBC IV in PBES2)
   82|       |   *
   83|       |   * So require it be exactly one of these values. In particular this ensures that
   84|       |   * there is not any additional trailing data (eg after the SEQUENCE encoding)
   85|       |   * that might be otherwise skipped over by a reader.
   86|       |   */
   87|       |
   88|  6.02k|   const bool acceptable_parameters = [&]() {
   89|  6.02k|      if(this->parameters_are_null_or_empty()) {
   90|  6.02k|         return true;
   91|  6.02k|      }
   92|  6.02k|      if(ASN1::is_der_sequence_header(m_parameters)) {
   93|  6.02k|         return true;
   94|  6.02k|      }
   95|  6.02k|      if(ASN1::is_single_der_object(m_parameters, ASN1_Type::ObjectId, ASN1_Class::Universal)) {
   96|  6.02k|         return true;
   97|  6.02k|      }
   98|  6.02k|      if(ASN1::is_single_der_object(m_parameters, ASN1_Type::OctetString, ASN1_Class::Universal)) {
   99|  6.02k|         return true;
  100|  6.02k|      }
  101|  6.02k|      return false;
  102|  6.02k|   }();
  103|       |
  104|  6.02k|   if(!acceptable_parameters) {
  ------------------
  |  Branch (104:7): [True: 153, False: 5.87k]
  ------------------
  105|    153|      throw Decoding_Error("AlgorithmIdentifier parameters were not NULL, a SEQUENCE, an OID, or an OCTET STRING");
  106|    153|   }
  107|  6.02k|}
alg_id.cpp:_ZZN5Botan19AlgorithmIdentifier11decode_fromERNS_11BER_DecoderEENK3$_0clEv:
   88|  5.91k|   const bool acceptable_parameters = [&]() {
   89|  5.91k|      if(this->parameters_are_null_or_empty()) {
  ------------------
  |  Branch (89:10): [True: 2.03k, False: 3.88k]
  ------------------
   90|  2.03k|         return true;
   91|  2.03k|      }
   92|  3.88k|      if(ASN1::is_der_sequence_header(m_parameters)) {
  ------------------
  |  Branch (92:10): [True: 1.46k, False: 2.41k]
  ------------------
   93|  1.46k|         return true;
   94|  1.46k|      }
   95|  2.41k|      if(ASN1::is_single_der_object(m_parameters, ASN1_Type::ObjectId, ASN1_Class::Universal)) {
  ------------------
  |  Branch (95:10): [True: 2.23k, False: 179]
  ------------------
   96|  2.23k|         return true;
   97|  2.23k|      }
   98|    179|      if(ASN1::is_single_der_object(m_parameters, ASN1_Type::OctetString, ASN1_Class::Universal)) {
  ------------------
  |  Branch (98:10): [True: 26, False: 153]
  ------------------
   99|     26|         return true;
  100|     26|      }
  101|    153|      return false;
  102|    179|   }();

_ZN5Botan14ASN1_BitStringC2ENSt3__16vectorIhNS1_9allocatorIhEEEEm:
   29|    769|      m_bytes(std::move(bytes)), m_unused_bits(unused_bits) {
   30|    769|   if(m_unused_bits >= 8) {
  ------------------
  |  Branch (30:7): [True: 0, False: 769]
  ------------------
   31|      0|      throw Invalid_Argument("ASN1_BitString: Invalid unused bit count");
   32|      0|   }
   33|       |
   34|    769|   if(m_bytes.empty() && m_unused_bits != 0) {
  ------------------
  |  Branch (34:7): [True: 1, False: 768]
  |  Branch (34:26): [True: 0, False: 1]
  ------------------
   35|      0|      throw Invalid_Argument("ASN1_BitString: Empty BIT STRING cannot have unused bits");
   36|      0|   }
   37|       |
   38|    769|   if(m_unused_bits > 0 && (m_bytes.back() & ((1U << m_unused_bits) - 1)) != 0) {
  ------------------
  |  Branch (38:7): [True: 3, False: 766]
  |  Branch (38:28): [True: 0, False: 3]
  ------------------
   39|      0|      throw Invalid_Argument("ASN1_BitString: Unused bits must be zero");
   40|      0|   }
   41|    769|}
_ZN5Botan10BER_ObjectD2Ev:
   58|   135k|BER_Object::~BER_Object() {
   59|   135k|   secure_scrub_memory(m_value);
   60|   135k|}
_ZNK5Botan10BER_Object11assert_is_aENS_9ASN1_TypeENS_10ASN1_ClassENSt3__117basic_string_viewIcNS3_11char_traitsIcEEEE:
   65|  49.4k|void BER_Object::assert_is_a(ASN1_Type expected_type_tag, ASN1_Class expected_class_tag, std::string_view descr) const {
   66|  49.4k|   if(!this->is_a(expected_type_tag, expected_class_tag)) {
  ------------------
  |  Branch (66:7): [True: 224, False: 49.2k]
  ------------------
   67|    224|      std::stringstream msg;
   68|       |
   69|    224|      msg << "Tag mismatch when decoding " << descr << " got ";
   70|       |
   71|    224|      if(m_class_tag == ASN1_Class::NoObject && m_type_tag == ASN1_Type::NoObject) {
  ------------------
  |  Branch (71:10): [True: 57, False: 167]
  |  Branch (71:49): [True: 57, False: 0]
  ------------------
   72|     57|         msg << "EOF";
   73|    167|      } else {
   74|    167|         if(m_class_tag == ASN1_Class::Universal || m_class_tag == ASN1_Class::Constructed) {
  ------------------
  |  Branch (74:13): [True: 74, False: 93]
  |  Branch (74:53): [True: 62, False: 31]
  ------------------
   75|    136|            msg << asn1_tag_to_string(m_type_tag);
   76|    136|         } else {
   77|     31|            msg << std::to_string(static_cast<uint32_t>(m_type_tag));
   78|     31|         }
   79|       |
   80|    167|         msg << "/" << asn1_class_to_string(m_class_tag);
   81|    167|      }
   82|       |
   83|    224|      msg << " expected ";
   84|       |
   85|    224|      if(expected_class_tag == ASN1_Class::Universal || expected_class_tag == ASN1_Class::Constructed) {
  ------------------
  |  Branch (85:10): [True: 190, False: 34]
  |  Branch (85:57): [True: 34, False: 0]
  ------------------
   86|    224|         msg << asn1_tag_to_string(expected_type_tag);
   87|    224|      } else {
   88|      0|         msg << std::to_string(static_cast<uint32_t>(expected_type_tag));
   89|      0|      }
   90|       |
   91|    224|      msg << "/" << asn1_class_to_string(expected_class_tag);
   92|       |
   93|    224|      throw BER_Decoding_Error(msg.str());
   94|    224|   }
   95|  49.4k|}
_ZNK5Botan10BER_Object4is_aENS_9ASN1_TypeENS_10ASN1_ClassE:
   97|  57.2k|bool BER_Object::is_a(ASN1_Type expected_type_tag, ASN1_Class expected_class_tag) const {
   98|  57.2k|   return (m_type_tag == expected_type_tag && m_class_tag == expected_class_tag);
  ------------------
  |  Branch (98:12): [True: 51.1k, False: 6.14k]
  |  Branch (98:47): [True: 51.1k, False: 8]
  ------------------
   99|  57.2k|}
_ZN5Botan10BER_Object11set_taggingENS_9ASN1_TypeENS_10ASN1_ClassE:
  105|  65.0k|void BER_Object::set_tagging(ASN1_Type type_tag, ASN1_Class class_tag) {
  106|  65.0k|   m_type_tag = type_tag;
  107|  65.0k|   m_class_tag = class_tag;
  108|  65.0k|}
_ZN5Botan20asn1_class_to_stringENS_10ASN1_ClassE:
  110|    391|std::string asn1_class_to_string(ASN1_Class type) {
  111|    391|   switch(type) {
  112|    264|      case ASN1_Class::Universal:
  ------------------
  |  Branch (112:7): [True: 264, False: 127]
  ------------------
  113|    264|         return "UNIVERSAL";
  114|     96|      case ASN1_Class::Constructed:
  ------------------
  |  Branch (114:7): [True: 96, False: 295]
  ------------------
  115|     96|         return "CONSTRUCTED";
  116|      5|      case ASN1_Class::ContextSpecific:
  ------------------
  |  Branch (116:7): [True: 5, False: 386]
  ------------------
  117|      5|         return "CONTEXT_SPECIFIC";
  118|      9|      case ASN1_Class::Application:
  ------------------
  |  Branch (118:7): [True: 9, False: 382]
  ------------------
  119|      9|         return "APPLICATION";
  120|      7|      case ASN1_Class::Private:
  ------------------
  |  Branch (120:7): [True: 7, False: 384]
  ------------------
  121|      7|         return "PRIVATE";
  122|      0|      case ASN1_Class::NoObject:
  ------------------
  |  Branch (122:7): [True: 0, False: 391]
  ------------------
  123|      0|         return "NO_OBJECT";
  124|     10|      default:
  ------------------
  |  Branch (124:7): [True: 10, False: 381]
  ------------------
  125|     10|         return "CLASS(" + std::to_string(static_cast<size_t>(type)) + ")";
  126|    391|   }
  127|    391|}
_ZN5Botan18asn1_tag_to_stringENS_9ASN1_TypeE:
  129|    361|std::string asn1_tag_to_string(ASN1_Type type) {
  130|    361|   switch(type) {
  131|     32|      case ASN1_Type::Sequence:
  ------------------
  |  Branch (131:7): [True: 32, False: 329]
  ------------------
  132|     32|         return "SEQUENCE";
  133|       |
  134|      1|      case ASN1_Type::Set:
  ------------------
  |  Branch (134:7): [True: 1, False: 360]
  ------------------
  135|      1|         return "SET";
  136|       |
  137|      1|      case ASN1_Type::PrintableString:
  ------------------
  |  Branch (137:7): [True: 1, False: 360]
  ------------------
  138|      1|         return "PRINTABLE STRING";
  139|       |
  140|      4|      case ASN1_Type::NumericString:
  ------------------
  |  Branch (140:7): [True: 4, False: 357]
  ------------------
  141|      4|         return "NUMERIC STRING";
  142|       |
  143|      1|      case ASN1_Type::Ia5String:
  ------------------
  |  Branch (143:7): [True: 1, False: 360]
  ------------------
  144|      1|         return "IA5 STRING";
  145|       |
  146|      1|      case ASN1_Type::TeletexString:
  ------------------
  |  Branch (146:7): [True: 1, False: 360]
  ------------------
  147|      1|         return "T61 STRING";
  148|       |
  149|      2|      case ASN1_Type::Utf8String:
  ------------------
  |  Branch (149:7): [True: 2, False: 359]
  ------------------
  150|      2|         return "UTF8 STRING";
  151|       |
  152|      1|      case ASN1_Type::VisibleString:
  ------------------
  |  Branch (152:7): [True: 1, False: 360]
  ------------------
  153|      1|         return "VISIBLE STRING";
  154|       |
  155|      1|      case ASN1_Type::BmpString:
  ------------------
  |  Branch (155:7): [True: 1, False: 360]
  ------------------
  156|      1|         return "BMP STRING";
  157|       |
  158|      1|      case ASN1_Type::UniversalString:
  ------------------
  |  Branch (158:7): [True: 1, False: 360]
  ------------------
  159|      1|         return "UNIVERSAL STRING";
  160|       |
  161|      1|      case ASN1_Type::UtcTime:
  ------------------
  |  Branch (161:7): [True: 1, False: 360]
  ------------------
  162|      1|         return "UTC TIME";
  163|       |
  164|      2|      case ASN1_Type::GeneralizedTime:
  ------------------
  |  Branch (164:7): [True: 2, False: 359]
  ------------------
  165|      2|         return "GENERALIZED TIME";
  166|       |
  167|     29|      case ASN1_Type::OctetString:
  ------------------
  |  Branch (167:7): [True: 29, False: 332]
  ------------------
  168|     29|         return "OCTET STRING";
  169|       |
  170|      3|      case ASN1_Type::BitString:
  ------------------
  |  Branch (170:7): [True: 3, False: 358]
  ------------------
  171|      3|         return "BIT STRING";
  172|       |
  173|      2|      case ASN1_Type::Enumerated:
  ------------------
  |  Branch (173:7): [True: 2, False: 359]
  ------------------
  174|      2|         return "ENUMERATED";
  175|       |
  176|    168|      case ASN1_Type::Integer:
  ------------------
  |  Branch (176:7): [True: 168, False: 193]
  ------------------
  177|    168|         return "INTEGER";
  178|       |
  179|      1|      case ASN1_Type::Null:
  ------------------
  |  Branch (179:7): [True: 1, False: 360]
  ------------------
  180|      1|         return "NULL";
  181|       |
  182|      4|      case ASN1_Type::ObjectId:
  ------------------
  |  Branch (182:7): [True: 4, False: 357]
  ------------------
  183|      4|         return "OBJECT";
  184|       |
  185|      3|      case ASN1_Type::Boolean:
  ------------------
  |  Branch (185:7): [True: 3, False: 358]
  ------------------
  186|      3|         return "BOOLEAN";
  187|       |
  188|      0|      case ASN1_Type::NoObject:
  ------------------
  |  Branch (188:7): [True: 0, False: 361]
  ------------------
  189|      0|         return "NO_OBJECT";
  190|       |
  191|    103|      default:
  ------------------
  |  Branch (191:7): [True: 103, False: 258]
  ------------------
  192|    103|         return "TAG(" + std::to_string(static_cast<uint32_t>(type)) + ")";
  193|    361|   }
  194|    361|}
_ZN5Botan18BER_Decoding_ErrorC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  199|    877|BER_Decoding_Error::BER_Decoding_Error(std::string_view err) : Decoding_Error(fmt("BER: {}", err)) {}
_ZN5Botan11BER_Bad_TagC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEj:
  201|     53|BER_Bad_Tag::BER_Bad_Tag(std::string_view str, uint32_t tagging) : BER_Decoding_Error(fmt("{}: {}", str, tagging)) {}
_ZN5Botan4ASN19maybe_BERERNS_10DataSourceE:
  231|  6.92k|bool maybe_BER(DataSource& source) {
  232|  6.92k|   uint8_t first_u8 = 0;
  233|  6.92k|   if(source.peek_byte(first_u8) == 0) {
  ------------------
  |  Branch (233:7): [True: 0, False: 6.92k]
  ------------------
  234|      0|      BOTAN_ASSERT_EQUAL(source.read_byte(first_u8), 0, "Expected EOF");
  ------------------
  |  |   90|      0|   do {                                                                                                \
  |  |   91|      0|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                                    \
  |  |   92|      0|      if((expr1) != (expr2)) {                                                                         \
  |  |  ------------------
  |  |  |  Branch (92:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   93|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                                           \
  |  |   94|      0|         Botan::assertion_failure(#expr1 " == " #expr2, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   95|      0|      }                                                                                                \
  |  |   96|      0|   } while(0)
  |  |  ------------------
  |  |  |  Branch (96:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
  235|      0|      throw Stream_IO_Error("ASN1::maybe_BER: Source was empty");
  236|      0|   }
  237|       |
  238|  6.92k|   const auto cons_seq = static_cast<uint8_t>(ASN1_Class::Constructed) | static_cast<uint8_t>(ASN1_Type::Sequence);
  239|  6.92k|   return first_u8 == cons_seq;
  240|  6.92k|}

_ZN5Botan3OID11from_stringENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   80|  2.50k|OID OID::from_string(std::string_view str) {
   81|  2.50k|   if(str.empty()) {
  ------------------
  |  Branch (81:7): [True: 0, False: 2.50k]
  ------------------
   82|      0|      throw Invalid_Argument("OID::from_string argument must be non-empty");
   83|      0|   }
   84|       |
   85|  2.50k|   OID o = OID_Map::global_registry().str2oid(str);
   86|  2.50k|   if(o.has_value()) {
  ------------------
  |  Branch (86:7): [True: 2.50k, False: 0]
  ------------------
   87|  2.50k|      return o;
   88|  2.50k|   }
   89|       |
   90|       |   // Try to parse as a dotted decimal
   91|      0|   try {
   92|      0|      return OID(str);
   93|      0|   } catch(...) {}
   94|       |
   95|      0|   throw Lookup_Error(fmt("No OID associated with name '{}'", str));
   96|      0|}
_ZN5Botan3OIDC2ESt16initializer_listIjE:
   98|  31.7k|OID::OID(std::initializer_list<uint32_t> init) : m_id(init) {
   99|  31.7k|   oid_valid_check(m_id);
  100|  31.7k|}
_ZNK5Botan3OID9to_stringEv:
  123|  1.86k|std::string OID::to_string() const {
  124|  1.86k|   std::ostringstream out;
  125|       |
  126|  22.9k|   for(size_t i = 0; i != m_id.size(); ++i) {
  ------------------
  |  Branch (126:22): [True: 21.0k, False: 1.86k]
  ------------------
  127|       |      // avoid locale issues with integer formatting
  128|  21.0k|      out << std::to_string(m_id[i]);
  129|  21.0k|      if(i != m_id.size() - 1) {
  ------------------
  |  Branch (129:10): [True: 19.2k, False: 1.86k]
  ------------------
  130|  19.2k|         out << ".";
  131|  19.2k|      }
  132|  21.0k|   }
  133|       |
  134|  1.86k|   return out.str();
  135|  1.86k|}
_ZNK5Botan3OID15registered_nameEv:
  149|  12.0k|std::optional<std::string> OID::registered_name() const {
  150|  12.0k|   return OID_Map::global_registry().oid2str(*this);
  151|  12.0k|}
_ZNK5Botan3OID7matchesESt16initializer_listIjE:
  157|  10.7k|bool OID::matches(std::initializer_list<uint32_t> other) const {
  158|       |   // TODO: once all target compilers support it, use std::ranges::equal
  159|  10.7k|   return std::equal(m_id.begin(), m_id.end(), other.begin(), other.end());
  160|  10.7k|}
_ZNK5Botan3OID9hash_codeEv:
  162|  13.8k|uint64_t OID::hash_code() const {
  163|       |   // If this is changed also update gen_oids.py to match
  164|  13.8k|   uint64_t hash = 0x621F302327D9A49A;
  165|  97.5k|   for(auto id : m_id) {
  ------------------
  |  Branch (165:16): [True: 97.5k, False: 13.8k]
  ------------------
  166|  97.5k|      hash *= 193;
  167|  97.5k|      hash += id;
  168|  97.5k|   }
  169|  13.8k|   return hash;
  170|  13.8k|}
_ZNK5Botan3OID11encode_intoERNS_11DER_EncoderE:
  185|  2.23k|void OID::encode_into(DER_Encoder& der) const {
  186|  2.23k|   if(m_id.size() < 2) {
  ------------------
  |  Branch (186:7): [True: 0, False: 2.23k]
  ------------------
  187|      0|      throw Invalid_Argument("OID::encode_into: OID is invalid");
  188|      0|   }
  189|       |
  190|  2.23k|   auto append = [](std::vector<uint8_t>& encoding, uint32_t z) {
  191|  2.23k|      if(z <= 0x7F) {
  192|  2.23k|         encoding.push_back(static_cast<uint8_t>(z));
  193|  2.23k|      } else {
  194|  2.23k|         const size_t z7 = (high_bit(z) + 7 - 1) / 7;
  195|       |
  196|  2.23k|         for(size_t j = 0; j != z7; ++j) {
  197|  2.23k|            uint8_t zp = static_cast<uint8_t>(z >> (7 * (z7 - j - 1)) & 0x7F);
  198|       |
  199|  2.23k|            if(j != z7 - 1) {
  200|  2.23k|               zp |= 0x80;
  201|  2.23k|            }
  202|       |
  203|  2.23k|            encoding.push_back(zp);
  204|  2.23k|         }
  205|  2.23k|      }
  206|  2.23k|   };
  207|       |
  208|  2.23k|   std::vector<uint8_t> encoding;
  209|       |
  210|       |   // We know 40 * root can't overflow because root is between 0 and 2
  211|  2.23k|   auto first = checked_add(40 * m_id[0], m_id[1]);
  212|  2.23k|   BOTAN_ASSERT_NOMSG(first.has_value());
  ------------------
  |  |   77|  2.23k|   do {                                                                     \
  |  |   78|  2.23k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  2.23k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 2.23k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  2.23k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 2.23k]
  |  |  ------------------
  ------------------
  213|       |
  214|  2.23k|   append(encoding, *first);
  215|       |
  216|  13.3k|   for(size_t i = 2; i != m_id.size(); ++i) {
  ------------------
  |  Branch (216:22): [True: 11.0k, False: 2.23k]
  ------------------
  217|  11.0k|      append(encoding, m_id[i]);
  218|  11.0k|   }
  219|  2.23k|   der.add_object(ASN1_Type::ObjectId, ASN1_Class::Universal, encoding);
  220|  2.23k|}
_ZN5Botan3OID11decode_fromERNS_11BER_DecoderE:
  225|  9.27k|void OID::decode_from(BER_Decoder& decoder) {
  226|  9.27k|   const BER_Object obj = decoder.get_next_object();
  227|  9.27k|   if(obj.tagging() != (ASN1_Class::Universal | ASN1_Type::ObjectId)) {
  ------------------
  |  Branch (227:7): [True: 53, False: 9.22k]
  ------------------
  228|     53|      throw BER_Bad_Tag("Error decoding OID, unknown tag", obj.tagging());
  229|     53|   }
  230|       |
  231|  9.22k|   if(obj.length() == 0) {
  ------------------
  |  Branch (231:7): [True: 1, False: 9.22k]
  ------------------
  232|      1|      throw BER_Decoding_Error("OID encoding is too short");
  233|      1|   }
  234|       |
  235|  9.22k|   auto consume = [](BufferSlicer& data) -> uint32_t {
  236|  9.22k|      BOTAN_ASSERT_NOMSG(!data.empty());
  237|  9.22k|      uint32_t b = data.take_byte();
  238|       |
  239|  9.22k|      if(b > 0x7F) {
  240|  9.22k|         b &= 0x7F;
  241|       |
  242|       |         // Even BER requires that the OID have minimal length, ie that
  243|       |         // the first byte of a multibyte encoding cannot be zero
  244|       |         // See X.690 section 8.19.2
  245|  9.22k|         if(b == 0) {
  246|  9.22k|            throw Decoding_Error("Leading zero byte in multibyte OID encoding");
  247|  9.22k|         }
  248|       |
  249|  9.22k|         while(true) {
  250|  9.22k|            if(data.empty()) {
  251|  9.22k|               throw Decoding_Error("Truncated OID value");
  252|  9.22k|            }
  253|       |
  254|  9.22k|            const uint8_t next = data.take_byte();
  255|  9.22k|            const bool more = (next & 0x80) == 0x80;
  256|  9.22k|            const uint8_t value = next & 0x7F;
  257|       |
  258|  9.22k|            if((b >> (32 - 7)) != 0) {
  259|  9.22k|               throw Decoding_Error("OID component overflow");
  260|  9.22k|            }
  261|       |
  262|  9.22k|            b = (b << 7) | value;
  263|       |
  264|  9.22k|            if(!more) {
  265|  9.22k|               break;
  266|  9.22k|            }
  267|  9.22k|         }
  268|  9.22k|      }
  269|       |
  270|  9.22k|      return b;
  271|  9.22k|   };
  272|       |
  273|  9.22k|   BufferSlicer data(obj.data());
  274|  9.22k|   std::vector<uint32_t> parts;
  275|  68.0k|   while(!data.empty()) {
  ------------------
  |  Branch (275:10): [True: 58.8k, False: 9.22k]
  ------------------
  276|  58.8k|      const uint32_t comp = consume(data);
  277|       |
  278|  58.8k|      if(parts.empty()) {
  ------------------
  |  Branch (278:10): [True: 9.20k, False: 49.6k]
  ------------------
  279|       |         // divide into root and second arc
  280|       |
  281|  9.20k|         const uint32_t root_arc = [](uint32_t b0) -> uint32_t {
  282|  9.20k|            if(b0 < 40) {
  283|  9.20k|               return 0;
  284|  9.20k|            } else if(b0 < 80) {
  285|  9.20k|               return 1;
  286|  9.20k|            } else {
  287|  9.20k|               return 2;
  288|  9.20k|            }
  289|  9.20k|         }(comp);
  290|       |
  291|  9.20k|         parts.push_back(root_arc);
  292|  9.20k|         BOTAN_ASSERT_NOMSG(comp >= 40 * root_arc);
  ------------------
  |  |   77|  9.20k|   do {                                                                     \
  |  |   78|  9.20k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  9.20k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 9.20k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  9.20k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 9.20k]
  |  |  ------------------
  ------------------
  293|  9.20k|         parts.push_back(comp - 40 * root_arc);
  294|  49.6k|      } else {
  295|  49.6k|         parts.push_back(comp);
  296|  49.6k|      }
  297|  58.8k|   }
  298|       |
  299|  9.22k|   m_id = parts;
  300|  9.22k|}
_ZN5BotanlsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEERKNS_3OIDE:
  302|  1.74k|std::ostream& operator<<(std::ostream& out, const OID& oid) {
  303|  1.74k|   out << oid.to_string();
  304|  1.74k|   return out;
  305|  1.74k|}
asn1_oid.cpp:_ZN5Botan12_GLOBAL__N_115oid_valid_checkENSt3__14spanIKjLm18446744073709551615EEE:
   26|  31.7k|void oid_valid_check(std::span<const uint32_t> oid) {
   27|  31.7k|   BOTAN_ARG_CHECK(oid.size() >= 2, "OID too short to be valid");
  ------------------
  |  |   35|  31.7k|   do {                                                          \
  |  |   36|  31.7k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  31.7k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 31.7k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  31.7k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 31.7k]
  |  |  ------------------
  ------------------
   28|  31.7k|   BOTAN_ARG_CHECK(oid[0] <= 2, "OID root out of range");
  ------------------
  |  |   35|  31.7k|   do {                                                          \
  |  |   36|  31.7k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  31.7k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 31.7k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  31.7k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 31.7k]
  |  |  ------------------
  ------------------
   29|  31.7k|   BOTAN_ARG_CHECK(oid[1] <= 39 || oid[0] == 2, "OID second arc too large");
  ------------------
  |  |   35|  31.7k|   do {                                                          \
  |  |   36|  31.7k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  31.7k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 31.7k, 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|  31.7k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 31.7k]
  |  |  ------------------
  ------------------
   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|  31.7k|   BOTAN_ARG_CHECK(oid[1] <= 0xFFFFFFAF, "OID second arc too large");
  ------------------
  |  |   35|  31.7k|   do {                                                          \
  |  |   36|  31.7k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  31.7k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 31.7k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  31.7k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 31.7k]
  |  |  ------------------
  ------------------
   33|  31.7k|}
asn1_oid.cpp:_ZZNK5Botan3OID11encode_intoERNS_11DER_EncoderEENK3$_0clERNSt3__16vectorIhNS4_9allocatorIhEEEEj:
  190|  13.3k|   auto append = [](std::vector<uint8_t>& encoding, uint32_t z) {
  191|  13.3k|      if(z <= 0x7F) {
  ------------------
  |  Branch (191:10): [True: 11.7k, False: 1.59k]
  ------------------
  192|  11.7k|         encoding.push_back(static_cast<uint8_t>(z));
  193|  11.7k|      } else {
  194|  1.59k|         const size_t z7 = (high_bit(z) + 7 - 1) / 7;
  195|       |
  196|  4.79k|         for(size_t j = 0; j != z7; ++j) {
  ------------------
  |  Branch (196:28): [True: 3.19k, False: 1.59k]
  ------------------
  197|  3.19k|            uint8_t zp = static_cast<uint8_t>(z >> (7 * (z7 - j - 1)) & 0x7F);
  198|       |
  199|  3.19k|            if(j != z7 - 1) {
  ------------------
  |  Branch (199:16): [True: 1.59k, False: 1.59k]
  ------------------
  200|  1.59k|               zp |= 0x80;
  201|  1.59k|            }
  202|       |
  203|  3.19k|            encoding.push_back(zp);
  204|  3.19k|         }
  205|  1.59k|      }
  206|  13.3k|   };
asn1_oid.cpp:_ZZN5Botan3OID11decode_fromERNS_11BER_DecoderEENK3$_0clERNS_12BufferSlicerE:
  235|  58.8k|   auto consume = [](BufferSlicer& data) -> uint32_t {
  236|  58.8k|      BOTAN_ASSERT_NOMSG(!data.empty());
  ------------------
  |  |   77|  58.8k|   do {                                                                     \
  |  |   78|  58.8k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  58.8k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 58.8k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  58.8k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 58.8k]
  |  |  ------------------
  ------------------
  237|  58.8k|      uint32_t b = data.take_byte();
  238|       |
  239|  58.8k|      if(b > 0x7F) {
  ------------------
  |  Branch (239:10): [True: 13.2k, False: 45.5k]
  ------------------
  240|  13.2k|         b &= 0x7F;
  241|       |
  242|       |         // Even BER requires that the OID have minimal length, ie that
  243|       |         // the first byte of a multibyte encoding cannot be zero
  244|       |         // See X.690 section 8.19.2
  245|  13.2k|         if(b == 0) {
  ------------------
  |  Branch (245:13): [True: 3, False: 13.2k]
  ------------------
  246|      3|            throw Decoding_Error("Leading zero byte in multibyte OID encoding");
  247|      3|         }
  248|       |
  249|  14.6k|         while(true) {
  ------------------
  |  Branch (249:16): [True: 14.6k, Folded]
  ------------------
  250|  14.6k|            if(data.empty()) {
  ------------------
  |  Branch (250:16): [True: 35, False: 14.6k]
  ------------------
  251|     35|               throw Decoding_Error("Truncated OID value");
  252|     35|            }
  253|       |
  254|  14.6k|            const uint8_t next = data.take_byte();
  255|  14.6k|            const bool more = (next & 0x80) == 0x80;
  256|  14.6k|            const uint8_t value = next & 0x7F;
  257|       |
  258|  14.6k|            if((b >> (32 - 7)) != 0) {
  ------------------
  |  Branch (258:16): [True: 15, False: 14.6k]
  ------------------
  259|     15|               throw Decoding_Error("OID component overflow");
  260|     15|            }
  261|       |
  262|  14.6k|            b = (b << 7) | value;
  263|       |
  264|  14.6k|            if(!more) {
  ------------------
  |  Branch (264:16): [True: 13.2k, False: 1.42k]
  ------------------
  265|  13.2k|               break;
  266|  13.2k|            }
  267|  14.6k|         }
  268|  13.2k|      }
  269|       |
  270|  58.7k|      return b;
  271|  58.8k|   };
asn1_oid.cpp:_ZZN5Botan3OID11decode_fromERNS_11BER_DecoderEENK3$_1clEj:
  281|  9.20k|         const uint32_t root_arc = [](uint32_t b0) -> uint32_t {
  282|  9.20k|            if(b0 < 40) {
  ------------------
  |  Branch (282:16): [True: 708, False: 8.50k]
  ------------------
  283|    708|               return 0;
  284|  8.50k|            } else if(b0 < 80) {
  ------------------
  |  Branch (284:23): [True: 7.21k, False: 1.29k]
  ------------------
  285|  7.21k|               return 1;
  286|  7.21k|            } else {
  287|  1.29k|               return 2;
  288|  1.29k|            }
  289|  9.20k|         }(comp);

_ZN5Botan11BER_DecoderD2Ev:
  456|  34.3k|BER_Decoder::~BER_Decoder() = default;
_ZN5Botan11BER_Decoder10verify_endEv:
  471|  13.4k|BER_Decoder& BER_Decoder::verify_end() {
  472|  13.4k|   return verify_end("BER_Decoder::verify_end called, but data remains");
  473|  13.4k|}
_ZN5Botan11BER_Decoder10verify_endENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  478|  13.4k|BER_Decoder& BER_Decoder::verify_end(std::string_view err) {
  479|  13.4k|   if(!m_source->end_of_data() || m_pushed.is_set()) {
  ------------------
  |  Branch (479:7): [True: 29, False: 13.4k]
  |  Branch (479:35): [True: 0, False: 13.4k]
  ------------------
  480|     29|      throw Decoding_Error(err);
  481|     29|   }
  482|  13.4k|   return (*this);
  483|  13.4k|}
_ZN5Botan11BER_Decoder17discard_remainingEv:
  488|  6.02k|BER_Decoder& BER_Decoder::discard_remaining() {
  489|  6.02k|   m_pushed = BER_Object();
  490|  6.02k|   uint8_t buf = 0;
  491|  93.0k|   while(m_source->read_byte(buf) != 0) {}
  ------------------
  |  Branch (491:10): [True: 87.0k, False: 6.02k]
  ------------------
  492|  6.02k|   return (*this);
  493|  6.02k|}
_ZN5Botan11BER_Decoder14read_next_byteEv:
  495|   436k|std::optional<uint8_t> BER_Decoder::read_next_byte() {
  496|   436k|   BOTAN_ASSERT_NOMSG(m_source != nullptr);
  ------------------
  |  |   77|   436k|   do {                                                                     \
  |  |   78|   436k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|   436k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 436k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|   436k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 436k]
  |  |  ------------------
  ------------------
  497|   436k|   uint8_t b = 0;
  498|   436k|   if(m_source->read_byte(b) != 0) {
  ------------------
  |  Branch (498:7): [True: 430k, False: 5.91k]
  ------------------
  499|   430k|      return b;
  500|   430k|   } else {
  501|  5.91k|      return {};
  502|  5.91k|   }
  503|   436k|}
_ZN5Botan11BER_Decoder16peek_next_objectEv:
  505|  3.24k|const BER_Object& BER_Decoder::peek_next_object() {
  506|  3.24k|   if(!m_pushed.is_set()) {
  ------------------
  |  Branch (506:7): [True: 3.24k, False: 0]
  ------------------
  507|  3.24k|      m_pushed = get_next_object();
  508|  3.24k|   }
  509|       |
  510|  3.24k|   return m_pushed;
  511|  3.24k|}
_ZN5Botan11BER_Decoder15get_next_objectEv:
  516|  70.1k|BER_Object BER_Decoder::get_next_object() {
  517|  70.1k|   BER_Object next;
  518|       |
  519|  70.1k|   if(m_pushed.is_set()) {
  ------------------
  |  Branch (519:7): [True: 5.14k, False: 65.0k]
  ------------------
  520|  5.14k|      std::swap(next, m_pushed);
  521|  5.14k|      return next;
  522|  5.14k|   }
  523|       |
  524|  65.0k|   for(;;) {
  525|  65.0k|      ASN1_Type type_tag = ASN1_Type::NoObject;
  526|  65.0k|      ASN1_Class class_tag = ASN1_Class::NoObject;
  527|  65.0k|      decode_tag(m_source, type_tag, class_tag);
  528|  65.0k|      next.set_tagging(type_tag, class_tag);
  529|  65.0k|      if(next.is_set() == false) {  // no more objects
  ------------------
  |  Branch (529:10): [True: 5.09k, False: 59.9k]
  ------------------
  530|  5.09k|         return next;
  531|  5.09k|      }
  532|       |
  533|  59.9k|      const size_t allow_indef = m_limits.allow_ber_encoding() ? m_limits.max_nested_indefinite_length() : 0;
  ------------------
  |  Branch (533:34): [True: 0, False: 59.9k]
  ------------------
  534|  59.9k|      const bool der_mode = m_limits.require_der_encoding();
  535|  59.9k|      const auto dl = decode_length(m_source, allow_indef, der_mode, is_constructed(class_tag));
  536|       |
  537|       |      // Per X.690 8.1.5 the only valid EOC encoding is the two-octet
  538|       |      // sequence 0x00 0x00. Reject any other length encoding on a tag of
  539|       |      // (Eoc, Universal) before we consume the "content" bytes.
  540|  59.9k|      if(type_tag == ASN1_Type::Eoc && class_tag == ASN1_Class::Universal &&
  ------------------
  |  Branch (540:10): [True: 73, False: 59.8k]
  |  Branch (540:40): [True: 41, False: 32]
  ------------------
  541|     41|         (dl.content_length() != 0 || dl.indefinite_length())) {
  ------------------
  |  Branch (541:11): [True: 33, False: 8]
  |  Branch (541:39): [True: 0, False: 8]
  ------------------
  542|     33|         throw BER_Decoding_Error("EOC marker with non-zero length");
  543|     33|      }
  544|       |
  545|  59.9k|      if(const auto max_size = m_limits.max_object_size(); max_size && dl.content_length() > *max_size) {
  ------------------
  |  Branch (545:60): [True: 59.7k, False: 197]
  |  Branch (545:72): [True: 42, False: 59.6k]
  ------------------
  546|     42|         throw BER_Decoding_Error("Encoded object exceeds maximum size");
  547|     42|      }
  548|       |
  549|  59.8k|      if(!m_source->check_available(dl.total_length())) {
  ------------------
  |  Branch (549:10): [True: 127, False: 59.7k]
  ------------------
  550|    127|         throw BER_Decoding_Error("Value truncated");
  551|    127|      }
  552|       |
  553|  59.7k|      uint8_t* out = next.mutable_bits(dl.content_length());
  554|  59.7k|      if(m_source->read(out, dl.content_length()) != dl.content_length()) {
  ------------------
  |  Branch (554:10): [True: 0, False: 59.7k]
  ------------------
  555|      0|         throw BER_Decoding_Error("Value truncated");
  556|      0|      }
  557|       |
  558|  59.7k|      if(dl.indefinite_length()) {
  ------------------
  |  Branch (558:10): [True: 0, False: 59.7k]
  ------------------
  559|       |         // After reading the data consume the 2-byte EOC
  560|      0|         uint8_t eoc[2] = {0xFF, 0xFF};
  561|      0|         if(m_source->read(eoc, 2) != 2 || eoc[0] != 0x00 || eoc[1] != 0x00) {
  ------------------
  |  Branch (561:13): [True: 0, False: 0]
  |  Branch (561:44): [True: 0, False: 0]
  |  Branch (561:62): [True: 0, False: 0]
  ------------------
  562|      0|            throw BER_Decoding_Error("Missing or malformed EOC marker");
  563|      0|         }
  564|      0|      }
  565|       |
  566|  59.7k|      if(next.tagging() == static_cast<uint32_t>(ASN1_Type::Eoc)) {
  ------------------
  |  Branch (566:10): [True: 8, False: 59.7k]
  ------------------
  567|      8|         if(m_limits.require_der_encoding()) {
  ------------------
  |  Branch (567:13): [True: 8, False: 0]
  ------------------
  568|      8|            throw BER_Decoding_Error("Detected EOC marker in DER structure");
  569|      8|         }
  570|       |         // An EOC marker is only valid as an indefinite-length terminator, which
  571|       |         // is consumed above when reading the indefinite-length object. A
  572|       |         // standalone EOC is rejected unless the caller opted to tolerate it.
  573|      0|         if(m_limits.allow_standalone_eoc()) {
  ------------------
  |  Branch (573:13): [True: 0, False: 0]
  ------------------
  574|      0|            continue;
  575|      0|         }
  576|      0|         throw BER_Decoding_Error("Encountered EOC marker outside of indefinite-length encoding");
  577|      0|      }
  578|       |
  579|  59.7k|      break;
  580|  59.7k|   }
  581|       |
  582|  59.7k|   return next;
  583|  65.0k|}
_ZN5Botan11BER_Decoder9push_backEONS_10BER_ObjectE:
  607|  6.98k|void BER_Decoder::push_back(BER_Object&& obj) {
  608|  6.98k|   if(m_pushed.is_set()) {
  ------------------
  |  Branch (608:7): [True: 0, False: 6.98k]
  ------------------
  609|      0|      throw Invalid_State("BER_Decoder: Only one push back is allowed");
  610|      0|   }
  611|  6.98k|   m_pushed = std::move(obj);
  612|  6.98k|}
_ZN5Botan11BER_Decoder10start_consENS_9ASN1_TypeENS_10ASN1_ClassE:
  614|  19.8k|BER_Decoder BER_Decoder::start_cons(ASN1_Type type_tag, ASN1_Class class_tag) {
  615|  19.8k|   BER_Object obj = get_next_object();
  616|  19.8k|   obj.assert_is_a(type_tag, class_tag | ASN1_Class::Constructed);
  617|       |
  618|       |   // In DER mode the elements of a universal SET must appear in sorted order
  619|  19.8k|   if(m_limits.require_der_encoding() && type_tag == ASN1_Type::Set && class_tag == ASN1_Class::Universal) {
  ------------------
  |  Branch (619:7): [True: 19.6k, False: 168]
  |  Branch (619:42): [True: 0, False: 19.6k]
  |  Branch (619:72): [True: 0, False: 0]
  ------------------
  620|      0|      verify_set_is_sorted(std::span<const uint8_t>{obj.bits(), obj.length()});
  621|      0|   }
  622|       |
  623|  19.8k|   BER_Decoder child(std::move(obj), this);
  624|  19.8k|   return child;
  625|  19.8k|}
_ZN5Botan11BER_Decoder8end_consEv:
  630|  18.3k|BER_Decoder& BER_Decoder::end_cons() {
  631|  18.3k|   if(m_parent == nullptr) {
  ------------------
  |  Branch (631:7): [True: 0, False: 18.3k]
  ------------------
  632|      0|      throw Invalid_State("BER_Decoder::end_cons called with null parent");
  633|      0|   }
  634|  18.3k|   if(!m_source->end_of_data() || m_pushed.is_set()) {
  ------------------
  |  Branch (634:7): [True: 25, False: 18.3k]
  |  Branch (634:35): [True: 35, False: 18.2k]
  ------------------
  635|     60|      throw Decoding_Error("BER_Decoder::end_cons called with data left");
  636|     60|   }
  637|  18.2k|   return (*m_parent);
  638|  18.3k|}
_ZN5Botan11BER_DecoderC2EONS_10BER_ObjectEPS0_:
  641|  19.6k|      m_limits(parent != nullptr ? parent->limits() : BER_Decoder::Limits::BER()), m_parent(parent) {
  ------------------
  |  Branch (641:16): [True: 19.6k, False: 0]
  ------------------
  642|  19.6k|   m_data_src = std::make_unique<DataSource_BERObject>(std::move(obj));
  643|  19.6k|   m_source = m_data_src.get();
  644|  19.6k|}
_ZN5Botan11BER_DecoderC2ERNS_10DataSourceENS0_6LimitsE:
  654|      2|BER_Decoder::BER_Decoder(DataSource& src, Limits limits) : m_limits(limits), m_source(&src) {}
_ZN5Botan11BER_DecoderC2ENSt3__14spanIKhLm18446744073709551615EEENS0_6LimitsE:
  659|  14.7k|BER_Decoder::BER_Decoder(std::span<const uint8_t> buf, Limits limits) : m_limits(limits) {
  660|  14.7k|   m_data_src = std::make_unique<DataSource_Memory>(buf);
  661|  14.7k|   m_source = m_data_src.get();
  662|  14.7k|}
_ZN5Botan11BER_Decoder6decodeERNS_11ASN1_ObjectENS_9ASN1_TypeENS_10ASN1_ClassE:
  671|  15.3k|BER_Decoder& BER_Decoder::decode(ASN1_Object& obj, ASN1_Type type_tag, ASN1_Class class_tag) {
  672|       |   // TODO support this case properly
  673|  15.3k|   if(type_tag != ASN1_Type::NoObject || class_tag != ASN1_Class::NoObject) {
  ------------------
  |  Branch (673:7): [True: 0, False: 15.3k]
  |  Branch (673:42): [True: 0, False: 15.3k]
  ------------------
  674|      0|      throw Not_Implemented("BER_Decoder::decode(ASN1_Object) does not support implicit tagged decoding");
  675|      0|   }
  676|  15.3k|   obj.decode_from(*this);
  677|  15.3k|   return (*this);
  678|  15.3k|}
_ZN5Botan11BER_Decoder26decode_octet_string_bigintERNS_6BigIntE:
  692|  2.28k|BER_Decoder& BER_Decoder::decode_octet_string_bigint(BigInt& out) {
  693|  2.28k|   secure_vector<uint8_t> out_vec;
  694|  2.28k|   decode(out_vec, ASN1_Type::OctetString);
  695|  2.28k|   out = BigInt::from_bytes(out_vec);
  696|  2.28k|   return (*this);
  697|  2.28k|}
_ZN5Botan11BER_Decoder6decodeERmNS_9ASN1_TypeENS_10ASN1_ClassE:
  725|  11.0k|BER_Decoder& BER_Decoder::decode(size_t& out, ASN1_Type type_tag, ASN1_Class class_tag) {
  726|  11.0k|   BigInt integer;
  727|  11.0k|   decode(integer, type_tag, class_tag);
  728|       |
  729|  11.0k|   if(integer.signum() < 0) {
  ------------------
  |  Branch (729:7): [True: 70, False: 11.0k]
  ------------------
  730|     70|      throw BER_Decoding_Error("Decoded small integer value was negative");
  731|     70|   }
  732|       |
  733|  11.0k|   if(integer.bits() > 32) {
  ------------------
  |  Branch (733:7): [True: 56, False: 10.9k]
  ------------------
  734|     56|      throw BER_Decoding_Error("Decoded integer value larger than expected");
  735|     56|   }
  736|       |
  737|  10.9k|   out = 0;
  738|  53.3k|   for(size_t i = 0; i != 4; ++i) {
  ------------------
  |  Branch (738:22): [True: 42.4k, False: 10.9k]
  ------------------
  739|  42.4k|      out = (out << 8) | integer.byte_at(3 - i);
  740|  42.4k|   }
  741|       |
  742|  10.9k|   return (*this);
  743|  11.0k|}
_ZN5Botan11BER_Decoder6decodeERNS_6BigIntENS_9ASN1_TypeENS_10ASN1_ClassE:
  775|  15.6k|BER_Decoder& BER_Decoder::decode(BigInt& out, ASN1_Type type_tag, ASN1_Class class_tag) {
  776|  15.6k|   const BER_Object obj = get_next_object();
  777|  15.6k|   obj.assert_is_a(type_tag, class_tag);
  778|       |
  779|       |   // An INTEGER must have at least one content octet (X.690 section 8.3.1)
  780|  15.6k|   if(obj.length() == 0) {
  ------------------
  |  Branch (780:7): [True: 1, False: 15.6k]
  ------------------
  781|      1|      throw BER_Decoding_Error("INTEGER encoding has no content octets");
  782|      1|   }
  783|       |
  784|       |   // DER requires minimal INTEGER encoding (X.690 section 8.3.2)
  785|  15.6k|   if(m_limits.require_der_encoding()) {
  ------------------
  |  Branch (785:7): [True: 15.2k, False: 407]
  ------------------
  786|  15.2k|      if(obj.length() > 1) {
  ------------------
  |  Branch (786:10): [True: 3.20k, False: 12.0k]
  ------------------
  787|  3.20k|         if(obj.bits()[0] == 0x00 && (obj.bits()[1] & 0x80) == 0) {
  ------------------
  |  Branch (787:13): [True: 1.33k, False: 1.87k]
  |  Branch (787:38): [True: 5, False: 1.32k]
  ------------------
  788|      5|            throw BER_Decoding_Error("Detected non-minimal INTEGER encoding in DER structure");
  789|      5|         }
  790|  3.19k|         if(obj.bits()[0] == 0xFF && (obj.bits()[1] & 0x80) != 0) {
  ------------------
  |  Branch (790:13): [True: 22, False: 3.17k]
  |  Branch (790:38): [True: 7, False: 15]
  ------------------
  791|      7|            throw BER_Decoding_Error("Detected non-minimal INTEGER encoding in DER structure");
  792|      7|         }
  793|  3.19k|      }
  794|  15.2k|   }
  795|       |
  796|  15.6k|   out = ASN1::integer_from_contents(obj.data());
  797|       |
  798|  15.6k|   return (*this);
  799|  15.6k|}
_ZN5Botan4ASN121integer_from_contentsENSt3__14spanIKhLm18446744073709551615EEE:
  801|  15.2k|BigInt ASN1::integer_from_contents(std::span<const uint8_t> contents) {
  802|  15.2k|   if(contents.empty()) {
  ------------------
  |  Branch (802:7): [True: 0, False: 15.2k]
  ------------------
  803|      0|      throw BER_Decoding_Error("INTEGER encoding has no content octets");
  804|      0|   }
  805|       |
  806|  15.2k|   BigInt out;
  807|       |
  808|  15.2k|   const bool negative = (contents[0] & 0x80) == 0x80;
  809|       |
  810|  15.2k|   if(negative) {
  ------------------
  |  Branch (810:7): [True: 176, False: 15.0k]
  ------------------
  811|    176|      secure_vector<uint8_t> vec(contents.begin(), contents.end());
  812|    563|      for(size_t i = vec.size(); i > 0; --i) {
  ------------------
  |  Branch (812:34): [True: 563, False: 0]
  ------------------
  813|    563|         const bool gt0 = (vec[i - 1] > 0);
  814|    563|         vec[i - 1] -= 1;
  815|    563|         if(gt0) {
  ------------------
  |  Branch (815:13): [True: 176, False: 387]
  ------------------
  816|    176|            break;
  817|    176|         }
  818|    563|      }
  819|  22.5k|      for(auto& byte : vec) {
  ------------------
  |  Branch (819:22): [True: 22.5k, False: 176]
  ------------------
  820|  22.5k|         byte = ~byte;
  821|  22.5k|      }
  822|    176|      out._assign_from_bytes(vec);
  823|    176|      out.set_sign(BigInt::Negative);
  824|  15.0k|   } else {
  825|  15.0k|      out._assign_from_bytes(contents);
  826|  15.0k|   }
  827|       |
  828|  15.2k|   return out;
  829|  15.2k|}
_ZN5Botan11BER_Decoder6decodeERNSt3__16vectorIhNS_16secure_allocatorIhEEEENS_9ASN1_TypeES7_NS_10ASN1_ClassE:
 1021|  11.4k|                                 ASN1_Class class_tag) {
 1022|  11.4k|   if(real_type != ASN1_Type::OctetString && real_type != ASN1_Type::BitString) {
  ------------------
  |  Branch (1022:7): [True: 0, False: 11.4k]
  |  Branch (1022:46): [True: 0, False: 0]
  ------------------
 1023|      0|      throw BER_Bad_Tag("Bad tag for {BIT,OCTET} STRING", static_cast<uint32_t>(real_type));
 1024|      0|   }
 1025|       |
 1026|  11.4k|   asn1_decode_binary_string(buffer, get_next_object(), real_type, type_tag, class_tag, m_limits);
 1027|  11.4k|   return (*this);
 1028|  11.4k|}
_ZN5Botan11BER_Decoder6decodeERNSt3__16vectorIhNS1_9allocatorIhEEEENS_9ASN1_TypeES7_NS_10ASN1_ClassE:
 1033|  2.19k|                                 ASN1_Class class_tag) {
 1034|  2.19k|   if(real_type != ASN1_Type::OctetString && real_type != ASN1_Type::BitString) {
  ------------------
  |  Branch (1034:7): [True: 1.06k, False: 1.13k]
  |  Branch (1034:46): [True: 0, False: 1.06k]
  ------------------
 1035|      0|      throw BER_Bad_Tag("Bad tag for {BIT,OCTET} STRING", static_cast<uint32_t>(real_type));
 1036|      0|   }
 1037|       |
 1038|  2.19k|   asn1_decode_binary_string(buffer, get_next_object(), real_type, type_tag, class_tag, m_limits);
 1039|  2.19k|   return (*this);
 1040|  2.19k|}
_ZN5Botan11BER_Decoder16decode_bitstringERNS_14ASN1_BitStringENS_9ASN1_TypeENS_10ASN1_ClassE:
 1042|    779|BER_Decoder& BER_Decoder::decode_bitstring(ASN1_BitString& out, ASN1_Type type_tag, ASN1_Class class_tag) {
 1043|    779|   const BER_Object obj = get_next_object();
 1044|       |
 1045|    779|   std::vector<uint8_t> bits;
 1046|    779|   uint8_t unused_bits = 0;
 1047|       |
 1048|    779|   if(is_constructed(obj.class_tag())) {
  ------------------
  |  Branch (1048:7): [True: 1, False: 778]
  ------------------
 1049|      1|      obj.assert_is_a(type_tag, class_tag | ASN1_Class::Constructed);
 1050|      1|      if(m_limits.require_der_encoding()) {
  ------------------
  |  Branch (1050:10): [True: 1, False: 0]
  ------------------
 1051|      1|         throw BER_Decoding_Error("Detected constructed string encoding in DER structure");
 1052|      1|      }
 1053|      0|      bits.reserve(obj.length());  // upper possible bound on the output size
 1054|      0|      unused_bits = asn1_concat_constructed_bit_string(bits, obj, m_limits, 0);
 1055|    778|   } else {
 1056|    778|      unused_bits = asn1_bitstring_unused_bits(obj, type_tag, class_tag, m_limits.require_der_encoding());
 1057|    778|      bits.assign(obj.bits() + 1, obj.bits() + obj.length());
 1058|    778|   }
 1059|       |
 1060|    778|   if(unused_bits > 0 && !bits.empty()) {
  ------------------
  |  Branch (1060:7): [True: 3, False: 775]
  |  Branch (1060:26): [True: 3, False: 0]
  ------------------
 1061|      3|      bits.back() &= static_cast<uint8_t>(0xFF << unused_bits);
 1062|      3|   }
 1063|       |
 1064|    778|   out = ASN1_BitString(std::move(bits), unused_bits);
 1065|    778|   return (*this);
 1066|    779|}
_ZN5Botan4ASN120is_single_der_objectENSt3__14spanIKhLm18446744073709551615EEENS_9ASN1_TypeENS_10ASN1_ClassE:
 1100|  6.48k|bool is_single_der_object(std::span<const uint8_t> bytes, ASN1_Type expected_type, ASN1_Class expected_class) {
 1101|  6.48k|   if(bytes.empty()) {
  ------------------
  |  Branch (1101:7): [True: 0, False: 6.48k]
  ------------------
 1102|      0|      return false;
 1103|      0|   }
 1104|       |
 1105|  6.48k|   try {
 1106|  6.48k|      DataSource_Span src(bytes);
 1107|       |
 1108|  6.48k|      ASN1_Type type_tag = ASN1_Type::NoObject;
 1109|  6.48k|      ASN1_Class class_tag = ASN1_Class::NoObject;
 1110|  6.48k|      const size_t tag_bytes = decode_tag(&src, type_tag, class_tag);
 1111|       |
 1112|  6.48k|      if(type_tag != expected_type || class_tag != expected_class) {
  ------------------
  |  Branch (1112:10): [True: 2.68k, False: 3.79k]
  |  Branch (1112:39): [True: 6, False: 3.78k]
  ------------------
 1113|  2.66k|         return false;
 1114|  2.66k|      }
 1115|       |
 1116|  3.81k|      const auto dl = decode_length(&src, /*allow_indef=*/0, /*der_mode=*/true, is_constructed(expected_class));
 1117|       |
 1118|  3.81k|      const size_t header_bytes = tag_bytes + dl.field_length();
 1119|  3.81k|      if(header_bytes > bytes.size()) {
  ------------------
  |  Branch (1119:10): [True: 0, False: 3.81k]
  ------------------
 1120|      0|         return false;
 1121|      0|      }
 1122|  3.81k|      return dl.content_length() == bytes.size() - header_bytes;
 1123|  3.81k|   } catch(Decoding_Error&) {
 1124|     36|      return false;
 1125|     36|   }
 1126|  6.48k|}
_ZN5Botan4ASN122is_der_sequence_headerENSt3__14spanIKhLm18446744073709551615EEE:
 1128|  3.88k|bool is_der_sequence_header(std::span<const uint8_t> bytes) {
 1129|  3.88k|   return is_single_der_object(bytes, ASN1_Type::Sequence, ASN1_Class::Universal | ASN1_Class::Constructed);
 1130|  3.88k|}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_110decode_tagEPNS_10DataSourceERNS_9ASN1_TypeERNS_10ASN1_ClassE:
   29|  71.5k|size_t decode_tag(DataSource* ber, ASN1_Type& type_tag, ASN1_Class& class_tag) {
   30|  71.5k|   auto b = ber->read_byte();
   31|       |
   32|  71.5k|   if(!b) {
  ------------------
  |  Branch (32:7): [True: 5.09k, False: 66.4k]
  ------------------
   33|  5.09k|      type_tag = ASN1_Type::NoObject;
   34|  5.09k|      class_tag = ASN1_Class::NoObject;
   35|  5.09k|      return 0;
   36|  5.09k|   }
   37|       |
   38|  66.4k|   if((*b & 0x1F) != 0x1F) {
  ------------------
  |  Branch (38:7): [True: 65.9k, False: 456]
  ------------------
   39|  65.9k|      type_tag = ASN1_Type(*b & 0x1F);
   40|  65.9k|      class_tag = ASN1_Class(*b & 0xE0);
   41|       |      // The EOC marker is primitive; a constructed universal tag 0 has no
   42|       |      // valid meaning and would otherwise bypass the EOC handling, which
   43|       |      // matches on (Eoc, Universal) exactly
   44|  65.9k|      if(type_tag == ASN1_Type::Eoc && class_tag == ASN1_Class::Constructed) {
  ------------------
  |  Branch (44:10): [True: 125, False: 65.8k]
  |  Branch (44:40): [True: 5, False: 120]
  ------------------
   45|      5|         throw BER_Decoding_Error("EOC tag with constructed encoding");
   46|      5|      }
   47|  65.9k|      return 1;
   48|  65.9k|   }
   49|       |
   50|    456|   size_t tag_bytes = 1;
   51|    456|   class_tag = ASN1_Class(*b & 0xE0);
   52|       |
   53|    456|   uint32_t tag_buf = 0;
   54|  1.66k|   while(true) {
  ------------------
  |  Branch (54:10): [True: 1.66k, Folded]
  ------------------
   55|  1.66k|      b = ber->read_byte();
   56|  1.66k|      if(!b) {
  ------------------
  |  Branch (56:10): [True: 19, False: 1.65k]
  ------------------
   57|     19|         throw BER_Decoding_Error("Long-form tag truncated");
   58|     19|      }
   59|       |      // Reject if shifting in another 7 bits would overflow the uint32_t tag
   60|  1.65k|      if((tag_buf >> 25) != 0) {
  ------------------
  |  Branch (60:10): [True: 32, False: 1.61k]
  ------------------
   61|     32|         throw BER_Decoding_Error("Long-form tag overflowed 32 bits");
   62|     32|      }
   63|       |      // This is required even by BER (see X.690 section 8.1.2.4.2 sentence c).
   64|       |      // Bits 7-1 of the first subsequent octet must not be all zero; this rules
   65|       |      // out both 0x80 (continuation with no data) and 0x00 (a long-form encoding
   66|       |      // of tag value 0, which collides with the EOC marker).
   67|  1.61k|      if(tag_bytes == 1 && (*b & 0x7F) == 0) {
  ------------------
  |  Branch (67:10): [True: 454, False: 1.16k]
  |  Branch (67:28): [True: 4, False: 450]
  ------------------
   68|      4|         throw BER_Decoding_Error("Long form tag with leading zero");
   69|      4|      }
   70|  1.61k|      ++tag_bytes;
   71|  1.61k|      tag_buf = (tag_buf << 7) | (*b & 0x7F);
   72|  1.61k|      if((*b & 0x80) == 0) {
  ------------------
  |  Branch (72:10): [True: 401, False: 1.21k]
  ------------------
   73|    401|         break;
   74|    401|      }
   75|  1.61k|   }
   76|       |   // Per X.690 8.1.2.2, tag values 0-30 shall be encoded in the short form.
   77|       |   // Long-form encoding is reserved for tag values >= 31 (X.690 8.1.2.3).
   78|       |   // This is unconditional and applies to BER as well as DER.
   79|    401|   if(tag_buf <= 30) {
  ------------------
  |  Branch (79:7): [True: 8, False: 393]
  ------------------
   80|      8|      throw BER_Decoding_Error("Long-form tag encoding used for small tag value");
   81|      8|   }
   82|       |
   83|    393|   if(tag_buf == static_cast<uint32_t>(ASN1_Type::NoObject)) {
  ------------------
  |  Branch (83:7): [True: 4, False: 389]
  ------------------
   84|      4|      throw BER_Decoding_Error("Tag value collides with internal sentinel");
   85|      4|   }
   86|       |
   87|       |   // NOLINTNEXTLINE(clang-analyzer-optin.core.EnumCastOutOfRange)
   88|    389|   type_tag = ASN1_Type(tag_buf);
   89|    389|   return tag_bytes;
   90|    393|}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_113decode_lengthEPNS_10DataSourceEmbb:
  135|  63.7k|BerDecodedLength decode_length(DataSource* ber, size_t allow_indef, bool der_mode, bool constructed) {
  136|  63.7k|   uint8_t b = 0;
  137|  63.7k|   if(ber->read_byte(b) == 0) {
  ------------------
  |  Branch (137:7): [True: 92, False: 63.6k]
  ------------------
  138|     92|      throw BER_Decoding_Error("Length field not found");
  139|     92|   }
  140|  63.6k|   if((b & 0x80) == 0) {
  ------------------
  |  Branch (140:7): [True: 56.0k, False: 7.57k]
  ------------------
  141|  56.0k|      return BerDecodedLength(b, 1);
  142|  56.0k|   }
  143|       |
  144|  7.57k|   const size_t num_length_bytes = (b & 0x7F);
  145|  7.57k|   if(num_length_bytes > 4) {
  ------------------
  |  Branch (145:7): [True: 42, False: 7.53k]
  ------------------
  146|     42|      throw BER_Decoding_Error("Length field is too large");
  147|     42|   }
  148|       |
  149|  7.53k|   const size_t field_size = 1 + num_length_bytes;
  150|       |
  151|  7.53k|   if(num_length_bytes == 0) {
  ------------------
  |  Branch (151:7): [True: 7, False: 7.52k]
  ------------------
  152|      7|      if(der_mode) {
  ------------------
  |  Branch (152:10): [True: 7, False: 0]
  ------------------
  153|      7|         throw BER_Decoding_Error("Detected indefinite-length encoding in DER structure");
  154|      7|      } else if(!constructed) {
  ------------------
  |  Branch (154:17): [True: 0, False: 0]
  ------------------
  155|       |         // Indefinite length is only valid for constructed types (X.690 8.1.3.2)
  156|      0|         throw BER_Decoding_Error("Indefinite-length encoding used with non-constructed type");
  157|      0|      } else if(allow_indef == 0) {
  ------------------
  |  Branch (157:17): [True: 0, False: 0]
  ------------------
  158|      0|         throw BER_Decoding_Error("Nested EOC markers too deep, rejecting to avoid stack exhaustion");
  159|      0|      } else {
  160|       |         // find_eoc returns bytes up to and including the EOC marker.
  161|       |         // Return the content length; the caller consumes the EOC separately.
  162|      0|         const size_t eoc_len = find_eoc(ber, /*base_offset=*/0, allow_indef - 1);
  163|      0|         if(eoc_len < 2) {
  ------------------
  |  Branch (163:13): [True: 0, False: 0]
  ------------------
  164|      0|            throw BER_Decoding_Error("Invalid EOC encoding");
  165|      0|         }
  166|      0|         return BerDecodedLength::indefinite(eoc_len - 2, field_size);
  167|      0|      }
  168|      7|   }
  169|       |
  170|  7.52k|   size_t length = 0;
  171|       |
  172|  19.0k|   for(size_t i = 0; i != num_length_bytes; ++i) {
  ------------------
  |  Branch (172:22): [True: 11.4k, False: 7.51k]
  ------------------
  173|  11.4k|      if(ber->read_byte(b) == 0) {
  ------------------
  |  Branch (173:10): [True: 8, False: 11.4k]
  ------------------
  174|      8|         throw BER_Decoding_Error("Corrupted length field");
  175|      8|      }
  176|       |      // Can't overflow since we already checked that num_length_bytes <= 4
  177|  11.4k|      length = (length << 8) | b;
  178|  11.4k|   }
  179|       |
  180|       |   // DER requires shortest possible length encoding
  181|  7.51k|   if(der_mode) {
  ------------------
  |  Branch (181:7): [True: 7.51k, False: 0]
  ------------------
  182|  7.51k|      if(length < 128) {
  ------------------
  |  Branch (182:10): [True: 11, False: 7.50k]
  ------------------
  183|     11|         throw BER_Decoding_Error("Detected non-canonical length encoding in DER structure");
  184|     11|      }
  185|  7.50k|      if(num_length_bytes > 1 && length < (size_t(1) << ((num_length_bytes - 1) * 8))) {
  ------------------
  |  Branch (185:10): [True: 3.73k, False: 3.77k]
  |  Branch (185:34): [True: 1, False: 3.73k]
  ------------------
  186|      1|         throw BER_Decoding_Error("Detected non-canonical length encoding in DER structure");
  187|      1|      }
  188|  7.50k|   }
  189|       |
  190|  7.50k|   return BerDecodedLength(length, field_size);
  191|  7.51k|}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_116BerDecodedLengthC2Emm:
  108|  63.5k|            BerDecodedLength(content_length, field_length, false) {}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_116BerDecodedLengthC2Emmb:
  125|  63.5k|            m_content_length(content_length), m_field_length(field_length), m_indefinite(indefinite) {}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_114is_constructedENS_10ASN1_ClassE:
   22|  78.8k|bool is_constructed(ASN1_Class class_tag) {
   23|  78.8k|   return (static_cast<uint32_t>(class_tag) & static_cast<uint32_t>(ASN1_Class::Constructed)) != 0;
   24|  78.8k|}
ber_dec.cpp:_ZNK5Botan12_GLOBAL__N_116BerDecodedLength14content_lengthEv:
  114|   242k|      size_t content_length() const { return m_content_length; }
ber_dec.cpp:_ZNK5Botan12_GLOBAL__N_116BerDecodedLength17indefinite_lengthEv:
  121|  59.5k|      bool indefinite_length() const { return m_indefinite; }
ber_dec.cpp:_ZNK5Botan12_GLOBAL__N_116BerDecodedLength12total_lengthEv:
  117|  59.6k|      size_t total_length() const { return m_indefinite ? m_content_length + 2 : m_content_length; }
  ------------------
  |  Branch (117:44): [True: 0, False: 59.6k]
  ------------------
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_126asn1_bitstring_unused_bitsERKNS_10BER_ObjectENS_9ASN1_TypeENS_10ASN1_ClassEb:
  985|    778|uint8_t asn1_bitstring_unused_bits(const BER_Object& obj, ASN1_Type type_tag, ASN1_Class class_tag, bool require_der) {
  986|    778|   obj.assert_is_a(type_tag, class_tag);
  987|    778|   BOTAN_ASSERT_NOMSG(!is_constructed(obj));
  ------------------
  |  |   77|    778|   do {                                                                     \
  |  |   78|    778|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|    778|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 778]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|    778|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 778]
  |  |  ------------------
  ------------------
  988|       |
  989|    778|   if(obj.length() == 0) {
  ------------------
  |  Branch (989:7): [True: 1, False: 777]
  ------------------
  990|      1|      throw BER_Decoding_Error("Invalid BIT STRING");
  991|      1|   }
  992|       |
  993|    777|   const uint8_t unused_bits = obj.bits()[0];
  994|       |
  995|    777|   if(unused_bits >= 8) {
  ------------------
  |  Branch (995:7): [True: 2, False: 775]
  ------------------
  996|      2|      throw BER_Decoding_Error("Invalid number of unused bits in BIT STRING");
  997|      2|   }
  998|       |
  999|    775|   if(obj.length() == 1 && unused_bits != 0) {
  ------------------
  |  Branch (999:7): [True: 2, False: 773]
  |  Branch (999:28): [True: 1, False: 1]
  ------------------
 1000|      1|      throw BER_Decoding_Error("Invalid BIT STRING");
 1001|      1|   }
 1002|       |
 1003|    774|   if(require_der && unused_bits > 0) {
  ------------------
  |  Branch (1003:7): [True: 773, False: 1]
  |  Branch (1003:22): [True: 7, False: 766]
  ------------------
 1004|      7|      const uint8_t last_byte = obj.bits()[obj.length() - 1];
 1005|      7|      if((last_byte & ((1 << unused_bits) - 1)) != 0) {
  ------------------
  |  Branch (1005:10): [True: 4, False: 3]
  ------------------
 1006|      4|         throw BER_Decoding_Error("Detected non-zero padding bits in BIT STRING in DER structure");
 1007|      4|      }
 1008|      7|   }
 1009|       |
 1010|    770|   return unused_bits;
 1011|    774|}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_114is_constructedERKNS_10BER_ObjectE:
  833|  14.3k|bool is_constructed(const BER_Object& obj) {
  834|  14.3k|   return is_constructed(obj.class_tag());
  835|  14.3k|}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_115DataSource_SpanC2ENSt3__14spanIKhLm18446744073709551615EEE:
  414|  6.48k|      explicit DataSource_Span(std::span<const uint8_t> buf) : m_buf(buf) {}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_115DataSource_Span4readEPhm:
  392|  12.5k|      size_t read(uint8_t out[], size_t length) override {
  393|  12.5k|         const size_t got = std::min(m_buf.size() - m_offset, length);
  394|  12.5k|         copy_mem(out, m_buf.data() + m_offset, got);
  395|  12.5k|         m_offset += got;
  396|  12.5k|         return got;
  397|  12.5k|      }
ber_dec.cpp:_ZNK5Botan12_GLOBAL__N_116BerDecodedLength12field_lengthEv:
  119|  3.78k|      size_t field_length() const { return m_field_length; }
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_120DataSource_BERObjectC2EONS_10BER_ObjectE:
  379|  19.6k|      explicit DataSource_BERObject(BER_Object&& obj) : m_obj(std::move(obj)) {}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_120DataSource_BERObject4readEPhm:
  349|   675k|      size_t read(uint8_t out[], size_t length) override {
  350|   675k|         BOTAN_ASSERT_NOMSG(m_offset <= m_obj.length());
  ------------------
  |  |   77|   675k|   do {                                                                     \
  |  |   78|   675k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|   675k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 675k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|   675k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 675k]
  |  |  ------------------
  ------------------
  351|   675k|         const size_t got = std::min<size_t>(m_obj.length() - m_offset, length);
  352|   675k|         copy_mem(out, m_obj.bits() + m_offset, got);
  353|   675k|         m_offset += got;
  354|   675k|         return got;
  355|   675k|      }
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_120DataSource_BERObject15check_availableEm:
  370|  45.1k|      bool check_available(size_t n) override {
  371|  45.1k|         BOTAN_ASSERT_NOMSG(m_offset <= m_obj.length());
  ------------------
  |  |   77|  45.1k|   do {                                                                     \
  |  |   78|  45.1k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  45.1k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 45.1k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  45.1k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 45.1k]
  |  |  ------------------
  ------------------
  372|  45.1k|         return (n <= (m_obj.length() - m_offset));
  373|  45.1k|      }
ber_dec.cpp:_ZNK5Botan12_GLOBAL__N_120DataSource_BERObject11end_of_dataEv:
  375|  18.3k|      bool end_of_data() const override { return get_bytes_read() == m_obj.length(); }
ber_dec.cpp:_ZNK5Botan12_GLOBAL__N_120DataSource_BERObject14get_bytes_readEv:
  377|  18.3k|      size_t get_bytes_read() const override { return m_offset; }
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_125asn1_decode_binary_stringINS_16secure_allocatorIhEEEEvRNSt3__16vectorIhT_EERKNS_10BER_ObjectENS_9ASN1_TypeESC_NS_10ASN1_ClassERKNS_11BER_Decoder6LimitsE:
  927|  11.3k|                               const BER_Decoder::Limits& limits) {
  928|       |   // DER requires BIT STRING and OCTET STRING to use primitive encoding;
  929|       |   // in BER the constructed (fragmented) form is decoded by concatenation
  930|  11.3k|   if(is_constructed(obj)) {
  ------------------
  |  Branch (930:7): [True: 4, False: 11.3k]
  ------------------
  931|      4|      obj.assert_is_a(type_tag, class_tag | ASN1_Class::Constructed);
  932|       |
  933|      4|      if(limits.require_der_encoding()) {
  ------------------
  |  Branch (933:10): [True: 1, False: 3]
  ------------------
  934|      1|         throw BER_Decoding_Error("Detected constructed string encoding in DER structure");
  935|      1|      }
  936|       |
  937|       |      // Concatenate into a temporary so a failed decode leaves buffer unmodified
  938|      3|      std::vector<uint8_t, Alloc> concat;
  939|      3|      concat.reserve(obj.length());  // upper possible bound on the output size
  940|      3|      if(real_type == ASN1_Type::OctetString) {
  ------------------
  |  Branch (940:10): [True: 0, False: 3]
  ------------------
  941|      0|         asn1_concat_constructed_octet_string(concat, obj, limits, 0);
  942|      3|      } else {
  943|      3|         asn1_concat_constructed_bit_string(concat, obj, limits, 0);
  944|      3|      }
  945|      3|      buffer = std::move(concat);
  946|      3|      return;
  947|      4|   }
  948|       |
  949|  11.3k|   obj.assert_is_a(type_tag, class_tag);
  950|       |
  951|  11.3k|   if(real_type == ASN1_Type::OctetString) {
  ------------------
  |  Branch (951:7): [True: 11.3k, False: 22]
  ------------------
  952|  11.3k|      buffer.assign(obj.bits(), obj.bits() + obj.length());
  953|  11.3k|   } else {
  954|     22|      if(obj.length() == 0) {
  ------------------
  |  Branch (954:10): [True: 0, False: 22]
  ------------------
  955|      0|         throw BER_Decoding_Error("Invalid BIT STRING");
  956|      0|      }
  957|       |
  958|     22|      const uint8_t unused_bits = obj.bits()[0];
  959|       |
  960|     22|      if(unused_bits >= 8) {
  ------------------
  |  Branch (960:10): [True: 0, False: 22]
  ------------------
  961|      0|         throw BER_Decoding_Error("Bad number of unused bits in BIT STRING");
  962|      0|      }
  963|       |
  964|       |      // Empty BIT STRING with unused bits > 0 ...
  965|     22|      if(unused_bits > 0 && obj.length() < 2) {
  ------------------
  |  Branch (965:10): [True: 0, False: 22]
  |  Branch (965:29): [True: 0, False: 0]
  ------------------
  966|      0|         throw BER_Decoding_Error("Invalid BIT STRING");
  967|      0|      }
  968|       |
  969|       |      // DER requires unused bits in BIT STRING to be zero (X.690 section 11.2.2)
  970|     22|      if(limits.require_der_encoding() && unused_bits > 0) {
  ------------------
  |  Branch (970:10): [True: 0, False: 22]
  |  Branch (970:43): [True: 0, False: 0]
  ------------------
  971|      0|         const uint8_t last_byte = obj.bits()[obj.length() - 1];
  972|      0|         if((last_byte & ((1 << unused_bits) - 1)) != 0) {
  ------------------
  |  Branch (972:13): [True: 0, False: 0]
  ------------------
  973|      0|            throw BER_Decoding_Error("Detected non-zero padding bits in BIT STRING in DER structure");
  974|      0|         }
  975|      0|      }
  976|       |
  977|     22|      buffer.resize(obj.length() - 1);
  978|       |
  979|     22|      if(obj.length() > 1) {
  ------------------
  |  Branch (979:10): [True: 0, False: 22]
  ------------------
  980|      0|         copy_mem(buffer.data(), obj.bits() + 1, obj.length() - 1);
  981|      0|      }
  982|     22|   }
  983|  11.3k|}
ber_dec.cpp:_ZN5Botan12_GLOBAL__N_125asn1_decode_binary_stringINSt3__19allocatorIhEEEEvRNS2_6vectorIhT_EERKNS_10BER_ObjectENS_9ASN1_TypeESC_NS_10ASN1_ClassERKNS_11BER_Decoder6LimitsE:
  927|  2.19k|                               const BER_Decoder::Limits& limits) {
  928|       |   // DER requires BIT STRING and OCTET STRING to use primitive encoding;
  929|       |   // in BER the constructed (fragmented) form is decoded by concatenation
  930|  2.19k|   if(is_constructed(obj)) {
  ------------------
  |  Branch (930:7): [True: 2, False: 2.19k]
  ------------------
  931|      2|      obj.assert_is_a(type_tag, class_tag | ASN1_Class::Constructed);
  932|       |
  933|      2|      if(limits.require_der_encoding()) {
  ------------------
  |  Branch (933:10): [True: 1, False: 1]
  ------------------
  934|      1|         throw BER_Decoding_Error("Detected constructed string encoding in DER structure");
  935|      1|      }
  936|       |
  937|       |      // Concatenate into a temporary so a failed decode leaves buffer unmodified
  938|      1|      std::vector<uint8_t, Alloc> concat;
  939|      1|      concat.reserve(obj.length());  // upper possible bound on the output size
  940|      1|      if(real_type == ASN1_Type::OctetString) {
  ------------------
  |  Branch (940:10): [True: 0, False: 1]
  ------------------
  941|      0|         asn1_concat_constructed_octet_string(concat, obj, limits, 0);
  942|      1|      } else {
  943|      1|         asn1_concat_constructed_bit_string(concat, obj, limits, 0);
  944|      1|      }
  945|      1|      buffer = std::move(concat);
  946|      1|      return;
  947|      2|   }
  948|       |
  949|  2.19k|   obj.assert_is_a(type_tag, class_tag);
  950|       |
  951|  2.19k|   if(real_type == ASN1_Type::OctetString) {
  ------------------
  |  Branch (951:7): [True: 1.13k, False: 1.06k]
  ------------------
  952|  1.13k|      buffer.assign(obj.bits(), obj.bits() + obj.length());
  953|  1.13k|   } else {
  954|  1.06k|      if(obj.length() == 0) {
  ------------------
  |  Branch (954:10): [True: 1, False: 1.05k]
  ------------------
  955|      1|         throw BER_Decoding_Error("Invalid BIT STRING");
  956|      1|      }
  957|       |
  958|  1.05k|      const uint8_t unused_bits = obj.bits()[0];
  959|       |
  960|  1.05k|      if(unused_bits >= 8) {
  ------------------
  |  Branch (960:10): [True: 1, False: 1.05k]
  ------------------
  961|      1|         throw BER_Decoding_Error("Bad number of unused bits in BIT STRING");
  962|      1|      }
  963|       |
  964|       |      // Empty BIT STRING with unused bits > 0 ...
  965|  1.05k|      if(unused_bits > 0 && obj.length() < 2) {
  ------------------
  |  Branch (965:10): [True: 8, False: 1.05k]
  |  Branch (965:29): [True: 1, False: 7]
  ------------------
  966|      1|         throw BER_Decoding_Error("Invalid BIT STRING");
  967|      1|      }
  968|       |
  969|       |      // DER requires unused bits in BIT STRING to be zero (X.690 section 11.2.2)
  970|  1.05k|      if(limits.require_der_encoding() && unused_bits > 0) {
  ------------------
  |  Branch (970:10): [True: 1.05k, False: 0]
  |  Branch (970:43): [True: 7, False: 1.05k]
  ------------------
  971|      7|         const uint8_t last_byte = obj.bits()[obj.length() - 1];
  972|      7|         if((last_byte & ((1 << unused_bits) - 1)) != 0) {
  ------------------
  |  Branch (972:13): [True: 3, False: 4]
  ------------------
  973|      3|            throw BER_Decoding_Error("Detected non-zero padding bits in BIT STRING in DER structure");
  974|      3|         }
  975|      7|      }
  976|       |
  977|  1.05k|      buffer.resize(obj.length() - 1);
  978|       |
  979|  1.05k|      if(obj.length() > 1) {
  ------------------
  |  Branch (979:10): [True: 1.05k, False: 1]
  ------------------
  980|  1.05k|         copy_mem(buffer.data(), obj.bits() + 1, obj.length() - 1);
  981|  1.05k|      }
  982|  1.05k|   }
  983|  2.19k|}

_ZN5Botan11DER_EncoderC2ERNSt3__16vectorIhNS1_9allocatorIhEEEE:
   89|  2.23k|DER_Encoder::DER_Encoder(std::vector<uint8_t>& vec) {
   90|  2.23k|   m_append_output = [&vec](const uint8_t b[], size_t l) {
   91|  2.23k|      if(l > 0) {
   92|  2.23k|         vec.insert(vec.end(), b, b + l);
   93|  2.23k|      }
   94|  2.23k|   };
   95|  2.23k|}
_ZN5Botan11DER_Encoder10add_objectENS_9ASN1_TypeENS_10ASN1_ClassEPKhm:
  285|  2.23k|DER_Encoder& DER_Encoder::add_object(ASN1_Type type_tag, ASN1_Class class_tag, const uint8_t rep[], size_t length) {
  286|  2.23k|   std::vector<uint8_t> hdr;
  287|  2.23k|   encode_tag(hdr, type_tag, class_tag);
  288|  2.23k|   encode_length(hdr, length);
  289|       |
  290|  2.23k|   if(!m_subsequences.empty()) {
  ------------------
  |  Branch (290:7): [True: 0, False: 2.23k]
  ------------------
  291|      0|      m_subsequences[m_subsequences.size() - 1].add_bytes(hdr.data(), hdr.size(), rep, length);
  292|  2.23k|   } else if(m_append_output) {
  ------------------
  |  Branch (292:14): [True: 2.23k, False: 0]
  ------------------
  293|  2.23k|      m_append_output(hdr.data(), hdr.size());
  294|  2.23k|      m_append_output(rep, length);
  295|  2.23k|   } else {
  296|      0|      m_default_outbuf += hdr;
  297|      0|      m_default_outbuf += std::make_pair(rep, length);
  298|      0|   }
  299|       |
  300|  2.23k|   return (*this);
  301|  2.23k|}
_ZN5Botan11DER_Encoder6encodeERKNS_11ASN1_ObjectE:
  467|  2.23k|DER_Encoder& DER_Encoder::encode(const ASN1_Object& obj) {
  468|  2.23k|   obj.encode_into(*this);
  469|  2.23k|   return (*this);
  470|  2.23k|}
der_enc.cpp:_ZN5Botan12_GLOBAL__N_110encode_tagERNSt3__16vectorIhNS1_9allocatorIhEEEENS_9ASN1_TypeENS_10ASN1_ClassE:
   26|  2.23k|void encode_tag(std::vector<uint8_t>& encoded_tag, ASN1_Type type_tag_e, ASN1_Class class_tag_e) {
   27|  2.23k|   const uint32_t type_tag = static_cast<uint32_t>(type_tag_e);
   28|  2.23k|   const uint32_t class_tag = static_cast<uint32_t>(class_tag_e);
   29|       |
   30|  2.23k|   if((class_tag | 0xE0) != 0xE0) {
  ------------------
  |  Branch (30:7): [True: 0, False: 2.23k]
  ------------------
   31|      0|      throw Encoding_Error(fmt("DER_Encoder: Invalid class tag {}", std::to_string(class_tag)));
   32|      0|   }
   33|       |
   34|  2.23k|   if(type_tag <= 30) {
  ------------------
  |  Branch (34:7): [True: 2.23k, False: 0]
  ------------------
   35|  2.23k|      encoded_tag.push_back(static_cast<uint8_t>(type_tag | class_tag));
   36|  2.23k|   } else {
   37|      0|      size_t blocks = high_bit(static_cast<uint32_t>(type_tag)) + 6;
   38|      0|      blocks = (blocks - (blocks % 7)) / 7;
   39|       |
   40|      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]
  |  |  ------------------
  ------------------
   41|       |
   42|      0|      encoded_tag.push_back(static_cast<uint8_t>(class_tag | 0x1F));
   43|      0|      for(size_t i = 0; i != blocks - 1; ++i) {
  ------------------
  |  Branch (43:25): [True: 0, False: 0]
  ------------------
   44|      0|         encoded_tag.push_back(0x80 | ((type_tag >> 7 * (blocks - i - 1)) & 0x7F));
   45|      0|      }
   46|      0|      encoded_tag.push_back(type_tag & 0x7F);
   47|      0|   }
   48|  2.23k|}
der_enc.cpp:_ZN5Botan12_GLOBAL__N_113encode_lengthERNSt3__16vectorIhNS1_9allocatorIhEEEEm:
   53|  2.23k|void encode_length(std::vector<uint8_t>& encoded_length, size_t length) {
   54|  2.23k|   if(length <= 127) {
  ------------------
  |  Branch (54:7): [True: 2.23k, False: 0]
  ------------------
   55|  2.23k|      encoded_length.push_back(static_cast<uint8_t>(length));
   56|  2.23k|   } else {
   57|      0|      const size_t bytes_needed = significant_bytes(length);
   58|       |
   59|      0|      encoded_length.push_back(static_cast<uint8_t>(0x80 | bytes_needed));
   60|       |
   61|      0|      for(size_t i = sizeof(length) - bytes_needed; i < sizeof(length); ++i) {
  ------------------
  |  Branch (61:53): [True: 0, False: 0]
  ------------------
   62|      0|         encoded_length.push_back(get_byte_var(i, length));
   63|      0|      }
   64|      0|   }
   65|  2.23k|}
der_enc.cpp:_ZZN5Botan11DER_EncoderC1ERNSt3__16vectorIhNS1_9allocatorIhEEEEENK3$_0clEPKhm:
   90|  4.47k|   m_append_output = [&vec](const uint8_t b[], size_t l) {
   91|  4.47k|      if(l > 0) {
  ------------------
  |  Branch (91:10): [True: 4.47k, False: 0]
  ------------------
   92|  4.47k|         vec.insert(vec.end(), b, b + l);
   93|  4.47k|      }
   94|  4.47k|   };

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

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

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

_ZN5Botan10hex_decodeEPhPKcmRmb:
   75|  15.5k|size_t hex_decode(uint8_t output[], const char input[], size_t input_length, size_t& input_consumed, bool ignore_ws) {
   76|  15.5k|   uint8_t* out_ptr = output;
   77|  15.5k|   bool top_nibble = true;
   78|  15.5k|   uint8_t next = 0;
   79|       |
   80|  15.5k|   input_consumed = 0;
   81|       |
   82|  15.5k|   clear_mem(output, input_length / 2);
   83|       |
   84|  1.08M|   for(size_t i = 0; i != input_length; ++i) {
  ------------------
  |  Branch (84:22): [True: 1.07M, False: 15.5k]
  ------------------
   85|  1.07M|      const uint8_t bin = hex_char_to_bin(input[i]);
   86|       |
   87|  1.07M|      if(bin >= 0x10) {
  ------------------
  |  Branch (87:10): [True: 0, False: 1.07M]
  ------------------
   88|      0|         if(bin == 0x80 && ignore_ws) {
  ------------------
  |  Branch (88:13): [True: 0, False: 0]
  |  Branch (88:28): [True: 0, False: 0]
  ------------------
   89|      0|            continue;
   90|      0|         }
   91|       |
   92|      0|         throw Invalid_Argument(fmt("hex_decode: invalid character '{}'", format_char_for_display(input[i])));
   93|      0|      }
   94|       |
   95|  1.07M|      if(top_nibble) {
  ------------------
  |  Branch (95:10): [True: 536k, False: 536k]
  ------------------
   96|   536k|         next = bin << 4;
   97|   536k|      } else {
   98|   536k|         next |= bin;
   99|   536k|         *out_ptr = next;
  100|   536k|      }
  101|       |
  102|  1.07M|      top_nibble = !top_nibble;
  103|  1.07M|      if(top_nibble) {
  ------------------
  |  Branch (103:10): [True: 536k, False: 536k]
  ------------------
  104|   536k|         ++out_ptr;
  105|   536k|         input_consumed = i + 1;
  106|   536k|      }
  107|  1.07M|   }
  108|       |
  109|       |   /*
  110|       |   * Consume trailing whitespace following the last full byte; a leftover
  111|       |   * unpaired nibble (if any) stops the scan and is left unconsumed.
  112|       |   */
  113|  15.5k|   while(input_consumed < input_length && hex_char_to_bin(input[input_consumed]) == 0x80) {
  ------------------
  |  Branch (113:10): [True: 0, False: 15.5k]
  |  Branch (113:43): [True: 0, False: 0]
  ------------------
  114|      0|      ++input_consumed;
  115|      0|   }
  116|       |
  117|  15.5k|   return (out_ptr - output);
  118|  15.5k|}
_ZN5Botan10hex_decodeEPhPKcmb:
  120|  15.5k|size_t hex_decode(uint8_t output[], const char input[], size_t input_length, bool ignore_ws) {
  121|  15.5k|   size_t consumed = 0;
  122|  15.5k|   const size_t written = hex_decode(output, input, input_length, consumed, ignore_ws);
  123|       |
  124|  15.5k|   if(consumed != input_length) {
  ------------------
  |  Branch (124:7): [True: 0, False: 15.5k]
  ------------------
  125|      0|      throw Invalid_Argument("hex_decode: input did not have full bytes");
  126|      0|   }
  127|       |
  128|  15.5k|   return written;
  129|  15.5k|}
_ZN5Botan17hex_decode_lockedEPKcmb:
  142|  15.5k|secure_vector<uint8_t> hex_decode_locked(const char input[], size_t input_length, bool ignore_ws) {
  143|  15.5k|   secure_vector<uint8_t> bin(1 + input_length / 2);
  144|       |
  145|  15.5k|   const size_t written = hex_decode(bin.data(), input, input_length, ignore_ws);
  146|       |
  147|  15.5k|   bin.resize(written);
  148|  15.5k|   return bin;
  149|  15.5k|}
_ZN5Botan17hex_decode_lockedENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEEb:
  151|  11.1k|secure_vector<uint8_t> hex_decode_locked(std::string_view input, bool ignore_ws) {
  152|  11.1k|   return hex_decode_locked(input.data(), input.size(), ignore_ws);
  153|  11.1k|}
hex.cpp:_ZN5Botan12_GLOBAL__N_115hex_char_to_binEc:
   55|  1.07M|uint8_t hex_char_to_bin(char input) {
   56|       |   // Starts of valid value ranges (v_lo) and their lengths (v_range)
   57|  1.07M|   constexpr uint64_t v_lo = make_uint64(0, '0', 'a', 'A', ' ', '\n', '\t', '\r');
   58|  1.07M|   constexpr uint64_t v_range = make_uint64(0, 10, 6, 6, 1, 1, 1, 1);
   59|  1.07M|   constexpr uint64_t expand8 = 0x0101010101010101;
   60|  1.07M|   constexpr uint64_t top64 = 0x8000000000000000;
   61|       |
   62|  1.07M|   const uint8_t x = static_cast<uint8_t>(input);
   63|  1.07M|   const uint64_t x8 = x * expand8;
   64|       |
   65|  1.07M|   const uint64_t v_mask = swar_in_range<uint64_t>(x8, v_lo, v_range) ^ top64;
   66|       |
   67|       |   // This is the offset added to x to get the value we need
   68|  1.07M|   const uint64_t val_v = 0xd0a9c960767773 ^ static_cast<uint64_t>(0xFF - x) << 56;
   69|       |
   70|  1.07M|   return x + static_cast<uint8_t>(val_v >> (8 * index_of_first_set_byte(v_mask)));
   71|  1.07M|}

_ZN5Botan12HashFunction6createENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEES5_:
  111|     52|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|     52|   if(provider.empty() == false && provider != "base") {
  ------------------
  |  Branch (122:7): [True: 0, False: 52]
  |  Branch (122:36): [True: 0, False: 0]
  ------------------
  123|      0|      return nullptr;  // unknown provider
  124|      0|   }
  125|       |
  126|     52|#if defined(BOTAN_HAS_SHA1)
  127|     52|   if(algo_spec == "SHA-1") {
  ------------------
  |  Branch (127:7): [True: 0, False: 52]
  ------------------
  128|      0|      return std::make_unique<SHA_1>();
  129|      0|   }
  130|     52|#endif
  131|       |
  132|     52|#if defined(BOTAN_HAS_SHA2_32)
  133|     52|   if(algo_spec == "SHA-224") {
  ------------------
  |  Branch (133:7): [True: 0, False: 52]
  ------------------
  134|      0|      return std::make_unique<SHA_224>();
  135|      0|   }
  136|       |
  137|     52|   if(algo_spec == "SHA-256") {
  ------------------
  |  Branch (137:7): [True: 0, False: 52]
  ------------------
  138|      0|      return std::make_unique<SHA_256>();
  139|      0|   }
  140|     52|#endif
  141|       |
  142|     52|#if defined(BOTAN_HAS_SHA2_64)
  143|     52|   if(algo_spec == "SHA-384") {
  ------------------
  |  Branch (143:7): [True: 0, False: 52]
  ------------------
  144|      0|      return std::make_unique<SHA_384>();
  145|      0|   }
  146|       |
  147|     52|   if(algo_spec == "SHA-512") {
  ------------------
  |  Branch (147:7): [True: 2, False: 50]
  ------------------
  148|      2|      return std::make_unique<SHA_512>();
  149|      2|   }
  150|       |
  151|     50|   if(algo_spec == "SHA-512-256") {
  ------------------
  |  Branch (151:7): [True: 0, False: 50]
  ------------------
  152|      0|      return std::make_unique<SHA_512_256>();
  153|      0|   }
  154|     50|#endif
  155|       |
  156|     50|#if defined(BOTAN_HAS_RIPEMD_160)
  157|     50|   if(algo_spec == "RIPEMD-160") {
  ------------------
  |  Branch (157:7): [True: 0, False: 50]
  ------------------
  158|      0|      return std::make_unique<RIPEMD_160>();
  159|      0|   }
  160|     50|#endif
  161|       |
  162|     50|#if defined(BOTAN_HAS_WHIRLPOOL)
  163|     50|   if(algo_spec == "Whirlpool") {
  ------------------
  |  Branch (163:7): [True: 0, False: 50]
  ------------------
  164|      0|      return std::make_unique<Whirlpool>();
  165|      0|   }
  166|     50|#endif
  167|       |
  168|     50|#if defined(BOTAN_HAS_MD5)
  169|     50|   if(algo_spec == "MD5") {
  ------------------
  |  Branch (169:7): [True: 0, False: 50]
  ------------------
  170|      0|      return std::make_unique<MD5>();
  171|      0|   }
  172|     50|#endif
  173|       |
  174|     50|#if defined(BOTAN_HAS_MD4)
  175|     50|   if(algo_spec == "MD4") {
  ------------------
  |  Branch (175:7): [True: 0, False: 50]
  ------------------
  176|      0|      return std::make_unique<MD4>();
  177|      0|   }
  178|     50|#endif
  179|       |
  180|     50|#if defined(BOTAN_HAS_GOST_34_11)
  181|     50|   if(algo_spec == "GOST-R-34.11-94" || algo_spec == "GOST-34.11") {
  ------------------
  |  Branch (181:7): [True: 0, False: 50]
  |  Branch (181:41): [True: 0, False: 50]
  ------------------
  182|      0|      return std::make_unique<GOST_34_11>();
  183|      0|   }
  184|     50|#endif
  185|       |
  186|     50|#if defined(BOTAN_HAS_ADLER32)
  187|     50|   if(algo_spec == "Adler32") {
  ------------------
  |  Branch (187:7): [True: 0, False: 50]
  ------------------
  188|      0|      return std::make_unique<Adler32>();
  189|      0|   }
  190|     50|#endif
  191|       |
  192|     50|#if defined(BOTAN_HAS_ASCON_HASH256)
  193|     50|   if(algo_spec == "Ascon-Hash256") {
  ------------------
  |  Branch (193:7): [True: 0, False: 50]
  ------------------
  194|      0|      return std::make_unique<Ascon_Hash256>();
  195|      0|   }
  196|     50|#endif
  197|       |
  198|     50|#if defined(BOTAN_HAS_CRC24)
  199|     50|   if(algo_spec == "CRC24") {
  ------------------
  |  Branch (199:7): [True: 0, False: 50]
  ------------------
  200|      0|      return std::make_unique<CRC24>();
  201|      0|   }
  202|     50|#endif
  203|       |
  204|     50|#if defined(BOTAN_HAS_CRC32)
  205|     50|   if(algo_spec == "CRC32") {
  ------------------
  |  Branch (205:7): [True: 0, False: 50]
  ------------------
  206|      0|      return std::make_unique<CRC32>();
  207|      0|   }
  208|     50|#endif
  209|       |
  210|     50|#if defined(BOTAN_HAS_STREEBOG)
  211|     50|   if(algo_spec == "Streebog-256") {
  ------------------
  |  Branch (211:7): [True: 0, False: 50]
  ------------------
  212|      0|      return std::make_unique<Streebog>(256);
  213|      0|   }
  214|     50|   if(algo_spec == "Streebog-512") {
  ------------------
  |  Branch (214:7): [True: 0, False: 50]
  ------------------
  215|      0|      return std::make_unique<Streebog>(512);
  216|      0|   }
  217|     50|#endif
  218|       |
  219|     50|#if defined(BOTAN_HAS_SM3)
  220|     50|   if(algo_spec == "SM3") {
  ------------------
  |  Branch (220:7): [True: 0, False: 50]
  ------------------
  221|      0|      return std::make_unique<SM3>();
  222|      0|   }
  223|     50|#endif
  224|       |
  225|     50|   const SCAN_Name req(algo_spec);
  226|       |
  227|     50|#if defined(BOTAN_HAS_SKEIN_512)
  228|     50|   if(req.algo_name() == "Skein-512") {
  ------------------
  |  Branch (228:7): [True: 0, False: 50]
  ------------------
  229|      0|      return std::make_unique<Skein_512>(req.arg_as_integer(0, 512), req.arg(1, ""));
  230|      0|   }
  231|     50|#endif
  232|       |
  233|     50|#if defined(BOTAN_HAS_BLAKE2B)
  234|     50|   if(req.algo_name() == "Blake2b" || req.algo_name() == "BLAKE2b") {
  ------------------
  |  Branch (234:7): [True: 0, False: 50]
  |  Branch (234:39): [True: 0, False: 50]
  ------------------
  235|      0|      return std::make_unique<BLAKE2b>(req.arg_as_integer(0, 512));
  236|      0|   }
  237|     50|#endif
  238|       |
  239|     50|#if defined(BOTAN_HAS_BLAKE2S)
  240|     50|   if(req.algo_name() == "Blake2s" || req.algo_name() == "BLAKE2s") {
  ------------------
  |  Branch (240:7): [True: 0, False: 50]
  |  Branch (240:39): [True: 0, False: 50]
  ------------------
  241|      0|      return std::make_unique<BLAKE2s>(req.arg_as_integer(0, 256));
  242|      0|   }
  243|     50|#endif
  244|       |
  245|     50|#if defined(BOTAN_HAS_KECCAK)
  246|     50|   if(req.algo_name() == "Keccak-1600") {
  ------------------
  |  Branch (246:7): [True: 0, False: 50]
  ------------------
  247|      0|      return std::make_unique<Keccak_1600>(req.arg_as_integer(0, 512));
  248|      0|   }
  249|     50|#endif
  250|       |
  251|     50|#if defined(BOTAN_HAS_SHA3)
  252|     50|   if(req.algo_name() == "SHA-3") {
  ------------------
  |  Branch (252:7): [True: 50, False: 0]
  ------------------
  253|     50|      return std::make_unique<SHA_3>(req.arg_as_integer(0, 512));
  254|     50|   }
  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|     52|std::unique_ptr<HashFunction> HashFunction::create_or_throw(std::string_view algo, std::string_view provider) {
  309|     52|   if(auto hash = HashFunction::create(algo, provider)) {
  ------------------
  |  Branch (309:12): [True: 52, False: 0]
  ------------------
  310|     52|      return hash;
  311|     52|   }
  312|      0|   throw Lookup_Error("Hash", algo, provider);
  313|     52|}

_ZN5Botan7SHA_51215compress_digestERNSt3__16vectorImNS_16secure_allocatorImEEEENS1_4spanIKhLm18446744073709551615EEEm:
   56|      2|void SHA_512::compress_digest(digest_type& digest, std::span<const uint8_t> input, size_t blocks) {
   57|      2|#if defined(BOTAN_HAS_SHA2_64_X86)
   58|      2|   if(CPUID::has(CPUID::Feature::SHA512)) {
  ------------------
  |  Branch (58:7): [True: 0, False: 2]
  ------------------
   59|      0|      return compress_digest_x86(digest, input, blocks);
   60|      0|   }
   61|      2|#endif
   62|       |
   63|       |#if defined(BOTAN_HAS_SHA2_64_ARMV8)
   64|       |   if(CPUID::has(CPUID::Feature::SHA2_512)) {
   65|       |      return compress_digest_armv8(digest, input, blocks);
   66|       |   }
   67|       |#endif
   68|       |
   69|      2|#if defined(BOTAN_HAS_SHA2_64_X86_AVX512)
   70|      2|   if(CPUID::has(CPUID::Feature::AVX512, CPUID::Feature::BMI)) {
  ------------------
  |  Branch (70:7): [True: 0, False: 2]
  ------------------
   71|      0|      return compress_digest_x86_avx512(digest, input, blocks);
   72|      0|   }
   73|      2|#endif
   74|       |
   75|      2|#if defined(BOTAN_HAS_SHA2_64_X86_AVX2)
   76|      2|   if(CPUID::has(CPUID::Feature::AVX2, CPUID::Feature::BMI)) {
  ------------------
  |  Branch (76:7): [True: 2, False: 0]
  ------------------
   77|      2|      return compress_digest_x86_avx2(digest, input, blocks);
   78|      2|   }
   79|      0|#endif
   80|       |
   81|      0|   uint64_t A = digest[0];
   82|      0|   uint64_t B = digest[1];
   83|      0|   uint64_t C = digest[2];
   84|      0|   uint64_t D = digest[3];
   85|      0|   uint64_t E = digest[4];
   86|      0|   uint64_t F = digest[5];
   87|      0|   uint64_t G = digest[6];
   88|      0|   uint64_t H = digest[7];
   89|       |
   90|      0|   std::array<uint64_t, 16> W{};
   91|       |
   92|      0|   BufferSlicer in(input);
   93|       |
   94|      0|   for(size_t i = 0; i != blocks; ++i) {
  ------------------
  |  Branch (94:22): [True: 0, False: 0]
  ------------------
   95|      0|      load_be(W, in.take<block_bytes>());
   96|       |
   97|       |      // clang-format off
   98|       |
   99|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W[ 0], W[14], W[ 9], W[ 1], 0x428A2F98D728AE22);
  100|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W[ 1], W[15], W[10], W[ 2], 0x7137449123EF65CD);
  101|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W[ 2], W[ 0], W[11], W[ 3], 0xB5C0FBCFEC4D3B2F);
  102|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W[ 3], W[ 1], W[12], W[ 4], 0xE9B5DBA58189DBBC);
  103|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W[ 4], W[ 2], W[13], W[ 5], 0x3956C25BF348B538);
  104|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W[ 5], W[ 3], W[14], W[ 6], 0x59F111F1B605D019);
  105|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W[ 6], W[ 4], W[15], W[ 7], 0x923F82A4AF194F9B);
  106|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W[ 7], W[ 5], W[ 0], W[ 8], 0xAB1C5ED5DA6D8118);
  107|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W[ 8], W[ 6], W[ 1], W[ 9], 0xD807AA98A3030242);
  108|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W[ 9], W[ 7], W[ 2], W[10], 0x12835B0145706FBE);
  109|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W[10], W[ 8], W[ 3], W[11], 0x243185BE4EE4B28C);
  110|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W[11], W[ 9], W[ 4], W[12], 0x550C7DC3D5FFB4E2);
  111|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W[12], W[10], W[ 5], W[13], 0x72BE5D74F27B896F);
  112|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W[13], W[11], W[ 6], W[14], 0x80DEB1FE3B1696B1);
  113|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W[14], W[12], W[ 7], W[15], 0x9BDC06A725C71235);
  114|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W[15], W[13], W[ 8], W[ 0], 0xC19BF174CF692694);
  115|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W[ 0], W[14], W[ 9], W[ 1], 0xE49B69C19EF14AD2);
  116|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W[ 1], W[15], W[10], W[ 2], 0xEFBE4786384F25E3);
  117|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W[ 2], W[ 0], W[11], W[ 3], 0x0FC19DC68B8CD5B5);
  118|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W[ 3], W[ 1], W[12], W[ 4], 0x240CA1CC77AC9C65);
  119|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W[ 4], W[ 2], W[13], W[ 5], 0x2DE92C6F592B0275);
  120|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W[ 5], W[ 3], W[14], W[ 6], 0x4A7484AA6EA6E483);
  121|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W[ 6], W[ 4], W[15], W[ 7], 0x5CB0A9DCBD41FBD4);
  122|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W[ 7], W[ 5], W[ 0], W[ 8], 0x76F988DA831153B5);
  123|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W[ 8], W[ 6], W[ 1], W[ 9], 0x983E5152EE66DFAB);
  124|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W[ 9], W[ 7], W[ 2], W[10], 0xA831C66D2DB43210);
  125|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W[10], W[ 8], W[ 3], W[11], 0xB00327C898FB213F);
  126|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W[11], W[ 9], W[ 4], W[12], 0xBF597FC7BEEF0EE4);
  127|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W[12], W[10], W[ 5], W[13], 0xC6E00BF33DA88FC2);
  128|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W[13], W[11], W[ 6], W[14], 0xD5A79147930AA725);
  129|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W[14], W[12], W[ 7], W[15], 0x06CA6351E003826F);
  130|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W[15], W[13], W[ 8], W[ 0], 0x142929670A0E6E70);
  131|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W[ 0], W[14], W[ 9], W[ 1], 0x27B70A8546D22FFC);
  132|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W[ 1], W[15], W[10], W[ 2], 0x2E1B21385C26C926);
  133|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W[ 2], W[ 0], W[11], W[ 3], 0x4D2C6DFC5AC42AED);
  134|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W[ 3], W[ 1], W[12], W[ 4], 0x53380D139D95B3DF);
  135|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W[ 4], W[ 2], W[13], W[ 5], 0x650A73548BAF63DE);
  136|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W[ 5], W[ 3], W[14], W[ 6], 0x766A0ABB3C77B2A8);
  137|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W[ 6], W[ 4], W[15], W[ 7], 0x81C2C92E47EDAEE6);
  138|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W[ 7], W[ 5], W[ 0], W[ 8], 0x92722C851482353B);
  139|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W[ 8], W[ 6], W[ 1], W[ 9], 0xA2BFE8A14CF10364);
  140|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W[ 9], W[ 7], W[ 2], W[10], 0xA81A664BBC423001);
  141|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W[10], W[ 8], W[ 3], W[11], 0xC24B8B70D0F89791);
  142|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W[11], W[ 9], W[ 4], W[12], 0xC76C51A30654BE30);
  143|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W[12], W[10], W[ 5], W[13], 0xD192E819D6EF5218);
  144|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W[13], W[11], W[ 6], W[14], 0xD69906245565A910);
  145|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W[14], W[12], W[ 7], W[15], 0xF40E35855771202A);
  146|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W[15], W[13], W[ 8], W[ 0], 0x106AA07032BBD1B8);
  147|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W[ 0], W[14], W[ 9], W[ 1], 0x19A4C116B8D2D0C8);
  148|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W[ 1], W[15], W[10], W[ 2], 0x1E376C085141AB53);
  149|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W[ 2], W[ 0], W[11], W[ 3], 0x2748774CDF8EEB99);
  150|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W[ 3], W[ 1], W[12], W[ 4], 0x34B0BCB5E19B48A8);
  151|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W[ 4], W[ 2], W[13], W[ 5], 0x391C0CB3C5C95A63);
  152|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W[ 5], W[ 3], W[14], W[ 6], 0x4ED8AA4AE3418ACB);
  153|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W[ 6], W[ 4], W[15], W[ 7], 0x5B9CCA4F7763E373);
  154|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W[ 7], W[ 5], W[ 0], W[ 8], 0x682E6FF3D6B2B8A3);
  155|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W[ 8], W[ 6], W[ 1], W[ 9], 0x748F82EE5DEFB2FC);
  156|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W[ 9], W[ 7], W[ 2], W[10], 0x78A5636F43172F60);
  157|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W[10], W[ 8], W[ 3], W[11], 0x84C87814A1F0AB72);
  158|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W[11], W[ 9], W[ 4], W[12], 0x8CC702081A6439EC);
  159|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W[12], W[10], W[ 5], W[13], 0x90BEFFFA23631E28);
  160|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W[13], W[11], W[ 6], W[14], 0xA4506CEBDE82BDE9);
  161|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W[14], W[12], W[ 7], W[15], 0xBEF9A3F7B2C67915);
  162|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W[15], W[13], W[ 8], W[ 0], 0xC67178F2E372532B);
  163|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W[ 0], W[14], W[ 9], W[ 1], 0xCA273ECEEA26619C);
  164|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W[ 1], W[15], W[10], W[ 2], 0xD186B8C721C0C207);
  165|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W[ 2], W[ 0], W[11], W[ 3], 0xEADA7DD6CDE0EB1E);
  166|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W[ 3], W[ 1], W[12], W[ 4], 0xF57D4F7FEE6ED178);
  167|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W[ 4], W[ 2], W[13], W[ 5], 0x06F067AA72176FBA);
  168|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W[ 5], W[ 3], W[14], W[ 6], 0x0A637DC5A2C898A6);
  169|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W[ 6], W[ 4], W[15], W[ 7], 0x113F9804BEF90DAE);
  170|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W[ 7], W[ 5], W[ 0], W[ 8], 0x1B710B35131C471B);
  171|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W[ 8], W[ 6], W[ 1], W[ 9], 0x28DB77F523047D84);
  172|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W[ 9], W[ 7], W[ 2], W[10], 0x32CAAB7B40C72493);
  173|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W[10], W[ 8], W[ 3], W[11], 0x3C9EBE0A15C9BEBC);
  174|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W[11], W[ 9], W[ 4], W[12], 0x431D67C49C100D4C);
  175|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W[12], W[10], W[ 5], W[13], 0x4CC5D4BECB3E42B6);
  176|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W[13], W[11], W[ 6], W[14], 0x597F299CFC657E2A);
  177|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W[14], W[12], W[ 7], W[15], 0x5FCB6FAB3AD6FAEC);
  178|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W[15], W[13], W[ 8], W[ 0], 0x6C44198C4A475817);
  179|       |
  180|       |      // clang-format on
  181|       |
  182|      0|      A = (digest[0] += A);
  183|      0|      B = (digest[1] += B);
  184|      0|      C = (digest[2] += C);
  185|      0|      D = (digest[3] += D);
  186|      0|      E = (digest[4] += E);
  187|      0|      F = (digest[5] += F);
  188|      0|      G = (digest[6] += G);
  189|      0|      H = (digest[7] += H);
  190|      0|   }
  191|      0|}
_ZN5Botan7SHA_51210compress_nERNSt3__16vectorImNS_16secure_allocatorImEEEENS1_4spanIKhLm18446744073709551615EEEm:
  213|      2|void SHA_512::compress_n(digest_type& digest, std::span<const uint8_t> input, size_t blocks) {
  214|      2|   SHA_512::compress_digest(digest, input, blocks);
  215|      2|}
_ZN5Botan7SHA_5124initERNSt3__16vectorImNS_16secure_allocatorImEEEE:
  239|      4|void SHA_512::init(digest_type& digest) {
  240|      4|   digest.assign({0x6A09E667F3BCC908,
  241|      4|                  0xBB67AE8584CAA73B,
  242|      4|                  0x3C6EF372FE94F82B,
  243|      4|                  0xA54FF53A5F1D36F1,
  244|      4|                  0x510E527FADE682D1,
  245|      4|                  0x9B05688C2B3E6C1F,
  246|      4|                  0x1F83D9ABFB41BD6B,
  247|      4|                  0x5BE0CD19137E2179});
  248|      4|}
_ZN5Botan7SHA_5128add_dataENSt3__14spanIKhLm18446744073709551615EEE:
  278|      2|void SHA_512::add_data(std::span<const uint8_t> input) {
  279|      2|   m_md.update(input);
  280|      2|}
_ZN5Botan7SHA_51212final_resultENSt3__14spanIhLm18446744073709551615EEE:
  290|      2|void SHA_512::final_result(std::span<uint8_t> output) {
  291|      2|   m_md.final(output);
  292|      2|}

_ZN5Botan7SHA_51224compress_digest_x86_avx2ERNSt3__16vectorImNS_16secure_allocatorImEEEENS1_4spanIKhLm18446744073709551615EEEm:
   44|      2|                                                              size_t blocks) {
   45|       |   // clang-format off
   46|      2|   alignas(64) const uint64_t K[80] = {
   47|      2|      0x428A2F98D728AE22, 0x7137449123EF65CD, 0xB5C0FBCFEC4D3B2F, 0xE9B5DBA58189DBBC,
   48|      2|      0x3956C25BF348B538, 0x59F111F1B605D019, 0x923F82A4AF194F9B, 0xAB1C5ED5DA6D8118,
   49|      2|      0xD807AA98A3030242, 0x12835B0145706FBE, 0x243185BE4EE4B28C, 0x550C7DC3D5FFB4E2,
   50|      2|      0x72BE5D74F27B896F, 0x80DEB1FE3B1696B1, 0x9BDC06A725C71235, 0xC19BF174CF692694,
   51|      2|      0xE49B69C19EF14AD2, 0xEFBE4786384F25E3, 0x0FC19DC68B8CD5B5, 0x240CA1CC77AC9C65,
   52|      2|      0x2DE92C6F592B0275, 0x4A7484AA6EA6E483, 0x5CB0A9DCBD41FBD4, 0x76F988DA831153B5,
   53|      2|      0x983E5152EE66DFAB, 0xA831C66D2DB43210, 0xB00327C898FB213F, 0xBF597FC7BEEF0EE4,
   54|      2|      0xC6E00BF33DA88FC2, 0xD5A79147930AA725, 0x06CA6351E003826F, 0x142929670A0E6E70,
   55|      2|      0x27B70A8546D22FFC, 0x2E1B21385C26C926, 0x4D2C6DFC5AC42AED, 0x53380D139D95B3DF,
   56|      2|      0x650A73548BAF63DE, 0x766A0ABB3C77B2A8, 0x81C2C92E47EDAEE6, 0x92722C851482353B,
   57|      2|      0xA2BFE8A14CF10364, 0xA81A664BBC423001, 0xC24B8B70D0F89791, 0xC76C51A30654BE30,
   58|      2|      0xD192E819D6EF5218, 0xD69906245565A910, 0xF40E35855771202A, 0x106AA07032BBD1B8,
   59|      2|      0x19A4C116B8D2D0C8, 0x1E376C085141AB53, 0x2748774CDF8EEB99, 0x34B0BCB5E19B48A8,
   60|      2|      0x391C0CB3C5C95A63, 0x4ED8AA4AE3418ACB, 0x5B9CCA4F7763E373, 0x682E6FF3D6B2B8A3,
   61|      2|      0x748F82EE5DEFB2FC, 0x78A5636F43172F60, 0x84C87814A1F0AB72, 0x8CC702081A6439EC,
   62|      2|      0x90BEFFFA23631E28, 0xA4506CEBDE82BDE9, 0xBEF9A3F7B2C67915, 0xC67178F2E372532B,
   63|      2|      0xCA273ECEEA26619C, 0xD186B8C721C0C207, 0xEADA7DD6CDE0EB1E, 0xF57D4F7FEE6ED178,
   64|      2|      0x06F067AA72176FBA, 0x0A637DC5A2C898A6, 0x113F9804BEF90DAE, 0x1B710B35131C471B,
   65|      2|      0x28DB77F523047D84, 0x32CAAB7B40C72493, 0x3C9EBE0A15C9BEBC, 0x431D67C49C100D4C,
   66|      2|      0x4CC5D4BECB3E42B6, 0x597F299CFC657E2A, 0x5FCB6FAB3AD6FAEC, 0x6C44198C4A475817,
   67|      2|   };
   68|       |   // clang-format on
   69|       |
   70|      2|   alignas(64) uint64_t W[16] = {0};
   71|      2|   alignas(64) uint64_t W2[80];
   72|       |
   73|      2|   uint64_t A = digest[0];
   74|      2|   uint64_t B = digest[1];
   75|      2|   uint64_t C = digest[2];
   76|      2|   uint64_t D = digest[3];
   77|      2|   uint64_t E = digest[4];
   78|      2|   uint64_t F = digest[5];
   79|      2|   uint64_t G = digest[6];
   80|      2|   uint64_t H = digest[7];
   81|       |
   82|      2|   const uint8_t* data = input.data();
   83|       |
   84|      2|   while(blocks >= 2) {
  ------------------
  |  Branch (84:10): [True: 0, False: 2]
  ------------------
   85|      0|      SIMD_4x64 WS[8];
   86|       |
   87|      0|      for(size_t i = 0; i < 8; i++) {
  ------------------
  |  Branch (87:25): [True: 0, False: 0]
  ------------------
   88|      0|         WS[i] = SIMD_4x64::load_be2(&data[16 * i], &data[128 + 16 * i]);
   89|      0|         auto WK = WS[i] + SIMD_4x64::broadcast_2x64(&K[2 * i]);
   90|      0|         WK.store_le2(&W[2 * i], &W2[2 * i]);
   91|      0|      }
   92|       |
   93|      0|      data += 2 * 128;
   94|      0|      blocks -= 2;
   95|       |
   96|       |      // First 64 rounds of SHA-512
   97|      0|      for(size_t r = 0; r != 64; r += 16) {
  ------------------
  |  Branch (97:25): [True: 0, False: 0]
  ------------------
   98|      0|         auto w = sha512_next_w(WS) + SIMD_4x64::broadcast_2x64(&K[r + 16]);
   99|      0|         SHA2_64_F(A, B, C, D, E, F, G, H, W[0]);
  100|      0|         SHA2_64_F(H, A, B, C, D, E, F, G, W[1]);
  101|      0|         w.store_le2(&W[0], &W2[r + 16]);
  102|       |
  103|      0|         w = sha512_next_w(WS) + SIMD_4x64::broadcast_2x64(&K[r + 18]);
  104|      0|         SHA2_64_F(G, H, A, B, C, D, E, F, W[2]);
  105|      0|         SHA2_64_F(F, G, H, A, B, C, D, E, W[3]);
  106|      0|         w.store_le2(&W[2], &W2[r + 18]);
  107|       |
  108|      0|         w = sha512_next_w(WS) + SIMD_4x64::broadcast_2x64(&K[r + 20]);
  109|      0|         SHA2_64_F(E, F, G, H, A, B, C, D, W[4]);
  110|      0|         SHA2_64_F(D, E, F, G, H, A, B, C, W[5]);
  111|      0|         w.store_le2(&W[4], &W2[r + 20]);
  112|       |
  113|      0|         w = sha512_next_w(WS) + SIMD_4x64::broadcast_2x64(&K[r + 22]);
  114|      0|         SHA2_64_F(C, D, E, F, G, H, A, B, W[6]);
  115|      0|         SHA2_64_F(B, C, D, E, F, G, H, A, W[7]);
  116|      0|         w.store_le2(&W[6], &W2[r + 22]);
  117|       |
  118|      0|         w = sha512_next_w(WS) + SIMD_4x64::broadcast_2x64(&K[r + 24]);
  119|      0|         SHA2_64_F(A, B, C, D, E, F, G, H, W[8]);
  120|      0|         SHA2_64_F(H, A, B, C, D, E, F, G, W[9]);
  121|      0|         w.store_le2(&W[8], &W2[r + 24]);
  122|       |
  123|      0|         w = sha512_next_w(WS) + SIMD_4x64::broadcast_2x64(&K[r + 26]);
  124|      0|         SHA2_64_F(G, H, A, B, C, D, E, F, W[10]);
  125|      0|         SHA2_64_F(F, G, H, A, B, C, D, E, W[11]);
  126|      0|         w.store_le2(&W[10], &W2[r + 26]);
  127|       |
  128|      0|         w = sha512_next_w(WS) + SIMD_4x64::broadcast_2x64(&K[r + 28]);
  129|      0|         SHA2_64_F(E, F, G, H, A, B, C, D, W[12]);
  130|      0|         SHA2_64_F(D, E, F, G, H, A, B, C, W[13]);
  131|      0|         w.store_le2(&W[12], &W2[r + 28]);
  132|       |
  133|      0|         w = sha512_next_w(WS) + SIMD_4x64::broadcast_2x64(&K[r + 30]);
  134|      0|         SHA2_64_F(C, D, E, F, G, H, A, B, W[14]);
  135|      0|         SHA2_64_F(B, C, D, E, F, G, H, A, W[15]);
  136|      0|         w.store_le2(&W[14], &W2[r + 30]);
  137|      0|      }
  138|       |
  139|       |      // Final 16 rounds of SHA-512
  140|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W[0]);
  141|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W[1]);
  142|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W[2]);
  143|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W[3]);
  144|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W[4]);
  145|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W[5]);
  146|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W[6]);
  147|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W[7]);
  148|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W[8]);
  149|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W[9]);
  150|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W[10]);
  151|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W[11]);
  152|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W[12]);
  153|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W[13]);
  154|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W[14]);
  155|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W[15]);
  156|       |
  157|      0|      A = (digest[0] += A);
  158|      0|      B = (digest[1] += B);
  159|      0|      C = (digest[2] += C);
  160|      0|      D = (digest[3] += D);
  161|      0|      E = (digest[4] += E);
  162|      0|      F = (digest[5] += F);
  163|      0|      G = (digest[6] += G);
  164|      0|      H = (digest[7] += H);
  165|       |
  166|       |      // Second block of SHA-512 compression, with pre-expanded message
  167|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W2[0]);
  168|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W2[1]);
  169|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W2[2]);
  170|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W2[3]);
  171|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W2[4]);
  172|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W2[5]);
  173|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W2[6]);
  174|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W2[7]);
  175|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W2[8]);
  176|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W2[9]);
  177|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W2[10]);
  178|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W2[11]);
  179|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W2[12]);
  180|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W2[13]);
  181|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W2[14]);
  182|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W2[15]);
  183|       |
  184|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W2[16]);
  185|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W2[17]);
  186|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W2[18]);
  187|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W2[19]);
  188|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W2[20]);
  189|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W2[21]);
  190|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W2[22]);
  191|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W2[23]);
  192|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W2[24]);
  193|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W2[25]);
  194|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W2[26]);
  195|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W2[27]);
  196|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W2[28]);
  197|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W2[29]);
  198|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W2[30]);
  199|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W2[31]);
  200|       |
  201|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W2[32]);
  202|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W2[33]);
  203|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W2[34]);
  204|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W2[35]);
  205|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W2[36]);
  206|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W2[37]);
  207|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W2[38]);
  208|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W2[39]);
  209|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W2[40]);
  210|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W2[41]);
  211|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W2[42]);
  212|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W2[43]);
  213|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W2[44]);
  214|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W2[45]);
  215|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W2[46]);
  216|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W2[47]);
  217|       |
  218|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W2[48]);
  219|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W2[49]);
  220|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W2[50]);
  221|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W2[51]);
  222|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W2[52]);
  223|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W2[53]);
  224|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W2[54]);
  225|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W2[55]);
  226|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W2[56]);
  227|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W2[57]);
  228|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W2[58]);
  229|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W2[59]);
  230|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W2[60]);
  231|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W2[61]);
  232|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W2[62]);
  233|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W2[63]);
  234|       |
  235|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W2[64]);
  236|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W2[65]);
  237|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W2[66]);
  238|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W2[67]);
  239|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W2[68]);
  240|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W2[69]);
  241|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W2[70]);
  242|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W2[71]);
  243|      0|      SHA2_64_F(A, B, C, D, E, F, G, H, W2[72]);
  244|      0|      SHA2_64_F(H, A, B, C, D, E, F, G, W2[73]);
  245|      0|      SHA2_64_F(G, H, A, B, C, D, E, F, W2[74]);
  246|      0|      SHA2_64_F(F, G, H, A, B, C, D, E, W2[75]);
  247|      0|      SHA2_64_F(E, F, G, H, A, B, C, D, W2[76]);
  248|      0|      SHA2_64_F(D, E, F, G, H, A, B, C, W2[77]);
  249|      0|      SHA2_64_F(C, D, E, F, G, H, A, B, W2[78]);
  250|      0|      SHA2_64_F(B, C, D, E, F, G, H, A, W2[79]);
  251|       |
  252|      0|      A = (digest[0] += A);
  253|      0|      B = (digest[1] += B);
  254|      0|      C = (digest[2] += C);
  255|      0|      D = (digest[3] += D);
  256|      0|      E = (digest[4] += E);
  257|      0|      F = (digest[5] += F);
  258|      0|      G = (digest[6] += G);
  259|      0|      H = (digest[7] += H);
  260|      0|   }
  261|       |
  262|      4|   while(blocks > 0) {
  ------------------
  |  Branch (262:10): [True: 2, False: 2]
  ------------------
  263|      2|      SIMD_2x64 WS[8];
  264|       |
  265|     18|      for(size_t i = 0; i < 8; i++) {
  ------------------
  |  Branch (265:25): [True: 16, False: 2]
  ------------------
  266|     16|         WS[i] = SIMD_2x64::load_be(&data[16 * i]);
  267|     16|         auto WK = WS[i] + SIMD_2x64::load_le(&K[2 * i]);
  268|     16|         WK.store_le(&W[2 * i]);
  269|     16|      }
  270|       |
  271|      2|      data += 128;
  272|      2|      blocks -= 1;
  273|       |
  274|       |      // First 64 rounds of SHA-512
  275|     10|      for(size_t r = 0; r != 64; r += 16) {
  ------------------
  |  Branch (275:25): [True: 8, False: 2]
  ------------------
  276|      8|         auto w = sha512_next_w(WS) + SIMD_2x64::load_le(&K[r + 16]);
  277|      8|         SHA2_64_F(A, B, C, D, E, F, G, H, W[0]);
  278|      8|         SHA2_64_F(H, A, B, C, D, E, F, G, W[1]);
  279|      8|         w.store_le(&W[0]);
  280|       |
  281|      8|         w = sha512_next_w(WS) + SIMD_2x64::load_le(&K[r + 18]);
  282|      8|         SHA2_64_F(G, H, A, B, C, D, E, F, W[2]);
  283|      8|         SHA2_64_F(F, G, H, A, B, C, D, E, W[3]);
  284|      8|         w.store_le(&W[2]);
  285|       |
  286|      8|         w = sha512_next_w(WS) + SIMD_2x64::load_le(&K[r + 20]);
  287|      8|         SHA2_64_F(E, F, G, H, A, B, C, D, W[4]);
  288|      8|         SHA2_64_F(D, E, F, G, H, A, B, C, W[5]);
  289|      8|         w.store_le(&W[4]);
  290|       |
  291|      8|         w = sha512_next_w(WS) + SIMD_2x64::load_le(&K[r + 22]);
  292|      8|         SHA2_64_F(C, D, E, F, G, H, A, B, W[6]);
  293|      8|         SHA2_64_F(B, C, D, E, F, G, H, A, W[7]);
  294|      8|         w.store_le(&W[6]);
  295|       |
  296|      8|         w = sha512_next_w(WS) + SIMD_2x64::load_le(&K[r + 24]);
  297|      8|         SHA2_64_F(A, B, C, D, E, F, G, H, W[8]);
  298|      8|         SHA2_64_F(H, A, B, C, D, E, F, G, W[9]);
  299|      8|         w.store_le(&W[8]);
  300|       |
  301|      8|         w = sha512_next_w(WS) + SIMD_2x64::load_le(&K[r + 26]);
  302|      8|         SHA2_64_F(G, H, A, B, C, D, E, F, W[10]);
  303|      8|         SHA2_64_F(F, G, H, A, B, C, D, E, W[11]);
  304|      8|         w.store_le(&W[10]);
  305|       |
  306|      8|         w = sha512_next_w(WS) + SIMD_2x64::load_le(&K[r + 28]);
  307|      8|         SHA2_64_F(E, F, G, H, A, B, C, D, W[12]);
  308|      8|         SHA2_64_F(D, E, F, G, H, A, B, C, W[13]);
  309|      8|         w.store_le(&W[12]);
  310|       |
  311|      8|         w = sha512_next_w(WS) + SIMD_2x64::load_le(&K[r + 30]);
  312|      8|         SHA2_64_F(C, D, E, F, G, H, A, B, W[14]);
  313|      8|         SHA2_64_F(B, C, D, E, F, G, H, A, W[15]);
  314|      8|         w.store_le(&W[14]);
  315|      8|      }
  316|       |
  317|       |      // Final 16 rounds of SHA-512
  318|      2|      SHA2_64_F(A, B, C, D, E, F, G, H, W[0]);
  319|      2|      SHA2_64_F(H, A, B, C, D, E, F, G, W[1]);
  320|      2|      SHA2_64_F(G, H, A, B, C, D, E, F, W[2]);
  321|      2|      SHA2_64_F(F, G, H, A, B, C, D, E, W[3]);
  322|      2|      SHA2_64_F(E, F, G, H, A, B, C, D, W[4]);
  323|      2|      SHA2_64_F(D, E, F, G, H, A, B, C, W[5]);
  324|      2|      SHA2_64_F(C, D, E, F, G, H, A, B, W[6]);
  325|      2|      SHA2_64_F(B, C, D, E, F, G, H, A, W[7]);
  326|      2|      SHA2_64_F(A, B, C, D, E, F, G, H, W[8]);
  327|      2|      SHA2_64_F(H, A, B, C, D, E, F, G, W[9]);
  328|      2|      SHA2_64_F(G, H, A, B, C, D, E, F, W[10]);
  329|      2|      SHA2_64_F(F, G, H, A, B, C, D, E, W[11]);
  330|      2|      SHA2_64_F(E, F, G, H, A, B, C, D, W[12]);
  331|      2|      SHA2_64_F(D, E, F, G, H, A, B, C, W[13]);
  332|      2|      SHA2_64_F(C, D, E, F, G, H, A, B, W[14]);
  333|      2|      SHA2_64_F(B, C, D, E, F, G, H, A, W[15]);
  334|       |
  335|      2|      A = (digest[0] += A);
  336|      2|      B = (digest[1] += B);
  337|      2|      C = (digest[2] += C);
  338|      2|      D = (digest[3] += D);
  339|      2|      E = (digest[4] += E);
  340|      2|      F = (digest[5] += F);
  341|      2|      G = (digest[6] += G);
  342|      2|      H = (digest[7] += H);
  343|      2|   }
  344|      2|}
sha2_64_avx2.cpp:_ZN5Botan12_GLOBAL__N_113sha512_next_wINS_9SIMD_2x64EEET_PS3_:
   19|     64|BOTAN_FORCE_INLINE BOTAN_FN_ISA_AVX2_BMI2 SIMD_T sha512_next_w(SIMD_T x[8]) {
   20|     64|   auto t0 = SIMD_T::alignr8(x[1], x[0]);
   21|     64|   auto t1 = SIMD_T::alignr8(x[5], x[4]);
   22|       |
   23|     64|   auto s0 = t0.template rotr<1>() ^ t0.template rotr<8>() ^ t0.template shr<7>();
   24|     64|   auto s1 = x[7].template rotr<19>() ^ x[7].template rotr<61>() ^ x[7].template shr<6>();
   25|       |
   26|     64|   auto nx = x[0] + s0 + s1 + t1;
   27|       |
   28|     64|   x[0] = x[1];
   29|     64|   x[1] = x[2];
   30|     64|   x[2] = x[3];
   31|     64|   x[3] = x[4];
   32|     64|   x[4] = x[5];
   33|     64|   x[5] = x[6];
   34|     64|   x[6] = x[7];
   35|     64|   x[7] = nx;
   36|       |
   37|     64|   return x[7];
   38|     64|}

_ZN5Botan5SHA_3C2Em:
   17|     50|      m_keccak({.capacity_bits = output_bits * 2, .padding = KeccakPadding::sha3()}), m_output_length(output_bits / 8) {
   18|       |   // We only support the parameters for SHA-3 in this constructor
   19|       |
   20|     50|   if(output_bits != 224 && output_bits != 256 && output_bits != 384 && output_bits != 512) {
  ------------------
  |  Branch (20:7): [True: 50, False: 0]
  |  Branch (20:29): [True: 25, False: 25]
  |  Branch (20:51): [True: 25, False: 0]
  |  Branch (20:73): [True: 0, False: 25]
  ------------------
   21|      0|      throw Invalid_Argument(fmt("SHA_3: Invalid output length {}", output_bits));
   22|      0|   }
   23|     50|}
_ZN5Botan5SHA_38add_dataENSt3__14spanIKhLm18446744073709551615EEE:
   45|     75|void SHA_3::add_data(std::span<const uint8_t> input) {
   46|     75|   m_keccak.absorb(input);
   47|     75|}
_ZN5Botan5SHA_312final_resultENSt3__14spanIhLm18446744073709551615EEE:
   49|     50|void SHA_3::final_result(std::span<uint8_t> output) {
   50|     50|   m_keccak.finish();
   51|     50|   m_keccak.squeeze(output);
   52|     50|   m_keccak.clear();
   53|     50|}

_ZN5Botan6BigInt17from_radix_digitsENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEm:
  125|  13.7k|BigInt BigInt::from_radix_digits(std::string_view digits, size_t radix) {
  126|  13.7k|   if(radix == 16) {
  ------------------
  |  Branch (126:7): [True: 13.7k, False: 0]
  ------------------
  127|  13.7k|      secure_vector<uint8_t> binary;
  128|       |
  129|  13.7k|      if(digits.size() % 2 == 1) {
  ------------------
  |  Branch (129:10): [True: 2.63k, False: 11.1k]
  ------------------
  130|       |         // Handle lack of leading 0
  131|  2.63k|         const char buf0_with_leading_0[2] = {'0', digits[0]};
  132|       |
  133|  2.63k|         binary = hex_decode_locked(buf0_with_leading_0, 2);
  134|       |
  135|  2.63k|         if(digits.size() > 1) {
  ------------------
  |  Branch (135:13): [True: 1.76k, False: 870]
  ------------------
  136|  1.76k|            binary += hex_decode_locked(&digits[1], digits.size() - 1, false);
  137|  1.76k|         }
  138|  11.1k|      } else {
  139|  11.1k|         binary = hex_decode_locked(digits, false);
  140|  11.1k|      }
  141|       |
  142|  13.7k|      return BigInt::from_bytes(binary);
  143|  13.7k|   } else if(radix == 10) {
  ------------------
  |  Branch (143:14): [True: 0, False: 0]
  ------------------
  144|       |      // Use the largest power of 10 that fits in a word, accumulating
  145|       |      // groups of digits into word-sized chunks to minimize the number
  146|       |      // of multiprecision multiplications.
  147|      0|      constexpr word conversion_radix = decimal_conversion_radix();
  148|      0|      constexpr size_t radix_digits = decimal_conversion_radix_digits();
  149|       |
  150|      0|      BigInt r;
  151|       |
  152|       |      // Handle the initial partial block (if digit count is not a multiple of radix_digits)
  153|      0|      const size_t partial_block = digits.size() % radix_digits;
  154|       |
  155|      0|      if(partial_block > 0) {
  ------------------
  |  Branch (155:10): [True: 0, False: 0]
  ------------------
  156|      0|         word acc = 0;
  157|      0|         for(size_t i = 0; i < partial_block; ++i) {
  ------------------
  |  Branch (157:28): [True: 0, False: 0]
  ------------------
  158|      0|            const char c = digits[i];
  159|      0|            BOTAN_ARG_CHECK(c >= '0' && c <= '9', "Invalid decimal character");
  ------------------
  |  |   35|      0|   do {                                                          \
  |  |   36|      0|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|      0|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 0, 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|      0|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
  160|      0|            acc = acc * 10 + static_cast<word>(c - '0');
  161|      0|         }
  162|      0|         r += acc;
  163|      0|      }
  164|       |
  165|       |      // Process full blocks of radix_digits
  166|      0|      for(size_t i = partial_block; i != digits.size(); i += radix_digits) {
  ------------------
  |  Branch (166:37): [True: 0, False: 0]
  ------------------
  167|      0|         word acc = 0;
  168|      0|         for(size_t j = 0; j < radix_digits; ++j) {
  ------------------
  |  Branch (168:28): [True: 0, False: 0]
  ------------------
  169|      0|            const char c = digits[i + j];
  170|      0|            BOTAN_ARG_CHECK(c >= '0' && c <= '9', "Invalid decimal character");
  ------------------
  |  |   35|      0|   do {                                                          \
  |  |   36|      0|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|      0|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 0, 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|      0|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
  171|      0|            acc = acc * 10 + static_cast<word>(c - '0');
  172|      0|         }
  173|      0|         r *= conversion_radix;
  174|      0|         r += acc;
  175|      0|      }
  176|       |
  177|      0|      return r;
  178|      0|   } else {
  179|      0|      throw Invalid_Argument("BigInt::from_radix_digits unknown radix");
  180|      0|   }
  181|  13.7k|}

_ZN5Botan6BigIntpLERKS0_:
   16|    934|BigInt& BigInt::operator+=(const BigInt& y) {
   17|    934|   if(&y == this) {
  ------------------
  |  Branch (17:7): [True: 0, False: 934]
  ------------------
   18|      0|      return *this <<= 1;
   19|      0|   }
   20|    934|   return add(y._data(), y.sig_words(), y.sign());
   21|    934|}
_ZN5Botan6BigIntmIERKS0_:
   23|  53.5k|BigInt& BigInt::operator-=(const BigInt& y) {
   24|  53.5k|   if(&y == this) {
  ------------------
  |  Branch (24:7): [True: 0, False: 53.5k]
  ------------------
   25|      0|      this->clear();
   26|      0|      this->set_sign(Positive);
   27|      0|      return *this;
   28|      0|   }
   29|  53.5k|   return sub(y._data(), y.sig_words(), y.sign());
   30|  53.5k|}
_ZN5Botan6BigInt3addEPKmmNS0_4SignE:
   32|  59.6k|BigInt& BigInt::add(const word y[], size_t y_words, Sign y_sign) {
   33|  59.6k|   const size_t x_sw = sig_words();
   34|       |
   35|  59.6k|   grow_to(std::max(x_sw, y_words) + 1);
   36|       |
   37|  59.6k|   if(sign() == y_sign) {
  ------------------
  |  Branch (37:7): [True: 3.39k, False: 56.2k]
  ------------------
   38|  3.39k|      const word carry = bigint_add2(mutable_data(), size() - 1, y, y_words);
   39|  3.39k|      mutable_data()[size() - 1] += carry;
   40|  56.2k|   } else {
   41|  56.2k|      const int32_t relative_size = bigint_cmp(_data(), x_sw, y, y_words);
   42|       |
   43|  56.2k|      if(relative_size >= 0) {
  ------------------
  |  Branch (43:10): [True: 53.4k, False: 2.75k]
  ------------------
   44|       |         // *this >= y
   45|  53.4k|         bigint_sub2(mutable_data(), x_sw, y, y_words);
   46|  53.4k|      } else {
   47|       |         // *this < y: compute *this = y - *this
   48|  2.75k|         bigint_sub2_rev(mutable_data(), y, y_words);
   49|  2.75k|      }
   50|       |
   51|  56.2k|      if(relative_size < 0) {
  ------------------
  |  Branch (51:10): [True: 2.75k, False: 53.4k]
  ------------------
   52|  2.75k|         set_sign(y_sign);
   53|  53.4k|      } else if(relative_size == 0) {
  ------------------
  |  Branch (53:17): [True: 1, False: 53.4k]
  ------------------
   54|      1|         set_sign(Positive);
   55|      1|      }
   56|  56.2k|   }
   57|       |
   58|  59.6k|   return (*this);
   59|  59.6k|}
_ZN5Botan6BigInt7mod_addERKS0_S2_RNSt3__16vectorImNS_16secure_allocatorImEEEE:
   61|  30.2k|BigInt& BigInt::mod_add(const BigInt& s, const BigInt& mod, secure_vector<word>& ws) {
   62|  30.2k|   if(this->signum() < 0 || s.signum() < 0 || mod.signum() < 0) {
  ------------------
  |  Branch (62:7): [True: 0, False: 30.2k]
  |  Branch (62:29): [True: 0, False: 30.2k]
  |  Branch (62:47): [True: 0, False: 30.2k]
  ------------------
   63|      0|      throw Invalid_Argument("BigInt::mod_add expects all arguments are positive");
   64|      0|   }
   65|       |
   66|  30.2k|   BOTAN_DEBUG_ASSERT(*this < mod);
  ------------------
  |  |  130|  30.2k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  30.2k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 30.2k]
  |  |  ------------------
  ------------------
   67|  30.2k|   BOTAN_DEBUG_ASSERT(s < mod);
  ------------------
  |  |  130|  30.2k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  30.2k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 30.2k]
  |  |  ------------------
  ------------------
   68|       |
   69|       |   /*
   70|       |   t + s or t + s - p == t - (p - s)
   71|       |
   72|       |   So first compute ws = p - s
   73|       |
   74|       |   Then compute t + s and t - ws
   75|       |
   76|       |   If t - ws does not borrow, then that is the correct valued
   77|       |   */
   78|       |
   79|  30.2k|   const size_t mod_sw = mod.sig_words();
   80|  30.2k|   BOTAN_ARG_CHECK(mod_sw > 0, "BigInt::mod_add modulus must be positive");
  ------------------
  |  |   35|  30.2k|   do {                                                          \
  |  |   36|  30.2k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  30.2k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 30.2k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  30.2k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 30.2k]
  |  |  ------------------
  ------------------
   81|       |
   82|  30.2k|   this->grow_to(mod_sw);
   83|  30.2k|   s.grow_to(mod_sw);
   84|       |
   85|       |   // First mod_sw for p - s, 2*mod_sw for bigint_addsub workspace
   86|  30.2k|   if(ws.size() < 3 * mod_sw) {
  ------------------
  |  Branch (86:7): [True: 22.3k, False: 7.91k]
  ------------------
   87|  22.3k|      ws.resize(3 * mod_sw);
   88|  22.3k|   }
   89|       |
   90|       |   // NOLINTBEGIN(readability-container-data-pointer)
   91|       |
   92|  30.2k|   word borrow = bigint_sub3(&ws[0], mod._data(), mod_sw, s._data(), mod_sw);
   93|  30.2k|   BOTAN_DEBUG_ASSERT(borrow == 0);
  ------------------
  |  |  130|  30.2k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  30.2k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 30.2k]
  |  |  ------------------
  ------------------
   94|  30.2k|   BOTAN_UNUSED(borrow);
  ------------------
  |  |  144|  30.2k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   95|       |
   96|       |   // Compute t - ws
   97|  30.2k|   borrow = bigint_sub3(&ws[mod_sw], this->_data(), mod_sw, &ws[0], mod_sw);
   98|       |
   99|       |   // Compute t + s
  100|  30.2k|   bigint_add3(&ws[mod_sw * 2], this->_data(), mod_sw, s._data(), mod_sw);
  101|       |
  102|  30.2k|   CT::conditional_copy_mem(borrow, &ws[0], &ws[mod_sw * 2], &ws[mod_sw], mod_sw);
  103|  30.2k|   set_words(&ws[0], mod_sw);
  104|       |
  105|       |   // NOLINTEND(readability-container-data-pointer)
  106|       |
  107|  30.2k|   return (*this);
  108|  30.2k|}
_ZN5Botan6BigInt7mod_subERKS0_S2_RNSt3__16vectorImNS_16secure_allocatorImEEEE:
  110|  1.18M|BigInt& BigInt::mod_sub(const BigInt& s, const BigInt& mod, secure_vector<word>& ws) {
  111|  1.18M|   if(this->signum() < 0 || s.signum() < 0 || mod.signum() < 0) {
  ------------------
  |  Branch (111:7): [True: 0, False: 1.18M]
  |  Branch (111:29): [True: 0, False: 1.18M]
  |  Branch (111:47): [True: 0, False: 1.18M]
  ------------------
  112|      0|      throw Invalid_Argument("BigInt::mod_sub expects all arguments are positive");
  113|      0|   }
  114|       |
  115|       |   // We are assuming in this function that *this and s are no more than mod_sw words long
  116|  1.18M|   BOTAN_DEBUG_ASSERT(*this < mod);
  ------------------
  |  |  130|  1.18M|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  1.18M|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 1.18M]
  |  |  ------------------
  ------------------
  117|  1.18M|   BOTAN_DEBUG_ASSERT(s < mod);
  ------------------
  |  |  130|  1.18M|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  1.18M|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 1.18M]
  |  |  ------------------
  ------------------
  118|       |
  119|  1.18M|   const size_t mod_sw = mod.sig_words();
  120|       |
  121|  1.18M|   this->grow_to(mod_sw);
  122|  1.18M|   s.grow_to(mod_sw);
  123|       |
  124|  1.18M|   if(ws.size() < mod_sw) {
  ------------------
  |  Branch (124:7): [True: 0, False: 1.18M]
  ------------------
  125|      0|      ws.resize(mod_sw);
  126|      0|   }
  127|       |
  128|  1.18M|   const word borrow = bigint_sub3(ws.data(), mutable_data(), mod_sw, s._data(), mod_sw);
  129|       |
  130|       |   // Conditionally add back the modulus
  131|  1.18M|   bigint_cnd_add(borrow, ws.data(), mod._data(), mod_sw);
  132|       |
  133|  1.18M|   unchecked_copy_memory(mutable_data(), ws.data(), mod_sw);
  134|       |
  135|  1.18M|   return (*this);
  136|  1.18M|}
_ZN5Botan6BigInt7mod_mulEhRKS0_RNSt3__16vectorImNS_16secure_allocatorImEEEE:
  138|   337k|BigInt& BigInt::mod_mul(uint8_t y, const BigInt& mod, secure_vector<word>& ws) {
  139|   337k|   BOTAN_ARG_CHECK(this->signum() >= 0, "*this must be positive");
  ------------------
  |  |   35|   337k|   do {                                                          \
  |  |   36|   337k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|   337k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 337k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|   337k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 337k]
  |  |  ------------------
  ------------------
  140|   337k|   BOTAN_ARG_CHECK(y < 16, "y too large");
  ------------------
  |  |   35|   337k|   do {                                                          \
  |  |   36|   337k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|   337k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 337k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|   337k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 337k]
  |  |  ------------------
  ------------------
  141|       |
  142|   337k|   BOTAN_DEBUG_ASSERT(*this < mod);
  ------------------
  |  |  130|   337k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|   337k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 337k]
  |  |  ------------------
  ------------------
  143|       |
  144|   337k|   *this *= static_cast<word>(y);
  145|   337k|   this->reduce_below(mod, ws);
  146|   337k|   return (*this);
  147|   337k|}
_ZN5Botan6BigIntmLEm:
  205|   337k|BigInt& BigInt::operator*=(word y) {
  206|   337k|   if(y == 0) {
  ------------------
  |  Branch (206:7): [True: 0, False: 337k]
  ------------------
  207|      0|      clear();
  208|      0|      set_sign(Positive);
  209|      0|   }
  210|       |
  211|   337k|   const word carry = bigint_linmul2(mutable_data(), size(), y);
  212|   337k|   set_word_at(size(), carry);
  213|       |
  214|   337k|   return (*this);
  215|   337k|}
_ZN5Botan6BigIntrMERKS0_:
  232|  9.90k|BigInt& BigInt::operator%=(const BigInt& mod) {
  233|  9.90k|   return (*this = (*this) % mod);
  234|  9.90k|}
_ZN5Botan6BigIntlSEm:
  269|  12.2k|BigInt& BigInt::operator<<=(size_t shift) {
  270|  12.2k|   if(shift >= 65536) {
  ------------------
  |  Branch (270:7): [True: 0, False: 12.2k]
  ------------------
  271|      0|      throw Invalid_Argument("BigInt left shift count too large");
  272|      0|   }
  273|       |
  274|  12.2k|   const size_t sw = sig_words();
  275|  12.2k|   const size_t new_size = sw + (shift + WordInfo<word>::bits - 1) / WordInfo<word>::bits;
  276|       |
  277|  12.2k|   m_data.grow_to(new_size);
  278|       |
  279|  12.2k|   bigint_shl1(m_data.mutable_data(), new_size, sw, shift);
  280|       |
  281|  12.2k|   return (*this);
  282|  12.2k|}
_ZN5Botan6BigIntrSEm:
  287|   884k|BigInt& BigInt::operator>>=(size_t shift) {
  288|   884k|   bigint_shr1(m_data.mutable_data(), m_data.size(), shift);
  289|       |
  290|   884k|   if(sig_words() == 0 && m_signedness == Negative) {
  ------------------
  |  Branch (290:7): [True: 905, False: 883k]
  |  Branch (290:27): [True: 0, False: 905]
  ------------------
  291|      0|      m_signedness = Positive;
  292|      0|   }
  293|       |
  294|   884k|   return (*this);
  295|   884k|}

_ZN5Botan6BigInt4add2ERKS0_PKmmNS0_4SignE:
   20|   818k|BigInt BigInt::add2(const BigInt& x, const word y[], size_t y_size, BigInt::Sign y_sign) {
   21|   818k|   const size_t x_sw = x.sig_words();
   22|       |
   23|   818k|   BigInt z = BigInt::with_capacity(std::max(x_sw, y_size) + 1);
   24|       |
   25|   818k|   if(x.sign() == y_sign) {
  ------------------
  |  Branch (25:7): [True: 811k, False: 6.52k]
  ------------------
   26|   811k|      const word carry = bigint_add3(z.mutable_data(), x._data(), x_sw, y, y_size);
   27|   811k|      z.mutable_data()[std::max(x_sw, y_size)] += carry;
   28|   811k|      z.set_sign(x.sign());
   29|   811k|   } else {
   30|  6.52k|      const int32_t relative_size = bigint_cmp(x.data(), x_sw, y, y_size);
   31|       |
   32|  6.52k|      if(relative_size < 0) {
  ------------------
  |  Branch (32:10): [True: 0, False: 6.52k]
  ------------------
   33|       |         // x < y so z = abs(y - x)
   34|       |         // NOLINTNEXTLINE(*-suspicious-call-argument) intentionally swapping x and y here
   35|      0|         bigint_sub3(z.mutable_data(), y, y_size, x.data(), x_sw);
   36|      0|         z.set_sign(y_sign);
   37|  6.52k|      } else if(relative_size == 0) {
  ------------------
  |  Branch (37:17): [True: 0, False: 6.52k]
  ------------------
   38|       |         // Positive zero (nothing to do in this case)
   39|  6.52k|      } else {
   40|       |         /*
   41|       |         * We know at this point that x >= y so if y_size is larger than
   42|       |         * x_sw, we are guaranteed they are just leading zeros which can
   43|       |         * be ignored
   44|       |         */
   45|  6.52k|         y_size = std::min(x_sw, y_size);
   46|  6.52k|         bigint_sub3(z.mutable_data(), x.data(), x_sw, y, y_size);
   47|  6.52k|         z.set_sign(x.sign());
   48|  6.52k|      }
   49|  6.52k|   }
   50|       |
   51|   818k|   return z;
   52|   818k|}
_ZN5BotanmlERKNS_6BigIntES2_:
   57|  1.54k|BigInt operator*(const BigInt& x, const BigInt& y) {
   58|  1.54k|   const size_t x_sw = x.sig_words();
   59|  1.54k|   const size_t y_sw = y.sig_words();
   60|       |
   61|  1.54k|   BigInt z = BigInt::with_capacity(x.size() + y.size());
   62|       |
   63|  1.54k|   if(x_sw == 1 && y_sw > 0) {
  ------------------
  |  Branch (63:7): [True: 0, False: 1.54k]
  |  Branch (63:20): [True: 0, False: 0]
  ------------------
   64|      0|      bigint_linmul3(z.mutable_data(), y._data(), y_sw, x.word_at(0));
   65|  1.54k|   } else if(y_sw == 1 && x_sw > 0) {
  ------------------
  |  Branch (65:14): [True: 0, False: 1.54k]
  |  Branch (65:27): [True: 0, False: 0]
  ------------------
   66|      0|      bigint_linmul3(z.mutable_data(), x._data(), x_sw, y.word_at(0));
   67|  1.54k|   } else if(x_sw > 0 && y_sw > 0) {
  ------------------
  |  Branch (67:14): [True: 1.54k, False: 0]
  |  Branch (67:26): [True: 1.54k, False: 0]
  ------------------
   68|  1.54k|      secure_vector<word> workspace(z.size());
   69|       |
   70|  1.54k|      bigint_mul(z.mutable_data(),
   71|  1.54k|                 z.size(),
   72|  1.54k|                 x._data(),
   73|  1.54k|                 x.size(),
   74|  1.54k|                 x_sw,
   75|  1.54k|                 y._data(),
   76|  1.54k|                 y.size(),
   77|  1.54k|                 y_sw,
   78|  1.54k|                 workspace.data(),
   79|  1.54k|                 workspace.size());
   80|  1.54k|   }
   81|       |
   82|  1.54k|   z.cond_flip_sign(x_sw > 0 && y_sw > 0 && x.sign() != y.sign());
  ------------------
  |  Branch (82:21): [True: 1.54k, False: 0]
  |  Branch (82:33): [True: 1.54k, False: 0]
  |  Branch (82:45): [True: 0, False: 1.54k]
  ------------------
   83|       |
   84|  1.54k|   return z;
   85|  1.54k|}
_ZN5BotanmlERKNS_6BigIntEm:
   90|  50.1k|BigInt operator*(const BigInt& x, word y) {
   91|  50.1k|   const size_t x_sw = x.sig_words();
   92|       |
   93|  50.1k|   BigInt z = BigInt::with_capacity(x_sw + 1);
   94|       |
   95|  50.1k|   if(x_sw > 0 && y > 0) {
  ------------------
  |  Branch (95:7): [True: 50.1k, False: 0]
  |  Branch (95:19): [True: 50.1k, False: 0]
  ------------------
   96|  50.1k|      bigint_linmul3(z.mutable_data(), x._data(), x_sw, y);
   97|  50.1k|      z.set_sign(x.sign());
   98|  50.1k|   }
   99|       |
  100|  50.1k|   return z;
  101|  50.1k|}
_ZN5BotandvERKNS_6BigIntES2_:
  106|  1.27k|BigInt operator/(const BigInt& x, const BigInt& y) {
  107|  1.27k|   if(y.sig_words() == 1 && y.signum() >= 0) {
  ------------------
  |  Branch (107:7): [True: 0, False: 1.27k]
  |  Branch (107:29): [True: 0, False: 0]
  ------------------
  108|      0|      return x / y.word_at(0);
  109|      0|   }
  110|       |
  111|  1.27k|   BigInt q;
  112|  1.27k|   BigInt r;
  113|  1.27k|   vartime_divide(x, y, q, r);
  114|  1.27k|   return q;
  115|  1.27k|}
_ZN5BotandvERKNS_6BigIntEm:
  120|  1.02k|BigInt operator/(const BigInt& x, word y) {
  121|  1.02k|   if(y == 0) {
  ------------------
  |  Branch (121:7): [True: 0, False: 1.02k]
  ------------------
  122|      0|      throw Invalid_Argument("BigInt::operator/ divide by zero");
  123|      0|   }
  124|       |
  125|  1.02k|   BigInt q;
  126|  1.02k|   word r = 0;
  127|  1.02k|   ct_divide_word(x, y, q, r);
  128|  1.02k|   return q;
  129|  1.02k|}
_ZN5BotanrmERKNS_6BigIntES2_:
  134|  9.90k|BigInt operator%(const BigInt& n, const BigInt& mod) {
  135|  9.90k|   if(mod.is_zero()) {
  ------------------
  |  Branch (135:7): [True: 0, False: 9.90k]
  ------------------
  136|      0|      throw Invalid_Argument("BigInt::operator% divide by zero");
  137|      0|   }
  138|  9.90k|   if(mod.signum() < 0) {
  ------------------
  |  Branch (138:7): [True: 0, False: 9.90k]
  ------------------
  139|      0|      throw Invalid_Argument("BigInt::operator% modulus must be > 0");
  140|      0|   }
  141|  9.90k|   if(n.signum() >= 0 && mod.signum() >= 0 && n < mod) {
  ------------------
  |  Branch (141:7): [True: 7.97k, False: 1.92k]
  |  Branch (141:26): [True: 7.97k, False: 0]
  |  Branch (141:47): [True: 0, False: 7.97k]
  ------------------
  142|      0|      return n;
  143|      0|   }
  144|       |
  145|  9.90k|   if(mod.sig_words() == 1) {
  ------------------
  |  Branch (145:7): [True: 6.05k, False: 3.84k]
  ------------------
  146|  6.05k|      return BigInt::from_word(n % mod.word_at(0));
  147|  6.05k|   }
  148|       |
  149|  3.84k|   BigInt q;
  150|  3.84k|   BigInt r;
  151|  3.84k|   vartime_divide(n, mod, q, r);
  152|  3.84k|   return r;
  153|  9.90k|}
_ZN5BotanrmERKNS_6BigIntEm:
  158|  12.8k|word operator%(const BigInt& n, word mod) {
  159|  12.8k|   if(mod == 0) {
  ------------------
  |  Branch (159:7): [True: 0, False: 12.8k]
  ------------------
  160|      0|      throw Invalid_Argument("BigInt::operator% divide by zero");
  161|      0|   }
  162|       |
  163|  12.8k|   if(mod == 1) {
  ------------------
  |  Branch (163:7): [True: 0, False: 12.8k]
  ------------------
  164|      0|      return 0;
  165|      0|   }
  166|       |
  167|  12.8k|   word remainder = 0;
  168|       |
  169|  12.8k|   if(n.signum() >= 0 && is_power_of_2(mod)) {
  ------------------
  |  Branch (169:7): [True: 12.8k, False: 0]
  |  Branch (169:26): [True: 6.75k, False: 6.05k]
  ------------------
  170|  6.75k|      remainder = (n.word_at(0) & (mod - 1));
  171|  6.75k|   } else {
  172|  6.05k|      const divide_precomp redc_mod(mod);
  173|  6.05k|      const size_t sw = n.sig_words();
  174|  29.2k|      for(size_t i = sw; i > 0; --i) {
  ------------------
  |  Branch (174:26): [True: 23.1k, False: 6.05k]
  ------------------
  175|  23.1k|         remainder = redc_mod.vartime_mod_2to1(remainder, n.word_at(i - 1));
  176|  23.1k|      }
  177|  6.05k|   }
  178|       |
  179|  12.8k|   if(remainder != 0 && n.sign() == BigInt::Negative) {
  ------------------
  |  Branch (179:7): [True: 12.8k, False: 0]
  |  Branch (179:25): [True: 0, False: 12.8k]
  ------------------
  180|      0|      return mod - remainder;
  181|      0|   }
  182|  12.8k|   return remainder;
  183|  12.8k|}
_ZN5BotanlsERKNS_6BigIntEm:
  188|  14.4k|BigInt operator<<(const BigInt& x, size_t shift) {
  189|  14.4k|   if(shift >= 65536) {
  ------------------
  |  Branch (189:7): [True: 0, False: 14.4k]
  ------------------
  190|      0|      throw Invalid_Argument("BigInt left shift count too large");
  191|      0|   }
  192|       |
  193|  14.4k|   if(x.is_zero()) {
  ------------------
  |  Branch (193:7): [True: 0, False: 14.4k]
  ------------------
  194|      0|      return BigInt::zero();
  195|      0|   }
  196|       |
  197|  14.4k|   const size_t x_sw = x.sig_words();
  198|       |
  199|  14.4k|   const size_t new_size = x_sw + shift / WordInfo<word>::bits + 1;
  200|  14.4k|   BigInt y = BigInt::with_capacity(new_size);
  201|  14.4k|   bigint_shl2(y.mutable_data(), new_size, x._data(), x_sw, shift);
  202|  14.4k|   y.set_sign(x.sign());
  203|  14.4k|   return y;
  204|  14.4k|}
_ZN5BotanrsERKNS_6BigIntEm:
  209|  1.33k|BigInt operator>>(const BigInt& x, size_t shift) {
  210|  1.33k|   const size_t shift_words = shift / WordInfo<word>::bits;
  211|  1.33k|   const size_t x_sw = x.sig_words();
  212|       |
  213|  1.33k|   if(shift_words >= x_sw) {
  ------------------
  |  Branch (213:7): [True: 0, False: 1.33k]
  ------------------
  214|      0|      return BigInt::zero();
  215|      0|   }
  216|       |
  217|  1.33k|   const size_t new_size = x_sw - shift_words;
  218|  1.33k|   BigInt y = BigInt::with_capacity(new_size);
  219|  1.33k|   bigint_shr2(y.mutable_data(), new_size, x._data(), x_sw, shift);
  220|       |
  221|  1.33k|   if(x.signum() < 0 && y.is_zero()) {
  ------------------
  |  Branch (221:7): [True: 0, False: 1.33k]
  |  Branch (221:25): [True: 0, False: 0]
  ------------------
  222|      0|      y.set_sign(BigInt::Positive);
  223|  1.33k|   } else {
  224|  1.33k|      y.set_sign(x.sign());
  225|  1.33k|   }
  226|       |
  227|  1.33k|   return y;
  228|  1.33k|}

_ZN5Botan6BigIntC2Em:
   20|  4.25k|BigInt::BigInt(uint64_t n) {
   21|  4.25k|   if constexpr(sizeof(word) == 8) {
   22|  4.25k|      m_data.set_word_at(0, static_cast<word>(n));
   23|       |   } else {
   24|       |      m_data.set_word_at(1, static_cast<word>(n >> 32));
   25|       |      m_data.set_word_at(0, static_cast<word>(n));
   26|       |   }
   27|  4.25k|}
_ZN5Botan6BigInt8from_u64Em:
   30|  1.81k|BigInt BigInt::from_u64(uint64_t n) {
   31|  1.81k|   return BigInt(n);
   32|  1.81k|}
_ZN5Botan6BigInt9from_wordEm:
   35|  8.29k|BigInt BigInt::from_word(word n) {
   36|  8.29k|   BigInt bn;
   37|  8.29k|   bn.set_word_at(0, n);
   38|  8.29k|   return bn;
   39|  8.29k|}
_ZN5Botan6BigInt13with_capacityEm:
   51|  1.48M|BigInt BigInt::with_capacity(size_t size) {
   52|  1.48M|   BigInt bn;
   53|  1.48M|   bn.grow_to(size);
   54|  1.48M|   return bn;
   55|  1.48M|}
_ZN5Botan6BigInt11from_stringENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   57|  13.7k|BigInt BigInt::from_string(std::string_view str) {
   58|  13.7k|   size_t prefix_bytes = 0;
   59|  13.7k|   bool negative = false;
   60|  13.7k|   size_t radix = 10;
   61|       |
   62|  13.7k|   if(!str.empty() && str[0] == '-') {
  ------------------
  |  Branch (62:7): [True: 13.7k, False: 0]
  |  Branch (62:23): [True: 0, False: 13.7k]
  ------------------
   63|      0|      prefix_bytes += 1;
   64|      0|      negative = true;
   65|      0|   }
   66|       |
   67|  13.7k|   if(str.length() > prefix_bytes + 2 && str[prefix_bytes] == '0' && str[prefix_bytes + 1] == 'x') {
  ------------------
  |  Branch (67:7): [True: 13.7k, False: 0]
  |  Branch (67:42): [True: 13.7k, False: 0]
  |  Branch (67:70): [True: 13.7k, False: 0]
  ------------------
   68|  13.7k|      prefix_bytes += 2;
   69|  13.7k|      radix = 16;
   70|  13.7k|   }
   71|       |
   72|  13.7k|   BigInt r = BigInt::from_radix_digits(str.substr(prefix_bytes), radix);
   73|       |
   74|  13.7k|   if(negative) {
  ------------------
  |  Branch (74:7): [True: 0, False: 13.7k]
  ------------------
   75|      0|      r.set_sign(Negative);
   76|  13.7k|   } else {
   77|  13.7k|      r.set_sign(Positive);
   78|  13.7k|   }
   79|       |
   80|  13.7k|   return r;
   81|  13.7k|}
_ZN5Botan6BigInt10from_bytesENSt3__14spanIKhLm18446744073709551615EEE:
   83|  21.9k|BigInt BigInt::from_bytes(std::span<const uint8_t> input) {
   84|  21.9k|   BigInt r;
   85|  21.9k|   r.assign_from_bytes(input);
   86|  21.9k|   return r;
   87|  21.9k|}
_ZNK5Botan6BigInt7byte_atEm:
  118|  42.4k|uint8_t BigInt::byte_at(size_t n) const {
  119|  42.4k|   return get_byte_var(sizeof(word) - (n % sizeof(word)) - 1, word_at(n / sizeof(word)));
  120|  42.4k|}
_ZNK5Botan6BigInt8cmp_wordEm:
  122|  91.6k|int32_t BigInt::cmp_word(word other) const {
  123|  91.6k|   if(signum() < 0) {
  ------------------
  |  Branch (123:7): [True: 3.84k, False: 87.7k]
  ------------------
  124|  3.84k|      return -1;  // other is positive ...
  125|  3.84k|   }
  126|       |
  127|  87.7k|   const size_t sw = this->sig_words();
  128|  87.7k|   if(sw > 1) {
  ------------------
  |  Branch (128:7): [True: 54.7k, False: 33.0k]
  ------------------
  129|  54.7k|      return 1;  // must be larger since other is just one word ...
  130|  54.7k|   }
  131|       |
  132|  33.0k|   return bigint_cmp(this->_data(), sw, &other, 1);
  133|  87.7k|}
_ZNK5Botan6BigInt3cmpERKS0_b:
  138|  14.3k|int32_t BigInt::cmp(const BigInt& other, bool check_signs) const {
  139|  14.3k|   if(check_signs) {
  ------------------
  |  Branch (139:7): [True: 14.3k, False: 0]
  ------------------
  140|  14.3k|      if(other.signum() >= 0 && this->signum() < 0) {
  ------------------
  |  Branch (140:10): [True: 14.3k, False: 0]
  |  Branch (140:33): [True: 0, False: 14.3k]
  ------------------
  141|      0|         return -1;
  142|      0|      }
  143|       |
  144|  14.3k|      if(other.signum() < 0 && this->signum() >= 0) {
  ------------------
  |  Branch (144:10): [True: 0, False: 14.3k]
  |  Branch (144:32): [True: 0, False: 0]
  ------------------
  145|      0|         return 1;
  146|      0|      }
  147|       |
  148|  14.3k|      if(other.signum() < 0 && this->signum() < 0) {
  ------------------
  |  Branch (148:10): [True: 0, False: 14.3k]
  |  Branch (148:32): [True: 0, False: 0]
  ------------------
  149|      0|         return (-bigint_cmp(this->_data(), this->size(), other._data(), other.size()));
  150|      0|      }
  151|  14.3k|   }
  152|       |
  153|  14.3k|   return bigint_cmp(this->_data(), this->size(), other._data(), other.size());
  154|  14.3k|}
_ZNK5Botan6BigInt8is_equalERKS0_:
  156|  25.1k|bool BigInt::is_equal(const BigInt& other) const {
  157|  25.1k|   if(this->sign() != other.sign()) {
  ------------------
  |  Branch (157:7): [True: 0, False: 25.1k]
  ------------------
  158|      0|      return false;
  159|      0|   }
  160|       |
  161|  25.1k|   return bigint_ct_is_eq(this->_data(), this->size(), other._data(), other.size()).as_bool();
  162|  25.1k|}
_ZNK5Botan6BigInt12is_less_thanERKS0_:
  164|  20.3k|bool BigInt::is_less_than(const BigInt& other) const {
  165|  20.3k|   if(this->signum() < 0 && other.signum() >= 0) {
  ------------------
  |  Branch (165:7): [True: 0, False: 20.3k]
  |  Branch (165:29): [True: 0, False: 0]
  ------------------
  166|      0|      return true;
  167|      0|   }
  168|       |
  169|  20.3k|   if(this->signum() >= 0 && other.signum() < 0) {
  ------------------
  |  Branch (169:7): [True: 20.3k, False: 0]
  |  Branch (169:30): [True: 0, False: 20.3k]
  ------------------
  170|      0|      return false;
  171|      0|   }
  172|       |
  173|  20.3k|   if(other.signum() < 0 && this->signum() < 0) {
  ------------------
  |  Branch (173:7): [True: 0, False: 20.3k]
  |  Branch (173:29): [True: 0, False: 0]
  ------------------
  174|      0|      return bigint_ct_is_lt(other._data(), other.size(), this->_data(), this->size()).as_bool();
  175|      0|   }
  176|       |
  177|  20.3k|   return bigint_ct_is_lt(this->_data(), this->size(), other._data(), other.size()).as_bool();
  178|  20.3k|}
_ZNK5Botan6BigInt12encode_wordsEPmm:
  180|   393k|void BigInt::encode_words(word out[], size_t size) const {
  181|   393k|   const size_t words = sig_words();
  182|       |
  183|   393k|   if(words > size) {
  ------------------
  |  Branch (183:7): [True: 0, False: 393k]
  ------------------
  184|      0|      throw Encoding_Error("BigInt::encode_words value too large to encode");
  185|      0|   }
  186|       |
  187|   393k|   clear_mem(out, size);
  188|   393k|   copy_mem(out, _data(), words);
  189|   393k|}
_ZN5Botan6BigInt4Data11set_to_zeroEv:
  191|  37.4k|void BigInt::Data::set_to_zero() {
  192|  37.4k|   m_reg.resize(m_reg.capacity());
  193|  37.4k|   clear_mem(m_reg.data(), m_reg.size());
  194|  37.4k|   m_sig_words = 0;
  195|  37.4k|}
_ZNK5Botan6BigInt4Data14calc_sig_wordsEv:
  215|  8.31M|size_t BigInt::Data::calc_sig_words() const {
  216|  8.31M|   const size_t sz = m_reg.size();
  217|  8.31M|   size_t sig = sz;
  218|       |
  219|  8.31M|   word sub = 1;
  220|       |
  221|   116M|   for(size_t i = 0; i != sz; ++i) {
  ------------------
  |  Branch (221:22): [True: 108M, False: 8.31M]
  ------------------
  222|   108M|      const word w = m_reg[sz - i - 1];
  223|   108M|      sub &= ct_is_zero(w);
  224|   108M|      sig -= sub;
  225|   108M|   }
  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|  8.31M|   CT::unpoison(sig);
  232|       |
  233|  8.31M|   return sig;
  234|  8.31M|}
_ZNK5Botan6BigInt13get_substringEmm:
  239|   105k|uint32_t BigInt::get_substring(size_t offset, size_t length) const {
  240|   105k|   if(length == 0 || length > 32) {
  ------------------
  |  Branch (240:7): [True: 0, False: 105k]
  |  Branch (240:22): [True: 0, False: 105k]
  ------------------
  241|      0|      throw Invalid_Argument("BigInt::get_substring invalid substring length");
  242|      0|   }
  243|       |
  244|   105k|   const uint32_t mask = 0xFFFFFFFF >> (32 - length);
  245|       |
  246|   105k|   const size_t word_offset = offset / WordInfo<word>::bits;
  247|   105k|   const size_t wshift = (offset % WordInfo<word>::bits);
  248|       |
  249|       |   /*
  250|       |   * The substring is contained within one or at most two words. The
  251|       |   * offset and length are not secret, so we can perform conditional
  252|       |   * operations on those values.
  253|       |   */
  254|   105k|   const word w0 = word_at(word_offset);
  255|       |
  256|   105k|   if(wshift == 0 || (offset + length) / WordInfo<word>::bits == word_offset) {
  ------------------
  |  Branch (256:7): [True: 6.94k, False: 98.4k]
  |  Branch (256:22): [True: 92.1k, False: 6.28k]
  ------------------
  257|  99.0k|      return static_cast<uint32_t>(w0 >> wshift) & mask;
  258|  99.0k|   } else {
  259|  6.28k|      const word w1 = word_at(word_offset + 1);
  260|  6.28k|      return static_cast<uint32_t>((w0 >> wshift) | (w1 << (WordInfo<word>::bits - wshift))) & mask;
  261|  6.28k|   }
  262|   105k|}
_ZNK5Botan6BigInt5bytesEv:
  294|  2.02k|size_t BigInt::bytes() const {
  295|  2.02k|   return round_up(bits(), 8) / 8;
  296|  2.02k|}
_ZNK5Botan6BigInt13top_bits_freeEv:
  298|  46.2k|size_t BigInt::top_bits_free() const {
  299|  46.2k|   const size_t words = sig_words();
  300|       |
  301|  46.2k|   const word top_word = word_at(words - 1);
  302|  46.2k|   const size_t bits_used = high_bit(CT::value_barrier(top_word));
  303|  46.2k|   CT::unpoison(bits_used);
  304|  46.2k|   return WordInfo<word>::bits - bits_used;
  305|  46.2k|}
_ZNK5Botan6BigInt4bitsEv:
  307|  37.8k|size_t BigInt::bits() const {
  308|  37.8k|   const size_t words = sig_words();
  309|       |
  310|  37.8k|   if(words == 0) {
  ------------------
  |  Branch (310:7): [True: 6.03k, False: 31.7k]
  ------------------
  311|  6.03k|      return 0;
  312|  6.03k|   }
  313|       |
  314|  31.7k|   const size_t full_words = (words - 1) * WordInfo<word>::bits;
  315|  31.7k|   const size_t top_bits = WordInfo<word>::bits - top_bits_free();
  316|       |
  317|  31.7k|   return full_words + top_bits;
  318|  37.8k|}
_ZN5Botan6BigInt12reduce_belowERKS0_RNSt3__16vectorImNS_16secure_allocatorImEEEE:
  329|   351k|size_t BigInt::reduce_below(const BigInt& p, secure_vector<word>& ws) {
  330|   351k|   if(p.signum() < 0 || this->signum() < 0) {
  ------------------
  |  Branch (330:7): [True: 0, False: 351k]
  |  Branch (330:25): [True: 0, False: 351k]
  ------------------
  331|      0|      throw Invalid_Argument("BigInt::reduce_below both values must be positive");
  332|      0|   }
  333|       |
  334|   351k|   const size_t p_words = p.sig_words();
  335|       |
  336|   351k|   if(size() < p_words + 1) {
  ------------------
  |  Branch (336:7): [True: 350, False: 351k]
  ------------------
  337|    350|      grow_to(p_words + 1);
  338|    350|   }
  339|       |
  340|   351k|   if(ws.size() < p_words + 1) {
  ------------------
  |  Branch (340:7): [True: 14.4k, False: 337k]
  ------------------
  341|  14.4k|      ws.resize(p_words + 1);
  342|  14.4k|   }
  343|       |
  344|   351k|   clear_mem(ws.data(), ws.size());
  345|       |
  346|   351k|   size_t reductions = 0;
  347|       |
  348|   896k|   for(;;) {
  349|   896k|      const word borrow = bigint_sub3(ws.data(), _data(), p_words + 1, p._data(), p_words);
  350|   896k|      if(borrow > 0) {
  ------------------
  |  Branch (350:10): [True: 351k, False: 545k]
  ------------------
  351|   351k|         break;
  352|   351k|      }
  353|       |
  354|   545k|      ++reductions;
  355|   545k|      swap_reg(ws);
  356|   545k|   }
  357|       |
  358|   351k|   return reductions;
  359|   351k|}
_ZNK5Botan6BigInt3absEv:
  386|  1.92k|BigInt BigInt::abs() const {
  387|  1.92k|   BigInt x = (*this);
  388|  1.92k|   x.set_sign(Positive);
  389|  1.92k|   return x;
  390|  1.92k|}
_ZNK5Botan6BigInt12serialize_toENSt3__14spanIhLm18446744073709551615EEE:
  395|    925|void BigInt::serialize_to(std::span<uint8_t> output) const {
  396|    925|   BOTAN_ARG_CHECK(this->bytes() <= output.size(), "Insufficient output space");
  ------------------
  |  |   35|    925|   do {                                                          \
  |  |   36|    925|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    925|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 925]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    925|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 925]
  |  |  ------------------
  ------------------
  397|       |
  398|    925|   this->binary_encode(output.data(), output.size());
  399|    925|}
_ZNK5Botan6BigInt13binary_encodeEPhm:
  404|    925|void BigInt::binary_encode(uint8_t output[], size_t len) const {
  405|    925|   const size_t full_words = len / sizeof(word);
  406|    925|   const size_t extra_bytes = len % sizeof(word);
  407|       |
  408|  4.97k|   for(size_t i = 0; i != full_words; ++i) {
  ------------------
  |  Branch (408:22): [True: 4.04k, False: 925]
  ------------------
  409|  4.04k|      const word w = word_at(i);
  410|  4.04k|      store_be(w, output + (len - (i + 1) * sizeof(word)));
  411|  4.04k|   }
  412|       |
  413|    925|   if(extra_bytes > 0) {
  ------------------
  |  Branch (413:7): [True: 537, False: 388]
  ------------------
  414|    537|      const word w = word_at(full_words);
  415|       |
  416|  2.43k|      for(size_t i = 0; i != extra_bytes; ++i) {
  ------------------
  |  Branch (416:25): [True: 1.89k, False: 537]
  ------------------
  417|  1.89k|         output[extra_bytes - i - 1] = get_byte_var(sizeof(word) - i - 1, w);
  418|  1.89k|      }
  419|    537|   }
  420|    925|}
_ZN5Botan6BigInt17assign_from_bytesENSt3__14spanIKhLm18446744073709551615EEE:
  425|  37.4k|void BigInt::assign_from_bytes(std::span<const uint8_t> bytes) {
  426|  37.4k|   clear();
  427|       |
  428|  37.4k|   const size_t length = bytes.size();
  429|  37.4k|   const size_t full_words = length / sizeof(word);
  430|  37.4k|   const size_t extra_bytes = length % sizeof(word);
  431|       |
  432|  37.4k|   secure_vector<word> reg((round_up(full_words + (extra_bytes > 0 ? 1 : 0), 8)));
  ------------------
  |  Branch (432:52): [True: 24.4k, False: 12.9k]
  ------------------
  433|       |
  434|   162k|   for(size_t i = 0; i != full_words; ++i) {
  ------------------
  |  Branch (434:22): [True: 125k, False: 37.4k]
  ------------------
  435|   125k|      reg[i] = load_be<word>(bytes.last<sizeof(word)>());
  436|   125k|      bytes = bytes.first(bytes.size() - sizeof(word));
  437|   125k|   }
  438|       |
  439|  37.4k|   if(!bytes.empty()) {
  ------------------
  |  Branch (439:7): [True: 24.4k, False: 12.9k]
  ------------------
  440|  24.4k|      BOTAN_ASSERT_NOMSG(extra_bytes == bytes.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]
  |  |  ------------------
  ------------------
  441|  24.4k|      std::array<uint8_t, sizeof(word)> last_partial_word = {0};
  442|  24.4k|      copy_mem(std::span{last_partial_word}.last(extra_bytes), bytes);
  443|  24.4k|      reg[full_words] = load_be<word>(last_partial_word);
  444|  24.4k|   }
  445|       |
  446|  37.4k|   m_data.swap(reg);
  447|  37.4k|}
_ZN5Botan6BigInt11ct_cond_addEbRKS0_:
  449|   801k|void BigInt::ct_cond_add(bool predicate, const BigInt& value) {
  450|   801k|   if(this->signum() < 0 || value.signum() < 0) {
  ------------------
  |  Branch (450:7): [True: 0, False: 801k]
  |  Branch (450:29): [True: 0, False: 801k]
  ------------------
  451|      0|      throw Invalid_Argument("BigInt::ct_cond_add requires both values to be positive");
  452|      0|   }
  453|   801k|   const size_t v_words = value.sig_words();
  454|       |
  455|       |   // The carry can propagate through every existing word of *this, so the
  456|       |   // output needs one slot above whichever input is wider.
  457|   801k|   this->grow_to(std::max(this->size(), v_words) + 1);
  458|       |
  459|   801k|   const auto mask = CT::Mask<word>::expand(static_cast<word>(predicate)).value();
  460|       |
  461|   801k|   word carry = 0;
  462|       |
  463|   801k|   word* x = this->mutable_data();
  464|   801k|   const word* y = value._data();
  465|       |
  466|  5.26M|   for(size_t i = 0; i != v_words; ++i) {
  ------------------
  |  Branch (466:22): [True: 4.46M, False: 801k]
  ------------------
  467|  4.46M|      x[i] = word_add(x[i], y[i] & mask, &carry);
  468|  4.46M|   }
  469|       |
  470|  10.8M|   for(size_t i = v_words; i != size(); ++i) {
  ------------------
  |  Branch (470:28): [True: 10.0M, False: 801k]
  ------------------
  471|  10.0M|      x[i] = word_add(x[i], static_cast<word>(0), &carry);
  472|  10.0M|   }
  473|   801k|}
_ZN5Botan6BigInt14cond_flip_signEb:
  521|   541k|void BigInt::cond_flip_sign(bool predicate) {
  522|       |   // This code is assuming Negative == 0, Positive == 1
  523|       |
  524|   541k|   const auto mask = CT::Mask<uint8_t>::expand_bool(predicate);
  525|       |
  526|   541k|   const uint8_t current_sign = static_cast<uint8_t>(sign());
  527|       |
  528|   541k|   const uint8_t new_sign = mask.select(current_sign ^ 1, current_sign);
  529|       |
  530|   541k|   set_sign(static_cast<Sign>(new_sign));
  531|   541k|}
_ZN5Botan6BigInt14ct_cond_assignEbRKS0_:
  533|   534k|void BigInt::ct_cond_assign(bool predicate, const BigInt& other) {
  534|   534k|   const size_t t_words = size();
  535|   534k|   const size_t o_words = other.size();
  536|       |
  537|   534k|   if(t_words < o_words) {
  ------------------
  |  Branch (537:7): [True: 534k, False: 0]
  ------------------
  538|   534k|      grow_to(o_words);
  539|   534k|   }
  540|       |
  541|   534k|   const size_t r_words = std::max(t_words, o_words);
  542|       |
  543|   534k|   const auto mask = CT::Mask<word>::expand_bool(predicate);
  544|       |
  545|  10.2M|   for(size_t i = 0; i != r_words; ++i) {
  ------------------
  |  Branch (545:22): [True: 9.70M, False: 534k]
  ------------------
  546|  9.70M|      const word o_word = other.word_at(i);
  547|  9.70M|      const word t_word = this->word_at(i);
  548|  9.70M|      this->set_word_at(i, mask.select(o_word, t_word));
  549|  9.70M|   }
  550|       |
  551|   534k|   const auto same_sign = CT::Mask<word>::is_equal(sign(), other.sign()).as_choice();
  552|   534k|   cond_flip_sign((mask.as_choice() && !same_sign).as_bool());
  553|   534k|}
_ZNK5Botan6BigInt20_const_time_unpoisonEv:
  559|  5.32M|void BigInt::_const_time_unpoison() const {
  560|  5.32M|   CT::unpoison(m_data.const_data(), m_data.size());
  561|  5.32M|}

_ZN5Botan15ct_divide_pow2kEmRKNS_6BigIntE:
   89|    684|BigInt ct_divide_pow2k(size_t k, const BigInt& y) {
   90|    684|   BOTAN_ARG_CHECK(y.signum() != 0, "Cannot divide by zero");
  ------------------
  |  |   35|    684|   do {                                                          \
  |  |   36|    684|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    684|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 684]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    684|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 684]
  |  |  ------------------
  ------------------
   91|    684|   BOTAN_ARG_CHECK(y.signum() >= 0, "Negative divisor not supported");
  ------------------
  |  |   35|    684|   do {                                                          \
  |  |   36|    684|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    684|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 684]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    684|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 684]
  |  |  ------------------
  ------------------
   92|    684|   BOTAN_ARG_CHECK(k > 1, "Invalid k");
  ------------------
  |  |   35|    684|   do {                                                          \
  |  |   36|    684|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    684|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 684]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    684|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 684]
  |  |  ------------------
  ------------------
   93|       |
   94|    684|   const size_t x_bits = k + 1;
   95|    684|   const size_t y_bits = y.bits();
   96|       |
   97|    684|   if(x_bits < y_bits) {
  ------------------
  |  Branch (97:7): [True: 0, False: 684]
  ------------------
   98|      0|      return BigInt::zero();
   99|      0|   }
  100|       |
  101|    684|   BOTAN_ASSERT_NOMSG(y_bits >= 1);
  ------------------
  |  |   77|    684|   do {                                                                     \
  |  |   78|    684|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|    684|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 684]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|    684|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 684]
  |  |  ------------------
  ------------------
  102|    684|   const size_t x_words = (x_bits + WordInfo<word>::bits - 1) / WordInfo<word>::bits;
  103|    684|   const size_t y_words = y.sig_words();
  104|       |
  105|    684|   BigInt q = BigInt::with_capacity(x_words);
  106|    684|   BigInt r = BigInt::with_capacity(y_words + 1);
  107|    684|   BigInt t = BigInt::with_capacity(y_words + 1);  // a temporary
  108|       |
  109|    684|   r.set_bit(y_bits - 1);
  110|   192k|   for(size_t i = y_bits - 1; i != x_bits; ++i) {
  ------------------
  |  Branch (110:31): [True: 191k, False: 684]
  ------------------
  111|   191k|      const size_t b = x_bits - 1 - i;
  112|       |
  113|   191k|      if(i >= y_bits) {
  ------------------
  |  Branch (113:10): [True: 190k, False: 684]
  ------------------
  114|   190k|         bigint_shl1(r.mutable_data(), r.size(), r.size(), 1);
  115|   190k|      }
  116|       |
  117|   191k|      const bool r_gte_y = bigint_sub3(t.mutable_data(), r._data(), r.size(), y._data(), y_words) == 0;
  118|       |
  119|   191k|      q.conditionally_set_bit(b, r_gte_y);
  120|       |
  121|   191k|      bigint_cnd_swap(static_cast<word>(r_gte_y), r.mutable_data(), t.mutable_data(), y_words + 1);
  122|   191k|   }
  123|       |
  124|       |   // No need for sign fixup
  125|       |
  126|    684|   return q;
  127|    684|}
_ZN5Botan14ct_divide_wordERKNS_6BigIntEmRS0_Rm:
  129|  1.02k|void ct_divide_word(const BigInt& x, word y, BigInt& q_out, word& r_out) {
  130|  1.02k|   if(y == 0) {
  ------------------
  |  Branch (130:7): [True: 0, False: 1.02k]
  ------------------
  131|      0|      throw Invalid_Argument("ct_divide_word: cannot divide by zero");
  132|      0|   }
  133|       |
  134|  1.02k|   const size_t x_words = x.sig_words();
  135|  1.02k|   const size_t x_bits = x.bits();
  136|       |
  137|  1.02k|   BigInt q = BigInt::with_capacity(x_words);
  138|  1.02k|   word r = 0;
  139|       |
  140|   254k|   for(size_t i = 0; i != x_bits; ++i) {
  ------------------
  |  Branch (140:22): [True: 253k, False: 1.02k]
  ------------------
  141|   253k|      const size_t b = x_bits - 1 - i;
  142|   253k|      const bool x_b = x.get_bit(b);
  143|       |
  144|   253k|      const auto r_carry = CT::Mask<word>::expand_top_bit(r);
  145|       |
  146|   253k|      r <<= 1;
  147|   253k|      r += static_cast<word>(x_b);
  148|       |
  149|   253k|      const auto r_gte_y = CT::Mask<word>::is_gte(r, y) | r_carry;
  150|   253k|      q.conditionally_set_bit(b, r_gte_y.as_bool());
  151|   253k|      r = r_gte_y.select(r - y, r);
  152|   253k|   }
  153|       |
  154|  1.02k|   if(x.signum() < 0) {
  ------------------
  |  Branch (154:7): [True: 0, False: 1.02k]
  ------------------
  155|      0|      q.flip_sign();
  156|      0|      if(r != 0) {
  ------------------
  |  Branch (156:10): [True: 0, False: 0]
  ------------------
  157|      0|         --q;
  158|      0|         r = y - r;
  159|      0|      }
  160|      0|   }
  161|       |
  162|  1.02k|   r_out = r;
  163|  1.02k|   q_out = q;
  164|  1.02k|}
_ZN5Botan20vartime_divide_pow2kEmRKNS_6BigIntE:
  232|  9.29k|BigInt vartime_divide_pow2k(size_t k, const BigInt& y_arg) {
  233|  9.29k|   constexpr size_t WB = WordInfo<word>::bits;
  234|       |
  235|  9.29k|   BOTAN_ARG_CHECK(y_arg.signum() != 0, "Cannot divide by zero");
  ------------------
  |  |   35|  9.29k|   do {                                                          \
  |  |   36|  9.29k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  9.29k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 9.29k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  9.29k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 9.29k]
  |  |  ------------------
  ------------------
  236|  9.29k|   BOTAN_ARG_CHECK(y_arg.signum() >= 0, "Negative divisor not supported");
  ------------------
  |  |   35|  9.29k|   do {                                                          \
  |  |   36|  9.29k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  9.29k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 9.29k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  9.29k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 9.29k]
  |  |  ------------------
  ------------------
  237|  9.29k|   BOTAN_ARG_CHECK(k > 1, "Invalid k");
  ------------------
  |  |   35|  9.29k|   do {                                                          \
  |  |   36|  9.29k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  9.29k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 9.29k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  9.29k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 9.29k]
  |  |  ------------------
  ------------------
  238|       |
  239|  9.29k|   BigInt y = y_arg;
  240|       |
  241|  9.29k|   const size_t y_words = y.sig_words();
  242|       |
  243|  9.29k|   BOTAN_ASSERT_NOMSG(y_words > 0);
  ------------------
  |  |   77|  9.29k|   do {                                                                     \
  |  |   78|  9.29k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  9.29k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 9.29k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  9.29k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 9.29k]
  |  |  ------------------
  ------------------
  244|       |
  245|       |   // Calculate shifts needed to normalize y with high bit set
  246|  9.29k|   const size_t shifts = y.top_bits_free();
  247|       |
  248|  9.29k|   if(shifts > 0) {
  ------------------
  |  Branch (248:7): [True: 4.19k, False: 5.09k]
  ------------------
  249|  4.19k|      y <<= shifts;
  250|  4.19k|   }
  251|       |
  252|  9.29k|   BigInt r;
  253|  9.29k|   r.set_bit(k + shifts);  // (2^k) << shifts
  254|       |
  255|       |   // we know y has not changed size, since we only shifted up to set high bit
  256|  9.29k|   const size_t t = y_words - 1;
  257|  9.29k|   const size_t n = std::max(y_words, r.sig_words()) - 1;
  258|       |
  259|  9.29k|   BOTAN_ASSERT_NOMSG(n >= t);
  ------------------
  |  |   77|  9.29k|   do {                                                                     \
  |  |   78|  9.29k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  9.29k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 9.29k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  9.29k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 9.29k]
  |  |  ------------------
  ------------------
  260|       |
  261|  9.29k|   BigInt q = BigInt::zero();
  262|  9.29k|   q.grow_to(n - t + 1);
  263|       |
  264|  9.29k|   word* q_words = q.mutable_data();
  265|       |
  266|  9.29k|   BigInt shifted_y = y << (WB * (n - t));
  267|       |
  268|       |   // Set q_{n-t} to number of times r > shifted_y
  269|  9.29k|   secure_vector<word> ws;
  270|  9.29k|   q_words[n - t] = r.reduce_below(shifted_y, ws);
  271|       |
  272|  9.29k|   const word y_t0 = y.word_at(t);
  273|  9.29k|   const word y_t1 = y.word_at(t - 1);
  274|  9.29k|   BOTAN_DEBUG_ASSERT((y_t0 >> (WB - 1)) == 1);
  ------------------
  |  |  130|  9.29k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  9.29k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 9.29k]
  |  |  ------------------
  ------------------
  275|       |
  276|  9.29k|   const divide_precomp div_y_t0(y_t0);
  277|       |
  278|  69.8k|   for(size_t i = n; i != t; --i) {
  ------------------
  |  Branch (278:22): [True: 60.5k, False: 9.29k]
  ------------------
  279|  60.5k|      const word x_i0 = r.word_at(i);
  280|  60.5k|      const word x_i1 = r.word_at(i - 1);
  281|  60.5k|      const word x_i2 = r.word_at(i - 2);
  282|       |
  283|  60.5k|      word qit = (x_i0 == y_t0) ? WordInfo<word>::max : div_y_t0.vartime_div_2to1(x_i0, x_i1);
  ------------------
  |  Branch (283:18): [True: 690, False: 59.8k]
  ------------------
  284|       |
  285|       |      // Per HAC 14.23, this operation is required at most twice
  286|  69.5k|      for(size_t j = 0; j != 2; ++j) {
  ------------------
  |  Branch (286:25): [True: 69.2k, False: 326]
  ------------------
  287|  69.2k|         if(division_check_vartime(qit, y_t0, y_t1, x_i0, x_i1, x_i2)) {
  ------------------
  |  Branch (287:13): [True: 8.96k, False: 60.2k]
  ------------------
  288|  8.96k|            BOTAN_ASSERT_NOMSG(qit > 0);
  ------------------
  |  |   77|  8.96k|   do {                                                                     \
  |  |   78|  8.96k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  8.96k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 8.96k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  8.96k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 8.96k]
  |  |  ------------------
  ------------------
  289|  8.96k|            qit--;
  290|  60.2k|         } else {
  291|  60.2k|            break;
  292|  60.2k|         }
  293|  69.2k|      }
  294|       |
  295|  60.5k|      shifted_y >>= WB;
  296|       |      // Now shifted_y == y << (WB * (i-t-1))
  297|       |
  298|       |      /*
  299|       |      * Special case qit == 0 and qit == 1 which occurs relatively often here due to a
  300|       |      * combination of the fixed 2^k and in many cases the typical structure of
  301|       |      * public moduli (as this function is called by Barrett_Reduction::for_public_modulus).
  302|       |      *
  303|       |      * Over the test suite, about 5% of loop iterations have qit == 1 and 10% have qit == 0
  304|       |      */
  305|       |
  306|  60.5k|      if(qit != 0) {
  ------------------
  |  Branch (306:10): [True: 47.6k, False: 12.9k]
  ------------------
  307|  47.6k|         if(qit == 1) {
  ------------------
  |  Branch (307:13): [True: 5.75k, False: 41.9k]
  ------------------
  308|  5.75k|            r -= shifted_y;
  309|  41.9k|         } else {
  310|  41.9k|            r -= qit * shifted_y;
  311|  41.9k|         }
  312|       |
  313|  47.6k|         if(r.signum() < 0) {
  ------------------
  |  Branch (313:13): [True: 48, False: 47.6k]
  ------------------
  314|     48|            BOTAN_ASSERT_NOMSG(qit > 0);
  ------------------
  |  |   77|     48|   do {                                                                     \
  |  |   78|     48|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|     48|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 48]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|     48|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 48]
  |  |  ------------------
  ------------------
  315|     48|            qit--;
  316|     48|            r += shifted_y;
  317|     48|            BOTAN_ASSERT_NOMSG(r.signum() >= 0);
  ------------------
  |  |   77|     48|   do {                                                                     \
  |  |   78|     48|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|     48|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 48]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|     48|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 48]
  |  |  ------------------
  ------------------
  318|     48|         }
  319|  47.6k|      }
  320|       |
  321|  60.5k|      q_words[i - t - 1] = qit;
  322|  60.5k|   }
  323|       |
  324|  9.29k|   return q;
  325|  9.29k|}
_ZN5Botan14vartime_divideERKNS_6BigIntES2_RS0_S3_:
  332|  5.12k|void vartime_divide(const BigInt& x, const BigInt& y_arg, BigInt& q_out, BigInt& r_out) {
  333|  5.12k|   constexpr size_t WB = WordInfo<word>::bits;
  334|       |
  335|  5.12k|   if(y_arg.is_zero()) {
  ------------------
  |  Branch (335:7): [True: 0, False: 5.12k]
  ------------------
  336|      0|      throw Invalid_Argument("vartime_divide: cannot divide by zero");
  337|      0|   }
  338|       |
  339|  5.12k|   const size_t y_words = y_arg.sig_words();
  340|       |
  341|  5.12k|   BOTAN_ASSERT_NOMSG(y_words > 0);
  ------------------
  |  |   77|  5.12k|   do {                                                                     \
  |  |   78|  5.12k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  5.12k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 5.12k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  5.12k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 5.12k]
  |  |  ------------------
  ------------------
  342|       |
  343|  5.12k|   BigInt y = y_arg;
  344|       |
  345|  5.12k|   BigInt r = x;
  346|  5.12k|   BigInt q = BigInt::zero();
  347|  5.12k|   secure_vector<word> ws;
  348|       |
  349|  5.12k|   r.set_sign(BigInt::Positive);
  350|  5.12k|   y.set_sign(BigInt::Positive);
  351|       |
  352|       |   // Calculate shifts needed to normalize y with high bit set
  353|  5.12k|   const size_t shifts = y.top_bits_free();
  354|       |
  355|  5.12k|   if(shifts > 0) {
  ------------------
  |  Branch (355:7): [True: 4.04k, False: 1.07k]
  ------------------
  356|  4.04k|      y <<= shifts;
  357|  4.04k|      r <<= shifts;
  358|  4.04k|   }
  359|       |
  360|       |   // we know y has not changed size, since we only shifted up to set high bit
  361|  5.12k|   const size_t t = y_words - 1;
  362|  5.12k|   const size_t n = std::max(y_words, r.sig_words()) - 1;  // r may have changed size however
  363|       |
  364|  5.12k|   BOTAN_ASSERT_NOMSG(n >= t);
  ------------------
  |  |   77|  5.12k|   do {                                                                     \
  |  |   78|  5.12k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  5.12k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 5.12k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  5.12k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 5.12k]
  |  |  ------------------
  ------------------
  365|       |
  366|  5.12k|   q.grow_to(n - t + 1);
  367|       |
  368|  5.12k|   word* q_words = q.mutable_data();
  369|       |
  370|  5.12k|   BigInt shifted_y = y << (WB * (n - t));
  371|       |
  372|       |   // Set q_{n-t} to number of times r > shifted_y
  373|  5.12k|   q_words[n - t] = r.reduce_below(shifted_y, ws);
  374|       |
  375|  5.12k|   const word y_t0 = y.word_at(t);
  376|  5.12k|   const word y_t1 = y.word_at(t - 1);
  377|  5.12k|   BOTAN_DEBUG_ASSERT((y_t0 >> (WB - 1)) == 1);
  ------------------
  |  |  130|  5.12k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  5.12k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 5.12k]
  |  |  ------------------
  ------------------
  378|       |
  379|  5.12k|   const divide_precomp div_y_t0(y_t0);
  380|       |
  381|  11.1k|   for(size_t i = n; i != t; --i) {
  ------------------
  |  Branch (381:22): [True: 5.99k, False: 5.12k]
  ------------------
  382|  5.99k|      const word x_i0 = r.word_at(i);
  383|  5.99k|      const word x_i1 = r.word_at(i - 1);
  384|  5.99k|      const word x_i2 = r.word_at(i - 2);
  385|       |
  386|  5.99k|      word qit = (x_i0 == y_t0) ? WordInfo<word>::max : div_y_t0.vartime_div_2to1(x_i0, x_i1);
  ------------------
  |  Branch (386:18): [True: 113, False: 5.87k]
  ------------------
  387|       |
  388|       |      // Per HAC 14.23, this operation is required at most twice
  389|  6.95k|      for(size_t j = 0; j != 2; ++j) {
  ------------------
  |  Branch (389:25): [True: 6.91k, False: 35]
  ------------------
  390|  6.91k|         if(division_check_vartime(qit, y_t0, y_t1, x_i0, x_i1, x_i2)) {
  ------------------
  |  Branch (390:13): [True: 961, False: 5.95k]
  ------------------
  391|    961|            BOTAN_ASSERT_NOMSG(qit > 0);
  ------------------
  |  |   77|    961|   do {                                                                     \
  |  |   78|    961|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|    961|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 961]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|    961|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 961]
  |  |  ------------------
  ------------------
  392|    961|            qit--;
  393|  5.95k|         } else {
  394|  5.95k|            break;
  395|  5.95k|         }
  396|  6.91k|      }
  397|       |
  398|  5.99k|      shifted_y >>= WB;
  399|       |      // Now shifted_y == y << (WB * (i-t-1))
  400|       |
  401|  5.99k|      if(qit != 0) {
  ------------------
  |  Branch (401:10): [True: 5.93k, False: 56]
  ------------------
  402|  5.93k|         r -= qit * shifted_y;
  403|  5.93k|         if(r.signum() < 0) {
  ------------------
  |  Branch (403:13): [True: 47, False: 5.88k]
  ------------------
  404|     47|            BOTAN_ASSERT_NOMSG(qit > 0);
  ------------------
  |  |   77|     47|   do {                                                                     \
  |  |   78|     47|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|     47|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 47]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|     47|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 47]
  |  |  ------------------
  ------------------
  405|     47|            qit--;
  406|     47|            r += shifted_y;
  407|     47|            BOTAN_ASSERT_NOMSG(r.signum() >= 0);
  ------------------
  |  |   77|     47|   do {                                                                     \
  |  |   78|     47|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|     47|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 47]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|     47|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 47]
  |  |  ------------------
  ------------------
  408|     47|         }
  409|  5.93k|      }
  410|       |
  411|  5.99k|      q_words[i - t - 1] = qit;
  412|  5.99k|   }
  413|       |
  414|  5.12k|   if(shifts > 0) {
  ------------------
  |  Branch (414:7): [True: 4.04k, False: 1.07k]
  ------------------
  415|  4.04k|      r >>= shifts;
  416|  4.04k|   }
  417|       |
  418|  5.12k|   sign_fixup(x, y_arg, q, r);
  419|       |
  420|  5.12k|   r_out = r;
  421|  5.12k|   q_out = q;
  422|  5.12k|}
divide.cpp:_ZN5Botan12_GLOBAL__N_110sign_fixupERKNS_6BigIntES3_RS1_S4_:
   21|  5.12k|void sign_fixup(const BigInt& x, const BigInt& y, BigInt& q, BigInt& r) {
   22|  5.12k|   q.cond_flip_sign(x.sign() != y.sign());
   23|       |
   24|  5.12k|   if(x.signum() < 0 && r.signum() != 0) {
  ------------------
  |  Branch (24:7): [True: 1.92k, False: 3.19k]
  |  Branch (24:25): [True: 1.92k, False: 0]
  ------------------
   25|  1.92k|      if(y.signum() > 0) {
  ------------------
  |  Branch (25:10): [True: 1.92k, False: 0]
  ------------------
   26|  1.92k|         q -= 1;
   27|  1.92k|      } else {
   28|      0|         q += 1;
   29|      0|      }
   30|  1.92k|      r = y.abs() - r;
   31|  1.92k|   }
   32|  5.12k|}
divide.cpp:_ZN5Botan12_GLOBAL__N_122division_check_vartimeEmmmmmm:
   34|  76.1k|inline bool division_check_vartime(word q, word y2, word y1, word x3, word x2, word x1) {
   35|       |   /*
   36|       |   Compute (y3,y2,y1) = (y2,y1) * q
   37|       |   and return true if (y3,y2,y1) > (x3,x2,x1)
   38|       |   */
   39|       |
   40|  76.1k|   word y3 = 0;
   41|  76.1k|   y1 = word_madd2(q, y1, &y3);
   42|  76.1k|   y2 = word_madd2(q, y2, &y3);
   43|       |
   44|  76.1k|   if(x3 != y3) {
  ------------------
  |  Branch (44:7): [True: 33.9k, False: 42.1k]
  ------------------
   45|  33.9k|      return (y3 > x3);
   46|  33.9k|   }
   47|  42.1k|   if(x2 != y2) {
  ------------------
  |  Branch (47:7): [True: 30.5k, False: 11.6k]
  ------------------
   48|  30.5k|      return (y2 > x2);
   49|  30.5k|   }
   50|  11.6k|   return (y1 > x1);
   51|  42.1k|}

_ZN5Botan17bigint_comba_sqr4EPmPKm:
   17|  2.38M|void bigint_comba_sqr4(word z[8], const word x[4]) {
   18|  2.38M|   word3<word> accum;
   19|       |
   20|  2.38M|   accum.mul(x[0], x[0]);
   21|  2.38M|   z[0] = accum.extract();
   22|  2.38M|   accum.mul_x2(x[0], x[1]);
   23|  2.38M|   z[1] = accum.extract();
   24|  2.38M|   accum.mul_x2(x[0], x[2]);
   25|  2.38M|   accum.mul(x[1], x[1]);
   26|  2.38M|   z[2] = accum.extract();
   27|  2.38M|   accum.mul_x2(x[0], x[3]);
   28|  2.38M|   accum.mul_x2(x[1], x[2]);
   29|  2.38M|   z[3] = accum.extract();
   30|  2.38M|   accum.mul_x2(x[1], x[3]);
   31|  2.38M|   accum.mul(x[2], x[2]);
   32|  2.38M|   z[4] = accum.extract();
   33|  2.38M|   accum.mul_x2(x[2], x[3]);
   34|  2.38M|   z[5] = accum.extract();
   35|  2.38M|   accum.mul(x[3], x[3]);
   36|  2.38M|   z[6] = accum.extract();
   37|  2.38M|   z[7] = accum.extract();
   38|  2.38M|}
_ZN5Botan17bigint_comba_mul4EPmPKmS2_:
   43|  5.05M|void bigint_comba_mul4(word z[8], const word x[4], const word y[4]) {
   44|  5.05M|   word3<word> accum;
   45|       |
   46|  5.05M|   accum.mul(x[0], y[0]);
   47|  5.05M|   z[0] = accum.extract();
   48|  5.05M|   accum.mul(x[0], y[1]);
   49|  5.05M|   accum.mul(x[1], y[0]);
   50|  5.05M|   z[1] = accum.extract();
   51|  5.05M|   accum.mul(x[0], y[2]);
   52|  5.05M|   accum.mul(x[1], y[1]);
   53|  5.05M|   accum.mul(x[2], y[0]);
   54|  5.05M|   z[2] = accum.extract();
   55|  5.05M|   accum.mul(x[0], y[3]);
   56|  5.05M|   accum.mul(x[1], y[2]);
   57|  5.05M|   accum.mul(x[2], y[1]);
   58|  5.05M|   accum.mul(x[3], y[0]);
   59|  5.05M|   z[3] = accum.extract();
   60|  5.05M|   accum.mul(x[1], y[3]);
   61|  5.05M|   accum.mul(x[2], y[2]);
   62|  5.05M|   accum.mul(x[3], y[1]);
   63|  5.05M|   z[4] = accum.extract();
   64|  5.05M|   accum.mul(x[2], y[3]);
   65|  5.05M|   accum.mul(x[3], y[2]);
   66|  5.05M|   z[5] = accum.extract();
   67|  5.05M|   accum.mul(x[3], y[3]);
   68|  5.05M|   z[6] = accum.extract();
   69|  5.05M|   z[7] = accum.extract();
   70|  5.05M|}
_ZN5Botan17bigint_comba_sqr6EPmPKm:
   75|   202k|void bigint_comba_sqr6(word z[12], const word x[6]) {
   76|   202k|   word3<word> accum;
   77|       |
   78|   202k|   accum.mul(x[0], x[0]);
   79|   202k|   z[0] = accum.extract();
   80|   202k|   accum.mul_x2(x[0], x[1]);
   81|   202k|   z[1] = accum.extract();
   82|   202k|   accum.mul_x2(x[0], x[2]);
   83|   202k|   accum.mul(x[1], x[1]);
   84|   202k|   z[2] = accum.extract();
   85|   202k|   accum.mul_x2(x[0], x[3]);
   86|   202k|   accum.mul_x2(x[1], x[2]);
   87|   202k|   z[3] = accum.extract();
   88|   202k|   accum.mul_x2(x[0], x[4]);
   89|   202k|   accum.mul_x2(x[1], x[3]);
   90|   202k|   accum.mul(x[2], x[2]);
   91|   202k|   z[4] = accum.extract();
   92|   202k|   accum.mul_x2(x[0], x[5]);
   93|   202k|   accum.mul_x2(x[1], x[4]);
   94|   202k|   accum.mul_x2(x[2], x[3]);
   95|   202k|   z[5] = accum.extract();
   96|   202k|   accum.mul_x2(x[1], x[5]);
   97|   202k|   accum.mul_x2(x[2], x[4]);
   98|   202k|   accum.mul(x[3], x[3]);
   99|   202k|   z[6] = accum.extract();
  100|   202k|   accum.mul_x2(x[2], x[5]);
  101|   202k|   accum.mul_x2(x[3], x[4]);
  102|   202k|   z[7] = accum.extract();
  103|   202k|   accum.mul_x2(x[3], x[5]);
  104|   202k|   accum.mul(x[4], x[4]);
  105|   202k|   z[8] = accum.extract();
  106|   202k|   accum.mul_x2(x[4], x[5]);
  107|   202k|   z[9] = accum.extract();
  108|   202k|   accum.mul(x[5], x[5]);
  109|   202k|   z[10] = accum.extract();
  110|   202k|   z[11] = accum.extract();
  111|   202k|}
_ZN5Botan17bigint_comba_mul6EPmPKmS2_:
  116|  3.81M|void bigint_comba_mul6(word z[12], const word x[6], const word y[6]) {
  117|  3.81M|   word3<word> accum;
  118|       |
  119|  3.81M|   accum.mul(x[0], y[0]);
  120|  3.81M|   z[0] = accum.extract();
  121|  3.81M|   accum.mul(x[0], y[1]);
  122|  3.81M|   accum.mul(x[1], y[0]);
  123|  3.81M|   z[1] = accum.extract();
  124|  3.81M|   accum.mul(x[0], y[2]);
  125|  3.81M|   accum.mul(x[1], y[1]);
  126|  3.81M|   accum.mul(x[2], y[0]);
  127|  3.81M|   z[2] = accum.extract();
  128|  3.81M|   accum.mul(x[0], y[3]);
  129|  3.81M|   accum.mul(x[1], y[2]);
  130|  3.81M|   accum.mul(x[2], y[1]);
  131|  3.81M|   accum.mul(x[3], y[0]);
  132|  3.81M|   z[3] = accum.extract();
  133|  3.81M|   accum.mul(x[0], y[4]);
  134|  3.81M|   accum.mul(x[1], y[3]);
  135|  3.81M|   accum.mul(x[2], y[2]);
  136|  3.81M|   accum.mul(x[3], y[1]);
  137|  3.81M|   accum.mul(x[4], y[0]);
  138|  3.81M|   z[4] = accum.extract();
  139|  3.81M|   accum.mul(x[0], y[5]);
  140|  3.81M|   accum.mul(x[1], y[4]);
  141|  3.81M|   accum.mul(x[2], y[3]);
  142|  3.81M|   accum.mul(x[3], y[2]);
  143|  3.81M|   accum.mul(x[4], y[1]);
  144|  3.81M|   accum.mul(x[5], y[0]);
  145|  3.81M|   z[5] = accum.extract();
  146|  3.81M|   accum.mul(x[1], y[5]);
  147|  3.81M|   accum.mul(x[2], y[4]);
  148|  3.81M|   accum.mul(x[3], y[3]);
  149|  3.81M|   accum.mul(x[4], y[2]);
  150|  3.81M|   accum.mul(x[5], y[1]);
  151|  3.81M|   z[6] = accum.extract();
  152|  3.81M|   accum.mul(x[2], y[5]);
  153|  3.81M|   accum.mul(x[3], y[4]);
  154|  3.81M|   accum.mul(x[4], y[3]);
  155|  3.81M|   accum.mul(x[5], y[2]);
  156|  3.81M|   z[7] = accum.extract();
  157|  3.81M|   accum.mul(x[3], y[5]);
  158|  3.81M|   accum.mul(x[4], y[4]);
  159|  3.81M|   accum.mul(x[5], y[3]);
  160|  3.81M|   z[8] = accum.extract();
  161|  3.81M|   accum.mul(x[4], y[5]);
  162|  3.81M|   accum.mul(x[5], y[4]);
  163|  3.81M|   z[9] = accum.extract();
  164|  3.81M|   accum.mul(x[5], y[5]);
  165|  3.81M|   z[10] = accum.extract();
  166|  3.81M|   z[11] = accum.extract();
  167|  3.81M|}
_ZN5Botan17bigint_comba_sqr7EPmPKm:
  172|  8.61k|void bigint_comba_sqr7(word z[14], const word x[7]) {
  173|  8.61k|   word3<word> accum;
  174|       |
  175|  8.61k|   accum.mul(x[0], x[0]);
  176|  8.61k|   z[0] = accum.extract();
  177|  8.61k|   accum.mul_x2(x[0], x[1]);
  178|  8.61k|   z[1] = accum.extract();
  179|  8.61k|   accum.mul_x2(x[0], x[2]);
  180|  8.61k|   accum.mul(x[1], x[1]);
  181|  8.61k|   z[2] = accum.extract();
  182|  8.61k|   accum.mul_x2(x[0], x[3]);
  183|  8.61k|   accum.mul_x2(x[1], x[2]);
  184|  8.61k|   z[3] = accum.extract();
  185|  8.61k|   accum.mul_x2(x[0], x[4]);
  186|  8.61k|   accum.mul_x2(x[1], x[3]);
  187|  8.61k|   accum.mul(x[2], x[2]);
  188|  8.61k|   z[4] = accum.extract();
  189|  8.61k|   accum.mul_x2(x[0], x[5]);
  190|  8.61k|   accum.mul_x2(x[1], x[4]);
  191|  8.61k|   accum.mul_x2(x[2], x[3]);
  192|  8.61k|   z[5] = accum.extract();
  193|  8.61k|   accum.mul_x2(x[0], x[6]);
  194|  8.61k|   accum.mul_x2(x[1], x[5]);
  195|  8.61k|   accum.mul_x2(x[2], x[4]);
  196|  8.61k|   accum.mul(x[3], x[3]);
  197|  8.61k|   z[6] = accum.extract();
  198|  8.61k|   accum.mul_x2(x[1], x[6]);
  199|  8.61k|   accum.mul_x2(x[2], x[5]);
  200|  8.61k|   accum.mul_x2(x[3], x[4]);
  201|  8.61k|   z[7] = accum.extract();
  202|  8.61k|   accum.mul_x2(x[2], x[6]);
  203|  8.61k|   accum.mul_x2(x[3], x[5]);
  204|  8.61k|   accum.mul(x[4], x[4]);
  205|  8.61k|   z[8] = accum.extract();
  206|  8.61k|   accum.mul_x2(x[3], x[6]);
  207|  8.61k|   accum.mul_x2(x[4], x[5]);
  208|  8.61k|   z[9] = accum.extract();
  209|  8.61k|   accum.mul_x2(x[4], x[6]);
  210|  8.61k|   accum.mul(x[5], x[5]);
  211|  8.61k|   z[10] = accum.extract();
  212|  8.61k|   accum.mul_x2(x[5], x[6]);
  213|  8.61k|   z[11] = accum.extract();
  214|  8.61k|   accum.mul(x[6], x[6]);
  215|  8.61k|   z[12] = accum.extract();
  216|  8.61k|   z[13] = accum.extract();
  217|  8.61k|}
_ZN5Botan17bigint_comba_mul7EPmPKmS2_:
  222|  15.0k|void bigint_comba_mul7(word z[14], const word x[7], const word y[7]) {
  223|  15.0k|   word3<word> accum;
  224|       |
  225|  15.0k|   accum.mul(x[0], y[0]);
  226|  15.0k|   z[0] = accum.extract();
  227|  15.0k|   accum.mul(x[0], y[1]);
  228|  15.0k|   accum.mul(x[1], y[0]);
  229|  15.0k|   z[1] = accum.extract();
  230|  15.0k|   accum.mul(x[0], y[2]);
  231|  15.0k|   accum.mul(x[1], y[1]);
  232|  15.0k|   accum.mul(x[2], y[0]);
  233|  15.0k|   z[2] = accum.extract();
  234|  15.0k|   accum.mul(x[0], y[3]);
  235|  15.0k|   accum.mul(x[1], y[2]);
  236|  15.0k|   accum.mul(x[2], y[1]);
  237|  15.0k|   accum.mul(x[3], y[0]);
  238|  15.0k|   z[3] = accum.extract();
  239|  15.0k|   accum.mul(x[0], y[4]);
  240|  15.0k|   accum.mul(x[1], y[3]);
  241|  15.0k|   accum.mul(x[2], y[2]);
  242|  15.0k|   accum.mul(x[3], y[1]);
  243|  15.0k|   accum.mul(x[4], y[0]);
  244|  15.0k|   z[4] = accum.extract();
  245|  15.0k|   accum.mul(x[0], y[5]);
  246|  15.0k|   accum.mul(x[1], y[4]);
  247|  15.0k|   accum.mul(x[2], y[3]);
  248|  15.0k|   accum.mul(x[3], y[2]);
  249|  15.0k|   accum.mul(x[4], y[1]);
  250|  15.0k|   accum.mul(x[5], y[0]);
  251|  15.0k|   z[5] = accum.extract();
  252|  15.0k|   accum.mul(x[0], y[6]);
  253|  15.0k|   accum.mul(x[1], y[5]);
  254|  15.0k|   accum.mul(x[2], y[4]);
  255|  15.0k|   accum.mul(x[3], y[3]);
  256|  15.0k|   accum.mul(x[4], y[2]);
  257|  15.0k|   accum.mul(x[5], y[1]);
  258|  15.0k|   accum.mul(x[6], y[0]);
  259|  15.0k|   z[6] = accum.extract();
  260|  15.0k|   accum.mul(x[1], y[6]);
  261|  15.0k|   accum.mul(x[2], y[5]);
  262|  15.0k|   accum.mul(x[3], y[4]);
  263|  15.0k|   accum.mul(x[4], y[3]);
  264|  15.0k|   accum.mul(x[5], y[2]);
  265|  15.0k|   accum.mul(x[6], y[1]);
  266|  15.0k|   z[7] = accum.extract();
  267|  15.0k|   accum.mul(x[2], y[6]);
  268|  15.0k|   accum.mul(x[3], y[5]);
  269|  15.0k|   accum.mul(x[4], y[4]);
  270|  15.0k|   accum.mul(x[5], y[3]);
  271|  15.0k|   accum.mul(x[6], y[2]);
  272|  15.0k|   z[8] = accum.extract();
  273|  15.0k|   accum.mul(x[3], y[6]);
  274|  15.0k|   accum.mul(x[4], y[5]);
  275|  15.0k|   accum.mul(x[5], y[4]);
  276|  15.0k|   accum.mul(x[6], y[3]);
  277|  15.0k|   z[9] = accum.extract();
  278|  15.0k|   accum.mul(x[4], y[6]);
  279|  15.0k|   accum.mul(x[5], y[5]);
  280|  15.0k|   accum.mul(x[6], y[4]);
  281|  15.0k|   z[10] = accum.extract();
  282|  15.0k|   accum.mul(x[5], y[6]);
  283|  15.0k|   accum.mul(x[6], y[5]);
  284|  15.0k|   z[11] = accum.extract();
  285|  15.0k|   accum.mul(x[6], y[6]);
  286|  15.0k|   z[12] = accum.extract();
  287|  15.0k|   z[13] = accum.extract();
  288|  15.0k|}
_ZN5Botan17bigint_comba_sqr8EPmPKm:
  293|   153k|void bigint_comba_sqr8(word z[16], const word x[8]) {
  294|   153k|   word3<word> accum;
  295|       |
  296|   153k|   accum.mul(x[0], x[0]);
  297|   153k|   z[0] = accum.extract();
  298|   153k|   accum.mul_x2(x[0], x[1]);
  299|   153k|   z[1] = accum.extract();
  300|   153k|   accum.mul_x2(x[0], x[2]);
  301|   153k|   accum.mul(x[1], x[1]);
  302|   153k|   z[2] = accum.extract();
  303|   153k|   accum.mul_x2(x[0], x[3]);
  304|   153k|   accum.mul_x2(x[1], x[2]);
  305|   153k|   z[3] = accum.extract();
  306|   153k|   accum.mul_x2(x[0], x[4]);
  307|   153k|   accum.mul_x2(x[1], x[3]);
  308|   153k|   accum.mul(x[2], x[2]);
  309|   153k|   z[4] = accum.extract();
  310|   153k|   accum.mul_x2(x[0], x[5]);
  311|   153k|   accum.mul_x2(x[1], x[4]);
  312|   153k|   accum.mul_x2(x[2], x[3]);
  313|   153k|   z[5] = accum.extract();
  314|   153k|   accum.mul_x2(x[0], x[6]);
  315|   153k|   accum.mul_x2(x[1], x[5]);
  316|   153k|   accum.mul_x2(x[2], x[4]);
  317|   153k|   accum.mul(x[3], x[3]);
  318|   153k|   z[6] = accum.extract();
  319|   153k|   accum.mul_x2(x[0], x[7]);
  320|   153k|   accum.mul_x2(x[1], x[6]);
  321|   153k|   accum.mul_x2(x[2], x[5]);
  322|   153k|   accum.mul_x2(x[3], x[4]);
  323|   153k|   z[7] = accum.extract();
  324|   153k|   accum.mul_x2(x[1], x[7]);
  325|   153k|   accum.mul_x2(x[2], x[6]);
  326|   153k|   accum.mul_x2(x[3], x[5]);
  327|   153k|   accum.mul(x[4], x[4]);
  328|   153k|   z[8] = accum.extract();
  329|   153k|   accum.mul_x2(x[2], x[7]);
  330|   153k|   accum.mul_x2(x[3], x[6]);
  331|   153k|   accum.mul_x2(x[4], x[5]);
  332|   153k|   z[9] = accum.extract();
  333|   153k|   accum.mul_x2(x[3], x[7]);
  334|   153k|   accum.mul_x2(x[4], x[6]);
  335|   153k|   accum.mul(x[5], x[5]);
  336|   153k|   z[10] = accum.extract();
  337|   153k|   accum.mul_x2(x[4], x[7]);
  338|   153k|   accum.mul_x2(x[5], x[6]);
  339|   153k|   z[11] = accum.extract();
  340|   153k|   accum.mul_x2(x[5], x[7]);
  341|   153k|   accum.mul(x[6], x[6]);
  342|   153k|   z[12] = accum.extract();
  343|   153k|   accum.mul_x2(x[6], x[7]);
  344|   153k|   z[13] = accum.extract();
  345|   153k|   accum.mul(x[7], x[7]);
  346|   153k|   z[14] = accum.extract();
  347|   153k|   z[15] = accum.extract();
  348|   153k|}
_ZN5Botan17bigint_comba_mul8EPmPKmS2_:
  353|   187k|void bigint_comba_mul8(word z[16], const word x[8], const word y[8]) {
  354|   187k|   word3<word> accum;
  355|       |
  356|   187k|   accum.mul(x[0], y[0]);
  357|   187k|   z[0] = accum.extract();
  358|   187k|   accum.mul(x[0], y[1]);
  359|   187k|   accum.mul(x[1], y[0]);
  360|   187k|   z[1] = accum.extract();
  361|   187k|   accum.mul(x[0], y[2]);
  362|   187k|   accum.mul(x[1], y[1]);
  363|   187k|   accum.mul(x[2], y[0]);
  364|   187k|   z[2] = accum.extract();
  365|   187k|   accum.mul(x[0], y[3]);
  366|   187k|   accum.mul(x[1], y[2]);
  367|   187k|   accum.mul(x[2], y[1]);
  368|   187k|   accum.mul(x[3], y[0]);
  369|   187k|   z[3] = accum.extract();
  370|   187k|   accum.mul(x[0], y[4]);
  371|   187k|   accum.mul(x[1], y[3]);
  372|   187k|   accum.mul(x[2], y[2]);
  373|   187k|   accum.mul(x[3], y[1]);
  374|   187k|   accum.mul(x[4], y[0]);
  375|   187k|   z[4] = accum.extract();
  376|   187k|   accum.mul(x[0], y[5]);
  377|   187k|   accum.mul(x[1], y[4]);
  378|   187k|   accum.mul(x[2], y[3]);
  379|   187k|   accum.mul(x[3], y[2]);
  380|   187k|   accum.mul(x[4], y[1]);
  381|   187k|   accum.mul(x[5], y[0]);
  382|   187k|   z[5] = accum.extract();
  383|   187k|   accum.mul(x[0], y[6]);
  384|   187k|   accum.mul(x[1], y[5]);
  385|   187k|   accum.mul(x[2], y[4]);
  386|   187k|   accum.mul(x[3], y[3]);
  387|   187k|   accum.mul(x[4], y[2]);
  388|   187k|   accum.mul(x[5], y[1]);
  389|   187k|   accum.mul(x[6], y[0]);
  390|   187k|   z[6] = accum.extract();
  391|   187k|   accum.mul(x[0], y[7]);
  392|   187k|   accum.mul(x[1], y[6]);
  393|   187k|   accum.mul(x[2], y[5]);
  394|   187k|   accum.mul(x[3], y[4]);
  395|   187k|   accum.mul(x[4], y[3]);
  396|   187k|   accum.mul(x[5], y[2]);
  397|   187k|   accum.mul(x[6], y[1]);
  398|   187k|   accum.mul(x[7], y[0]);
  399|   187k|   z[7] = accum.extract();
  400|   187k|   accum.mul(x[1], y[7]);
  401|   187k|   accum.mul(x[2], y[6]);
  402|   187k|   accum.mul(x[3], y[5]);
  403|   187k|   accum.mul(x[4], y[4]);
  404|   187k|   accum.mul(x[5], y[3]);
  405|   187k|   accum.mul(x[6], y[2]);
  406|   187k|   accum.mul(x[7], y[1]);
  407|   187k|   z[8] = accum.extract();
  408|   187k|   accum.mul(x[2], y[7]);
  409|   187k|   accum.mul(x[3], y[6]);
  410|   187k|   accum.mul(x[4], y[5]);
  411|   187k|   accum.mul(x[5], y[4]);
  412|   187k|   accum.mul(x[6], y[3]);
  413|   187k|   accum.mul(x[7], y[2]);
  414|   187k|   z[9] = accum.extract();
  415|   187k|   accum.mul(x[3], y[7]);
  416|   187k|   accum.mul(x[4], y[6]);
  417|   187k|   accum.mul(x[5], y[5]);
  418|   187k|   accum.mul(x[6], y[4]);
  419|   187k|   accum.mul(x[7], y[3]);
  420|   187k|   z[10] = accum.extract();
  421|   187k|   accum.mul(x[4], y[7]);
  422|   187k|   accum.mul(x[5], y[6]);
  423|   187k|   accum.mul(x[6], y[5]);
  424|   187k|   accum.mul(x[7], y[4]);
  425|   187k|   z[11] = accum.extract();
  426|   187k|   accum.mul(x[5], y[7]);
  427|   187k|   accum.mul(x[6], y[6]);
  428|   187k|   accum.mul(x[7], y[5]);
  429|   187k|   z[12] = accum.extract();
  430|   187k|   accum.mul(x[6], y[7]);
  431|   187k|   accum.mul(x[7], y[6]);
  432|   187k|   z[13] = accum.extract();
  433|   187k|   accum.mul(x[7], y[7]);
  434|   187k|   z[14] = accum.extract();
  435|   187k|   z[15] = accum.extract();
  436|   187k|}
_ZN5Botan17bigint_comba_sqr9EPmPKm:
  441|   715k|void bigint_comba_sqr9(word z[18], const word x[9]) {
  442|   715k|   word3<word> accum;
  443|       |
  444|   715k|   accum.mul(x[0], x[0]);
  445|   715k|   z[0] = accum.extract();
  446|   715k|   accum.mul_x2(x[0], x[1]);
  447|   715k|   z[1] = accum.extract();
  448|   715k|   accum.mul_x2(x[0], x[2]);
  449|   715k|   accum.mul(x[1], x[1]);
  450|   715k|   z[2] = accum.extract();
  451|   715k|   accum.mul_x2(x[0], x[3]);
  452|   715k|   accum.mul_x2(x[1], x[2]);
  453|   715k|   z[3] = accum.extract();
  454|   715k|   accum.mul_x2(x[0], x[4]);
  455|   715k|   accum.mul_x2(x[1], x[3]);
  456|   715k|   accum.mul(x[2], x[2]);
  457|   715k|   z[4] = accum.extract();
  458|   715k|   accum.mul_x2(x[0], x[5]);
  459|   715k|   accum.mul_x2(x[1], x[4]);
  460|   715k|   accum.mul_x2(x[2], x[3]);
  461|   715k|   z[5] = accum.extract();
  462|   715k|   accum.mul_x2(x[0], x[6]);
  463|   715k|   accum.mul_x2(x[1], x[5]);
  464|   715k|   accum.mul_x2(x[2], x[4]);
  465|   715k|   accum.mul(x[3], x[3]);
  466|   715k|   z[6] = accum.extract();
  467|   715k|   accum.mul_x2(x[0], x[7]);
  468|   715k|   accum.mul_x2(x[1], x[6]);
  469|   715k|   accum.mul_x2(x[2], x[5]);
  470|   715k|   accum.mul_x2(x[3], x[4]);
  471|   715k|   z[7] = accum.extract();
  472|   715k|   accum.mul_x2(x[0], x[8]);
  473|   715k|   accum.mul_x2(x[1], x[7]);
  474|   715k|   accum.mul_x2(x[2], x[6]);
  475|   715k|   accum.mul_x2(x[3], x[5]);
  476|   715k|   accum.mul(x[4], x[4]);
  477|   715k|   z[8] = accum.extract();
  478|   715k|   accum.mul_x2(x[1], x[8]);
  479|   715k|   accum.mul_x2(x[2], x[7]);
  480|   715k|   accum.mul_x2(x[3], x[6]);
  481|   715k|   accum.mul_x2(x[4], x[5]);
  482|   715k|   z[9] = accum.extract();
  483|   715k|   accum.mul_x2(x[2], x[8]);
  484|   715k|   accum.mul_x2(x[3], x[7]);
  485|   715k|   accum.mul_x2(x[4], x[6]);
  486|   715k|   accum.mul(x[5], x[5]);
  487|   715k|   z[10] = accum.extract();
  488|   715k|   accum.mul_x2(x[3], x[8]);
  489|   715k|   accum.mul_x2(x[4], x[7]);
  490|   715k|   accum.mul_x2(x[5], x[6]);
  491|   715k|   z[11] = accum.extract();
  492|   715k|   accum.mul_x2(x[4], x[8]);
  493|   715k|   accum.mul_x2(x[5], x[7]);
  494|   715k|   accum.mul(x[6], x[6]);
  495|   715k|   z[12] = accum.extract();
  496|   715k|   accum.mul_x2(x[5], x[8]);
  497|   715k|   accum.mul_x2(x[6], x[7]);
  498|   715k|   z[13] = accum.extract();
  499|   715k|   accum.mul_x2(x[6], x[8]);
  500|   715k|   accum.mul(x[7], x[7]);
  501|   715k|   z[14] = accum.extract();
  502|   715k|   accum.mul_x2(x[7], x[8]);
  503|   715k|   z[15] = accum.extract();
  504|   715k|   accum.mul(x[8], x[8]);
  505|   715k|   z[16] = accum.extract();
  506|   715k|   z[17] = accum.extract();
  507|   715k|}
_ZN5Botan17bigint_comba_mul9EPmPKmS2_:
  512|  1.24M|void bigint_comba_mul9(word z[18], const word x[9], const word y[9]) {
  513|  1.24M|   word3<word> accum;
  514|       |
  515|  1.24M|   accum.mul(x[0], y[0]);
  516|  1.24M|   z[0] = accum.extract();
  517|  1.24M|   accum.mul(x[0], y[1]);
  518|  1.24M|   accum.mul(x[1], y[0]);
  519|  1.24M|   z[1] = accum.extract();
  520|  1.24M|   accum.mul(x[0], y[2]);
  521|  1.24M|   accum.mul(x[1], y[1]);
  522|  1.24M|   accum.mul(x[2], y[0]);
  523|  1.24M|   z[2] = accum.extract();
  524|  1.24M|   accum.mul(x[0], y[3]);
  525|  1.24M|   accum.mul(x[1], y[2]);
  526|  1.24M|   accum.mul(x[2], y[1]);
  527|  1.24M|   accum.mul(x[3], y[0]);
  528|  1.24M|   z[3] = accum.extract();
  529|  1.24M|   accum.mul(x[0], y[4]);
  530|  1.24M|   accum.mul(x[1], y[3]);
  531|  1.24M|   accum.mul(x[2], y[2]);
  532|  1.24M|   accum.mul(x[3], y[1]);
  533|  1.24M|   accum.mul(x[4], y[0]);
  534|  1.24M|   z[4] = accum.extract();
  535|  1.24M|   accum.mul(x[0], y[5]);
  536|  1.24M|   accum.mul(x[1], y[4]);
  537|  1.24M|   accum.mul(x[2], y[3]);
  538|  1.24M|   accum.mul(x[3], y[2]);
  539|  1.24M|   accum.mul(x[4], y[1]);
  540|  1.24M|   accum.mul(x[5], y[0]);
  541|  1.24M|   z[5] = accum.extract();
  542|  1.24M|   accum.mul(x[0], y[6]);
  543|  1.24M|   accum.mul(x[1], y[5]);
  544|  1.24M|   accum.mul(x[2], y[4]);
  545|  1.24M|   accum.mul(x[3], y[3]);
  546|  1.24M|   accum.mul(x[4], y[2]);
  547|  1.24M|   accum.mul(x[5], y[1]);
  548|  1.24M|   accum.mul(x[6], y[0]);
  549|  1.24M|   z[6] = accum.extract();
  550|  1.24M|   accum.mul(x[0], y[7]);
  551|  1.24M|   accum.mul(x[1], y[6]);
  552|  1.24M|   accum.mul(x[2], y[5]);
  553|  1.24M|   accum.mul(x[3], y[4]);
  554|  1.24M|   accum.mul(x[4], y[3]);
  555|  1.24M|   accum.mul(x[5], y[2]);
  556|  1.24M|   accum.mul(x[6], y[1]);
  557|  1.24M|   accum.mul(x[7], y[0]);
  558|  1.24M|   z[7] = accum.extract();
  559|  1.24M|   accum.mul(x[0], y[8]);
  560|  1.24M|   accum.mul(x[1], y[7]);
  561|  1.24M|   accum.mul(x[2], y[6]);
  562|  1.24M|   accum.mul(x[3], y[5]);
  563|  1.24M|   accum.mul(x[4], y[4]);
  564|  1.24M|   accum.mul(x[5], y[3]);
  565|  1.24M|   accum.mul(x[6], y[2]);
  566|  1.24M|   accum.mul(x[7], y[1]);
  567|  1.24M|   accum.mul(x[8], y[0]);
  568|  1.24M|   z[8] = accum.extract();
  569|  1.24M|   accum.mul(x[1], y[8]);
  570|  1.24M|   accum.mul(x[2], y[7]);
  571|  1.24M|   accum.mul(x[3], y[6]);
  572|  1.24M|   accum.mul(x[4], y[5]);
  573|  1.24M|   accum.mul(x[5], y[4]);
  574|  1.24M|   accum.mul(x[6], y[3]);
  575|  1.24M|   accum.mul(x[7], y[2]);
  576|  1.24M|   accum.mul(x[8], y[1]);
  577|  1.24M|   z[9] = accum.extract();
  578|  1.24M|   accum.mul(x[2], y[8]);
  579|  1.24M|   accum.mul(x[3], y[7]);
  580|  1.24M|   accum.mul(x[4], y[6]);
  581|  1.24M|   accum.mul(x[5], y[5]);
  582|  1.24M|   accum.mul(x[6], y[4]);
  583|  1.24M|   accum.mul(x[7], y[3]);
  584|  1.24M|   accum.mul(x[8], y[2]);
  585|  1.24M|   z[10] = accum.extract();
  586|  1.24M|   accum.mul(x[3], y[8]);
  587|  1.24M|   accum.mul(x[4], y[7]);
  588|  1.24M|   accum.mul(x[5], y[6]);
  589|  1.24M|   accum.mul(x[6], y[5]);
  590|  1.24M|   accum.mul(x[7], y[4]);
  591|  1.24M|   accum.mul(x[8], y[3]);
  592|  1.24M|   z[11] = accum.extract();
  593|  1.24M|   accum.mul(x[4], y[8]);
  594|  1.24M|   accum.mul(x[5], y[7]);
  595|  1.24M|   accum.mul(x[6], y[6]);
  596|  1.24M|   accum.mul(x[7], y[5]);
  597|  1.24M|   accum.mul(x[8], y[4]);
  598|  1.24M|   z[12] = accum.extract();
  599|  1.24M|   accum.mul(x[5], y[8]);
  600|  1.24M|   accum.mul(x[6], y[7]);
  601|  1.24M|   accum.mul(x[7], y[6]);
  602|  1.24M|   accum.mul(x[8], y[5]);
  603|  1.24M|   z[13] = accum.extract();
  604|  1.24M|   accum.mul(x[6], y[8]);
  605|  1.24M|   accum.mul(x[7], y[7]);
  606|  1.24M|   accum.mul(x[8], y[6]);
  607|  1.24M|   z[14] = accum.extract();
  608|  1.24M|   accum.mul(x[7], y[8]);
  609|  1.24M|   accum.mul(x[8], y[7]);
  610|  1.24M|   z[15] = accum.extract();
  611|  1.24M|   accum.mul(x[8], y[8]);
  612|  1.24M|   z[16] = accum.extract();
  613|  1.24M|   z[17] = accum.extract();
  614|  1.24M|}
_ZN5Botan18bigint_comba_sqr16EPmPKm:
  619|    976|void bigint_comba_sqr16(word z[32], const word x[16]) {
  620|    976|   word3<word> accum;
  621|       |
  622|    976|   accum.mul(x[0], x[0]);
  623|    976|   z[0] = accum.extract();
  624|    976|   accum.mul_x2(x[0], x[1]);
  625|    976|   z[1] = accum.extract();
  626|    976|   accum.mul_x2(x[0], x[2]);
  627|    976|   accum.mul(x[1], x[1]);
  628|    976|   z[2] = accum.extract();
  629|    976|   accum.mul_x2(x[0], x[3]);
  630|    976|   accum.mul_x2(x[1], x[2]);
  631|    976|   z[3] = accum.extract();
  632|    976|   accum.mul_x2(x[0], x[4]);
  633|    976|   accum.mul_x2(x[1], x[3]);
  634|    976|   accum.mul(x[2], x[2]);
  635|    976|   z[4] = accum.extract();
  636|    976|   accum.mul_x2(x[0], x[5]);
  637|    976|   accum.mul_x2(x[1], x[4]);
  638|    976|   accum.mul_x2(x[2], x[3]);
  639|    976|   z[5] = accum.extract();
  640|    976|   accum.mul_x2(x[0], x[6]);
  641|    976|   accum.mul_x2(x[1], x[5]);
  642|    976|   accum.mul_x2(x[2], x[4]);
  643|    976|   accum.mul(x[3], x[3]);
  644|    976|   z[6] = accum.extract();
  645|    976|   accum.mul_x2(x[0], x[7]);
  646|    976|   accum.mul_x2(x[1], x[6]);
  647|    976|   accum.mul_x2(x[2], x[5]);
  648|    976|   accum.mul_x2(x[3], x[4]);
  649|    976|   z[7] = accum.extract();
  650|    976|   accum.mul_x2(x[0], x[8]);
  651|    976|   accum.mul_x2(x[1], x[7]);
  652|    976|   accum.mul_x2(x[2], x[6]);
  653|    976|   accum.mul_x2(x[3], x[5]);
  654|    976|   accum.mul(x[4], x[4]);
  655|    976|   z[8] = accum.extract();
  656|    976|   accum.mul_x2(x[0], x[9]);
  657|    976|   accum.mul_x2(x[1], x[8]);
  658|    976|   accum.mul_x2(x[2], x[7]);
  659|    976|   accum.mul_x2(x[3], x[6]);
  660|    976|   accum.mul_x2(x[4], x[5]);
  661|    976|   z[9] = accum.extract();
  662|    976|   accum.mul_x2(x[0], x[10]);
  663|    976|   accum.mul_x2(x[1], x[9]);
  664|    976|   accum.mul_x2(x[2], x[8]);
  665|    976|   accum.mul_x2(x[3], x[7]);
  666|    976|   accum.mul_x2(x[4], x[6]);
  667|    976|   accum.mul(x[5], x[5]);
  668|    976|   z[10] = accum.extract();
  669|    976|   accum.mul_x2(x[0], x[11]);
  670|    976|   accum.mul_x2(x[1], x[10]);
  671|    976|   accum.mul_x2(x[2], x[9]);
  672|    976|   accum.mul_x2(x[3], x[8]);
  673|    976|   accum.mul_x2(x[4], x[7]);
  674|    976|   accum.mul_x2(x[5], x[6]);
  675|    976|   z[11] = accum.extract();
  676|    976|   accum.mul_x2(x[0], x[12]);
  677|    976|   accum.mul_x2(x[1], x[11]);
  678|    976|   accum.mul_x2(x[2], x[10]);
  679|    976|   accum.mul_x2(x[3], x[9]);
  680|    976|   accum.mul_x2(x[4], x[8]);
  681|    976|   accum.mul_x2(x[5], x[7]);
  682|    976|   accum.mul(x[6], x[6]);
  683|    976|   z[12] = accum.extract();
  684|    976|   accum.mul_x2(x[0], x[13]);
  685|    976|   accum.mul_x2(x[1], x[12]);
  686|    976|   accum.mul_x2(x[2], x[11]);
  687|    976|   accum.mul_x2(x[3], x[10]);
  688|    976|   accum.mul_x2(x[4], x[9]);
  689|    976|   accum.mul_x2(x[5], x[8]);
  690|    976|   accum.mul_x2(x[6], x[7]);
  691|    976|   z[13] = accum.extract();
  692|    976|   accum.mul_x2(x[0], x[14]);
  693|    976|   accum.mul_x2(x[1], x[13]);
  694|    976|   accum.mul_x2(x[2], x[12]);
  695|    976|   accum.mul_x2(x[3], x[11]);
  696|    976|   accum.mul_x2(x[4], x[10]);
  697|    976|   accum.mul_x2(x[5], x[9]);
  698|    976|   accum.mul_x2(x[6], x[8]);
  699|    976|   accum.mul(x[7], x[7]);
  700|    976|   z[14] = accum.extract();
  701|    976|   accum.mul_x2(x[0], x[15]);
  702|    976|   accum.mul_x2(x[1], x[14]);
  703|    976|   accum.mul_x2(x[2], x[13]);
  704|    976|   accum.mul_x2(x[3], x[12]);
  705|    976|   accum.mul_x2(x[4], x[11]);
  706|    976|   accum.mul_x2(x[5], x[10]);
  707|    976|   accum.mul_x2(x[6], x[9]);
  708|    976|   accum.mul_x2(x[7], x[8]);
  709|    976|   z[15] = accum.extract();
  710|    976|   accum.mul_x2(x[1], x[15]);
  711|    976|   accum.mul_x2(x[2], x[14]);
  712|    976|   accum.mul_x2(x[3], x[13]);
  713|    976|   accum.mul_x2(x[4], x[12]);
  714|    976|   accum.mul_x2(x[5], x[11]);
  715|    976|   accum.mul_x2(x[6], x[10]);
  716|    976|   accum.mul_x2(x[7], x[9]);
  717|    976|   accum.mul(x[8], x[8]);
  718|    976|   z[16] = accum.extract();
  719|    976|   accum.mul_x2(x[2], x[15]);
  720|    976|   accum.mul_x2(x[3], x[14]);
  721|    976|   accum.mul_x2(x[4], x[13]);
  722|    976|   accum.mul_x2(x[5], x[12]);
  723|    976|   accum.mul_x2(x[6], x[11]);
  724|    976|   accum.mul_x2(x[7], x[10]);
  725|    976|   accum.mul_x2(x[8], x[9]);
  726|    976|   z[17] = accum.extract();
  727|    976|   accum.mul_x2(x[3], x[15]);
  728|    976|   accum.mul_x2(x[4], x[14]);
  729|    976|   accum.mul_x2(x[5], x[13]);
  730|    976|   accum.mul_x2(x[6], x[12]);
  731|    976|   accum.mul_x2(x[7], x[11]);
  732|    976|   accum.mul_x2(x[8], x[10]);
  733|    976|   accum.mul(x[9], x[9]);
  734|    976|   z[18] = accum.extract();
  735|    976|   accum.mul_x2(x[4], x[15]);
  736|    976|   accum.mul_x2(x[5], x[14]);
  737|    976|   accum.mul_x2(x[6], x[13]);
  738|    976|   accum.mul_x2(x[7], x[12]);
  739|    976|   accum.mul_x2(x[8], x[11]);
  740|    976|   accum.mul_x2(x[9], x[10]);
  741|    976|   z[19] = accum.extract();
  742|    976|   accum.mul_x2(x[5], x[15]);
  743|    976|   accum.mul_x2(x[6], x[14]);
  744|    976|   accum.mul_x2(x[7], x[13]);
  745|    976|   accum.mul_x2(x[8], x[12]);
  746|    976|   accum.mul_x2(x[9], x[11]);
  747|    976|   accum.mul(x[10], x[10]);
  748|    976|   z[20] = accum.extract();
  749|    976|   accum.mul_x2(x[6], x[15]);
  750|    976|   accum.mul_x2(x[7], x[14]);
  751|    976|   accum.mul_x2(x[8], x[13]);
  752|    976|   accum.mul_x2(x[9], x[12]);
  753|    976|   accum.mul_x2(x[10], x[11]);
  754|    976|   z[21] = accum.extract();
  755|    976|   accum.mul_x2(x[7], x[15]);
  756|    976|   accum.mul_x2(x[8], x[14]);
  757|    976|   accum.mul_x2(x[9], x[13]);
  758|    976|   accum.mul_x2(x[10], x[12]);
  759|    976|   accum.mul(x[11], x[11]);
  760|    976|   z[22] = accum.extract();
  761|    976|   accum.mul_x2(x[8], x[15]);
  762|    976|   accum.mul_x2(x[9], x[14]);
  763|    976|   accum.mul_x2(x[10], x[13]);
  764|    976|   accum.mul_x2(x[11], x[12]);
  765|    976|   z[23] = accum.extract();
  766|    976|   accum.mul_x2(x[9], x[15]);
  767|    976|   accum.mul_x2(x[10], x[14]);
  768|    976|   accum.mul_x2(x[11], x[13]);
  769|    976|   accum.mul(x[12], x[12]);
  770|    976|   z[24] = accum.extract();
  771|    976|   accum.mul_x2(x[10], x[15]);
  772|    976|   accum.mul_x2(x[11], x[14]);
  773|    976|   accum.mul_x2(x[12], x[13]);
  774|    976|   z[25] = accum.extract();
  775|    976|   accum.mul_x2(x[11], x[15]);
  776|    976|   accum.mul_x2(x[12], x[14]);
  777|    976|   accum.mul(x[13], x[13]);
  778|    976|   z[26] = accum.extract();
  779|    976|   accum.mul_x2(x[12], x[15]);
  780|    976|   accum.mul_x2(x[13], x[14]);
  781|    976|   z[27] = accum.extract();
  782|    976|   accum.mul_x2(x[13], x[15]);
  783|    976|   accum.mul(x[14], x[14]);
  784|    976|   z[28] = accum.extract();
  785|    976|   accum.mul_x2(x[14], x[15]);
  786|    976|   z[29] = accum.extract();
  787|    976|   accum.mul(x[15], x[15]);
  788|    976|   z[30] = accum.extract();
  789|    976|   z[31] = accum.extract();
  790|    976|}
_ZN5Botan18bigint_comba_mul16EPmPKmS2_:
  795|    993|void bigint_comba_mul16(word z[32], const word x[16], const word y[16]) {
  796|    993|   word3<word> accum;
  797|       |
  798|    993|   accum.mul(x[0], y[0]);
  799|    993|   z[0] = accum.extract();
  800|    993|   accum.mul(x[0], y[1]);
  801|    993|   accum.mul(x[1], y[0]);
  802|    993|   z[1] = accum.extract();
  803|    993|   accum.mul(x[0], y[2]);
  804|    993|   accum.mul(x[1], y[1]);
  805|    993|   accum.mul(x[2], y[0]);
  806|    993|   z[2] = accum.extract();
  807|    993|   accum.mul(x[0], y[3]);
  808|    993|   accum.mul(x[1], y[2]);
  809|    993|   accum.mul(x[2], y[1]);
  810|    993|   accum.mul(x[3], y[0]);
  811|    993|   z[3] = accum.extract();
  812|    993|   accum.mul(x[0], y[4]);
  813|    993|   accum.mul(x[1], y[3]);
  814|    993|   accum.mul(x[2], y[2]);
  815|    993|   accum.mul(x[3], y[1]);
  816|    993|   accum.mul(x[4], y[0]);
  817|    993|   z[4] = accum.extract();
  818|    993|   accum.mul(x[0], y[5]);
  819|    993|   accum.mul(x[1], y[4]);
  820|    993|   accum.mul(x[2], y[3]);
  821|    993|   accum.mul(x[3], y[2]);
  822|    993|   accum.mul(x[4], y[1]);
  823|    993|   accum.mul(x[5], y[0]);
  824|    993|   z[5] = accum.extract();
  825|    993|   accum.mul(x[0], y[6]);
  826|    993|   accum.mul(x[1], y[5]);
  827|    993|   accum.mul(x[2], y[4]);
  828|    993|   accum.mul(x[3], y[3]);
  829|    993|   accum.mul(x[4], y[2]);
  830|    993|   accum.mul(x[5], y[1]);
  831|    993|   accum.mul(x[6], y[0]);
  832|    993|   z[6] = accum.extract();
  833|    993|   accum.mul(x[0], y[7]);
  834|    993|   accum.mul(x[1], y[6]);
  835|    993|   accum.mul(x[2], y[5]);
  836|    993|   accum.mul(x[3], y[4]);
  837|    993|   accum.mul(x[4], y[3]);
  838|    993|   accum.mul(x[5], y[2]);
  839|    993|   accum.mul(x[6], y[1]);
  840|    993|   accum.mul(x[7], y[0]);
  841|    993|   z[7] = accum.extract();
  842|    993|   accum.mul(x[0], y[8]);
  843|    993|   accum.mul(x[1], y[7]);
  844|    993|   accum.mul(x[2], y[6]);
  845|    993|   accum.mul(x[3], y[5]);
  846|    993|   accum.mul(x[4], y[4]);
  847|    993|   accum.mul(x[5], y[3]);
  848|    993|   accum.mul(x[6], y[2]);
  849|    993|   accum.mul(x[7], y[1]);
  850|    993|   accum.mul(x[8], y[0]);
  851|    993|   z[8] = accum.extract();
  852|    993|   accum.mul(x[0], y[9]);
  853|    993|   accum.mul(x[1], y[8]);
  854|    993|   accum.mul(x[2], y[7]);
  855|    993|   accum.mul(x[3], y[6]);
  856|    993|   accum.mul(x[4], y[5]);
  857|    993|   accum.mul(x[5], y[4]);
  858|    993|   accum.mul(x[6], y[3]);
  859|    993|   accum.mul(x[7], y[2]);
  860|    993|   accum.mul(x[8], y[1]);
  861|    993|   accum.mul(x[9], y[0]);
  862|    993|   z[9] = accum.extract();
  863|    993|   accum.mul(x[0], y[10]);
  864|    993|   accum.mul(x[1], y[9]);
  865|    993|   accum.mul(x[2], y[8]);
  866|    993|   accum.mul(x[3], y[7]);
  867|    993|   accum.mul(x[4], y[6]);
  868|    993|   accum.mul(x[5], y[5]);
  869|    993|   accum.mul(x[6], y[4]);
  870|    993|   accum.mul(x[7], y[3]);
  871|    993|   accum.mul(x[8], y[2]);
  872|    993|   accum.mul(x[9], y[1]);
  873|    993|   accum.mul(x[10], y[0]);
  874|    993|   z[10] = accum.extract();
  875|    993|   accum.mul(x[0], y[11]);
  876|    993|   accum.mul(x[1], y[10]);
  877|    993|   accum.mul(x[2], y[9]);
  878|    993|   accum.mul(x[3], y[8]);
  879|    993|   accum.mul(x[4], y[7]);
  880|    993|   accum.mul(x[5], y[6]);
  881|    993|   accum.mul(x[6], y[5]);
  882|    993|   accum.mul(x[7], y[4]);
  883|    993|   accum.mul(x[8], y[3]);
  884|    993|   accum.mul(x[9], y[2]);
  885|    993|   accum.mul(x[10], y[1]);
  886|    993|   accum.mul(x[11], y[0]);
  887|    993|   z[11] = accum.extract();
  888|    993|   accum.mul(x[0], y[12]);
  889|    993|   accum.mul(x[1], y[11]);
  890|    993|   accum.mul(x[2], y[10]);
  891|    993|   accum.mul(x[3], y[9]);
  892|    993|   accum.mul(x[4], y[8]);
  893|    993|   accum.mul(x[5], y[7]);
  894|    993|   accum.mul(x[6], y[6]);
  895|    993|   accum.mul(x[7], y[5]);
  896|    993|   accum.mul(x[8], y[4]);
  897|    993|   accum.mul(x[9], y[3]);
  898|    993|   accum.mul(x[10], y[2]);
  899|    993|   accum.mul(x[11], y[1]);
  900|    993|   accum.mul(x[12], y[0]);
  901|    993|   z[12] = accum.extract();
  902|    993|   accum.mul(x[0], y[13]);
  903|    993|   accum.mul(x[1], y[12]);
  904|    993|   accum.mul(x[2], y[11]);
  905|    993|   accum.mul(x[3], y[10]);
  906|    993|   accum.mul(x[4], y[9]);
  907|    993|   accum.mul(x[5], y[8]);
  908|    993|   accum.mul(x[6], y[7]);
  909|    993|   accum.mul(x[7], y[6]);
  910|    993|   accum.mul(x[8], y[5]);
  911|    993|   accum.mul(x[9], y[4]);
  912|    993|   accum.mul(x[10], y[3]);
  913|    993|   accum.mul(x[11], y[2]);
  914|    993|   accum.mul(x[12], y[1]);
  915|    993|   accum.mul(x[13], y[0]);
  916|    993|   z[13] = accum.extract();
  917|    993|   accum.mul(x[0], y[14]);
  918|    993|   accum.mul(x[1], y[13]);
  919|    993|   accum.mul(x[2], y[12]);
  920|    993|   accum.mul(x[3], y[11]);
  921|    993|   accum.mul(x[4], y[10]);
  922|    993|   accum.mul(x[5], y[9]);
  923|    993|   accum.mul(x[6], y[8]);
  924|    993|   accum.mul(x[7], y[7]);
  925|    993|   accum.mul(x[8], y[6]);
  926|    993|   accum.mul(x[9], y[5]);
  927|    993|   accum.mul(x[10], y[4]);
  928|    993|   accum.mul(x[11], y[3]);
  929|    993|   accum.mul(x[12], y[2]);
  930|    993|   accum.mul(x[13], y[1]);
  931|    993|   accum.mul(x[14], y[0]);
  932|    993|   z[14] = accum.extract();
  933|    993|   accum.mul(x[0], y[15]);
  934|    993|   accum.mul(x[1], y[14]);
  935|    993|   accum.mul(x[2], y[13]);
  936|    993|   accum.mul(x[3], y[12]);
  937|    993|   accum.mul(x[4], y[11]);
  938|    993|   accum.mul(x[5], y[10]);
  939|    993|   accum.mul(x[6], y[9]);
  940|    993|   accum.mul(x[7], y[8]);
  941|    993|   accum.mul(x[8], y[7]);
  942|    993|   accum.mul(x[9], y[6]);
  943|    993|   accum.mul(x[10], y[5]);
  944|    993|   accum.mul(x[11], y[4]);
  945|    993|   accum.mul(x[12], y[3]);
  946|    993|   accum.mul(x[13], y[2]);
  947|    993|   accum.mul(x[14], y[1]);
  948|    993|   accum.mul(x[15], y[0]);
  949|    993|   z[15] = accum.extract();
  950|    993|   accum.mul(x[1], y[15]);
  951|    993|   accum.mul(x[2], y[14]);
  952|    993|   accum.mul(x[3], y[13]);
  953|    993|   accum.mul(x[4], y[12]);
  954|    993|   accum.mul(x[5], y[11]);
  955|    993|   accum.mul(x[6], y[10]);
  956|    993|   accum.mul(x[7], y[9]);
  957|    993|   accum.mul(x[8], y[8]);
  958|    993|   accum.mul(x[9], y[7]);
  959|    993|   accum.mul(x[10], y[6]);
  960|    993|   accum.mul(x[11], y[5]);
  961|    993|   accum.mul(x[12], y[4]);
  962|    993|   accum.mul(x[13], y[3]);
  963|    993|   accum.mul(x[14], y[2]);
  964|    993|   accum.mul(x[15], y[1]);
  965|    993|   z[16] = accum.extract();
  966|    993|   accum.mul(x[2], y[15]);
  967|    993|   accum.mul(x[3], y[14]);
  968|    993|   accum.mul(x[4], y[13]);
  969|    993|   accum.mul(x[5], y[12]);
  970|    993|   accum.mul(x[6], y[11]);
  971|    993|   accum.mul(x[7], y[10]);
  972|    993|   accum.mul(x[8], y[9]);
  973|    993|   accum.mul(x[9], y[8]);
  974|    993|   accum.mul(x[10], y[7]);
  975|    993|   accum.mul(x[11], y[6]);
  976|    993|   accum.mul(x[12], y[5]);
  977|    993|   accum.mul(x[13], y[4]);
  978|    993|   accum.mul(x[14], y[3]);
  979|    993|   accum.mul(x[15], y[2]);
  980|    993|   z[17] = accum.extract();
  981|    993|   accum.mul(x[3], y[15]);
  982|    993|   accum.mul(x[4], y[14]);
  983|    993|   accum.mul(x[5], y[13]);
  984|    993|   accum.mul(x[6], y[12]);
  985|    993|   accum.mul(x[7], y[11]);
  986|    993|   accum.mul(x[8], y[10]);
  987|    993|   accum.mul(x[9], y[9]);
  988|    993|   accum.mul(x[10], y[8]);
  989|    993|   accum.mul(x[11], y[7]);
  990|    993|   accum.mul(x[12], y[6]);
  991|    993|   accum.mul(x[13], y[5]);
  992|    993|   accum.mul(x[14], y[4]);
  993|    993|   accum.mul(x[15], y[3]);
  994|    993|   z[18] = accum.extract();
  995|    993|   accum.mul(x[4], y[15]);
  996|    993|   accum.mul(x[5], y[14]);
  997|    993|   accum.mul(x[6], y[13]);
  998|    993|   accum.mul(x[7], y[12]);
  999|    993|   accum.mul(x[8], y[11]);
 1000|    993|   accum.mul(x[9], y[10]);
 1001|    993|   accum.mul(x[10], y[9]);
 1002|    993|   accum.mul(x[11], y[8]);
 1003|    993|   accum.mul(x[12], y[7]);
 1004|    993|   accum.mul(x[13], y[6]);
 1005|    993|   accum.mul(x[14], y[5]);
 1006|    993|   accum.mul(x[15], y[4]);
 1007|    993|   z[19] = accum.extract();
 1008|    993|   accum.mul(x[5], y[15]);
 1009|    993|   accum.mul(x[6], y[14]);
 1010|    993|   accum.mul(x[7], y[13]);
 1011|    993|   accum.mul(x[8], y[12]);
 1012|    993|   accum.mul(x[9], y[11]);
 1013|    993|   accum.mul(x[10], y[10]);
 1014|    993|   accum.mul(x[11], y[9]);
 1015|    993|   accum.mul(x[12], y[8]);
 1016|    993|   accum.mul(x[13], y[7]);
 1017|    993|   accum.mul(x[14], y[6]);
 1018|    993|   accum.mul(x[15], y[5]);
 1019|    993|   z[20] = accum.extract();
 1020|    993|   accum.mul(x[6], y[15]);
 1021|    993|   accum.mul(x[7], y[14]);
 1022|    993|   accum.mul(x[8], y[13]);
 1023|    993|   accum.mul(x[9], y[12]);
 1024|    993|   accum.mul(x[10], y[11]);
 1025|    993|   accum.mul(x[11], y[10]);
 1026|    993|   accum.mul(x[12], y[9]);
 1027|    993|   accum.mul(x[13], y[8]);
 1028|    993|   accum.mul(x[14], y[7]);
 1029|    993|   accum.mul(x[15], y[6]);
 1030|    993|   z[21] = accum.extract();
 1031|    993|   accum.mul(x[7], y[15]);
 1032|    993|   accum.mul(x[8], y[14]);
 1033|    993|   accum.mul(x[9], y[13]);
 1034|    993|   accum.mul(x[10], y[12]);
 1035|    993|   accum.mul(x[11], y[11]);
 1036|    993|   accum.mul(x[12], y[10]);
 1037|    993|   accum.mul(x[13], y[9]);
 1038|    993|   accum.mul(x[14], y[8]);
 1039|    993|   accum.mul(x[15], y[7]);
 1040|    993|   z[22] = accum.extract();
 1041|    993|   accum.mul(x[8], y[15]);
 1042|    993|   accum.mul(x[9], y[14]);
 1043|    993|   accum.mul(x[10], y[13]);
 1044|    993|   accum.mul(x[11], y[12]);
 1045|    993|   accum.mul(x[12], y[11]);
 1046|    993|   accum.mul(x[13], y[10]);
 1047|    993|   accum.mul(x[14], y[9]);
 1048|    993|   accum.mul(x[15], y[8]);
 1049|    993|   z[23] = accum.extract();
 1050|    993|   accum.mul(x[9], y[15]);
 1051|    993|   accum.mul(x[10], y[14]);
 1052|    993|   accum.mul(x[11], y[13]);
 1053|    993|   accum.mul(x[12], y[12]);
 1054|    993|   accum.mul(x[13], y[11]);
 1055|    993|   accum.mul(x[14], y[10]);
 1056|    993|   accum.mul(x[15], y[9]);
 1057|    993|   z[24] = accum.extract();
 1058|    993|   accum.mul(x[10], y[15]);
 1059|    993|   accum.mul(x[11], y[14]);
 1060|    993|   accum.mul(x[12], y[13]);
 1061|    993|   accum.mul(x[13], y[12]);
 1062|    993|   accum.mul(x[14], y[11]);
 1063|    993|   accum.mul(x[15], y[10]);
 1064|    993|   z[25] = accum.extract();
 1065|    993|   accum.mul(x[11], y[15]);
 1066|    993|   accum.mul(x[12], y[14]);
 1067|    993|   accum.mul(x[13], y[13]);
 1068|    993|   accum.mul(x[14], y[12]);
 1069|    993|   accum.mul(x[15], y[11]);
 1070|    993|   z[26] = accum.extract();
 1071|    993|   accum.mul(x[12], y[15]);
 1072|    993|   accum.mul(x[13], y[14]);
 1073|    993|   accum.mul(x[14], y[13]);
 1074|    993|   accum.mul(x[15], y[12]);
 1075|    993|   z[27] = accum.extract();
 1076|    993|   accum.mul(x[13], y[15]);
 1077|    993|   accum.mul(x[14], y[14]);
 1078|    993|   accum.mul(x[15], y[13]);
 1079|    993|   z[28] = accum.extract();
 1080|    993|   accum.mul(x[14], y[15]);
 1081|    993|   accum.mul(x[15], y[14]);
 1082|    993|   z[29] = accum.extract();
 1083|    993|   accum.mul(x[15], y[15]);
 1084|    993|   z[30] = accum.extract();
 1085|    993|   z[31] = accum.extract();
 1086|    993|}

_ZN5Botan12basecase_mulEPmmPKmmS2_m:
   20|  6.43M|void basecase_mul(word z[], size_t z_size, const word x[], size_t x_size, const word y[], size_t y_size) {
   21|  6.43M|   if(z_size < x_size + y_size) {
  ------------------
  |  Branch (21:7): [True: 0, False: 6.43M]
  ------------------
   22|      0|      throw Invalid_Argument("basecase_mul z_size too small");
   23|      0|   }
   24|       |
   25|  6.43M|   const size_t x_size_8 = x_size - (x_size % 8);
   26|       |
   27|  6.43M|   zeroize_buffer(z, z_size);
   28|       |
   29|  40.1M|   for(size_t i = 0; i != y_size; ++i) {
  ------------------
  |  Branch (29:22): [True: 33.6M, False: 6.43M]
  ------------------
   30|  33.6M|      const word y_i = y[i];
   31|       |
   32|  33.6M|      word carry = 0;
   33|       |
   34|  46.4M|      for(size_t j = 0; j != x_size_8; j += 8) {
  ------------------
  |  Branch (34:25): [True: 12.7M, False: 33.6M]
  ------------------
   35|  12.7M|         carry = word8_madd3(z + i + j, x + j, y_i, carry);
   36|  12.7M|      }
   37|       |
   38|   149M|      for(size_t j = x_size_8; j != x_size; ++j) {
  ------------------
  |  Branch (38:32): [True: 115M, False: 33.6M]
  ------------------
   39|   115M|         z[i + j] = word_madd3(x[j], y_i, z[i + j], &carry);
   40|   115M|      }
   41|       |
   42|  33.6M|      z[x_size + i] = carry;
   43|  33.6M|   }
   44|  6.43M|}
_ZN5Botan12basecase_sqrEPmmPKmm:
   46|  2.40M|void basecase_sqr(word z[], size_t z_size, const word x[], size_t x_size) {
   47|  2.40M|   if(z_size < 2 * x_size) {
  ------------------
  |  Branch (47:7): [True: 0, False: 2.40M]
  ------------------
   48|      0|      throw Invalid_Argument("basecase_sqr z_size too small");
   49|      0|   }
   50|       |
   51|  2.40M|   const size_t x_size_8 = x_size - (x_size % 8);
   52|       |
   53|  2.40M|   zeroize_buffer(z, z_size);
   54|       |
   55|  12.5M|   for(size_t i = 0; i != x_size; ++i) {
  ------------------
  |  Branch (55:22): [True: 10.1M, False: 2.40M]
  ------------------
   56|  10.1M|      const word x_i = x[i];
   57|       |
   58|  10.1M|      word carry = 0;
   59|       |
   60|  10.1M|      for(size_t j = 0; j != x_size_8; j += 8) {
  ------------------
  |  Branch (60:25): [True: 56.1k, False: 10.1M]
  ------------------
   61|  56.1k|         carry = word8_madd3(z + i + j, x + j, x_i, carry);
   62|  56.1k|      }
   63|       |
   64|  54.7M|      for(size_t j = x_size_8; j != x_size; ++j) {
  ------------------
  |  Branch (64:32): [True: 44.6M, False: 10.1M]
  ------------------
   65|  44.6M|         z[i + j] = word_madd3(x[j], x_i, z[i + j], &carry);
   66|  44.6M|      }
   67|       |
   68|  10.1M|      z[x_size + i] = carry;
   69|  10.1M|   }
   70|  2.40M|}
_ZN5Botan10bigint_mulEPmmPKmmmS2_mmS0_m:
  292|  13.3M|                size_t ws_size) {
  293|  13.3M|   zeroize_buffer(z, z_size);
  294|       |
  295|  13.3M|   if(x_sw == 1) {
  ------------------
  |  Branch (295:7): [True: 28, False: 13.3M]
  ------------------
  296|     28|      bigint_linmul3(z, y, y_sw, x[0]);
  297|  13.3M|   } else if(y_sw == 1) {
  ------------------
  |  Branch (297:14): [True: 9, False: 13.3M]
  ------------------
  298|      9|      bigint_linmul3(z, x, x_sw, y[0]);
  299|  13.3M|   } else if(sized_for_comba_mul<4>(x_sw, x_size, y_sw, y_size, z_size)) {
  ------------------
  |  Branch (299:14): [True: 2.97M, False: 10.4M]
  ------------------
  300|  2.97M|      bigint_comba_mul4(z, x, y);
  301|  10.4M|   } else if(sized_for_comba_mul<6>(x_sw, x_size, y_sw, y_size, z_size)) {
  ------------------
  |  Branch (301:14): [True: 3.58M, False: 6.84M]
  ------------------
  302|  3.58M|      bigint_comba_mul6(z, x, y);
  303|  6.84M|   } else if(sized_for_comba_mul<8>(x_sw, x_size, y_sw, y_size, z_size)) {
  ------------------
  |  Branch (303:14): [True: 8.33k, False: 6.83M]
  ------------------
  304|  8.33k|      bigint_comba_mul8(z, x, y);
  305|  6.83M|   } else if(sized_for_comba_mul<9>(x_sw, x_size, y_sw, y_size, z_size)) {
  ------------------
  |  Branch (305:14): [True: 396k, False: 6.43M]
  ------------------
  306|   396k|      bigint_comba_mul9(z, x, y);
  307|  6.43M|   } else if(sized_for_comba_mul<16>(x_sw, x_size, y_sw, y_size, z_size)) {
  ------------------
  |  Branch (307:14): [True: 993, False: 6.43M]
  ------------------
  308|    993|      bigint_comba_mul16(z, x, y);
  309|  6.43M|   } else if(sized_for_comba_mul<24>(x_sw, x_size, y_sw, y_size, z_size)) {
  ------------------
  |  Branch (309:14): [True: 0, False: 6.43M]
  ------------------
  310|      0|      bigint_comba_mul24(z, x, y);
  311|  6.43M|   } else if(x_sw < KARATSUBA_MULTIPLY_THRESHOLD || y_sw < KARATSUBA_MULTIPLY_THRESHOLD || workspace == nullptr) {
  ------------------
  |  Branch (311:14): [True: 6.43M, False: 0]
  |  Branch (311:53): [True: 0, False: 0]
  |  Branch (311:92): [True: 0, False: 0]
  ------------------
  312|  6.43M|      basecase_mul(z, z_size, x, x_sw, y, y_sw);
  313|  6.43M|   } else {
  314|      0|      const size_t N = karatsuba_size(z_size, x_size, x_sw, y_size, y_sw);
  315|       |
  316|      0|      if(N > 0 && z_size >= 2 * N && ws_size >= 2 * N) {
  ------------------
  |  Branch (316:10): [True: 0, False: 0]
  |  Branch (316:19): [True: 0, False: 0]
  |  Branch (316:38): [True: 0, False: 0]
  ------------------
  317|      0|         karatsuba_mul(z, x, y, N, workspace);
  318|      0|      } else {
  319|      0|         basecase_mul(z, z_size, x, x_sw, y, y_sw);
  320|      0|      }
  321|      0|   }
  322|  13.3M|}
_ZN5Botan10bigint_sqrEPmmPKmmmS0_m:
  327|  4.05M|void bigint_sqr(word z[], size_t z_size, const word x[], size_t x_size, size_t x_sw, word workspace[], size_t ws_size) {
  328|  4.05M|   zeroize_buffer(z, z_size);
  329|       |
  330|  4.05M|   BOTAN_ASSERT(z_size / 2 >= x_sw, "Output size is sufficient");
  ------------------
  |  |   64|  4.05M|   do {                                                                                 \
  |  |   65|  4.05M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|  4.05M|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 4.05M]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|  4.05M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 4.05M]
  |  |  ------------------
  ------------------
  331|       |
  332|  4.05M|   if(x_sw == 1) {
  ------------------
  |  Branch (332:7): [True: 28, False: 4.05M]
  ------------------
  333|     28|      bigint_linmul3(z, x, x_sw, x[0]);
  334|  4.05M|   } else if(sized_for_comba_sqr<4>(x_sw, x_size, z_size)) {
  ------------------
  |  Branch (334:14): [True: 1.34M, False: 2.71M]
  ------------------
  335|  1.34M|      bigint_comba_sqr4(z, x);
  336|  2.71M|   } else if(sized_for_comba_sqr<6>(x_sw, x_size, z_size)) {
  ------------------
  |  Branch (336:14): [True: 1.33k, False: 2.71M]
  ------------------
  337|  1.33k|      bigint_comba_sqr6(z, x);
  338|  2.71M|   } else if(sized_for_comba_sqr<8>(x_sw, x_size, z_size)) {
  ------------------
  |  Branch (338:14): [True: 1.05k, False: 2.71M]
  ------------------
  339|  1.05k|      bigint_comba_sqr8(z, x);
  340|  2.71M|   } else if(sized_for_comba_sqr<9>(x_sw, x_size, z_size)) {
  ------------------
  |  Branch (340:14): [True: 304k, False: 2.40M]
  ------------------
  341|   304k|      bigint_comba_sqr9(z, x);
  342|  2.40M|   } else if(sized_for_comba_sqr<16>(x_sw, x_size, z_size)) {
  ------------------
  |  Branch (342:14): [True: 976, False: 2.40M]
  ------------------
  343|    976|      bigint_comba_sqr16(z, x);
  344|  2.40M|   } else if(sized_for_comba_sqr<24>(x_sw, x_size, z_size)) {
  ------------------
  |  Branch (344:14): [True: 0, False: 2.40M]
  ------------------
  345|      0|      bigint_comba_sqr24(z, x);
  346|  2.40M|   } else if(x_size < KARATSUBA_SQUARE_THRESHOLD || workspace == nullptr) {
  ------------------
  |  Branch (346:14): [True: 2.40M, False: 35]
  |  Branch (346:53): [True: 0, False: 35]
  ------------------
  347|  2.40M|      basecase_sqr(z, z_size, x, x_sw);
  348|  2.40M|   } else {
  349|     35|      const size_t N = karatsuba_size(z_size, x_size, x_sw);
  350|       |
  351|     35|      if(N > 0 && z_size >= 2 * N && ws_size >= 2 * N) {
  ------------------
  |  Branch (351:10): [True: 34, False: 1]
  |  Branch (351:19): [True: 34, False: 0]
  |  Branch (351:38): [True: 34, False: 0]
  ------------------
  352|     34|         karatsuba_sqr(z, x, N, workspace);
  353|     34|      } else {
  354|      1|         basecase_sqr(z, z_size, x, x_sw);
  355|      1|      }
  356|     35|   }
  357|  4.05M|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_114karatsuba_sizeEmmm:
  245|     35|size_t karatsuba_size(size_t z_size, size_t x_size, size_t x_sw) {
  246|     35|   if(x_sw == x_size) {
  ------------------
  |  Branch (246:7): [True: 0, False: 35]
  ------------------
  247|      0|      if(x_sw % 2 != 0) {
  ------------------
  |  Branch (247:10): [True: 0, False: 0]
  ------------------
  248|      0|         return 0;
  249|      0|      }
  250|      0|      return x_sw;
  251|      0|   }
  252|       |
  253|     36|   for(size_t j = x_sw; j <= x_size; ++j) {
  ------------------
  |  Branch (253:25): [True: 36, False: 0]
  ------------------
  254|     36|      if(j % 2 != 0) {
  ------------------
  |  Branch (254:10): [True: 1, False: 35]
  ------------------
  255|      1|         continue;
  256|      1|      }
  257|       |
  258|     35|      if(2 * j > z_size) {
  ------------------
  |  Branch (258:10): [True: 1, False: 34]
  ------------------
  259|      1|         return 0;
  260|      1|      }
  261|       |
  262|     34|      if(j % 4 == 2 && (j + 2) <= x_size && 2 * (j + 2) <= z_size) {
  ------------------
  |  Branch (262:10): [True: 34, False: 0]
  |  Branch (262:24): [True: 34, False: 0]
  |  Branch (262:45): [True: 0, False: 34]
  ------------------
  263|      0|         return j + 2;
  264|      0|      }
  265|     34|      return j;
  266|     34|   }
  267|       |
  268|      0|   return 0;
  269|     35|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_113karatsuba_sqrEPmPKmmS1_:
  149|     34|void karatsuba_sqr(word z[], const word x[], size_t N, word workspace[]) {
  150|     34|   if(N < KARATSUBA_SQUARE_THRESHOLD || N % 2 != 0) {
  ------------------
  |  Branch (150:7): [True: 34, False: 0]
  |  Branch (150:41): [True: 0, False: 0]
  ------------------
  151|     34|      switch(N) {
  152|      0|         case 6:
  ------------------
  |  Branch (152:10): [True: 0, False: 34]
  ------------------
  153|      0|            return bigint_comba_sqr6(z, x);
  154|      0|         case 8:
  ------------------
  |  Branch (154:10): [True: 0, False: 34]
  ------------------
  155|      0|            return bigint_comba_sqr8(z, x);
  156|      0|         case 9:
  ------------------
  |  Branch (156:10): [True: 0, False: 34]
  ------------------
  157|      0|            return bigint_comba_sqr9(z, x);
  158|      0|         case 16:
  ------------------
  |  Branch (158:10): [True: 0, False: 34]
  ------------------
  159|      0|            return bigint_comba_sqr16(z, x);
  160|      0|         case 24:
  ------------------
  |  Branch (160:10): [True: 0, False: 34]
  ------------------
  161|      0|            return bigint_comba_sqr24(z, x);
  162|     34|         default:
  ------------------
  |  Branch (162:10): [True: 34, False: 0]
  ------------------
  163|     34|            return basecase_sqr(z, 2 * N, x, N);
  164|     34|      }
  165|     34|   }
  166|       |
  167|      0|   const size_t N2 = N / 2;
  168|       |
  169|      0|   const word* x0 = x;
  170|      0|   const word* x1 = x + N2;
  171|      0|   word* z0 = z;
  172|      0|   word* z1 = z + N;
  173|       |
  174|      0|   word* ws0 = workspace;
  175|      0|   word* ws1 = workspace + N;
  176|       |
  177|      0|   zeroize_buffer(workspace, 2 * N);
  178|       |
  179|       |   // See comment in karatsuba_mul
  180|      0|   bigint_sub_abs(z0, x0, x1, N2, workspace);
  181|      0|   karatsuba_sqr(ws0, z0, N2, ws1);
  182|       |
  183|      0|   karatsuba_sqr(z0, x0, N2, ws1);
  184|      0|   karatsuba_sqr(z1, x1, N2, ws1);
  185|       |
  186|      0|   const word ws_carry = bigint_add3(ws1, z0, N, z1, N);
  187|      0|   word z_carry = bigint_add2(z + N2, N, ws1, N);
  188|       |
  189|      0|   z_carry += bigint_add2(z + N + N2, N2, &ws_carry, 1);
  190|      0|   bigint_add2(z + N + N2, N2, &z_carry, 1);
  191|       |
  192|       |   /*
  193|       |   * This is only actually required if cmp (result of bigint_sub_abs) is != 0,
  194|       |   * however if cmp==0 then ws0[0:N] == 0 and avoiding the jump hides a
  195|       |   * timing channel.
  196|       |   */
  197|      0|   bigint_sub2(z + N2, 2 * N - N2, ws0, N);
  198|      0|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_mulILm4EEEbmmmmm:
  272|  13.3M|inline bool sized_for_comba_mul(size_t x_sw, size_t x_size, size_t y_sw, size_t y_size, size_t z_size) {
  273|  13.3M|   return (x_sw <= SZ && x_size >= SZ && y_sw <= SZ && y_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (273:12): [True: 5.25M, False: 8.14M]
  |  Branch (273:26): [True: 3.14M, False: 2.10M]
  |  Branch (273:42): [True: 3.14M, False: 0]
  |  Branch (273:56): [True: 3.06M, False: 76.8k]
  |  Branch (273:72): [True: 2.97M, False: 92.3k]
  ------------------
  274|  13.3M|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_mulILm6EEEbmmmmm:
  272|  10.4M|inline bool sized_for_comba_mul(size_t x_sw, size_t x_size, size_t y_sw, size_t y_size, size_t z_size) {
  273|  10.4M|   return (x_sw <= SZ && x_size >= SZ && y_sw <= SZ && y_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (273:12): [True: 8.67M, False: 1.75M]
  |  Branch (273:26): [True: 3.93M, False: 4.74M]
  |  Branch (273:42): [True: 3.93M, False: 0]
  |  Branch (273:56): [True: 3.85M, False: 76.8k]
  |  Branch (273:72): [True: 3.58M, False: 272k]
  ------------------
  274|  10.4M|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_mulILm8EEEbmmmmm:
  272|  6.84M|inline bool sized_for_comba_mul(size_t x_sw, size_t x_size, size_t y_sw, size_t y_size, size_t z_size) {
  273|  6.84M|   return (x_sw <= SZ && x_size >= SZ && y_sw <= SZ && y_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (273:12): [True: 5.11M, False: 1.72M]
  |  Branch (273:26): [True: 294k, False: 4.82M]
  |  Branch (273:42): [True: 274k, False: 19.7k]
  |  Branch (273:56): [True: 211k, False: 63.4k]
  |  Branch (273:72): [True: 8.33k, False: 202k]
  ------------------
  274|  6.84M|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_mulILm9EEEbmmmmm:
  272|  6.83M|inline bool sized_for_comba_mul(size_t x_sw, size_t x_size, size_t y_sw, size_t y_size, size_t z_size) {
  273|  6.83M|   return (x_sw <= SZ && x_size >= SZ && y_sw <= SZ && y_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (273:12): [True: 5.52M, False: 1.30M]
  |  Branch (273:26): [True: 563k, False: 4.96M]
  |  Branch (273:42): [True: 563k, False: 0]
  |  Branch (273:56): [True: 460k, False: 103k]
  |  Branch (273:72): [True: 396k, False: 64.3k]
  ------------------
  274|  6.83M|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_mulILm16EEEbmmmmm:
  272|  6.43M|inline bool sized_for_comba_mul(size_t x_sw, size_t x_size, size_t y_sw, size_t y_size, size_t z_size) {
  273|  6.43M|   return (x_sw <= SZ && x_size >= SZ && y_sw <= SZ && y_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (273:12): [True: 6.43M, False: 462]
  |  Branch (273:26): [True: 732k, False: 5.70M]
  |  Branch (273:42): [True: 732k, False: 0]
  |  Branch (273:56): [True: 713k, False: 19.7k]
  |  Branch (273:72): [True: 993, False: 712k]
  ------------------
  274|  6.43M|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_mulILm24EEEbmmmmm:
  272|  6.43M|inline bool sized_for_comba_mul(size_t x_sw, size_t x_size, size_t y_sw, size_t y_size, size_t z_size) {
  273|  6.43M|   return (x_sw <= SZ && x_size >= SZ && y_sw <= SZ && y_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (273:12): [True: 6.43M, False: 0]
  |  Branch (273:26): [True: 924, False: 6.43M]
  |  Branch (273:42): [True: 924, False: 0]
  |  Branch (273:56): [True: 924, False: 0]
  |  Branch (273:72): [True: 0, False: 924]
  ------------------
  274|  6.43M|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_sqrILm4EEEbmmm:
  277|  4.05M|inline bool sized_for_comba_sqr(size_t x_sw, size_t x_size, size_t z_size) {
  278|  4.05M|   return (x_sw <= SZ && x_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (278:12): [True: 2.31M, False: 1.73M]
  |  Branch (278:26): [True: 1.40M, False: 916k]
  |  Branch (278:42): [True: 1.34M, False: 59.8k]
  ------------------
  279|  4.05M|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_sqrILm6EEEbmmm:
  277|  2.71M|inline bool sized_for_comba_sqr(size_t x_sw, size_t x_size, size_t z_size) {
  278|  2.71M|   return (x_sw <= SZ && x_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (278:12): [True: 2.40M, False: 311k]
  |  Branch (278:26): [True: 190k, False: 2.21M]
  |  Branch (278:42): [True: 1.33k, False: 189k]
  ------------------
  279|  2.71M|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_sqrILm8EEEbmmm:
  277|  2.71M|inline bool sized_for_comba_sqr(size_t x_sw, size_t x_size, size_t z_size) {
  278|  2.71M|   return (x_sw <= SZ && x_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (278:12): [True: 2.40M, False: 310k]
  |  Branch (278:26): [True: 171k, False: 2.23M]
  |  Branch (278:42): [True: 1.05k, False: 170k]
  ------------------
  279|  2.71M|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_sqrILm9EEEbmmm:
  277|  2.71M|inline bool sized_for_comba_sqr(size_t x_sw, size_t x_size, size_t z_size) {
  278|  2.71M|   return (x_sw <= SZ && x_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (278:12): [True: 2.70M, False: 5.56k]
  |  Branch (278:26): [True: 452k, False: 2.25M]
  |  Branch (278:42): [True: 304k, False: 147k]
  ------------------
  279|  2.71M|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_sqrILm16EEEbmmm:
  277|  2.40M|inline bool sized_for_comba_sqr(size_t x_sw, size_t x_size, size_t z_size) {
  278|  2.40M|   return (x_sw <= SZ && x_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (278:12): [True: 2.40M, False: 0]
  |  Branch (278:26): [True: 119k, False: 2.28M]
  |  Branch (278:42): [True: 976, False: 118k]
  ------------------
  279|  2.40M|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_sqrILm24EEEbmmm:
  277|  2.40M|inline bool sized_for_comba_sqr(size_t x_sw, size_t x_size, size_t z_size) {
  278|  2.40M|   return (x_sw <= SZ && x_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (278:12): [True: 2.40M, False: 0]
  |  Branch (278:26): [True: 602, False: 2.40M]
  |  Branch (278:42): [True: 0, False: 602]
  ------------------
  279|  2.40M|}

_ZN5Botan25bigint_monty_redc_genericEPmPKmmS2_mmS0_:
   91|  8.83M|   word r[], const word z[], size_t z_size, const word p[], size_t p_size, word p_dash, word ws[]) {
   92|  8.83M|   BOTAN_ARG_CHECK(z_size >= 2 * p_size && p_size > 0, "Invalid sizes for bigint_monty_redc_generic");
  ------------------
  |  |   35|  8.83M|   do {                                                          \
  |  |   36|  8.83M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  17.6M|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 8.83M, False: 0]
  |  |  |  Branch (37:12): [True: 8.83M, False: 0]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  8.83M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 8.83M]
  |  |  ------------------
  ------------------
   93|       |
   94|  8.83M|   word3<word> accum;
   95|       |
   96|  8.83M|   accum.add(z[0]);
   97|       |
   98|  8.83M|   ws[0] = accum.monty_step(p[0], p_dash);
   99|       |
  100|  42.2M|   for(size_t i = 1; i != p_size; ++i) {
  ------------------
  |  Branch (100:22): [True: 33.4M, False: 8.83M]
  ------------------
  101|  33.4M|      mul_rev_range(accum, ws, p, i);
  102|  33.4M|      accum.add(z[i]);
  103|  33.4M|      ws[i] = accum.monty_step(p[0], p_dash);
  104|  33.4M|   }
  105|       |
  106|  42.2M|   for(size_t i = 0; i != p_size - 1; ++i) {
  ------------------
  |  Branch (106:22): [True: 33.4M, False: 8.83M]
  ------------------
  107|  33.4M|      mul_rev_range(accum, &ws[i + 1], &p[i], p_size - (i + 1));
  108|  33.4M|      accum.add(z[p_size + i]);
  109|  33.4M|      ws[i] = accum.extract();
  110|  33.4M|   }
  111|       |
  112|  8.83M|   accum.add(z[2 * p_size - 1]);
  113|       |
  114|  8.83M|   ws[p_size - 1] = accum.extract();
  115|       |   // w1 is the final part, which is not stored in the workspace
  116|  8.83M|   const word w1 = accum.extract();
  117|       |
  118|       |   /*
  119|       |   * The result might need to be reduced mod p. To avoid a timing
  120|       |   * channel, always perform the subtraction. If in the computation
  121|       |   * of x - p a borrow is required then x was already < p.
  122|       |   *
  123|       |   * x starts at ws[0] and is p_size bytes long plus a possible high
  124|       |   * digit left over in w1.
  125|       |   *
  126|       |   * x - p starts at z[0] and is also p_size bytes long
  127|       |   *
  128|       |   * If borrow was set after the subtraction, then x was already less
  129|       |   * than p and the subtraction was not needed. In that case overwrite
  130|       |   * z[0:p_size] with the original x in ws[0:p_size].
  131|       |   *
  132|       |   * We only copy out p_size in the final step because we know
  133|       |   * the Montgomery result is < P
  134|       |   */
  135|       |
  136|  8.83M|   bigint_monty_maybe_sub(p_size, r, w1, ws, p);
  137|  8.83M|}
mp_monty.cpp:_ZN5Botan12_GLOBAL__N_113mul_rev_rangeERNS_5word3ImEEPKmS5_m:
   18|  66.8M|BOTAN_FORCE_INLINE void mul_rev_range(word3<word>& accum, const word ws[], const word p[], size_t bound) {
   19|       |   /*
   20|       |   Unrolled version of:
   21|       |
   22|       |   for(size_t i = 0; i < bound; ++i) {
   23|       |      accum.mul(ws[i], p[bound - i]);
   24|       |   }
   25|       |   */
   26|       |
   27|  66.8M|   size_t lower = 0;
   28|   154M|   while(lower < bound) {
  ------------------
  |  Branch (28:10): [True: 87.9M, False: 66.8M]
  ------------------
   29|  87.9M|      const size_t upper = bound - lower;
   30|       |
   31|  87.9M|      if(upper >= 16) {
  ------------------
  |  Branch (31:10): [True: 0, False: 87.9M]
  ------------------
   32|      0|         accum.mul(ws[lower], p[upper]);
   33|      0|         accum.mul(ws[lower + 1], p[upper - 1]);
   34|      0|         accum.mul(ws[lower + 2], p[upper - 2]);
   35|      0|         accum.mul(ws[lower + 3], p[upper - 3]);
   36|      0|         accum.mul(ws[lower + 4], p[upper - 4]);
   37|      0|         accum.mul(ws[lower + 5], p[upper - 5]);
   38|      0|         accum.mul(ws[lower + 6], p[upper - 6]);
   39|      0|         accum.mul(ws[lower + 7], p[upper - 7]);
   40|      0|         accum.mul(ws[lower + 8], p[upper - 8]);
   41|      0|         accum.mul(ws[lower + 9], p[upper - 9]);
   42|      0|         accum.mul(ws[lower + 10], p[upper - 10]);
   43|      0|         accum.mul(ws[lower + 11], p[upper - 11]);
   44|      0|         accum.mul(ws[lower + 12], p[upper - 12]);
   45|      0|         accum.mul(ws[lower + 13], p[upper - 13]);
   46|      0|         accum.mul(ws[lower + 14], p[upper - 14]);
   47|      0|         accum.mul(ws[lower + 15], p[upper - 15]);
   48|      0|         lower += 16;
   49|  87.9M|      } else if(upper >= 8) {
  ------------------
  |  Branch (49:17): [True: 2.64M, False: 85.2M]
  ------------------
   50|  2.64M|         accum.mul(ws[lower], p[upper]);
   51|  2.64M|         accum.mul(ws[lower + 1], p[upper - 1]);
   52|  2.64M|         accum.mul(ws[lower + 2], p[upper - 2]);
   53|  2.64M|         accum.mul(ws[lower + 3], p[upper - 3]);
   54|  2.64M|         accum.mul(ws[lower + 4], p[upper - 4]);
   55|  2.64M|         accum.mul(ws[lower + 5], p[upper - 5]);
   56|  2.64M|         accum.mul(ws[lower + 6], p[upper - 6]);
   57|  2.64M|         accum.mul(ws[lower + 7], p[upper - 7]);
   58|  2.64M|         lower += 8;
   59|  85.2M|      } else if(upper >= 4) {
  ------------------
  |  Branch (59:17): [True: 18.4M, False: 66.8M]
  ------------------
   60|  18.4M|         accum.mul(ws[lower], p[upper]);
   61|  18.4M|         accum.mul(ws[lower + 1], p[upper - 1]);
   62|  18.4M|         accum.mul(ws[lower + 2], p[upper - 2]);
   63|  18.4M|         accum.mul(ws[lower + 3], p[upper - 3]);
   64|  18.4M|         lower += 4;
   65|  66.8M|      } else if(upper >= 2) {
  ------------------
  |  Branch (65:17): [True: 33.4M, False: 33.4M]
  ------------------
   66|  33.4M|         accum.mul(ws[lower], p[upper]);
   67|  33.4M|         accum.mul(ws[lower + 1], p[upper - 1]);
   68|  33.4M|         lower += 2;
   69|  33.4M|      } else {
   70|  33.4M|         accum.mul(ws[lower], p[upper]);
   71|  33.4M|         lower += 1;
   72|  33.4M|      }
   73|  87.9M|   }
   74|  66.8M|}

_ZN5Botan19bigint_monty_redc_4EPmPKmS2_mS0_:
   12|  6.02M|void bigint_monty_redc_4(word r[4], const word z[8], const word p[4], word p_dash, word ws[4]) {
   13|  6.02M|   word3<word> accum;
   14|  6.02M|   accum.add(z[0]);
   15|  6.02M|   ws[0] = accum.monty_step(p[0], p_dash);
   16|  6.02M|   accum.mul(ws[0], p[1]);
   17|  6.02M|   accum.add(z[1]);
   18|  6.02M|   ws[1] = accum.monty_step(p[0], p_dash);
   19|  6.02M|   accum.mul(ws[0], p[2]);
   20|  6.02M|   accum.mul(ws[1], p[1]);
   21|  6.02M|   accum.add(z[2]);
   22|  6.02M|   ws[2] = accum.monty_step(p[0], p_dash);
   23|  6.02M|   accum.mul(ws[0], p[3]);
   24|  6.02M|   accum.mul(ws[1], p[2]);
   25|  6.02M|   accum.mul(ws[2], p[1]);
   26|  6.02M|   accum.add(z[3]);
   27|  6.02M|   ws[3] = accum.monty_step(p[0], p_dash);
   28|  6.02M|   accum.mul(ws[1], p[3]);
   29|  6.02M|   accum.mul(ws[2], p[2]);
   30|  6.02M|   accum.mul(ws[3], p[1]);
   31|  6.02M|   accum.add(z[4]);
   32|  6.02M|   ws[0] = accum.extract();
   33|  6.02M|   accum.mul(ws[2], p[3]);
   34|  6.02M|   accum.mul(ws[3], p[2]);
   35|  6.02M|   accum.add(z[5]);
   36|  6.02M|   ws[1] = accum.extract();
   37|  6.02M|   accum.mul(ws[3], p[3]);
   38|  6.02M|   accum.add(z[6]);
   39|  6.02M|   ws[2] = accum.extract();
   40|  6.02M|   accum.add(z[7]);
   41|  6.02M|   ws[3] = accum.extract();
   42|  6.02M|   const word w1 = accum.extract();
   43|  6.02M|   bigint_monty_maybe_sub<4>(r, w1, ws, p);
   44|  6.02M|}
_ZN5Botan19bigint_monty_redc_6EPmPKmS2_mS0_:
   46|   224k|void bigint_monty_redc_6(word r[6], const word z[12], const word p[6], word p_dash, word ws[6]) {
   47|   224k|   word3<word> accum;
   48|   224k|   accum.add(z[0]);
   49|   224k|   ws[0] = accum.monty_step(p[0], p_dash);
   50|   224k|   accum.mul(ws[0], p[1]);
   51|   224k|   accum.add(z[1]);
   52|   224k|   ws[1] = accum.monty_step(p[0], p_dash);
   53|   224k|   accum.mul(ws[0], p[2]);
   54|   224k|   accum.mul(ws[1], p[1]);
   55|   224k|   accum.add(z[2]);
   56|   224k|   ws[2] = accum.monty_step(p[0], p_dash);
   57|   224k|   accum.mul(ws[0], p[3]);
   58|   224k|   accum.mul(ws[1], p[2]);
   59|   224k|   accum.mul(ws[2], p[1]);
   60|   224k|   accum.add(z[3]);
   61|   224k|   ws[3] = accum.monty_step(p[0], p_dash);
   62|   224k|   accum.mul(ws[0], p[4]);
   63|   224k|   accum.mul(ws[1], p[3]);
   64|   224k|   accum.mul(ws[2], p[2]);
   65|   224k|   accum.mul(ws[3], p[1]);
   66|   224k|   accum.add(z[4]);
   67|   224k|   ws[4] = accum.monty_step(p[0], p_dash);
   68|   224k|   accum.mul(ws[0], p[5]);
   69|   224k|   accum.mul(ws[1], p[4]);
   70|   224k|   accum.mul(ws[2], p[3]);
   71|   224k|   accum.mul(ws[3], p[2]);
   72|   224k|   accum.mul(ws[4], p[1]);
   73|   224k|   accum.add(z[5]);
   74|   224k|   ws[5] = accum.monty_step(p[0], p_dash);
   75|   224k|   accum.mul(ws[1], p[5]);
   76|   224k|   accum.mul(ws[2], p[4]);
   77|   224k|   accum.mul(ws[3], p[3]);
   78|   224k|   accum.mul(ws[4], p[2]);
   79|   224k|   accum.mul(ws[5], p[1]);
   80|   224k|   accum.add(z[6]);
   81|   224k|   ws[0] = accum.extract();
   82|   224k|   accum.mul(ws[2], p[5]);
   83|   224k|   accum.mul(ws[3], p[4]);
   84|   224k|   accum.mul(ws[4], p[3]);
   85|   224k|   accum.mul(ws[5], p[2]);
   86|   224k|   accum.add(z[7]);
   87|   224k|   ws[1] = accum.extract();
   88|   224k|   accum.mul(ws[3], p[5]);
   89|   224k|   accum.mul(ws[4], p[4]);
   90|   224k|   accum.mul(ws[5], p[3]);
   91|   224k|   accum.add(z[8]);
   92|   224k|   ws[2] = accum.extract();
   93|   224k|   accum.mul(ws[4], p[5]);
   94|   224k|   accum.mul(ws[5], p[4]);
   95|   224k|   accum.add(z[9]);
   96|   224k|   ws[3] = accum.extract();
   97|   224k|   accum.mul(ws[5], p[5]);
   98|   224k|   accum.add(z[10]);
   99|   224k|   ws[4] = accum.extract();
  100|   224k|   accum.add(z[11]);
  101|   224k|   ws[5] = accum.extract();
  102|   224k|   const word w1 = accum.extract();
  103|   224k|   bigint_monty_maybe_sub<6>(r, w1, ws, p);
  104|   224k|}
_ZN5Botan19bigint_monty_redc_8EPmPKmS2_mS0_:
  106|   334k|void bigint_monty_redc_8(word r[8], const word z[16], const word p[8], word p_dash, word ws[8]) {
  107|   334k|   word3<word> accum;
  108|   334k|   accum.add(z[0]);
  109|   334k|   ws[0] = accum.monty_step(p[0], p_dash);
  110|   334k|   accum.mul(ws[0], p[1]);
  111|   334k|   accum.add(z[1]);
  112|   334k|   ws[1] = accum.monty_step(p[0], p_dash);
  113|   334k|   accum.mul(ws[0], p[2]);
  114|   334k|   accum.mul(ws[1], p[1]);
  115|   334k|   accum.add(z[2]);
  116|   334k|   ws[2] = accum.monty_step(p[0], p_dash);
  117|   334k|   accum.mul(ws[0], p[3]);
  118|   334k|   accum.mul(ws[1], p[2]);
  119|   334k|   accum.mul(ws[2], p[1]);
  120|   334k|   accum.add(z[3]);
  121|   334k|   ws[3] = accum.monty_step(p[0], p_dash);
  122|   334k|   accum.mul(ws[0], p[4]);
  123|   334k|   accum.mul(ws[1], p[3]);
  124|   334k|   accum.mul(ws[2], p[2]);
  125|   334k|   accum.mul(ws[3], p[1]);
  126|   334k|   accum.add(z[4]);
  127|   334k|   ws[4] = accum.monty_step(p[0], p_dash);
  128|   334k|   accum.mul(ws[0], p[5]);
  129|   334k|   accum.mul(ws[1], p[4]);
  130|   334k|   accum.mul(ws[2], p[3]);
  131|   334k|   accum.mul(ws[3], p[2]);
  132|   334k|   accum.mul(ws[4], p[1]);
  133|   334k|   accum.add(z[5]);
  134|   334k|   ws[5] = accum.monty_step(p[0], p_dash);
  135|   334k|   accum.mul(ws[0], p[6]);
  136|   334k|   accum.mul(ws[1], p[5]);
  137|   334k|   accum.mul(ws[2], p[4]);
  138|   334k|   accum.mul(ws[3], p[3]);
  139|   334k|   accum.mul(ws[4], p[2]);
  140|   334k|   accum.mul(ws[5], p[1]);
  141|   334k|   accum.add(z[6]);
  142|   334k|   ws[6] = accum.monty_step(p[0], p_dash);
  143|   334k|   accum.mul(ws[0], p[7]);
  144|   334k|   accum.mul(ws[1], p[6]);
  145|   334k|   accum.mul(ws[2], p[5]);
  146|   334k|   accum.mul(ws[3], p[4]);
  147|   334k|   accum.mul(ws[4], p[3]);
  148|   334k|   accum.mul(ws[5], p[2]);
  149|   334k|   accum.mul(ws[6], p[1]);
  150|   334k|   accum.add(z[7]);
  151|   334k|   ws[7] = accum.monty_step(p[0], p_dash);
  152|   334k|   accum.mul(ws[1], p[7]);
  153|   334k|   accum.mul(ws[2], p[6]);
  154|   334k|   accum.mul(ws[3], p[5]);
  155|   334k|   accum.mul(ws[4], p[4]);
  156|   334k|   accum.mul(ws[5], p[3]);
  157|   334k|   accum.mul(ws[6], p[2]);
  158|   334k|   accum.mul(ws[7], p[1]);
  159|   334k|   accum.add(z[8]);
  160|   334k|   ws[0] = accum.extract();
  161|   334k|   accum.mul(ws[2], p[7]);
  162|   334k|   accum.mul(ws[3], p[6]);
  163|   334k|   accum.mul(ws[4], p[5]);
  164|   334k|   accum.mul(ws[5], p[4]);
  165|   334k|   accum.mul(ws[6], p[3]);
  166|   334k|   accum.mul(ws[7], p[2]);
  167|   334k|   accum.add(z[9]);
  168|   334k|   ws[1] = accum.extract();
  169|   334k|   accum.mul(ws[3], p[7]);
  170|   334k|   accum.mul(ws[4], p[6]);
  171|   334k|   accum.mul(ws[5], p[5]);
  172|   334k|   accum.mul(ws[6], p[4]);
  173|   334k|   accum.mul(ws[7], p[3]);
  174|   334k|   accum.add(z[10]);
  175|   334k|   ws[2] = accum.extract();
  176|   334k|   accum.mul(ws[4], p[7]);
  177|   334k|   accum.mul(ws[5], p[6]);
  178|   334k|   accum.mul(ws[6], p[5]);
  179|   334k|   accum.mul(ws[7], p[4]);
  180|   334k|   accum.add(z[11]);
  181|   334k|   ws[3] = accum.extract();
  182|   334k|   accum.mul(ws[5], p[7]);
  183|   334k|   accum.mul(ws[6], p[6]);
  184|   334k|   accum.mul(ws[7], p[5]);
  185|   334k|   accum.add(z[12]);
  186|   334k|   ws[4] = accum.extract();
  187|   334k|   accum.mul(ws[6], p[7]);
  188|   334k|   accum.mul(ws[7], p[6]);
  189|   334k|   accum.add(z[13]);
  190|   334k|   ws[5] = accum.extract();
  191|   334k|   accum.mul(ws[7], p[7]);
  192|   334k|   accum.add(z[14]);
  193|   334k|   ws[6] = accum.extract();
  194|   334k|   accum.add(z[15]);
  195|   334k|   ws[7] = accum.extract();
  196|   334k|   const word w1 = accum.extract();
  197|   334k|   bigint_monty_maybe_sub<8>(r, w1, ws, p);
  198|   334k|}
_ZN5Botan20bigint_monty_redc_12EPmPKmS2_mS0_:
  200|  5.19k|void bigint_monty_redc_12(word r[12], const word z[24], const word p[12], word p_dash, word ws[12]) {
  201|  5.19k|   word3<word> accum;
  202|  5.19k|   accum.add(z[0]);
  203|  5.19k|   ws[0] = accum.monty_step(p[0], p_dash);
  204|  5.19k|   accum.mul(ws[0], p[1]);
  205|  5.19k|   accum.add(z[1]);
  206|  5.19k|   ws[1] = accum.monty_step(p[0], p_dash);
  207|  5.19k|   accum.mul(ws[0], p[2]);
  208|  5.19k|   accum.mul(ws[1], p[1]);
  209|  5.19k|   accum.add(z[2]);
  210|  5.19k|   ws[2] = accum.monty_step(p[0], p_dash);
  211|  5.19k|   accum.mul(ws[0], p[3]);
  212|  5.19k|   accum.mul(ws[1], p[2]);
  213|  5.19k|   accum.mul(ws[2], p[1]);
  214|  5.19k|   accum.add(z[3]);
  215|  5.19k|   ws[3] = accum.monty_step(p[0], p_dash);
  216|  5.19k|   accum.mul(ws[0], p[4]);
  217|  5.19k|   accum.mul(ws[1], p[3]);
  218|  5.19k|   accum.mul(ws[2], p[2]);
  219|  5.19k|   accum.mul(ws[3], p[1]);
  220|  5.19k|   accum.add(z[4]);
  221|  5.19k|   ws[4] = accum.monty_step(p[0], p_dash);
  222|  5.19k|   accum.mul(ws[0], p[5]);
  223|  5.19k|   accum.mul(ws[1], p[4]);
  224|  5.19k|   accum.mul(ws[2], p[3]);
  225|  5.19k|   accum.mul(ws[3], p[2]);
  226|  5.19k|   accum.mul(ws[4], p[1]);
  227|  5.19k|   accum.add(z[5]);
  228|  5.19k|   ws[5] = accum.monty_step(p[0], p_dash);
  229|  5.19k|   accum.mul(ws[0], p[6]);
  230|  5.19k|   accum.mul(ws[1], p[5]);
  231|  5.19k|   accum.mul(ws[2], p[4]);
  232|  5.19k|   accum.mul(ws[3], p[3]);
  233|  5.19k|   accum.mul(ws[4], p[2]);
  234|  5.19k|   accum.mul(ws[5], p[1]);
  235|  5.19k|   accum.add(z[6]);
  236|  5.19k|   ws[6] = accum.monty_step(p[0], p_dash);
  237|  5.19k|   accum.mul(ws[0], p[7]);
  238|  5.19k|   accum.mul(ws[1], p[6]);
  239|  5.19k|   accum.mul(ws[2], p[5]);
  240|  5.19k|   accum.mul(ws[3], p[4]);
  241|  5.19k|   accum.mul(ws[4], p[3]);
  242|  5.19k|   accum.mul(ws[5], p[2]);
  243|  5.19k|   accum.mul(ws[6], p[1]);
  244|  5.19k|   accum.add(z[7]);
  245|  5.19k|   ws[7] = accum.monty_step(p[0], p_dash);
  246|  5.19k|   accum.mul(ws[0], p[8]);
  247|  5.19k|   accum.mul(ws[1], p[7]);
  248|  5.19k|   accum.mul(ws[2], p[6]);
  249|  5.19k|   accum.mul(ws[3], p[5]);
  250|  5.19k|   accum.mul(ws[4], p[4]);
  251|  5.19k|   accum.mul(ws[5], p[3]);
  252|  5.19k|   accum.mul(ws[6], p[2]);
  253|  5.19k|   accum.mul(ws[7], p[1]);
  254|  5.19k|   accum.add(z[8]);
  255|  5.19k|   ws[8] = accum.monty_step(p[0], p_dash);
  256|  5.19k|   accum.mul(ws[0], p[9]);
  257|  5.19k|   accum.mul(ws[1], p[8]);
  258|  5.19k|   accum.mul(ws[2], p[7]);
  259|  5.19k|   accum.mul(ws[3], p[6]);
  260|  5.19k|   accum.mul(ws[4], p[5]);
  261|  5.19k|   accum.mul(ws[5], p[4]);
  262|  5.19k|   accum.mul(ws[6], p[3]);
  263|  5.19k|   accum.mul(ws[7], p[2]);
  264|  5.19k|   accum.mul(ws[8], p[1]);
  265|  5.19k|   accum.add(z[9]);
  266|  5.19k|   ws[9] = accum.monty_step(p[0], p_dash);
  267|  5.19k|   accum.mul(ws[0], p[10]);
  268|  5.19k|   accum.mul(ws[1], p[9]);
  269|  5.19k|   accum.mul(ws[2], p[8]);
  270|  5.19k|   accum.mul(ws[3], p[7]);
  271|  5.19k|   accum.mul(ws[4], p[6]);
  272|  5.19k|   accum.mul(ws[5], p[5]);
  273|  5.19k|   accum.mul(ws[6], p[4]);
  274|  5.19k|   accum.mul(ws[7], p[3]);
  275|  5.19k|   accum.mul(ws[8], p[2]);
  276|  5.19k|   accum.mul(ws[9], p[1]);
  277|  5.19k|   accum.add(z[10]);
  278|  5.19k|   ws[10] = accum.monty_step(p[0], p_dash);
  279|  5.19k|   accum.mul(ws[0], p[11]);
  280|  5.19k|   accum.mul(ws[1], p[10]);
  281|  5.19k|   accum.mul(ws[2], p[9]);
  282|  5.19k|   accum.mul(ws[3], p[8]);
  283|  5.19k|   accum.mul(ws[4], p[7]);
  284|  5.19k|   accum.mul(ws[5], p[6]);
  285|  5.19k|   accum.mul(ws[6], p[5]);
  286|  5.19k|   accum.mul(ws[7], p[4]);
  287|  5.19k|   accum.mul(ws[8], p[3]);
  288|  5.19k|   accum.mul(ws[9], p[2]);
  289|  5.19k|   accum.mul(ws[10], p[1]);
  290|  5.19k|   accum.add(z[11]);
  291|  5.19k|   ws[11] = accum.monty_step(p[0], p_dash);
  292|  5.19k|   accum.mul(ws[1], p[11]);
  293|  5.19k|   accum.mul(ws[2], p[10]);
  294|  5.19k|   accum.mul(ws[3], p[9]);
  295|  5.19k|   accum.mul(ws[4], p[8]);
  296|  5.19k|   accum.mul(ws[5], p[7]);
  297|  5.19k|   accum.mul(ws[6], p[6]);
  298|  5.19k|   accum.mul(ws[7], p[5]);
  299|  5.19k|   accum.mul(ws[8], p[4]);
  300|  5.19k|   accum.mul(ws[9], p[3]);
  301|  5.19k|   accum.mul(ws[10], p[2]);
  302|  5.19k|   accum.mul(ws[11], p[1]);
  303|  5.19k|   accum.add(z[12]);
  304|  5.19k|   ws[0] = accum.extract();
  305|  5.19k|   accum.mul(ws[2], p[11]);
  306|  5.19k|   accum.mul(ws[3], p[10]);
  307|  5.19k|   accum.mul(ws[4], p[9]);
  308|  5.19k|   accum.mul(ws[5], p[8]);
  309|  5.19k|   accum.mul(ws[6], p[7]);
  310|  5.19k|   accum.mul(ws[7], p[6]);
  311|  5.19k|   accum.mul(ws[8], p[5]);
  312|  5.19k|   accum.mul(ws[9], p[4]);
  313|  5.19k|   accum.mul(ws[10], p[3]);
  314|  5.19k|   accum.mul(ws[11], p[2]);
  315|  5.19k|   accum.add(z[13]);
  316|  5.19k|   ws[1] = accum.extract();
  317|  5.19k|   accum.mul(ws[3], p[11]);
  318|  5.19k|   accum.mul(ws[4], p[10]);
  319|  5.19k|   accum.mul(ws[5], p[9]);
  320|  5.19k|   accum.mul(ws[6], p[8]);
  321|  5.19k|   accum.mul(ws[7], p[7]);
  322|  5.19k|   accum.mul(ws[8], p[6]);
  323|  5.19k|   accum.mul(ws[9], p[5]);
  324|  5.19k|   accum.mul(ws[10], p[4]);
  325|  5.19k|   accum.mul(ws[11], p[3]);
  326|  5.19k|   accum.add(z[14]);
  327|  5.19k|   ws[2] = accum.extract();
  328|  5.19k|   accum.mul(ws[4], p[11]);
  329|  5.19k|   accum.mul(ws[5], p[10]);
  330|  5.19k|   accum.mul(ws[6], p[9]);
  331|  5.19k|   accum.mul(ws[7], p[8]);
  332|  5.19k|   accum.mul(ws[8], p[7]);
  333|  5.19k|   accum.mul(ws[9], p[6]);
  334|  5.19k|   accum.mul(ws[10], p[5]);
  335|  5.19k|   accum.mul(ws[11], p[4]);
  336|  5.19k|   accum.add(z[15]);
  337|  5.19k|   ws[3] = accum.extract();
  338|  5.19k|   accum.mul(ws[5], p[11]);
  339|  5.19k|   accum.mul(ws[6], p[10]);
  340|  5.19k|   accum.mul(ws[7], p[9]);
  341|  5.19k|   accum.mul(ws[8], p[8]);
  342|  5.19k|   accum.mul(ws[9], p[7]);
  343|  5.19k|   accum.mul(ws[10], p[6]);
  344|  5.19k|   accum.mul(ws[11], p[5]);
  345|  5.19k|   accum.add(z[16]);
  346|  5.19k|   ws[4] = accum.extract();
  347|  5.19k|   accum.mul(ws[6], p[11]);
  348|  5.19k|   accum.mul(ws[7], p[10]);
  349|  5.19k|   accum.mul(ws[8], p[9]);
  350|  5.19k|   accum.mul(ws[9], p[8]);
  351|  5.19k|   accum.mul(ws[10], p[7]);
  352|  5.19k|   accum.mul(ws[11], p[6]);
  353|  5.19k|   accum.add(z[17]);
  354|  5.19k|   ws[5] = accum.extract();
  355|  5.19k|   accum.mul(ws[7], p[11]);
  356|  5.19k|   accum.mul(ws[8], p[10]);
  357|  5.19k|   accum.mul(ws[9], p[9]);
  358|  5.19k|   accum.mul(ws[10], p[8]);
  359|  5.19k|   accum.mul(ws[11], p[7]);
  360|  5.19k|   accum.add(z[18]);
  361|  5.19k|   ws[6] = accum.extract();
  362|  5.19k|   accum.mul(ws[8], p[11]);
  363|  5.19k|   accum.mul(ws[9], p[10]);
  364|  5.19k|   accum.mul(ws[10], p[9]);
  365|  5.19k|   accum.mul(ws[11], p[8]);
  366|  5.19k|   accum.add(z[19]);
  367|  5.19k|   ws[7] = accum.extract();
  368|  5.19k|   accum.mul(ws[9], p[11]);
  369|  5.19k|   accum.mul(ws[10], p[10]);
  370|  5.19k|   accum.mul(ws[11], p[9]);
  371|  5.19k|   accum.add(z[20]);
  372|  5.19k|   ws[8] = accum.extract();
  373|  5.19k|   accum.mul(ws[10], p[11]);
  374|  5.19k|   accum.mul(ws[11], p[10]);
  375|  5.19k|   accum.add(z[21]);
  376|  5.19k|   ws[9] = accum.extract();
  377|  5.19k|   accum.mul(ws[11], p[11]);
  378|  5.19k|   accum.add(z[22]);
  379|  5.19k|   ws[10] = accum.extract();
  380|  5.19k|   accum.add(z[23]);
  381|  5.19k|   ws[11] = accum.extract();
  382|  5.19k|   const word w1 = accum.extract();
  383|  5.19k|   bigint_monty_maybe_sub<12>(r, w1, ws, p);
  384|  5.19k|}
_ZN5Botan20bigint_monty_redc_16EPmPKmS2_mS0_:
  386|  1.66k|void bigint_monty_redc_16(word r[16], const word z[32], const word p[16], word p_dash, word ws[16]) {
  387|  1.66k|   word3<word> accum;
  388|  1.66k|   accum.add(z[0]);
  389|  1.66k|   ws[0] = accum.monty_step(p[0], p_dash);
  390|  1.66k|   accum.mul(ws[0], p[1]);
  391|  1.66k|   accum.add(z[1]);
  392|  1.66k|   ws[1] = accum.monty_step(p[0], p_dash);
  393|  1.66k|   accum.mul(ws[0], p[2]);
  394|  1.66k|   accum.mul(ws[1], p[1]);
  395|  1.66k|   accum.add(z[2]);
  396|  1.66k|   ws[2] = accum.monty_step(p[0], p_dash);
  397|  1.66k|   accum.mul(ws[0], p[3]);
  398|  1.66k|   accum.mul(ws[1], p[2]);
  399|  1.66k|   accum.mul(ws[2], p[1]);
  400|  1.66k|   accum.add(z[3]);
  401|  1.66k|   ws[3] = accum.monty_step(p[0], p_dash);
  402|  1.66k|   accum.mul(ws[0], p[4]);
  403|  1.66k|   accum.mul(ws[1], p[3]);
  404|  1.66k|   accum.mul(ws[2], p[2]);
  405|  1.66k|   accum.mul(ws[3], p[1]);
  406|  1.66k|   accum.add(z[4]);
  407|  1.66k|   ws[4] = accum.monty_step(p[0], p_dash);
  408|  1.66k|   accum.mul(ws[0], p[5]);
  409|  1.66k|   accum.mul(ws[1], p[4]);
  410|  1.66k|   accum.mul(ws[2], p[3]);
  411|  1.66k|   accum.mul(ws[3], p[2]);
  412|  1.66k|   accum.mul(ws[4], p[1]);
  413|  1.66k|   accum.add(z[5]);
  414|  1.66k|   ws[5] = accum.monty_step(p[0], p_dash);
  415|  1.66k|   accum.mul(ws[0], p[6]);
  416|  1.66k|   accum.mul(ws[1], p[5]);
  417|  1.66k|   accum.mul(ws[2], p[4]);
  418|  1.66k|   accum.mul(ws[3], p[3]);
  419|  1.66k|   accum.mul(ws[4], p[2]);
  420|  1.66k|   accum.mul(ws[5], p[1]);
  421|  1.66k|   accum.add(z[6]);
  422|  1.66k|   ws[6] = accum.monty_step(p[0], p_dash);
  423|  1.66k|   accum.mul(ws[0], p[7]);
  424|  1.66k|   accum.mul(ws[1], p[6]);
  425|  1.66k|   accum.mul(ws[2], p[5]);
  426|  1.66k|   accum.mul(ws[3], p[4]);
  427|  1.66k|   accum.mul(ws[4], p[3]);
  428|  1.66k|   accum.mul(ws[5], p[2]);
  429|  1.66k|   accum.mul(ws[6], p[1]);
  430|  1.66k|   accum.add(z[7]);
  431|  1.66k|   ws[7] = accum.monty_step(p[0], p_dash);
  432|  1.66k|   accum.mul(ws[0], p[8]);
  433|  1.66k|   accum.mul(ws[1], p[7]);
  434|  1.66k|   accum.mul(ws[2], p[6]);
  435|  1.66k|   accum.mul(ws[3], p[5]);
  436|  1.66k|   accum.mul(ws[4], p[4]);
  437|  1.66k|   accum.mul(ws[5], p[3]);
  438|  1.66k|   accum.mul(ws[6], p[2]);
  439|  1.66k|   accum.mul(ws[7], p[1]);
  440|  1.66k|   accum.add(z[8]);
  441|  1.66k|   ws[8] = accum.monty_step(p[0], p_dash);
  442|  1.66k|   accum.mul(ws[0], p[9]);
  443|  1.66k|   accum.mul(ws[1], p[8]);
  444|  1.66k|   accum.mul(ws[2], p[7]);
  445|  1.66k|   accum.mul(ws[3], p[6]);
  446|  1.66k|   accum.mul(ws[4], p[5]);
  447|  1.66k|   accum.mul(ws[5], p[4]);
  448|  1.66k|   accum.mul(ws[6], p[3]);
  449|  1.66k|   accum.mul(ws[7], p[2]);
  450|  1.66k|   accum.mul(ws[8], p[1]);
  451|  1.66k|   accum.add(z[9]);
  452|  1.66k|   ws[9] = accum.monty_step(p[0], p_dash);
  453|  1.66k|   accum.mul(ws[0], p[10]);
  454|  1.66k|   accum.mul(ws[1], p[9]);
  455|  1.66k|   accum.mul(ws[2], p[8]);
  456|  1.66k|   accum.mul(ws[3], p[7]);
  457|  1.66k|   accum.mul(ws[4], p[6]);
  458|  1.66k|   accum.mul(ws[5], p[5]);
  459|  1.66k|   accum.mul(ws[6], p[4]);
  460|  1.66k|   accum.mul(ws[7], p[3]);
  461|  1.66k|   accum.mul(ws[8], p[2]);
  462|  1.66k|   accum.mul(ws[9], p[1]);
  463|  1.66k|   accum.add(z[10]);
  464|  1.66k|   ws[10] = accum.monty_step(p[0], p_dash);
  465|  1.66k|   accum.mul(ws[0], p[11]);
  466|  1.66k|   accum.mul(ws[1], p[10]);
  467|  1.66k|   accum.mul(ws[2], p[9]);
  468|  1.66k|   accum.mul(ws[3], p[8]);
  469|  1.66k|   accum.mul(ws[4], p[7]);
  470|  1.66k|   accum.mul(ws[5], p[6]);
  471|  1.66k|   accum.mul(ws[6], p[5]);
  472|  1.66k|   accum.mul(ws[7], p[4]);
  473|  1.66k|   accum.mul(ws[8], p[3]);
  474|  1.66k|   accum.mul(ws[9], p[2]);
  475|  1.66k|   accum.mul(ws[10], p[1]);
  476|  1.66k|   accum.add(z[11]);
  477|  1.66k|   ws[11] = accum.monty_step(p[0], p_dash);
  478|  1.66k|   accum.mul(ws[0], p[12]);
  479|  1.66k|   accum.mul(ws[1], p[11]);
  480|  1.66k|   accum.mul(ws[2], p[10]);
  481|  1.66k|   accum.mul(ws[3], p[9]);
  482|  1.66k|   accum.mul(ws[4], p[8]);
  483|  1.66k|   accum.mul(ws[5], p[7]);
  484|  1.66k|   accum.mul(ws[6], p[6]);
  485|  1.66k|   accum.mul(ws[7], p[5]);
  486|  1.66k|   accum.mul(ws[8], p[4]);
  487|  1.66k|   accum.mul(ws[9], p[3]);
  488|  1.66k|   accum.mul(ws[10], p[2]);
  489|  1.66k|   accum.mul(ws[11], p[1]);
  490|  1.66k|   accum.add(z[12]);
  491|  1.66k|   ws[12] = accum.monty_step(p[0], p_dash);
  492|  1.66k|   accum.mul(ws[0], p[13]);
  493|  1.66k|   accum.mul(ws[1], p[12]);
  494|  1.66k|   accum.mul(ws[2], p[11]);
  495|  1.66k|   accum.mul(ws[3], p[10]);
  496|  1.66k|   accum.mul(ws[4], p[9]);
  497|  1.66k|   accum.mul(ws[5], p[8]);
  498|  1.66k|   accum.mul(ws[6], p[7]);
  499|  1.66k|   accum.mul(ws[7], p[6]);
  500|  1.66k|   accum.mul(ws[8], p[5]);
  501|  1.66k|   accum.mul(ws[9], p[4]);
  502|  1.66k|   accum.mul(ws[10], p[3]);
  503|  1.66k|   accum.mul(ws[11], p[2]);
  504|  1.66k|   accum.mul(ws[12], p[1]);
  505|  1.66k|   accum.add(z[13]);
  506|  1.66k|   ws[13] = accum.monty_step(p[0], p_dash);
  507|  1.66k|   accum.mul(ws[0], p[14]);
  508|  1.66k|   accum.mul(ws[1], p[13]);
  509|  1.66k|   accum.mul(ws[2], p[12]);
  510|  1.66k|   accum.mul(ws[3], p[11]);
  511|  1.66k|   accum.mul(ws[4], p[10]);
  512|  1.66k|   accum.mul(ws[5], p[9]);
  513|  1.66k|   accum.mul(ws[6], p[8]);
  514|  1.66k|   accum.mul(ws[7], p[7]);
  515|  1.66k|   accum.mul(ws[8], p[6]);
  516|  1.66k|   accum.mul(ws[9], p[5]);
  517|  1.66k|   accum.mul(ws[10], p[4]);
  518|  1.66k|   accum.mul(ws[11], p[3]);
  519|  1.66k|   accum.mul(ws[12], p[2]);
  520|  1.66k|   accum.mul(ws[13], p[1]);
  521|  1.66k|   accum.add(z[14]);
  522|  1.66k|   ws[14] = accum.monty_step(p[0], p_dash);
  523|  1.66k|   accum.mul(ws[0], p[15]);
  524|  1.66k|   accum.mul(ws[1], p[14]);
  525|  1.66k|   accum.mul(ws[2], p[13]);
  526|  1.66k|   accum.mul(ws[3], p[12]);
  527|  1.66k|   accum.mul(ws[4], p[11]);
  528|  1.66k|   accum.mul(ws[5], p[10]);
  529|  1.66k|   accum.mul(ws[6], p[9]);
  530|  1.66k|   accum.mul(ws[7], p[8]);
  531|  1.66k|   accum.mul(ws[8], p[7]);
  532|  1.66k|   accum.mul(ws[9], p[6]);
  533|  1.66k|   accum.mul(ws[10], p[5]);
  534|  1.66k|   accum.mul(ws[11], p[4]);
  535|  1.66k|   accum.mul(ws[12], p[3]);
  536|  1.66k|   accum.mul(ws[13], p[2]);
  537|  1.66k|   accum.mul(ws[14], p[1]);
  538|  1.66k|   accum.add(z[15]);
  539|  1.66k|   ws[15] = accum.monty_step(p[0], p_dash);
  540|  1.66k|   accum.mul(ws[1], p[15]);
  541|  1.66k|   accum.mul(ws[2], p[14]);
  542|  1.66k|   accum.mul(ws[3], p[13]);
  543|  1.66k|   accum.mul(ws[4], p[12]);
  544|  1.66k|   accum.mul(ws[5], p[11]);
  545|  1.66k|   accum.mul(ws[6], p[10]);
  546|  1.66k|   accum.mul(ws[7], p[9]);
  547|  1.66k|   accum.mul(ws[8], p[8]);
  548|  1.66k|   accum.mul(ws[9], p[7]);
  549|  1.66k|   accum.mul(ws[10], p[6]);
  550|  1.66k|   accum.mul(ws[11], p[5]);
  551|  1.66k|   accum.mul(ws[12], p[4]);
  552|  1.66k|   accum.mul(ws[13], p[3]);
  553|  1.66k|   accum.mul(ws[14], p[2]);
  554|  1.66k|   accum.mul(ws[15], p[1]);
  555|  1.66k|   accum.add(z[16]);
  556|  1.66k|   ws[0] = accum.extract();
  557|  1.66k|   accum.mul(ws[2], p[15]);
  558|  1.66k|   accum.mul(ws[3], p[14]);
  559|  1.66k|   accum.mul(ws[4], p[13]);
  560|  1.66k|   accum.mul(ws[5], p[12]);
  561|  1.66k|   accum.mul(ws[6], p[11]);
  562|  1.66k|   accum.mul(ws[7], p[10]);
  563|  1.66k|   accum.mul(ws[8], p[9]);
  564|  1.66k|   accum.mul(ws[9], p[8]);
  565|  1.66k|   accum.mul(ws[10], p[7]);
  566|  1.66k|   accum.mul(ws[11], p[6]);
  567|  1.66k|   accum.mul(ws[12], p[5]);
  568|  1.66k|   accum.mul(ws[13], p[4]);
  569|  1.66k|   accum.mul(ws[14], p[3]);
  570|  1.66k|   accum.mul(ws[15], p[2]);
  571|  1.66k|   accum.add(z[17]);
  572|  1.66k|   ws[1] = accum.extract();
  573|  1.66k|   accum.mul(ws[3], p[15]);
  574|  1.66k|   accum.mul(ws[4], p[14]);
  575|  1.66k|   accum.mul(ws[5], p[13]);
  576|  1.66k|   accum.mul(ws[6], p[12]);
  577|  1.66k|   accum.mul(ws[7], p[11]);
  578|  1.66k|   accum.mul(ws[8], p[10]);
  579|  1.66k|   accum.mul(ws[9], p[9]);
  580|  1.66k|   accum.mul(ws[10], p[8]);
  581|  1.66k|   accum.mul(ws[11], p[7]);
  582|  1.66k|   accum.mul(ws[12], p[6]);
  583|  1.66k|   accum.mul(ws[13], p[5]);
  584|  1.66k|   accum.mul(ws[14], p[4]);
  585|  1.66k|   accum.mul(ws[15], p[3]);
  586|  1.66k|   accum.add(z[18]);
  587|  1.66k|   ws[2] = accum.extract();
  588|  1.66k|   accum.mul(ws[4], p[15]);
  589|  1.66k|   accum.mul(ws[5], p[14]);
  590|  1.66k|   accum.mul(ws[6], p[13]);
  591|  1.66k|   accum.mul(ws[7], p[12]);
  592|  1.66k|   accum.mul(ws[8], p[11]);
  593|  1.66k|   accum.mul(ws[9], p[10]);
  594|  1.66k|   accum.mul(ws[10], p[9]);
  595|  1.66k|   accum.mul(ws[11], p[8]);
  596|  1.66k|   accum.mul(ws[12], p[7]);
  597|  1.66k|   accum.mul(ws[13], p[6]);
  598|  1.66k|   accum.mul(ws[14], p[5]);
  599|  1.66k|   accum.mul(ws[15], p[4]);
  600|  1.66k|   accum.add(z[19]);
  601|  1.66k|   ws[3] = accum.extract();
  602|  1.66k|   accum.mul(ws[5], p[15]);
  603|  1.66k|   accum.mul(ws[6], p[14]);
  604|  1.66k|   accum.mul(ws[7], p[13]);
  605|  1.66k|   accum.mul(ws[8], p[12]);
  606|  1.66k|   accum.mul(ws[9], p[11]);
  607|  1.66k|   accum.mul(ws[10], p[10]);
  608|  1.66k|   accum.mul(ws[11], p[9]);
  609|  1.66k|   accum.mul(ws[12], p[8]);
  610|  1.66k|   accum.mul(ws[13], p[7]);
  611|  1.66k|   accum.mul(ws[14], p[6]);
  612|  1.66k|   accum.mul(ws[15], p[5]);
  613|  1.66k|   accum.add(z[20]);
  614|  1.66k|   ws[4] = accum.extract();
  615|  1.66k|   accum.mul(ws[6], p[15]);
  616|  1.66k|   accum.mul(ws[7], p[14]);
  617|  1.66k|   accum.mul(ws[8], p[13]);
  618|  1.66k|   accum.mul(ws[9], p[12]);
  619|  1.66k|   accum.mul(ws[10], p[11]);
  620|  1.66k|   accum.mul(ws[11], p[10]);
  621|  1.66k|   accum.mul(ws[12], p[9]);
  622|  1.66k|   accum.mul(ws[13], p[8]);
  623|  1.66k|   accum.mul(ws[14], p[7]);
  624|  1.66k|   accum.mul(ws[15], p[6]);
  625|  1.66k|   accum.add(z[21]);
  626|  1.66k|   ws[5] = accum.extract();
  627|  1.66k|   accum.mul(ws[7], p[15]);
  628|  1.66k|   accum.mul(ws[8], p[14]);
  629|  1.66k|   accum.mul(ws[9], p[13]);
  630|  1.66k|   accum.mul(ws[10], p[12]);
  631|  1.66k|   accum.mul(ws[11], p[11]);
  632|  1.66k|   accum.mul(ws[12], p[10]);
  633|  1.66k|   accum.mul(ws[13], p[9]);
  634|  1.66k|   accum.mul(ws[14], p[8]);
  635|  1.66k|   accum.mul(ws[15], p[7]);
  636|  1.66k|   accum.add(z[22]);
  637|  1.66k|   ws[6] = accum.extract();
  638|  1.66k|   accum.mul(ws[8], p[15]);
  639|  1.66k|   accum.mul(ws[9], p[14]);
  640|  1.66k|   accum.mul(ws[10], p[13]);
  641|  1.66k|   accum.mul(ws[11], p[12]);
  642|  1.66k|   accum.mul(ws[12], p[11]);
  643|  1.66k|   accum.mul(ws[13], p[10]);
  644|  1.66k|   accum.mul(ws[14], p[9]);
  645|  1.66k|   accum.mul(ws[15], p[8]);
  646|  1.66k|   accum.add(z[23]);
  647|  1.66k|   ws[7] = accum.extract();
  648|  1.66k|   accum.mul(ws[9], p[15]);
  649|  1.66k|   accum.mul(ws[10], p[14]);
  650|  1.66k|   accum.mul(ws[11], p[13]);
  651|  1.66k|   accum.mul(ws[12], p[12]);
  652|  1.66k|   accum.mul(ws[13], p[11]);
  653|  1.66k|   accum.mul(ws[14], p[10]);
  654|  1.66k|   accum.mul(ws[15], p[9]);
  655|  1.66k|   accum.add(z[24]);
  656|  1.66k|   ws[8] = accum.extract();
  657|  1.66k|   accum.mul(ws[10], p[15]);
  658|  1.66k|   accum.mul(ws[11], p[14]);
  659|  1.66k|   accum.mul(ws[12], p[13]);
  660|  1.66k|   accum.mul(ws[13], p[12]);
  661|  1.66k|   accum.mul(ws[14], p[11]);
  662|  1.66k|   accum.mul(ws[15], p[10]);
  663|  1.66k|   accum.add(z[25]);
  664|  1.66k|   ws[9] = accum.extract();
  665|  1.66k|   accum.mul(ws[11], p[15]);
  666|  1.66k|   accum.mul(ws[12], p[14]);
  667|  1.66k|   accum.mul(ws[13], p[13]);
  668|  1.66k|   accum.mul(ws[14], p[12]);
  669|  1.66k|   accum.mul(ws[15], p[11]);
  670|  1.66k|   accum.add(z[26]);
  671|  1.66k|   ws[10] = accum.extract();
  672|  1.66k|   accum.mul(ws[12], p[15]);
  673|  1.66k|   accum.mul(ws[13], p[14]);
  674|  1.66k|   accum.mul(ws[14], p[13]);
  675|  1.66k|   accum.mul(ws[15], p[12]);
  676|  1.66k|   accum.add(z[27]);
  677|  1.66k|   ws[11] = accum.extract();
  678|  1.66k|   accum.mul(ws[13], p[15]);
  679|  1.66k|   accum.mul(ws[14], p[14]);
  680|  1.66k|   accum.mul(ws[15], p[13]);
  681|  1.66k|   accum.add(z[28]);
  682|  1.66k|   ws[12] = accum.extract();
  683|  1.66k|   accum.mul(ws[14], p[15]);
  684|  1.66k|   accum.mul(ws[15], p[14]);
  685|  1.66k|   accum.add(z[29]);
  686|  1.66k|   ws[13] = accum.extract();
  687|  1.66k|   accum.mul(ws[15], p[15]);
  688|  1.66k|   accum.add(z[30]);
  689|  1.66k|   ws[14] = accum.extract();
  690|  1.66k|   accum.add(z[31]);
  691|  1.66k|   ws[15] = accum.extract();
  692|  1.66k|   const word w1 = accum.extract();
  693|  1.66k|   bigint_monty_maybe_sub<16>(r, w1, ws, p);
  694|  1.66k|}

_ZN5Botan17Barrett_ReductionC2ERKNS_6BigIntES1_m:
   17|  9.97k|      m_modulus(m), m_mu(std::move(mu)), m_mod_words(mw), m_modulus_bits(m.bits()) {
   18|       |   // Give some extra space for Karatsuba
   19|  9.97k|   m_modulus.grow_to(m_mod_words + 8);
   20|  9.97k|   m_mu.grow_to(m_mod_words + 8);
   21|  9.97k|}
_ZN5Botan17Barrett_Reduction18for_secret_modulusERKNS_6BigIntE:
   23|    684|Barrett_Reduction Barrett_Reduction::for_secret_modulus(const BigInt& mod) {
   24|    684|   BOTAN_ARG_CHECK(mod.signum() > 0, "Modulus must be positive");
  ------------------
  |  |   35|    684|   do {                                                          \
  |  |   36|    684|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    684|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 684]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    684|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 684]
  |  |  ------------------
  ------------------
   25|       |
   26|    684|   const size_t mod_words = mod.sig_words();
   27|       |
   28|       |   // Compute mu = floor(2^{2k} / m)
   29|    684|   const size_t mu_bits = 2 * WordInfo<word>::bits * mod_words;
   30|    684|   return Barrett_Reduction(mod, ct_divide_pow2k(mu_bits, mod), mod_words);
   31|    684|}
_ZN5Botan17Barrett_Reduction18for_public_modulusERKNS_6BigIntE:
   33|  9.29k|Barrett_Reduction Barrett_Reduction::for_public_modulus(const BigInt& mod) {
   34|  9.29k|   BOTAN_ARG_CHECK(mod.signum() > 0, "Modulus must be positive");
  ------------------
  |  |   35|  9.29k|   do {                                                          \
  |  |   36|  9.29k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  9.29k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 9.29k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  9.29k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 9.29k]
  |  |  ------------------
  ------------------
   35|       |
   36|  9.29k|   const size_t mod_words = mod.sig_words();
   37|       |
   38|       |   // Compute mu = floor(2^{2k} / m)
   39|  9.29k|   const size_t mu_bits = 2 * WordInfo<word>::bits * mod_words;
   40|  9.29k|   return Barrett_Reduction(mod, vartime_divide_pow2k(mu_bits, mod), mod_words);
   41|  9.29k|}
_ZNK5Botan17Barrett_Reduction8multiplyERKNS_6BigIntES3_:
  159|   812k|BigInt Barrett_Reduction::multiply(const BigInt& x, const BigInt& y) const {
  160|   812k|   BOTAN_ARG_CHECK(acceptable_barrett_input(x, m_modulus).as_bool(), "Invalid x param for Barrett multiply");
  ------------------
  |  |   35|   812k|   do {                                                          \
  |  |   36|   812k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|   812k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 812k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|   812k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 812k]
  |  |  ------------------
  ------------------
  161|   812k|   BOTAN_ARG_CHECK(acceptable_barrett_input(y, m_modulus).as_bool(), "Invalid y param for Barrett multiply");
  ------------------
  |  |   35|   812k|   do {                                                          \
  |  |   36|   812k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|   812k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 812k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|   812k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 812k]
  |  |  ------------------
  ------------------
  162|       |
  163|   812k|   secure_vector<word> ws(2 * (m_mod_words + 2));
  164|   812k|   secure_vector<word> xy(2 * m_mod_words);
  165|       |
  166|   812k|   bigint_mul(xy.data(),
  167|   812k|              xy.size(),
  168|   812k|              x._data(),
  169|   812k|              x.size(),
  170|   812k|              std::min(x.size(), m_mod_words),
  171|   812k|              y._data(),
  172|   812k|              y.size(),
  173|   812k|              std::min(y.size(), m_mod_words),
  174|   812k|              ws.data(),
  175|   812k|              ws.size());
  176|       |
  177|   812k|   return barrett_reduce(m_mod_words, m_modulus, m_mu, xy, ws);
  178|   812k|}
_ZNK5Botan17Barrett_Reduction6squareERKNS_6BigIntE:
  180|   561k|BigInt Barrett_Reduction::square(const BigInt& x) const {
  181|   561k|   BOTAN_ARG_CHECK(acceptable_barrett_input(x, m_modulus).as_bool(), "Invalid x param for Barrett square");
  ------------------
  |  |   35|   561k|   do {                                                          \
  |  |   36|   561k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|   561k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 561k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|   561k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 561k]
  |  |  ------------------
  ------------------
  182|       |
  183|   561k|   secure_vector<word> ws(2 * (m_mod_words + 2));
  184|   561k|   secure_vector<word> x2(2 * m_mod_words);
  185|       |
  186|   561k|   bigint_sqr(x2.data(), x2.size(), x._data(), x.size(), std::min(x.size(), m_mod_words), ws.data(), ws.size());
  187|       |
  188|   561k|   return barrett_reduce(m_mod_words, m_modulus, m_mu, x2, ws);
  189|   561k|}
_ZNK5Botan17Barrett_Reduction6reduceERKNS_6BigIntE:
  191|  1.07M|BigInt Barrett_Reduction::reduce(const BigInt& x) const {
  192|  1.07M|   BOTAN_ARG_CHECK(x.signum() >= 0, "Argument must be non-negative");
  ------------------
  |  |   35|  1.07M|   do {                                                          \
  |  |   36|  1.07M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  1.07M|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 1.07M]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  1.07M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 1.07M]
  |  |  ------------------
  ------------------
  193|       |
  194|  1.07M|   const size_t x_sw = x.sig_words();
  195|  1.07M|   BOTAN_ARG_CHECK(x_sw <= 2 * m_mod_words, "Argument is too large for Barrett reduction");
  ------------------
  |  |   35|  1.07M|   do {                                                          \
  |  |   36|  1.07M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  1.07M|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 1.07M]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  1.07M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 1.07M]
  |  |  ------------------
  ------------------
  196|       |
  197|  1.07M|   x.grow_to(2 * m_mod_words);
  198|       |
  199|  1.07M|   secure_vector<word> ws;
  200|  1.07M|   return barrett_reduce(m_mod_words, m_modulus, m_mu, x._as_span(), ws);
  201|  1.07M|}
barrett.cpp:_ZN5Botan12_GLOBAL__N_124acceptable_barrett_inputERKNS_6BigIntES3_:
  151|  2.18M|CT::Choice acceptable_barrett_input(const BigInt& x, const BigInt& modulus) {
  152|  2.18M|   auto x_is_positive = CT::Choice::from_int(static_cast<uint32_t>(x.signum() >= 0));
  153|  2.18M|   auto x_lt_mod = bigint_ct_is_lt(x._data(), x.size(), modulus._data(), modulus.sig_words()).as_choice();
  154|  2.18M|   return x_is_positive && x_lt_mod;
  155|  2.18M|}
barrett.cpp:_ZN5Botan12_GLOBAL__N_114barrett_reduceEmRKNS_6BigIntES3_NSt3__14spanIKmLm18446744073709551615EEERNS4_6vectorImNS_16secure_allocatorImEEEE:
   54|  2.45M|   size_t mod_words, const BigInt& modulus, const BigInt& mu, std::span<const word> x_words, secure_vector<word>& ws) {
   55|  2.45M|   BOTAN_ASSERT_NOMSG(modulus.sig_words() == mod_words);
  ------------------
  |  |   77|  2.45M|   do {                                                                     \
  |  |   78|  2.45M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  2.45M|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 2.45M]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  2.45M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 2.45M]
  |  |  ------------------
  ------------------
   56|       |
   57|       |   // Caller must expand input to be at least this size
   58|  2.45M|   BOTAN_ASSERT_NOMSG(x_words.size() >= 2 * mod_words);
  ------------------
  |  |   77|  2.45M|   do {                                                                     \
  |  |   78|  2.45M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  2.45M|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 2.45M]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  2.45M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 2.45M]
  |  |  ------------------
  ------------------
   59|       |
   60|       |   // Normally mod_words + 1 but can be + 2 if the modulus is a power of 2
   61|  2.45M|   const size_t mu_words = mu.sig_words();
   62|  2.45M|   BOTAN_ASSERT_NOMSG(mu_words <= mod_words + 2);
  ------------------
  |  |   77|  2.45M|   do {                                                                     \
  |  |   78|  2.45M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  2.45M|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 2.45M]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  2.45M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 2.45M]
  |  |  ------------------
  ------------------
   63|       |
   64|  2.45M|   if(ws.size() < 2 * (mod_words + 2)) {
  ------------------
  |  Branch (64:7): [True: 1.07M, False: 1.37M]
  ------------------
   65|  1.07M|      ws.resize(2 * (mod_words + 2));
   66|  1.07M|   }
   67|       |
   68|  2.45M|   CT::poison(x_words);
   69|       |
   70|       |   /*
   71|       |   * Following the notation of Handbook of Applied Cryptography
   72|       |   * Algorithm 14.42 "Barrett modular reduction", page 604
   73|       |   * <https://cacr.uwaterloo.ca/hac/about/chap14.pdf>
   74|       |   *
   75|       |   * Using `mu` for μ in the code
   76|       |   */
   77|       |
   78|       |   // Compute q1 = floor(x / 2^(k - 1)) which is equivalent to ignoring the low (k-1) words
   79|       |
   80|       |   // 2 * mod_words + 1 is sufficient, extra is to enable Karatsuba
   81|  2.45M|   secure_vector<word> r(2 * mu_words + 2);
   82|       |
   83|  2.45M|   copy_mem(r.data(), x_words.data() + (mod_words - 1), mod_words + 1);
   84|       |
   85|       |   // Now compute q2 = q1 * μ
   86|       |
   87|       |   // We allocate more size than required since this allows Karatsuba more often;
   88|       |   // just `mu_words + (mod_words + 1)` is sufficient
   89|  2.45M|   const size_t q2_size = 2 * mu_words + 2;
   90|       |
   91|  2.45M|   secure_vector<word> q2(q2_size);
   92|       |
   93|  2.45M|   bigint_mul(
   94|  2.45M|      q2.data(), q2.size(), r.data(), r.size(), mod_words + 1, mu._data(), mu.size(), mu_words, ws.data(), ws.size());
   95|       |
   96|       |   // Compute r2 = (floor(q2 / b^(k+1)) * m) mod 2^(k+1)
   97|       |   // The division/floor is again effected by just ignoring the low k + 1 words
   98|  2.45M|   bigint_mul(r.data(),
   99|  2.45M|              r.size(),
  100|  2.45M|              &q2[mod_words + 1],  // ignoring the low mod_words + 1 words of the first product
  101|  2.45M|              q2.size() - (mod_words + 1),
  102|  2.45M|              mod_words + 1,
  103|  2.45M|              modulus._data(),
  104|  2.45M|              modulus.size(),
  105|  2.45M|              mod_words,
  106|  2.45M|              ws.data(),
  107|  2.45M|              ws.size());
  108|       |
  109|       |   // Clear the high words of the product, equivalent to computing mod 2^(k+1)
  110|       |   // TODO add masked mul to avoid computing high bits at all
  111|  2.45M|   clear_mem(std::span{r}.subspan(mod_words + 1));
  112|       |
  113|       |   // Compute r = r1 - r2
  114|       |
  115|       |   // The return value of bigint_sub_abs isn't quite right for what we need here so first compare
  116|  2.45M|   const int32_t relative_size = bigint_cmp(r.data(), mod_words + 1, x_words.data(), mod_words + 1);
  117|       |
  118|  2.45M|   bigint_sub_abs(r.data(), r.data(), x_words.data(), mod_words + 1, ws.data());
  119|       |
  120|       |   /*
  121|       |   If r is negative then we have to set r to r + 2^(k+1)
  122|       |
  123|       |   However for r negative computing this sum is equivalent to computing 2^(k+1) - abs(r)
  124|       |   */
  125|  2.45M|   clear_mem(ws.data(), mod_words + 2);
  126|  2.45M|   ws[mod_words + 1] = 1;
  127|  2.45M|   bigint_sub2(ws.data(), mod_words + 2, r.data(), mod_words + 2);
  128|       |
  129|       |   // If relative_size > 0 then assign r to 2^(k+1) - r
  130|  2.45M|   CT::Mask<word>::is_equal(static_cast<word>(relative_size), 1).select_n(r.data(), ws.data(), r.data(), mod_words + 2);
  131|       |
  132|       |   /*
  133|       |   * Per HAC Note 14.44 (ii) "step 4 is repeated at most twice since 0 ≤ r < 3m"
  134|       |   */
  135|  2.45M|   const size_t bound = 2;
  136|       |
  137|  2.45M|   BOTAN_ASSERT_NOMSG(r.size() >= mod_words + 1);
  ------------------
  |  |   77|  2.45M|   do {                                                                     \
  |  |   78|  2.45M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  2.45M|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 2.45M]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  2.45M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 2.45M]
  |  |  ------------------
  ------------------
  138|  7.35M|   for(size_t i = 0; i != bound; ++i) {
  ------------------
  |  Branch (138:22): [True: 4.90M, False: 2.45M]
  ------------------
  139|  4.90M|      const word borrow = bigint_sub3(ws.data(), r.data(), mod_words + 1, modulus._data(), mod_words);
  140|  4.90M|      CT::Mask<word>::is_zero(borrow).select_n(r.data(), ws.data(), r.data(), mod_words + 1);
  141|  4.90M|   }
  142|       |
  143|  2.45M|   CT::unpoison(q2);
  144|  2.45M|   CT::unpoison(r);
  145|  2.45M|   CT::unpoison(ws);
  146|  2.45M|   CT::unpoison(x_words);
  147|       |
  148|  2.45M|   return BigInt::_from_words(r);
  149|  2.45M|}

_ZN5Botan24inverse_mod_public_primeERKNS_6BigIntES2_:
  294|    349|BigInt inverse_mod_public_prime(const BigInt& x, const BigInt& p) {
  295|    349|   BOTAN_ARG_CHECK(p.signum() > 0, "Modulus must be positive");
  ------------------
  |  |   35|    349|   do {                                                          \
  |  |   36|    349|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    349|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 349]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    349|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 349]
  |  |  ------------------
  ------------------
  296|    349|   BOTAN_ARG_CHECK(x.signum() > 0, "Input must be positive");
  ------------------
  |  |   35|    349|   do {                                                          \
  |  |   36|    349|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    349|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 349]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    349|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 349]
  |  |  ------------------
  ------------------
  297|    349|   BOTAN_ARG_CHECK(x < p, "Input must be less than modulus");
  ------------------
  |  |   35|    349|   do {                                                          \
  |  |   36|    349|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    349|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 349]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    349|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 349]
  |  |  ------------------
  ------------------
  298|    349|   BOTAN_ARG_CHECK(p.is_odd() && p > 1, "Primes are odd integers greater than 1");
  ------------------
  |  |   35|    349|   do {                                                          \
  |  |   36|    349|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    698|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 349, False: 0]
  |  |  |  Branch (37:12): [True: 349, False: 0]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    349|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 349]
  |  |  ------------------
  ------------------
  299|       |
  300|       |   // TODO possibly use FLT, or the algorithm presented for this case in
  301|       |   // Handbook of Elliptic and Hyperelliptic Curve Cryptography
  302|       |
  303|    349|   return inverse_mod_odd_modulus(x, p);
  304|    349|}
mod_inv.cpp:_ZN5Botan12_GLOBAL__N_123inverse_mod_odd_modulusERKNS_6BigIntES3_:
   21|    349|BigInt inverse_mod_odd_modulus(const BigInt& n, const BigInt& mod) {
   22|       |   // Caller should assure these preconditions:
   23|    349|   BOTAN_ASSERT_NOMSG(n.signum() >= 0);
  ------------------
  |  |   77|    349|   do {                                                                     \
  |  |   78|    349|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|    349|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 349]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|    349|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 349]
  |  |  ------------------
  ------------------
   24|    349|   BOTAN_ASSERT_NOMSG(mod.signum() > 0);
  ------------------
  |  |   77|    349|   do {                                                                     \
  |  |   78|    349|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|    349|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 349]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|    349|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 349]
  |  |  ------------------
  ------------------
   25|    349|   BOTAN_ASSERT_NOMSG(n < mod);
  ------------------
  |  |   77|    349|   do {                                                                     \
  |  |   78|    349|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|    349|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 349]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|    349|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 349]
  |  |  ------------------
  ------------------
   26|    349|   BOTAN_ASSERT_NOMSG(mod >= 3 && mod.is_odd());
  ------------------
  |  |   77|    349|   do {                                                                     \
  |  |   78|    349|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|    698|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:12): [True: 349, False: 0]
  |  |  |  Branch (79:12): [True: 349, False: 0]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|    349|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 349]
  |  |  ------------------
  ------------------
   27|       |
   28|       |   /*
   29|       |   This uses a modular inversion algorithm designed by Niels Möller
   30|       |   and implemented in Nettle. The same algorithm was later also
   31|       |   adapted to GMP in mpn_sec_invert.
   32|       |
   33|       |   It can be easily implemented in a way that does not depend on
   34|       |   secret branches or memory lookups, providing resistance against
   35|       |   some forms of side channel attack.
   36|       |
   37|       |   There is also a description of the algorithm in Appendix 5 of "Fast
   38|       |   Software Polynomial Multiplication on ARM Processors using the NEON Engine"
   39|       |   by Danilo Câmara, Conrado P. L. Gouvêa, Julio López, and Ricardo
   40|       |   Dahab in LNCS 8182
   41|       |      https://inria.hal.science/hal-01506572/document
   42|       |
   43|       |   Thanks to Niels for creating the algorithm, explaining some things
   44|       |   about it, and the reference to the paper.
   45|       |   */
   46|       |
   47|    349|   const size_t mod_words = mod.sig_words();
   48|    349|   BOTAN_ASSERT(mod_words > 0, "Not empty");
  ------------------
  |  |   64|    349|   do {                                                                                 \
  |  |   65|    349|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|    349|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 349]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|    349|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 349]
  |  |  ------------------
  ------------------
   49|       |
   50|    349|   secure_vector<word> tmp_mem(5 * mod_words);
   51|       |
   52|    349|   word* v_w = &tmp_mem[0];  // NOLINT(readability-container-data-pointer)
   53|    349|   word* u_w = &tmp_mem[1 * mod_words];
   54|    349|   word* b_w = &tmp_mem[2 * mod_words];
   55|    349|   word* a_w = &tmp_mem[3 * mod_words];
   56|    349|   word* mp1o2 = &tmp_mem[4 * mod_words];
   57|       |
   58|    349|   copy_mem(a_w, n._data(), std::min(n.size(), mod_words));
   59|    349|   copy_mem(b_w, mod._data(), std::min(mod.size(), mod_words));
   60|    349|   u_w[0] = 1;
   61|       |   // v_w = 0
   62|       |
   63|       |   // compute (mod + 1) / 2 which [because mod is odd] is equal to
   64|       |   // (mod / 2) + 1
   65|    349|   copy_mem(mp1o2, mod._data(), std::min(mod.size(), mod_words));
   66|    349|   bigint_shr1(mp1o2, mod_words, 1);
   67|    349|   const word carry = bigint_add2(mp1o2, mod_words, u_w, 1);
   68|    349|   BOTAN_ASSERT_NOMSG(carry == 0);
  ------------------
  |  |   77|    349|   do {                                                                     \
  |  |   78|    349|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|    349|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 349]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|    349|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 349]
  |  |  ------------------
  ------------------
   69|       |
   70|    349|   CT::poison(tmp_mem.data(), tmp_mem.size());
   71|       |
   72|       |   // Only n.bits() + mod.bits() iterations are required, but avoid leaking the size of n
   73|    349|   const size_t execs = 2 * mod.bits();
   74|       |
   75|   155k|   for(size_t i = 0; i != execs; ++i) {
  ------------------
  |  Branch (75:22): [True: 154k, False: 349]
  ------------------
   76|   154k|      const word odd_a = a_w[0] & 1;
   77|       |
   78|       |      //if(odd_a) a -= b
   79|   154k|      const word underflow = bigint_cnd_sub(odd_a, a_w, b_w, mod_words);
   80|       |
   81|       |      //if(underflow) { b -= a; a = abs(a); swap(u, v); }
   82|   154k|      bigint_cnd_add(underflow, b_w, a_w, mod_words);
   83|   154k|      bigint_cnd_abs(underflow, a_w, mod_words);
   84|   154k|      bigint_cnd_swap(underflow, u_w, v_w, mod_words);
   85|       |
   86|       |      // a >>= 1
   87|   154k|      bigint_shr1(a_w, mod_words, 1);
   88|       |
   89|       |      //if(odd_a) u -= v;
   90|   154k|      const word borrow = bigint_cnd_sub(odd_a, u_w, v_w, mod_words);
   91|       |
   92|       |      // if(borrow) u += p
   93|   154k|      bigint_cnd_add(borrow, u_w, mod._data(), mod_words);
   94|       |
   95|   154k|      const word odd_u = u_w[0] & 1;
   96|       |
   97|       |      // u >>= 1
   98|   154k|      bigint_shr1(u_w, mod_words, 1);
   99|       |
  100|       |      //if(odd_u) u += mp1o2;
  101|   154k|      bigint_cnd_add(odd_u, u_w, mp1o2, mod_words);
  102|   154k|   }
  103|       |
  104|    349|   const auto a_is_0 = CT::all_zeros(a_w, mod_words);
  105|       |
  106|    349|   auto b_is_1 = CT::Mask<word>::is_equal(b_w[0], 1);
  107|  1.35k|   for(size_t i = 1; i != mod_words; ++i) {
  ------------------
  |  Branch (107:22): [True: 1.00k, False: 349]
  ------------------
  108|  1.00k|      b_is_1 &= CT::Mask<word>::is_zero(b_w[i]);
  109|  1.00k|   }
  110|       |
  111|    349|   BOTAN_ASSERT(a_is_0.as_bool(), "A is zero");
  ------------------
  |  |   64|    349|   do {                                                                                 \
  |  |   65|    349|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|    349|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 349]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|    349|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 349]
  |  |  ------------------
  ------------------
  112|       |
  113|       |   // if b != 1 then gcd(n,mod) > 1 and inverse does not exist
  114|       |   // in which case zero out the result to indicate this
  115|    349|   (~b_is_1).if_set_zero_out(v_w, mod_words);
  116|       |
  117|       |   /*
  118|       |   * We've placed the result in the lowest words of the temp buffer.
  119|       |   * So just clear out the other values and then give that buffer to a
  120|       |   * BigInt.
  121|       |   */
  122|    349|   clear_mem(&tmp_mem[mod_words], 4 * mod_words);
  123|       |
  124|    349|   CT::unpoison(tmp_mem.data(), tmp_mem.size());
  125|       |
  126|    349|   BigInt r;
  127|    349|   r.swap_reg(tmp_mem);
  128|    349|   return r;
  129|    349|}

_ZN5Botan17Montgomery_Params4DataC2ERKNS_6BigIntERKNS_17Barrett_ReductionE:
   40|  4.59k|Montgomery_Params::Data::Data(const BigInt& p, const Barrett_Reduction& mod_p) {
   41|  4.59k|   if(p.is_even() || p < 3) {
  ------------------
  |  Branch (41:7): [True: 0, False: 4.59k]
  |  Branch (41:22): [True: 0, False: 4.59k]
  ------------------
   42|      0|      throw Invalid_Argument("Montgomery_Params invalid modulus");
   43|      0|   }
   44|       |
   45|  4.59k|   m_p = p;
   46|  4.59k|   m_p_words = m_p.sig_words();
   47|  4.59k|   m_p_dash = monty_inverse(m_p.word_at(0));
   48|       |
   49|  4.59k|   const BigInt r = BigInt::power_of_2(m_p_words * WordInfo<word>::bits);
   50|       |
   51|  4.59k|   m_r1 = mod_p.reduce(r);
   52|  4.59k|   m_r2 = mod_p.square(m_r1);
   53|  4.59k|   m_r3 = mod_p.multiply(m_r1, m_r2);
   54|       |
   55|       |   // Barrett should be at least zero prefixing up to modulus size
   56|  4.59k|   BOTAN_ASSERT_NOMSG(m_r1.size() >= m_p_words);
  ------------------
  |  |   77|  4.59k|   do {                                                                     \
  |  |   78|  4.59k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  4.59k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 4.59k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  4.59k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 4.59k]
  |  |  ------------------
  ------------------
   57|  4.59k|   BOTAN_ASSERT_NOMSG(m_r2.size() >= m_p_words);
  ------------------
  |  |   77|  4.59k|   do {                                                                     \
  |  |   78|  4.59k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  4.59k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 4.59k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  4.59k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 4.59k]
  |  |  ------------------
  ------------------
   58|  4.59k|   BOTAN_ASSERT_NOMSG(m_r3.size() >= m_p_words);
  ------------------
  |  |   77|  4.59k|   do {                                                                     \
  |  |   78|  4.59k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  4.59k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 4.59k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  4.59k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 4.59k]
  |  |  ------------------
  ------------------
   59|  4.59k|}
_ZN5Botan17Montgomery_ParamsC2ERKNS_6BigIntERKNS_17Barrett_ReductionE:
   62|  4.59k|      m_data(std::make_shared<Data>(p, mod_p)) {}
_ZN5Botan17Montgomery_ParamsC2ERKNS_6BigIntE:
   65|    684|      Montgomery_Params(p, Barrett_Reduction::for_secret_modulus(p)) {}
_ZNK5Botan17Montgomery_ParamseqERKS0_:
   67|  11.1k|bool Montgomery_Params::operator==(const Montgomery_Params& other) const {
   68|  11.1k|   if(this->m_data == other.m_data) {
  ------------------
  |  Branch (68:7): [True: 11.1k, False: 0]
  ------------------
   69|  11.1k|      return true;
   70|  11.1k|   }
   71|       |
   72|      0|   return (this->m_data->p() == other.m_data->p());
   73|  11.1k|}
_ZNK5Botan17Montgomery_Params4redcERKNS_6BigIntERNSt3__16vectorImNS_16secure_allocatorImEEEE:
   75|    463|BigInt Montgomery_Params::redc(const BigInt& x, secure_vector<word>& ws) const {
   76|    463|   const size_t p_size = this->p_words();
   77|       |
   78|    463|   if(ws.size() < p_size) {
  ------------------
  |  Branch (78:7): [True: 200, False: 263]
  ------------------
   79|    200|      ws.resize(p_size);
   80|    200|   }
   81|       |
   82|    463|   BigInt z = x;
   83|    463|   z.grow_to(2 * p_size);
   84|       |
   85|    463|   bigint_monty_redc_inplace(z.mutable_data(), this->p()._data(), p_size, this->p_dash(), ws.data(), ws.size());
   86|       |
   87|    463|   return z;
   88|    463|}
_ZNK5Botan17Montgomery_Params3mulERKNS_6BigIntES3_RNSt3__16vectorImNS_16secure_allocatorImEEEE:
   90|   596k|BigInt Montgomery_Params::mul(const BigInt& x, const BigInt& y, secure_vector<word>& ws) const {
   91|   596k|   const size_t p_size = this->p_words();
   92|   596k|   BigInt z = BigInt::with_capacity(2 * p_size);
   93|   596k|   this->mul(z, x, y, ws);
   94|   596k|   return z;
   95|   596k|}
_ZNK5Botan17Montgomery_Params3mulERNS_6BigIntERKS1_S4_RNSt3__16vectorImNS_16secure_allocatorImEEEE:
   97|  2.39M|void Montgomery_Params::mul(BigInt& z, const BigInt& x, const BigInt& y, secure_vector<word>& ws) const {
   98|  2.39M|   BOTAN_ARG_CHECK(&z != &x && &z != &y, "Montgomery_Params::mul output must not alias inputs");
  ------------------
  |  |   35|  2.39M|   do {                                                          \
  |  |   36|  2.39M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  4.78M|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 2.39M, False: 0]
  |  |  |  Branch (37:12): [True: 2.39M, False: 0]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  2.39M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 2.39M]
  |  |  ------------------
  ------------------
   99|       |
  100|  2.39M|   const size_t p_size = this->p_words();
  101|       |
  102|  2.39M|   if(ws.size() < 2 * p_size) {
  ------------------
  |  Branch (102:7): [True: 2.76k, False: 2.39M]
  ------------------
  103|  2.76k|      ws.resize(2 * p_size);
  104|  2.76k|   }
  105|       |
  106|  2.39M|   BOTAN_DEBUG_ASSERT(x.sig_words() <= p_size);
  ------------------
  |  |  130|  2.39M|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  2.39M|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 2.39M]
  |  |  ------------------
  ------------------
  107|  2.39M|   BOTAN_DEBUG_ASSERT(y.sig_words() <= p_size);
  ------------------
  |  |  130|  2.39M|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  2.39M|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 2.39M]
  |  |  ------------------
  ------------------
  108|       |
  109|  2.39M|   if(z.size() < 2 * p_size) {
  ------------------
  |  Branch (109:7): [True: 196k, False: 2.19M]
  ------------------
  110|   196k|      z.grow_to(2 * p_size);
  111|   196k|   }
  112|       |
  113|  2.39M|   bigint_mul(z.mutable_data(),
  114|  2.39M|              z.size(),
  115|  2.39M|              x._data(),
  116|  2.39M|              x.size(),
  117|  2.39M|              std::min(p_size, x.size()),
  118|  2.39M|              y._data(),
  119|  2.39M|              y.size(),
  120|  2.39M|              std::min(p_size, y.size()),
  121|  2.39M|              ws.data(),
  122|  2.39M|              ws.size());
  123|       |
  124|  2.39M|   bigint_monty_redc_inplace(z.mutable_data(), this->p()._data(), p_size, this->p_dash(), ws.data(), ws.size());
  125|  2.39M|}
_ZNK5Botan17Montgomery_Params3mulERNS_6BigIntERKS1_NSt3__14spanIKmLm18446744073709551615EEERNS5_6vectorImNS_16secure_allocatorImEEEE:
  127|   458k|void Montgomery_Params::mul(BigInt& z, const BigInt& x, std::span<const word> y, secure_vector<word>& ws) const {
  128|   458k|   BOTAN_ARG_CHECK(&z != &x, "Montgomery_Params::mul output must not alias x");
  ------------------
  |  |   35|   458k|   do {                                                          \
  |  |   36|   458k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|   458k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 458k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|   458k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 458k]
  |  |  ------------------
  ------------------
  129|   458k|   BOTAN_ARG_CHECK(!ranges_overlap(z._data(), z.size(), y.data(), y.size()),
  ------------------
  |  |   35|   458k|   do {                                                          \
  |  |   36|   458k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|   458k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 458k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|   458k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 458k]
  |  |  ------------------
  ------------------
  130|   458k|                   "Montgomery_Params::mul output must not overlap y");
  131|       |
  132|   458k|   const size_t p_size = this->p_words();
  133|       |
  134|   458k|   if(ws.size() < 2 * p_size) {
  ------------------
  |  Branch (134:7): [True: 0, False: 458k]
  ------------------
  135|      0|      ws.resize(2 * p_size);
  136|      0|   }
  137|   458k|   if(z.size() < 2 * p_size) {
  ------------------
  |  Branch (137:7): [True: 0, False: 458k]
  ------------------
  138|      0|      z.grow_to(2 * p_size);
  139|      0|   }
  140|       |
  141|   458k|   BOTAN_DEBUG_ASSERT(x.sig_words() <= p_size);
  ------------------
  |  |  130|   458k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|   458k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 458k]
  |  |  ------------------
  ------------------
  142|       |
  143|   458k|   bigint_mul(z.mutable_data(),
  144|   458k|              z.size(),
  145|   458k|              x._data(),
  146|   458k|              x.size(),
  147|   458k|              std::min(p_size, x.size()),
  148|   458k|              y.data(),
  149|   458k|              y.size(),
  150|   458k|              std::min(p_size, y.size()),
  151|   458k|              ws.data(),
  152|   458k|              ws.size());
  153|       |
  154|   458k|   bigint_monty_redc_inplace(z.mutable_data(), this->p()._data(), p_size, this->p_dash(), ws.data(), ws.size());
  155|   458k|}
_ZNK5Botan17Montgomery_Params6mul_byERNS_6BigIntERKS1_RNSt3__16vectorImNS_16secure_allocatorImEEEE:
  157|  7.88k|void Montgomery_Params::mul_by(BigInt& x, const BigInt& y, secure_vector<word>& ws) const {
  158|  7.88k|   const size_t p_size = this->p_words();
  159|       |
  160|  7.88k|   if(ws.size() < 4 * p_size) {
  ------------------
  |  Branch (160:7): [True: 3.94k, False: 3.94k]
  ------------------
  161|  3.94k|      ws.resize(4 * p_size);
  162|  3.94k|   }
  163|       |
  164|  7.88k|   word* z_data = ws.data();
  165|  7.88k|   word* ws_data = &ws[2 * p_size];
  166|       |
  167|  7.88k|   BOTAN_DEBUG_ASSERT(x.sig_words() <= p_size);
  ------------------
  |  |  130|  7.88k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  7.88k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 7.88k]
  |  |  ------------------
  ------------------
  168|       |
  169|  7.88k|   bigint_mul(z_data,
  170|  7.88k|              2 * p_size,
  171|  7.88k|              x._data(),
  172|  7.88k|              x.size(),
  173|  7.88k|              std::min(p_size, x.size()),
  174|  7.88k|              y._data(),
  175|  7.88k|              y.size(),
  176|  7.88k|              std::min(p_size, y.size()),
  177|  7.88k|              ws_data,
  178|  7.88k|              2 * p_size);
  179|       |
  180|  7.88k|   bigint_monty_redc_inplace(z_data, this->p()._data(), p_size, this->p_dash(), ws_data, 2 * p_size);
  181|       |
  182|  7.88k|   if(x.size() < 2 * p_size) {
  ------------------
  |  Branch (182:7): [True: 3.49k, False: 4.39k]
  ------------------
  183|  3.49k|      x.grow_to(2 * p_size);
  184|  3.49k|   }
  185|  7.88k|   copy_mem(x.mutable_data(), z_data, 2 * p_size);
  186|  7.88k|}
_ZNK5Botan17Montgomery_Params3sqrERKNS_6BigIntERNSt3__16vectorImNS_16secure_allocatorImEEEE:
  188|    495|BigInt Montgomery_Params::sqr(const BigInt& x, secure_vector<word>& ws) const {
  189|    495|   BOTAN_DEBUG_ASSERT(x.sig_words() <= this->p_words());
  ------------------
  |  |  130|    495|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    495|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 495]
  |  |  ------------------
  ------------------
  190|    495|   return this->sqr(std::span{x._data(), x.size()}, ws);
  191|    495|}
_ZNK5Botan17Montgomery_Params3sqrENSt3__14spanIKmLm18446744073709551615EEERNS1_6vectorImNS_16secure_allocatorImEEEE:
  193|    495|BigInt Montgomery_Params::sqr(std::span<const word> x, secure_vector<word>& ws) const {
  194|    495|   const size_t p_size = this->p_words();
  195|    495|   BigInt z = BigInt::with_capacity(2 * p_size);
  196|    495|   this->sqr(z, x, ws);
  197|    495|   return z;
  198|    495|}
_ZNK5Botan17Montgomery_Params3sqrERNS_6BigIntERKS1_RNSt3__16vectorImNS_16secure_allocatorImEEEE:
  200|   883k|void Montgomery_Params::sqr(BigInt& z, const BigInt& x, secure_vector<word>& ws) const {
  201|   883k|   BOTAN_ARG_CHECK(&z != &x, "Montgomery_Params::sqr output must not alias input");
  ------------------
  |  |   35|   883k|   do {                                                          \
  |  |   36|   883k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|   883k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 883k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|   883k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 883k]
  |  |  ------------------
  ------------------
  202|   883k|   this->sqr(z, std::span{x._data(), x.size()}, ws);
  203|   883k|}
_ZNK5Botan17Montgomery_Params3sqrERNS_6BigIntENSt3__14spanIKmLm18446744073709551615EEERNS3_6vectorImNS_16secure_allocatorImEEEE:
  205|   996k|void Montgomery_Params::sqr(BigInt& z, std::span<const word> x, secure_vector<word>& ws) const {
  206|   996k|   BOTAN_ARG_CHECK(!ranges_overlap(z._data(), z.size(), x.data(), x.size()),
  ------------------
  |  |   35|   996k|   do {                                                          \
  |  |   36|   996k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|   996k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 996k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|   996k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 996k]
  |  |  ------------------
  ------------------
  207|   996k|                   "Montgomery_Params::sqr output must not overlap input");
  208|       |
  209|   996k|   const size_t p_size = this->p_words();
  210|       |
  211|   996k|   if(ws.size() < 2 * p_size) {
  ------------------
  |  Branch (211:7): [True: 131, False: 996k]
  ------------------
  212|    131|      ws.resize(2 * p_size);
  213|    131|   }
  214|       |
  215|   996k|   if(z.size() < 2 * p_size) {
  ------------------
  |  Branch (215:7): [True: 30.6k, False: 966k]
  ------------------
  216|  30.6k|      z.grow_to(2 * p_size);
  217|  30.6k|   }
  218|       |
  219|   996k|   bigint_sqr(z.mutable_data(), z.size(), x.data(), x.size(), std::min(p_size, x.size()), ws.data(), ws.size());
  220|       |
  221|   996k|   bigint_monty_redc_inplace(z.mutable_data(), this->p()._data(), p_size, this->p_dash(), ws.data(), ws.size());
  222|   996k|}
_ZN5Botan14Montgomery_IntC2ERKNS_17Montgomery_ParamsENSt3__16vectorImNS_16secure_allocatorImEEEE:
  227|  11.1k|      m_params(params), m_v(std::move(words)) {
  228|  11.1k|   BOTAN_ASSERT_NOMSG(m_v.size() == m_params.p_words());
  ------------------
  |  |   77|  11.1k|   do {                                                                     \
  |  |   78|  11.1k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  11.1k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 11.1k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  11.1k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 11.1k]
  |  |  ------------------
  ------------------
  229|  11.1k|}
_ZN5Botan14Montgomery_Int3oneERKNS_17Montgomery_ParamsE:
  231|  1.58k|Montgomery_Int Montgomery_Int::one(const Montgomery_Params& params) {
  232|  1.58k|   return Montgomery_Int(params, params.R1(), false);
  233|  1.58k|}
_ZN5Botan14Montgomery_IntC2ERKNS_17Montgomery_ParamsERKNS_6BigIntEb:
  242|  3.17k|      m_params(params), m_v(m_params.p_words()) {
  243|  3.17k|   BOTAN_ARG_CHECK(v.signum() >= 0 && v < m_params.p(), "Input out of range");
  ------------------
  |  |   35|  3.17k|   do {                                                          \
  |  |   36|  3.17k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  6.35k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 3.17k, False: 0]
  |  |  |  Branch (37:12): [True: 3.17k, False: 0]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  3.17k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 3.17k]
  |  |  ------------------
  ------------------
  244|       |
  245|  3.17k|   const size_t p_size = m_params.p_words();
  246|       |
  247|  3.17k|   auto v_span = v._as_span();
  248|       |
  249|  3.17k|   if(v_span.size() > p_size) {
  ------------------
  |  Branch (249:7): [True: 2.76k, False: 416]
  ------------------
  250|       |      // Safe to truncate the span since we already checked v < p
  251|  2.76k|      v_span = v_span.first(p_size);
  252|  2.76k|   }
  253|       |
  254|  3.17k|   BOTAN_ASSERT_NOMSG(m_v.size() >= v_span.size());
  ------------------
  |  |   77|  3.17k|   do {                                                                     \
  |  |   78|  3.17k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  3.17k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 3.17k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  3.17k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 3.17k]
  |  |  ------------------
  ------------------
  255|       |
  256|  3.17k|   copy_mem(std::span{m_v}.first(v_span.size()), v_span);
  257|       |
  258|  3.17k|   if(redc_needed) {
  ------------------
  |  Branch (258:7): [True: 1.58k, False: 1.58k]
  ------------------
  259|  1.58k|      secure_vector<word> ws;
  260|  1.58k|      this->mul_by(m_params.R2()._as_span().first(p_size), ws);
  261|  1.58k|   }
  262|  3.17k|}
_ZN5Botan14Montgomery_IntC2ERKNS_17Montgomery_ParamsENSt3__14spanIKmLm18446744073709551615EEE:
  265|  1.51k|      m_params(params), m_v(words.begin(), words.end()) {
  266|  1.51k|   BOTAN_ARG_CHECK(m_v.size() == m_params.p_words(), "Invalid input span");
  ------------------
  |  |   35|  1.51k|   do {                                                          \
  |  |   36|  1.51k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  1.51k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 1.51k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  1.51k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 1.51k]
  |  |  ------------------
  ------------------
  267|  1.51k|}
_ZNK5Botan14Montgomery_Int5valueEv:
  273|  1.51k|BigInt Montgomery_Int::value() const {
  274|  1.51k|   secure_vector<word> ws(m_params.p_words());
  275|       |
  276|  1.51k|   secure_vector<word> z = m_v;
  277|  1.51k|   z.resize(2 * m_params.p_words());  // zero extend
  278|       |
  279|  1.51k|   bigint_monty_redc_inplace(
  280|  1.51k|      z.data(), m_params.p()._data(), m_params.p_words(), m_params.p_dash(), ws.data(), ws.size());
  281|       |
  282|  1.51k|   return BigInt::_from_words(z);
  283|  1.51k|}
_ZNK5Botan14Montgomery_Int3mulERKS0_RNSt3__16vectorImNS_16secure_allocatorImEEEE:
  320|  11.1k|Montgomery_Int Montgomery_Int::mul(const Montgomery_Int& other, secure_vector<word>& ws) const {
  321|  11.1k|   BOTAN_STATE_CHECK(other.m_params == m_params);
  ------------------
  |  |   51|  11.1k|   do {                                                         \
  |  |   52|  11.1k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|  11.1k|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 11.1k]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|  11.1k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 11.1k]
  |  |  ------------------
  ------------------
  322|       |
  323|  11.1k|   const size_t p_size = m_params.p_words();
  324|  11.1k|   BOTAN_ASSERT_NOMSG(m_v.size() == p_size && other.m_v.size() == p_size);
  ------------------
  |  |   77|  11.1k|   do {                                                                     \
  |  |   78|  11.1k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  22.2k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:12): [True: 11.1k, False: 0]
  |  |  |  Branch (79:12): [True: 11.1k, False: 0]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  11.1k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 11.1k]
  |  |  ------------------
  ------------------
  325|       |
  326|  11.1k|   if(ws.size() < 2 * p_size) {
  ------------------
  |  Branch (326:7): [True: 0, False: 11.1k]
  ------------------
  327|      0|      ws.resize(2 * p_size);
  328|      0|   }
  329|       |
  330|  11.1k|   secure_vector<word> z(2 * p_size);
  331|       |
  332|  11.1k|   bigint_mul(z.data(), z.size(), m_v.data(), p_size, p_size, other.m_v.data(), p_size, p_size, ws.data(), ws.size());
  333|       |
  334|  11.1k|   bigint_monty_redc_inplace(z.data(), m_params.p()._data(), p_size, m_params.p_dash(), ws.data(), ws.size());
  335|  11.1k|   z.resize(p_size);  // truncate off high zero words
  336|       |
  337|  11.1k|   return Montgomery_Int(m_params, std::move(z));
  338|  11.1k|}
_ZN5Botan14Montgomery_Int6mul_byENSt3__14spanIKmLm18446744073709551615EEERNS1_6vectorImNS_16secure_allocatorImEEEE:
  345|  98.2k|Montgomery_Int& Montgomery_Int::mul_by(std::span<const word> other, secure_vector<word>& ws) {
  346|  98.2k|   const size_t p_size = m_params.p_words();
  347|  98.2k|   BOTAN_ASSERT_NOMSG(m_v.size() == p_size && other.size() == p_size);
  ------------------
  |  |   77|  98.2k|   do {                                                                     \
  |  |   78|  98.2k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|   196k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:12): [True: 98.2k, False: 0]
  |  |  |  Branch (79:12): [True: 98.2k, False: 0]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  98.2k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 98.2k]
  |  |  ------------------
  ------------------
  348|       |
  349|  98.2k|   if(ws.size() < 2 * p_size) {
  ------------------
  |  Branch (349:7): [True: 1.58k, False: 96.7k]
  ------------------
  350|  1.58k|      ws.resize(2 * p_size);
  351|  1.58k|   }
  352|       |
  353|  98.2k|   auto do_mul_by = [&](std::span<word> z) {
  354|  98.2k|      bigint_mul(z.data(), z.size(), m_v.data(), p_size, p_size, other.data(), p_size, p_size, ws.data(), ws.size());
  355|       |
  356|  98.2k|      bigint_monty_redc_inplace(z.data(), m_params.p()._data(), p_size, m_params.p_dash(), ws.data(), ws.size());
  357|       |
  358|  98.2k|      copy_mem(m_v, z.first(p_size));
  359|  98.2k|   };
  360|       |
  361|  98.2k|   if(p_size <= MontgomeryUseStackLimit) {
  ------------------
  |  Branch (361:7): [True: 98.2k, False: 0]
  ------------------
  362|  98.2k|      std::array<word, 2 * MontgomeryUseStackLimit> z{};
  363|  98.2k|      do_mul_by(z);
  364|  98.2k|   } else {
  365|      0|      secure_vector<word> z(2 * p_size);
  366|      0|      do_mul_by(z);
  367|      0|   }
  368|       |
  369|  98.2k|   return (*this);
  370|  98.2k|}
_ZN5Botan14Montgomery_Int19square_this_n_timesERNSt3__16vectorImNS_16secure_allocatorImEEEEm:
  372|   107k|Montgomery_Int& Montgomery_Int::square_this_n_times(secure_vector<word>& ws, size_t n) {
  373|   107k|   const size_t p_size = m_params.p_words();
  374|   107k|   BOTAN_ASSERT_NOMSG(m_v.size() == p_size);
  ------------------
  |  |   77|   107k|   do {                                                                     \
  |  |   78|   107k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|   107k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 107k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|   107k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 107k]
  |  |  ------------------
  ------------------
  375|       |
  376|   107k|   if(ws.size() < 2 * p_size) {
  ------------------
  |  Branch (376:7): [True: 0, False: 107k]
  ------------------
  377|      0|      ws.resize(2 * p_size);
  378|      0|   }
  379|       |
  380|   107k|   auto do_sqr_n = [&](std::span<word> z) {
  381|   107k|      for(size_t i = 0; i != n; ++i) {
  382|   107k|         bigint_sqr(z.data(), 2 * p_size, m_v.data(), p_size, p_size, ws.data(), ws.size());
  383|       |
  384|   107k|         bigint_monty_redc_inplace(z.data(), m_params.p()._data(), p_size, m_params.p_dash(), ws.data(), ws.size());
  385|       |
  386|   107k|         copy_mem(m_v, std::span{z}.first(p_size));
  387|   107k|      }
  388|   107k|   };
  389|       |
  390|   107k|   if(p_size <= MontgomeryUseStackLimit) {
  ------------------
  |  Branch (390:7): [True: 107k, False: 0]
  ------------------
  391|   107k|      std::array<word, 2 * MontgomeryUseStackLimit> z{};
  392|   107k|      do_sqr_n(z);
  393|   107k|   } else {
  394|      0|      secure_vector<word> z(2 * p_size);
  395|      0|      do_sqr_n(z);
  396|      0|   }
  397|       |
  398|   107k|   return (*this);
  399|   107k|}
_ZNK5Botan14Montgomery_Int6squareERNSt3__16vectorImNS_16secure_allocatorImEEEE:
  401|  11.1k|Montgomery_Int Montgomery_Int::square(secure_vector<word>& ws) const {
  402|  11.1k|   auto z = (*this);
  403|  11.1k|   z.square_this_n_times(ws, 1);
  404|  11.1k|   return z;
  405|  11.1k|}
monty.cpp:_ZN5Botan12_GLOBAL__N_114ranges_overlapEPKmmS2_m:
   30|  1.45M|bool ranges_overlap(const word* a, size_t na, const word* b, size_t nb) {
   31|  1.45M|   if(na == 0 || nb == 0) {
  ------------------
  |  Branch (31:7): [True: 249, False: 1.45M]
  |  Branch (31:18): [True: 0, False: 1.45M]
  ------------------
   32|    249|      return false;
   33|    249|   }
   34|  1.45M|   const std::less<const word*> lt;  // NOLINT(modernize-use-transparent-functors)
   35|  1.45M|   return lt(a, b + nb) && lt(b, a + na);
  ------------------
  |  Branch (35:11): [True: 845k, False: 609k]
  |  Branch (35:28): [True: 0, False: 845k]
  ------------------
   36|  1.45M|}
monty.cpp:_ZZN5Botan14Montgomery_Int6mul_byENSt3__14spanIKmLm18446744073709551615EEERNS1_6vectorImNS_16secure_allocatorImEEEEENK3$_0clENS2_ImLm18446744073709551615EEE:
  353|  98.2k|   auto do_mul_by = [&](std::span<word> z) {
  354|  98.2k|      bigint_mul(z.data(), z.size(), m_v.data(), p_size, p_size, other.data(), p_size, p_size, ws.data(), ws.size());
  355|       |
  356|  98.2k|      bigint_monty_redc_inplace(z.data(), m_params.p()._data(), p_size, m_params.p_dash(), ws.data(), ws.size());
  357|       |
  358|  98.2k|      copy_mem(m_v, z.first(p_size));
  359|  98.2k|   };
monty.cpp:_ZZN5Botan14Montgomery_Int19square_this_n_timesERNSt3__16vectorImNS_16secure_allocatorImEEEEmENK3$_0clENS1_4spanImLm18446744073709551615EEE:
  380|   107k|   auto do_sqr_n = [&](std::span<word> z) {
  381|   505k|      for(size_t i = 0; i != n; ++i) {
  ------------------
  |  Branch (381:25): [True: 397k, False: 107k]
  ------------------
  382|   397k|         bigint_sqr(z.data(), 2 * p_size, m_v.data(), p_size, p_size, ws.data(), ws.size());
  383|       |
  384|   397k|         bigint_monty_redc_inplace(z.data(), m_params.p()._data(), p_size, m_params.p_dash(), ws.data(), ws.size());
  385|       |
  386|   397k|         copy_mem(m_v, std::span{z}.first(p_size));
  387|   397k|      }
  388|   107k|   };

_ZN5Botan31Montgomery_Exponentiation_StateC2ERKNS_14Montgomery_IntEmb:
   36|  1.58k|      m_params(g._params()), m_window_bits(window_bits == 0 ? 4 : window_bits) {
  ------------------
  |  Branch (36:44): [True: 0, False: 1.58k]
  ------------------
   37|  1.58k|   if(m_window_bits < 1 || m_window_bits > 12) {  // really even 8 is too large ...
  ------------------
  |  Branch (37:7): [True: 0, False: 1.58k]
  |  Branch (37:28): [True: 0, False: 1.58k]
  ------------------
   38|      0|      throw Invalid_Argument("Invalid window bits for Montgomery exponentiation");
   39|      0|   }
   40|       |
   41|  1.58k|   const size_t window_size = (static_cast<size_t>(1) << m_window_bits);
   42|       |
   43|  1.58k|   m_g.reserve(window_size);
   44|       |
   45|  1.58k|   m_g.push_back(Montgomery_Int::one(m_params));
   46|       |
   47|  1.58k|   m_g.push_back(g);
   48|       |
   49|  1.58k|   secure_vector<word> ws(2 * m_params.p_words());
   50|       |
   51|  23.8k|   for(size_t i = 2; i != window_size; ++i) {
  ------------------
  |  Branch (51:22): [True: 22.2k, False: 1.58k]
  ------------------
   52|  22.2k|      if(i % 2 == 0) {
  ------------------
  |  Branch (52:10): [True: 11.1k, False: 11.1k]
  ------------------
   53|  11.1k|         m_g.push_back(m_g[i / 2].square(ws));
   54|  11.1k|      } else {
   55|  11.1k|         m_g.push_back(m_g[1].mul(m_g[i - 1], ws));
   56|  11.1k|      }
   57|  22.2k|   }
   58|       |
   59|  1.58k|   if(const_time) {
  ------------------
  |  Branch (59:7): [True: 1.58k, False: 0]
  ------------------
   60|  1.58k|      CT::poison_range(m_g);
   61|  1.58k|   }
   62|  1.58k|}
_ZNK5Botan31Montgomery_Exponentiation_State14exponentiationERKNS_6BigIntEm:
   91|  1.51k|Montgomery_Int Montgomery_Exponentiation_State::exponentiation(const BigInt& scalar, size_t max_k_bits) const {
   92|  1.51k|   BOTAN_ARG_CHECK(scalar.signum() >= 0, "Invalid scalar for Montgomery exponentiation");
  ------------------
  |  |   35|  1.51k|   do {                                                          \
  |  |   36|  1.51k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  1.51k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 1.51k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  1.51k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 1.51k]
  |  |  ------------------
  ------------------
   93|  1.51k|   BOTAN_DEBUG_ASSERT(scalar.bits() <= max_k_bits);
  ------------------
  |  |  130|  1.51k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  1.51k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 1.51k]
  |  |  ------------------
  ------------------
   94|       |   // TODO add a const-time implementation of above assert and use it in release builds
   95|       |
   96|  1.51k|   const size_t exp_nibbles = (max_k_bits + m_window_bits - 1) / m_window_bits;
   97|       |
   98|  1.51k|   if(exp_nibbles == 0) {
  ------------------
  |  Branch (98:7): [True: 0, False: 1.51k]
  ------------------
   99|      0|      return Montgomery_Int::one(m_params);
  100|      0|   }
  101|       |
  102|  1.51k|   secure_vector<word> e_bits(m_params.p_words());
  103|  1.51k|   secure_vector<word> ws(2 * m_params.p_words());
  104|       |
  105|  1.51k|   const_time_lookup(e_bits, m_g, scalar.get_substring(m_window_bits * (exp_nibbles - 1), m_window_bits));
  106|  1.51k|   Montgomery_Int x(m_params, std::span{e_bits});
  107|       |
  108|  98.2k|   for(size_t i = exp_nibbles - 1; i > 0; --i) {
  ------------------
  |  Branch (108:36): [True: 96.7k, False: 1.51k]
  ------------------
  109|  96.7k|      x.square_this_n_times(ws, m_window_bits);
  110|  96.7k|      const_time_lookup(e_bits, m_g, scalar.get_substring(m_window_bits * (i - 1), m_window_bits));
  111|  96.7k|      x.mul_by(e_bits, ws);
  112|  96.7k|   }
  113|       |
  114|  1.51k|   CT::unpoison(x);
  115|  1.51k|   return x;
  116|  1.51k|}
_ZN5Botan16monty_precomputeERKNS_14Montgomery_IntEmb:
  144|  1.58k|                                                                        bool const_time) {
  145|  1.58k|   return std::make_shared<const Montgomery_Exponentiation_State>(g, window_bits, const_time);
  146|  1.58k|}
_ZN5Botan16monty_precomputeERKNS_17Montgomery_ParamsERKNS_6BigIntEmb:
  151|  1.58k|                                                                        bool const_time) {
  152|  1.58k|   BOTAN_ARG_CHECK(g.signum() >= 0 && g < params.p(), "Montgomery exponentiation base integer out of range");
  ------------------
  |  |   35|  1.58k|   do {                                                          \
  |  |   36|  1.58k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  3.17k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 1.58k, False: 0]
  |  |  |  Branch (37:12): [True: 1.58k, False: 0]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  1.58k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 1.58k]
  |  |  ------------------
  ------------------
  153|  1.58k|   const Montgomery_Int monty_g(params, g);
  154|  1.58k|   return monty_precompute(monty_g, window_bits, const_time);
  155|  1.58k|}
_ZN5Botan13monty_executeERKNS_31Montgomery_Exponentiation_StateERKNS_6BigIntEm:
  159|  1.51k|                             size_t max_k_bits) {
  160|  1.51k|   return precomputed_state.exponentiation(k, max_k_bits);
  161|  1.51k|}
monty_exp.cpp:_ZN5Botan12_GLOBAL__N_117const_time_lookupERNSt3__16vectorImNS_16secure_allocatorImEEEERKNS2_INS_14Montgomery_IntENS1_9allocatorIS7_EEEEm:
   66|  98.2k|void const_time_lookup(secure_vector<word>& output, const std::vector<Montgomery_Int>& g, size_t nibble) {
   67|  98.2k|   BOTAN_ASSERT_NOMSG(g.size() % 2 == 0);  // actually a power of 2
  ------------------
  |  |   77|  98.2k|   do {                                                                     \
  |  |   78|  98.2k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  98.2k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 98.2k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  98.2k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 98.2k]
  |  |  ------------------
  ------------------
   68|       |
   69|  98.2k|   const size_t words = output.size();
   70|       |
   71|  98.2k|   clear_mem(output.data(), output.size());
   72|       |
   73|   884k|   for(size_t i = 0; i != g.size(); i += 2) {
  ------------------
  |  Branch (73:22): [True: 785k, False: 98.2k]
  ------------------
   74|   785k|      const secure_vector<word>& vec_0 = g[i].repr();
   75|   785k|      const secure_vector<word>& vec_1 = g[i + 1].repr();
   76|       |
   77|   785k|      BOTAN_ASSERT_NOMSG(vec_0.size() >= words && vec_1.size() >= words);
  ------------------
  |  |   77|   785k|   do {                                                                     \
  |  |   78|   785k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  1.57M|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:12): [True: 785k, False: 0]
  |  |  |  Branch (79:12): [True: 785k, False: 0]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|   785k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 785k]
  |  |  ------------------
  ------------------
   78|       |
   79|   785k|      const auto mask_0 = CT::Mask<word>::is_equal(nibble, i);
   80|   785k|      const auto mask_1 = CT::Mask<word>::is_equal(nibble, i + 1);
   81|       |
   82|  5.11M|      for(size_t w = 0; w != words; ++w) {
  ------------------
  |  Branch (82:25): [True: 4.33M, False: 785k]
  ------------------
   83|  4.33M|         output[w] |= mask_0.if_set_return(vec_0[w]);
   84|  4.33M|         output[w] |= mask_1.if_set_return(vec_1[w]);
   85|  4.33M|      }
   86|   785k|   }
   87|  98.2k|}

_ZN5Botan6jacobiENS_6BigIntES0_:
  119|  4.10k|int32_t jacobi(BigInt a, BigInt n) {
  120|  4.10k|   BOTAN_ARG_CHECK(n.is_odd() && n >= 3, "Argument n must be an odd integer >= 3");
  ------------------
  |  |   35|  4.10k|   do {                                                          \
  |  |   36|  4.10k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  8.21k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 4.10k, False: 0]
  |  |  |  Branch (37:12): [True: 4.10k, False: 0]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  4.10k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 4.10k]
  |  |  ------------------
  ------------------
  121|       |
  122|  4.10k|   if(a < 0 || a >= n) {
  ------------------
  |  Branch (122:7): [True: 1.92k, False: 2.18k]
  |  Branch (122:16): [True: 0, False: 2.18k]
  ------------------
  123|  1.92k|      a %= n;
  124|  1.92k|   }
  125|       |
  126|  4.10k|   if(a == 0) {
  ------------------
  |  Branch (126:7): [True: 0, False: 4.10k]
  ------------------
  127|      0|      return 0;
  128|      0|   }
  129|  4.10k|   if(a == 1) {
  ------------------
  |  Branch (129:7): [True: 0, False: 4.10k]
  ------------------
  130|      0|      return 1;
  131|      0|   }
  132|       |
  133|  4.10k|   int32_t s = 1;
  134|       |
  135|  12.0k|   for(;;) {
  136|  12.0k|      const size_t e = low_zero_bits(a);
  137|  12.0k|      a >>= e;
  138|  12.0k|      const word n_mod_8 = n.word_at(0) % 8;
  139|  12.0k|      const word n_mod_4 = n_mod_8 % 4;
  140|       |
  141|  12.0k|      if(e % 2 == 1 && (n_mod_8 == 3 || n_mod_8 == 5)) {
  ------------------
  |  Branch (141:10): [True: 3.47k, False: 8.61k]
  |  Branch (141:25): [True: 646, False: 2.83k]
  |  Branch (141:41): [True: 514, False: 2.31k]
  ------------------
  142|  1.16k|         s = -s;
  143|  1.16k|      }
  144|       |
  145|  12.0k|      if(n_mod_4 == 3 && a % 4 == 3) {
  ------------------
  |  Branch (145:10): [True: 6.19k, False: 5.88k]
  |  Branch (145:26): [True: 2.43k, False: 3.75k]
  ------------------
  146|  2.43k|         s = -s;
  147|  2.43k|      }
  148|       |
  149|       |      /*
  150|       |      * The HAC presentation of the algorithm uses recursion, which is not
  151|       |      * desirable or necessary.
  152|       |      *
  153|       |      * Instead we loop accumulating the product of the various jacobi()
  154|       |      * subcomputations into s, until we reach algorithm termination, which
  155|       |      * occurs in one of two ways.
  156|       |      *
  157|       |      * If a == 1 then the recursion has completed; we can return the value of s.
  158|       |      *
  159|       |      * Otherwise, after swapping and reducing, check for a == 0 [this value is
  160|       |      * called `n1` in HAC's presentation]. This would imply that jacobi(n1,a1)
  161|       |      * would have the value 0, due to Line 1 in HAC 2.149, in which case the
  162|       |      * entire product is zero, and we can immediately return that result.
  163|       |      */
  164|       |
  165|  12.0k|      if(a == 1) {
  ------------------
  |  Branch (165:10): [True: 4.10k, False: 7.97k]
  ------------------
  166|  4.10k|         return s;
  167|  4.10k|      }
  168|       |
  169|  7.97k|      std::swap(a, n);
  170|       |
  171|  7.97k|      BOTAN_ASSERT_NOMSG(n.is_odd());
  ------------------
  |  |   77|  7.97k|   do {                                                                     \
  |  |   78|  7.97k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  7.97k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 7.97k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  7.97k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 7.97k]
  |  |  ------------------
  ------------------
  172|       |
  173|  7.97k|      a %= n;
  174|       |
  175|  7.97k|      if(a == 0) {
  ------------------
  |  Branch (175:10): [True: 0, False: 7.97k]
  ------------------
  176|      0|         return 0;
  177|      0|      }
  178|  7.97k|   }
  179|  4.10k|}
_ZN5Botan13low_zero_bitsERKNS_6BigIntE:
  194|  13.4k|size_t low_zero_bits(const BigInt& n) {
  195|  13.4k|   size_t low_zero = 0;
  196|       |
  197|  13.4k|   auto seen_nonempty_word = CT::Mask<word>::cleared();
  198|       |
  199|   127k|   for(size_t i = 0; i != n.size(); ++i) {
  ------------------
  |  Branch (199:22): [True: 114k, False: 13.4k]
  ------------------
  200|   114k|      const word x = n.word_at(i);
  201|       |
  202|       |      // ctz(0) will return sizeof(word)
  203|   114k|      const size_t tz_x = ctz(x);
  204|       |
  205|       |      // if x > 0 we want to count tz_x in total but not any
  206|       |      // further words, so set the mask after the addition
  207|   114k|      low_zero += seen_nonempty_word.if_not_set_return(tz_x);
  208|       |
  209|   114k|      seen_nonempty_word |= CT::Mask<word>::expand(x);
  210|   114k|   }
  211|       |
  212|       |   // if we saw no words with x > 0 then n == 0 and the value we have
  213|       |   // computed is meaningless. Instead return BigInt::zero() in that case.
  214|  13.4k|   return static_cast<size_t>(seen_nonempty_word.if_set_return(low_zero));
  215|  13.4k|}
_ZN5Botan17is_perfect_squareERKNS_6BigIntE:
  347|    264|BigInt is_perfect_square(const BigInt& C) {
  348|    264|   if(C < 1) {
  ------------------
  |  Branch (348:7): [True: 0, False: 264]
  ------------------
  349|      0|      throw Invalid_Argument("is_perfect_square requires C >= 1");
  350|      0|   }
  351|    264|   if(C == 1) {
  ------------------
  |  Branch (351:7): [True: 0, False: 264]
  ------------------
  352|      0|      return BigInt::one();
  353|      0|   }
  354|       |
  355|    264|   const size_t n = C.bits();
  356|    264|   const size_t m = (n + 1) / 2;
  357|    264|   const BigInt B = C + BigInt::power_of_2(m);
  358|       |
  359|    264|   BigInt X = BigInt::power_of_2(m) - 1;
  360|    264|   BigInt X2 = (X * X);
  361|       |
  362|  1.27k|   for(;;) {
  363|  1.27k|      X = (X2 + C) / (2 * X);
  364|  1.27k|      X2 = (X * X);
  365|       |
  366|  1.27k|      if(X2 < B) {
  ------------------
  |  Branch (366:10): [True: 264, False: 1.01k]
  ------------------
  367|    264|         break;
  368|    264|      }
  369|  1.27k|   }
  370|       |
  371|    264|   if(X2 == C) {
  ------------------
  |  Branch (371:7): [True: 0, False: 264]
  ------------------
  372|      0|      return X;
  373|    264|   } else {
  374|    264|      return BigInt::zero();
  375|    264|   }
  376|    264|}

_ZN5Botan23is_lucas_probable_primeERKNS_6BigIntERKNS_17Barrett_ReductionE:
   18|    907|bool is_lucas_probable_prime(const BigInt& C, const Barrett_Reduction& mod_C) {
   19|    907|   BOTAN_ARG_CHECK(C.signum() >= 0, "Argument must be non-negative");
  ------------------
  |  |   35|    907|   do {                                                          \
  |  |   36|    907|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    907|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 907]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    907|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 907]
  |  |  ------------------
  ------------------
   20|       |
   21|    907|   if(C == 2 || C == 3 || C == 5 || C == 7 || C == 11 || C == 13) {
  ------------------
  |  Branch (21:7): [True: 0, False: 907]
  |  Branch (21:17): [True: 0, False: 907]
  |  Branch (21:27): [True: 0, False: 907]
  |  Branch (21:37): [True: 0, False: 907]
  |  Branch (21:47): [True: 0, False: 907]
  |  Branch (21:58): [True: 0, False: 907]
  ------------------
   22|      0|      return true;
   23|      0|   }
   24|       |
   25|    907|   if(C <= 1 || C.is_even()) {
  ------------------
  |  Branch (25:7): [True: 0, False: 907]
  |  Branch (25:17): [True: 0, False: 907]
  ------------------
   26|      0|      return false;
   27|      0|   }
   28|       |
   29|    907|   BigInt D = BigInt::from_word(5);
   30|       |
   31|  4.10k|   for(;;) {
   32|  4.10k|      const int32_t j = jacobi(D, C);
   33|  4.10k|      if(j == 0) {
  ------------------
  |  Branch (33:10): [True: 0, False: 4.10k]
  ------------------
   34|      0|         return false;
   35|      0|      }
   36|       |
   37|  4.10k|      if(j == -1) {
  ------------------
  |  Branch (37:10): [True: 907, False: 3.20k]
  ------------------
   38|    907|         break;
   39|    907|      }
   40|       |
   41|       |      // Check 5, -7, 9, -11, 13, -15, 17, ...
   42|  3.20k|      if(D.signum() < 0) {
  ------------------
  |  Branch (42:10): [True: 1.28k, False: 1.92k]
  ------------------
   43|  1.28k|         D.flip_sign();
   44|  1.28k|         D += 2;
   45|  1.92k|      } else {
   46|  1.92k|         D += 2;
   47|  1.92k|         D.flip_sign();
   48|  1.92k|      }
   49|       |
   50|  3.20k|      if(D == 17 && is_perfect_square(C).signum() != 0) {
  ------------------
  |  Branch (50:10): [True: 264, False: 2.93k]
  |  Branch (50:10): [True: 0, False: 3.20k]
  |  Branch (50:21): [True: 0, False: 264]
  ------------------
   51|      0|         return false;
   52|      0|      }
   53|  3.20k|   }
   54|       |
   55|    907|   if(D.signum() < 0) {
  ------------------
  |  Branch (55:7): [True: 641, False: 266]
  ------------------
   56|    641|      D += C;
   57|    641|   }
   58|       |
   59|    907|   const BigInt K = C + 1;
   60|    907|   const size_t K_bits = K.bits() - 1;
   61|       |
   62|    907|   BigInt U = BigInt::one();
   63|    907|   BigInt V = BigInt::one();
   64|       |
   65|    907|   BigInt Ut;
   66|    907|   BigInt Vt;
   67|    907|   BigInt U2;
   68|    907|   BigInt V2;
   69|       |
   70|   268k|   for(size_t i = 0; i != K_bits; ++i) {
  ------------------
  |  Branch (70:22): [True: 267k, False: 907]
  ------------------
   71|   267k|      const bool k_bit = K.get_bit(K_bits - 1 - i);
   72|       |
   73|   267k|      Ut = mod_C.multiply(U, V);
   74|       |
   75|   267k|      Vt = mod_C.reduce(mod_C.square(V) + mod_C.multiply(D, mod_C.square(U)));
   76|   267k|      Vt.ct_cond_add(Vt.is_odd(), C);
   77|   267k|      Vt >>= 1;
   78|   267k|      Vt = mod_C.reduce(Vt);
   79|       |
   80|   267k|      U = Ut;
   81|   267k|      V = Vt;
   82|       |
   83|   267k|      U2 = mod_C.reduce(Ut + Vt);
   84|   267k|      U2.ct_cond_add(U2.is_odd(), C);
   85|   267k|      U2 >>= 1;
   86|       |
   87|   267k|      V2 = mod_C.reduce(Vt + mod_C.multiply(Ut, D));
   88|   267k|      V2.ct_cond_add(V2.is_odd(), C);
   89|   267k|      V2 >>= 1;
   90|       |
   91|   267k|      U.ct_cond_assign(k_bit, U2);
   92|   267k|      V.ct_cond_assign(k_bit, V2);
   93|   267k|   }
   94|       |
   95|    907|   return (U == 0);
   96|    907|}
_ZN5Botan28is_bailie_psw_probable_primeERKNS_6BigIntERKNS_17Barrett_ReductionE:
   98|  1.48k|bool is_bailie_psw_probable_prime(const BigInt& n, const Barrett_Reduction& mod_n) {
   99|  1.48k|   if(n == 2) {
  ------------------
  |  Branch (99:7): [True: 0, False: 1.48k]
  ------------------
  100|      0|      return true;
  101|  1.48k|   } else if(n <= 1 || n.is_even()) {
  ------------------
  |  Branch (101:14): [True: 0, False: 1.48k]
  |  Branch (101:24): [True: 147, False: 1.33k]
  ------------------
  102|    147|      return false;
  103|    147|   }
  104|       |
  105|  1.33k|   const Montgomery_Params monty_n(n, mod_n);
  106|  1.33k|   const auto base = BigInt::from_word(2);
  107|  1.33k|   return passes_miller_rabin_test(n, mod_n, monty_n, base) && is_lucas_probable_prime(n, mod_n);
  ------------------
  |  Branch (107:11): [True: 907, False: 427]
  |  Branch (107:64): [True: 905, False: 2]
  ------------------
  108|  1.48k|}
_ZN5Botan24passes_miller_rabin_testERKNS_6BigIntERKNS_17Barrett_ReductionERKNS_17Montgomery_ParamsES2_:
  113|  1.33k|                              const BigInt& a) {
  114|  1.33k|   if(n < 3 || n.is_even()) {
  ------------------
  |  Branch (114:7): [True: 0, False: 1.33k]
  |  Branch (114:16): [True: 0, False: 1.33k]
  ------------------
  115|      0|      return false;
  116|      0|   }
  117|       |
  118|  1.33k|   BOTAN_ASSERT_NOMSG(n > 1);
  ------------------
  |  |   77|  1.33k|   do {                                                                     \
  |  |   78|  1.33k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  1.33k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 1.33k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  1.33k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 1.33k]
  |  |  ------------------
  ------------------
  119|       |
  120|  1.33k|   const BigInt n_minus_1 = n - 1;
  121|       |   /*
  122|       |   * This unpoison is not ideal but realistically there is no way to
  123|       |   * hide the number of loop iterations (below). The main user of
  124|       |   * secret primes is RSA and we always generate RSA primes such that
  125|       |   * p == 3 (mod 4), which means s is always 1.
  126|       |   */
  127|  1.33k|   const size_t s = CT::driveby_unpoison(low_zero_bits(n_minus_1));
  128|  1.33k|   const BigInt nm1_s = n_minus_1 >> s;
  129|  1.33k|   const size_t n_bits = n.bits();
  130|       |
  131|  1.33k|   const size_t powm_window = 4;
  132|       |
  133|  1.33k|   auto powm_a_n = monty_precompute(monty_n, a, powm_window);
  134|       |
  135|  1.33k|   BigInt y = monty_execute(*powm_a_n, nm1_s, n_bits).value();
  136|       |
  137|  1.33k|   if(y == 1 || y == n_minus_1) {
  ------------------
  |  Branch (137:7): [True: 470, False: 864]
  |  Branch (137:17): [True: 48, False: 816]
  ------------------
  138|    518|      return true;
  139|    518|   }
  140|       |
  141|  16.8k|   for(size_t i = 1; i != s; ++i) {
  ------------------
  |  Branch (141:22): [True: 16.3k, False: 426]
  ------------------
  142|  16.3k|      y = mod_n.square(y);
  143|       |
  144|  16.3k|      if(y == 1) {  // found a non-trivial square root
  ------------------
  |  Branch (144:10): [True: 1, False: 16.3k]
  ------------------
  145|      1|         return false;
  146|      1|      }
  147|       |
  148|       |      /*
  149|       |      -1 is the trivial square root of unity, so ``a`` is not a
  150|       |      witness for this number - give up
  151|       |      */
  152|  16.3k|      if(y == n_minus_1) {
  ------------------
  |  Branch (152:10): [True: 389, False: 15.9k]
  ------------------
  153|    389|         return true;
  154|    389|      }
  155|  16.3k|   }
  156|       |
  157|    426|   return false;
  158|    816|}

_ZN5Botan6PCurve15PrimeOrderCurve6Scalar8_zeroizeEv:
   16|  13.6k|void PrimeOrderCurve::Scalar::_zeroize() {
   17|  13.6k|   secure_zeroize_buffer(m_value.data(), m_value.size() * sizeof(word));
   18|  13.6k|}
_ZN5Botan6PCurve15PrimeOrderCurve11from_paramsERKNS_6BigIntES4_S4_S4_S4_S4_:
   22|    557|   const BigInt& p, const BigInt& a, const BigInt& b, const BigInt& base_x, const BigInt& base_y, const BigInt& order) {
   23|    557|#if defined(BOTAN_HAS_PCURVES_GENERIC)
   24|    557|   return PCurveInstance::from_params(p, a, b, base_x, base_y, order);
   25|      0|#endif
   26|       |
   27|      0|   BOTAN_UNUSED(p, a, b, base_x, base_y, order);
  ------------------
  |  |  144|      0|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   28|      0|   return {};
   29|    557|}
_ZN5Botan6PCurve15PrimeOrderCurve15for_named_curveENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEE:
   32|  2.23k|std::shared_ptr<const PrimeOrderCurve> PrimeOrderCurve::for_named_curve(std::string_view name) {
   33|  2.23k|#if defined(BOTAN_HAS_PCURVES_SECP256R1)
   34|  2.23k|   if(name == "secp256r1") {
  ------------------
  |  Branch (34:7): [True: 164, False: 2.07k]
  ------------------
   35|    164|      return PCurveInstance::secp256r1();
   36|    164|   }
   37|  2.07k|#endif
   38|       |
   39|  2.07k|#if defined(BOTAN_HAS_PCURVES_SECP384R1)
   40|  2.07k|   if(name == "secp384r1") {
  ------------------
  |  Branch (40:7): [True: 215, False: 1.86k]
  ------------------
   41|    215|      return PCurveInstance::secp384r1();
   42|    215|   }
   43|  1.86k|#endif
   44|       |
   45|  1.86k|#if defined(BOTAN_HAS_PCURVES_SECP521R1)
   46|  1.86k|   if(name == "secp521r1") {
  ------------------
  |  Branch (46:7): [True: 296, False: 1.56k]
  ------------------
   47|    296|      return PCurveInstance::secp521r1();
   48|    296|   }
   49|  1.56k|#endif
   50|       |
   51|  1.56k|#if defined(BOTAN_HAS_PCURVES_BRAINPOOL256R1)
   52|  1.56k|   if(name == "brainpool256r1") {
  ------------------
  |  Branch (52:7): [True: 192, False: 1.37k]
  ------------------
   53|    192|      return PCurveInstance::brainpool256r1();
   54|    192|   }
   55|  1.37k|#endif
   56|       |
   57|  1.37k|#if defined(BOTAN_HAS_PCURVES_BRAINPOOL384R1)
   58|  1.37k|   if(name == "brainpool384r1") {
  ------------------
  |  Branch (58:7): [True: 177, False: 1.19k]
  ------------------
   59|    177|      return PCurveInstance::brainpool384r1();
   60|    177|   }
   61|  1.19k|#endif
   62|       |
   63|  1.19k|#if defined(BOTAN_HAS_PCURVES_BRAINPOOL512R1)
   64|  1.19k|   if(name == "brainpool512r1") {
  ------------------
  |  Branch (64:7): [True: 196, False: 999]
  ------------------
   65|    196|      return PCurveInstance::brainpool512r1();
   66|    196|   }
   67|    999|#endif
   68|       |
   69|    999|#if defined(BOTAN_HAS_PCURVES_FRP256V1)
   70|    999|   if(name == "frp256v1") {
  ------------------
  |  Branch (70:7): [True: 0, False: 999]
  ------------------
   71|      0|      return PCurveInstance::frp256v1();
   72|      0|   }
   73|    999|#endif
   74|       |
   75|    999|#if defined(BOTAN_HAS_PCURVES_SECP192R1)
   76|    999|   if(name == "secp192r1") {
  ------------------
  |  Branch (76:7): [True: 0, False: 999]
  ------------------
   77|      0|      return PCurveInstance::secp192r1();
   78|      0|   }
   79|    999|#endif
   80|       |
   81|    999|#if defined(BOTAN_HAS_PCURVES_SECP224R1)
   82|    999|   if(name == "secp224r1") {
  ------------------
  |  Branch (82:7): [True: 290, False: 709]
  ------------------
   83|    290|      return PCurveInstance::secp224r1();
   84|    290|   }
   85|    709|#endif
   86|       |
   87|    709|#if defined(BOTAN_HAS_PCURVES_SECP256K1)
   88|    709|   if(name == "secp256k1") {
  ------------------
  |  Branch (88:7): [True: 198, False: 511]
  ------------------
   89|    198|      return PCurveInstance::secp256k1();
   90|    198|   }
   91|    511|#endif
   92|       |
   93|    511|#if defined(BOTAN_HAS_PCURVES_SM2P256V1)
   94|    511|   if(name == "sm2p256v1") {
  ------------------
  |  Branch (94:7): [True: 0, False: 511]
  ------------------
   95|      0|      return PCurveInstance::sm2p256v1();
   96|      0|   }
   97|    511|#endif
   98|       |
   99|    511|#if defined(BOTAN_HAS_PCURVES_NUMSP512D1)
  100|    511|   if(name == "numsp512d1") {
  ------------------
  |  Branch (100:7): [True: 0, False: 511]
  ------------------
  101|      0|      return PCurveInstance::numsp512d1();
  102|      0|   }
  103|    511|#endif
  104|       |
  105|    511|   BOTAN_UNUSED(name);
  ------------------
  |  |  144|    511|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
  106|    511|   return {};
  107|    511|}

_ZN5Botan6PCurve14PCurveInstance14brainpool256r1Ev:
   37|    192|std::shared_ptr<const PrimeOrderCurve> PCurveInstance::brainpool256r1() {
   38|    192|   return PrimeOrderCurveImpl<brainpool256r1::Curve>::instance();
   39|    192|}

_ZN5Botan6PCurve14PCurveInstance14brainpool384r1Ev:
   37|    177|std::shared_ptr<const PrimeOrderCurve> PCurveInstance::brainpool384r1() {
   38|    177|   return PrimeOrderCurveImpl<brainpool384r1::Curve>::instance();
   39|    177|}

_ZN5Botan6PCurve14PCurveInstance14brainpool512r1Ev:
   37|    196|std::shared_ptr<const PrimeOrderCurve> PCurveInstance::brainpool512r1() {
   38|    196|   return PrimeOrderCurveImpl<brainpool512r1::Curve>::instance();
   39|    196|}

_ZN5Botan6PCurve22GenericPrimeOrderCurveC2ERKNS_6BigIntES4_S4_S4_S4_S4_:
 1439|    342|      m_params(std::make_unique<GenericCurveParams>(p, a, b, base_x, base_y, order)) {}
_ZN5Botan6PCurve22GenericPrimeOrderCurve20_precompute_base_mulEv:
 1441|    342|void GenericPrimeOrderCurve::_precompute_base_mul() {
 1442|    342|   BOTAN_STATE_CHECK(m_basemul == nullptr);
  ------------------
  |  |   51|    342|   do {                                                         \
  |  |   52|    342|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    342|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 342]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    342|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 342]
  |  |  ------------------
  ------------------
 1443|    342|   m_basemul = std::make_unique<GenericBaseMulTable>(from_stash(generator()));
 1444|    342|}
_ZNK5Botan6PCurve22GenericPrimeOrderCurve10order_bitsEv:
 1446|    342|size_t GenericPrimeOrderCurve::order_bits() const {
 1447|    342|   return _params().order_bits();
 1448|    342|}
_ZNK5Botan6PCurve22GenericPrimeOrderCurve19field_element_bytesEv:
 1454|    498|size_t GenericPrimeOrderCurve::field_element_bytes() const {
 1455|    498|   return _params().field_bytes();
 1456|    498|}
_ZNK5Botan6PCurve22GenericPrimeOrderCurve8mul_by_gERKNS0_15PrimeOrderCurve6ScalarERNS_21RandomNumberGeneratorE:
 1459|    248|                                                                  RandomNumberGenerator& rng) const {
 1460|    248|   BOTAN_STATE_CHECK(m_basemul != nullptr);
  ------------------
  |  |   51|    248|   do {                                                         \
  |  |   52|    248|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    248|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 248]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    248|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 248]
  |  |  ------------------
  ------------------
 1461|    248|   return stash(m_basemul->mul(from_stash(scalar), rng));
 1462|    248|}
_ZNK5Botan6PCurve22GenericPrimeOrderCurve9generatorEv:
 1553|    342|PrimeOrderCurve::AffinePoint GenericPrimeOrderCurve::generator() const {
 1554|    342|   return PrimeOrderCurve::AffinePoint::_create(shared_from_this(), _params().base_x(), _params().base_y());
 1555|    342|}
_ZNK5Botan6PCurve22GenericPrimeOrderCurve15point_to_affineERKNS0_15PrimeOrderCurve15ProjectivePointE:
 1561|    248|PrimeOrderCurve::AffinePoint GenericPrimeOrderCurve::point_to_affine(const ProjectivePoint& pt) const {
 1562|    248|   auto affine = to_affine<GenericCurve>(from_stash(pt));
 1563|       |
 1564|    248|   const auto y2 = affine.y().square();
 1565|    248|   const auto x3_ax_b = GenericCurve::AffinePoint::x3_ax_b(affine.x());
 1566|    248|   const auto valid_point = affine.is_identity() || (y2 == x3_ax_b);
 1567|       |
 1568|    248|   BOTAN_ASSERT(valid_point.as_bool(), "Computed point is on the curve");
  ------------------
  |  |   64|    248|   do {                                                                                 \
  |  |   65|    248|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|    248|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 248]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|    248|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 248]
  |  |  ------------------
  ------------------
 1569|       |
 1570|    248|   return stash(affine);
 1571|    248|}
_ZNK5Botan6PCurve22GenericPrimeOrderCurve24affine_point_is_identityERKNS0_15PrimeOrderCurve11AffinePointE:
 1581|    249|bool GenericPrimeOrderCurve::affine_point_is_identity(const AffinePoint& pt) const {
 1582|    249|   return from_stash(pt).is_identity().as_bool();
 1583|    249|}
_ZNK5Botan6PCurve22GenericPrimeOrderCurve15serialize_pointENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve11AffinePointE:
 1585|    249|void GenericPrimeOrderCurve::serialize_point(std::span<uint8_t> bytes, const AffinePoint& pt) const {
 1586|    249|   from_stash(pt).serialize_to(bytes);
 1587|    249|}
_ZNK5Botan6PCurve22GenericPrimeOrderCurve16serialize_scalarENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve6ScalarE:
 1589|    330|void GenericPrimeOrderCurve::serialize_scalar(std::span<uint8_t> bytes, const Scalar& scalar) const {
 1590|    330|   BOTAN_ARG_CHECK(bytes.size() == _params().order_bytes(), "Invalid length to serialize_scalar");
  ------------------
  |  |   35|    330|   do {                                                          \
  |  |   36|    330|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    330|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 330]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    330|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 330]
  |  |  ------------------
  ------------------
 1591|    330|   from_stash(scalar).serialize_to(bytes);
 1592|    330|}
_ZNK5Botan6PCurve22GenericPrimeOrderCurve18deserialize_scalarENSt3__14spanIKhLm18446744073709551615EEE:
 1595|    340|   std::span<const uint8_t> bytes) const {
 1596|    340|   if(auto s = GenericScalar::deserialize(this, bytes)) {
  ------------------
  |  Branch (1596:12): [True: 337, False: 3]
  ------------------
 1597|    337|      if(s->is_nonzero().as_bool()) {
  ------------------
  |  Branch (1597:10): [True: 330, False: 7]
  ------------------
 1598|    330|         return stash(s.value());
 1599|    330|      }
 1600|    337|   }
 1601|       |
 1602|     10|   return {};
 1603|    340|}
_ZNK5Botan6PCurve22GenericPrimeOrderCurve30deserialize_point_uncompressedENSt3__14spanIKhLm18446744073709551615EEE:
 1615|     79|   std::span<const uint8_t> bytes) const {
 1616|     79|   if(auto pt = GenericAffinePoint::deserialize_uncompressed(this, bytes)) {
  ------------------
  |  Branch (1616:12): [True: 1, False: 78]
  ------------------
 1617|      1|      return stash(pt.value());
 1618|     78|   } else {
 1619|     78|      return {};
 1620|     78|   }
 1621|     79|}
_ZNK5Botan6PCurve22GenericPrimeOrderCurve14scalar_is_zeroERKNS0_15PrimeOrderCurve6ScalarE:
 1660|    330|bool GenericPrimeOrderCurve::scalar_is_zero(const Scalar& s) const {
 1661|    330|   return from_stash(s).is_zero().as_bool();
 1662|    330|}
_ZNK5Botan6PCurve22GenericPrimeOrderCurve5stashERKNS0_13GenericScalarE:
 1676|    330|PrimeOrderCurve::Scalar GenericPrimeOrderCurve::stash(const GenericScalar& s) const {
 1677|    330|   return Scalar::_create(shared_from_this(), s.stash_value());
 1678|    330|}
_ZNK5Botan6PCurve22GenericPrimeOrderCurve10from_stashERKNS0_15PrimeOrderCurve6ScalarE:
 1680|    908|GenericScalar GenericPrimeOrderCurve::from_stash(const PrimeOrderCurve::Scalar& s) const {
 1681|    908|   BOTAN_ARG_CHECK(s._curve().get() == this, "Curve mismatch");
  ------------------
  |  |   35|    908|   do {                                                          \
  |  |   36|    908|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    908|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 908]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    908|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 908]
  |  |  ------------------
  ------------------
 1682|    908|   return GenericScalar(this, s._value());
 1683|    908|}
_ZNK5Botan6PCurve22GenericPrimeOrderCurve5stashERKNS0_18GenericAffinePointE:
 1685|    249|PrimeOrderCurve::AffinePoint GenericPrimeOrderCurve::stash(const GenericAffinePoint& pt) const {
 1686|    249|   auto x_w = pt.x().stash_value();
 1687|    249|   auto y_w = pt.y().stash_value();
 1688|    249|   return AffinePoint::_create(shared_from_this(), x_w, y_w);
 1689|    249|}
_ZNK5Botan6PCurve22GenericPrimeOrderCurve10from_stashERKNS0_15PrimeOrderCurve11AffinePointE:
 1691|    840|GenericAffinePoint GenericPrimeOrderCurve::from_stash(const PrimeOrderCurve::AffinePoint& pt) const {
 1692|    840|   BOTAN_ARG_CHECK(pt._curve().get() == this, "Curve mismatch");
  ------------------
  |  |   35|    840|   do {                                                          \
  |  |   36|    840|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    840|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 840]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    840|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 840]
  |  |  ------------------
  ------------------
 1693|    840|   auto x = GenericField(this, pt._x());
 1694|    840|   auto y = GenericField(this, pt._y());
 1695|    840|   return GenericAffinePoint(x, y);
 1696|    840|}
_ZNK5Botan6PCurve22GenericPrimeOrderCurve5stashERKNS0_22GenericProjectivePointE:
 1698|    248|PrimeOrderCurve::ProjectivePoint GenericPrimeOrderCurve::stash(const GenericProjectivePoint& pt) const {
 1699|    248|   auto x_w = pt.x().stash_value();
 1700|    248|   auto y_w = pt.y().stash_value();
 1701|    248|   auto z_w = pt.z().stash_value();
 1702|    248|   return ProjectivePoint::_create(shared_from_this(), x_w, y_w, z_w);
 1703|    248|}
_ZNK5Botan6PCurve22GenericPrimeOrderCurve10from_stashERKNS0_15PrimeOrderCurve15ProjectivePointE:
 1705|    248|GenericProjectivePoint GenericPrimeOrderCurve::from_stash(const PrimeOrderCurve::ProjectivePoint& pt) const {
 1706|    248|   BOTAN_ARG_CHECK(pt._curve().get() == this, "Curve mismatch");
  ------------------
  |  |   35|    248|   do {                                                          \
  |  |   36|    248|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    248|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 248]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    248|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 248]
  |  |  ------------------
  ------------------
 1707|    248|   auto x = GenericField(this, pt._x());
 1708|    248|   auto y = GenericField(this, pt._y());
 1709|    248|   auto z = GenericField(this, pt._z());
 1710|    248|   return GenericProjectivePoint(x, y, z);
 1711|    248|}
_ZN5Botan6PCurve14PCurveInstance11from_paramsERKNS_6BigIntES4_S4_S4_S4_S4_:
 1730|    557|   const BigInt& p, const BigInt& a, const BigInt& b, const BigInt& base_x, const BigInt& base_y, const BigInt& order) {
 1731|       |   // We don't check that p and order are prime here on the assumption this has
 1732|       |   // been checked already by EC_Group
 1733|       |
 1734|    557|   BOTAN_ARG_CHECK(a >= 0 && a < p, "a is invalid");
  ------------------
  |  |   35|    557|   do {                                                          \
  |  |   36|    557|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  1.11k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 557, False: 0]
  |  |  |  Branch (37:12): [True: 557, False: 0]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    557|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 557]
  |  |  ------------------
  ------------------
 1735|    557|   BOTAN_ARG_CHECK(b > 0 && b < p, "b is invalid");
  ------------------
  |  |   35|    557|   do {                                                          \
  |  |   36|    557|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  1.11k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 557, False: 0]
  |  |  |  Branch (37:12): [True: 557, False: 0]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    557|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 557]
  |  |  ------------------
  ------------------
 1736|    557|   BOTAN_ARG_CHECK(base_x >= 0 && base_x < p, "base_x is invalid");
  ------------------
  |  |   35|    557|   do {                                                          \
  |  |   36|    557|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  1.11k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 557, False: 0]
  |  |  |  Branch (37:12): [True: 557, False: 0]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    557|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 557]
  |  |  ------------------
  ------------------
 1737|    557|   BOTAN_ARG_CHECK(base_y >= 0 && base_y < p, "base_y is invalid");
  ------------------
  |  |   35|    557|   do {                                                          \
  |  |   36|    557|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  1.11k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 557, False: 0]
  |  |  |  Branch (37:12): [True: 557, False: 0]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    557|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 557]
  |  |  ------------------
  ------------------
 1738|       |
 1739|    557|   const size_t p_bits = p.bits();
 1740|       |
 1741|       |   // Same size restrictions as EC_Group however here we do not require
 1742|       |   // exactly the primes for the 521 or 239 bit exceptions; this code
 1743|       |   // should work fine with any such prime and we are relying on the higher
 1744|       |   // levels to prevent creating such a group in the first place
 1745|       |   //
 1746|       |   // TODO(Botan4) increase the 128 here to 192 when the corresponding EC_Group constructor is changed
 1747|       |   //
 1748|    557|   if(p_bits != 521 && p_bits != 239 && (p_bits < 128 || p_bits > 512 || p_bits % 32 != 0)) {
  ------------------
  |  Branch (1748:7): [True: 540, False: 17]
  |  Branch (1748:24): [True: 540, False: 0]
  |  Branch (1748:42): [True: 0, False: 540]
  |  Branch (1748:58): [True: 0, False: 540]
  |  Branch (1748:74): [True: 0, False: 540]
  ------------------
 1749|      0|      return {};
 1750|      0|   }
 1751|       |
 1752|       |   // We don't want to deal with Shanks-Tonelli in the generic case
 1753|    557|   if(p % 4 != 3) {
  ------------------
  |  Branch (1753:7): [True: 148, False: 409]
  ------------------
 1754|    148|      return {};
 1755|    148|   }
 1756|       |
 1757|       |   // The bit length of the field and order being the same simplifies things
 1758|    409|   if(p_bits != order.bits()) {
  ------------------
  |  Branch (1758:7): [True: 67, False: 342]
  ------------------
 1759|     67|      return {};
 1760|     67|   }
 1761|       |
 1762|       |   // Check that the (x,y) generator point is on the curve
 1763|    342|   auto mod_p = Barrett_Reduction::for_public_modulus(p);
 1764|    342|   const BigInt y2 = mod_p.square(base_y);
 1765|    342|   const BigInt x3_ax_b = mod_p.reduce(mod_p.cube(base_x) + mod_p.multiply(a, base_x) + b);
 1766|    342|   if(y2 != x3_ax_b) {
  ------------------
  |  Branch (1766:7): [True: 0, False: 342]
  ------------------
 1767|      0|      return {};
 1768|      0|   }
 1769|       |
 1770|    342|   auto gpoc = std::make_shared<GenericPrimeOrderCurve>(p, a, b, base_x, base_y, order);
 1771|       |   /*
 1772|       |   The implementation of this needs to call shared_from_this which is not usable
 1773|       |   until after the constructor has completed, so we have to do a two-stage
 1774|       |   construction process. This is certainly not so clean but it is contained to
 1775|       |   this single file so seems tolerable.
 1776|       |
 1777|       |   Alternately we could lazily compute the base mul table but this brings in
 1778|       |   locking issues which seem a worse alternative overall.
 1779|       |   */
 1780|    342|   gpoc->_precompute_base_mul();
 1781|    342|   return gpoc;
 1782|    342|}
_ZNK5Botan6PCurve18GenericCurveParams10order_bitsEv:
  146|    590|      size_t order_bits() const { return m_order_bits; }
_ZNK5Botan6PCurve18GenericCurveParams11order_bytesEv:
  148|  1.49k|      size_t order_bytes() const { return m_order_bytes; }
_ZNK5Botan6PCurve18GenericCurveParams11field_bytesEv:
  152|  1.48k|      size_t field_bytes() const { return m_field_bytes; }
_ZN5Botan6PCurve19GenericBaseMulTable3mulERKNS0_13GenericScalarERNS_21RandomNumberGeneratorE:
 1347|    248|      GenericProjectivePoint mul(const GenericScalar& s, RandomNumberGenerator& rng) {
 1348|       |         // W+1 bit windows for Booth recoding overlap
 1349|    248|         const GenericBlindedScalarBits scalar(s, rng, WindowBits + 1);
 1350|    248|         return basemul_booth_exec<GenericCurve, WindowBits>(m_table, scalar, rng);
 1351|    248|      }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_124GenericBlindedScalarBitsC2ERKNS0_13GenericScalarERNS_21RandomNumberGeneratorEm:
 1237|    248|      GenericBlindedScalarBits(const GenericScalar& scalar, RandomNumberGenerator& rng, size_t wb) {
 1238|    248|         BOTAN_ASSERT_NOMSG(wb == 1 || wb == 2 || wb == 3 || wb == 4 || wb == 5 || wb == 6 || wb == 7);
  ------------------
  |  |   77|    248|   do {                                                                     \
  |  |   78|    248|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  2.97k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:12): [True: 0, False: 248]
  |  |  |  Branch (79:12): [True: 0, False: 248]
  |  |  |  Branch (79:12): [True: 0, False: 248]
  |  |  |  Branch (79:12): [True: 0, False: 248]
  |  |  |  Branch (79:12): [True: 0, False: 248]
  |  |  |  Branch (79:12): [True: 0, False: 248]
  |  |  |  Branch (79:12): [True: 248, False: 0]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|    248|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 248]
  |  |  ------------------
  ------------------
 1239|       |
 1240|    248|         const auto& params = scalar.curve()->_params();
 1241|       |
 1242|    248|         const size_t order_bits = params.order_bits();
 1243|    248|         m_window_bits = wb;
 1244|       |
 1245|    248|         const size_t blinder_bits = scalar_blinding_bits(order_bits);
 1246|       |
 1247|    248|         if(blinder_bits > 0 && rng.is_seeded()) {
  ------------------
  |  Branch (1247:13): [True: 248, False: 0]
  |  Branch (1247:33): [True: 0, False: 248]
  ------------------
 1248|      0|            const size_t mask_words = (blinder_bits + WordInfo<word>::bits - 1) / WordInfo<word>::bits;
 1249|      0|            const size_t mask_bytes = mask_words * WordInfo<word>::bytes;
 1250|       |
 1251|      0|            const size_t words = params.words();
 1252|       |
 1253|      0|            secure_vector<uint8_t> maskb(mask_bytes);
 1254|      0|            rng.randomize(maskb);
 1255|       |
 1256|      0|            std::array<word, PrimeOrderCurve::StorageWords> mask{};
 1257|      0|            load_le(mask.data(), maskb.data(), mask_words);
 1258|       |
 1259|       |            // Mask to exactly blinder_bits and set MSB and LSB
 1260|      0|            const size_t excess = mask_words * WordInfo<word>::bits - blinder_bits;
 1261|      0|            if(excess > 0) {
  ------------------
  |  Branch (1261:16): [True: 0, False: 0]
  ------------------
 1262|      0|               mask[mask_words - 1] &= (static_cast<word>(1) << (WordInfo<word>::bits - excess)) - 1;
 1263|      0|            }
 1264|      0|            const size_t msb_pos = (blinder_bits - 1) % WordInfo<word>::bits;
 1265|      0|            mask[(blinder_bits - 1) / WordInfo<word>::bits] |= static_cast<word>(1) << msb_pos;
 1266|      0|            mask[0] |= 1;
 1267|       |
 1268|      0|            std::array<word, 2 * PrimeOrderCurve::StorageWords> mask_n{};
 1269|       |
 1270|      0|            const auto sw = scalar.to_words();
 1271|       |
 1272|       |            // Compute masked scalar s + k*n
 1273|      0|            params.mul(mask_n, mask, params.order());
 1274|      0|            bigint_add2(mask_n.data(), 2 * words, sw.data(), words);
 1275|       |
 1276|      0|            std::reverse(mask_n.begin(), mask_n.end());
 1277|      0|            m_bytes = store_be<std::vector<uint8_t>>(mask_n);
 1278|      0|            m_bits = order_bits + blinder_bits;
 1279|    248|         } else {
 1280|       |            // No RNG available, skip blinding
 1281|    248|            m_bytes = scalar.serialize<std::vector<uint8_t>>();
 1282|    248|            m_bits = order_bits;
 1283|    248|         }
 1284|       |
 1285|    248|         m_windows = (m_bits + wb - 1) / wb;
 1286|    248|      }
_ZNK5Botan6PCurve13GenericScalar5curveEv:
  549|    248|      const GenericPrimeOrderCurve* curve() const { return m_curve; }
_ZNK5Botan6PCurve18GenericCurveParams5wordsEv:
  144|  15.0M|      size_t words() const { return m_words; }
_ZN5Botan6PCurve13GenericScalar8from_repEPKNS0_22GenericPrimeOrderCurveENSt3__15arrayImLm9EEE:
  573|    578|      static StorageUnit from_rep(const GenericPrimeOrderCurve* curve, StorageUnit z) {
  574|    578|         std::array<W, 2 * N> ze{};
  575|    578|         copy_mem(std::span{ze}.template first<N>(), z);
  576|    578|         return redc(curve, ze);
  577|    578|      }
_ZN5Botan6PCurve13GenericScalar4redcEPKNS0_22GenericPrimeOrderCurveENSt3__15arrayImLm18EEE:
  563|    915|      static StorageUnit redc(const GenericPrimeOrderCurve* curve, std::array<W, 2 * N> z) {
  564|    915|         const auto& mod = curve->_params().order();
  565|    915|         const size_t words = curve->_params().words();
  566|    915|         StorageUnit r{};
  567|    915|         StorageUnit ws{};
  568|    915|         bigint_monty_redc(
  569|    915|            r.data(), z.data(), mod.data(), words, curve->_params().order_p_dash(), ws.data(), ws.size());
  570|    915|         return r;
  571|    915|      }
_ZNK5Botan6PCurve18GenericCurveParams12order_p_dashEv:
  184|    915|      word order_p_dash() const { return m_order_p_dash; }
_ZNK5Botan6PCurve18GenericCurveParams3mulERNSt3__15arrayImLm18EEERKNS3_ImLm9EEES8_:
  200|  7.19M|      void mul(std::array<word, 2 * N>& z, const std::array<word, N>& x, const std::array<word, N>& y) const {
  201|  7.19M|         clear_mem(z);
  202|       |
  203|  7.19M|         if(m_words == 4) {
  ------------------
  |  Branch (203:13): [True: 1.79M, False: 5.39M]
  ------------------
  204|  1.79M|            bigint_comba_mul4(z.data(), x.data(), y.data());
  205|  5.39M|         } else if(m_words == 6) {
  ------------------
  |  Branch (205:20): [True: 0, False: 5.39M]
  ------------------
  206|      0|            bigint_comba_mul6(z.data(), x.data(), y.data());
  207|  5.39M|         } else if(m_words == 8) {
  ------------------
  |  Branch (207:20): [True: 0, False: 5.39M]
  ------------------
  208|      0|            bigint_comba_mul8(z.data(), x.data(), y.data());
  209|  5.39M|         } else if(m_words == 9) {
  ------------------
  |  Branch (209:20): [True: 685k, False: 4.71M]
  ------------------
  210|   685k|            bigint_comba_mul9(z.data(), x.data(), y.data());
  211|  4.71M|         } else {
  212|  4.71M|            bigint_mul(z.data(), z.size(), x.data(), m_words, m_words, y.data(), m_words, m_words, nullptr, 0);
  213|  4.71M|         }
  214|  7.19M|      }
pcurves_generic.cpp:_ZNK5Botan6PCurve12_GLOBAL__N_124GenericBlindedScalarBits4bitsEv:
 1290|    248|      size_t bits() const { return m_bits; }
_ZN5Botan6PCurve22GenericProjectivePoint18conditional_assignENS_2CT6ChoiceERKS1_:
 1121|    248|      void conditional_assign(CT::Choice cond, const Self& pt) {
 1122|    248|         GenericField::conditional_assign(m_x, m_y, m_z, cond, pt.x(), pt.y(), pt.z());
 1123|    248|      }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112GenericField18conditional_assignERS2_S3_S3_NS_2CT6ChoiceERKS2_S7_S7_:
  862|   505k|                                     const GenericField& nz) {
  863|   505k|         const W mask = cond.into_bitmask<W>();
  864|       |
  865|  5.05M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (865:28): [True: 4.54M, False: 505k]
  ------------------
  866|  4.54M|            x.m_val[i] = choose(mask, nx.m_val[i], x.m_val[i]);
  867|  4.54M|            y.m_val[i] = choose(mask, ny.m_val[i], y.m_val[i]);
  868|  4.54M|            z.m_val[i] = choose(mask, nz.m_val[i], z.m_val[i]);
  869|  4.54M|         }
  870|   505k|      }
_ZNK5Botan6PCurve22GenericProjectivePoint6negateEv:
 1172|    248|      Self negate() const { return Self(x(), y().negate(), z()); }
_ZNK5Botan6PCurve22GenericProjectivePoint18_const_time_poisonEv:
 1213|    248|      void _const_time_poison() const { CT::poison_all(m_x, m_y, m_z); }
pcurves_generic.cpp:_ZNK5Botan6PCurve12_GLOBAL__N_112GenericField18_const_time_poisonEv:
  813|    744|      void _const_time_poison() const { CT::poison(m_val); }
pcurves_generic.cpp:_ZNK5Botan6PCurve12_GLOBAL__N_124GenericBlindedScalarBits10get_windowEm:
 1292|  10.0k|      size_t get_window(size_t offset) const {
 1293|  10.0k|         if(m_window_bits == 1) {
  ------------------
  |  Branch (1293:13): [True: 0, False: 10.0k]
  ------------------
 1294|      0|            return read_window_bits<1>(std::span{m_bytes}, offset);
 1295|  10.0k|         } else if(m_window_bits == 2) {
  ------------------
  |  Branch (1295:20): [True: 0, False: 10.0k]
  ------------------
 1296|      0|            return read_window_bits<2>(std::span{m_bytes}, offset);
 1297|  10.0k|         } else if(m_window_bits == 3) {
  ------------------
  |  Branch (1297:20): [True: 0, False: 10.0k]
  ------------------
 1298|      0|            return read_window_bits<3>(std::span{m_bytes}, offset);
 1299|  10.0k|         } else if(m_window_bits == 4) {
  ------------------
  |  Branch (1299:20): [True: 0, False: 10.0k]
  ------------------
 1300|      0|            return read_window_bits<4>(std::span{m_bytes}, offset);
 1301|  10.0k|         } else if(m_window_bits == 5) {
  ------------------
  |  Branch (1301:20): [True: 0, False: 10.0k]
  ------------------
 1302|      0|            return read_window_bits<5>(std::span{m_bytes}, offset);
 1303|  10.0k|         } else if(m_window_bits == 6) {
  ------------------
  |  Branch (1303:20): [True: 0, False: 10.0k]
  ------------------
 1304|      0|            return read_window_bits<6>(std::span{m_bytes}, offset);
 1305|  10.0k|         } else if(m_window_bits == 7) {
  ------------------
  |  Branch (1305:20): [True: 10.0k, False: 0]
  ------------------
 1306|  10.0k|            return read_window_bits<7>(std::span{m_bytes}, offset);
 1307|  10.0k|         } else {
 1308|      0|            BOTAN_ASSERT_UNREACHABLE();
  ------------------
  |  |  166|      0|#define BOTAN_ASSERT_UNREACHABLE() Botan::assert_unreachable(__FILE__, __LINE__)
  ------------------
 1309|      0|         }
 1310|  10.0k|      }
_ZN5Botan6PCurve22GenericProjectivePoint10add_or_subERKS1_RKNS0_18GenericAffinePointENS_2CT6ChoiceE:
 1132|  9.77k|      static Self add_or_sub(const Self& a, const GenericAffinePoint& b, CT::Choice sub) {
 1133|  9.77k|         return point_add_or_sub_mixed<Self, GenericAffinePoint, GenericField>(a, b, sub, GenericField::one(a.curve()));
 1134|  9.77k|      }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112GenericField18conditional_assignENS_2CT6ChoiceERKS2_:
  828|  9.77k|      void conditional_assign(CT::Choice cond, const GenericField& nx) {
  829|  9.77k|         const W mask = cond.into_bitmask<W>();
  830|       |
  831|  97.7k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (831:28): [True: 87.9k, False: 9.77k]
  ------------------
  832|  87.9k|            m_val[i] = choose(mask, nx.m_val[i], m_val[i]);
  833|  87.9k|         }
  834|  9.77k|      }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_1miERKNS1_12GenericFieldES4_:
  718|  2.37M|      friend GenericField operator-(const GenericField& a, const GenericField& b) { return a + b.negate(); }
pcurves_generic.cpp:_ZNK5Botan6PCurve12_GLOBAL__N_112GenericField7is_zeroEv:
  787|  1.54M|      CT::Choice is_zero() const { return CT::all_zeros(m_val.data(), m_curve->_params().words()).as_choice(); }
_ZNK5Botan6PCurve22GenericProjectivePoint3dblEv:
 1158|   275k|      Self dbl() const {
 1159|   275k|         if(curve()->_params().a_is_minus_3()) {
  ------------------
  |  Branch (1159:13): [True: 38.0k, False: 237k]
  ------------------
 1160|  38.0k|            return dbl_a_minus_3(*this);
 1161|   237k|         } else if(curve()->_params().a_is_zero()) {
  ------------------
  |  Branch (1161:20): [True: 45.9k, False: 191k]
  ------------------
 1162|  45.9k|            return dbl_a_zero(*this);
 1163|   191k|         } else {
 1164|   191k|            const auto A = GenericField::curve_a(curve());
 1165|   191k|            return dbl_generic(*this, A);
 1166|   191k|         }
 1167|   275k|      }
_ZNK5Botan6PCurve18GenericCurveParams12a_is_minus_3Ev:
  194|   275k|      bool a_is_minus_3() const { return m_a_is_minus_3; }
pcurves_generic.cpp:_ZNK5Botan6PCurve12_GLOBAL__N_112GenericField4mul3Ev:
  698|   275k|      GenericField mul3() const { return mul2() + (*this); }
pcurves_generic.cpp:_ZNK5Botan6PCurve12_GLOBAL__N_112GenericField4mul4Ev:
  701|   275k|      GenericField mul4() const { return mul2().mul2(); }
pcurves_generic.cpp:_ZNK5Botan6PCurve12_GLOBAL__N_112GenericField4mul2Ev:
  688|  2.20M|      GenericField mul2() const {
  689|  2.20M|         StorageUnit t = value();
  690|  2.20M|         const W carry = shift_left<1>(t);
  691|       |
  692|  2.20M|         StorageUnit r;
  693|  2.20M|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), m_curve->_params().field().data());
  694|  2.20M|         return GenericField(m_curve, r);
  695|  2.20M|      }
pcurves_generic.cpp:_ZNK5Botan6PCurve12_GLOBAL__N_112GenericField5valueEv:
  885|  19.7M|      const StorageUnit& value() const { return m_val; }
_ZNK5Botan6PCurve18GenericCurveParams5fieldEv:
  158|  18.0M|      const StorageUnit& field() const { return m_field; }
pcurves_generic.cpp:_ZNK5Botan6PCurve12_GLOBAL__N_112GenericField4mul8Ev:
  704|   275k|      GenericField mul8() const { return mul2().mul2().mul2(); }
_ZNK5Botan6PCurve18GenericCurveParams9a_is_zeroEv:
  196|   237k|      bool a_is_zero() const { return m_a_is_zero; }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112GenericField7curve_aEPKNS0_22GenericPrimeOrderCurveE:
  639|   191k|      static GenericField curve_a(const GenericPrimeOrderCurve* curve) {
  640|   191k|         return GenericField(curve, curve->_params().monty_curve_a());
  641|   191k|      }
_ZNK5Botan6PCurve18GenericCurveParams13monty_curve_aEv:
  186|   191k|      const StorageUnit& monty_curve_a() const { return m_monty_curve_a; }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112GenericField3oneEPKNS0_22GenericPrimeOrderCurveE:
  635|  10.9k|      static GenericField one(const GenericPrimeOrderCurve* curve) {
  636|  10.9k|         return GenericField(curve, curve->_params().field_monty_r1());
  637|  10.9k|      }
_ZNK5Botan6PCurve18GenericCurveParams14field_monty_r1Ev:
  162|  10.9k|      const StorageUnit& field_monty_r1() const { return m_field_monty_r1; }
_ZNK5Botan6PCurve22GenericProjectivePoint5curveEv:
 1211|   713k|      const GenericPrimeOrderCurve* curve() const { return m_x.curve(); }
pcurves_generic.cpp:_ZNK5Botan6PCurve12_GLOBAL__N_112GenericField5curveEv:
  801|   726k|      const GenericPrimeOrderCurve* curve() const { return m_curve; }
_ZN5Botan6PCurve18GenericAffinePoint9ct_selectENSt3__14spanIKS1_Lm18446744073709551615EEEm:
  963|  10.0k|      static auto ct_select(std::span<const GenericAffinePoint> pts, size_t idx) {
  964|  10.0k|         BOTAN_ARG_CHECK(!pts.empty(), "Cannot select from an empty set");
  ------------------
  |  |   35|  10.0k|   do {                                                          \
  |  |   36|  10.0k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  10.0k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 10.0k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  10.0k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 10.0k]
  |  |  ------------------
  ------------------
  965|  10.0k|         auto result = GenericAffinePoint::identity(pts[0].curve());
  966|       |
  967|       |         // Intentionally wrapping; set to maximum size_t if idx == 0
  968|  10.0k|         const size_t idx1 = static_cast<size_t>(idx - 1);
  969|   330k|         for(size_t i = 0; i != pts.size(); ++i) {
  ------------------
  |  Branch (969:28): [True: 320k, False: 10.0k]
  ------------------
  970|   320k|            const auto found = CT::Mask<size_t>::is_equal(idx1, i).as_choice();
  971|   320k|            result.conditional_assign(found, pts[i]);
  972|   320k|         }
  973|       |
  974|  10.0k|         return result;
  975|  10.0k|      }
_ZNK5Botan6PCurve18GenericAffinePoint5curveEv:
 1048|  10.6k|      const GenericPrimeOrderCurve* curve() const { return m_x.curve(); }
_ZN5Botan6PCurve18GenericAffinePoint18conditional_assignENS_2CT6ChoiceERKS1_:
 1044|   320k|      void conditional_assign(CT::Choice cond, const GenericAffinePoint& pt) {
 1045|   320k|         GenericField::conditional_assign(m_x, m_y, cond, pt.x(), pt.y());
 1046|   320k|      }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112GenericField18conditional_assignERS2_S3_NS_2CT6ChoiceERKS2_S7_:
  842|   320k|         GenericField& x, GenericField& y, CT::Choice cond, const GenericField& nx, const GenericField& ny) {
  843|   320k|         const W mask = cond.into_bitmask<W>();
  844|       |
  845|  3.20M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (845:28): [True: 2.88M, False: 320k]
  ------------------
  846|  2.88M|            x.m_val[i] = choose(mask, nx.m_val[i], x.m_val[i]);
  847|  2.88M|            y.m_val[i] = choose(mask, ny.m_val[i], y.m_val[i]);
  848|  2.88M|         }
  849|   320k|      }
_ZN5Botan6PCurve22GenericProjectivePoint13randomize_repERNS_21RandomNumberGeneratorE:
 1180|    992|      void randomize_rep(RandomNumberGenerator& rng) {
 1181|       |         // In certain contexts we may be called with a Null_RNG; in that case the
 1182|       |         // caller is accepting that randomization will not occur
 1183|       |
 1184|    992|         if(rng.is_seeded()) {
  ------------------
  |  Branch (1184:13): [True: 0, False: 992]
  ------------------
 1185|      0|            auto r = GenericField::random(curve(), rng);
 1186|       |
 1187|      0|            auto r2 = r.square();
 1188|      0|            auto r3 = r2 * r;
 1189|       |
 1190|      0|            m_x *= r2;
 1191|      0|            m_y *= r3;
 1192|      0|            m_z *= r;
 1193|      0|         }
 1194|    992|      }
_ZNK5Botan6PCurve18GenericCurveParams10field_bitsEv:
  150|    590|      size_t field_bits() const { return m_field_bits; }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112GenericFieldmLERKS2_:
  728|  33.0k|      GenericField& operator*=(const GenericField& other) {
  729|  33.0k|         const auto* curve = check_curve(*this, other);
  730|       |
  731|  33.0k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  732|  33.0k|         curve->_params().mul(z, value(), other.value());
  733|  33.0k|         m_val = redc(curve, z);
  734|  33.0k|         return (*this);
  735|  33.0k|      }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112GenericField11check_curveERKS2_S4_:
  889|  10.3M|      static const GenericPrimeOrderCurve* check_curve(const GenericField& a, const GenericField& b) {
  890|  10.3M|         BOTAN_STATE_CHECK(a.m_curve == b.m_curve);
  ------------------
  |  |   51|  10.3M|   do {                                                         \
  |  |   52|  10.3M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|  10.3M|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 10.3M]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|  10.3M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 10.3M]
  |  |  ------------------
  ------------------
  891|  10.3M|         return a.m_curve;
  892|  10.3M|      }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112GenericField4redcEPKNS0_22GenericPrimeOrderCurveENSt3__15arrayImLm18EEE:
  894|  10.3M|      static StorageUnit redc(const GenericPrimeOrderCurve* curve, std::array<W, 2 * N> z) {
  895|  10.3M|         const auto& mod = curve->_params().field();
  896|  10.3M|         const size_t words = curve->_params().words();
  897|  10.3M|         StorageUnit r{};
  898|  10.3M|         StorageUnit ws{};
  899|  10.3M|         bigint_monty_redc(
  900|  10.3M|            r.data(), z.data(), mod.data(), words, curve->_params().field_p_dash(), ws.data(), ws.size());
  901|  10.3M|         return r;
  902|  10.3M|      }
_ZNK5Botan6PCurve18GenericCurveParams12field_p_dashEv:
  170|  10.3M|      word field_p_dash() const { return m_field_p_dash; }
_ZNK5Botan6PCurve22GenericProjectivePoint20_const_time_unpoisonEv:
 1215|    248|      void _const_time_unpoison() const { CT::unpoison_all(m_x, m_y, m_z); }
pcurves_generic.cpp:_ZNK5Botan6PCurve12_GLOBAL__N_112GenericField20_const_time_unpoisonEv:
  815|    744|      void _const_time_unpoison() const { CT::unpoison(m_val); }
_ZNK5Botan6PCurve22GenericProjectivePoint11is_identityEv:
 1119|  1.01M|      CT::Choice is_identity() const { return z().is_zero(); }
pcurves_generic.cpp:_ZNK5Botan6PCurve12_GLOBAL__N_112GenericField6invertEv:
  759|    590|      GenericField invert() const { return pow_vartime(m_curve->_params().field_minus_2()); }
pcurves_generic.cpp:_ZNK5Botan6PCurve12_GLOBAL__N_112GenericField11pow_vartimeERKNSt3__15arrayImLm9EEE:
  743|    590|      GenericField pow_vartime(const StorageUnit& exp) const {
  744|    590|         auto one = GenericField::one(curve());
  745|    590|         auto bits = curve()->_params().field_bits();
  746|    590|         auto words = curve()->_params().words();
  747|    590|         return impl_pow_vartime(*this, one, bits, std::span{exp}.last(words));
  748|    590|      }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_116impl_pow_vartimeINS1_12GenericFieldEEET_RKS4_S6_mNSt3__14spanIKmLm18446744073709551615EEE:
   56|    590|T impl_pow_vartime(const T& elem, const T& one, size_t bits, std::span<const word> exp) {
   57|    590|   constexpr size_t WindowBits = 4;
   58|    590|   constexpr size_t WindowElements = (1 << WindowBits) - 1;
   59|       |
   60|    590|   const size_t Windows = (bits + WindowBits - 1) / WindowBits;
   61|       |
   62|    590|   std::vector<T> tbl;
   63|    590|   tbl.reserve(WindowElements);
   64|       |
   65|    590|   tbl.push_back(elem);
   66|       |
   67|  8.85k|   for(size_t i = 1; i != WindowElements; ++i) {
  ------------------
  |  Branch (67:22): [True: 8.26k, False: 590]
  ------------------
   68|  8.26k|      if(i % 2 == 1) {
  ------------------
  |  Branch (68:10): [True: 4.13k, False: 4.13k]
  ------------------
   69|  4.13k|         tbl.push_back(tbl[i / 2].square());
   70|  4.13k|      } else {
   71|  4.13k|         tbl.push_back(tbl[i - 1] * tbl[0]);
   72|  4.13k|      }
   73|  8.26k|   }
   74|       |
   75|    590|   auto r = one;
   76|       |
   77|    590|   const size_t w0 = read_window_bits<WindowBits>(exp, (Windows - 1) * WindowBits);
   78|       |
   79|    590|   if(w0 > 0) {
  ------------------
  |  Branch (79:7): [True: 590, False: 0]
  ------------------
   80|    590|      r = tbl[w0 - 1];
   81|    590|   }
   82|       |
   83|  35.9k|   for(size_t i = 1; i != Windows; ++i) {
  ------------------
  |  Branch (83:22): [True: 35.3k, False: 590]
  ------------------
   84|   176k|      for(size_t j = 0; j != WindowBits; ++j) {
  ------------------
  |  Branch (84:25): [True: 141k, False: 35.3k]
  ------------------
   85|   141k|         r = r.square();
   86|   141k|      }
   87|  35.3k|      const size_t w = read_window_bits<WindowBits>(exp, (Windows - i - 1) * WindowBits);
   88|       |
   89|  35.3k|      if(w > 0) {
  ------------------
  |  Branch (89:10): [True: 33.0k, False: 2.30k]
  ------------------
   90|  33.0k|         r *= tbl[w - 1];
   91|  33.0k|      }
   92|  35.3k|   }
   93|       |
   94|    590|   return r;
   95|    590|}
_ZNK5Botan6PCurve18GenericCurveParams13field_minus_2Ev:
  160|    590|      const StorageUnit& field_minus_2() const { return m_field_minus_2; }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112GenericField4zeroEPKNS0_22GenericPrimeOrderCurveE:
  630|  20.0k|      static GenericField zero(const GenericPrimeOrderCurve* curve) {
  631|  20.0k|         const StorageUnit zeros{};
  632|  20.0k|         return GenericField(curve, zeros);
  633|  20.0k|      }
_ZN5Botan6PCurveplERKNS0_22GenericProjectivePointES3_:
 1103|   242k|      friend Self operator+(const Self& a, const Self& b) { return Self::add(a, b); }
_ZN5Botan6PCurve22GenericProjectivePoint3addERKS1_S3_:
 1139|   242k|      static Self add(const Self& a, const Self& b) { return point_add<Self, GenericField>(a, b); }
pcurves_generic.cpp:_ZNK5Botan6PCurve22GenericProjectivePoint1zEv:
 1209|  4.53M|      const GenericField& z() const { return m_z; }
pcurves_generic.cpp:_ZNK5Botan6PCurve12_GLOBAL__N_112GenericField6squareEv:
  737|  3.14M|      GenericField square() const {
  738|  3.14M|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  739|  3.14M|         m_curve->_params().sqr(z, value());
  740|  3.14M|         return GenericField(m_curve, redc(m_curve, z));
  741|  3.14M|      }
_ZNK5Botan6PCurve18GenericCurveParams3sqrERNSt3__15arrayImLm18EEERKNS3_ImLm9EEE:
  216|  3.14M|      void sqr(std::array<word, 2 * N>& z, const std::array<word, N>& x) const {
  217|  3.14M|         clear_mem(z);
  218|       |
  219|  3.14M|         if(m_words == 4) {
  ------------------
  |  Branch (219:13): [True: 789k, False: 2.35M]
  ------------------
  220|   789k|            bigint_comba_sqr4(z.data(), x.data());
  221|  2.35M|         } else if(m_words == 6) {
  ------------------
  |  Branch (221:20): [True: 0, False: 2.35M]
  ------------------
  222|      0|            bigint_comba_sqr6(z.data(), x.data());
  223|  2.35M|         } else if(m_words == 8) {
  ------------------
  |  Branch (223:20): [True: 0, False: 2.35M]
  ------------------
  224|      0|            bigint_comba_sqr8(z.data(), x.data());
  225|  2.35M|         } else if(m_words == 9) {
  ------------------
  |  Branch (225:20): [True: 257k, False: 2.09M]
  ------------------
  226|   257k|            bigint_comba_sqr9(z.data(), x.data());
  227|  2.09M|         } else {
  228|  2.09M|            bigint_sqr(z.data(), z.size(), x.data(), m_words, m_words, nullptr, 0);
  229|  2.09M|         }
  230|  3.14M|      }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112GenericField11deserializeEPKNS0_22GenericPrimeOrderCurveENSt3__14spanIKhLm18446744073709551615EEE:
  605|    158|                                                     std::span<const uint8_t> bytes) {
  606|    158|         const size_t len = curve->_params().field_bytes();
  607|       |
  608|    158|         if(bytes.size() != len) {
  ------------------
  |  Branch (608:13): [True: 0, False: 158]
  ------------------
  609|      0|            return {};
  610|      0|         }
  611|       |
  612|    158|         const auto words = bytes_to_words<N>(bytes);
  613|       |
  614|    158|         if(words) {
  ------------------
  |  Branch (614:13): [True: 158, False: 0]
  ------------------
  615|    158|            if(!bigint_ct_is_lt(words->data(), N, curve->_params().field().data(), N).as_bool()) {
  ------------------
  |  Branch (615:16): [True: 16, False: 142]
  ------------------
  616|     16|               return {};
  617|     16|            }
  618|       |
  619|       |            // Safe because we checked above that words is an integer < P
  620|    142|            return GenericField::from_words(curve, *words);
  621|    158|         } else {
  622|      0|            return {};
  623|      0|         }
  624|    158|      }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_114bytes_to_wordsILm9EEENSt3__18optionalINS3_5arrayImXT_EEEEENS3_4spanIKhLm18446744073709551615EEE:
   28|    498|constexpr std::optional<std::array<word, N>> bytes_to_words(std::span<const uint8_t> bytes) {
   29|    498|   if(bytes.size() > WordInfo<word>::bytes * N) {
  ------------------
  |  Branch (29:7): [True: 0, False: 498]
  ------------------
   30|      0|      return std::nullopt;
   31|      0|   }
   32|       |
   33|    498|   std::array<word, N> r{};
   34|       |
   35|    498|   const size_t full_words = bytes.size() / WordInfo<word>::bytes;
   36|    498|   const size_t extra_bytes = bytes.size() % WordInfo<word>::bytes;
   37|       |
   38|  2.33k|   for(size_t i = 0; i != full_words; ++i) {
  ------------------
  |  Branch (38:22): [True: 1.84k, False: 498]
  ------------------
   39|  1.84k|      r[i] = load_be<word>(bytes.data(), full_words - 1 - i);
   40|  1.84k|   }
   41|       |
   42|    498|   if(extra_bytes > 0) {
  ------------------
  |  Branch (42:7): [True: 309, False: 189]
  ------------------
   43|    309|      const size_t shift = extra_bytes * 8;
   44|    309|      bigint_shl1(r.data(), r.size(), r.size(), shift);
   45|       |
   46|  1.46k|      for(size_t i = 0; i != extra_bytes; ++i) {
  ------------------
  |  Branch (46:25): [True: 1.15k, False: 309]
  ------------------
   47|  1.15k|         const word b0 = bytes[WordInfo<word>::bytes * full_words + i];
   48|  1.15k|         r[0] |= (b0 << (8 * (extra_bytes - 1 - i)));
   49|  1.15k|      }
   50|    309|   }
   51|       |
   52|    498|   return r;
   53|    498|}
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_1mlERKNS1_12GenericFieldES4_:
  720|  7.15M|      friend GenericField operator*(const GenericField& a, const GenericField& b) {
  721|  7.15M|         const auto* curve = check_curve(a, b);
  722|       |
  723|  7.15M|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  724|  7.15M|         curve->_params().mul(z, a.value(), b.value());
  725|  7.15M|         return GenericField(curve, redc(curve, z));
  726|  7.15M|      }
pcurves_generic.cpp:_ZNK5Botan6PCurve12_GLOBAL__N_112GenericFieldeqERKS2_:
  791|    316|      CT::Choice operator==(const GenericField& other) const {
  792|    316|         if(this->m_curve != other.m_curve) {
  ------------------
  |  Branch (792:13): [True: 0, False: 316]
  ------------------
  793|      0|            return CT::Choice::no();
  794|      0|         }
  795|       |
  796|    316|         return CT::is_equal(m_val.data(), other.m_val.data(), m_curve->_params().words()).as_choice();
  797|    316|      }
pcurves_generic.cpp:_ZNK5Botan6PCurve22GenericProjectivePoint1xEv:
 1199|  2.10M|      const GenericField& x() const { return m_x; }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112GenericField10from_wordsEPKNS0_22GenericPrimeOrderCurveERKNSt3__15arrayImLm9EEE:
  626|    142|      static GenericField from_words(const GenericPrimeOrderCurve* curve, const std::array<word, N>& words) {
  627|    142|         return GenericField(curve, to_rep(curve, words));
  628|    142|      }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112GenericField6to_repEPKNS0_22GenericPrimeOrderCurveENSt3__15arrayImLm9EEE:
  910|    142|      static StorageUnit to_rep(const GenericPrimeOrderCurve* curve, StorageUnit x) {
  911|    142|         std::array<W, 2 * N> z{};
  912|    142|         curve->_params().mul(z, x, curve->_params().field_monty_r2());
  913|    142|         return redc(curve, z);
  914|    142|      }
_ZNK5Botan6PCurve18GenericCurveParams14field_monty_r2Ev:
  164|    142|      const StorageUnit& field_monty_r2() const { return m_field_monty_r2; }
_ZNK5Botan6PCurve18GenericCurveParams5orderEv:
  172|  1.25k|      const StorageUnit& order() const { return m_order; }
pcurves_generic.cpp:_ZNK5Botan6PCurve12_GLOBAL__N_112GenericField6negateEv:
  750|  2.38M|      GenericField negate() const {
  751|  2.38M|         auto x_is_zero = CT::all_zeros(this->data(), N);
  752|       |
  753|  2.38M|         StorageUnit r;
  754|  2.38M|         bigint_sub3(r.data(), m_curve->_params().field().data(), N, this->data(), N);
  755|  2.38M|         x_is_zero.if_set_zero_out(r.data(), N);
  756|  2.38M|         return GenericField(m_curve, r);
  757|  2.38M|      }
pcurves_generic.cpp:_ZNK5Botan6PCurve12_GLOBAL__N_112GenericField4dataEv:
  887|  11.0M|      const W* data() const { return m_val.data(); }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112GenericField8from_repEPKNS0_22GenericPrimeOrderCurveENSt3__15arrayImLm9EEE:
  904|    498|      static StorageUnit from_rep(const GenericPrimeOrderCurve* curve, StorageUnit z) {
  905|    498|         std::array<W, 2 * N> ze{};
  906|    498|         copy_mem(std::span{ze}.template first<N>(), z);
  907|    498|         return redc(curve, ze);
  908|    498|      }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_1plERKNS1_12GenericFieldES4_:
  706|  3.13M|      friend GenericField operator+(const GenericField& a, const GenericField& b) {
  707|  3.13M|         const auto* curve = check_curve(a, b);
  708|  3.13M|         const size_t words = curve->_params().words();
  709|       |
  710|  3.13M|         StorageUnit t{};
  711|  3.13M|         const W carry = bigint_add3(t.data(), a.data(), words, b.data(), words);
  712|       |
  713|  3.13M|         StorageUnit r{};
  714|  3.13M|         bigint_monty_maybe_sub(words, r.data(), carry, t.data(), curve->_params().field().data());
  715|  3.13M|         return GenericField(curve, r);
  716|  3.13M|      }
_ZNK5Botan6PCurve18GenericCurveParams6base_xEv:
  190|    342|      const StorageUnit& base_x() const { return m_base_x; }
_ZNK5Botan6PCurve18GenericCurveParams6base_yEv:
  192|    342|      const StorageUnit& base_y() const { return m_base_y; }
_ZN5Botan6PCurve18GenericAffinePoint8identityEPKNS0_22GenericPrimeOrderCurveE:
  934|  10.0k|      static GenericAffinePoint identity(const GenericPrimeOrderCurve* curve) {
  935|  10.0k|         return GenericAffinePoint(GenericField::zero(curve), GenericField::zero(curve));
  936|  10.0k|      }
pcurves_generic.cpp:_ZNK5Botan6PCurve18GenericAffinePoint1yEv:
 1039|   343k|      const GenericField& y() const { return m_y; }
pcurves_generic.cpp:_ZN5Botan6PCurve18GenericAffinePoint7x3_ax_bERKNS0_12_GLOBAL__N_112GenericFieldE:
  980|    316|      static GenericField x3_ax_b(const GenericField& x) {
  981|    316|         return (x.square() + GenericField::curve_a(x.curve())) * x + GenericField::curve_b(x.curve());
  982|    316|      }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112GenericField7curve_bEPKNS0_22GenericPrimeOrderCurveE:
  643|    316|      static GenericField curve_b(const GenericPrimeOrderCurve* curve) {
  644|    316|         return GenericField(curve, curve->_params().monty_curve_b());
  645|    316|      }
_ZNK5Botan6PCurve18GenericCurveParams13monty_curve_bEv:
  188|    316|      const StorageUnit& monty_curve_b() const { return m_monty_curve_b; }
pcurves_generic.cpp:_ZNK5Botan6PCurve18GenericAffinePoint1xEv:
 1034|   352k|      const GenericField& x() const { return m_x; }
_ZNK5Botan6PCurve18GenericAffinePoint11is_identityEv:
  940|  11.1k|      CT::Choice is_identity() const { return x().is_zero() && y().is_zero(); }
_ZN5Botan6PCurve22GenericProjectivePoint11from_affineERKNS0_18GenericAffinePointE:
 1068|    590|      static Self from_affine(const GenericAffinePoint& pt) {
 1069|    590|         auto x = pt.x();
 1070|    590|         auto y = pt.y();
 1071|    590|         auto z = GenericField::one(x.curve());
 1072|       |
 1073|       |         // If pt is identity (0,0) swap y/z to convert (0,0,1) into (0,1,0)
 1074|    590|         GenericField::conditional_swap(pt.is_identity(), y, z);
 1075|    590|         return GenericProjectivePoint(x, y, z);
 1076|    590|      }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112GenericField16conditional_swapENS_2CT6ChoiceERS2_S5_:
  817|    590|      static void conditional_swap(CT::Choice cond, GenericField& x, GenericField& y) {
  818|    590|         const W mask = cond.into_bitmask<W>();
  819|       |
  820|  5.90k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (820:28): [True: 5.31k, False: 590]
  ------------------
  821|  5.31k|            auto nx = choose(mask, y.m_val[i], x.m_val[i]);
  822|  5.31k|            auto ny = choose(mask, x.m_val[i], y.m_val[i]);
  823|  5.31k|            x.m_val[i] = nx;
  824|  5.31k|            y.m_val[i] = ny;
  825|  5.31k|         }
  826|    590|      }
_ZNK5Botan6PCurve18GenericAffinePoint12serialize_toENSt3__14spanIhLm18446744073709551615EEE:
  947|    249|      void serialize_to(std::span<uint8_t> bytes) const {
  948|    249|         const size_t fe_bytes = curve()->_params().field_bytes();
  949|    249|         BOTAN_ARG_CHECK(bytes.size() == 1 + 2 * fe_bytes, "Buffer size incorrect");
  ------------------
  |  |   35|    249|   do {                                                          \
  |  |   36|    249|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    249|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 249]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    249|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 249]
  |  |  ------------------
  ------------------
  950|    249|         BOTAN_STATE_CHECK(this->is_identity().as_bool() == false);
  ------------------
  |  |   51|    249|   do {                                                         \
  |  |   52|    249|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    249|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 249]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    249|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 249]
  |  |  ------------------
  ------------------
  951|    249|         BufferStuffer pack(bytes);
  952|    249|         pack.append(0x04);
  953|    249|         x().serialize_to(pack.next(fe_bytes));
  954|    249|         y().serialize_to(pack.next(fe_bytes));
  955|    249|         BOTAN_DEBUG_ASSERT(pack.full());
  ------------------
  |  |  130|    249|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    249|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 249]
  |  |  ------------------
  ------------------
  956|    249|      }
pcurves_generic.cpp:_ZNK5Botan6PCurve12_GLOBAL__N_112GenericField12serialize_toENSt3__14spanIhLm18446744073709551615EEE:
  774|    498|      void serialize_to(std::span<uint8_t> bytes) const {
  775|    498|         auto v = from_rep(m_curve, m_val);
  776|    498|         std::reverse(v.begin(), v.end());
  777|       |
  778|    498|         const size_t flen = m_curve->_params().field_bytes();
  779|    498|         BOTAN_ARG_CHECK(bytes.size() == flen, "Expected output span provided");
  ------------------
  |  |   35|    498|   do {                                                          \
  |  |   36|    498|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    498|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 498]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    498|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 498]
  |  |  ------------------
  ------------------
  780|       |
  781|       |         // Remove leading zero bytes
  782|    498|         const auto padded_bytes = store_be(v);
  783|    498|         const size_t extra = N * WordInfo<W>::bytes - flen;
  784|    498|         copy_mem(bytes, std::span{padded_bytes}.subspan(extra, flen));
  785|    498|      }
_ZNK5Botan6PCurve13GenericScalar12serialize_toENSt3__14spanIhLm18446744073709551615EEE:
  517|    578|      void serialize_to(std::span<uint8_t> bytes) const {
  518|    578|         auto v = from_rep(m_curve, m_val);
  519|    578|         std::reverse(v.begin(), v.end());
  520|       |
  521|    578|         const size_t flen = m_curve->_params().order_bytes();
  522|    578|         BOTAN_ARG_CHECK(bytes.size() == flen, "Expected output span provided");
  ------------------
  |  |   35|    578|   do {                                                          \
  |  |   36|    578|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    578|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 578]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    578|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 578]
  |  |  ------------------
  ------------------
  523|       |
  524|       |         // Remove leading zero bytes
  525|    578|         const auto padded_bytes = store_be(v);
  526|    578|         const size_t extra = N * WordInfo<W>::bytes - flen;
  527|    578|         copy_mem(bytes, std::span{padded_bytes}.subspan(extra, flen));
  528|    578|      }
_ZN5Botan6PCurve13GenericScalar11deserializeEPKNS0_22GenericPrimeOrderCurveENSt3__14spanIKhLm18446744073709551615EEE:
  312|    340|                                                      std::span<const uint8_t> bytes) {
  313|    340|         const size_t len = curve->_params().order_bytes();
  314|       |
  315|    340|         if(bytes.size() != len) {
  ------------------
  |  Branch (315:13): [True: 0, False: 340]
  ------------------
  316|      0|            return {};
  317|      0|         }
  318|       |
  319|    340|         const auto words = bytes_to_words<N>(bytes);
  320|       |
  321|    340|         if(words) {
  ------------------
  |  Branch (321:13): [True: 340, False: 0]
  ------------------
  322|    340|            if(!bigint_ct_is_lt(words->data(), N, curve->_params().order().data(), N).as_bool()) {
  ------------------
  |  Branch (322:16): [True: 3, False: 337]
  ------------------
  323|      3|               return {};
  324|      3|            }
  325|       |
  326|       |            // Safe because we checked above that words is an integer < P
  327|    337|            return GenericScalar(curve, to_rep(curve, *words));
  328|    340|         } else {
  329|      0|            return {};
  330|      0|         }
  331|    340|      }
_ZN5Botan6PCurve13GenericScalar6to_repEPKNS0_22GenericPrimeOrderCurveENSt3__15arrayImLm9EEE:
  579|    337|      static StorageUnit to_rep(const GenericPrimeOrderCurve* curve, StorageUnit x) {
  580|    337|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  581|    337|         curve->_params().mul(z, x, curve->_params().order_monty_r2());
  582|    337|         return redc(curve, z);
  583|    337|      }
_ZNK5Botan6PCurve18GenericCurveParams14order_monty_r2Ev:
  178|    337|      const StorageUnit& order_monty_r2() const { return m_order_monty_r2; }
_ZNK5Botan6PCurve13GenericScalar10is_nonzeroEv:
  532|    337|      CT::Choice is_nonzero() const { return !is_zero(); }
_ZN5Botan6PCurve18GenericAffinePoint24deserialize_uncompressedEPKNS0_22GenericPrimeOrderCurveENSt3__14spanIKhLm18446744073709551615EEE:
  988|     79|                                                                        std::span<const uint8_t> bytes) {
  989|     79|         const size_t fe_bytes = curve->_params().field_bytes();
  990|       |
  991|     79|         if(bytes.size() == 1 + 2 * fe_bytes && bytes[0] == 0x04) {
  ------------------
  |  Branch (991:13): [True: 79, False: 0]
  |  Branch (991:49): [True: 79, False: 0]
  ------------------
  992|     79|            auto x = GenericField::deserialize(curve, bytes.subspan(1, fe_bytes));
  993|     79|            auto y = GenericField::deserialize(curve, bytes.subspan(1 + fe_bytes, fe_bytes));
  994|       |
  995|     79|            if(x && y) {
  ------------------
  |  Branch (995:16): [True: 74, False: 5]
  |  Branch (995:21): [True: 68, False: 6]
  ------------------
  996|     68|               const auto lhs = (*y).square();
  997|     68|               const auto rhs = GenericAffinePoint::x3_ax_b(*x);
  998|     68|               if((lhs == rhs).as_bool()) {
  ------------------
  |  Branch (998:19): [True: 1, False: 67]
  ------------------
  999|      1|                  return GenericAffinePoint(*x, *y);
 1000|      1|               }
 1001|     68|            }
 1002|     79|         }
 1003|       |
 1004|     78|         return {};
 1005|     79|      }
_ZNK5Botan6PCurve13GenericScalar7is_zeroEv:
  530|    667|      CT::Choice is_zero() const { return CT::all_zeros(m_val.data(), m_curve->_params().words()).as_choice(); }
_ZNK5Botan6PCurve13GenericScalar11stash_valueEv:
  547|    330|      const StorageUnit& stash_value() const { return m_val; }
_ZN5Botan6PCurve13GenericScalarC2EPKNS0_22GenericPrimeOrderCurveENSt3__15arrayImLm9EEE:
  551|  1.24k|      GenericScalar(const GenericPrimeOrderCurve* curve, StorageUnit val) : m_curve(curve), m_val(val) {}
pcurves_generic.cpp:_ZNK5Botan6PCurve12_GLOBAL__N_112GenericField11stash_valueEv:
  799|  1.24k|      const StorageUnit& stash_value() const { return m_val; }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112GenericFieldC2EPKNS0_22GenericPrimeOrderCurveENSt3__15arrayImLm9EEE:
  882|  18.2M|      GenericField(const GenericPrimeOrderCurve* curve, StorageUnit val) : m_curve(curve), m_val(val) {}
pcurves_generic.cpp:_ZN5Botan6PCurve18GenericAffinePointC2ERKNS0_12_GLOBAL__N_112GenericFieldES5_:
  929|   528k|      GenericAffinePoint(const GenericField& x, const GenericField& y) : m_x(x), m_y(y) {}
pcurves_generic.cpp:_ZNK5Botan6PCurve22GenericProjectivePoint1yEv:
 1204|  2.06M|      const GenericField& y() const { return m_y; }
pcurves_generic.cpp:_ZN5Botan6PCurve22GenericProjectivePointC2ERKNS0_12_GLOBAL__N_112GenericFieldES5_S5_:
 1101|   528k|            m_x(x), m_y(y), m_z(z) {}
_ZNK5Botan6PCurve13GenericScalar9serializeITkNS_8concepts21resizable_byte_bufferENSt3__16vectorIhNS4_9allocatorIhEEEEEET_v:
  511|    248|      T serialize() const {
  512|    248|         T bytes(m_curve->_params().order_bytes());
  513|    248|         this->serialize_to(bytes);
  514|    248|         return bytes;
  515|    248|      }
_ZN5Botan6PCurve18GenericCurveParamsC2ERKNS_6BigIntES4_S4_S4_S4_S4_:
  110|    342|            m_words(p.sig_words()),
  111|    342|            m_order_bits(order.bits()),
  112|    342|            m_order_bytes(order.bytes()),
  113|    342|            m_field_bits(p.bits()),
  114|    342|            m_field_bytes(p.bytes()),
  115|    342|            m_monty_order(order),
  116|    342|            m_monty_field(p),
  117|    342|            m_field(bn_to_fixed(p)),
  118|    342|            m_field_minus_2(bn_to_fixed_rev(p - 2)),
  119|    342|            m_field_monty_r1(bn_to_fixed(m_monty_field.R1())),
  120|    342|            m_field_monty_r2(bn_to_fixed(m_monty_field.R2())),
  121|    342|            m_field_p_plus_1_over_4(bn_to_fixed_rev((p + 1) / 4)),
  122|    342|            m_field_inv_2(bn_to_fixed((p / 2) + 1)),
  123|    342|            m_field_p_dash(m_monty_field.p_dash()),
  124|       |
  125|    342|            m_order(bn_to_fixed(order)),
  126|    342|            m_order_minus_2(bn_to_fixed_rev(order - 2)),
  127|    342|            m_order_monty_r1(bn_to_fixed(m_monty_order.R1())),
  128|    342|            m_order_monty_r2(bn_to_fixed(m_monty_order.R2())),
  129|    342|            m_order_monty_r3(bn_to_fixed(m_monty_order.R3())),
  130|    342|            m_order_inv_2(bn_to_fixed((order / 2) + 1)),
  131|    342|            m_order_p_dash(m_monty_order.p_dash()),
  132|       |
  133|    342|            m_a_is_minus_3(a + 3 == p),
  134|    342|            m_a_is_zero(a.is_zero()),
  135|    342|            m_order_is_lt_field(order < p) {
  136|    342|         secure_vector<word> ws;
  137|    342|         m_monty_curve_a = bn_to_fixed(m_monty_field.mul(a, m_monty_field.R2(), ws));
  138|    342|         m_monty_curve_b = bn_to_fixed(m_monty_field.mul(b, m_monty_field.R2(), ws));
  139|       |
  140|    342|         m_base_x = bn_to_fixed(m_monty_field.mul(base_x, m_monty_field.R2(), ws));
  141|    342|         m_base_y = bn_to_fixed(m_monty_field.mul(base_y, m_monty_field.R2(), ws));
  142|    342|      }
_ZN5Botan6PCurve18GenericCurveParams11bn_to_fixedERKNS_6BigIntE:
  233|  5.47k|      static std::array<word, PrimeOrderCurve::StorageWords> bn_to_fixed(const BigInt& n) {
  234|  5.47k|         const size_t n_words = n.sig_words();
  235|  5.47k|         BOTAN_ASSERT_NOMSG(n_words <= PrimeOrderCurve::StorageWords);
  ------------------
  |  |   77|  5.47k|   do {                                                                     \
  |  |   78|  5.47k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  5.47k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 5.47k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  5.47k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 5.47k]
  |  |  ------------------
  ------------------
  236|       |
  237|  5.47k|         std::array<word, PrimeOrderCurve::StorageWords> r{};
  238|  5.47k|         copy_mem(std::span{r}.first(n_words), n._as_span().first(n_words));
  239|  5.47k|         return r;
  240|  5.47k|      }
_ZN5Botan6PCurve18GenericCurveParams15bn_to_fixed_revERKNS_6BigIntE:
  242|  1.02k|      static std::array<word, PrimeOrderCurve::StorageWords> bn_to_fixed_rev(const BigInt& n) {
  243|  1.02k|         auto v = bn_to_fixed(n);
  244|  1.02k|         std::reverse(v.begin(), v.end());
  245|  1.02k|         return v;
  246|  1.02k|      }
_ZN5Botan6PCurve19GenericBaseMulTableC2ERKNS0_18GenericAffinePointE:
 1345|    342|            m_table(basemul_booth_setup<GenericCurve, WindowBits>(pt, blinded_scalar_bits(*pt.curve()) + 1)) {}
pcurves_generic.cpp:_ZNK5Botan6PCurve12_GLOBAL__N_112GenericField14invert_vartimeEv:
  761|    342|      GenericField invert_vartime() const {
  762|       |         // TODO take advantage of variable time here using eg BEEA
  763|       |         // see IntMod::invert_vartime in pcurves_impl.h
  764|    342|         return invert();
  765|    342|      }
_ZN5Botan6PCurve19GenericBaseMulTable19blinded_scalar_bitsERKNS0_22GenericPrimeOrderCurveE:
 1354|    342|      static size_t blinded_scalar_bits(const GenericPrimeOrderCurve& curve) {
 1355|    342|         const size_t order_bits = curve.order_bits();
 1356|    342|         return order_bits + scalar_blinding_bits(order_bits);
 1357|    342|      }

_ZN5Botan6PCurve14PCurveInstance9secp224r1Ev:
  223|    290|std::shared_ptr<const PrimeOrderCurve> PCurveInstance::secp224r1() {
  224|    290|   return PrimeOrderCurveImpl<secp224r1::Curve>::instance();
  225|    290|}
pcurves_secp224r1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS2_6ParamsES3_E11FieldParamsEE3oneEv:
   69|  7.52k|      constexpr static std::array<W, N> one() { return std::array<W, N>{1}; }
pcurves_secp224r1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS2_6ParamsES3_E11FieldParamsEE4redcERKNSt3__15arrayImLm8EEE:
   25|   154k|      constexpr static std::array<W, N> redc(const std::array<W, 2 * N>& z) {
   26|   154k|         const int64_t X00 = get_uint32(z.data(), 0);
   27|   154k|         const int64_t X01 = get_uint32(z.data(), 1);
   28|   154k|         const int64_t X02 = get_uint32(z.data(), 2);
   29|   154k|         const int64_t X03 = get_uint32(z.data(), 3);
   30|   154k|         const int64_t X04 = get_uint32(z.data(), 4);
   31|   154k|         const int64_t X05 = get_uint32(z.data(), 5);
   32|   154k|         const int64_t X06 = get_uint32(z.data(), 6);
   33|   154k|         const int64_t X07 = get_uint32(z.data(), 7);
   34|   154k|         const int64_t X08 = get_uint32(z.data(), 8);
   35|   154k|         const int64_t X09 = get_uint32(z.data(), 9);
   36|   154k|         const int64_t X10 = get_uint32(z.data(), 10);
   37|   154k|         const int64_t X11 = get_uint32(z.data(), 11);
   38|   154k|         const int64_t X12 = get_uint32(z.data(), 12);
   39|   154k|         const int64_t X13 = get_uint32(z.data(), 13);
   40|       |
   41|   154k|         const int64_t S0 = 0x00000001 + X00 - X07 - X11;
   42|   154k|         const int64_t S1 = 0x00000000 + X01 - X08 - X12;
   43|   154k|         const int64_t S2 = 0x00000000 + X02 - X09 - X13;
   44|   154k|         const int64_t S3 = 0xFFFFFFFF + X03 + X07 + X11 - X10;
   45|   154k|         const int64_t S4 = 0xFFFFFFFF + X04 + X08 + X12 - X11;
   46|   154k|         const int64_t S5 = 0xFFFFFFFF + X05 + X09 + X13 - X12;
   47|   154k|         const int64_t S6 = 0xFFFFFFFF + X06 + X10 - X13;
   48|       |
   49|   154k|         std::array<W, N> r = {};
   50|       |
   51|   154k|         SolinasAccum sum(r);
   52|       |
   53|   154k|         sum.accum(S0);
   54|   154k|         sum.accum(S1);
   55|   154k|         sum.accum(S2);
   56|   154k|         sum.accum(S3);
   57|   154k|         sum.accum(S4);
   58|   154k|         sum.accum(S5);
   59|   154k|         sum.accum(S6);
   60|   154k|         const auto S = sum.final_carry(0);
   61|       |
   62|   154k|         BOTAN_DEBUG_ASSERT(S <= 2);
  ------------------
  |  |  130|   154k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|   154k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 154k]
  |  |  ------------------
  ------------------
   63|       |
   64|   154k|         solinas_correct_redc<N>(r, P, p224_mul_mod_224(S));
   65|       |
   66|   154k|         return r;
   67|   154k|      }
pcurves_secp224r1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS2_6ParamsES3_E11FieldParamsEE16p224_mul_mod_224Em:
   81|   154k|      constexpr static std::array<W, N> p224_mul_mod_224(W i) {
   82|   154k|         static_assert(WordInfo<W>::bits == 32 || WordInfo<W>::bits == 64);
   83|       |
   84|       |         // For small i, multiples of P-224 have a simple structure so it's faster to
   85|       |         // compute the value directly vs a (constant time) table lookup
   86|       |
   87|   154k|         auto r = P;
   88|       |
   89|       |         if constexpr(WordInfo<W>::bits == 32) {
   90|       |            r[3] -= i;
   91|       |            r[0] += i;
   92|   154k|         } else {
   93|   154k|            const W i32 = i << 32;
   94|   154k|            r[1] -= i32;
   95|   154k|            r[0] += i;
   96|   154k|         }
   97|   154k|         return r;
   98|   154k|      }
pcurves_secp224r1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_19secp224r15Curve10fe_invert2ERKNS_6IntModINS2_12Secp224r1RepINS_13EllipticCurveINS2_6ParamsES5_E11FieldParamsEEEEE:
  117|    198|      static constexpr FieldElement fe_invert2(const FieldElement& x) {
  118|    198|         auto z = x.square();
  119|    198|         z *= x;
  120|    198|         z = z.square();
  121|    198|         z *= x;
  122|    198|         auto t0 = z;
  123|    198|         t0.square_n(3);
  124|    198|         t0 *= z;
  125|    198|         auto t1 = t0;
  126|    198|         t1.square_n(6);
  127|    198|         t0 *= t1;
  128|    198|         t0.square_n(3);
  129|    198|         z *= t0;
  130|    198|         t0 = z.square();
  131|    198|         t0 *= x;
  132|    198|         t1 = t0;
  133|    198|         t1.square_n(16);
  134|    198|         t0 *= t1;
  135|    198|         t1 = t0;
  136|    198|         t1.square_n(15);
  137|    198|         z *= t1;
  138|    198|         t1 = z;
  139|    198|         t1.square_n(47);
  140|    198|         z *= t1;
  141|    198|         z = z.square();
  142|    198|         z *= x;
  143|    198|         t1 = z;
  144|    198|         t1.square_n(32);
  145|    198|         t0 *= t1;
  146|    198|         t0.square_n(96);
  147|    198|         z *= t0;
  148|    198|         return z.square();
  149|    198|      }
pcurves_secp224r1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS2_6ParamsES3_E11FieldParamsEE8from_repERKNSt3__15arrayImLm4EEE:
   75|    397|      constexpr static std::array<W, N> from_rep(const std::array<W, N>& z) { return z; }
pcurves_secp224r1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS2_6ParamsES3_E11FieldParamsEE6to_repERKNSt3__15arrayImLm4EEE:
   71|    156|      constexpr static std::array<W, N> to_rep(const std::array<W, N>& x) { return x; }

_ZN5Botan6PCurve14PCurveInstance9secp256k1Ev:
  233|    198|std::shared_ptr<const PrimeOrderCurve> PCurveInstance::secp256k1() {
  234|    198|   return PrimeOrderCurveImpl<secp256k1::Curve>::instance();
  235|    198|}
pcurves_secp256k1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS2_6ParamsES3_E11FieldParamsEE3oneEv:
   28|  6.40k|      constexpr static std::array<W, N> one() { return std::array<W, N>{1}; }
pcurves_secp256k1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS2_6ParamsES3_E11FieldParamsEE4redcERKNSt3__15arrayImLm8EEE:
   30|   138k|      constexpr static std::array<W, N> redc(const std::array<W, 2 * N>& z) {
   31|   138k|         return redc_crandall<W, N, C>(std::span{z});
   32|   138k|      }
pcurves_secp256k1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_19secp256k15Curve10fe_invert2ERKNS_6IntModINS2_12Secp256k1RepINS_13EllipticCurveINS2_6ParamsES5_E11FieldParamsEEEEE:
   60|    149|      static constexpr FieldElement fe_invert2(const FieldElement& x) {
   61|    149|         auto z = x.square();
   62|    149|         z *= x;
   63|    149|         auto t0 = z;
   64|    149|         t0.square_n(2);
   65|    149|         t0 *= z;
   66|    149|         auto t1 = t0.square();
   67|    149|         auto t2 = t1 * x;
   68|    149|         t1 = t2;
   69|    149|         t1.square_n(2);
   70|    149|         t1 *= z;
   71|    149|         auto t3 = t1;
   72|    149|         t3.square_n(4);
   73|    149|         t0 *= t3;
   74|    149|         t3 = t0;
   75|    149|         t3.square_n(11);
   76|    149|         t0 *= t3;
   77|    149|         t3 = t0;
   78|    149|         t3.square_n(5);
   79|    149|         t2 *= t3;
   80|    149|         t3 = t2;
   81|    149|         t3.square_n(27);
   82|    149|         t2 *= t3;
   83|    149|         t3 = t2;
   84|    149|         t3.square_n(54);
   85|    149|         t2 *= t3;
   86|    149|         t3 = t2;
   87|    149|         t3.square_n(108);
   88|    149|         t2 *= t3;
   89|    149|         t2.square_n(7);
   90|    149|         t1 *= t2;
   91|    149|         t1.square_n(23);
   92|    149|         t0 *= t1;
   93|    149|         t0.square_n(5);
   94|    149|         t0 *= x;
   95|    149|         t0.square_n(3);
   96|    149|         z *= t0;
   97|    149|         z.square_n(2);
   98|    149|         return z;
   99|    149|      }
pcurves_secp256k1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS2_6ParamsES3_E11FieldParamsEE8from_repERKNSt3__15arrayImLm4EEE:
   38|    299|      constexpr static std::array<W, N> from_rep(const std::array<W, N>& z) { return z; }
pcurves_secp256k1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS2_6ParamsES3_E11FieldParamsEE6to_repERKNSt3__15arrayImLm4EEE:
   34|      1|      constexpr static std::array<W, N> to_rep(const std::array<W, N>& x) { return x; }

_ZN5Botan6PCurve14PCurveInstance9secp256r1Ev:
  268|    164|std::shared_ptr<const PrimeOrderCurve> PCurveInstance::secp256r1() {
  269|    164|   return PrimeOrderCurveImpl<secp256r1::Curve>::instance();
  270|    164|}
pcurves_secp256r1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS1_9secp256r16ParamsES2_E11FieldParamsEE3oneEv:
   77|  3.65k|      constexpr static std::array<W, N> one() { return std::array<W, N>{1}; }
pcurves_secp256r1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS1_9secp256r16ParamsES2_E11FieldParamsEE4redcERKNSt3__15arrayImLm8EEE:
   27|  91.8k|      constexpr static std::array<W, N> redc(const std::array<W, 2 * N>& z) {
   28|  91.8k|         const int64_t X00 = get_uint32(z.data(), 0);
   29|  91.8k|         const int64_t X01 = get_uint32(z.data(), 1);
   30|  91.8k|         const int64_t X02 = get_uint32(z.data(), 2);
   31|  91.8k|         const int64_t X03 = get_uint32(z.data(), 3);
   32|  91.8k|         const int64_t X04 = get_uint32(z.data(), 4);
   33|  91.8k|         const int64_t X05 = get_uint32(z.data(), 5);
   34|  91.8k|         const int64_t X06 = get_uint32(z.data(), 6);
   35|  91.8k|         const int64_t X07 = get_uint32(z.data(), 7);
   36|  91.8k|         const int64_t X08 = get_uint32(z.data(), 8);
   37|  91.8k|         const int64_t X09 = get_uint32(z.data(), 9);
   38|  91.8k|         const int64_t X10 = get_uint32(z.data(), 10);
   39|  91.8k|         const int64_t X11 = get_uint32(z.data(), 11);
   40|  91.8k|         const int64_t X12 = get_uint32(z.data(), 12);
   41|  91.8k|         const int64_t X13 = get_uint32(z.data(), 13);
   42|  91.8k|         const int64_t X14 = get_uint32(z.data(), 14);
   43|  91.8k|         const int64_t X15 = get_uint32(z.data(), 15);
   44|       |
   45|       |         // See SP 800-186 section G.1.2
   46|  91.8k|         const int64_t S0 = P256_4[0] + X00 + X08 + X09 - (X11 + X12 + X13 + X14);
   47|  91.8k|         const int64_t S1 = P256_4[1] + X01 + X09 + X10 - (X12 + X13 + X14 + X15);
   48|  91.8k|         const int64_t S2 = P256_4[2] + X02 + X10 + X11 - (X13 + X14 + X15);
   49|  91.8k|         const int64_t S3 = P256_4[3] + X03 + 2 * (X11 + X12) + X13 - (X15 + X08 + X09);
   50|  91.8k|         const int64_t S4 = P256_4[4] + X04 + 2 * (X12 + X13) + X14 - (X09 + X10);
   51|  91.8k|         const int64_t S5 = P256_4[5] + X05 + 2 * (X13 + X14) + X15 - (X10 + X11);
   52|  91.8k|         const int64_t S6 = P256_4[6] + X06 + X13 + X14 * 3 + X15 * 2 - (X08 + X09);
   53|  91.8k|         const int64_t S7 = P256_4[7] + X07 + X15 * 3 + X08 - (X10 + X11 + X12 + X13);
   54|  91.8k|         const int64_t S8 = P256_4[8];
   55|       |
   56|  91.8k|         std::array<W, N> r = {};
   57|       |
   58|  91.8k|         SolinasAccum sum(r);
   59|       |
   60|  91.8k|         sum.accum(S0);
   61|  91.8k|         sum.accum(S1);
   62|  91.8k|         sum.accum(S2);
   63|  91.8k|         sum.accum(S3);
   64|  91.8k|         sum.accum(S4);
   65|  91.8k|         sum.accum(S5);
   66|  91.8k|         sum.accum(S6);
   67|  91.8k|         sum.accum(S7);
   68|  91.8k|         const auto S = sum.final_carry(S8);
   69|       |
   70|  91.8k|         BOTAN_DEBUG_ASSERT(S <= 8);
  ------------------
  |  |  130|  91.8k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  91.8k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 91.8k]
  |  |  ------------------
  ------------------
   71|       |
   72|  91.8k|         solinas_correct_redc<N>(r, P, p256_mul_mod_256(S));
   73|       |
   74|  91.8k|         return r;
   75|  91.8k|      }
pcurves_secp256r1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS1_9secp256r16ParamsES2_E11FieldParamsEE16p256_mul_mod_256Em:
   89|  91.8k|      constexpr static std::array<W, N> p256_mul_mod_256(W i) {
   90|  91.8k|         static_assert(WordInfo<W>::bits == 32 || WordInfo<W>::bits == 64);
   91|       |
   92|       |         // For small i, multiples of P-256 have a simple structure so it's faster to
   93|       |         // compute the value directly vs a (constant time) table lookup
   94|       |
   95|  91.8k|         auto r = P;
   96|       |         if constexpr(WordInfo<W>::bits == 32) {
   97|       |            r[7] -= i;
   98|       |            r[6] += i;
   99|       |            r[3] += i;
  100|       |            r[0] -= i;
  101|  91.8k|         } else {
  102|  91.8k|            const uint64_t i32 = static_cast<uint64_t>(i) << 32;
  103|  91.8k|            r[3] -= i32;
  104|  91.8k|            r[3] += i;
  105|  91.8k|            r[1] += i32;
  106|  91.8k|            r[0] -= i;
  107|  91.8k|         }
  108|  91.8k|         return r;
  109|  91.8k|      }
pcurves_secp256r1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_19secp256r15Curve10fe_invert2ERKNS_6IntModINS1_12Secp256r1RepINS_13EllipticCurveINS2_6ParamsES5_E11FieldParamsEEEEE:
  131|     85|      static constexpr FieldElement fe_invert2(const FieldElement& x) {
  132|       |         // Generated using https://github.com/mmcloughlin/addchain
  133|       |
  134|     85|         auto z = x.square();
  135|     85|         z *= x;
  136|     85|         z = z.square();
  137|     85|         z *= x;
  138|     85|         auto t0 = z;
  139|     85|         t0.square_n(3);
  140|     85|         t0 *= z;
  141|     85|         auto t1 = t0;
  142|     85|         t1.square_n(6);
  143|     85|         t0 *= t1;
  144|     85|         t0.square_n(3);
  145|     85|         z *= t0;
  146|     85|         t0 = z.square();
  147|     85|         t0 *= x;
  148|     85|         t1 = t0;
  149|     85|         t1.square_n(16);
  150|     85|         t0 *= t1;
  151|     85|         t0.square_n(15);
  152|     85|         z *= t0;
  153|     85|         t0.square_n(17);
  154|     85|         t0 *= x;
  155|     85|         t0.square_n(143);
  156|     85|         t0 *= z;
  157|     85|         t0.square_n(47);
  158|     85|         z *= t0;
  159|     85|         z.square_n(2);
  160|       |
  161|     85|         return z;
  162|     85|      }
pcurves_secp256r1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS1_9secp256r16ParamsES2_E11FieldParamsEE8from_repERKNSt3__15arrayImLm4EEE:
   83|    171|      constexpr static std::array<W, N> from_rep(const std::array<W, N>& z) { return z; }
pcurves_secp256r1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS1_9secp256r16ParamsES2_E11FieldParamsEE6to_repERKNSt3__15arrayImLm4EEE:
   79|      1|      constexpr static std::array<W, N> to_rep(const std::array<W, N>& x) { return x; }

_ZN5Botan6PCurve14PCurveInstance9secp384r1Ev:
  343|    215|std::shared_ptr<const PrimeOrderCurve> PCurveInstance::secp384r1() {
  344|    215|   return PrimeOrderCurveImpl<secp384r1::Curve>::instance();
  345|    215|}
pcurves_secp384r1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS1_9secp384r16ParamsES2_E11FieldParamsEE3oneEv:
   88|  10.0k|      constexpr static std::array<W, N> one() { return std::array<W, N>{1}; }
pcurves_secp384r1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS1_9secp384r16ParamsES2_E11FieldParamsEE4redcERKNSt3__15arrayImLm12EEE:
   23|   214k|      constexpr static std::array<W, N> redc(const std::array<W, 2 * N>& z) {
   24|   214k|         const int64_t X00 = get_uint32(z.data(), 0);
   25|   214k|         const int64_t X01 = get_uint32(z.data(), 1);
   26|   214k|         const int64_t X02 = get_uint32(z.data(), 2);
   27|   214k|         const int64_t X03 = get_uint32(z.data(), 3);
   28|   214k|         const int64_t X04 = get_uint32(z.data(), 4);
   29|   214k|         const int64_t X05 = get_uint32(z.data(), 5);
   30|   214k|         const int64_t X06 = get_uint32(z.data(), 6);
   31|   214k|         const int64_t X07 = get_uint32(z.data(), 7);
   32|   214k|         const int64_t X08 = get_uint32(z.data(), 8);
   33|   214k|         const int64_t X09 = get_uint32(z.data(), 9);
   34|   214k|         const int64_t X10 = get_uint32(z.data(), 10);
   35|   214k|         const int64_t X11 = get_uint32(z.data(), 11);
   36|   214k|         const int64_t X12 = get_uint32(z.data(), 12);
   37|   214k|         const int64_t X13 = get_uint32(z.data(), 13);
   38|   214k|         const int64_t X14 = get_uint32(z.data(), 14);
   39|   214k|         const int64_t X15 = get_uint32(z.data(), 15);
   40|   214k|         const int64_t X16 = get_uint32(z.data(), 16);
   41|   214k|         const int64_t X17 = get_uint32(z.data(), 17);
   42|   214k|         const int64_t X18 = get_uint32(z.data(), 18);
   43|   214k|         const int64_t X19 = get_uint32(z.data(), 19);
   44|   214k|         const int64_t X20 = get_uint32(z.data(), 20);
   45|   214k|         const int64_t X21 = get_uint32(z.data(), 21);
   46|   214k|         const int64_t X22 = get_uint32(z.data(), 22);
   47|   214k|         const int64_t X23 = get_uint32(z.data(), 23);
   48|       |
   49|       |         // One copy of P-384 is added to prevent underflow
   50|   214k|         const int64_t S0 = 0xFFFFFFFF + X00 + X12 + X20 + X21 - X23;
   51|   214k|         const int64_t S1 = 0x00000000 + X01 + X13 + X22 + X23 - X12 - X20;
   52|   214k|         const int64_t S2 = 0x00000000 + X02 + X14 + X23 - X13 - X21;
   53|   214k|         const int64_t S3 = 0xFFFFFFFF + X03 + X12 + X15 + X20 + X21 - X14 - X22 - X23;
   54|   214k|         const int64_t S4 = 0xFFFFFFFE + X04 + X12 + X13 + X16 + X20 + X21 * 2 + X22 - X15 - X23 * 2;
   55|   214k|         const int64_t S5 = 0xFFFFFFFF + X05 + X13 + X14 + X17 + X21 + X22 * 2 + X23 - X16;
   56|   214k|         const int64_t S6 = 0xFFFFFFFF + X06 + X14 + X15 + X18 + X22 + X23 * 2 - X17;
   57|   214k|         const int64_t S7 = 0xFFFFFFFF + X07 + X15 + X16 + X19 + X23 - X18;
   58|   214k|         const int64_t S8 = 0xFFFFFFFF + X08 + X16 + X17 + X20 - X19;
   59|   214k|         const int64_t S9 = 0xFFFFFFFF + X09 + X17 + X18 + X21 - X20;
   60|   214k|         const int64_t SA = 0xFFFFFFFF + X10 + X18 + X19 + X22 - X21;
   61|   214k|         const int64_t SB = 0xFFFFFFFF + X11 + X19 + X20 + X23 - X22;
   62|       |
   63|   214k|         std::array<W, N> r = {};
   64|       |
   65|   214k|         SolinasAccum sum(r);
   66|       |
   67|   214k|         sum.accum(S0);
   68|   214k|         sum.accum(S1);
   69|   214k|         sum.accum(S2);
   70|   214k|         sum.accum(S3);
   71|   214k|         sum.accum(S4);
   72|   214k|         sum.accum(S5);
   73|   214k|         sum.accum(S6);
   74|   214k|         sum.accum(S7);
   75|   214k|         sum.accum(S8);
   76|   214k|         sum.accum(S9);
   77|   214k|         sum.accum(SA);
   78|   214k|         sum.accum(SB);
   79|   214k|         const auto S = sum.final_carry(0);
   80|       |
   81|   214k|         BOTAN_DEBUG_ASSERT(S <= 4);
  ------------------
  |  |  130|   214k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|   214k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 214k]
  |  |  ------------------
  ------------------
   82|       |
   83|   214k|         solinas_correct_redc<N>(r, P, p384_mul_mod_384(S));
   84|       |
   85|   214k|         return r;
   86|   214k|      }
pcurves_secp384r1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS1_9secp384r16ParamsES2_E11FieldParamsEE16p384_mul_mod_384Em:
  100|   214k|      constexpr static std::array<W, N> p384_mul_mod_384(W i) {
  101|   214k|         static_assert(WordInfo<W>::bits == 32 || WordInfo<W>::bits == 64);
  102|       |
  103|       |         // For small i, multiples of P-384 have a simple structure so it's faster to
  104|       |         // compute the value directly vs a (constant time) table lookup
  105|       |
  106|   214k|         auto r = P;
  107|       |         if constexpr(WordInfo<W>::bits == 32) {
  108|       |            r[4] -= i;
  109|       |            r[3] -= i;
  110|       |            r[1] += i;
  111|       |            r[0] -= i;
  112|   214k|         } else {
  113|   214k|            const uint64_t i32 = static_cast<uint64_t>(i) << 32;
  114|   214k|            r[2] -= i;
  115|   214k|            r[1] -= i32;
  116|   214k|            r[0] += i32;
  117|   214k|            r[0] -= i;
  118|   214k|         }
  119|   214k|         return r;
  120|   214k|      }
pcurves_secp384r1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_19secp384r15Curve10fe_invert2ERKNS_6IntModINS1_12Secp384r1RepINS_13EllipticCurveINS2_6ParamsES5_E11FieldParamsEEEEE:
  142|    154|      static constexpr FieldElement fe_invert2(const FieldElement& x) {
  143|       |         // From https://briansmith.org/ecc-inversion-addition-chains-01
  144|       |
  145|    154|         FieldElement r = x.square();
  146|    154|         r *= x;
  147|    154|         const auto x2 = r;
  148|    154|         r = r.square();
  149|    154|         r *= x;
  150|    154|         const auto x3 = r;
  151|    154|         r.square_n(3);
  152|    154|         r *= x3;
  153|    154|         auto rl = r;
  154|    154|         r.square_n(6);
  155|    154|         r *= rl;
  156|    154|         r.square_n(3);
  157|    154|         r *= x3;
  158|    154|         const auto x15 = r;
  159|    154|         r.square_n(15);
  160|    154|         r *= x15;
  161|    154|         const auto x30 = r;
  162|    154|         r.square_n(30);
  163|    154|         r *= x30;
  164|    154|         rl = r;
  165|    154|         r.square_n(60);
  166|    154|         r *= rl;
  167|    154|         rl = r;
  168|    154|         r.square_n(120);
  169|    154|         r *= rl;
  170|    154|         r.square_n(15);
  171|    154|         r *= x15;
  172|    154|         r.square_n(31);
  173|    154|         r *= x30;
  174|    154|         r.square_n(2);
  175|    154|         r *= x2;
  176|    154|         r.square_n(94);
  177|    154|         r *= x30;
  178|    154|         r.square_n(2);
  179|       |
  180|    154|         return r;
  181|    154|      }
pcurves_secp384r1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS1_9secp384r16ParamsES2_E11FieldParamsEE8from_repERKNSt3__15arrayImLm6EEE:
   94|    309|      constexpr static std::array<W, N> from_rep(const std::array<W, N>& z) { return z; }
pcurves_secp384r1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS1_9secp384r16ParamsES2_E11FieldParamsEE6to_repERKNSt3__15arrayImLm6EEE:
   90|      1|      constexpr static std::array<W, N> to_rep(const std::array<W, N>& x) { return x; }

_ZN5Botan6PCurve14PCurveInstance9secp521r1Ev:
  291|    296|std::shared_ptr<const PrimeOrderCurve> PCurveInstance::secp521r1() {
  292|    296|   return PrimeOrderCurveImpl<secp521r1::Curve>::instance();
  293|    296|}
pcurves_secp521r1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS2_6ParamsES3_E11FieldParamsEE3oneEv:
   24|  15.3k|      constexpr static std::array<W, N> one() { return std::array<W, N>{1}; }
pcurves_secp521r1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS2_6ParamsES3_E11FieldParamsEE4redcERKNSt3__15arrayImLm18EEE:
   26|   319k|      constexpr static std::array<W, N> redc(const std::array<W, 2 * N>& z) {
   27|       |         // Regardless of word size (32 or 64) the top word is 9 bits long
   28|   319k|         constexpr W TOP_BITS = static_cast<W>(0x1FF);
   29|       |         // The 23 or 55 bits that should be cleared in the top word
   30|   319k|         constexpr W CLEARED_TOP_BITS = WordInfo<W>::max ^ TOP_BITS;
   31|       |
   32|       |         /*
   33|       |         * Extract the high part of z (z >> 521)
   34|       |         */
   35|   319k|         std::array<W, N> t;  // NOLINT(*-member-init)
   36|       |
   37|  3.19M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (37:28): [True: 2.87M, False: 319k]
  ------------------
   38|  2.87M|            t[i] = z[(N - 1) + i] >> 9;
   39|  2.87M|         }
   40|       |
   41|  2.87M|         for(size_t i = 0; i != N - 1; ++i) {
  ------------------
  |  Branch (41:28): [True: 2.55M, False: 319k]
  ------------------
   42|  2.55M|            t[i] |= z[(N - 1) + i + 1] << (WordInfo<W>::bits - 9);
   43|  2.55M|         }
   44|       |
   45|       |         // Now t += z & (2**521-1)
   46|   319k|         W carry = 0;
   47|  2.87M|         for(size_t i = 0; i != N - 1; ++i) {
  ------------------
  |  Branch (47:28): [True: 2.55M, False: 319k]
  ------------------
   48|  2.55M|            t[i] = word_add(t[i], z[i], &carry);
   49|  2.55M|         }
   50|       |
   51|       |         // Now add the (partial) top words; this can't carry out
   52|       |         // since both inputs are at most 2**9-1
   53|   319k|         t[N - 1] += (z[N - 1] & TOP_BITS) + carry;
   54|       |
   55|       |         /*
   56|       |         Since the modulus P is exactly 2**521 - 1 the only way the computed
   57|       |         result can be larger than P is if the top word is larger than TOP_BITS
   58|       |
   59|       |         Since TOP_BITS has the low 9 bits set, we can check if t[N - 1] > TOP_BITS
   60|       |         by checking if t[N - 1] >> 9 has any bits set. Doing it this way is
   61|       |         faster than a standard comparison since CT::Mask::is_gt requires
   62|       |         several bit operations.
   63|       |         */
   64|       |
   65|   319k|         const W is_over_p521 = ~CT::Mask<W>::is_zero(t[N - 1] >> 9).value();
   66|       |
   67|       |         /*
   68|       |         * Also must detect/handle x == P
   69|       |         */
   70|   319k|         const W is_eq_p521 = [&]() {
   71|   319k|            W sum = WordInfo<W>::max;
   72|   319k|            for(size_t i = 0; i != N - 1; ++i) {
   73|   319k|               sum &= t[i];
   74|   319k|            }
   75|   319k|            sum &= (CLEARED_TOP_BITS | t[N - 1]);
   76|       |
   77|   319k|            return CT::Mask<W>::is_zero(sum ^ WordInfo<W>::max).value();
   78|   319k|         }();
   79|       |
   80|   319k|         const W need_sub = is_over_p521 | is_eq_p521;
   81|       |
   82|   319k|         W borrow = 0;
   83|  2.87M|         for(size_t i = 0; i != N - 1; ++i) {
  ------------------
  |  Branch (83:28): [True: 2.55M, False: 319k]
  ------------------
   84|  2.55M|            t[i] = word_sub(t[i], need_sub & WordInfo<W>::max, &borrow);
   85|  2.55M|         }
   86|   319k|         t[N - 1] = word_sub(t[N - 1], need_sub & TOP_BITS, &borrow);
   87|       |
   88|   319k|         return t;
   89|   319k|      }
pcurves_secp521r1.cpp:_ZZN5Botan6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS2_6ParamsES3_E11FieldParamsEE4redcERKNSt3__15arrayImLm18EEEENKUlvE_clEv:
   70|   319k|         const W is_eq_p521 = [&]() {
   71|   319k|            W sum = WordInfo<W>::max;
   72|  2.87M|            for(size_t i = 0; i != N - 1; ++i) {
  ------------------
  |  Branch (72:31): [True: 2.55M, False: 319k]
  ------------------
   73|  2.55M|               sum &= t[i];
   74|  2.55M|            }
   75|   319k|            sum &= (CLEARED_TOP_BITS | t[N - 1]);
   76|       |
   77|   319k|            return CT::Mask<W>::is_zero(sum ^ WordInfo<W>::max).value();
   78|   319k|         }();
pcurves_secp521r1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_19secp521r15Curve10fe_invert2ERKNS_6IntModINS2_7P521RepINS_13EllipticCurveINS2_6ParamsES5_E11FieldParamsEEEEE:
  115|    176|      static constexpr FieldElement fe_invert2(const FieldElement& x) {
  116|       |         // Addition chain from https://eprint.iacr.org/2014/852.pdf page 6
  117|       |
  118|    176|         FieldElement r = x.square();
  119|    176|         r *= x;
  120|    176|         r = r.square();
  121|    176|         r *= x;
  122|    176|         FieldElement rl = r;
  123|    176|         r.square_n(3);
  124|    176|         r *= rl;
  125|    176|         r.square_n(1);
  126|    176|         r *= x;
  127|    176|         const auto a7 = r;
  128|    176|         r.square_n(1);
  129|    176|         r *= x;
  130|    176|         rl = r;
  131|    176|         r.square_n(8);
  132|    176|         r *= rl;
  133|    176|         rl = r;
  134|    176|         r.square_n(16);
  135|    176|         r *= rl;
  136|    176|         rl = r;
  137|    176|         r.square_n(32);
  138|    176|         r *= rl;
  139|    176|         rl = r;
  140|    176|         r.square_n(64);
  141|    176|         r *= rl;
  142|    176|         rl = r;
  143|    176|         r.square_n(128);
  144|    176|         r *= rl;
  145|    176|         rl = r;
  146|    176|         r.square_n(256);
  147|    176|         r *= rl;
  148|    176|         r.square_n(7);
  149|    176|         r *= a7;
  150|    176|         r.square_n(2);
  151|       |
  152|    176|         return r;
  153|    176|      }
pcurves_secp521r1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS2_6ParamsES3_E11FieldParamsEE8from_repERKNSt3__15arrayImLm9EEE:
   95|    355|      constexpr static std::array<W, N> from_rep(const std::array<W, N>& z) { return z; }
pcurves_secp521r1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS2_6ParamsES3_E11FieldParamsEE6to_repERKNSt3__15arrayImLm9EEE:
   91|    165|      constexpr static std::array<W, N> to_rep(const std::array<W, N>& x) { return x; }

_ZN5Botan18Keccak_Permutation5clearEv:
   37|    480|void Keccak_Permutation::clear() {
   38|    480|   state() = {};
   39|    480|   reset_cursor();
   40|    480|}
_ZN5Botan18Keccak_Permutation6absorbENSt3__14spanIKhLm18446744073709551615EEE:
   42|  8.55k|void Keccak_Permutation::absorb(std::span<const uint8_t> input) {
   43|  8.55k|   absorb_into_sponge(*this, input);
   44|  8.55k|}
_ZN5Botan18Keccak_Permutation7squeezeENSt3__14spanIhLm18446744073709551615EEE:
   46|   920k|void Keccak_Permutation::squeeze(std::span<uint8_t> output) {
   47|   920k|   squeeze_from_sponge(*this, output);
   48|   920k|}
_ZN5Botan18Keccak_Permutation6finishEv:
   50|  4.33k|void Keccak_Permutation::finish() {
   51|       |   // The padding for Keccak[c]-based functions spans the entire remaining
   52|       |   // byterate until the next permute() call. At most that could be an entire
   53|       |   // byterate. First are a few bits of "custom" padding defined by the using
   54|       |   // function (e.g. SHA-3 uses "01"), then the remaining space is filled with
   55|       |   // "pad10*1" (see NIST FIPS 202 Section 5.1) followed by a final permute().
   56|       |
   57|  4.33k|   auto& S = state();
   58|       |
   59|       |   // Apply the custom padding + the left-most 1-bit of "pad10*1" to the current
   60|       |   // (partial) word of the sponge state
   61|       |
   62|  4.33k|   const uint64_t start_of_padding = (m_padding.padding | uint64_t(1) << m_padding.bit_len);
   63|  4.33k|   S[cursor() / word_bytes] ^= start_of_padding << (8 * (cursor() % word_bytes));
   64|       |
   65|       |   // XOR'ing the 0-bits of "pad10*1" into the state is a NOOP
   66|       |
   67|       |   // If the custom padding + the left-most 1-bit of "pad10*1" had resulted in a
   68|       |   // byte-aligned "partial padding", the final 1-bit of of "pad10*1" could
   69|       |   // potentially override parts of the already-appended "start_of_padding".
   70|       |   // In case we ever introduce a Keccak-based function with such a need, we
   71|       |   // have to modify this padding algorithm.
   72|  4.33k|   BOTAN_DEBUG_ASSERT(m_padding.bit_len % 8 != 7);
  ------------------
  |  |  130|  4.33k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  4.33k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 4.33k]
  |  |  ------------------
  ------------------
   73|       |
   74|       |   // Append the final bit of "pad10*1" into the last word of the input range
   75|  4.33k|   S[(byte_rate() / word_bytes) - 1] ^= uint64_t(0x8000000000000000);
   76|       |
   77|       |   // Perform the final permutation and reset the state cursor
   78|  4.33k|   permute();
   79|  4.33k|   reset_cursor();
   80|       |
   81|  4.33k|   BOTAN_DEBUG_ASSERT(cursor() == 0);
  ------------------
  |  |  130|  4.33k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  4.33k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 4.33k]
  |  |  ------------------
  ------------------
   82|  4.33k|}
_ZN5Botan18Keccak_Permutation7permuteEv:
   84|  18.1k|void Keccak_Permutation::permute() {
   85|  18.1k|#if defined(BOTAN_HAS_KECCAK_PERM_AVX512)
   86|  18.1k|   if(CPUID::has(CPUID::Feature::AVX512)) {
  ------------------
  |  Branch (86:7): [True: 0, False: 18.1k]
  ------------------
   87|      0|      return permute_avx512();
   88|      0|   }
   89|  18.1k|#endif
   90|       |
   91|  18.1k|#if defined(BOTAN_HAS_KECCAK_PERM_BMI2)
   92|  18.1k|   if(CPUID::has(CPUID::Feature::BMI)) {
  ------------------
  |  Branch (92:7): [True: 18.1k, False: 0]
  ------------------
   93|  18.1k|      return permute_bmi2();
   94|  18.1k|   }
   95|      0|#endif
   96|       |
   97|      0|   static const uint64_t RC[24] = {0x0000000000000001, 0x0000000000008082, 0x800000000000808A, 0x8000000080008000,
   98|      0|                                   0x000000000000808B, 0x0000000080000001, 0x8000000080008081, 0x8000000000008009,
   99|      0|                                   0x000000000000008A, 0x0000000000000088, 0x0000000080008009, 0x000000008000000A,
  100|      0|                                   0x000000008000808B, 0x800000000000008B, 0x8000000000008089, 0x8000000000008003,
  101|      0|                                   0x8000000000008002, 0x8000000000000080, 0x000000000000800A, 0x800000008000000A,
  102|      0|                                   0x8000000080008081, 0x8000000000008080, 0x0000000080000001, 0x8000000080008008};
  103|       |
  104|      0|   uint64_t T[25];
  105|       |
  106|      0|   for(size_t i = 0; i != 24; i += 2) {
  ------------------
  |  Branch (106:22): [True: 0, False: 0]
  ------------------
  107|      0|      Keccak_Permutation_round(T, state().data(), RC[i + 0]);
  108|      0|      Keccak_Permutation_round(state().data(), T, RC[i + 1]);
  109|      0|   }
  110|      0|}

_ZN5Botan18Keccak_Permutation12permute_bmi2Ev:
   15|  18.1k|void BOTAN_FN_ISA_BMI2 Keccak_Permutation::permute_bmi2() {
   16|  18.1k|   static const uint64_t RC[24] = {0x0000000000000001, 0x0000000000008082, 0x800000000000808A, 0x8000000080008000,
   17|  18.1k|                                   0x000000000000808B, 0x0000000080000001, 0x8000000080008081, 0x8000000000008009,
   18|  18.1k|                                   0x000000000000008A, 0x0000000000000088, 0x0000000080008009, 0x000000008000000A,
   19|  18.1k|                                   0x000000008000808B, 0x800000000000008B, 0x8000000000008089, 0x8000000000008003,
   20|  18.1k|                                   0x8000000000008002, 0x8000000000000080, 0x000000000000800A, 0x800000008000000A,
   21|  18.1k|                                   0x8000000080008081, 0x8000000000008080, 0x0000000080000001, 0x8000000080008008};
   22|       |
   23|  18.1k|   uint64_t T[25];
   24|       |
   25|   236k|   for(size_t i = 0; i != 24; i += 2) {
  ------------------
  |  Branch (25:22): [True: 218k, False: 18.1k]
  ------------------
   26|   218k|      Keccak_Permutation_round(T, state().data(), RC[i + 0]);
   27|   218k|      Keccak_Permutation_round(state().data(), T, RC[i + 1]);
   28|   218k|   }
   29|  18.1k|}

_ZN5Botan9Gf448ElemC2ENSt3__14spanIKhLm56EEE:
  356|      2|Gf448Elem::Gf448Elem(std::span<const uint8_t, BYTES_448> x) /* NOLINT(*-member-init) */ {
  357|      2|   load_le(m_x, x);
  358|      2|}
_ZN5Botan9Gf448ElemC2Em:
  360|  40.5k|Gf448Elem::Gf448Elem(uint64_t least_sig_word) /* NOLINT(*-member-init) */ {
  361|  40.5k|   clear_mem(m_x);
  362|  40.5k|   m_x[0] = least_sig_word;
  363|  40.5k|}
_ZNK5Botan9Gf448Elem8to_bytesENSt3__14spanIhLm56EEE:
  365|      3|void Gf448Elem::to_bytes(std::span<uint8_t, BYTES_448> out) const {
  366|      3|   store_le(out, to_canonical(m_x));
  367|      3|}
_ZNK5Botan9Gf448Elem8to_bytesEv:
  369|      1|std::array<uint8_t, BYTES_448> Gf448Elem::to_bytes() const {
  370|      1|   std::array<uint8_t, BYTES_448> bytes{};
  371|      1|   to_bytes(bytes);
  372|      1|   return bytes;
  373|      1|}
_ZN5Botan9Gf448Elem12ct_cond_swapENS_2CT4MaskImEERS0_:
  375|    898|void Gf448Elem::ct_cond_swap(CT::Mask<uint64_t> mask, Gf448Elem& other) {
  376|  7.18k|   for(size_t i = 0; i < WORDS_448; ++i) {
  ------------------
  |  Branch (376:22): [True: 6.28k, False: 898]
  ------------------
  377|  6.28k|      mask.conditional_swap(m_x[i], other.m_x[i]);
  378|  6.28k|   }
  379|    898|}
_ZN5Botan9Gf448Elem14ct_cond_assignENS_2CT4MaskImEERKS0_:
  381|  10.0k|void Gf448Elem::ct_cond_assign(CT::Mask<uint64_t> mask, const Gf448Elem& other) {
  382|  10.0k|   mask.select_n(m_x.data(), other.m_x.data(), m_x.data(), WORDS_448);
  383|  10.0k|}
_ZNK5Botan9Gf448ElemplERKS0_:
  385|  7.50k|Gf448Elem Gf448Elem::operator+(const Gf448Elem& other) const {
  386|  7.50k|   Gf448Elem res(0);
  387|  7.50k|   gf_add(res.m_x, m_x, other.m_x);
  388|  7.50k|   return res;
  389|  7.50k|}
_ZNK5Botan9Gf448ElemmiERKS0_:
  391|  8.51k|Gf448Elem Gf448Elem::operator-(const Gf448Elem& other) const {
  392|  8.51k|   Gf448Elem res(0);
  393|  8.51k|   gf_sub(res.m_x, m_x, other.m_x);
  394|  8.51k|   return res;
  395|  8.51k|}
_ZNK5Botan9Gf448ElemngEv:
  397|  1.00k|Gf448Elem Gf448Elem::operator-() const {
  398|  1.00k|   Gf448Elem res(0);
  399|  1.00k|   gf_sub(res.m_x, res.m_x, m_x);
  400|  1.00k|   return res;
  401|  1.00k|}
_ZNK5Botan9Gf448ElemmlERKS0_:
  403|  15.0k|Gf448Elem Gf448Elem::operator*(const Gf448Elem& other) const {
  404|  15.0k|   Gf448Elem res(0);
  405|  15.0k|   gf_mul(res.m_x, m_x, other.m_x);
  406|  15.0k|   return res;
  407|  15.0k|}
_ZNK5Botan9Gf448ElemdvERKS0_:
  409|      5|Gf448Elem Gf448Elem::operator/(const Gf448Elem& other) const {
  410|      5|   Gf448Elem res(0);
  411|      5|   gf_inv(res.m_x, other.m_x);
  412|      5|   gf_mul(res.m_x, m_x, res.m_x);
  413|      5|   return res;
  414|      5|}
_ZNK5Botan9Gf448Elem6is_oddEv:
  428|      2|bool Gf448Elem::is_odd() const {
  429|      2|   const auto canonical_form = to_canonical(m_x);
  430|      2|   return (canonical_form[0] & 1) == 1;
  431|      2|}
_ZN5Botan7mul_a24ERKNS_9Gf448ElemE:
  439|  1.45k|Gf448Elem mul_a24(const Gf448Elem& a) {
  440|  1.45k|   Gf448Elem res(0);
  441|  1.45k|   gf_mul_a24(res.words(), a.words());
  442|  1.45k|   return res;
  443|  1.45k|}
_ZN5Botan6squareERKNS_9Gf448ElemE:
  445|  6.38k|Gf448Elem square(const Gf448Elem& elem) {
  446|  6.38k|   Gf448Elem res(0);
  447|  6.38k|   gf_square(res.words(), elem.words());
  448|  6.38k|   return res;
  449|  6.38k|}
curve448_gf.cpp:_ZN5Botan12_GLOBAL__N_112to_canonicalENSt3__14spanIKmLm7EEE:
  335|      5|std::array<uint64_t, WORDS_448> to_canonical(std::span<const uint64_t, WORDS_448> in) {
  336|      5|   const std::array<uint64_t, WORDS_448> p = {0xffffffffffffffff,
  337|      5|                                              0xffffffffffffffff,
  338|      5|                                              0xffffffffffffffff,
  339|      5|                                              0xfffffffeffffffff,
  340|      5|                                              0xffffffffffffffff,
  341|      5|                                              0xffffffffffffffff,
  342|      5|                                              0xffffffffffffffff};
  343|       |
  344|      5|   std::array<uint64_t, WORDS_448> in_minus_p;  // NOLINT(*-member-init)
  345|      5|   uint64_t borrow = 0;
  346|     40|   for(size_t i = 0; i < WORDS_448; ++i) {
  ------------------
  |  Branch (346:22): [True: 35, False: 5]
  ------------------
  347|     35|      in_minus_p[i] = word_sub(in[i], p[i], &borrow);
  348|     35|   }
  349|      5|   std::array<uint64_t, WORDS_448> out;  // NOLINT(*-member-init)
  350|      5|   CT::Mask<uint64_t>::expand(borrow).select_n(out.data(), in.data(), in_minus_p.data(), WORDS_448);
  351|      5|   return out;
  352|      5|}
curve448_gf.cpp:_ZN5Botan12_GLOBAL__N_16gf_addENSt3__14spanImLm7EEENS2_IKmLm7EEES5_:
  155|  7.50k|            std::span<const uint64_t, WORDS_448> b) {
  156|  7.50k|   std::array<uint64_t, WORDS_448 + 1> ws;  // NOLINT(*-member-init)
  157|       |
  158|  7.50k|   uint64_t carry = 0;
  159|  7.50k|   ws[0] = word_add(a[0], b[0], &carry);
  160|  7.50k|   ws[1] = word_add(a[1], b[1], &carry);
  161|  7.50k|   ws[2] = word_add(a[2], b[2], &carry);
  162|  7.50k|   ws[3] = word_add(a[3], b[3], &carry);
  163|  7.50k|   ws[4] = word_add(a[4], b[4], &carry);
  164|  7.50k|   ws[5] = word_add(a[5], b[5], &carry);
  165|  7.50k|   ws[6] = word_add(a[6], b[6], &carry);
  166|  7.50k|   ws[7] = carry;
  167|       |
  168|  7.50k|   reduce_after_add(out, ws);
  169|  7.50k|}
curve448_gf.cpp:_ZN5Botan12_GLOBAL__N_116reduce_after_addENSt3__14spanImLm7EEENS2_IKmLm8EEE:
   27|  32.6k|void reduce_after_add(std::span<uint64_t, WORDS_448> h_3, std::span<const uint64_t, 8> h_1) {
   28|  32.6k|   std::array<uint64_t, 8> h_2; /* NOLINT(*-member-init) */
   29|  32.6k|   uint64_t carry = 0;
   30|       |
   31|  32.6k|   constexpr uint64_t zero = 0;
   32|       |
   33|       |   // Line 27+ (of the paper's algorithm 1)
   34|  32.6k|   h_2[0] = word_add(h_1[0], h_1[7], &carry);
   35|  32.6k|   h_2[1] = word_add(h_1[1], zero, &carry);
   36|  32.6k|   h_2[2] = word_add(h_1[2], zero, &carry);
   37|       |
   38|       |   // Line 30
   39|  32.6k|   h_2[3] = word_add(h_1[3], h_1[7] << 32, &carry);
   40|       |
   41|       |   // Line 31+
   42|  32.6k|   h_2[4] = word_add(h_1[4], zero, &carry);
   43|  32.6k|   h_2[5] = word_add(h_1[5], zero, &carry);
   44|  32.6k|   h_2[6] = word_add(h_1[6], zero, &carry);
   45|       |
   46|  32.6k|   h_2[7] = carry;
   47|       |
   48|  32.6k|   carry = 0;
   49|  32.6k|   h_3[0] = word_add(h_2[0], h_2[7], &carry);
   50|  32.6k|   h_3[1] = word_add(h_2[1], zero, &carry);
   51|  32.6k|   h_3[2] = word_add(h_2[2], zero, &carry);
   52|       |   // Line 37
   53|  32.6k|   h_3[3] = h_2[3] + (h_2[7] << 32) + carry;
   54|       |
   55|       |   // Line 38
   56|  32.6k|   h_3[4] = h_2[4];
   57|  32.6k|   h_3[5] = h_2[5];
   58|  32.6k|   h_3[6] = h_2[6];
   59|  32.6k|}
curve448_gf.cpp:_ZN5Botan12_GLOBAL__N_16gf_subENSt3__14spanImLm7EEENS2_IKmLm7EEES5_:
  178|  9.52k|            std::span<const uint64_t, WORDS_448> b) {
  179|  9.52k|   std::array<uint64_t, WORDS_448> h_0;  // NOLINT(*-member-init)
  180|  9.52k|   std::array<uint64_t, WORDS_448> h_1;  // NOLINT(*-member-init)
  181|       |
  182|  9.52k|   uint64_t borrow = 0;
  183|  9.52k|   h_0[0] = word_sub(a[0], b[0], &borrow);
  184|  9.52k|   h_0[1] = word_sub(a[1], b[1], &borrow);
  185|  9.52k|   h_0[2] = word_sub(a[2], b[2], &borrow);
  186|  9.52k|   h_0[3] = word_sub(a[3], b[3], &borrow);
  187|  9.52k|   h_0[4] = word_sub(a[4], b[4], &borrow);
  188|  9.52k|   h_0[5] = word_sub(a[5], b[5], &borrow);
  189|  9.52k|   h_0[6] = word_sub(a[6], b[6], &borrow);
  190|  9.52k|   uint64_t delta = borrow;
  191|  9.52k|   uint64_t delta_p = delta << 32;
  192|  9.52k|   borrow = 0;
  193|       |
  194|  9.52k|   constexpr uint64_t zero = 0;
  195|       |
  196|  9.52k|   h_1[0] = word_sub(h_0[0], delta, &borrow);
  197|  9.52k|   h_1[1] = word_sub(h_0[1], zero, &borrow);
  198|  9.52k|   h_1[2] = word_sub(h_0[2], zero, &borrow);
  199|  9.52k|   h_1[3] = word_sub(h_0[3], delta_p, &borrow);
  200|  9.52k|   h_1[4] = word_sub(h_0[4], zero, &borrow);
  201|  9.52k|   h_1[5] = word_sub(h_0[5], zero, &borrow);
  202|  9.52k|   h_1[6] = word_sub(h_0[6], zero, &borrow);
  203|       |
  204|  9.52k|   delta = borrow;
  205|  9.52k|   delta_p = delta << 32;
  206|  9.52k|   borrow = 0;
  207|       |
  208|  9.52k|   out[0] = word_sub(h_1[0], delta, &borrow);
  209|  9.52k|   out[1] = word_sub(h_1[1], zero, &borrow);
  210|  9.52k|   out[2] = word_sub(h_1[2], zero, &borrow);
  211|  9.52k|   out[3] = word_sub(h_1[3], delta_p, &borrow);
  212|  9.52k|   out[4] = h_1[4];
  213|  9.52k|   out[5] = h_1[5];
  214|  9.52k|   out[6] = h_1[6];
  215|  9.52k|}
curve448_gf.cpp:_ZN5Botan12_GLOBAL__N_16gf_mulENSt3__14spanImLm7EEENS2_IKmLm7EEES5_:
  141|  15.0k|            std::span<const uint64_t, WORDS_448> b) {
  142|  15.0k|   std::array<uint64_t, 14> ws;  // NOLINT(*-member-init)
  143|  15.0k|   comba_mul<7>(ws.data(), a.data(), b.data());
  144|  15.0k|   reduce_after_mul(out, ws);
  145|  15.0k|}
curve448_gf.cpp:_ZN5Botan12_GLOBAL__N_116reduce_after_mulENSt3__14spanImLm7EEENS2_IKmLm14EEE:
   66|  23.6k|void reduce_after_mul(std::span<uint64_t, WORDS_448> out, std::span<const uint64_t, 14> in) {
   67|  23.6k|   std::array<uint64_t, 8> r;    // NOLINT(*-member-init)
   68|  23.6k|   std::array<uint64_t, 8> s;    // NOLINT(*-member-init)
   69|  23.6k|   std::array<uint64_t, 8> t_0;  // NOLINT(*-member-init)
   70|  23.6k|   std::array<uint64_t, 8> h_1;  // NOLINT(*-member-init)
   71|       |
   72|  23.6k|   uint64_t carry = 0;
   73|       |
   74|       |   // Line 4 (of the paper's algorithm 1)
   75|  23.6k|   r[0] = word_add(in[0], in[7], &carry);
   76|       |
   77|       |   // Line 5-7
   78|  23.6k|   r[1] = word_add(in[1], in[1 + 7], &carry);
   79|  23.6k|   r[2] = word_add(in[2], in[2 + 7], &carry);
   80|  23.6k|   r[3] = word_add(in[3], in[3 + 7], &carry);
   81|  23.6k|   r[4] = word_add(in[4], in[4 + 7], &carry);
   82|  23.6k|   r[5] = word_add(in[5], in[5 + 7], &carry);
   83|  23.6k|   r[6] = word_add(in[6], in[6 + 7], &carry);
   84|  23.6k|   r[7] = carry;
   85|  23.6k|   s[0] = r[0];
   86|  23.6k|   s[1] = r[1];
   87|  23.6k|   s[2] = r[2];
   88|       |   // Line 10
   89|  23.6k|   carry = 0;
   90|  23.6k|   s[3] = word_add(r[3], in[10] & 0xFFFFFFFF00000000, &carry);
   91|       |   // Line 11-13
   92|  23.6k|   s[4] = word_add(r[4], in[4 + 7], &carry);
   93|  23.6k|   s[5] = word_add(r[5], in[5 + 7], &carry);
   94|  23.6k|   s[6] = word_add(r[6], in[6 + 7], &carry);
   95|  23.6k|   s[7] = r[7] + carry;
   96|       |
   97|       |   // Line 15-17
   98|  23.6k|   t_0[0] = (in[0 + 11] << 32) | (in[0 + 10] >> 32);
   99|  23.6k|   t_0[1] = (in[1 + 11] << 32) | (in[1 + 10] >> 32);
  100|  23.6k|   t_0[2] = (in[2 + 11] << 32) | (in[2 + 10] >> 32);
  101|       |   // Line 18
  102|  23.6k|   t_0[3] = (in[7] << 32) | (in[13] >> 32);
  103|       |   // Line 19-21
  104|  23.6k|   t_0[4] = (in[4 + 4] << 32) | (in[4 + 3] >> 32);
  105|  23.6k|   t_0[5] = (in[5 + 4] << 32) | (in[5 + 3] >> 32);
  106|  23.6k|   t_0[6] = (in[6 + 4] << 32) | (in[6 + 3] >> 32);
  107|  23.6k|   carry = 0;
  108|       |   // Line 23-25
  109|  23.6k|   h_1[0] = word_add(s[0], t_0[0], &carry);
  110|  23.6k|   h_1[1] = word_add(s[1], t_0[1], &carry);
  111|  23.6k|   h_1[2] = word_add(s[2], t_0[2], &carry);
  112|  23.6k|   h_1[3] = word_add(s[3], t_0[3], &carry);
  113|  23.6k|   h_1[4] = word_add(s[4], t_0[4], &carry);
  114|  23.6k|   h_1[5] = word_add(s[5], t_0[5], &carry);
  115|  23.6k|   h_1[6] = word_add(s[6], t_0[6], &carry);
  116|  23.6k|   h_1[7] = s[7] + carry;
  117|       |
  118|  23.6k|   reduce_after_add(out, h_1);
  119|  23.6k|}
curve448_gf.cpp:_ZN5Botan12_GLOBAL__N_16gf_invENSt3__14spanImLm7EEENS2_IKmLm7EEE:
  316|      5|void gf_inv(std::span<uint64_t, WORDS_448> out, std::span<const uint64_t, WORDS_448> a) {
  317|      5|   std::array<uint64_t, WORDS_448> x222;  // NOLINT(*-member-init)
  318|      5|   std::array<uint64_t, WORDS_448> x223;  // NOLINT(*-member-init)
  319|      5|   gf_pow_2_222m1(x222, x223, a);
  320|       |
  321|       |   // (x223 << 223 + x222) << 2 + 1
  322|      5|   std::array<uint64_t, WORDS_448> t;  // NOLINT(*-member-init)
  323|      5|   gf_sqr_n(t, x223, 223);
  324|      5|   gf_mul(t, t, x222);
  325|      5|   gf_sqr_n(t, t, 2);
  326|      5|   gf_mul(out, t, a);
  327|      5|}
curve448_gf.cpp:_ZN5Botan12_GLOBAL__N_110gf_mul_a24ENSt3__14spanImLm7EEENS2_IKmLm7EEE:
  124|  1.45k|void gf_mul_a24(std::span<uint64_t, WORDS_448> out, std::span<const uint64_t, WORDS_448> a) {
  125|  1.45k|   constexpr uint64_t A24 = 39081;
  126|  1.45k|   std::array<uint64_t, 8> ws;  // NOLINT(*-member-init)
  127|  1.45k|   uint64_t carry = 0;
  128|  1.45k|   ws[0] = word_madd2(a[0], A24, &carry);
  129|  1.45k|   ws[1] = word_madd2(a[1], A24, &carry);
  130|  1.45k|   ws[2] = word_madd2(a[2], A24, &carry);
  131|  1.45k|   ws[3] = word_madd2(a[3], A24, &carry);
  132|  1.45k|   ws[4] = word_madd2(a[4], A24, &carry);
  133|  1.45k|   ws[5] = word_madd2(a[5], A24, &carry);
  134|  1.45k|   ws[6] = word_madd2(a[6], A24, &carry);
  135|  1.45k|   ws[7] = carry;
  136|  1.45k|   reduce_after_add(out, ws);
  137|  1.45k|}
curve448_gf.cpp:_ZN5Botan12_GLOBAL__N_19gf_squareENSt3__14spanImLm7EEENS2_IKmLm7EEE:
  147|  8.61k|void gf_square(std::span<uint64_t, WORDS_448> out, std::span<const uint64_t, WORDS_448> a) {
  148|  8.61k|   std::array<uint64_t, 14> ws;  // NOLINT(*-member-init)
  149|  8.61k|   comba_sqr<7>(ws.data(), a.data());
  150|  8.61k|   reduce_after_mul(out, ws);
  151|  8.61k|}
curve448_gf.cpp:_ZN5Botan12_GLOBAL__N_114gf_pow_2_222m1ENSt3__14spanImLm7EEES3_NS2_IKmLm7EEE:
  245|      5|                    std::span<const uint64_t, WORDS_448> a) {
  246|      5|   std::array<uint64_t, WORDS_448> t;  // NOLINT(*-member-init)
  247|       |
  248|       |   // _10 = a^2
  249|      5|   std::array<uint64_t, WORDS_448> a2;  // NOLINT(*-member-init)
  250|      5|   gf_square(a2, a);
  251|       |
  252|       |   // _11 = a^3
  253|      5|   std::array<uint64_t, WORDS_448> a3;  // NOLINT(*-member-init)
  254|      5|   gf_mul(a3, a, a2);
  255|       |
  256|       |   // _111 = a^7
  257|      5|   std::array<uint64_t, WORDS_448> a7;  // NOLINT(*-member-init)
  258|      5|   gf_square(t, a3);
  259|      5|   gf_mul(a7, a, t);
  260|       |
  261|       |   // _111111 = a^63
  262|      5|   std::array<uint64_t, WORDS_448> a63;  // NOLINT(*-member-init)
  263|      5|   gf_sqr_n(t, a7, 3);
  264|      5|   gf_mul(a63, a7, t);
  265|       |
  266|       |   // x12 = a^(2^12 - 1)
  267|      5|   std::array<uint64_t, WORDS_448> x12;  // NOLINT(*-member-init)
  268|      5|   gf_sqr_n(t, a63, 6);
  269|      5|   gf_mul(x12, a63, t);
  270|       |
  271|       |   // x24 = a^(2^24 - 1)
  272|      5|   std::array<uint64_t, WORDS_448> x24;  // NOLINT(*-member-init)
  273|      5|   gf_sqr_n(t, x12, 12);
  274|      5|   gf_mul(x24, x12, t);
  275|       |
  276|       |   // i34 = x24 << 6 = a^((2^24 - 1) * 2^6)
  277|      5|   std::array<uint64_t, WORDS_448> i34;  // NOLINT(*-member-init)
  278|      5|   gf_sqr_n(i34, x24, 6);
  279|       |
  280|       |   // x30 = a^(2^30 - 1)
  281|      5|   std::array<uint64_t, WORDS_448> x30;  // NOLINT(*-member-init)
  282|      5|   gf_mul(x30, a63, i34);
  283|       |
  284|       |   // x48 = a^(2^48 - 1)
  285|      5|   std::array<uint64_t, WORDS_448> x48;  // NOLINT(*-member-init)
  286|      5|   gf_sqr_n(t, i34, 18);
  287|      5|   gf_mul(x48, x24, t);
  288|       |
  289|       |   // x96 = a^(2^96 - 1)
  290|      5|   std::array<uint64_t, WORDS_448> x96;  // NOLINT(*-member-init)
  291|      5|   gf_sqr_n(t, x48, 48);
  292|      5|   gf_mul(x96, x48, t);
  293|       |
  294|       |   // x192 = a^(2^192 - 1)
  295|      5|   std::array<uint64_t, WORDS_448> x192;  // NOLINT(*-member-init)
  296|      5|   gf_sqr_n(t, x96, 96);
  297|      5|   gf_mul(x192, x96, t);
  298|       |
  299|       |   // x222 = a^(2^222 - 1)
  300|      5|   gf_sqr_n(t, x192, 30);
  301|      5|   gf_mul(x222, x30, t);
  302|       |
  303|       |   // x223 = a^(2^223 - 1)
  304|      5|   gf_square(t, x222);
  305|      5|   gf_mul(x223, a, t);
  306|      5|}
curve448_gf.cpp:_ZN5Botan12_GLOBAL__N_18gf_sqr_nENSt3__14spanImLm7EEENS2_IKmLm7EEEm:
  218|     50|void gf_sqr_n(std::span<uint64_t, WORDS_448> out, std::span<const uint64_t, WORDS_448> a, size_t n) {
  219|     50|   gf_square(out, a);
  220|  2.22k|   for(size_t i = 1; i < n; ++i) {
  ------------------
  |  Branch (220:22): [True: 2.17k, False: 50]
  ------------------
  221|  2.17k|      gf_square(out, out);
  222|  2.17k|   }
  223|     50|}

_ZN5Botan9Scalar448C2ENSt3__14spanIKhLm18446744073709551615EEE:
  148|      2|Scalar448::Scalar448(std::span<const uint8_t> in_bytes) {
  149|      2|   BOTAN_ARG_CHECK(in_bytes.size() <= 114, "Input must be at most 114 bytes long");
  ------------------
  |  |   35|      2|   do {                                                          \
  |  |   36|      2|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|      2|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 2]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|      2|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 2]
  |  |  ------------------
  ------------------
  150|      2|   std::array<uint8_t, 114> max_bytes = {0};
  151|      2|   copy_mem(std::span(max_bytes).first(in_bytes.size()), in_bytes);
  152|       |
  153|      2|   const auto x_words = bytes_to_words(std::span<const uint8_t, 114>(max_bytes));
  154|      2|   m_scalar_words = ct_reduce_mod_L(x_words);
  155|      2|}
_ZNK5Botan9Scalar44810get_windowEmm:
  163|    224|uint32_t Scalar448::get_window(size_t starting_pos, size_t width) const {
  164|    224|   BOTAN_ARG_CHECK(width <= 32, "Window too wide");
  ------------------
  |  |   35|    224|   do {                                                          \
  |  |   36|    224|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    224|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 224]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    224|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 224]
  |  |  ------------------
  ------------------
  165|    224|   constexpr size_t word_sz = sizeof(word) * 8;
  166|       |
  167|       |   // Bits at or beyond position 446 are zero
  168|    224|   if(starting_pos >= 446) {
  ------------------
  |  Branch (168:7): [True: 0, False: 224]
  ------------------
  169|      0|      return 0;
  170|      0|   }
  171|       |
  172|       |   // Clamp the effective width so we don't read past bit 445
  173|    224|   const size_t effective_bits = std::min(width, size_t(446) - starting_pos);
  174|       |
  175|    224|   const size_t word_idx = starting_pos / word_sz;
  176|    224|   const size_t bit_idx = starting_pos % word_sz;
  177|       |
  178|    224|   const uint64_t mask = (effective_bits >= 64) ? ~uint64_t(0) : (uint64_t(1) << effective_bits) - 1;
  ------------------
  |  Branch (178:26): [True: 0, False: 224]
  ------------------
  179|       |
  180|    224|   uint64_t val = m_scalar_words[word_idx] >> bit_idx;
  181|    224|   if(bit_idx + effective_bits > word_sz && word_idx + 1 < WORDS) {
  ------------------
  |  Branch (181:7): [True: 0, False: 224]
  |  Branch (181:45): [True: 0, False: 0]
  ------------------
  182|      0|      val |= m_scalar_words[word_idx + 1] << (word_sz - bit_idx);
  183|      0|   }
  184|       |
  185|    224|   return static_cast<uint32_t>(val & mask);
  186|    224|}
curve448_scalar.cpp:_ZN5Botan12_GLOBAL__N_115ct_reduce_mod_LENSt3__15arrayImLm15EEE:
  113|      2|std::array<word, Scalar448::WORDS> ct_reduce_mod_L(const std::array<word, WORDS_REDUCE_SZ> x) {
  114|      2|   const auto [q_0, r_0] = div_mod_2_446(std::span(x));
  115|       |
  116|      2|   auto r = r_0;
  117|       |   // Three iterations are required. This is tested using the biggest possible input.
  118|       |   // i = 0:
  119|      2|   const auto q_0_c = mul_c(std::span(q_0));
  120|      2|   const auto [q_1, r_1] = div_mod_2_446(std::span(q_0_c));
  121|      2|   r = add(r, r_1);
  122|       |
  123|       |   // i = 1
  124|      2|   const auto q_1_c = mul_c(std::span(q_1));
  125|      2|   const auto [q_2, r_2] = div_mod_2_446(std::span(q_1_c));
  126|      2|   r = add(r, r_2);
  127|       |
  128|       |   // i = 2
  129|      2|   const auto q_2_c = mul_c(std::span(q_2));
  130|      2|   const auto [q_3, r_3] = div_mod_2_446(std::span(q_2_c));
  131|      2|   r = add(r, r_3);
  132|       |
  133|      2|   BOTAN_ASSERT_NOMSG(CT::all_zeros(q_3.data(), q_3.size()).as_bool());
  ------------------
  |  |   77|      2|   do {                                                                     \
  |  |   78|      2|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|      2|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 2]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|      2|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 2]
  |  |  ------------------
  ------------------
  134|       |
  135|       |   // Note that r is maximal 4*(2^446 - 1) < 2^448. Therefore, the addition did not overflow.
  136|       |   // Also, this means that subtracting L 4 times (at most) will bring r into the range [0, L), since
  137|       |   // 4*(2^446 - 1) - 4*(2^446 - c) = 4*(c - 1) < L.
  138|     10|   for(size_t i = 0; i < 4; ++i) {
  ------------------
  |  Branch (138:22): [True: 8, False: 2]
  ------------------
  139|      8|      ct_subtract_L_if_bigger(r);
  140|      8|   }
  141|       |
  142|      2|   return r;
  143|      2|}
curve448_scalar.cpp:_ZN5Botan12_GLOBAL__N_113div_mod_2_446ILm15EEEDaNSt3__14spanIKmXT_EEE:
   21|      2|auto div_mod_2_446(std::span<const word, S> x) {
   22|       |   if constexpr(S < Scalar448::WORDS) {
   23|       |      std::array<word, Scalar448::WORDS> r = {0};
   24|       |      copy_mem(std::span(r).template first<S>(), x);
   25|       |      return std::make_pair(std::array<word, 1>({0}), r);
   26|      2|   } else {
   27|      2|      std::array<word, Scalar448::WORDS> r;  // NOLINT(*-member-init)
   28|      2|      copy_mem(r, std::span(x).template first<Scalar448::WORDS>());
   29|       |      // Clear the two most significant bits
   30|      2|      r[Scalar448::WORDS - 1] &= ~(word(0b11) << (sizeof(word) * 8 - 2));
   31|       |
   32|      2|      std::array<word, S - Scalar448::WORDS + 1> q;  // NOLINT(*-member-init)
   33|      2|      bigint_shr2(q.data(), q.size(), x.data(), x.size(), 446);
   34|       |
   35|      2|      return std::make_pair(q, r);
   36|      2|   }
   37|      2|}
curve448_scalar.cpp:_ZN5Botan12_GLOBAL__N_15mul_cILm9EEENSt3__15arrayImXplT_L_ZNS0_7WORDS_CEEEEENS2_4spanIKmXT_EEE:
   58|      2|std::array<word, S + WORDS_C> mul_c(std::span<const word, S> x) {
   59|      2|   std::array<word, S + WORDS_C> res;  // NOLINT(*-member-init)
   60|      2|   std::array<word, S + WORDS_C> ws;   // NOLINT(*-member-init)
   61|      2|   constexpr std::array<word, WORDS_C> c = c_words();
   62|      2|   bigint_mul(res.data(), res.size(), x.data(), x.size(), x.size(), c.data(), c.size(), c.size(), ws.data(), ws.size());
   63|       |
   64|      2|   return res;
   65|      2|}
curve448_scalar.cpp:_ZN5Botan12_GLOBAL__N_113div_mod_2_446ILm13EEEDaNSt3__14spanIKmXT_EEE:
   21|      2|auto div_mod_2_446(std::span<const word, S> x) {
   22|       |   if constexpr(S < Scalar448::WORDS) {
   23|       |      std::array<word, Scalar448::WORDS> r = {0};
   24|       |      copy_mem(std::span(r).template first<S>(), x);
   25|       |      return std::make_pair(std::array<word, 1>({0}), r);
   26|      2|   } else {
   27|      2|      std::array<word, Scalar448::WORDS> r;  // NOLINT(*-member-init)
   28|      2|      copy_mem(r, std::span(x).template first<Scalar448::WORDS>());
   29|       |      // Clear the two most significant bits
   30|      2|      r[Scalar448::WORDS - 1] &= ~(word(0b11) << (sizeof(word) * 8 - 2));
   31|       |
   32|      2|      std::array<word, S - Scalar448::WORDS + 1> q;  // NOLINT(*-member-init)
   33|      2|      bigint_shr2(q.data(), q.size(), x.data(), x.size(), 446);
   34|       |
   35|      2|      return std::make_pair(q, r);
   36|      2|   }
   37|      2|}
curve448_scalar.cpp:_ZN5Botan12_GLOBAL__N_15mul_cILm7EEENSt3__15arrayImXplT_L_ZNS0_7WORDS_CEEEEENS2_4spanIKmXT_EEE:
   58|      2|std::array<word, S + WORDS_C> mul_c(std::span<const word, S> x) {
   59|      2|   std::array<word, S + WORDS_C> res;  // NOLINT(*-member-init)
   60|      2|   std::array<word, S + WORDS_C> ws;   // NOLINT(*-member-init)
   61|      2|   constexpr std::array<word, WORDS_C> c = c_words();
   62|      2|   bigint_mul(res.data(), res.size(), x.data(), x.size(), x.size(), c.data(), c.size(), c.size(), ws.data(), ws.size());
   63|       |
   64|      2|   return res;
   65|      2|}
curve448_scalar.cpp:_ZN5Botan12_GLOBAL__N_113div_mod_2_446ILm11EEEDaNSt3__14spanIKmXT_EEE:
   21|      2|auto div_mod_2_446(std::span<const word, S> x) {
   22|       |   if constexpr(S < Scalar448::WORDS) {
   23|       |      std::array<word, Scalar448::WORDS> r = {0};
   24|       |      copy_mem(std::span(r).template first<S>(), x);
   25|       |      return std::make_pair(std::array<word, 1>({0}), r);
   26|      2|   } else {
   27|      2|      std::array<word, Scalar448::WORDS> r;  // NOLINT(*-member-init)
   28|      2|      copy_mem(r, std::span(x).template first<Scalar448::WORDS>());
   29|       |      // Clear the two most significant bits
   30|      2|      r[Scalar448::WORDS - 1] &= ~(word(0b11) << (sizeof(word) * 8 - 2));
   31|       |
   32|      2|      std::array<word, S - Scalar448::WORDS + 1> q;  // NOLINT(*-member-init)
   33|      2|      bigint_shr2(q.data(), q.size(), x.data(), x.size(), 446);
   34|       |
   35|      2|      return std::make_pair(q, r);
   36|      2|   }
   37|      2|}
curve448_scalar.cpp:_ZN5Botan12_GLOBAL__N_15mul_cILm5EEENSt3__15arrayImXplT_L_ZNS0_7WORDS_CEEEEENS2_4spanIKmXT_EEE:
   58|      2|std::array<word, S + WORDS_C> mul_c(std::span<const word, S> x) {
   59|      2|   std::array<word, S + WORDS_C> res;  // NOLINT(*-member-init)
   60|      2|   std::array<word, S + WORDS_C> ws;   // NOLINT(*-member-init)
   61|      2|   constexpr std::array<word, WORDS_C> c = c_words();
   62|      2|   bigint_mul(res.data(), res.size(), x.data(), x.size(), x.size(), c.data(), c.size(), c.size(), ws.data(), ws.size());
   63|       |
   64|      2|   return res;
   65|      2|}
curve448_scalar.cpp:_ZN5Botan12_GLOBAL__N_113div_mod_2_446ILm9EEEDaNSt3__14spanIKmXT_EEE:
   21|      2|auto div_mod_2_446(std::span<const word, S> x) {
   22|       |   if constexpr(S < Scalar448::WORDS) {
   23|       |      std::array<word, Scalar448::WORDS> r = {0};
   24|       |      copy_mem(std::span(r).template first<S>(), x);
   25|       |      return std::make_pair(std::array<word, 1>({0}), r);
   26|      2|   } else {
   27|      2|      std::array<word, Scalar448::WORDS> r;  // NOLINT(*-member-init)
   28|      2|      copy_mem(r, std::span(x).template first<Scalar448::WORDS>());
   29|       |      // Clear the two most significant bits
   30|      2|      r[Scalar448::WORDS - 1] &= ~(word(0b11) << (sizeof(word) * 8 - 2));
   31|       |
   32|      2|      std::array<word, S - Scalar448::WORDS + 1> q;  // NOLINT(*-member-init)
   33|      2|      bigint_shr2(q.data(), q.size(), x.data(), x.size(), 446);
   34|       |
   35|      2|      return std::make_pair(q, r);
   36|      2|   }
   37|      2|}
curve448_scalar.cpp:_ZN5Botan12_GLOBAL__N_13addENSt3__14spanIKmLm7EEES4_:
   71|      6|                                       std::span<const word, Scalar448::WORDS> y) {
   72|      6|   std::array<word, Scalar448::WORDS> res;  // NOLINT(*-member-init)
   73|      6|   copy_mem(res, x);
   74|      6|   const word carry = bigint_add2(res.data(), res.size(), y.data(), y.size());
   75|      6|   CT::unpoison(carry);
   76|      6|   BOTAN_ASSERT(carry == 0, "Result fits in output");
  ------------------
  |  |   64|      6|   do {                                                                                 \
  |  |   65|      6|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|      6|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 6]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|      6|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 6]
  |  |  ------------------
  ------------------
   77|      6|   return res;
   78|      6|}
curve448_scalar.cpp:_ZN5Botan12_GLOBAL__N_123ct_subtract_L_if_biggerENSt3__14spanImLm7EEE:
   85|      8|CT::Choice ct_subtract_L_if_bigger(std::span<word, Scalar448::WORDS> x) {
   86|      8|   std::array<word, Scalar448::WORDS> tmp;  // NOLINT(*-member-init)
   87|      8|   copy_mem(tmp, x);
   88|      8|   constexpr auto big_l = big_l_words();
   89|       |
   90|      8|   const word borrow = bigint_sub2(tmp.data(), tmp.size(), big_l.data(), big_l.size());
   91|      8|   const auto smaller_than_L = CT::Mask<word>::expand(borrow);
   92|      8|   smaller_than_L.select_n(x.data(), x.data(), tmp.data(), Scalar448::WORDS);
   93|       |
   94|      8|   return !smaller_than_L.as_choice();
   95|      8|}
curve448_scalar.cpp:_ZN5Botan12_GLOBAL__N_114bytes_to_wordsILm114EEENSt3__15arrayImXclL_ZNS_14words_for_bitsEmEmlT_Li8EEEEENS2_4spanIKhXT_EEE:
   98|      2|std::array<word, words_for_bits(S * 8)> bytes_to_words(std::span<const uint8_t, S> x) {
   99|      2|   constexpr size_t words = words_for_bits(S * 8);
  100|      2|   std::array<uint8_t, words * sizeof(word)> x_word_bytes{};
  101|      2|   copy_mem(std::span(x_word_bytes).template first<S>(), x);
  102|      2|   return load_le<std::array<word, words>>(x_word_bytes);
  103|      2|}

_ZN5Botan16Ed448_PrivateKeyC1ERKNS_19AlgorithmIdentifierENSt3__14spanIKhLm18446744073709551615EEE:
   91|      8|Ed448_PrivateKey::Ed448_PrivateKey(const AlgorithmIdentifier& alg_id, std::span<const uint8_t> key_bits) {
   92|       |   // RFC 8410 Section 3: "the parameters MUST be absent".
   93|      8|   if(!alg_id.parameters_are_empty()) {
  ------------------
  |  Branch (93:7): [True: 1, False: 7]
  ------------------
   94|      1|      throw Decoding_Error("Unexpected parameters for Ed448 private key");
   95|      1|   }
   96|       |
   97|      7|   secure_vector<uint8_t> bits;
   98|      7|   BER_Decoder(key_bits, BER_Decoder::Limits::DER()).decode(bits, ASN1_Type::OctetString).verify_end();
   99|       |
  100|      7|   if(bits.size() != ED448_LEN) {
  ------------------
  |  Branch (100:7): [True: 2, False: 5]
  ------------------
  101|      2|      throw Decoding_Error("Invalid size for Ed448 private key");
  102|      2|   }
  103|      5|   auto pub = create_pk_from_sk(std::span(bits).first<ED448_LEN>());
  104|      5|   m_public = std::make_shared<const Ed448_PublicKey_Data>(pub);
  105|      5|   m_private = std::make_shared<const Ed448_PrivateKey_Data>(std::move(bits));
  106|      5|}
_ZN5Botan20Ed448_PublicKey_DataC2ENSt3__15arrayIhLm57EEE:
   25|      2|      explicit Ed448_PublicKey_Data(std::array<uint8_t, ED448_LEN> key) : m_key(key) {}
_ZN5Botan21Ed448_PrivateKey_DataC2ENSt3__16vectorIhNS_16secure_allocatorIhEEEE:
   35|      2|      explicit Ed448_PrivateKey_Data(secure_vector<uint8_t> key) : m_key(std::move(key)) {}

_ZN5Botan10Ed448Point10base_pointEv:
  127|      1|Ed448Point Ed448Point::base_point() {
  128|      1|   constexpr std::array<const uint64_t, WORDS_448> x = {0x2626a82bc70cc05e,
  129|      1|                                                        0x433b80e18b00938e,
  130|      1|                                                        0x12ae1af72ab66511,
  131|      1|                                                        0xea6de324a3d3a464,
  132|      1|                                                        0x9e146570470f1767,
  133|      1|                                                        0x221d15a622bf36da,
  134|      1|                                                        0x4f1970c66bed0ded};
  135|      1|   constexpr std::array<const uint64_t, WORDS_448> y = {0x9808795bf230fa14,
  136|      1|                                                        0xfdbd132c4ed7c8ad,
  137|      1|                                                        0x3ad3ff1ce67c39c4,
  138|      1|                                                        0x87789c1e05a0c2d7,
  139|      1|                                                        0x4bea73736ca39840,
  140|      1|                                                        0x8876203756c9c762,
  141|      1|                                                        0x693f46716eb6bc24};
  142|      1|   return Ed448Point(Gf448Elem(x), Gf448Elem(y));
  143|      1|}
_ZNK5Botan10Ed448Point6encodeEv:
  145|      2|std::array<uint8_t, ED448_LEN> Ed448Point::encode() const {
  146|      2|   std::array<uint8_t, ED448_LEN> res_buf = {0};
  147|       |
  148|       |   // RFC 8032 5.2.2
  149|       |   //    All values are coded as octet strings, and integers are coded using
  150|       |   //    little-endian convention. [...]
  151|       |   //    First, encode the y-coordinate as a little-endian string of 57 octets.
  152|       |   //    The final octet is always zero.
  153|      2|   y().to_bytes(std::span(res_buf).first<56>());
  154|       |
  155|       |   //    To form the encoding of the point, copy the least significant bit of
  156|       |   //    the x-coordinate to the most significant bit of the final octet.
  157|      2|   res_buf.back() = (static_cast<uint8_t>(x().is_odd()) << 7);
  158|       |
  159|      2|   return res_buf;
  160|      2|}
_ZNK5Botan10Ed448PointplERKS0_:
  162|  1.00k|Ed448Point Ed448Point::operator+(const Ed448Point& other) const {
  163|       |   // RFC 8032 5.2.4. - Point Addition (Add)
  164|  1.00k|   const Gf448Elem A = m_z * other.m_z;
  165|  1.00k|   const Gf448Elem B = square(A);
  166|  1.00k|   const Gf448Elem C = m_x * other.m_x;
  167|  1.00k|   const Gf448Elem D = m_y * other.m_y;
  168|  1.00k|   const Gf448Elem E = -mul_a24(C * D);
  169|  1.00k|   const Gf448Elem F = B - E;
  170|  1.00k|   const Gf448Elem G = B + E;
  171|  1.00k|   const Gf448Elem H = (m_x + m_y) * (other.m_x + other.m_y);
  172|  1.00k|   const Gf448Elem X3 = A * F * (H - C - D);
  173|  1.00k|   const Gf448Elem Y3 = A * G * (D - C);
  174|  1.00k|   const Gf448Elem Z3 = F * G;
  175|       |
  176|  1.00k|   return Ed448Point(X3, Y3, Z3);
  177|  1.00k|}
_ZNK5Botan10Ed448Point12double_pointEv:
  179|    896|Ed448Point Ed448Point::double_point() const {
  180|       |   // RFC 8032 5.2.4. - Point Addition (Double)
  181|    896|   const Gf448Elem B = square(m_x + m_y);
  182|    896|   const Gf448Elem C = square(m_x);
  183|    896|   const Gf448Elem D = square(m_y);
  184|    896|   const Gf448Elem E = C + D;
  185|    896|   const Gf448Elem H = square(m_z);
  186|    896|   const Gf448Elem J = E - (H + H);
  187|    896|   const Gf448Elem X3 = (B - E) * J;
  188|    896|   const Gf448Elem Y3 = E * (C - D);
  189|    896|   const Gf448Elem Z3 = E * J;
  190|       |
  191|    896|   return Ed448Point(X3, Y3, Z3);
  192|    896|}
_ZN5Botan10Ed448Point14base_point_mulERKNS_9Scalar448E:
  247|      2|Ed448Point Ed448Point::base_point_mul(const Scalar448& scalar) {
  248|       |   /*
  249|       |   Fixed base point multiplication
  250|       |
  251|       |   Same idea as base point multiply used in pcurves
  252|       |   */
  253|      2|   constexpr size_t W = 4;
  254|      2|   constexpr size_t WindowElements = (1 << W) - 1;         // 15
  255|      2|   constexpr size_t Windows = (448 + W - 1) / W;           // 112
  256|      2|   constexpr size_t TableSize = Windows * WindowElements;  // 1680
  257|       |
  258|      2|   static const auto table = []() {
  259|      2|      std::vector<Ed448Point> tbl(TableSize, Ed448Point::identity());
  260|       |
  261|      2|      auto accum = Ed448Point::base_point();
  262|       |
  263|      2|      for(size_t i = 0; i < TableSize; i += WindowElements) {
  264|      2|         tbl[i] = accum;
  265|       |
  266|      2|         for(size_t j = 1; j < WindowElements; ++j) {
  267|      2|            if(j % 2 == 1) {
  268|      2|               tbl[i + j] = tbl[i + j / 2].double_point();
  269|      2|            } else {
  270|      2|               tbl[i + j] = tbl[i + j - 1] + tbl[i];
  271|      2|            }
  272|      2|         }
  273|       |
  274|      2|         accum = tbl[i + (WindowElements / 2)].double_point();
  275|      2|      }
  276|       |
  277|      2|      return tbl;
  278|      2|   }();
  279|       |
  280|      2|   auto res = Ed448Point::identity();
  281|       |
  282|    226|   for(size_t i = 0; i != Windows; ++i) {
  ------------------
  |  Branch (282:22): [True: 224, False: 2]
  ------------------
  283|    224|      const uint8_t w = static_cast<uint8_t>(scalar.get_window(i * W, W));
  284|       |
  285|       |      // Constant-time table lookup from this window's 15-entry subtable
  286|    224|      auto selected = Ed448Point::identity();
  287|  3.58k|      for(size_t j = 0; j != WindowElements; ++j) {
  ------------------
  |  Branch (287:25): [True: 3.36k, False: 224]
  ------------------
  288|  3.36k|         const auto assign = CT::Mask<uint64_t>::is_equal(j + 1, w);
  289|  3.36k|         selected.ct_conditional_assign(assign, table[i * WindowElements + j]);
  290|  3.36k|      }
  291|       |
  292|    224|      res = res + selected;
  293|    224|   }
  294|       |
  295|      2|   return res;
  296|      2|}
_ZN5Botan10Ed448Point21ct_conditional_assignENS_2CT4MaskImEERKS0_:
  364|  3.36k|void Ed448Point::ct_conditional_assign(CT::Mask<uint64_t> mask, const Ed448Point& other) {
  365|  3.36k|   m_x.ct_cond_assign(mask, other.m_x);
  366|  3.36k|   m_y.ct_cond_assign(mask, other.m_y);
  367|  3.36k|   m_z.ct_cond_assign(mask, other.m_z);
  368|  3.36k|}
_ZN5Botan17create_pk_from_skENSt3__14spanIKhLm57EEE:
  374|      2|std::array<uint8_t, ED448_LEN> create_pk_from_sk(std::span<const uint8_t, ED448_LEN> sk) {
  375|       |   // 5.2.5. Key Generation
  376|       |   // The 57-byte public key is generated by the following steps:
  377|      2|   auto shake_xof = XOF::create_or_throw("SHAKE-256");
  378|      2|   shake_xof->update(sk);
  379|       |
  380|      2|   const Scalar448 s = scalar_from_xof(*shake_xof);
  381|       |   // 3. Interpret the buffer as the little-endian integer, forming a
  382|       |   //    secret scalar s. Perform a known-base-point scalar
  383|       |   //    multiplication [s]B.
  384|      2|   return Ed448Point::base_point_mul(s).encode();
  385|      2|}
ed448_internal.cpp:_ZZN5Botan10Ed448Point14base_point_mulERKNS_9Scalar448EENK3$_0clEv:
  258|      1|   static const auto table = []() {
  259|      1|      std::vector<Ed448Point> tbl(TableSize, Ed448Point::identity());
  260|       |
  261|      1|      auto accum = Ed448Point::base_point();
  262|       |
  263|    113|      for(size_t i = 0; i < TableSize; i += WindowElements) {
  ------------------
  |  Branch (263:25): [True: 112, False: 1]
  ------------------
  264|    112|         tbl[i] = accum;
  265|       |
  266|  1.68k|         for(size_t j = 1; j < WindowElements; ++j) {
  ------------------
  |  Branch (266:28): [True: 1.56k, False: 112]
  ------------------
  267|  1.56k|            if(j % 2 == 1) {
  ------------------
  |  Branch (267:16): [True: 784, False: 784]
  ------------------
  268|    784|               tbl[i + j] = tbl[i + j / 2].double_point();
  269|    784|            } else {
  270|    784|               tbl[i + j] = tbl[i + j - 1] + tbl[i];
  271|    784|            }
  272|  1.56k|         }
  273|       |
  274|    112|         accum = tbl[i + (WindowElements / 2)].double_point();
  275|    112|      }
  276|       |
  277|      1|      return tbl;
  278|      1|   }();
ed448_internal.cpp:_ZN5Botan12_GLOBAL__N_115scalar_from_xofERNS_3XOFE:
   53|      2|Scalar448 scalar_from_xof(XOF& shake_xof) {
   54|       |   // 5.2.5. Key Generation
   55|       |   // The 57-byte public key is generated by the following steps:
   56|       |   // 1. Hash the 57-byte private key using SHAKE256(x, 114), storing the
   57|       |   //    digest in a 114-octet large buffer, denoted h. Only the lower 57
   58|       |   //    bytes are used for generating the public key.
   59|      2|   std::array<uint8_t, ED448_LEN> raw_s{};
   60|      2|   shake_xof.output(raw_s);
   61|       |   // 2. Prune the buffer: The two least significant bits of the first
   62|       |   //    octet are cleared, all eight bits the last octet are cleared, and
   63|       |   //    the highest bit of the second to last octet is set.
   64|      2|   raw_s[0] &= 0xFC;
   65|      2|   raw_s[55] |= 0x80;
   66|      2|   raw_s[56] = 0;
   67|       |
   68|      2|   return Scalar448(raw_s);
   69|      2|}

_ZN5Botan15X448_PrivateKeyC1ERKNS_19AlgorithmIdentifierENSt3__14spanIKhLm18446744073709551615EEE:
  117|      6|      X448_PrivateKey(ber_decode_sk(key_bits)) {
  118|       |   // RFC 8410 Section 3: "the parameters MUST be absent".
  119|      6|   if(!alg_id.parameters_are_empty()) {
  ------------------
  |  Branch (119:7): [True: 0, False: 6]
  ------------------
  120|      0|      throw Decoding_Error("Unexpected parameters for X448 private key");
  121|      0|   }
  122|      6|}
_ZN5Botan15X448_PrivateKeyC1ENSt3__14spanIKhLm18446744073709551615EEE:
  124|      1|X448_PrivateKey::X448_PrivateKey(std::span<const uint8_t> secret_key) {
  125|      1|   BOTAN_ARG_CHECK(secret_key.size() == X448_LEN, "Invalid size for X448 private key");
  ------------------
  |  |   35|      1|   do {                                                          \
  |  |   36|      1|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|      1|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 1]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|      1|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 1]
  |  |  ------------------
  ------------------
  126|      1|   load_x448_keypair(secure_vector<uint8_t>(secret_key.begin(), secret_key.end()), m_public, m_private);
  127|      1|}
x448.cpp:_ZN5Botan12_GLOBAL__N_113ber_decode_skENSt3__14spanIKhLm18446744073709551615EEE:
   53|      6|secure_vector<uint8_t> ber_decode_sk(std::span<const uint8_t> key_bits) {
   54|      6|   secure_vector<uint8_t> decoded_bits;
   55|      6|   BER_Decoder(key_bits, BER_Decoder::Limits::DER()).decode(decoded_bits, ASN1_Type::OctetString).verify_end();
   56|      6|   if(decoded_bits.size() != X448_LEN) {
  ------------------
  |  Branch (56:7): [True: 3, False: 3]
  ------------------
   57|      3|      throw Decoding_Error("Invalid size for X448 private key");
   58|      3|   }
   59|      3|   return decoded_bits;
   60|      6|}
x448.cpp:_ZN5Botan12_GLOBAL__N_117load_x448_keypairENSt3__16vectorIhNS_16secure_allocatorIhEEEERNS1_10shared_ptrIKNS_19X448_PublicKey_DataEEERNS6_IKNS_20X448_PrivateKey_DataEEE:
   66|      1|                       std::shared_ptr<const X448_PrivateKey_Data>& sk_out) {
   67|      1|   BOTAN_ASSERT_NOMSG(secret.size() == X448_LEN);
  ------------------
  |  |   77|      1|   do {                                                                     \
  |  |   78|      1|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|      1|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 1]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|      1|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 1]
  |  |  ------------------
  ------------------
   68|      1|   std::array<uint8_t, X448_LEN> pub{};
   69|      1|   {
   70|      1|      auto scope = CT::scoped_poison(secret);
   71|      1|      x448_basepoint_from_data(pub, std::span(secret).first<X448_LEN>());
   72|      1|      CT::unpoison(pub);
   73|      1|   }
   74|      1|   pk_out = std::make_shared<const X448_PublicKey_Data>(pub);
   75|      1|   sk_out = std::make_shared<const X448_PrivateKey_Data>(std::move(secret));
   76|      1|}
_ZN5Botan20X448_PrivateKey_DataC2ENSt3__16vectorIhNS_16secure_allocatorIhEEEE:
   33|      1|      explicit X448_PrivateKey_Data(secure_vector<uint8_t> key) : m_key(std::move(key)) {}
x448.cpp:_ZN5Botan12_GLOBAL__N_124x448_basepoint_from_dataENSt3__14spanIhLm56EEENS2_IKhLm56EEE:
   47|      1|void x448_basepoint_from_data(std::span<uint8_t, X448_LEN> mypublic, std::span<const uint8_t, X448_LEN> secret) {
   48|      1|   auto bp = x448_basepoint(decode_scalar(secret));
   49|      1|   auto bp_bytes = encode_point(bp);
   50|      1|   copy_mem(mypublic, bp_bytes);
   51|      1|}
_ZN5Botan19X448_PublicKey_DataC2ENSt3__15arrayIhLm56EEE:
   23|      1|      explicit X448_PublicKey_Data(std::array<uint8_t, X448_LEN> key) : m_key(key) {}

_ZN5Botan12encode_pointERKNS_6StrongINSt3__15arrayIhLm56EEENS_9Point448_EJEEE:
   21|      1|secure_vector<uint8_t> encode_point(const Point448& p) {
   22|      1|   return {p.begin(), p.end()};
   23|      1|}
_ZN5Botan13decode_scalarENSt3__14spanIKhLm18446744073709551615EEE:
   30|      1|ScalarX448 decode_scalar(std::span<const uint8_t> scalar_bytes) {
   31|      1|   BOTAN_ARG_CHECK(scalar_bytes.size() == X448_LEN, "Invalid size for X448 scalar");
  ------------------
  |  |   35|      1|   do {                                                          \
  |  |   36|      1|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|      1|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 1]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|      1|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 1]
  |  |  ------------------
  ------------------
   32|      1|   auto buf = typecast_copy<ScalarX448>(scalar_bytes);
   33|       |
   34|      1|   buf[0] &= 0xfc;
   35|      1|   buf[55] |= 0x80;
   36|       |
   37|      1|   return buf;
   38|      1|}
_ZN5Botan14x448_basepointERKNS_6StrongINSt3__15arrayIhLm56EEENS_11ScalarX448_EJEEE:
   41|      1|Point448 x448_basepoint(const ScalarX448& k) {
   42|      1|   const Point448 u({5});
   43|      1|   return x448(k, u);
   44|      1|}
_ZN5Botan4x448ERKNS_6StrongINSt3__15arrayIhLm56EEENS_11ScalarX448_EJEEERKNS0_IS3_NS_9Point448_EJEEE:
   48|      1|Point448 x448(const ScalarX448& k, const Point448& u) {
   49|      1|   const Gf448Elem x_1 = Gf448Elem(u.get());
   50|      1|   Gf448Elem x_2 = Gf448Elem::one();
   51|      1|   Gf448Elem z_2 = Gf448Elem::zero();
   52|      1|   Gf448Elem x_3 = Gf448Elem(u.get());
   53|      1|   Gf448Elem z_3 = Gf448Elem::one();
   54|      1|   auto swap = CT::Mask<uint64_t>::cleared();
   55|       |
   56|    449|   for(int16_t t = 448 - 1; t >= 0; --t) {
  ------------------
  |  Branch (56:29): [True: 448, False: 1]
  ------------------
   57|    448|      auto k_t = CT::Mask<uint64_t>::expand(get_bit(k, t));
   58|    448|      swap ^= k_t;
   59|       |
   60|    448|      x_2.ct_cond_swap(swap, x_3);
   61|    448|      z_2.ct_cond_swap(swap, z_3);
   62|    448|      swap = k_t;
   63|       |
   64|    448|      const auto A = x_2 + z_2;
   65|    448|      const auto AA = square(A);
   66|    448|      const auto B = x_2 - z_2;
   67|    448|      const auto BB = square(B);
   68|    448|      const auto E = AA - BB;
   69|    448|      const auto C = x_3 + z_3;
   70|    448|      const auto D = x_3 - z_3;
   71|    448|      const auto DA = D * A;
   72|    448|      const auto CB = C * B;
   73|    448|      x_3 = square(DA + CB);
   74|    448|      z_3 = x_1 * square(DA - CB);
   75|    448|      x_2 = AA * BB;
   76|    448|      z_2 = E * (AA + mul_a24(E));
   77|    448|   }
   78|       |
   79|      1|   x_2.ct_cond_swap(swap, x_3);
   80|      1|   z_2.ct_cond_swap(swap, z_3);
   81|       |
   82|      1|   const auto res = x_2 / z_2;
   83|       |
   84|      1|   return Point448(res.to_bytes());
   85|      1|}
x448_internal.cpp:_ZN5Botan12_GLOBAL__N_17get_bitERKNS_6StrongINSt3__15arrayIhLm56EEENS_11ScalarX448_EJEEEm:
   16|    448|uint64_t get_bit(const ScalarX448& scalar, size_t bit) {
   17|    448|   return (scalar[bit / 8] >> (bit % 8)) & 1;
   18|    448|}

_ZN5Botan13DH_PrivateKeyC1ERKNS_19AlgorithmIdentifierENSt3__14spanIKhLm18446744073709551615EEE:
   70|    290|DH_PrivateKey::DH_PrivateKey(const AlgorithmIdentifier& alg_id, std::span<const uint8_t> key_bits) {
   71|    290|   m_private_key = std::make_shared<DL_PrivateKey>(alg_id, key_bits, DL_Group_Format::ANSI_X9_42);
   72|    290|   m_public_key = m_private_key->public_key();
   73|    290|}

_ZN5Botan13DilithiumModeC2ERKNS_3OIDE:
   74|     78|DilithiumMode::DilithiumMode(const OID& oid) : m_mode(dilithium_mode_from_oid(oid)) {}
_ZNK5Botan13DilithiumMode6is_aesEv:
  107|    306|bool DilithiumMode::is_aes() const {
  108|    306|   return m_mode == Dilithium4x4_AES || m_mode == Dilithium6x5_AES || m_mode == Dilithium8x7_AES;
  ------------------
  |  Branch (108:11): [True: 0, False: 306]
  |  Branch (108:41): [True: 0, False: 306]
  |  Branch (108:71): [True: 0, False: 306]
  ------------------
  109|    306|}
_ZNK5Botan13DilithiumMode9is_modernEv:
  111|    153|bool DilithiumMode::is_modern() const {
  112|    153|   return !is_aes();
  113|    153|}
_ZNK5Botan13DilithiumMode9is_ml_dsaEv:
  115|    612|bool DilithiumMode::is_ml_dsa() const {
  116|    612|   return m_mode == ML_DSA_4x4 || m_mode == ML_DSA_6x5 || m_mode == ML_DSA_8x7;
  ------------------
  |  Branch (116:11): [True: 92, False: 520]
  |  Branch (116:35): [True: 300, False: 220]
  |  Branch (116:59): [True: 220, False: 0]
  ------------------
  117|    612|}
_ZN5Botan20Dilithium_PrivateKeyC1ERKNS_19AlgorithmIdentifierENSt3__14spanIKhLm18446744073709551615EEE:
  434|     78|      Dilithium_PrivateKey(sk, DilithiumMode(alg_id.oid())) {
  435|       |   // The parameter set is identified by the OID; no parameters are defined.
  436|     78|   if(!alg_id.parameters_are_empty()) {
  ------------------
  |  Branch (436:7): [True: 1, False: 77]
  ------------------
  437|      1|      throw Decoding_Error("Unexpected parameters for ML-DSA/Dilithium private key");
  438|      1|   }
  439|     78|}
_ZN5Botan20Dilithium_PrivateKeyC1ENSt3__14spanIKhLm18446744073709551615EEENS_13DilithiumModeE:
  441|     78|Dilithium_PrivateKey::Dilithium_PrivateKey(std::span<const uint8_t> sk, DilithiumMode m) {
  442|     78|   DilithiumConstants mode(m);
  443|     78|   auto& codec = mode.keypair_codec();
  444|     78|   std::tie(m_public, m_private) = codec.decode_keypair(sk, std::move(mode));
  445|     78|}
dilithium.cpp:_ZN5Botan12_GLOBAL__N_123dilithium_mode_from_oidERKNS_3OIDE:
   64|     78|DilithiumMode::Mode dilithium_mode_from_oid(const OID& oid) {
   65|     78|   if(const auto name = oid.registered_name()) {
  ------------------
  |  Branch (65:18): [True: 78, False: 0]
  ------------------
   66|     78|      return dilithium_mode_from_string(*name);
   67|     78|   }
   68|       |
   69|      0|   throw Invalid_Argument(fmt("OID '{}' is not registered as a Dilithium/ML-DSA mode", oid));
   70|     78|}
dilithium.cpp:_ZN5Botan12_GLOBAL__N_126dilithium_mode_from_stringENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   32|     78|DilithiumMode::Mode dilithium_mode_from_string(std::string_view str) {
   33|     78|   if(str == "Dilithium-4x4-r3") {
  ------------------
  |  Branch (33:7): [True: 0, False: 78]
  ------------------
   34|      0|      return DilithiumMode::Dilithium4x4;
   35|      0|   }
   36|     78|   if(str == "Dilithium-4x4-AES-r3") {
  ------------------
  |  Branch (36:7): [True: 0, False: 78]
  ------------------
   37|      0|      return DilithiumMode::Dilithium4x4_AES;
   38|      0|   }
   39|     78|   if(str == "Dilithium-6x5-r3") {
  ------------------
  |  Branch (39:7): [True: 0, False: 78]
  ------------------
   40|      0|      return DilithiumMode::Dilithium6x5;
   41|      0|   }
   42|     78|   if(str == "Dilithium-6x5-AES-r3") {
  ------------------
  |  Branch (42:7): [True: 0, False: 78]
  ------------------
   43|      0|      return DilithiumMode::Dilithium6x5_AES;
   44|      0|   }
   45|     78|   if(str == "Dilithium-8x7-r3") {
  ------------------
  |  Branch (45:7): [True: 0, False: 78]
  ------------------
   46|      0|      return DilithiumMode::Dilithium8x7;
   47|      0|   }
   48|     78|   if(str == "Dilithium-8x7-AES-r3") {
  ------------------
  |  Branch (48:7): [True: 0, False: 78]
  ------------------
   49|      0|      return DilithiumMode::Dilithium8x7_AES;
   50|      0|   }
   51|     78|   if(str == "ML-DSA-4x4") {
  ------------------
  |  Branch (51:7): [True: 12, False: 66]
  ------------------
   52|     12|      return DilithiumMode::ML_DSA_4x4;
   53|     12|   }
   54|     66|   if(str == "ML-DSA-6x5") {
  ------------------
  |  Branch (54:7): [True: 38, False: 28]
  ------------------
   55|     38|      return DilithiumMode::ML_DSA_6x5;
   56|     38|   }
   57|     28|   if(str == "ML-DSA-8x7") {
  ------------------
  |  Branch (57:7): [True: 28, False: 0]
  ------------------
   58|     28|      return DilithiumMode::ML_DSA_8x7;
   59|     28|   }
   60|       |
   61|      0|   throw Invalid_Argument(fmt("'{}' is not a valid Dilithium mode name", str));
   62|     28|}

_ZN5Botan15Dilithium_Algos17encode_public_keyENS_10StrongSpanIKNS_6StrongINSt3__16vectorIhNS3_9allocatorIhEEEENS_20DilithiumPublicSeed_EJEEEEERKNS_8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNSC_6DomainE0EEERKNS_18DilithiumConstantsE:
  332|     75|                                               const DilithiumConstants& mode) {
  333|     75|   DilithiumSerializedPublicKey pk(mode.public_key_bytes());
  334|     75|   BufferStuffer stuffer(pk);
  335|       |
  336|     75|   stuffer.append(rho);
  337|    482|   for(const auto& p : t1) {
  ------------------
  |  Branch (337:22): [True: 482, False: 75]
  ------------------
  338|    482|      poly_pack_t1(p, stuffer);
  339|    482|   }
  340|       |
  341|     75|   BOTAN_ASSERT_NOMSG(stuffer.full());
  ------------------
  |  |   77|     75|   do {                                                                     \
  |  |   78|     75|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|     75|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 75]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|     75|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 75]
  |  |  ------------------
  ------------------
  342|     75|   return pk;
  343|     75|}
_ZN5Botan15Dilithium_Algos14expand_keypairENS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_24DilithiumSeedRandomness_EJEEENS_18DilithiumConstantsE:
  668|     78|DilithiumInternalKeypair expand_keypair(DilithiumSeedRandomness xi, DilithiumConstants mode) {
  669|     78|   if(xi.size() != DilithiumConstants::SEED_RANDOMNESS_BYTES) {
  ------------------
  |  Branch (669:7): [True: 3, False: 75]
  ------------------
  670|      3|      throw Decoding_Error("Invalid ML-DSA seed size");
  671|      3|   }
  672|     75|   const auto& sympriv = mode.symmetric_primitives();
  673|     75|   CT::poison(xi);
  674|       |
  675|     75|   auto [rho, rhoprime, K] = sympriv.H(xi);
  676|     75|   CT::unpoison(rho);  // rho is public (seed for the public matrix A)
  677|       |
  678|     75|   const auto A = Dilithium_Algos::expand_A(rho, mode);
  679|     75|   auto [s1, s2] = Dilithium_Algos::expand_s(rhoprime, mode);
  680|     75|   auto [t1, t0] = Dilithium_Algos::compute_t1_and_t0(A, s1, s2);
  681|       |
  682|     75|   CT::unpoison(t1);  // part of the public key
  683|       |
  684|     75|   DilithiumInternalKeypair keypair{
  685|     75|      std::make_shared<Dilithium_PublicKeyInternal>(mode, std::move(rho), std::move(t1)),
  686|     75|      std::make_shared<Dilithium_PrivateKeyInternal>(
  687|     75|         std::move(mode), std::move(xi), std::move(K), std::move(s1), std::move(s2), std::move(t0)),
  688|     75|   };
  689|       |
  690|     75|   CT::unpoison(*keypair.second);
  691|       |
  692|     75|   return keypair;
  693|     78|}
_ZN5Botan15Dilithium_Algos8expand_AENS_10StrongSpanIKNS_6StrongINSt3__16vectorIhNS3_9allocatorIhEEEENS_20DilithiumPublicSeed_EJEEEEERKNS_18DilithiumConstantsE:
  701|     75|DilithiumPolyMatNTT expand_A(StrongSpan<const DilithiumSeedRho> rho, const DilithiumConstants& mode) {
  702|     75|   DilithiumPolyMatNTT A(mode.k(), mode.l());
  703|    557|   for(uint8_t r = 0; r < mode.k(); ++r) {
  ------------------
  |  Branch (703:23): [True: 482, False: 75]
  ------------------
  704|  3.28k|      for(uint8_t s = 0; s < mode.l(); ++s) {
  ------------------
  |  Branch (704:26): [True: 2.79k, False: 482]
  ------------------
  705|  2.79k|         sample_ntt_uniform(rho, A[r][s], load_le(std::array{s, r}), mode);
  706|  2.79k|      }
  707|    482|   }
  708|     75|   return A;
  709|     75|}
_ZN5Botan15Dilithium_Algos8expand_sENS_10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_22DilithiumSeedRhoPrime_EJEEEEERKNS_18DilithiumConstantsE:
  715|     75|                                                       const DilithiumConstants& mode) {
  716|     75|   auto result = std::make_pair(DilithiumPolyVec(mode.l()), DilithiumPolyVec(mode.k()));
  717|     75|   auto& [s1, s2] = result;
  718|       |
  719|     75|   uint16_t nonce = 0;
  720|    418|   for(auto& p : s1) {
  ------------------
  |  Branch (720:16): [True: 418, False: 75]
  ------------------
  721|    418|      sample_uniform_eta(rhoprime, p, nonce++, mode);
  722|    418|   }
  723|       |
  724|    482|   for(auto& p : s2) {
  ------------------
  |  Branch (724:16): [True: 482, False: 75]
  ------------------
  725|    482|      sample_uniform_eta(rhoprime, p, nonce++, mode);
  726|    482|   }
  727|       |
  728|     75|   return result;
  729|     75|}
_ZN5Botan15Dilithium_Algos11power2roundERKNS_8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS1_6DomainE0EEE:
  752|     75|std::pair<DilithiumPolyVec, DilithiumPolyVec> power2round(const DilithiumPolyVec& vec) {
  753|       |   // This procedure is taken verbatim from Dilithium's reference implementation.
  754|     75|   auto power2round = [d = DilithiumConstants::D](int32_t r) -> std::pair<int32_t, int32_t> {
  755|     75|      const int32_t r1 = (r + (1 << (d - 1)) - 1) >> d;
  756|     75|      const int32_t r0 = r - (r1 << d);
  757|     75|      return {r1, r0};
  758|     75|   };
  759|       |
  760|     75|   auto result = std::make_pair(DilithiumPolyVec(vec.size()), DilithiumPolyVec(vec.size()));
  761|       |
  762|    557|   for(size_t i = 0; i < vec.size(); ++i) {
  ------------------
  |  Branch (762:22): [True: 482, False: 75]
  ------------------
  763|   123k|      for(size_t j = 0; j < vec[i].size(); ++j) {
  ------------------
  |  Branch (763:25): [True: 123k, False: 482]
  ------------------
  764|   123k|         std::tie(result.first[i][j], result.second[i][j]) = power2round(vec[i][j]);
  765|   123k|      }
  766|    482|   }
  767|       |
  768|     75|   return result;
  769|     75|}
dilithium_algos.cpp:_ZN5Botan15Dilithium_Algos12_GLOBAL__N_112poly_pack_t1ERKNS_8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS2_6DomainE0EEERNS_13BufferStufferE:
  102|    482|void poly_pack_t1(const DilithiumPoly& p, BufferStuffer& stuffer) {
  103|    482|   constexpr auto b = (1 << (bitlen(DilithiumConstants::Q - 1) - DilithiumConstants::D)) - 1;
  104|    482|   poly_pack<0, b>(p, stuffer);
  105|    482|}
dilithium_algos.cpp:_ZN5Botan15Dilithium_Algos12_GLOBAL__N_19poly_packILi0ELi1023ETkNS_8CRYSTALS14crystals_traitENS_19DilithiumPolyTraitsELNS3_6DomainE0EEEvRKNS3_10PolynomialIT1_XT2_EEERNS_13BufferStufferE:
   60|    482|constexpr void poly_pack(const CRYSTALS::Polynomial<PolyTrait, D>& p, BufferStuffer& stuffer) {
   61|    482|   if constexpr(a == 0) {
   62|       |      // If `a` is 0, we assume SimpleBitPack (Algorithm 16) where the
   63|       |      // coefficients are in the range [0, b].
   64|    482|      CRYSTALS::pack<b>(p, stuffer);
   65|       |   } else {
   66|       |      // Otherwise, for BitPack (Algorithm 17), we must map the coefficients to
   67|       |      // positive values as they are in the range [-a, b].
   68|       |      CRYSTALS::pack<a + b>(p, stuffer, map_range<b>);
   69|       |   }
   70|    482|}
dilithium_algos.cpp:_ZN5Botan15Dilithium_Algos12_GLOBAL__N_117compute_t1_and_t0ERKNS_8CRYSTALS16PolynomialMatrixINS_19DilithiumPolyTraitsEEERKNS2_16PolynomialVectorIS4_LNS2_6DomainE0EEESC_:
  315|     75|                                                                const DilithiumPolyVec& s2) {
  316|     75|   auto t_hat = A * ntt(s1.clone());
  317|     75|   t_hat.reduce();
  318|     75|   auto t = inverse_ntt(std::move(t_hat));
  319|     75|   t += s2;
  320|     75|   t.conditional_add_q();
  321|       |
  322|     75|   return Dilithium_Algos::power2round(t);
  323|     75|}
dilithium_algos.cpp:_ZN5Botan15Dilithium_Algos12_GLOBAL__N_118sample_ntt_uniformENS_10StrongSpanIKNS_6StrongINSt3__16vectorIhNS4_9allocatorIhEEEENS_20DilithiumPublicSeed_EJEEEEERNS_8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNSD_6DomainE1EEEtRKNS_18DilithiumConstantsE:
  563|  2.79k|                        const DilithiumConstants& mode) {
  564|       |   /**
  565|       |    * A generator that returns the next coefficient sampled from the XOF,
  566|       |    * according to: NIST FIPS 204, Algorithm 14 (CoeffFromThreeBytes).
  567|       |    */
  568|  2.79k|   auto xof = mode.symmetric_primitives().H(rho, nonce);
  569|  2.79k|   auto bounded_xof = Bounded_XOF<DilithiumConstants::SAMPLE_NTT_POLY_FROM_XOF_BOUND>(*xof);
  570|       |
  571|   716k|   for(auto& coeff : p) {
  ------------------
  |  Branch (571:20): [True: 716k, False: 2.79k]
  ------------------
  572|   716k|      coeff =
  573|   716k|         bounded_xof.next<3>([](const auto bytes) { return make_uint32(0, bytes[2], bytes[1], bytes[0]) & 0x7FFFFF; },
  574|   716k|                             [](const uint32_t z) { return z < DilithiumConstants::Q; });
  575|   716k|   }
  576|       |
  577|  2.79k|   BOTAN_DEBUG_ASSERT(p.ct_validate_value_range(0, DilithiumConstants::Q - 1));
  ------------------
  |  |  130|  2.79k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  2.79k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 2.79k]
  |  |  ------------------
  ------------------
  578|  2.79k|}
dilithium_algos.cpp:_ZZN5Botan15Dilithium_Algos12_GLOBAL__N_118sample_ntt_uniformENS_10StrongSpanIKNS_6StrongINSt3__16vectorIhNS4_9allocatorIhEEEENS_20DilithiumPublicSeed_EJEEEEERNS_8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNSD_6DomainE1EEEtRKNS_18DilithiumConstantsEENK3$_0clINS4_5arrayIhLm3EEEEEDaT_:
  573|   717k|         bounded_xof.next<3>([](const auto bytes) { return make_uint32(0, bytes[2], bytes[1], bytes[0]) & 0x7FFFFF; },
dilithium_algos.cpp:_ZZN5Botan15Dilithium_Algos12_GLOBAL__N_118sample_ntt_uniformENS_10StrongSpanIKNS_6StrongINSt3__16vectorIhNS4_9allocatorIhEEEENS_20DilithiumPublicSeed_EJEEEEERNS_8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNSD_6DomainE1EEEtRKNS_18DilithiumConstantsEENK3$_1clEj:
  574|   717k|                             [](const uint32_t z) { return z < DilithiumConstants::Q; });
dilithium_algos.cpp:_ZN5Botan15Dilithium_Algos12_GLOBAL__N_118sample_uniform_etaENS_10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_22DilithiumSeedRhoPrime_EJEEEEERNS_8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNSD_6DomainE0EEEtRKNS_18DilithiumConstantsE:
  641|    900|                        const DilithiumConstants& mode) {
  642|    900|   using Eta = DilithiumConstants::DilithiumEta;
  643|       |
  644|    900|   auto xof = mode.symmetric_primitives().H(rhoprime, nonce);
  645|    900|   switch(mode.eta()) {
  ------------------
  |  Branch (645:11): [True: 900, False: 0]
  ------------------
  646|    493|      case Eta::_2:
  ------------------
  |  Branch (646:7): [True: 493, False: 407]
  ------------------
  647|    493|         sample_uniform_eta<Eta::_2>(p, *xof);
  648|    493|         break;
  649|    407|      case Eta::_4:
  ------------------
  |  Branch (649:7): [True: 407, False: 493]
  ------------------
  650|    407|         sample_uniform_eta<Eta::_4>(p, *xof);
  651|    407|         break;
  652|    900|   }
  653|       |
  654|       |   // Rejection sampling is done. Secret polynomial can be repoisoned.
  655|    900|   CT::poison(p);
  656|       |
  657|    900|   BOTAN_DEBUG_ASSERT(p.ct_validate_value_range(-static_cast<int32_t>(mode.eta()), mode.eta()));
  ------------------
  |  |  130|    900|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    900|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 900]
  |  |  ------------------
  ------------------
  658|    900|}
dilithium_algos.cpp:_ZN5Botan15Dilithium_Algos12_GLOBAL__N_118sample_uniform_etaILNS_18DilithiumConstants12DilithiumEtaE2EEEvRNS_8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS5_6DomainE0EEERNS_3XOFE:
  604|    493|void sample_uniform_eta(DilithiumPoly& p, Botan::XOF& xof) {
  605|       |   // A generator that returns the next coefficient sampled from the XOF. As the
  606|       |   // sampling uses half-bytes, this keeps track of the additionally sampled
  607|       |   // coefficient as needed.
  608|    493|   auto next_coeff = [bounded_xof = Bounded_XOF<DilithiumConstants::SAMPLE_POLY_FROM_XOF_BOUND>(xof),
  609|    493|                      stashed_coeff = std::optional<int32_t>{}]() mutable -> int32_t {
  610|    493|      if(auto stashed = std::exchange(stashed_coeff, std::nullopt)) {
  611|    493|         return *stashed;
  612|    493|      }
  613|       |
  614|    493|      BOTAN_DEBUG_ASSERT(!stashed_coeff.has_value());
  615|    493|      while(true) {
  616|    493|         const auto b = bounded_xof.next_byte();
  617|    493|         const auto z0 = coeff_from_halfbyte<eta>(b & 0x0F);
  618|    493|         const auto z1 = coeff_from_halfbyte<eta>(b >> 4);
  619|       |
  620|    493|         if(z0.has_value()) {
  621|    493|            stashed_coeff = z1;  // keep candidate z1 for the next invocation
  622|    493|            return *z0;
  623|    493|         } else if(z1.has_value()) {
  624|       |            // z0 was invalid, z1 is valid, nothing to stash
  625|    493|            return *z1;
  626|    493|         }
  627|    493|      }
  628|    493|   };
  629|       |
  630|   126k|   for(auto& coeff : p) {
  ------------------
  |  Branch (630:20): [True: 126k, False: 493]
  ------------------
  631|   126k|      coeff = next_coeff();
  632|   126k|   }
  633|    493|}
dilithium_algos.cpp:_ZZN5Botan15Dilithium_Algos12_GLOBAL__N_118sample_uniform_etaILNS_18DilithiumConstants12DilithiumEtaE2EEEvRNS_8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS5_6DomainE0EEERNS_3XOFEENUlvE_clEv:
  609|   126k|                      stashed_coeff = std::optional<int32_t>{}]() mutable -> int32_t {
  610|   126k|      if(auto stashed = std::exchange(stashed_coeff, std::nullopt)) {
  ------------------
  |  Branch (610:15): [True: 59.1k, False: 67.0k]
  ------------------
  611|  59.1k|         return *stashed;
  612|  59.1k|      }
  613|       |
  614|  67.0k|      BOTAN_DEBUG_ASSERT(!stashed_coeff.has_value());
  ------------------
  |  |  130|  67.0k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  67.0k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 67.0k]
  |  |  ------------------
  ------------------
  615|  67.2k|      while(true) {
  ------------------
  |  Branch (615:13): [True: 67.2k, Folded]
  ------------------
  616|  67.2k|         const auto b = bounded_xof.next_byte();
  617|  67.2k|         const auto z0 = coeff_from_halfbyte<eta>(b & 0x0F);
  618|  67.2k|         const auto z1 = coeff_from_halfbyte<eta>(b >> 4);
  619|       |
  620|  67.2k|         if(z0.has_value()) {
  ------------------
  |  Branch (620:13): [True: 63.1k, False: 4.09k]
  ------------------
  621|  63.1k|            stashed_coeff = z1;  // keep candidate z1 for the next invocation
  622|  63.1k|            return *z0;
  623|  63.1k|         } else if(z1.has_value()) {
  ------------------
  |  Branch (623:20): [True: 3.85k, False: 243]
  ------------------
  624|       |            // z0 was invalid, z1 is valid, nothing to stash
  625|  3.85k|            return *z1;
  626|  3.85k|         }
  627|  67.2k|      }
  628|  67.0k|   };
dilithium_algos.cpp:_ZN5Botan15Dilithium_Algos12_GLOBAL__N_119coeff_from_halfbyteILNS_18DilithiumConstants12DilithiumEtaE2EEENSt3__18optionalIiEEh:
  586|   134k|std::optional<int32_t> coeff_from_halfbyte(uint8_t b) {
  587|   134k|   BOTAN_DEBUG_ASSERT(b < 16);
  ------------------
  |  |  130|   134k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|   134k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 134k]
  |  |  ------------------
  ------------------
  588|       |
  589|   134k|   if constexpr(eta == DilithiumConstants::DilithiumEta::_2) {
  590|   134k|      if(CT::driveby_unpoison(b < 15)) {
  ------------------
  |  Branch (590:10): [True: 126k, False: 8.11k]
  ------------------
  591|   126k|         b = b - (205U * b >> 10) * 5;  // b = b mod 5
  592|   126k|         return 2 - b;
  593|   126k|      }
  594|       |   } else if constexpr(eta == DilithiumConstants::DilithiumEta::_4) {
  595|       |      if(CT::driveby_unpoison(b < 9)) {
  596|       |         return 4 - b;
  597|       |      }
  598|       |   }
  599|       |
  600|  8.11k|   return std::nullopt;
  601|   134k|}
dilithium_algos.cpp:_ZN5Botan15Dilithium_Algos12_GLOBAL__N_118sample_uniform_etaILNS_18DilithiumConstants12DilithiumEtaE4EEEvRNS_8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS5_6DomainE0EEERNS_3XOFE:
  604|    407|void sample_uniform_eta(DilithiumPoly& p, Botan::XOF& xof) {
  605|       |   // A generator that returns the next coefficient sampled from the XOF. As the
  606|       |   // sampling uses half-bytes, this keeps track of the additionally sampled
  607|       |   // coefficient as needed.
  608|    407|   auto next_coeff = [bounded_xof = Bounded_XOF<DilithiumConstants::SAMPLE_POLY_FROM_XOF_BOUND>(xof),
  609|    407|                      stashed_coeff = std::optional<int32_t>{}]() mutable -> int32_t {
  610|    407|      if(auto stashed = std::exchange(stashed_coeff, std::nullopt)) {
  611|    407|         return *stashed;
  612|    407|      }
  613|       |
  614|    407|      BOTAN_DEBUG_ASSERT(!stashed_coeff.has_value());
  615|    407|      while(true) {
  616|    407|         const auto b = bounded_xof.next_byte();
  617|    407|         const auto z0 = coeff_from_halfbyte<eta>(b & 0x0F);
  618|    407|         const auto z1 = coeff_from_halfbyte<eta>(b >> 4);
  619|       |
  620|    407|         if(z0.has_value()) {
  621|    407|            stashed_coeff = z1;  // keep candidate z1 for the next invocation
  622|    407|            return *z0;
  623|    407|         } else if(z1.has_value()) {
  624|       |            // z0 was invalid, z1 is valid, nothing to stash
  625|    407|            return *z1;
  626|    407|         }
  627|    407|      }
  628|    407|   };
  629|       |
  630|   104k|   for(auto& coeff : p) {
  ------------------
  |  Branch (630:20): [True: 104k, False: 407]
  ------------------
  631|   104k|      coeff = next_coeff();
  632|   104k|   }
  633|    407|}
dilithium_algos.cpp:_ZZN5Botan15Dilithium_Algos12_GLOBAL__N_118sample_uniform_etaILNS_18DilithiumConstants12DilithiumEtaE4EEEvRNS_8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS5_6DomainE0EEERNS_3XOFEENUlvE_clEv:
  609|   104k|                      stashed_coeff = std::optional<int32_t>{}]() mutable -> int32_t {
  610|   104k|      if(auto stashed = std::exchange(stashed_coeff, std::nullopt)) {
  ------------------
  |  Branch (610:15): [True: 29.1k, False: 75.0k]
  ------------------
  611|  29.1k|         return *stashed;
  612|  29.1k|      }
  613|       |
  614|  75.0k|      BOTAN_DEBUG_ASSERT(!stashed_coeff.has_value());
  ------------------
  |  |  130|  75.0k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  75.0k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 75.0k]
  |  |  ------------------
  ------------------
  615|  92.9k|      while(true) {
  ------------------
  |  Branch (615:13): [True: 92.9k, Folded]
  ------------------
  616|  92.9k|         const auto b = bounded_xof.next_byte();
  617|  92.9k|         const auto z0 = coeff_from_halfbyte<eta>(b & 0x0F);
  618|  92.9k|         const auto z1 = coeff_from_halfbyte<eta>(b >> 4);
  619|       |
  620|  92.9k|         if(z0.has_value()) {
  ------------------
  |  Branch (620:13): [True: 52.5k, False: 40.4k]
  ------------------
  621|  52.5k|            stashed_coeff = z1;  // keep candidate z1 for the next invocation
  622|  52.5k|            return *z0;
  623|  52.5k|         } else if(z1.has_value()) {
  ------------------
  |  Branch (623:20): [True: 22.4k, False: 17.9k]
  ------------------
  624|       |            // z0 was invalid, z1 is valid, nothing to stash
  625|  22.4k|            return *z1;
  626|  22.4k|         }
  627|  92.9k|      }
  628|  75.0k|   };
dilithium_algos.cpp:_ZN5Botan15Dilithium_Algos12_GLOBAL__N_119coeff_from_halfbyteILNS_18DilithiumConstants12DilithiumEtaE4EEENSt3__18optionalIiEEh:
  586|   185k|std::optional<int32_t> coeff_from_halfbyte(uint8_t b) {
  587|   185k|   BOTAN_DEBUG_ASSERT(b < 16);
  ------------------
  |  |  130|   185k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|   185k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 185k]
  |  |  ------------------
  ------------------
  588|       |
  589|       |   if constexpr(eta == DilithiumConstants::DilithiumEta::_2) {
  590|       |      if(CT::driveby_unpoison(b < 15)) {
  591|       |         b = b - (205U * b >> 10) * 5;  // b = b mod 5
  592|       |         return 2 - b;
  593|       |      }
  594|   185k|   } else if constexpr(eta == DilithiumConstants::DilithiumEta::_4) {
  595|   185k|      if(CT::driveby_unpoison(b < 9)) {
  ------------------
  |  Branch (595:10): [True: 104k, False: 81.6k]
  ------------------
  596|   104k|         return 4 - b;
  597|   104k|      }
  598|   185k|   }
  599|       |
  600|  81.6k|   return std::nullopt;
  601|   185k|}
dilithium_algos.cpp:_ZZN5Botan15Dilithium_Algos11power2roundERKNS_8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS1_6DomainE0EEEENK3$_0clEi:
  754|   123k|   auto power2round = [d = DilithiumConstants::D](int32_t r) -> std::pair<int32_t, int32_t> {
  755|   123k|      const int32_t r1 = (r + (1 << (d - 1)) - 1) >> d;
  756|   123k|      const int32_t r0 = r - (r1 << d);
  757|   123k|      return {r1, r0};
  758|   123k|   };

_ZN5Botan18DilithiumConstantsD2Ev:
   57|    534|DilithiumConstants::~DilithiumConstants() = default;
_ZN5Botan18DilithiumConstantsC2ENS_13DilithiumModeE:
   60|    153|      m_mode(mode),
   61|    153|      m_public_key_hash_bytes(public_key_hash_size(m_mode)),
   62|    153|      m_commitment_hash_full_bytes(commitment_hash_full_size(m_mode)) {
   63|    153|   switch(m_mode.mode()) {
   64|      0|      case Botan::DilithiumMode::Dilithium4x4:
  ------------------
  |  Branch (64:7): [True: 0, False: 153]
  ------------------
   65|      0|      case Botan::DilithiumMode::Dilithium4x4_AES:
  ------------------
  |  Branch (65:7): [True: 0, False: 153]
  ------------------
   66|     23|      case Botan::DilithiumMode::ML_DSA_4x4:
  ------------------
  |  Branch (66:7): [True: 23, False: 130]
  ------------------
   67|     23|         m_tau = DilithiumTau::_39;
   68|     23|         m_lambda = DilithiumLambda::_128;
   69|     23|         m_gamma1 = DilithiumGamma1::ToThe17th;
   70|     23|         m_gamma2 = DilithiumGamma2::Qminus1DividedBy88;
   71|     23|         m_k = 4;
   72|     23|         m_l = 4;
   73|     23|         m_eta = DilithiumEta::_2;
   74|     23|         m_beta = DilithiumBeta::_78;
   75|     23|         m_omega = DilithiumOmega::_80;
   76|     23|         break;
   77|      0|      case Botan::DilithiumMode::Dilithium6x5:
  ------------------
  |  Branch (77:7): [True: 0, False: 153]
  ------------------
   78|      0|      case Botan::DilithiumMode::Dilithium6x5_AES:
  ------------------
  |  Branch (78:7): [True: 0, False: 153]
  ------------------
   79|     75|      case Botan::DilithiumMode::ML_DSA_6x5:
  ------------------
  |  Branch (79:7): [True: 75, False: 78]
  ------------------
   80|     75|         m_tau = DilithiumTau::_49;
   81|     75|         m_lambda = DilithiumLambda::_192;
   82|     75|         m_gamma1 = DilithiumGamma1::ToThe19th;
   83|     75|         m_gamma2 = DilithiumGamma2::Qminus1DividedBy32;
   84|     75|         m_k = 6;
   85|     75|         m_l = 5;
   86|     75|         m_eta = DilithiumEta::_4;
   87|     75|         m_beta = DilithiumBeta::_196;
   88|     75|         m_omega = DilithiumOmega::_55;
   89|     75|         break;
   90|      0|      case Botan::DilithiumMode::Dilithium8x7:
  ------------------
  |  Branch (90:7): [True: 0, False: 153]
  ------------------
   91|      0|      case Botan::DilithiumMode::Dilithium8x7_AES:
  ------------------
  |  Branch (91:7): [True: 0, False: 153]
  ------------------
   92|     55|      case Botan::DilithiumMode::ML_DSA_8x7:
  ------------------
  |  Branch (92:7): [True: 55, False: 98]
  ------------------
   93|     55|         m_tau = DilithiumTau::_60;
   94|     55|         m_lambda = DilithiumLambda::_256;
   95|     55|         m_gamma1 = DilithiumGamma1::ToThe19th;
   96|     55|         m_gamma2 = DilithiumGamma2::Qminus1DividedBy32;
   97|     55|         m_k = 8;
   98|     55|         m_l = 7;
   99|     55|         m_eta = DilithiumEta::_2;
  100|     55|         m_beta = DilithiumBeta::_120;
  101|     55|         m_omega = DilithiumOmega::_75;
  102|     55|         break;
  103|      0|      default:
  ------------------
  |  Branch (103:7): [True: 0, False: 153]
  ------------------
  104|      0|         BOTAN_ASSERT_UNREACHABLE();
  ------------------
  |  |  166|      0|#define BOTAN_ASSERT_UNREACHABLE() Botan::assert_unreachable(__FILE__, __LINE__)
  ------------------
  105|    153|   }
  106|       |
  107|    153|   const auto s1_bytes = 32 * m_l * bitlen(2 * m_eta);
  108|    153|   const auto s2_bytes = 32 * m_k * bitlen(2 * m_eta);
  109|    153|   const auto t0_bytes = 32 * m_k * D;
  110|    153|   const auto t1_bytes = 32 * m_k * (bitlen(static_cast<uint32_t>(Q) - 1) - D);
  111|    153|   const auto z_bytes = 32 * m_l * (1 + bitlen(m_gamma1 - 1));
  112|    153|   const auto hint_bytes = m_omega + m_k;
  113|       |
  114|    153|   m_private_key_bytes =
  115|    153|      SEED_RHO_BYTES + SEED_SIGNING_KEY_BYTES + m_public_key_hash_bytes + s1_bytes + s2_bytes + t0_bytes;
  116|    153|   m_public_key_bytes = SEED_RHO_BYTES + t1_bytes;
  117|    153|   m_signature_bytes = m_commitment_hash_full_bytes + z_bytes + hint_bytes;
  118|    153|   m_serialized_commitment_bytes = 32 * m_k * bitlen(((Q - 1) / (2 * m_gamma2)) - 1);
  119|       |
  120|    153|   m_symmetric_primitives = Dilithium_Symmetric_Primitives_Base::create(*this);
  121|    153|   m_keypair_codec = Dilithium_Keypair_Codec::create(mode);
  122|    153|}
dilithium_constants.cpp:_ZN5Botan12_GLOBAL__N_120public_key_hash_sizeENS_13DilithiumModeE:
   20|    153|uint32_t public_key_hash_size(DilithiumMode mode) {
   21|    153|   switch(mode.mode()) {
  ------------------
  |  Branch (21:11): [True: 153, False: 0]
  ------------------
   22|     23|      case DilithiumMode::ML_DSA_4x4:
  ------------------
  |  Branch (22:7): [True: 23, False: 130]
  ------------------
   23|     98|      case DilithiumMode::ML_DSA_6x5:
  ------------------
  |  Branch (23:7): [True: 75, False: 78]
  ------------------
   24|    153|      case DilithiumMode::ML_DSA_8x7:
  ------------------
  |  Branch (24:7): [True: 55, False: 98]
  ------------------
   25|    153|         return 64;
   26|      0|      case DilithiumMode::Dilithium4x4:
  ------------------
  |  Branch (26:7): [True: 0, False: 153]
  ------------------
   27|      0|      case DilithiumMode::Dilithium4x4_AES:
  ------------------
  |  Branch (27:7): [True: 0, False: 153]
  ------------------
   28|      0|      case DilithiumMode::Dilithium6x5:
  ------------------
  |  Branch (28:7): [True: 0, False: 153]
  ------------------
   29|      0|      case DilithiumMode::Dilithium6x5_AES:
  ------------------
  |  Branch (29:7): [True: 0, False: 153]
  ------------------
   30|      0|      case DilithiumMode::Dilithium8x7:
  ------------------
  |  Branch (30:7): [True: 0, False: 153]
  ------------------
   31|      0|      case DilithiumMode::Dilithium8x7_AES:
  ------------------
  |  Branch (31:7): [True: 0, False: 153]
  ------------------
   32|      0|         return 32;
   33|    153|   }
   34|      0|   BOTAN_ASSERT_UNREACHABLE();
  ------------------
  |  |  166|      0|#define BOTAN_ASSERT_UNREACHABLE() Botan::assert_unreachable(__FILE__, __LINE__)
  ------------------
   35|      0|}
dilithium_constants.cpp:_ZN5Botan12_GLOBAL__N_125commitment_hash_full_sizeENS_13DilithiumModeE:
   37|    153|uint32_t commitment_hash_full_size(DilithiumMode mode) {
   38|    153|   switch(mode.mode()) {
  ------------------
  |  Branch (38:11): [True: 153, False: 0]
  ------------------
   39|      0|      case DilithiumMode::Dilithium4x4:
  ------------------
  |  Branch (39:7): [True: 0, False: 153]
  ------------------
   40|      0|      case DilithiumMode::Dilithium4x4_AES:
  ------------------
  |  Branch (40:7): [True: 0, False: 153]
  ------------------
   41|      0|      case DilithiumMode::Dilithium6x5:
  ------------------
  |  Branch (41:7): [True: 0, False: 153]
  ------------------
   42|      0|      case DilithiumMode::Dilithium6x5_AES:
  ------------------
  |  Branch (42:7): [True: 0, False: 153]
  ------------------
   43|      0|      case DilithiumMode::Dilithium8x7:
  ------------------
  |  Branch (43:7): [True: 0, False: 153]
  ------------------
   44|      0|      case DilithiumMode::Dilithium8x7_AES:
  ------------------
  |  Branch (44:7): [True: 0, False: 153]
  ------------------
   45|     23|      case DilithiumMode::ML_DSA_4x4:
  ------------------
  |  Branch (45:7): [True: 23, False: 130]
  ------------------
   46|     23|         return 32;
   47|     75|      case DilithiumMode::ML_DSA_6x5:
  ------------------
  |  Branch (47:7): [True: 75, False: 78]
  ------------------
   48|     75|         return 48;
   49|     55|      case DilithiumMode::ML_DSA_8x7:
  ------------------
  |  Branch (49:7): [True: 55, False: 98]
  ------------------
   50|     55|         return 64;
   51|    153|   }
   52|      0|   BOTAN_ASSERT_UNREACHABLE();
  ------------------
  |  |  166|      0|#define BOTAN_ASSERT_UNREACHABLE() Botan::assert_unreachable(__FILE__, __LINE__)
  ------------------
   53|      0|}

_ZN5Botan23Dilithium_Keypair_Codec6createENS_13DilithiumModeE:
   22|    153|std::unique_ptr<Dilithium_Keypair_Codec> Dilithium_Keypair_Codec::create(DilithiumMode mode) {
   23|    153|#if defined(BOTAN_HAS_DILITHIUM) || defined(BOTAN_HAS_DILITHIUM_AES)
   24|    153|   if(mode.is_dilithium_round3()) {
  ------------------
  |  Branch (24:7): [True: 0, False: 153]
  ------------------
   25|      0|      return std::make_unique<Dilithium_Expanded_Keypair_Codec>();
   26|      0|   }
   27|    153|#endif
   28|       |
   29|    153|#if defined(BOTAN_HAS_ML_DSA)
   30|    153|   if(mode.is_ml_dsa()) {
  ------------------
  |  Branch (30:7): [True: 153, False: 0]
  ------------------
   31|    153|      return std::make_unique<ML_DSA_Expanding_Keypair_Codec>();
   32|    153|   }
   33|      0|#endif
   34|       |
   35|      0|   throw Not_Implemented("requested ML-DSA/Dilithium mode is not implemented in this build");
   36|    153|}

_ZN5Botan17DilithiumShakeXOFD2Ev:
   13|    153|DilithiumShakeXOF::~DilithiumShakeXOF() = default;
_ZN5Botan17DilithiumShakeXOF9createXOFENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEENS1_4spanIKhLm18446744073709551615EEEt:
   18|  3.69k|                                                         uint16_t nonce) {
   19|  3.69k|   auto xof = Botan::XOF::create_or_throw(name);
   20|  3.69k|   xof->update(seed);
   21|  3.69k|   xof->update(store_le(nonce));
   22|  3.69k|   return xof;
   23|  3.69k|}

_ZN5Botan35Dilithium_Symmetric_Primitives_BaseC2ERKNS_18DilithiumConstantsENSt3__110unique_ptrINS_12DilithiumXOFENS4_14default_deleteIS6_EEEE:
   41|    153|      m_commitment_hash_length_bytes(mode.commitment_hash_full_bytes()),
   42|    153|      m_public_key_hash_bytes(mode.public_key_hash_bytes()),
   43|    153|      m_mode(mode.mode()),
   44|    153|      m_xof_adapter(std::move(xof_adapter)) {}
_ZN5Botan35Dilithium_Symmetric_Primitives_Base6createERKNS_18DilithiumConstantsE:
   47|    153|   const DilithiumConstants& mode) {
   48|    153|#if defined(BOTAN_HAS_DILITHIUM)
   49|    153|   if(mode.is_modern() && !mode.is_ml_dsa()) {
  ------------------
  |  Branch (49:7): [True: 153, False: 0]
  |  Branch (49:27): [True: 0, False: 153]
  ------------------
   50|      0|      return std::make_unique<Dilithium_Symmetric_Primitives>(mode);
   51|      0|   }
   52|    153|#endif
   53|       |
   54|    153|#if defined(BOTAN_HAS_DILITHIUM_AES)
   55|    153|   if(mode.is_aes()) {
  ------------------
  |  Branch (55:7): [True: 0, False: 153]
  ------------------
   56|      0|      return std::make_unique<Dilithium_AES_Symmetric_Primitives>(mode);
   57|      0|   }
   58|    153|#endif
   59|       |
   60|    153|#if defined(BOTAN_HAS_ML_DSA)
   61|    153|   if(mode.is_ml_dsa()) {
  ------------------
  |  Branch (61:7): [True: 153, False: 0]
  ------------------
   62|    153|      return std::make_unique<ML_DSA_Symmetric_Primitives>(mode);
   63|    153|   }
   64|      0|#endif
   65|       |
   66|      0|   throw Not_Implemented("requested ML-DSA/Dilithium mode is not implemented in this build");
   67|    153|}

_ZNK5Botan30ML_DSA_Expanding_Keypair_Codec14decode_keypairENSt3__14spanIKhLm18446744073709551615EEENS_18DilithiumConstantsE:
   23|     78|                                                                        DilithiumConstants mode) const {
   24|     78|   return Dilithium_Algos::expand_keypair(DilithiumSeedRandomness(private_key_seed), std::move(mode));
   25|     78|}

_ZN5Botan12DL_PublicKeyC2ERKNS_8DL_GroupERKNS_6BigIntE:
   38|    180|DL_PublicKey::DL_PublicKey(const DL_Group& group, const BigInt& public_key) : m_group(group), m_public_key(public_key) {
   39|       |   // The subgroup check (y^q == 1 mod p) is deferred to check_key() since it can be expensive
   40|    180|   BOTAN_ARG_CHECK(m_public_key > 1 && m_public_key < m_group.get_p(), "Invalid DL public key");
  ------------------
  |  |   35|    180|   do {                                                          \
  |  |   36|    180|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    359|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 179, False: 1]
  |  |  |  Branch (37:12): [True: 179, False: 0]
  |  |  ------------------
  |  |   38|      1|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      1|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      1|      }                                                          \
  |  |   41|    180|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 180]
  |  |  ------------------
  ------------------
   41|    180|}
_ZN5Botan13DL_PrivateKeyC2ERKNS_19AlgorithmIdentifierENSt3__14spanIKhLm18446744073709551615EEENS_15DL_Group_FormatE:
   85|    301|      m_group(alg_id.parameters(), format),
   86|    301|      m_private_key(check_dl_private_key_input(decode_single_bigint(key_bits), m_group)),
   87|    301|      m_public_key(m_group.power_g_p(m_private_key, m_private_key.bits())) {}
_ZNK5Botan13DL_PrivateKey10public_keyEv:
  101|    180|std::shared_ptr<DL_PublicKey> DL_PrivateKey::public_key() const {
  102|    180|   return std::make_shared<DL_PublicKey>(m_group, m_public_key);
  103|    180|}
dl_scheme.cpp:_ZN5Botan12_GLOBAL__N_120decode_single_bigintENSt3__14spanIKhLm18446744073709551615EEE:
   17|    255|BigInt decode_single_bigint(std::span<const uint8_t> key_bits) {
   18|    255|   BigInt x;
   19|    255|   BER_Decoder(key_bits, BER_Decoder::Limits::DER()).decode(x).verify_end();
   20|    255|   return x;
   21|    255|}
dl_scheme.cpp:_ZN5Botan12_GLOBAL__N_126check_dl_private_key_inputERKNS_6BigIntERKNS_8DL_GroupE:
   31|    192|BigInt check_dl_private_key_input(const BigInt& x, const DL_Group& group) {
   32|    192|   BOTAN_ARG_CHECK(group.verify_private_element(x), "Invalid discrete logarithm private key value");
  ------------------
  |  |   35|    192|   do {                                                          \
  |  |   36|    192|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    192|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 12, False: 180]
  |  |  ------------------
  |  |   38|     12|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|     12|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|     12|      }                                                          \
  |  |   41|    192|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 192]
  |  |  ------------------
  ------------------
   33|    192|   return x;
   34|    192|}

_ZN5Botan8DL_Group19DER_decode_DL_groupENSt3__14spanIKhLm18446744073709551615EEENS_15DL_Group_FormatENS_15DL_Group_SourceE:
  170|    301|                                                             DL_Group_Source source) {
  171|    301|   BER_Decoder outer(data, BER_Decoder::Limits::DER());
  172|    301|   BER_Decoder inner = outer.start_sequence();
  173|    301|   outer.verify_end();
  174|       |
  175|    301|   if(format == DL_Group_Format::ANSI_X9_57) {
  ------------------
  |  Branch (175:7): [True: 3, False: 298]
  ------------------
  176|       |      /*
  177|       |      This format is p, q, g with no additional data following
  178|       |      */
  179|      3|      BigInt p;
  180|      3|      BigInt q;
  181|      3|      BigInt g;
  182|      3|      inner.decode(p).decode(q).decode(g).verify_end();
  183|      3|      return DL_Group_Data::create(p, q, g, source);
  184|    298|   } else if(format == DL_Group_Format::ANSI_X9_42) {
  ------------------
  |  Branch (184:14): [True: 289, False: 9]
  ------------------
  185|       |      /*
  186|       |      This format is p, g, q with optional cofactor and seed following
  187|       |      */
  188|    289|      BigInt p;
  189|    289|      BigInt g;
  190|    289|      BigInt q;
  191|    289|      inner.decode(p).decode(g).decode(q).discard_remaining();
  192|    289|      return DL_Group_Data::create(p, q, g, source);
  193|    289|   } else if(format == DL_Group_Format::PKCS_3) {
  ------------------
  |  Branch (193:14): [True: 0, False: 9]
  ------------------
  194|       |      /*
  195|       |      This format is p, g followed by optional privateValueLength (recommended exponent size)
  196|       |      */
  197|      0|      BigInt p;
  198|      0|      BigInt g;
  199|      0|      inner.decode(p).decode(g).discard_remaining();
  200|      0|      return DL_Group_Data::create(p, g, source);
  201|      9|   } else {
  202|      9|      throw Invalid_Argument("Unknown DL_Group encoding");
  203|      9|   }
  204|    301|}
_ZNK5Botan8DL_Group4dataEv:
  413|    743|const DL_Group_Data& DL_Group::data() const {
  414|    743|   if(m_data) {
  ------------------
  |  Branch (414:7): [True: 743, False: 0]
  ------------------
  415|    743|      return *m_data;
  416|    743|   }
  417|       |
  418|      0|   throw Invalid_State("DL_Group uninitialized");
  419|    743|}
_ZNK5Botan8DL_Group22verify_private_elementERKNS_6BigIntE:
  438|    192|bool DL_Group::verify_private_element(const BigInt& x) const {
  439|    192|   const BigInt& p = get_p();
  440|    192|   const BigInt& q = get_q();
  441|       |
  442|    192|   if(x <= 1 || x >= p) {
  ------------------
  |  Branch (442:7): [True: 8, False: 184]
  |  Branch (442:17): [True: 1, False: 183]
  ------------------
  443|      9|      return false;
  444|      9|   }
  445|       |
  446|    183|   if(q > 0 && x > q) {
  ------------------
  |  Branch (446:7): [True: 183, False: 0]
  |  Branch (446:16): [True: 3, False: 180]
  ------------------
  447|      3|      return false;
  448|      3|   }
  449|       |
  450|    180|   return true;
  451|    183|}
_ZNK5Botan8DL_Group5get_pEv:
  523|    371|const BigInt& DL_Group::get_p() const {
  524|    371|   return data().p();
  525|    371|}
_ZNK5Botan8DL_Group5get_qEv:
  537|    192|const BigInt& DL_Group::get_q() const {
  538|    192|   return data().q();
  539|    192|}
_ZNK5Botan8DL_Group9power_g_pERKNS_6BigIntEm:
  622|    180|BigInt DL_Group::power_g_p(const BigInt& x, size_t max_x_bits) const {
  623|    180|   return data().power_g_p(x, max_x_bits);
  624|    180|}
_ZN5Botan8DL_GroupC2ENSt3__14spanIKhLm18446744073709551615EEENS_15DL_Group_FormatE:
  681|    301|DL_Group::DL_Group(std::span<const uint8_t> der, DL_Group_Format format) {
  682|    301|   m_data = DER_decode_DL_group(der, format, DL_Group_Source::ExternalSource);
  683|    301|}
_ZN5Botan13DL_Group_Data6createERKNS_6BigIntES3_S3_NS_15DL_Group_SourceE:
   52|    286|                                                   DL_Group_Source source) {
   53|    286|         check_dl_group_params(p, q, g);
   54|    286|         return std::make_shared<DL_Group_Data>(p, q, g, source);
   55|    286|      }
dl_group.cpp:_ZN5Botan12_GLOBAL__N_121check_dl_group_paramsERKNS_6BigIntES3_S3_:
   38|    286|void check_dl_group_params(const BigInt& p, const BigInt& q, const BigInt& g) {
   39|    286|   check_dl_group_params(p, g);
   40|    286|   if(q.signum() <= 0 || q.is_even() || q.bits() >= p.bits()) {
  ------------------
  |  Branch (40:7): [True: 29, False: 257]
  |  Branch (40:26): [True: 1, False: 256]
  |  Branch (40:41): [True: 1, False: 255]
  ------------------
   41|      5|      throw Decoding_Error("Invalid DL group subgroup order");
   42|      5|   }
   43|    286|}
dl_group.cpp:_ZN5Botan12_GLOBAL__N_121check_dl_group_paramsERKNS_6BigIntES3_:
   29|    286|void check_dl_group_params(const BigInt& p, const BigInt& g) {
   30|    286|   if(p.signum() <= 0 || p.is_even() || p.bits() < 3 || p.bits() > 16384) {
  ------------------
  |  Branch (30:7): [True: 2, False: 284]
  |  Branch (30:26): [True: 1, False: 283]
  |  Branch (30:41): [True: 1, False: 282]
  |  Branch (30:57): [True: 0, False: 282]
  ------------------
   31|      4|      throw Decoding_Error("Invalid DL group prime");
   32|      4|   }
   33|    282|   if(g.signum() <= 0 || g < 2 || g >= p) {
  ------------------
  |  Branch (33:7): [True: 2, False: 280]
  |  Branch (33:26): [True: 1, False: 279]
  |  Branch (33:35): [True: 19, False: 260]
  ------------------
   34|     22|      throw Decoding_Error("Invalid DL group generator");
   35|     22|   }
   36|    282|}
_ZN5Botan13DL_Group_DataC2ERKNS_6BigIntES3_S3_NS_15DL_Group_SourceE:
   65|    255|            m_p(p),
   66|    255|            m_q(q),
   67|    255|            m_g(g),
   68|    255|            m_mod_p(Barrett_Reduction::for_public_modulus(p)),
   69|    255|            m_mod_q(Barrett_Reduction::for_public_modulus(q)),
   70|    255|            m_monty_params(m_p, m_mod_p),
   71|    255|            m_monty(monty_precompute(m_monty_params, m_g, /*window bits=*/4)),
   72|    255|            m_p_bits(p.bits()),
   73|    255|            m_q_bits(q.bits()),
   74|       |            // For DL crypto in a prime-order subgroup, security is bounded by
   75|       |            // both the NFS cost in Z_p* and Pollard rho in the q-order subgroup.
   76|    255|            m_estimated_strength(std::min(dl_work_factor(m_p_bits), m_q_bits / 2)),
   77|    255|            m_exponent_bits(dl_exponent_size(m_p_bits)),
   78|    255|            m_source(source) {}
_ZN5Botan13DL_Group_DataD2Ev:
   94|    255|      ~DL_Group_Data() = default;
_ZNK5Botan13DL_Group_Data1pEv:
  101|    371|      const BigInt& p() const { return m_p; }
_ZNK5Botan13DL_Group_Data1qEv:
  103|    192|      const BigInt& q() const { return m_q; }
_ZNK5Botan13DL_Group_Data9power_g_pERKNS_6BigIntEm:
  128|    180|      BigInt power_g_p(const BigInt& k, size_t max_k_bits) const {
  129|    180|         return monty_execute(*m_monty, k, max_k_bits).value();
  130|    180|      }

_ZN5Botan14DSA_PrivateKeyC1ERKNS_19AlgorithmIdentifierENSt3__14spanIKhLm18446744073709551615EEE:
   96|     11|DSA_PrivateKey::DSA_PrivateKey(const AlgorithmIdentifier& alg_id, std::span<const uint8_t> key_bits) {
   97|     11|   m_private_key = std::make_shared<DL_PrivateKey>(alg_id, key_bits, DL_Group_Format::ANSI_X9_57);
   98|     11|   m_public_key = m_private_key->public_key();
   99|       |
  100|     11|   check_dsa_group(m_private_key->group());
  101|     11|}

_ZN5Botan14EC_AffinePointC2ENSt3__110unique_ptrINS_19EC_AffinePoint_DataENS1_14default_deleteIS3_EEEE:
   16|  1.59k|EC_AffinePoint::EC_AffinePoint(std::unique_ptr<EC_AffinePoint_Data> point) : m_point(std::move(point)) {
   17|  1.59k|   BOTAN_ASSERT_NONNULL(m_point);
  ------------------
  |  |  116|  1.59k|   do {                                                                                   \
  |  |  117|  1.59k|      if((ptr) == nullptr) {                                                              \
  |  |  ------------------
  |  |  |  Branch (117:10): [True: 0, False: 1.59k]
  |  |  ------------------
  |  |  118|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                              \
  |  |  119|      0|         Botan::assertion_failure(#ptr " is not null", "", __func__, __FILE__, __LINE__); \
  |  |  120|      0|      }                                                                                   \
  |  |  121|  1.59k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (121:12): [Folded, False: 1.59k]
  |  |  ------------------
  ------------------
   18|  1.59k|}
_ZN5Botan14EC_AffinePointC2EOS0_:
   22|  3.18k|EC_AffinePoint::EC_AffinePoint(EC_AffinePoint&& other) noexcept : m_point(std::move(other.m_point)) {}
_ZNK5Botan14EC_AffinePoint15to_legacy_pointEv:
   46|  1.59k|EC_Point EC_AffinePoint::to_legacy_point() const {
   47|  1.59k|   return m_point->to_legacy_point();
   48|  1.59k|}
_ZNK5Botan14EC_AffinePoint11is_identityEv:
  114|  1.59k|bool EC_AffinePoint::is_identity() const {
  115|  1.59k|   return inner().is_identity();
  116|  1.59k|}
_ZN5Botan14EC_AffinePointD2Ev:
  148|  4.78k|EC_AffinePoint::~EC_AffinePoint() = default;
_ZN5Botan14EC_AffinePoint22deserialize_compressedERKNS_8EC_GroupENSt3__14spanIKhLm18446744073709551615EEE:
  190|    596|                                                                     std::span<const uint8_t> bytes) {
  191|    596|   if(auto pt = group._data()->point_deserialize_compressed(bytes)) {
  ------------------
  |  Branch (191:12): [True: 0, False: 596]
  ------------------
  192|      0|      return EC_AffinePoint(std::move(pt));
  193|    596|   } else {
  194|    596|      return {};
  195|    596|   }
  196|    596|}
_ZN5Botan14EC_AffinePoint24deserialize_uncompressedERKNS_8EC_GroupENSt3__14spanIKhLm18446744073709551615EEE:
  199|    599|                                                                       std::span<const uint8_t> bytes) {
  200|    599|   if(auto pt = group._data()->point_deserialize_uncompressed(bytes)) {
  ------------------
  |  Branch (200:12): [True: 3, False: 596]
  ------------------
  201|      3|      return EC_AffinePoint(std::move(pt));
  202|    596|   } else {
  203|    596|      return {};
  204|    596|   }
  205|    599|}
_ZN5Botan14EC_AffinePoint5g_mulERKNS_9EC_ScalarERNS_21RandomNumberGeneratorE:
  207|  1.59k|EC_AffinePoint EC_AffinePoint::g_mul(const EC_Scalar& scalar, RandomNumberGenerator& rng) {
  208|  1.59k|   auto pt = scalar._inner().group()->point_g_mul(scalar.inner(), rng);
  209|  1.59k|   return EC_AffinePoint(std::move(pt));
  210|  1.59k|}

_ZN5Botan8EC_Group13ec_group_dataEv:
  231|  10.0k|EC_Group_Data_Map& EC_Group::ec_group_data() {
  232|       |   /*
  233|       |   * This exists purely to ensure the allocator is constructed before g_ec_data,
  234|       |   * which ensures that its destructor runs after ~g_ec_data is complete.
  235|       |   */
  236|       |
  237|  10.0k|   static const Allocator_Initializer g_init_allocator;
  238|  10.0k|   static EC_Group_Data_Map g_ec_data;
  239|  10.0k|   return g_ec_data;
  240|  10.0k|}
_ZN5Botan8EC_Group27clear_registered_curve_dataEv:
  243|  6.92k|size_t EC_Group::clear_registered_curve_data() {
  244|  6.92k|   return ec_group_data().clear();
  245|  6.92k|}
_ZN5Botan8EC_Group18load_EC_group_infoEPKcS2_S2_S2_S2_S2_RKNS_3OIDE:
  254|  2.23k|                                                            const OID& oid) {
  255|  2.23k|   BOTAN_ARG_CHECK(oid.has_value(), "EC_Group::load_EC_group_info OID must be set");
  ------------------
  |  |   35|  2.23k|   do {                                                          \
  |  |   36|  2.23k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  2.23k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 2.23k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  2.23k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 2.23k]
  |  |  ------------------
  ------------------
  256|       |
  257|  2.23k|   const BigInt p(p_str);
  258|  2.23k|   const BigInt a(a_str);
  259|  2.23k|   const BigInt b(b_str);
  260|  2.23k|   const BigInt g_x(g_x_str);
  261|  2.23k|   const BigInt g_y(g_y_str);
  262|  2.23k|   const BigInt order(order_str);
  263|  2.23k|   const BigInt cofactor(1);  // implicit
  264|       |
  265|  2.23k|   return EC_Group_Data::create(p, a, b, g_x, g_y, order, cofactor, oid, EC_Group_Source::Builtin);
  266|  2.23k|}
_ZN5Botan8EC_Group19DER_decode_EC_groupENSt3__14spanIKhLm18446744073709551615EEENS_15EC_Group_SourceE:
  270|  3.24k|                                                                              EC_Group_Source source) {
  271|  3.24k|   BER_Decoder dec(der, BER_Decoder::Limits::DER());
  272|       |
  273|  3.24k|   auto next_obj_type = dec.peek_next_object().type_tag();
  274|       |
  275|  3.24k|   if(next_obj_type == ASN1_Type::ObjectId) {
  ------------------
  |  Branch (275:7): [True: 2.08k, False: 1.16k]
  ------------------
  276|  2.08k|      OID oid;
  277|  2.08k|      dec.decode(oid).verify_end();
  278|       |
  279|  2.08k|      auto data = ec_group_data().lookup(oid);
  280|  2.08k|      if(!data) {
  ------------------
  |  Branch (280:10): [True: 105, False: 1.98k]
  ------------------
  281|    105|         throw Decoding_Error(fmt("Unknown namedCurve OID '{}'", oid.to_string()));
  282|    105|      }
  283|       |
  284|  1.98k|      return std::make_pair(data, false);
  285|  2.08k|   } else if(next_obj_type == ASN1_Type::Sequence) {
  ------------------
  |  Branch (285:14): [True: 1.16k, False: 1]
  ------------------
  286|  1.16k|      BigInt p;
  287|  1.16k|      BigInt a;
  288|  1.16k|      BigInt b;
  289|  1.16k|      BigInt order;
  290|  1.16k|      BigInt cofactor;
  291|  1.16k|      std::vector<uint8_t> base_pt;
  292|  1.16k|      std::vector<uint8_t> seed;
  293|       |
  294|  1.16k|      dec.start_sequence()
  295|  1.16k|         .decode_and_check<size_t>(1, "Unknown ECC param version code")
  296|  1.16k|         .start_sequence()
  297|  1.16k|         .decode_and_check(OID({1, 2, 840, 10045, 1, 1}), "Only prime ECC fields supported")
  298|  1.16k|         .decode(p)
  299|  1.16k|         .end_cons()
  300|  1.16k|         .start_sequence()
  301|  1.16k|         .decode_octet_string_bigint(a)
  302|  1.16k|         .decode_octet_string_bigint(b)
  303|  1.16k|         .decode_optional_string(seed, ASN1_Type::BitString, ASN1_Type::BitString, ASN1_Class::Universal)
  304|  1.16k|         .end_cons()
  305|  1.16k|         .decode(base_pt, ASN1_Type::OctetString)
  306|  1.16k|         .decode(order)
  307|  1.16k|         .decode(cofactor)
  308|  1.16k|         .end_cons()
  309|  1.16k|         .verify_end();
  310|       |
  311|       |      // TODO(Botan4) Require cofactor == 1
  312|  1.16k|      if(cofactor <= 0 || cofactor >= 16) {
  ------------------
  |  Branch (312:10): [True: 37, False: 1.12k]
  |  Branch (312:27): [True: 2, False: 1.12k]
  ------------------
  313|      3|         throw Decoding_Error("Invalid ECC cofactor parameter");
  314|      3|      }
  315|       |
  316|  1.15k|      if(p.bits() < 112 || p.bits() > 521 || p.signum() < 0) {
  ------------------
  |  Branch (316:10): [True: 36, False: 1.12k]
  |  Branch (316:28): [True: 1, False: 1.12k]
  |  Branch (316:46): [True: 1, False: 1.11k]
  ------------------
  317|      2|         throw Decoding_Error("ECC p parameter is invalid size");
  318|      2|      }
  319|       |
  320|       |      // A can be zero
  321|  1.15k|      if(a.signum() < 0 || a >= p) {
  ------------------
  |  Branch (321:10): [True: 36, False: 1.11k]
  |  Branch (321:28): [True: 2, False: 1.11k]
  ------------------
  322|      2|         throw Decoding_Error("Invalid ECC a parameter");
  323|      2|      }
  324|       |
  325|       |      // B must be > 0
  326|  1.15k|      if(b.signum() <= 0 || b >= p) {
  ------------------
  |  Branch (326:10): [True: 37, False: 1.11k]
  |  Branch (326:29): [True: 74, False: 1.04k]
  ------------------
  327|     75|         throw Decoding_Error("Invalid ECC b parameter");
  328|     75|      }
  329|       |
  330|  1.07k|      if(order.signum() <= 0 || order >= 2 * p) {
  ------------------
  |  Branch (330:10): [True: 37, False: 1.04k]
  |  Branch (330:10): [True: 2, False: 1.07k]
  |  Branch (330:33): [True: 1, False: 1.04k]
  ------------------
  331|      2|         throw Decoding_Error("Invalid ECC group order");
  332|      2|      }
  333|       |
  334|  1.07k|      if(auto data = ec_group_data().lookup_from_params(p, a, b, base_pt, order, cofactor)) {
  ------------------
  |  Branch (334:15): [True: 178, False: 898]
  ------------------
  335|    178|         return std::make_pair(data, true);
  336|    178|      }
  337|       |
  338|       |      /*
  339|       |      TODO(Botan4) the remaining code is used only to handle the case of decoding an EC_Group
  340|       |      which is neither a builtin group nor a group that was registered by the application.
  341|       |      It can all be removed and replaced with a throw
  342|       |      */
  343|       |
  344|    898|      auto mod_p = Barrett_Reduction::for_public_modulus(p);
  345|    898|      if(!is_bailie_psw_probable_prime(p, mod_p)) {
  ------------------
  |  Branch (345:10): [True: 241, False: 657]
  ------------------
  346|    241|         throw Decoding_Error("ECC p parameter is not a prime");
  347|    241|      }
  348|       |
  349|    657|      auto mod_order = Barrett_Reduction::for_public_modulus(order);
  350|    657|      if(!is_bailie_psw_probable_prime(order, mod_order)) {
  ------------------
  |  Branch (350:10): [True: 335, False: 322]
  ------------------
  351|    335|         throw Decoding_Error("Invalid ECC order parameter");
  352|    335|      }
  353|       |
  354|    322|      const size_t p_bytes = p.bytes();
  355|    322|      if(base_pt.size() != 1 + p_bytes && base_pt.size() != 1 + 2 * p_bytes) {
  ------------------
  |  Branch (355:10): [True: 285, False: 37]
  |  Branch (355:43): [True: 46, False: 239]
  ------------------
  356|     46|         throw Decoding_Error("Invalid ECC base point encoding");
  357|     46|      }
  358|       |
  359|    276|      auto [g_x, g_y] = [&]() {
  360|    276|         const uint8_t hdr = base_pt[0];
  361|       |
  362|    276|         if(hdr == 0x04 && base_pt.size() == 1 + 2 * p_bytes) {
  363|    276|            const BigInt x = BigInt::from_bytes(std::span{base_pt}.subspan(1, p_bytes));
  364|    276|            const BigInt y = BigInt::from_bytes(std::span{base_pt}.subspan(1 + p_bytes, p_bytes));
  365|       |
  366|    276|            if(x < p && y < p) {
  367|    276|               return std::make_pair(x, y);
  368|    276|            }
  369|    276|         } else if((hdr == 0x02 || hdr == 0x03) && base_pt.size() == 1 + p_bytes) {
  370|       |            // TODO(Botan4) remove this branch; we won't support compressed points
  371|    276|            const BigInt x = BigInt::from_bytes(std::span{base_pt}.subspan(1, p_bytes));
  372|    276|            BigInt y = sqrt_modulo_prime(((x * x + a) * x + b) % p, p);
  373|       |
  374|    276|            if(x < p && y >= 0) {
  375|    276|               const bool y_mod_2 = (hdr & 0x01) == 1;
  376|    276|               if(y.get_bit(0) != y_mod_2) {
  377|    276|                  y = p - y;
  378|    276|               }
  379|       |
  380|    276|               return std::make_pair(x, y);
  381|    276|            }
  382|    276|         }
  383|       |
  384|    276|         throw Decoding_Error("Invalid ECC base point encoding");
  385|    276|      }();
  386|       |
  387|       |      // TODO(Botan4) we can remove this check since we'll only accept pre-registered groups
  388|    276|      auto y2 = mod_p.square(g_y);
  389|    276|      auto x3_ax_b = mod_p.reduce(mod_p.cube(g_x) + mod_p.multiply(a, g_x) + b);
  390|    276|      if(y2 != x3_ax_b) {
  ------------------
  |  Branch (390:10): [True: 112, False: 164]
  ------------------
  391|    112|         throw Decoding_Error("Invalid ECC base point");
  392|    112|      }
  393|       |
  394|       |      /*
  395|       |      * Create the group data without registering it in the global map.
  396|       |      *
  397|       |      * Applications that need persistent custom groups should register them
  398|       |      * via the relevant EC_Group constructor
  399|       |      */
  400|    164|      auto data = EC_Group_Data::create(p, a, b, g_x, g_y, order, cofactor, OID(), source);
  401|    164|      return std::make_pair(data, true);
  402|    276|   } else if(next_obj_type == ASN1_Type::Null) {
  ------------------
  |  Branch (402:14): [True: 0, False: 1]
  ------------------
  403|      0|      throw Decoding_Error("Decoding ImplicitCA ECC parameters is not supported");
  404|      1|   } else {
  405|      1|      throw Decoding_Error(
  406|      1|         fmt("Unexpected tag {} while decoding ECC domain params", asn1_tag_to_string(next_obj_type)));
  407|      1|   }
  408|  3.24k|}
_ZN5Botan8EC_GroupD2Ev:
  412|  10.4k|EC_Group::~EC_Group() = default;
_ZN5Botan8EC_GroupC2ERKS0_:
  414|  4.41k|EC_Group::EC_Group(const EC_Group&) = default;
_ZN5Botan8EC_Group8from_OIDERKNS_3OIDE:
  467|     15|EC_Group EC_Group::from_OID(const OID& oid) {
  468|     15|   auto data = ec_group_data().lookup(oid);
  469|       |
  470|     15|   if(!data) {
  ------------------
  |  Branch (470:7): [True: 15, False: 0]
  ------------------
  471|     15|      throw Invalid_Argument(fmt("No EC_Group associated with OID '{}'", oid.to_string()));
  472|     15|   }
  473|       |
  474|      0|   return EC_Group(std::move(data));
  475|     15|}
_ZN5Botan8EC_GroupC2ENSt3__14spanIKhLm18446744073709551615EEE:
  636|  3.24k|EC_Group::EC_Group(std::span<const uint8_t> der) {
  637|  3.24k|   auto data = DER_decode_EC_group(der, EC_Group_Source::ExternalSource);
  638|  3.24k|   m_data = data.first;
  639|  3.24k|   m_explicit_encoding = data.second;
  640|  3.24k|}
_ZNK5Botan8EC_Group4dataEv:
  647|  5.75k|const EC_Group_Data& EC_Group::data() const {
  648|  5.75k|   if(m_data == nullptr) {
  ------------------
  |  Branch (648:7): [True: 0, False: 5.75k]
  ------------------
  649|      0|      throw Invalid_State("EC_Group uninitialized");
  650|      0|   }
  651|  5.75k|   return *m_data;
  652|  5.75k|}
_ZNK5Botan8EC_Group15get_order_bytesEv:
  666|  4.16k|size_t EC_Group::get_order_bytes() const {
  667|  4.16k|   return data().order_bytes();
  668|  4.16k|}
_ZNK5Botan8EC_Group13get_curve_oidEv:
  738|  1.59k|const OID& EC_Group::get_curve_oid() const {
  739|  1.59k|   return data().oid();
  740|  1.59k|}
_ZN5Botan17EC_Group_Data_Map5clearEv:
   31|  6.92k|      size_t clear() {
   32|  6.92k|         const lock_guard_type<mutex_type> lock(m_mutex);
   33|  6.92k|         const size_t count = m_registered_curves.size();
   34|  6.92k|         m_registered_curves.clear();
   35|  6.92k|         return count;
   36|  6.92k|      }
_ZN5Botan17EC_Group_Data_Map6lookupERKNS_3OIDE:
   54|  2.09k|      std::shared_ptr<EC_Group_Data> lookup(const OID& oid) {
   55|  2.09k|         const lock_guard_type<mutex_type> lock(m_mutex);
   56|       |
   57|  2.09k|         for(auto i : m_registered_curves) {
  ------------------
  |  Branch (57:21): [True: 15, False: 2.09k]
  ------------------
   58|     15|            if(i->oid() == oid) {
  ------------------
  |  Branch (58:16): [True: 0, False: 15]
  ------------------
   59|      0|               return i;
   60|      0|            }
   61|     15|         }
   62|       |
   63|       |         // Not found, check hardcoded data
   64|  2.09k|         std::shared_ptr<EC_Group_Data> data = EC_Group::EC_group_info(oid);
   65|       |
   66|  2.09k|         if(data) {
  ------------------
  |  Branch (66:13): [True: 1.97k, False: 120]
  ------------------
   67|       |            // The requested OID may be an alias for a curve whose canonical OID differs
   68|       |            // TODO(Botan4) remove this once we require exactly one canonical OID per curve
   69|  1.97k|            if(data->oid() != oid) {
  ------------------
  |  Branch (69:16): [True: 0, False: 1.97k]
  ------------------
   70|      0|               for(const auto& i : m_registered_curves) {
  ------------------
  |  Branch (70:34): [True: 0, False: 0]
  ------------------
   71|      0|                  if(i->oid() == data->oid()) {
  ------------------
  |  Branch (71:22): [True: 0, False: 0]
  ------------------
   72|      0|                     return i;
   73|      0|                  }
   74|      0|               }
   75|      0|            }
   76|       |
   77|  1.97k|            m_registered_curves.push_back(data);
   78|  1.97k|            return data;
   79|  1.97k|         }
   80|       |
   81|       |         // Nope, unknown curve
   82|    120|         return std::shared_ptr<EC_Group_Data>();
   83|  2.09k|      }
_ZN5Botan17EC_Group_Data_Map18lookup_from_paramsERKNS_6BigIntES3_S3_NSt3__14spanIKhLm18446744073709551615EEES3_S3_:
  159|  1.04k|                                                        const BigInt& cofactor) {
  160|  1.04k|         const lock_guard_type<mutex_type> lock(m_mutex);
  161|       |
  162|  1.04k|         for(auto i : m_registered_curves) {
  ------------------
  |  Branch (162:21): [True: 0, False: 1.04k]
  ------------------
  163|      0|            if(i->params_match(p, a, b, base_pt, order, cofactor)) {
  ------------------
  |  Branch (163:16): [True: 0, False: 0]
  ------------------
  164|      0|               return i;
  165|      0|            }
  166|      0|         }
  167|       |
  168|       |         // Try to use the order as a hint to look up the group id
  169|  1.04k|         const OID oid_from_order = EC_Group::EC_group_identity_from_order(order);
  170|  1.04k|         if(oid_from_order.has_value()) {
  ------------------
  |  Branch (170:13): [True: 261, False: 779]
  ------------------
  171|    261|            auto new_group = EC_Group::EC_group_info(oid_from_order);
  172|       |
  173|       |            // Have to check all params in the (unlikely/malicious) event of an order collision
  174|    261|            if(new_group && new_group->params_match(p, a, b, base_pt, order, cofactor)) {
  ------------------
  |  Branch (174:16): [True: 261, False: 0]
  |  Branch (174:29): [True: 178, False: 83]
  ------------------
  175|    178|               m_registered_curves.push_back(new_group);
  176|    178|               return new_group;
  177|    178|            }
  178|    261|         }
  179|       |
  180|    862|         return {};
  181|  1.04k|      }
ec_group.cpp:_ZZN5Botan8EC_Group19DER_decode_EC_groupENSt3__14spanIKhLm18446744073709551615EEENS_15EC_Group_SourceEENK3$_0clEv:
  359|    239|      auto [g_x, g_y] = [&]() {
  360|    239|         const uint8_t hdr = base_pt[0];
  361|       |
  362|    239|         if(hdr == 0x04 && base_pt.size() == 1 + 2 * p_bytes) {
  ------------------
  |  Branch (362:13): [True: 210, False: 29]
  |  Branch (362:28): [True: 210, False: 0]
  ------------------
  363|    210|            const BigInt x = BigInt::from_bytes(std::span{base_pt}.subspan(1, p_bytes));
  364|    210|            const BigInt y = BigInt::from_bytes(std::span{base_pt}.subspan(1 + p_bytes, p_bytes));
  365|       |
  366|    210|            if(x < p && y < p) {
  ------------------
  |  Branch (366:16): [True: 203, False: 7]
  |  Branch (366:25): [True: 192, False: 11]
  ------------------
  367|    192|               return std::make_pair(x, y);
  368|    192|            }
  369|    210|         } else if((hdr == 0x02 || hdr == 0x03) && base_pt.size() == 1 + p_bytes) {
  ------------------
  |  Branch (369:21): [True: 8, False: 21]
  |  Branch (369:36): [True: 4, False: 17]
  |  Branch (369:52): [True: 0, False: 12]
  ------------------
  370|       |            // TODO(Botan4) remove this branch; we won't support compressed points
  371|      0|            const BigInt x = BigInt::from_bytes(std::span{base_pt}.subspan(1, p_bytes));
  372|      0|            BigInt y = sqrt_modulo_prime(((x * x + a) * x + b) % p, p);
  373|       |
  374|      0|            if(x < p && y >= 0) {
  ------------------
  |  Branch (374:16): [True: 0, False: 0]
  |  Branch (374:25): [True: 0, False: 0]
  ------------------
  375|      0|               const bool y_mod_2 = (hdr & 0x01) == 1;
  376|      0|               if(y.get_bit(0) != y_mod_2) {
  ------------------
  |  Branch (376:19): [True: 0, False: 0]
  ------------------
  377|      0|                  y = p - y;
  378|      0|               }
  379|       |
  380|      0|               return std::make_pair(x, y);
  381|      0|            }
  382|      0|         }
  383|       |
  384|     47|         throw Decoding_Error("Invalid ECC base point encoding");
  385|    239|      }();

_ZN5Botan13EC_Group_DataD2Ev:
   28|  2.31k|EC_Group_Data::~EC_Group_Data() = default;
_ZN5Botan13EC_Group_DataC2ERKNS_6BigIntES3_S3_S3_S3_S3_S3_RKNS_3OIDENS_15EC_Group_SourceE:
   40|  2.31k|      m_p(p),
   41|  2.31k|      m_a(a),
   42|  2.31k|      m_b(b),
   43|  2.31k|      m_g_x(g_x),
   44|  2.31k|      m_g_y(g_y),
   45|  2.31k|      m_order(order),
   46|  2.31k|      m_cofactor(cofactor),
   47|       |#if defined(BOTAN_HAS_LEGACY_EC_POINT)
   48|  2.31k|      m_mod_field(Barrett_Reduction::for_public_modulus(p)),
   49|  2.31k|      m_mod_order(Barrett_Reduction::for_public_modulus(order)),
   50|  2.31k|      m_monty(m_p, m_mod_field),
   51|       |#endif
   52|  2.31k|      m_oid(oid),
   53|  2.31k|      m_p_words(p.sig_words()),
   54|  2.31k|      m_p_bits(p.bits()),
   55|  2.31k|      m_order_bits(order.bits()),
   56|  2.31k|      m_order_bytes((m_order_bits + 7) / 8),
   57|  2.31k|      m_a_is_minus_3(a == p - 3),
   58|  2.31k|      m_a_is_zero(a.is_zero()),
   59|  2.31k|      m_has_cofactor(m_cofactor != 1),
   60|  2.31k|      m_order_is_less_than_p(m_order < p),
   61|  2.31k|      m_source(source) {
   62|       |   // Verify the generator (x, y) satisfies y^2 = x^3 + a*x + b (mod p)
   63|  2.31k|   auto mod_p = Barrett_Reduction::for_public_modulus(p);
   64|  2.31k|   const BigInt y2 = mod_p.square(g_y);
   65|  2.31k|   const BigInt x3_ax_b = mod_p.reduce(mod_p.cube(g_x) + mod_p.multiply(a, g_x) + b);
   66|  2.31k|   if(y2 != x3_ax_b) {
  ------------------
  |  Branch (66:7): [True: 0, False: 2.31k]
  ------------------
   67|      0|      throw Invalid_Argument("EC_Group generator is not on the curve");
   68|      0|   }
   69|       |
   70|       |   // TODO(Botan4) we can assume/assert the OID is set
   71|  2.31k|   if(!m_oid.empty()) {
  ------------------
  |  Branch (71:7): [True: 2.23k, False: 80]
  ------------------
   72|  2.23k|      DER_Encoder der(m_der_named_curve);
   73|  2.23k|      der.encode(m_oid);
   74|       |
   75|  2.23k|      if(const auto name = m_oid.registered_name()) {
  ------------------
  |  Branch (75:21): [True: 2.23k, False: 0]
  ------------------
   76|       |         // returns nullptr if unknown or not supported
   77|  2.23k|         m_pcurve = PCurve::PrimeOrderCurve::for_named_curve(*name);
   78|  2.23k|      }
   79|  2.23k|      if(m_pcurve) {
  ------------------
  |  Branch (79:10): [True: 1.72k, False: 511]
  ------------------
   80|  1.72k|         m_engine = EC_Group_Engine::Optimized;
   81|  1.72k|      }
   82|  2.23k|   }
   83|       |
   84|       |   // Try a generic pcurves instance
   85|  2.31k|   if(!m_pcurve && !m_has_cofactor) {
  ------------------
  |  Branch (85:7): [True: 591, False: 1.72k]
  |  Branch (85:20): [True: 557, False: 34]
  ------------------
   86|    557|      m_pcurve = PCurve::PrimeOrderCurve::from_params(p, a, b, g_x, g_y, order);
   87|    557|      if(m_pcurve) {
  ------------------
  |  Branch (87:10): [True: 342, False: 215]
  ------------------
   88|    342|         m_engine = EC_Group_Engine::Generic;
   89|    342|      }
   90|       |      // possibly still null here, if parameters unsuitable or if the
   91|       |      // pcurves_generic module wasn't included in the build
   92|    557|   }
   93|       |
   94|  2.31k|#if defined(BOTAN_HAS_LEGACY_EC_POINT)
   95|  2.31k|   secure_vector<word> ws;
   96|  2.31k|   m_a_r = m_monty.mul(a, m_monty.R2(), ws);
   97|  2.31k|   m_b_r = m_monty.mul(b, m_monty.R2(), ws);
   98|  2.31k|   if(!m_pcurve) {
  ------------------
  |  Branch (98:7): [True: 249, False: 2.07k]
  ------------------
   99|    249|      m_engine = EC_Group_Engine::Legacy;
  100|    249|   }
  101|       |#else
  102|       |   if(!m_pcurve) {
  103|       |      if(m_oid.empty()) {
  104|       |         throw Not_Implemented("EC_Group this group is not supported in this build configuration");
  105|       |      } else {
  106|       |         throw Not_Implemented(
  107|       |            fmt("EC_Group the group {} is not supported in this build configuration", oid.to_string()));
  108|       |      }
  109|       |   }
  110|       |#endif
  111|  2.31k|}
_ZN5Botan13EC_Group_Data6createERKNS_6BigIntES3_S3_S3_S3_S3_S3_RKNS_3OIDENS_15EC_Group_SourceE:
  121|  2.31k|                                                     EC_Group_Source source) {
  122|  2.31k|   auto group = std::make_shared<EC_Group_Data>(p, a, b, g_x, g_y, order, cofactor, oid, source);
  123|       |
  124|  2.31k|#if defined(BOTAN_HAS_LEGACY_EC_POINT)
  125|  2.31k|   group->m_curve = CurveGFp(group.get());
  126|  2.31k|   group->m_base_point = EC_Point(group->m_curve, g_x, g_y);
  127|  2.31k|   if(!group->m_pcurve) {
  ------------------
  |  Branch (127:7): [True: 249, False: 2.07k]
  ------------------
  128|    249|      group->m_base_mult = std::make_unique<EC_Point_Base_Point_Precompute>(group->m_base_point, group->m_mod_order);
  129|    249|   }
  130|  2.31k|#endif
  131|       |
  132|  2.31k|   return group;
  133|  2.31k|}
_ZNK5Botan13EC_Group_Data12params_matchERKNS_6BigIntES3_S3_NSt3__14spanIKhLm18446744073709551615EEES3_S3_:
  172|    261|                                 const BigInt& cofactor) const {
  173|    261|   if(p != this->p()) {
  ------------------
  |  Branch (173:7): [True: 9, False: 252]
  ------------------
  174|      9|      return false;
  175|      9|   }
  176|    252|   if(a != this->a()) {
  ------------------
  |  Branch (176:7): [True: 2, False: 250]
  ------------------
  177|      2|      return false;
  178|      2|   }
  179|    250|   if(b != this->b()) {
  ------------------
  |  Branch (179:7): [True: 1, False: 249]
  ------------------
  180|      1|      return false;
  181|      1|   }
  182|    249|   if(order != this->order()) {
  ------------------
  |  Branch (182:7): [True: 0, False: 249]
  ------------------
  183|      0|      return false;
  184|      0|   }
  185|    249|   if(cofactor != this->cofactor()) {
  ------------------
  |  Branch (185:7): [True: 5, False: 244]
  ------------------
  186|      5|      return false;
  187|      5|   }
  188|       |
  189|    244|   const size_t field_len = this->p_bytes();
  190|       |
  191|    244|   if(base_pt.size() == 1 + field_len && (base_pt[0] == 0x02 || base_pt[0] == 0x03)) {
  ------------------
  |  Branch (191:7): [True: 0, False: 244]
  |  Branch (191:43): [True: 0, False: 0]
  |  Branch (191:65): [True: 0, False: 0]
  ------------------
  192|       |      // compressed
  193|       |
  194|      0|      const auto g_x = m_g_x.serialize(field_len);
  195|      0|      const auto g_y = m_g_y.is_odd();
  196|       |
  197|      0|      const auto sec1_x = base_pt.subspan(1, field_len);
  198|      0|      const bool sec1_y = (base_pt[0] == 0x03);
  199|       |
  200|      0|      if(!std::ranges::equal(sec1_x, g_x)) {
  ------------------
  |  Branch (200:10): [True: 0, False: 0]
  ------------------
  201|      0|         return false;
  202|      0|      }
  203|       |
  204|      0|      if(sec1_y != g_y) {
  ------------------
  |  Branch (204:10): [True: 0, False: 0]
  ------------------
  205|      0|         return false;
  206|      0|      }
  207|       |
  208|      0|      return true;
  209|    244|   } else if(base_pt.size() == 1 + 2 * field_len && base_pt[0] == 0x04) {
  ------------------
  |  Branch (209:14): [True: 244, False: 0]
  |  Branch (209:53): [True: 243, False: 1]
  ------------------
  210|    243|      const auto g_x = m_g_x.serialize(field_len);
  211|    243|      const auto g_y = m_g_y.serialize(field_len);
  212|       |
  213|    243|      const auto sec1_x = base_pt.subspan(1, field_len);
  214|    243|      const auto sec1_y = base_pt.subspan(1 + field_len, field_len);
  215|       |
  216|    243|      if(!std::ranges::equal(sec1_x, g_x)) {
  ------------------
  |  Branch (216:10): [True: 41, False: 202]
  ------------------
  217|     41|         return false;
  218|     41|      }
  219|       |
  220|    202|      if(!std::ranges::equal(sec1_y, g_y)) {
  ------------------
  |  Branch (220:10): [True: 24, False: 178]
  ------------------
  221|     24|         return false;
  222|     24|      }
  223|       |
  224|    178|      return true;
  225|    202|   } else {
  226|      1|      throw Decoding_Error("Invalid base point encoding in explicit group");
  227|      1|   }
  228|    244|}
_ZNK5Botan13EC_Group_Data18scalar_deserializeENSt3__14spanIKhLm18446744073709551615EEE:
  358|  2.22k|std::unique_ptr<EC_Scalar_Data> EC_Group_Data::scalar_deserialize(std::span<const uint8_t> bytes) const {
  359|  2.22k|   if(bytes.size() != m_order_bytes) {
  ------------------
  |  Branch (359:7): [True: 5, False: 2.21k]
  ------------------
  360|      5|      return nullptr;
  361|      5|   }
  362|       |
  363|  2.21k|   if(m_pcurve) {
  ------------------
  |  Branch (363:7): [True: 1.97k, False: 245]
  ------------------
  364|  1.97k|      if(auto s = m_pcurve->deserialize_scalar(bytes)) {
  ------------------
  |  Branch (364:15): [True: 1.95k, False: 21]
  ------------------
  365|  1.95k|         return std::make_unique<EC_Scalar_Data_PC>(shared_from_this(), *s);
  366|  1.95k|      } else {
  367|     21|         return nullptr;
  368|     21|      }
  369|  1.97k|   } else {
  370|    245|#if defined(BOTAN_HAS_LEGACY_EC_POINT)
  371|    245|      BigInt r(bytes);
  372|       |
  373|    245|      if(r.is_zero() || r >= m_order) {
  ------------------
  |  Branch (373:10): [True: 5, False: 240]
  |  Branch (373:25): [True: 1, False: 239]
  ------------------
  374|      6|         return nullptr;
  375|      6|      }
  376|       |
  377|    239|      return std::make_unique<EC_Scalar_Data_BN>(shared_from_this(), std::move(r));
  378|       |#else
  379|       |      throw Not_Implemented("Legacy EC interfaces disabled in this build configuration");
  380|       |#endif
  381|    245|   }
  382|  2.21k|}
_ZNK5Botan13EC_Group_Data30point_deserialize_uncompressedENSt3__14spanIKhLm18446744073709551615EEE:
  385|    599|   std::span<const uint8_t> bytes) const {
  386|    599|   if(bytes.size() != 1 + 2 * p_bytes() || bytes[0] != 0x04) {
  ------------------
  |  Branch (386:7): [True: 199, False: 400]
  |  Branch (386:44): [True: 17, False: 383]
  ------------------
  387|    216|      return {};
  388|    216|   }
  389|       |
  390|    383|   if(m_pcurve) {
  ------------------
  |  Branch (390:7): [True: 248, False: 135]
  ------------------
  391|    248|      if(auto pt = m_pcurve->deserialize_point_uncompressed(bytes)) {
  ------------------
  |  Branch (391:15): [True: 2, False: 246]
  ------------------
  392|      2|         return std::make_unique<EC_AffinePoint_Data_PC>(shared_from_this(), std::move(*pt));
  393|    246|      } else {
  394|    246|         return {};
  395|    246|      }
  396|    248|   } else {
  397|    135|#if defined(BOTAN_HAS_LEGACY_EC_POINT)
  398|    135|      try {
  399|    135|         auto pt = Botan::OS2ECP(bytes, m_curve);
  400|    135|         return std::make_unique<EC_AffinePoint_Data_BN>(shared_from_this(), std::move(pt));
  401|    135|      } catch(...) {
  402|    134|         return {};
  403|    134|      }
  404|       |#else
  405|       |      throw Not_Implemented("Legacy EC interfaces disabled in this build configuration");
  406|       |#endif
  407|    135|   }
  408|    383|}
_ZNK5Botan13EC_Group_Data28point_deserialize_compressedENSt3__14spanIKhLm18446744073709551615EEE:
  410|    596|std::unique_ptr<EC_AffinePoint_Data> EC_Group_Data::point_deserialize_compressed(std::span<const uint8_t> bytes) const {
  411|    596|   if(bytes.size() != 1 + p_bytes() || (bytes[0] != 0x02 && bytes[0] != 0x03)) {
  ------------------
  |  Branch (411:7): [True: 596, False: 0]
  |  Branch (411:41): [True: 0, False: 0]
  |  Branch (411:61): [True: 0, False: 0]
  ------------------
  412|    596|      return {};
  413|    596|   }
  414|       |
  415|      0|   if(m_pcurve) {
  ------------------
  |  Branch (415:7): [True: 0, False: 0]
  ------------------
  416|      0|      if(auto pt = m_pcurve->deserialize_point_compressed(bytes)) {
  ------------------
  |  Branch (416:15): [True: 0, False: 0]
  ------------------
  417|      0|         return std::make_unique<EC_AffinePoint_Data_PC>(shared_from_this(), std::move(*pt));
  418|      0|      } else {
  419|      0|         return {};
  420|      0|      }
  421|      0|   } else {
  422|      0|#if defined(BOTAN_HAS_LEGACY_EC_POINT)
  423|      0|      try {
  424|      0|         auto pt = Botan::OS2ECP(bytes, m_curve);
  425|      0|         return std::make_unique<EC_AffinePoint_Data_BN>(shared_from_this(), std::move(pt));
  426|      0|      } catch(...) {
  427|      0|         return {};
  428|      0|      }
  429|       |#else
  430|       |      throw Not_Implemented("Legacy EC interfaces disabled in this build configuration");
  431|       |#endif
  432|      0|   }
  433|      0|}
_ZNK5Botan13EC_Group_Data11point_g_mulERKNS_14EC_Scalar_DataERNS_21RandomNumberGeneratorE:
  539|  1.59k|                                                                RandomNumberGenerator& rng) const {
  540|  1.59k|   if(m_pcurve) {
  ------------------
  |  Branch (540:7): [True: 1.49k, False: 99]
  ------------------
  541|  1.49k|      const auto& k = EC_Scalar_Data_PC::checked_ref(scalar);
  542|  1.49k|      auto pt = m_pcurve->point_to_affine(m_pcurve->mul_by_g(k.value(), rng));
  543|  1.49k|      return std::make_unique<EC_AffinePoint_Data_PC>(shared_from_this(), std::move(pt));
  544|  1.49k|   } else {
  545|     99|#if defined(BOTAN_HAS_LEGACY_EC_POINT)
  546|     99|      const auto& group = scalar.group();
  547|     99|      const auto& bn = EC_Scalar_Data_BN::checked_ref(scalar);
  548|       |
  549|     99|      BOTAN_STATE_CHECK(group->m_base_mult != nullptr);
  ------------------
  |  |   51|     99|   do {                                                         \
  |  |   52|     99|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|     99|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 99]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|     99|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 99]
  |  |  ------------------
  ------------------
  550|     99|      std::vector<BigInt> ws;
  551|     99|      auto pt = group->m_base_mult->mul(bn.value(), rng, m_order, ws);
  552|     99|      return std::make_unique<EC_AffinePoint_Data_BN>(shared_from_this(), std::move(pt));
  553|       |#else
  554|       |      throw Not_Implemented("Legacy EC interfaces disabled in this build configuration");
  555|       |#endif
  556|     99|   }
  557|  1.59k|}

_ZN5Botan17EC_Scalar_Data_PC11checked_refERKNS_14EC_Scalar_DataE:
   14|  1.49k|const EC_Scalar_Data_PC& EC_Scalar_Data_PC::checked_ref(const EC_Scalar_Data& data) {
   15|  1.49k|   const auto* p = dynamic_cast<const EC_Scalar_Data_PC*>(&data);
   16|  1.49k|   if(p == nullptr) {
  ------------------
  |  Branch (16:7): [True: 0, False: 1.49k]
  ------------------
   17|      0|      throw Invalid_State("Failed conversion to EC_Scalar_Data_PC");
   18|      0|   }
   19|  1.49k|   return *p;
   20|  1.49k|}
_ZNK5Botan17EC_Scalar_Data_PC5groupEv:
   22|  7.34k|const std::shared_ptr<const EC_Group_Data>& EC_Scalar_Data_PC::group() const {
   23|  7.34k|   return m_group;
   24|  7.34k|}
_ZNK5Botan17EC_Scalar_Data_PC5bytesEv:
   26|  1.95k|size_t EC_Scalar_Data_PC::bytes() const {
   27|  1.95k|   return this->group()->order_bytes();
   28|  1.95k|}
_ZNK5Botan17EC_Scalar_Data_PC5cloneEv:
   30|  1.95k|std::unique_ptr<EC_Scalar_Data> EC_Scalar_Data_PC::clone() const {
   31|  1.95k|   return std::make_unique<EC_Scalar_Data_PC>(this->group(), this->value());
   32|  1.95k|}
_ZNK5Botan17EC_Scalar_Data_PC7is_zeroEv:
   34|  1.95k|bool EC_Scalar_Data_PC::is_zero() const {
   35|  1.95k|   const auto& pcurve = this->group()->pcurve();
   36|  1.95k|   return pcurve.scalar_is_zero(m_v);
   37|  1.95k|}
_ZN5Botan17EC_Scalar_Data_PC7zeroizeEv:
   49|  1.95k|void EC_Scalar_Data_PC::zeroize() {
   50|  1.95k|   m_v._zeroize();
   51|  1.95k|}
_ZNK5Botan17EC_Scalar_Data_PC12serialize_toENSt3__14spanIhLm18446744073709551615EEE:
   82|  1.95k|void EC_Scalar_Data_PC::serialize_to(std::span<uint8_t> bytes) const {
   83|  1.95k|   BOTAN_ARG_CHECK(bytes.size() == m_group->order_bytes(), "Invalid output length");
  ------------------
  |  |   35|  1.95k|   do {                                                          \
  |  |   36|  1.95k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  1.95k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 1.95k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  1.95k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 1.95k]
  |  |  ------------------
  ------------------
   84|  1.95k|   m_group->pcurve().serialize_scalar(bytes, m_v);
   85|  1.95k|}
_ZN5Botan22EC_AffinePoint_Data_PCC2ENSt3__110shared_ptrIKNS_13EC_Group_DataEEENS_6PCurve15PrimeOrderCurve11AffinePointE:
   89|  1.49k|      m_group(std::move(group)), m_pt(std::move(pt)) {
   90|  1.49k|   const auto& pcurve = m_group->pcurve();
   91|       |
   92|  1.49k|   if(!pcurve.affine_point_is_identity(m_pt)) {
  ------------------
  |  Branch (92:7): [True: 1.49k, False: 0]
  ------------------
   93|  1.49k|      m_xy.resize(1 + 2 * field_element_bytes());
   94|  1.49k|      pcurve.serialize_point(m_xy, m_pt);
   95|  1.49k|   }
   96|  1.49k|}
_ZNK5Botan22EC_AffinePoint_Data_PC19field_element_bytesEv:
  130|  2.98k|size_t EC_AffinePoint_Data_PC::field_element_bytes() const {
  131|  2.98k|   return m_group->pcurve().field_element_bytes();
  132|  2.98k|}
_ZNK5Botan22EC_AffinePoint_Data_PC11is_identityEv:
  134|  2.98k|bool EC_AffinePoint_Data_PC::is_identity() const {
  135|  2.98k|   return m_xy.empty();
  136|  2.98k|}
_ZNK5Botan22EC_AffinePoint_Data_PC15to_legacy_pointEv:
  178|  1.49k|EC_Point EC_AffinePoint_Data_PC::to_legacy_point() const {
  179|  1.49k|   if(this->is_identity()) {
  ------------------
  |  Branch (179:7): [True: 0, False: 1.49k]
  ------------------
  180|      0|      return EC_Point(m_group->curve());
  181|  1.49k|   } else {
  182|  1.49k|      const size_t fe_bytes = this->field_element_bytes();
  183|  1.49k|      return EC_Point(m_group->curve(),
  184|  1.49k|                      BigInt::from_bytes(std::span{m_xy}.subspan(1, fe_bytes)),
  185|  1.49k|                      BigInt::from_bytes(std::span{m_xy}.last(fe_bytes)));
  186|  1.49k|   }
  187|  1.49k|}

_ZN5Botan8EC_Group13EC_group_infoERKNS_3OIDE:
   16|  2.35k|std::shared_ptr<EC_Group_Data> EC_Group::EC_group_info(const OID& oid) {
   17|       |   // secp256r1
   18|  2.35k|   if(oid == OID{1, 2, 840, 10045, 3, 1, 7}) {
  ------------------
  |  Branch (18:7): [True: 164, False: 2.19k]
  ------------------
   19|    164|      return load_EC_group_info(
   20|    164|         "0xFFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF",
   21|    164|         "0xFFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFC",
   22|    164|         "0x5AC635D8AA3A93E7B3EBBD55769886BC651D06B0CC53B0F63BCE3C3E27D2604B",
   23|    164|         "0x6B17D1F2E12C4247F8BCE6E563A440F277037D812DEB33A0F4A13945D898C296",
   24|    164|         "0x4FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5",
   25|    164|         "0xFFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551",
   26|    164|         oid);
   27|    164|   }
   28|       |
   29|       |   // secp384r1
   30|  2.19k|   if(oid == OID{1, 3, 132, 0, 34}) {
  ------------------
  |  Branch (30:7): [True: 215, False: 1.98k]
  ------------------
   31|    215|      return load_EC_group_info(
   32|    215|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFF",
   33|    215|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFC",
   34|    215|         "0xB3312FA7E23EE7E4988E056BE3F82D19181D9C6EFE8141120314088F5013875AC656398D8A2ED19D2A85C8EDD3EC2AEF",
   35|    215|         "0xAA87CA22BE8B05378EB1C71EF320AD746E1D3B628BA79B9859F741E082542A385502F25DBF55296C3A545E3872760AB7",
   36|    215|         "0x3617DE4A96262C6F5D9E98BF9292DC29F8F41DBD289A147CE9DA3113B5F0B8C00A60B1CE1D7E819D7A431D7C90EA0E5F",
   37|    215|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC7634D81F4372DDF581A0DB248B0A77AECEC196ACCC52973",
   38|    215|         oid);
   39|    215|   }
   40|       |
   41|       |   // secp521r1
   42|  1.98k|   if(oid == OID{1, 3, 132, 0, 35}) {
  ------------------
  |  Branch (42:7): [True: 296, False: 1.68k]
  ------------------
   43|    296|      return load_EC_group_info(
   44|    296|         "0x1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF",
   45|    296|         "0x1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC",
   46|    296|         "0x51953EB9618E1C9A1F929A21A0B68540EEA2DA725B99B315F3B8B489918EF109E156193951EC7E937B1652C0BD3BB1BF073573DF883D2C34F1EF451FD46B503F00",
   47|    296|         "0xC6858E06B70404E9CD9E3ECB662395B4429C648139053FB521F828AF606B4D3DBAA14B5E77EFE75928FE1DC127A2FFA8DE3348B3C1856A429BF97E7E31C2E5BD66",
   48|    296|         "0x11839296A789A3BC0045C8A5FB42C7D1BD998F54449579B446817AFBD17273E662C97EE72995EF42640C550B9013FAD0761353C7086A272C24088BE94769FD16650",
   49|    296|         "0x1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA51868783BF2F966B7FCC0148F709A5D03BB5C9B8899C47AEBB6FB71E91386409",
   50|    296|         oid);
   51|    296|   }
   52|       |
   53|       |   // brainpool160r1
   54|  1.68k|   if(oid == OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 1}) {
  ------------------
  |  Branch (54:7): [True: 58, False: 1.62k]
  ------------------
   55|     58|      return load_EC_group_info(
   56|     58|         "0xE95E4A5F737059DC60DFC7AD95B3D8139515620F",
   57|     58|         "0x340E7BE2A280EB74E2BE61BADA745D97E8F7C300",
   58|     58|         "0x1E589A8595423412134FAA2DBDEC95C8D8675E58",
   59|     58|         "0xBED5AF16EA3F6A4F62938C4631EB5AF7BDBCDBC3",
   60|     58|         "0x1667CB477A1A8EC338F94741669C976316DA6321",
   61|     58|         "0xE95E4A5F737059DC60DF5991D45029409E60FC09",
   62|     58|         oid);
   63|     58|   }
   64|       |
   65|       |   // brainpool192r1
   66|  1.62k|   if(oid == OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 3}) {
  ------------------
  |  Branch (66:7): [True: 8, False: 1.61k]
  ------------------
   67|      8|      return load_EC_group_info(
   68|      8|         "0xC302F41D932A36CDA7A3463093D18DB78FCE476DE1A86297",
   69|      8|         "0x6A91174076B1E0E19C39C031FE8685C1CAE040E5C69A28EF",
   70|      8|         "0x469A28EF7C28CCA3DC721D044F4496BCCA7EF4146FBF25C9",
   71|      8|         "0xC0A0647EAAB6A48753B033C56CB0F0900A2F5C4853375FD6",
   72|      8|         "0x14B690866ABD5BB88B5F4828C1490002E6773FA2FA299B8F",
   73|      8|         "0xC302F41D932A36CDA7A3462F9E9E916B5BE8F1029AC4ACC1",
   74|      8|         oid);
   75|      8|   }
   76|       |
   77|       |   // brainpool224r1
   78|  1.61k|   if(oid == OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 5}) {
  ------------------
  |  Branch (78:7): [True: 78, False: 1.54k]
  ------------------
   79|     78|      return load_EC_group_info(
   80|     78|         "0xD7C134AA264366862A18302575D1D787B09F075797DA89F57EC8C0FF",
   81|     78|         "0x68A5E62CA9CE6C1C299803A6C1530B514E182AD8B0042A59CAD29F43",
   82|     78|         "0x2580F63CCFE44138870713B1A92369E33E2135D266DBB372386C400B",
   83|     78|         "0xD9029AD2C7E5CF4340823B2A87DC68C9E4CE3174C1E6EFDEE12C07D",
   84|     78|         "0x58AA56F772C0726F24C6B89E4ECDAC24354B9E99CAA3F6D3761402CD",
   85|     78|         "0xD7C134AA264366862A18302575D0FB98D116BC4B6DDEBCA3A5A7939F",
   86|     78|         oid);
   87|     78|   }
   88|       |
   89|       |   // brainpool256r1
   90|  1.54k|   if(oid == OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 7}) {
  ------------------
  |  Branch (90:7): [True: 192, False: 1.34k]
  ------------------
   91|    192|      return load_EC_group_info(
   92|    192|         "0xA9FB57DBA1EEA9BC3E660A909D838D726E3BF623D52620282013481D1F6E5377",
   93|    192|         "0x7D5A0975FC2C3057EEF67530417AFFE7FB8055C126DC5C6CE94A4B44F330B5D9",
   94|    192|         "0x26DC5C6CE94A4B44F330B5D9BBD77CBF958416295CF7E1CE6BCCDC18FF8C07B6",
   95|    192|         "0x8BD2AEB9CB7E57CB2C4B482FFC81B7AFB9DE27E1E3BD23C23A4453BD9ACE3262",
   96|    192|         "0x547EF835C3DAC4FD97F8461A14611DC9C27745132DED8E545C1D54C72F046997",
   97|    192|         "0xA9FB57DBA1EEA9BC3E660A909D838D718C397AA3B561A6F7901E0E82974856A7",
   98|    192|         oid);
   99|    192|   }
  100|       |
  101|       |   // brainpool320r1
  102|  1.34k|   if(oid == OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 9}) {
  ------------------
  |  Branch (102:7): [True: 95, False: 1.25k]
  ------------------
  103|     95|      return load_EC_group_info(
  104|     95|         "0xD35E472036BC4FB7E13C785ED201E065F98FCFA6F6F40DEF4F92B9EC7893EC28FCD412B1F1B32E27",
  105|     95|         "0x3EE30B568FBAB0F883CCEBD46D3F3BB8A2A73513F5EB79DA66190EB085FFA9F492F375A97D860EB4",
  106|     95|         "0x520883949DFDBC42D3AD198640688A6FE13F41349554B49ACC31DCCD884539816F5EB4AC8FB1F1A6",
  107|     95|         "0x43BD7E9AFB53D8B85289BCC48EE5BFE6F20137D10A087EB6E7871E2A10A599C710AF8D0D39E20611",
  108|     95|         "0x14FDD05545EC1CC8AB4093247F77275E0743FFED117182EAA9C77877AAAC6AC7D35245D1692E8EE1",
  109|     95|         "0xD35E472036BC4FB7E13C785ED201E065F98FCFA5B68F12A32D482EC7EE8658E98691555B44C59311",
  110|     95|         oid);
  111|     95|   }
  112|       |
  113|       |   // brainpool384r1
  114|  1.25k|   if(oid == OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 11}) {
  ------------------
  |  Branch (114:7): [True: 177, False: 1.07k]
  ------------------
  115|    177|      return load_EC_group_info(
  116|    177|         "0x8CB91E82A3386D280F5D6F7E50E641DF152F7109ED5456B412B1DA197FB71123ACD3A729901D1A71874700133107EC53",
  117|    177|         "0x7BC382C63D8C150C3C72080ACE05AFA0C2BEA28E4FB22787139165EFBA91F90F8AA5814A503AD4EB04A8C7DD22CE2826",
  118|    177|         "0x4A8C7DD22CE28268B39B55416F0447C2FB77DE107DCD2A62E880EA53EEB62D57CB4390295DBC9943AB78696FA504C11",
  119|    177|         "0x1D1C64F068CF45FFA2A63A81B7C13F6B8847A3E77EF14FE3DB7FCAFE0CBD10E8E826E03436D646AAEF87B2E247D4AF1E",
  120|    177|         "0x8ABE1D7520F9C2A45CB1EB8E95CFD55262B70B29FEEC5864E19C054FF99129280E4646217791811142820341263C5315",
  121|    177|         "0x8CB91E82A3386D280F5D6F7E50E641DF152F7109ED5456B31F166E6CAC0425A7CF3AB6AF6B7FC3103B883202E9046565",
  122|    177|         oid);
  123|    177|   }
  124|       |
  125|       |   // brainpool512r1
  126|  1.07k|   if(oid == OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 13}) {
  ------------------
  |  Branch (126:7): [True: 196, False: 880]
  ------------------
  127|    196|      return load_EC_group_info(
  128|    196|         "0xAADD9DB8DBE9C48B3FD4E6AE33C9FC07CB308DB3B3C9D20ED6639CCA703308717D4D9B009BC66842AECDA12AE6A380E62881FF2F2D82C68528AA6056583A48F3",
  129|    196|         "0x7830A3318B603B89E2327145AC234CC594CBDD8D3DF91610A83441CAEA9863BC2DED5D5AA8253AA10A2EF1C98B9AC8B57F1117A72BF2C7B9E7C1AC4D77FC94CA",
  130|    196|         "0x3DF91610A83441CAEA9863BC2DED5D5AA8253AA10A2EF1C98B9AC8B57F1117A72BF2C7B9E7C1AC4D77FC94CADC083E67984050B75EBAE5DD2809BD638016F723",
  131|    196|         "0x81AEE4BDD82ED9645A21322E9C4C6A9385ED9F70B5D916C1B43B62EEF4D0098EFF3B1F78E2D0D48D50D1687B93B97D5F7C6D5047406A5E688B352209BCB9F822",
  132|    196|         "0x7DDE385D566332ECC0EABFA9CF7822FDF209F70024A57B1AA000C55B881F8111B2DCDE494A5F485E5BCA4BD88A2763AED1CA2B2FA8F0540678CD1E0F3AD80892",
  133|    196|         "0xAADD9DB8DBE9C48B3FD4E6AE33C9FC07CB308DB3B3C9D20ED6639CCA70330870553E5C414CA92619418661197FAC10471DB1D381085DDADDB58796829CA90069",
  134|    196|         oid);
  135|    196|   }
  136|       |
  137|       |   // frp256v1
  138|    880|   if(oid == OID{1, 2, 250, 1, 223, 101, 256, 1}) {
  ------------------
  |  Branch (138:7): [True: 0, False: 880]
  ------------------
  139|      0|      return load_EC_group_info(
  140|      0|         "0xF1FD178C0B3AD58F10126DE8CE42435B3961ADBCABC8CA6DE8FCF353D86E9C03",
  141|      0|         "0xF1FD178C0B3AD58F10126DE8CE42435B3961ADBCABC8CA6DE8FCF353D86E9C00",
  142|      0|         "0xEE353FCA5428A9300D4ABA754A44C00FDFEC0C9AE4B1A1803075ED967B7BB73F",
  143|      0|         "0xB6B3D4C356C139EB31183D4749D423958C27D2DCAF98B70164C97A2DD98F5CFF",
  144|      0|         "0x6142E0F7C8B204911F9271F0F3ECEF8C2701C307E8E4C9E183115A1554062CFB",
  145|      0|         "0xF1FD178C0B3AD58F10126DE8CE42435B53DC67E140D2BF941FFDD459C6D655E1",
  146|      0|         oid);
  147|      0|   }
  148|       |
  149|       |   // gost_256A
  150|    880|   if(oid == OID{1, 2, 643, 7, 1, 2, 1, 1, 1} || oid == OID{1, 2, 643, 2, 2, 35, 1} || oid == OID{1, 2, 643, 2, 2, 36, 0}) {
  ------------------
  |  Branch (150:7): [True: 0, False: 880]
  |  Branch (150:7): [True: 0, False: 880]
  |  Branch (150:50): [True: 0, False: 880]
  |  Branch (150:88): [True: 0, False: 880]
  ------------------
  151|      0|      return load_EC_group_info(
  152|      0|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFD97",
  153|      0|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFD94",
  154|      0|         "0xA6",
  155|      0|         "0x1",
  156|      0|         "0x8D91E471E0989CDA27DF505A453F2B7635294F2DDF23E3B122ACC99C9E9F1E14",
  157|      0|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF6C611070995AD10045841B09B761B893",
  158|      0|         OID{1, 2, 643, 7, 1, 2, 1, 1, 1});
  159|      0|   }
  160|       |
  161|       |   // gost_512A
  162|    880|   if(oid == OID{1, 2, 643, 7, 1, 2, 1, 2, 1}) {
  ------------------
  |  Branch (162:7): [True: 0, False: 880]
  ------------------
  163|      0|      return load_EC_group_info(
  164|      0|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFDC7",
  165|      0|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFDC4",
  166|      0|         "0xE8C2505DEDFC86DDC1BD0B2B6667F1DA34B82574761CB0E879BD081CFD0B6265EE3CB090F30D27614CB4574010DA90DD862EF9D4EBEE4761503190785A71C760",
  167|      0|         "0x3",
  168|      0|         "0x7503CFE87A836AE3A61B8816E25450E6CE5E1C93ACF1ABC1778064FDCBEFA921DF1626BE4FD036E93D75E6A50E3A41E98028FE5FC235F5B889A589CB5215F2A4",
  169|      0|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF27E69532F48D89116FF22B8D4E0560609B4B38ABFAD2B85DCACDB1411F10B275",
  170|      0|         oid);
  171|      0|   }
  172|       |
  173|       |   // secp160k1
  174|    880|   if(oid == OID{1, 3, 132, 0, 9}) {
  ------------------
  |  Branch (174:7): [True: 16, False: 864]
  ------------------
  175|     16|      return load_EC_group_info(
  176|     16|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC73",
  177|     16|         "0x0",
  178|     16|         "0x7",
  179|     16|         "0x3B4C382CE37AA192A4019E763036F4F5DD4D7EBB",
  180|     16|         "0x938CF935318FDCED6BC28286531733C3F03C4FEE",
  181|     16|         "0x100000000000000000001B8FA16DFAB9ACA16B6B3",
  182|     16|         oid);
  183|     16|   }
  184|       |
  185|       |   // secp160r1
  186|    864|   if(oid == OID{1, 3, 132, 0, 8}) {
  ------------------
  |  Branch (186:7): [True: 12, False: 852]
  ------------------
  187|     12|      return load_EC_group_info(
  188|     12|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFF",
  189|     12|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFC",
  190|     12|         "0x1C97BEFC54BD7A8B65ACF89F81D4D4ADC565FA45",
  191|     12|         "0x4A96B5688EF573284664698968C38BB913CBFC82",
  192|     12|         "0x23A628553168947D59DCC912042351377AC5FB32",
  193|     12|         "0x100000000000000000001F4C8F927AED3CA752257",
  194|     12|         oid);
  195|     12|   }
  196|       |
  197|       |   // secp160r2
  198|    852|   if(oid == OID{1, 3, 132, 0, 30}) {
  ------------------
  |  Branch (198:7): [True: 23, False: 829]
  ------------------
  199|     23|      return load_EC_group_info(
  200|     23|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC73",
  201|     23|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC70",
  202|     23|         "0xB4E134D3FB59EB8BAB57274904664D5AF50388BA",
  203|     23|         "0x52DCB034293A117E1F4FF11B30F7199D3144CE6D",
  204|     23|         "0xFEAFFEF2E331F296E071FA0DF9982CFEA7D43F2E",
  205|     23|         "0x100000000000000000000351EE786A818F3A1A16B",
  206|     23|         oid);
  207|     23|   }
  208|       |
  209|       |   // secp192k1
  210|    829|   if(oid == OID{1, 3, 132, 0, 31}) {
  ------------------
  |  Branch (210:7): [True: 73, False: 756]
  ------------------
  211|     73|      return load_EC_group_info(
  212|     73|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFEE37",
  213|     73|         "0x0",
  214|     73|         "0x3",
  215|     73|         "0xDB4FF10EC057E9AE26B07D0280B7F4341DA5D1B1EAE06C7D",
  216|     73|         "0x9B2F2F6D9C5628A7844163D015BE86344082AA88D95E2F9D",
  217|     73|         "0xFFFFFFFFFFFFFFFFFFFFFFFE26F2FC170F69466A74DEFD8D",
  218|     73|         oid);
  219|     73|   }
  220|       |
  221|       |   // secp192r1
  222|    756|   if(oid == OID{1, 2, 840, 10045, 3, 1, 1}) {
  ------------------
  |  Branch (222:7): [True: 0, False: 756]
  ------------------
  223|      0|      return load_EC_group_info(
  224|      0|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFF",
  225|      0|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFC",
  226|      0|         "0x64210519E59C80E70FA7E9AB72243049FEB8DEECC146B9B1",
  227|      0|         "0x188DA80EB03090F67CBF20EB43A18800F4FF0AFD82FF1012",
  228|      0|         "0x7192B95FFC8DA78631011ED6B24CDD573F977A11E794811",
  229|      0|         "0xFFFFFFFFFFFFFFFFFFFFFFFF99DEF836146BC9B1B4D22831",
  230|      0|         oid);
  231|      0|   }
  232|       |
  233|       |   // secp224k1
  234|    756|   if(oid == OID{1, 3, 132, 0, 32}) {
  ------------------
  |  Branch (234:7): [True: 148, False: 608]
  ------------------
  235|    148|      return load_EC_group_info(
  236|    148|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFE56D",
  237|    148|         "0x0",
  238|    148|         "0x5",
  239|    148|         "0xA1455B334DF099DF30FC28A169A467E9E47075A90F7E650EB6B7A45C",
  240|    148|         "0x7E089FED7FBA344282CAFBD6F7E319F7C0B0BD59E2CA4BDB556D61A5",
  241|    148|         "0x10000000000000000000000000001DCE8D2EC6184CAF0A971769FB1F7",
  242|    148|         oid);
  243|    148|   }
  244|       |
  245|       |   // secp224r1
  246|    608|   if(oid == OID{1, 3, 132, 0, 33}) {
  ------------------
  |  Branch (246:7): [True: 290, False: 318]
  ------------------
  247|    290|      return load_EC_group_info(
  248|    290|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000001",
  249|    290|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFE",
  250|    290|         "0xB4050A850C04B3ABF54132565044B0B7D7BFD8BA270B39432355FFB4",
  251|    290|         "0xB70E0CBD6BB4BF7F321390B94A03C1D356C21122343280D6115C1D21",
  252|    290|         "0xBD376388B5F723FB4C22DFE6CD4375A05A07476444D5819985007E34",
  253|    290|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFF16A2E0B8F03E13DD29455C5C2A3D",
  254|    290|         oid);
  255|    290|   }
  256|       |
  257|       |   // secp256k1
  258|    318|   if(oid == OID{1, 3, 132, 0, 10}) {
  ------------------
  |  Branch (258:7): [True: 198, False: 120]
  ------------------
  259|    198|      return load_EC_group_info(
  260|    198|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F",
  261|    198|         "0x0",
  262|    198|         "0x7",
  263|    198|         "0x79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798",
  264|    198|         "0x483ADA7726A3C4655DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8",
  265|    198|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141",
  266|    198|         oid);
  267|    198|   }
  268|       |
  269|       |   // sm2p256v1
  270|    120|   if(oid == OID{1, 2, 156, 10197, 1, 301}) {
  ------------------
  |  Branch (270:7): [True: 0, False: 120]
  ------------------
  271|      0|      return load_EC_group_info(
  272|      0|         "0xFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",
  273|      0|         "0xFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",
  274|      0|         "0x28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",
  275|      0|         "0x32C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7",
  276|      0|         "0xBC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0",
  277|      0|         "0xFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",
  278|      0|         oid);
  279|      0|   }
  280|       |
  281|       |   // x962_p192v2
  282|    120|   if(oid == OID{1, 2, 840, 10045, 3, 1, 2}) {
  ------------------
  |  Branch (282:7): [True: 0, False: 120]
  ------------------
  283|      0|      return load_EC_group_info(
  284|      0|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFF",
  285|      0|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFC",
  286|      0|         "0xCC22D6DFB95C6B25E49C0D6364A4E5980C393AA21668D953",
  287|      0|         "0xEEA2BAE7E1497842F2DE7769CFE9C989C072AD696F48034A",
  288|      0|         "0x6574D11D69B6EC7A672BB82A083DF2F2B0847DE970B2DE15",
  289|      0|         "0xFFFFFFFFFFFFFFFFFFFFFFFE5FB1A724DC80418648D8DD31",
  290|      0|         oid);
  291|      0|   }
  292|       |
  293|       |   // x962_p192v3
  294|    120|   if(oid == OID{1, 2, 840, 10045, 3, 1, 3}) {
  ------------------
  |  Branch (294:7): [True: 0, False: 120]
  ------------------
  295|      0|      return load_EC_group_info(
  296|      0|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFF",
  297|      0|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFC",
  298|      0|         "0x22123DC2395A05CAA7423DAECCC94760A7D462256BD56916",
  299|      0|         "0x7D29778100C65A1DA1783716588DCE2B8B4AEE8E228F1896",
  300|      0|         "0x38A90F22637337334B49DCB66A6DC8F9978ACA7648A943B0",
  301|      0|         "0xFFFFFFFFFFFFFFFFFFFFFFFF7A62D031C83F4294F640EC13",
  302|      0|         oid);
  303|      0|   }
  304|       |
  305|       |   // x962_p239v1
  306|    120|   if(oid == OID{1, 2, 840, 10045, 3, 1, 4}) {
  ------------------
  |  Branch (306:7): [True: 0, False: 120]
  ------------------
  307|      0|      return load_EC_group_info(
  308|      0|         "0x7FFFFFFFFFFFFFFFFFFFFFFF7FFFFFFFFFFF8000000000007FFFFFFFFFFF",
  309|      0|         "0x7FFFFFFFFFFFFFFFFFFFFFFF7FFFFFFFFFFF8000000000007FFFFFFFFFFC",
  310|      0|         "0x6B016C3BDCF18941D0D654921475CA71A9DB2FB27D1D37796185C2942C0A",
  311|      0|         "0xFFA963CDCA8816CCC33B8642BEDF905C3D358573D3F27FBBD3B3CB9AAAF",
  312|      0|         "0x7DEBE8E4E90A5DAE6E4054CA530BA04654B36818CE226B39FCCB7B02F1AE",
  313|      0|         "0x7FFFFFFFFFFFFFFFFFFFFFFF7FFFFF9E5E9A9F5D9071FBD1522688909D0B",
  314|      0|         oid);
  315|      0|   }
  316|       |
  317|       |   // x962_p239v2
  318|    120|   if(oid == OID{1, 2, 840, 10045, 3, 1, 5}) {
  ------------------
  |  Branch (318:7): [True: 0, False: 120]
  ------------------
  319|      0|      return load_EC_group_info(
  320|      0|         "0x7FFFFFFFFFFFFFFFFFFFFFFF7FFFFFFFFFFF8000000000007FFFFFFFFFFF",
  321|      0|         "0x7FFFFFFFFFFFFFFFFFFFFFFF7FFFFFFFFFFF8000000000007FFFFFFFFFFC",
  322|      0|         "0x617FAB6832576CBBFED50D99F0249C3FEE58B94BA0038C7AE84C8C832F2C",
  323|      0|         "0x38AF09D98727705120C921BB5E9E26296A3CDCF2F35757A0EAFD87B830E7",
  324|      0|         "0x5B0125E4DBEA0EC7206DA0FC01D9B081329FB555DE6EF460237DFF8BE4BA",
  325|      0|         "0x7FFFFFFFFFFFFFFFFFFFFFFF800000CFA7E8594377D414C03821BC582063",
  326|      0|         oid);
  327|      0|   }
  328|       |
  329|       |   // x962_p239v3
  330|    120|   if(oid == OID{1, 2, 840, 10045, 3, 1, 6}) {
  ------------------
  |  Branch (330:7): [True: 0, False: 120]
  ------------------
  331|      0|      return load_EC_group_info(
  332|      0|         "0x7FFFFFFFFFFFFFFFFFFFFFFF7FFFFFFFFFFF8000000000007FFFFFFFFFFF",
  333|      0|         "0x7FFFFFFFFFFFFFFFFFFFFFFF7FFFFFFFFFFF8000000000007FFFFFFFFFFC",
  334|      0|         "0x255705FA2A306654B1F4CB03D6A750A30C250102D4988717D9BA15AB6D3E",
  335|      0|         "0x6768AE8E18BB92CFCF005C949AA2C6D94853D0E660BBF854B1C9505FE95A",
  336|      0|         "0x1607E6898F390C06BC1D552BAD226F3B6FCFE48B6E818499AF18E3ED6CF3",
  337|      0|         "0x7FFFFFFFFFFFFFFFFFFFFFFF7FFFFF975DEB41B3A6057C3C432146526551",
  338|      0|         oid);
  339|      0|   }
  340|       |
  341|       |   // numsp512d1
  342|    120|   if(oid == OID{1, 3, 6, 1, 4, 1, 25258, 4, 3}) {
  ------------------
  |  Branch (342:7): [True: 0, False: 120]
  ------------------
  343|      0|      return load_EC_group_info(
  344|      0|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFDC7",
  345|      0|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFDC4",
  346|      0|         "0x1D99B",
  347|      0|         "0x2",
  348|      0|         "0x1C282EB23327F9711952C250EA61AD53FCC13031CF6DD336E0B9328433AFBDD8CC5A1C1F0C716FDC724DDE537C2B0ADB00BB3D08DC83755B205CC30D7F83CF28",
  349|      0|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5B3CA4FB94E7831B4FC258ED97D0BDC63B568B36607CD243CE153F390433555D",
  350|      0|         oid);
  351|      0|   }
  352|       |
  353|    120|   return std::shared_ptr<EC_Group_Data>();
  354|    120|}
_ZN5Botan8EC_Group28EC_group_identity_from_orderERKNS_6BigIntE:
  358|  1.04k|   {
  359|  1.04k|   const uint32_t low_bits = static_cast<uint32_t>(order.word_at(0));
  360|       |
  361|  1.04k|   if(low_bits == 0xFC632551 && order == BigInt("0xFFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551")) {
  ------------------
  |  Branch (361:7): [True: 203, False: 837]
  |  Branch (361:7): [True: 164, False: 876]
  |  Branch (361:33): [True: 164, False: 39]
  ------------------
  362|    164|      return OID{1, 2, 840, 10045, 3, 1, 7};
  363|    164|   }
  364|       |
  365|    876|   if(low_bits == 0xCCC52973 && order == BigInt("0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC7634D81F4372DDF581A0DB248B0A77AECEC196ACCC52973")) {
  ------------------
  |  Branch (365:7): [True: 1, False: 875]
  |  Branch (365:7): [True: 0, False: 876]
  |  Branch (365:33): [True: 0, False: 1]
  ------------------
  366|      0|      return OID{1, 3, 132, 0, 34};
  367|      0|   }
  368|       |
  369|    876|   if(low_bits == 0x91386409 && order == BigInt("0x1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA51868783BF2F966B7FCC0148F709A5D03BB5C9B8899C47AEBB6FB71E91386409")) {
  ------------------
  |  Branch (369:7): [True: 120, False: 756]
  |  Branch (369:7): [True: 97, False: 779]
  |  Branch (369:33): [True: 97, False: 23]
  ------------------
  370|     97|      return OID{1, 3, 132, 0, 35};
  371|     97|   }
  372|       |
  373|    779|   if(low_bits == 0x9E60FC09 && order == BigInt("0xE95E4A5F737059DC60DF5991D45029409E60FC09")) {
  ------------------
  |  Branch (373:7): [True: 0, False: 779]
  |  Branch (373:7): [True: 0, False: 779]
  |  Branch (373:33): [True: 0, False: 0]
  ------------------
  374|      0|      return OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 1};
  375|      0|   }
  376|       |
  377|    779|   if(low_bits == 0x9AC4ACC1 && order == BigInt("0xC302F41D932A36CDA7A3462F9E9E916B5BE8F1029AC4ACC1")) {
  ------------------
  |  Branch (377:7): [True: 0, False: 779]
  |  Branch (377:7): [True: 0, False: 779]
  |  Branch (377:33): [True: 0, False: 0]
  ------------------
  378|      0|      return OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 3};
  379|      0|   }
  380|       |
  381|    779|   if(low_bits == 0xA5A7939F && order == BigInt("0xD7C134AA264366862A18302575D0FB98D116BC4B6DDEBCA3A5A7939F")) {
  ------------------
  |  Branch (381:7): [True: 2, False: 777]
  |  Branch (381:7): [True: 0, False: 779]
  |  Branch (381:33): [True: 0, False: 2]
  ------------------
  382|      0|      return OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 5};
  383|      0|   }
  384|       |
  385|    779|   if(low_bits == 0x974856A7 && order == BigInt("0xA9FB57DBA1EEA9BC3E660A909D838D718C397AA3B561A6F7901E0E82974856A7")) {
  ------------------
  |  Branch (385:7): [True: 2, False: 777]
  |  Branch (385:7): [True: 0, False: 779]
  |  Branch (385:33): [True: 0, False: 2]
  ------------------
  386|      0|      return OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 7};
  387|      0|   }
  388|       |
  389|    779|   if(low_bits == 0x44C59311 && order == BigInt("0xD35E472036BC4FB7E13C785ED201E065F98FCFA5B68F12A32D482EC7EE8658E98691555B44C59311")) {
  ------------------
  |  Branch (389:7): [True: 1, False: 778]
  |  Branch (389:7): [True: 0, False: 779]
  |  Branch (389:33): [True: 0, False: 1]
  ------------------
  390|      0|      return OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 9};
  391|      0|   }
  392|       |
  393|    779|   if(low_bits == 0xE9046565 && order == BigInt("0x8CB91E82A3386D280F5D6F7E50E641DF152F7109ED5456B31F166E6CAC0425A7CF3AB6AF6B7FC3103B883202E9046565")) {
  ------------------
  |  Branch (393:7): [True: 4, False: 775]
  |  Branch (393:7): [True: 0, False: 779]
  |  Branch (393:33): [True: 0, False: 4]
  ------------------
  394|      0|      return OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 11};
  395|      0|   }
  396|       |
  397|    779|   if(low_bits == 0x9CA90069 && order == BigInt("0xAADD9DB8DBE9C48B3FD4E6AE33C9FC07CB308DB3B3C9D20ED6639CCA70330870553E5C414CA92619418661197FAC10471DB1D381085DDADDB58796829CA90069")) {
  ------------------
  |  Branch (397:7): [True: 2, False: 777]
  |  Branch (397:7): [True: 0, False: 779]
  |  Branch (397:33): [True: 0, False: 2]
  ------------------
  398|      0|      return OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 13};
  399|      0|   }
  400|       |
  401|    779|   if(low_bits == 0xC6D655E1 && order == BigInt("0xF1FD178C0B3AD58F10126DE8CE42435B53DC67E140D2BF941FFDD459C6D655E1")) {
  ------------------
  |  Branch (401:7): [True: 3, False: 776]
  |  Branch (401:7): [True: 0, False: 779]
  |  Branch (401:33): [True: 0, False: 3]
  ------------------
  402|      0|      return OID{1, 2, 250, 1, 223, 101, 256, 1};
  403|      0|   }
  404|       |
  405|    779|   if(low_bits == 0xB761B893 && order == BigInt("0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF6C611070995AD10045841B09B761B893")) {
  ------------------
  |  Branch (405:7): [True: 0, False: 779]
  |  Branch (405:7): [True: 0, False: 779]
  |  Branch (405:33): [True: 0, False: 0]
  ------------------
  406|      0|      return OID{1, 2, 643, 7, 1, 2, 1, 1, 1};
  407|      0|   }
  408|       |
  409|    779|   if(low_bits == 0x1F10B275 && order == BigInt("0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF27E69532F48D89116FF22B8D4E0560609B4B38ABFAD2B85DCACDB1411F10B275")) {
  ------------------
  |  Branch (409:7): [True: 1, False: 778]
  |  Branch (409:7): [True: 0, False: 779]
  |  Branch (409:33): [True: 0, False: 1]
  ------------------
  410|      0|      return OID{1, 2, 643, 7, 1, 2, 1, 2, 1};
  411|      0|   }
  412|       |
  413|    779|   if(low_bits == 0xCA16B6B3 && order == BigInt("0x100000000000000000001B8FA16DFAB9ACA16B6B3")) {
  ------------------
  |  Branch (413:7): [True: 0, False: 779]
  |  Branch (413:7): [True: 0, False: 779]
  |  Branch (413:33): [True: 0, False: 0]
  ------------------
  414|      0|      return OID{1, 3, 132, 0, 9};
  415|      0|   }
  416|       |
  417|    779|   if(low_bits == 0xCA752257 && order == BigInt("0x100000000000000000001F4C8F927AED3CA752257")) {
  ------------------
  |  Branch (417:7): [True: 0, False: 779]
  |  Branch (417:7): [True: 0, False: 779]
  |  Branch (417:33): [True: 0, False: 0]
  ------------------
  418|      0|      return OID{1, 3, 132, 0, 8};
  419|      0|   }
  420|       |
  421|    779|   if(low_bits == 0xF3A1A16B && order == BigInt("0x100000000000000000000351EE786A818F3A1A16B")) {
  ------------------
  |  Branch (421:7): [True: 1, False: 778]
  |  Branch (421:7): [True: 0, False: 779]
  |  Branch (421:33): [True: 0, False: 1]
  ------------------
  422|      0|      return OID{1, 3, 132, 0, 30};
  423|      0|   }
  424|       |
  425|    779|   if(low_bits == 0x74DEFD8D && order == BigInt("0xFFFFFFFFFFFFFFFFFFFFFFFE26F2FC170F69466A74DEFD8D")) {
  ------------------
  |  Branch (425:7): [True: 1, False: 778]
  |  Branch (425:7): [True: 0, False: 779]
  |  Branch (425:33): [True: 0, False: 1]
  ------------------
  426|      0|      return OID{1, 3, 132, 0, 31};
  427|      0|   }
  428|       |
  429|    779|   if(low_bits == 0xB4D22831 && order == BigInt("0xFFFFFFFFFFFFFFFFFFFFFFFF99DEF836146BC9B1B4D22831")) {
  ------------------
  |  Branch (429:7): [True: 0, False: 779]
  |  Branch (429:7): [True: 0, False: 779]
  |  Branch (429:33): [True: 0, False: 0]
  ------------------
  430|      0|      return OID{1, 2, 840, 10045, 3, 1, 1};
  431|      0|   }
  432|       |
  433|    779|   if(low_bits == 0x769FB1F7 && order == BigInt("0x10000000000000000000000000001DCE8D2EC6184CAF0A971769FB1F7")) {
  ------------------
  |  Branch (433:7): [True: 1, False: 778]
  |  Branch (433:7): [True: 0, False: 779]
  |  Branch (433:33): [True: 0, False: 1]
  ------------------
  434|      0|      return OID{1, 3, 132, 0, 32};
  435|      0|   }
  436|       |
  437|    779|   if(low_bits == 0x5C5C2A3D && order == BigInt("0xFFFFFFFFFFFFFFFFFFFFFFFFFFFF16A2E0B8F03E13DD29455C5C2A3D")) {
  ------------------
  |  Branch (437:7): [True: 2, False: 777]
  |  Branch (437:7): [True: 0, False: 779]
  |  Branch (437:33): [True: 0, False: 2]
  ------------------
  438|      0|      return OID{1, 3, 132, 0, 33};
  439|      0|   }
  440|       |
  441|    779|   if(low_bits == 0xD0364141 && order == BigInt("0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141")) {
  ------------------
  |  Branch (441:7): [True: 1, False: 778]
  |  Branch (441:7): [True: 0, False: 779]
  |  Branch (441:33): [True: 0, False: 1]
  ------------------
  442|      0|      return OID{1, 3, 132, 0, 10};
  443|      0|   }
  444|       |
  445|    779|   if(low_bits == 0x39D54123 && order == BigInt("0xFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123")) {
  ------------------
  |  Branch (445:7): [True: 0, False: 779]
  |  Branch (445:7): [True: 0, False: 779]
  |  Branch (445:33): [True: 0, False: 0]
  ------------------
  446|      0|      return OID{1, 2, 156, 10197, 1, 301};
  447|      0|   }
  448|       |
  449|    779|   if(low_bits == 0x48D8DD31 && order == BigInt("0xFFFFFFFFFFFFFFFFFFFFFFFE5FB1A724DC80418648D8DD31")) {
  ------------------
  |  Branch (449:7): [True: 0, False: 779]
  |  Branch (449:7): [True: 0, False: 779]
  |  Branch (449:33): [True: 0, False: 0]
  ------------------
  450|      0|      return OID{1, 2, 840, 10045, 3, 1, 2};
  451|      0|   }
  452|       |
  453|    779|   if(low_bits == 0xF640EC13 && order == BigInt("0xFFFFFFFFFFFFFFFFFFFFFFFF7A62D031C83F4294F640EC13")) {
  ------------------
  |  Branch (453:7): [True: 1, False: 778]
  |  Branch (453:7): [True: 0, False: 779]
  |  Branch (453:33): [True: 0, False: 1]
  ------------------
  454|      0|      return OID{1, 2, 840, 10045, 3, 1, 3};
  455|      0|   }
  456|       |
  457|    779|   if(low_bits == 0x88909D0B && order == BigInt("0x7FFFFFFFFFFFFFFFFFFFFFFF7FFFFF9E5E9A9F5D9071FBD1522688909D0B")) {
  ------------------
  |  Branch (457:7): [True: 2, False: 777]
  |  Branch (457:7): [True: 0, False: 779]
  |  Branch (457:33): [True: 0, False: 2]
  ------------------
  458|      0|      return OID{1, 2, 840, 10045, 3, 1, 4};
  459|      0|   }
  460|       |
  461|    779|   if(low_bits == 0xBC582063 && order == BigInt("0x7FFFFFFFFFFFFFFFFFFFFFFF800000CFA7E8594377D414C03821BC582063")) {
  ------------------
  |  Branch (461:7): [True: 2, False: 777]
  |  Branch (461:7): [True: 0, False: 779]
  |  Branch (461:33): [True: 0, False: 2]
  ------------------
  462|      0|      return OID{1, 2, 840, 10045, 3, 1, 5};
  463|      0|   }
  464|       |
  465|    779|   if(low_bits == 0x46526551 && order == BigInt("0x7FFFFFFFFFFFFFFFFFFFFFFF7FFFFF975DEB41B3A6057C3C432146526551")) {
  ------------------
  |  Branch (465:7): [True: 2, False: 777]
  |  Branch (465:7): [True: 0, False: 779]
  |  Branch (465:33): [True: 0, False: 2]
  ------------------
  466|      0|      return OID{1, 2, 840, 10045, 3, 1, 6};
  467|      0|   }
  468|       |
  469|    779|   if(low_bits == 0x0433555D && order == BigInt("0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5B3CA4FB94E7831B4FC258ED97D0BDC63B568B36607CD243CE153F390433555D")) {
  ------------------
  |  Branch (469:7): [True: 2, False: 777]
  |  Branch (469:7): [True: 0, False: 779]
  |  Branch (469:33): [True: 0, False: 2]
  ------------------
  470|      0|      return OID{1, 3, 6, 1, 4, 1, 25258, 4, 3};
  471|      0|   }
  472|       |
  473|    779|   return OID();
  474|    779|}

_ZN5Botan9EC_ScalarC2ENSt3__110unique_ptrINS_14EC_Scalar_DataENS1_14default_deleteIS3_EEEE:
   19|  2.18k|EC_Scalar::EC_Scalar(std::unique_ptr<EC_Scalar_Data> scalar) : m_scalar(std::move(scalar)) {
   20|  2.18k|   BOTAN_ASSERT_NONNULL(m_scalar);
  ------------------
  |  |  116|  2.18k|   do {                                                                                   \
  |  |  117|  2.18k|      if((ptr) == nullptr) {                                                              \
  |  |  ------------------
  |  |  |  Branch (117:10): [True: 0, False: 2.18k]
  |  |  ------------------
  |  |  118|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                              \
  |  |  119|      0|         Botan::assertion_failure(#ptr " is not null", "", __func__, __FILE__, __LINE__); \
  |  |  120|      0|      }                                                                                   \
  |  |  121|  2.18k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (121:12): [Folded, False: 2.18k]
  |  |  ------------------
  ------------------
   21|  2.18k|}
_ZN5Botan9EC_ScalarC2ERKS0_:
   23|  2.18k|EC_Scalar::EC_Scalar(const EC_Scalar& other) : m_scalar(other.inner().clone()) {}
_ZN5Botan9EC_ScalarC2EOS0_:
   25|  4.37k|EC_Scalar::EC_Scalar(EC_Scalar&& other) noexcept : m_scalar(std::move(other.m_scalar)) {}
_ZN5Botan9EC_ScalarD2Ev:
   46|  8.75k|EC_Scalar::~EC_Scalar() = default;
_ZNK5Botan9EC_Scalar9to_bigintEv:
   80|  2.18k|BigInt EC_Scalar::to_bigint() const {
   81|  2.18k|   secure_vector<uint8_t> bytes(m_scalar->bytes());
   82|  2.18k|   m_scalar->serialize_to(bytes);
   83|  2.18k|   return BigInt::from_bytes(bytes);
   84|  2.18k|}
_ZN5Botan9EC_Scalar11deserializeERKNS_8EC_GroupENSt3__14spanIKhLm18446744073709551615EEE:
  122|  2.22k|std::optional<EC_Scalar> EC_Scalar::deserialize(const EC_Group& group, std::span<const uint8_t> bytes) {
  123|  2.22k|   if(auto v = group._data()->scalar_deserialize(bytes)) {
  ------------------
  |  Branch (123:12): [True: 2.18k, False: 32]
  ------------------
  124|  2.18k|      return EC_Scalar(std::move(v));
  125|  2.18k|   } else {
  126|     32|      return {};
  127|     32|   }
  128|  2.22k|}
_ZNK5Botan9EC_Scalar7is_zeroEv:
  137|  2.18k|bool EC_Scalar::is_zero() const {
  138|  2.18k|   return inner().is_zero();
  139|  2.18k|}
_ZN5Botan9EC_Scalar7zeroizeEv:
  182|  2.18k|void EC_Scalar::zeroize() {
  183|  2.18k|   m_scalar->zeroize();
  184|  2.18k|}

_ZN5Botan17EC_Scalar_Data_BN11checked_refERKNS_14EC_Scalar_DataE:
   15|     99|const EC_Scalar_Data_BN& EC_Scalar_Data_BN::checked_ref(const EC_Scalar_Data& data) {
   16|     99|   const auto* p = dynamic_cast<const EC_Scalar_Data_BN*>(&data);
   17|     99|   if(p == nullptr) {
  ------------------
  |  Branch (17:7): [True: 0, False: 99]
  ------------------
   18|      0|      throw Invalid_State("Failed conversion to EC_Scalar_Data_BN");
   19|      0|   }
   20|     99|   return *p;
   21|     99|}
_ZNK5Botan17EC_Scalar_Data_BN5groupEv:
   23|    676|const std::shared_ptr<const EC_Group_Data>& EC_Scalar_Data_BN::group() const {
   24|    676|   return m_group;
   25|    676|}
_ZNK5Botan17EC_Scalar_Data_BN5bytesEv:
   27|    239|size_t EC_Scalar_Data_BN::bytes() const {
   28|    239|   return this->group()->order_bytes();
   29|    239|}
_ZNK5Botan17EC_Scalar_Data_BN5cloneEv:
   31|    239|std::unique_ptr<EC_Scalar_Data> EC_Scalar_Data_BN::clone() const {
   32|    239|   return std::make_unique<EC_Scalar_Data_BN>(this->group(), this->value());
   33|    239|}
_ZNK5Botan17EC_Scalar_Data_BN7is_zeroEv:
   35|    239|bool EC_Scalar_Data_BN::is_zero() const {
   36|    239|   return this->value().is_zero();
   37|    239|}
_ZN5Botan17EC_Scalar_Data_BN7zeroizeEv:
   48|    239|void EC_Scalar_Data_BN::zeroize() {
   49|       |   // BigInt stores its value in a secure_vector, after swapping the existing
   50|       |   // value will go out of scope (inside `zero`) and be wiped properly.
   51|    239|   BigInt zero;
   52|    239|   std::swap(m_v, zero);
   53|    239|}
_ZNK5Botan17EC_Scalar_Data_BN12serialize_toENSt3__14spanIhLm18446744073709551615EEE:
   92|    239|void EC_Scalar_Data_BN::serialize_to(std::span<uint8_t> bytes) const {
   93|    239|   BOTAN_ARG_CHECK(bytes.size() == m_group->order_bytes(), "Invalid output length");
  ------------------
  |  |   35|    239|   do {                                                          \
  |  |   36|    239|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    239|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 239]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    239|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 239]
  |  |  ------------------
  ------------------
   94|    239|   m_v.serialize_to(bytes);
   95|    239|}
_ZN5Botan22EC_AffinePoint_Data_BNC2ENSt3__110shared_ptrIKNS_13EC_Group_DataEEENS_8EC_PointE:
   98|    100|      m_group(std::move(group)), m_pt(std::move(pt)) {
   99|    100|   if(!m_pt.is_zero()) {
  ------------------
  |  Branch (99:7): [True: 100, False: 0]
  ------------------
  100|    100|      m_pt.force_affine();
  101|    100|      m_xy = m_pt.xy_bytes();
  102|    100|   }
  103|    100|}
_ZNK5Botan22EC_AffinePoint_Data_BN11is_identityEv:
  153|    100|bool EC_AffinePoint_Data_BN::is_identity() const {
  154|    100|   return m_xy.empty();
  155|    100|}

_ZN5Botan8CurveGFpC2EPKNS_13EC_Group_DataE:
   28|  2.31k|CurveGFp::CurveGFp(const EC_Group_Data* group) : m_group(group) {
   29|  2.31k|   BOTAN_ASSERT_NONNULL(m_group);
  ------------------
  |  |  116|  2.31k|   do {                                                                                   \
  |  |  117|  2.31k|      if((ptr) == nullptr) {                                                              \
  |  |  ------------------
  |  |  |  Branch (117:10): [True: 0, False: 2.31k]
  |  |  ------------------
  |  |  118|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                              \
  |  |  119|      0|         Botan::assertion_failure(#ptr " is not null", "", __func__, __FILE__, __LINE__); \
  |  |  120|      0|      }                                                                                   \
  |  |  121|  2.31k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (121:12): [Folded, False: 2.31k]
  |  |  ------------------
  ------------------
   30|  2.31k|}
_ZNK5Botan8CurveGFp5groupEv:
   32|   323k|const EC_Group_Data& CurveGFp::group() const {
   33|   323k|   BOTAN_ASSERT_NONNULL(m_group);
  ------------------
  |  |  116|   323k|   do {                                                                                   \
  |  |  117|   323k|      if((ptr) == nullptr) {                                                              \
  |  |  ------------------
  |  |  |  Branch (117:10): [True: 0, False: 323k]
  |  |  ------------------
  |  |  118|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                              \
  |  |  119|      0|         Botan::assertion_failure(#ptr " is not null", "", __func__, __FILE__, __LINE__); \
  |  |  120|      0|      }                                                                                   \
  |  |  121|   323k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (121:12): [Folded, False: 323k]
  |  |  ------------------
  ------------------
   34|   323k|   return *m_group;
   35|   323k|}
_ZNK5Botan8CurveGFp5get_aEv:
   37|    135|const BigInt& CurveGFp::get_a() const {
   38|    135|   return this->group().a();
   39|    135|}
_ZNK5Botan8CurveGFp5get_bEv:
   41|    135|const BigInt& CurveGFp::get_b() const {
   42|    135|   return this->group().b();
   43|    135|}
_ZNK5Botan8CurveGFp5get_pEv:
   45|    135|const BigInt& CurveGFp::get_p() const {
   46|    135|   return this->group().p();
   47|    135|}
_ZNK5Botan8CurveGFp11get_p_wordsEv:
   49|   112k|size_t CurveGFp::get_p_words() const {
   50|   112k|   return this->group().p_words();
   51|   112k|}
_ZN5Botan8EC_PointC2ERKNS_8CurveGFpE:
  108|     99|EC_Point::EC_Point(const CurveGFp& curve) : m_curve(curve), m_x(0), m_y(curve.group().monty().R1()), m_z(0) {}
_ZNK5Botan8EC_Point4zeroEv:
  110|     99|EC_Point EC_Point::zero() const {
  111|     99|   return EC_Point(m_curve);
  112|     99|}
_ZN5Botan8EC_PointC2ERKNS_8CurveGFpENS_6BigIntES4_:
  115|  3.94k|      m_curve(curve), m_x(std::move(x)), m_y(std::move(y)), m_z(m_curve.group().monty().R1()) {
  116|  3.94k|   const auto& group = m_curve.group();
  117|       |
  118|  3.94k|   if(m_x < 0 || m_x >= group.p()) {
  ------------------
  |  Branch (118:7): [True: 0, False: 3.94k]
  |  Branch (118:18): [True: 0, False: 3.94k]
  ------------------
  119|      0|      throw Invalid_Argument("Invalid EC_Point affine x");
  120|      0|   }
  121|  3.94k|   if(m_y < 0 || m_y >= group.p()) {
  ------------------
  |  Branch (121:7): [True: 0, False: 3.94k]
  |  Branch (121:18): [True: 0, False: 3.94k]
  ------------------
  122|      0|      throw Invalid_Argument("Invalid EC_Point affine y");
  123|      0|   }
  124|       |
  125|  3.94k|   secure_vector<word> monty_ws(monty_ws_size(group));
  126|       |
  127|  3.94k|   to_rep(group, m_x, monty_ws);
  128|  3.94k|   to_rep(group, m_y, monty_ws);
  129|  3.94k|}
_ZN5Botan8EC_Point10add_affineEPKmmS2_mRNSt3__16vectorINS_6BigIntENS3_9allocatorIS5_EEEE:
  188|  7.13k|   const word x_words[], size_t x_size, const word y_words[], size_t y_size, std::vector<BigInt>& ws_bn) {
  189|  7.13k|   if((CT::all_zeros(x_words, x_size) & CT::all_zeros(y_words, y_size)).as_bool()) {
  ------------------
  |  Branch (189:7): [True: 2.86k, False: 4.27k]
  ------------------
  190|  2.86k|      return;
  191|  2.86k|   }
  192|       |
  193|  4.27k|   const auto& group = m_curve.group();
  194|       |
  195|  4.27k|   if(is_zero()) {
  ------------------
  |  Branch (195:7): [True: 99, False: 4.17k]
  ------------------
  196|     99|      m_x.set_words(x_words, x_size);
  197|     99|      m_y.set_words(y_words, y_size);
  198|     99|      m_z = group.monty().R1();
  199|     99|      return;
  200|     99|   }
  201|       |
  202|  4.17k|   resize_ws(ws_bn, monty_ws_size(group));
  203|       |
  204|  4.17k|   secure_vector<word>& ws = ws_bn[0].get_word_vector();
  205|  4.17k|   secure_vector<word>& sub_ws = ws_bn[1].get_word_vector();
  206|       |
  207|  4.17k|   BigInt& T0 = ws_bn[2];
  208|  4.17k|   BigInt& T1 = ws_bn[3];
  209|  4.17k|   BigInt& T2 = ws_bn[4];
  210|  4.17k|   BigInt& T3 = ws_bn[5];
  211|  4.17k|   BigInt& T4 = ws_bn[6];
  212|       |
  213|       |   /*
  214|       |   https://hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html#addition-add-1998-cmo-2
  215|       |   simplified with Z2 = 1
  216|       |   */
  217|       |
  218|  4.17k|   const BigInt& p = group.p();
  219|       |
  220|  4.17k|   fe_sqr(group, T3, m_z, ws);                  // z1^2
  221|  4.17k|   fe_mul(group, T4, x_words, x_size, T3, ws);  // x2*z1^2
  222|       |
  223|  4.17k|   fe_mul(group, T2, m_z, T3, ws);              // z1^3
  224|  4.17k|   fe_mul(group, T0, y_words, y_size, T2, ws);  // y2*z1^3
  225|       |
  226|  4.17k|   T4.mod_sub(m_x, p, sub_ws);  // x2*z1^2 - x1*z2^2
  227|       |
  228|  4.17k|   T0.mod_sub(m_y, p, sub_ws);
  229|       |
  230|  4.17k|   if(T4.is_zero()) {
  ------------------
  |  Branch (230:7): [True: 3, False: 4.16k]
  ------------------
  231|      3|      if(T0.is_zero()) {
  ------------------
  |  Branch (231:10): [True: 3, False: 0]
  ------------------
  232|      3|         mult2(ws_bn);
  233|      3|         return;
  234|      3|      }
  235|       |
  236|       |      // setting to zero:
  237|      0|      m_x.clear();
  238|      0|      m_y = group.monty().R1();
  239|      0|      m_z.clear();
  240|      0|      return;
  241|      3|   }
  242|       |
  243|  4.16k|   fe_sqr(group, T2, T4, ws);
  244|       |
  245|  4.16k|   fe_mul(group, T3, m_x, T2, ws);
  246|       |
  247|  4.16k|   fe_mul(group, T1, T2, T4, ws);
  248|       |
  249|  4.16k|   fe_sqr(group, m_x, T0, ws);
  250|  4.16k|   m_x.mod_sub(T1, p, sub_ws);
  251|       |
  252|  4.16k|   m_x.mod_sub(T3, p, sub_ws);
  253|  4.16k|   m_x.mod_sub(T3, p, sub_ws);
  254|       |
  255|  4.16k|   T3.mod_sub(m_x, p, sub_ws);
  256|       |
  257|  4.16k|   fe_mul(group, T2, T0, T3, ws);
  258|  4.16k|   fe_mul(group, T0, m_y, T1, ws);
  259|  4.16k|   T2.mod_sub(T0, p, sub_ws);
  260|  4.16k|   m_y.swap(T2);
  261|       |
  262|  4.16k|   fe_mul(group, T0, m_z, T4, ws);
  263|  4.16k|   m_z.swap(T0);
  264|  4.16k|}
_ZN5Botan8EC_Point3addERKS0_RNSt3__16vectorINS_6BigIntENS3_9allocatorIS5_EEEE:
  266|   112k|void EC_Point::add(const EC_Point& other, std::vector<BigInt>& workspace) {
  267|   112k|   BOTAN_ARG_CHECK(m_curve == other.m_curve, "cannot add points on different curves");
  ------------------
  |  |   35|   112k|   do {                                                          \
  |  |   36|   112k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|   112k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 112k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|   112k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 112k]
  |  |  ------------------
  ------------------
  268|       |
  269|   112k|   const size_t p_words = m_curve.get_p_words();
  270|       |
  271|   112k|   add(other.m_x._data(),
  272|   112k|       std::min(p_words, other.m_x.size()),
  273|   112k|       other.m_y._data(),
  274|   112k|       std::min(p_words, other.m_y.size()),
  275|   112k|       other.m_z._data(),
  276|   112k|       std::min(p_words, other.m_z.size()),
  277|   112k|       workspace);
  278|   112k|}
_ZN5Botan8EC_Point3addEPKmmS2_mS2_mRNSt3__16vectorINS_6BigIntENS3_9allocatorIS5_EEEE:
  286|   112k|                   std::vector<BigInt>& ws_bn) {
  287|   112k|   if((CT::all_zeros(x_words, x_size) & CT::all_zeros(z_words, z_size)).as_bool()) {
  ------------------
  |  Branch (287:7): [True: 0, False: 112k]
  ------------------
  288|      0|      return;
  289|      0|   }
  290|       |
  291|   112k|   const auto& group = m_curve.group();
  292|       |
  293|   112k|   if(is_zero()) {
  ------------------
  |  Branch (293:7): [True: 0, False: 112k]
  ------------------
  294|      0|      m_x.set_words(x_words, x_size);
  295|      0|      m_y.set_words(y_words, y_size);
  296|      0|      m_z.set_words(z_words, z_size);
  297|      0|      return;
  298|      0|   }
  299|       |
  300|   112k|   resize_ws(ws_bn, monty_ws_size(group));
  301|       |
  302|   112k|   secure_vector<word>& ws = ws_bn[0].get_word_vector();
  303|   112k|   secure_vector<word>& sub_ws = ws_bn[1].get_word_vector();
  304|       |
  305|   112k|   BigInt& T0 = ws_bn[2];
  306|   112k|   BigInt& T1 = ws_bn[3];
  307|   112k|   BigInt& T2 = ws_bn[4];
  308|   112k|   BigInt& T3 = ws_bn[5];
  309|   112k|   BigInt& T4 = ws_bn[6];
  310|   112k|   BigInt& T5 = ws_bn[7];
  311|       |
  312|       |   /*
  313|       |   https://hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html#addition-add-1998-cmo-2
  314|       |   */
  315|       |
  316|   112k|   const BigInt& p = group.p();
  317|       |
  318|   112k|   fe_sqr(group, T0, z_words, z_size, ws);      // z2^2
  319|   112k|   fe_mul(group, T1, m_x, T0, ws);              // x1*z2^2
  320|   112k|   fe_mul(group, T3, z_words, z_size, T0, ws);  // z2^3
  321|   112k|   fe_mul(group, T2, m_y, T3, ws);              // y1*z2^3
  322|       |
  323|   112k|   fe_sqr(group, T3, m_z, ws);                  // z1^2
  324|   112k|   fe_mul(group, T4, x_words, x_size, T3, ws);  // x2*z1^2
  325|       |
  326|   112k|   fe_mul(group, T5, m_z, T3, ws);              // z1^3
  327|   112k|   fe_mul(group, T0, y_words, y_size, T5, ws);  // y2*z1^3
  328|       |
  329|   112k|   T4.mod_sub(T1, p, sub_ws);  // x2*z1^2 - x1*z2^2
  330|       |
  331|   112k|   T0.mod_sub(T2, p, sub_ws);
  332|       |
  333|   112k|   if(T4.is_zero()) {
  ------------------
  |  Branch (333:7): [True: 0, False: 112k]
  ------------------
  334|      0|      if(T0.is_zero()) {
  ------------------
  |  Branch (334:10): [True: 0, False: 0]
  ------------------
  335|      0|         mult2(ws_bn);
  336|      0|         return;
  337|      0|      }
  338|       |
  339|       |      // setting to zero:
  340|      0|      m_x.clear();
  341|      0|      m_y = group.monty().R1();
  342|      0|      m_z.clear();
  343|      0|      return;
  344|      0|   }
  345|       |
  346|   112k|   fe_sqr(group, T5, T4, ws);
  347|       |
  348|   112k|   fe_mul(group, T3, T1, T5, ws);
  349|       |
  350|   112k|   fe_mul(group, T1, T5, T4, ws);
  351|       |
  352|   112k|   fe_sqr(group, m_x, T0, ws);
  353|   112k|   m_x.mod_sub(T1, p, sub_ws);
  354|   112k|   m_x.mod_sub(T3, p, sub_ws);
  355|   112k|   m_x.mod_sub(T3, p, sub_ws);
  356|       |
  357|   112k|   T3.mod_sub(m_x, p, sub_ws);
  358|       |
  359|   112k|   fe_mul(group, m_y, T0, T3, ws);
  360|   112k|   fe_mul(group, T3, T2, T1, ws);
  361|       |
  362|   112k|   m_y.mod_sub(T3, p, sub_ws);
  363|       |
  364|   112k|   fe_mul(group, T3, z_words, z_size, m_z, ws);
  365|   112k|   fe_mul(group, m_z, T3, T4, ws);
  366|   112k|}
_ZN5Botan8EC_Point5mult2ERNSt3__16vectorINS_6BigIntENS1_9allocatorIS3_EEEE:
  388|  84.3k|void EC_Point::mult2(std::vector<BigInt>& ws_bn) {
  389|  84.3k|   if(is_zero()) {
  ------------------
  |  Branch (389:7): [True: 0, False: 84.3k]
  ------------------
  390|      0|      return;
  391|      0|   }
  392|       |
  393|  84.3k|   const auto& group = m_curve.group();
  394|       |
  395|  84.3k|   if(m_y.is_zero()) {
  ------------------
  |  Branch (395:7): [True: 0, False: 84.3k]
  ------------------
  396|      0|      *this = EC_Point(m_curve);  // setting myself to zero
  397|      0|      return;
  398|      0|   }
  399|       |
  400|  84.3k|   resize_ws(ws_bn, monty_ws_size(group));
  401|       |
  402|  84.3k|   secure_vector<word>& ws = ws_bn[0].get_word_vector();
  403|  84.3k|   secure_vector<word>& sub_ws = ws_bn[1].get_word_vector();
  404|       |
  405|  84.3k|   BigInt& T0 = ws_bn[2];
  406|  84.3k|   BigInt& T1 = ws_bn[3];
  407|  84.3k|   BigInt& T2 = ws_bn[4];
  408|  84.3k|   BigInt& T3 = ws_bn[5];
  409|  84.3k|   BigInt& T4 = ws_bn[6];
  410|       |
  411|       |   /*
  412|       |   https://hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html#doubling-dbl-1986-cc
  413|       |   */
  414|  84.3k|   const BigInt& p = group.p();
  415|       |
  416|  84.3k|   fe_sqr(group, T0, m_y, ws);
  417|       |
  418|  84.3k|   fe_mul(group, T1, m_x, T0, ws);
  419|  84.3k|   fe_smul<4>(T1, p, sub_ws);
  420|       |
  421|  84.3k|   if(group.a_is_zero()) {
  ------------------
  |  Branch (421:7): [True: 54.0k, False: 30.2k]
  ------------------
  422|       |      // if a == 0 then 3*x^2 + a*z^4 is just 3*x^2
  423|  54.0k|      fe_sqr(group, T4, m_x, ws);  // x^2
  424|  54.0k|      fe_smul<3>(T4, p, sub_ws);   // 3*x^2
  425|  54.0k|   } else if(group.a_is_minus_3()) {
  ------------------
  |  Branch (425:14): [True: 30.2k, False: 0]
  ------------------
  426|       |      /*
  427|       |      if a == -3 then
  428|       |        3*x^2 + a*z^4 == 3*x^2 - 3*z^4 == 3*(x^2-z^4) == 3*(x-z^2)*(x+z^2)
  429|       |      */
  430|  30.2k|      fe_sqr(group, T3, m_z, ws);  // z^2
  431|       |
  432|       |      // (x-z^2)
  433|  30.2k|      T2 = m_x;
  434|  30.2k|      T2.mod_sub(T3, p, sub_ws);
  435|       |
  436|       |      // (x+z^2)
  437|  30.2k|      T3.mod_add(m_x, p, sub_ws);
  438|       |
  439|  30.2k|      fe_mul(group, T4, T2, T3, ws);  // (x-z^2)*(x+z^2)
  440|       |
  441|  30.2k|      fe_smul<3>(T4, p, sub_ws);  // 3*(x-z^2)*(x+z^2)
  442|  30.2k|   } else {
  443|      0|      fe_sqr(group, T3, m_z, ws);                  // z^2
  444|      0|      fe_sqr(group, T4, T3, ws);                   // z^4
  445|      0|      fe_mul(group, T3, group.monty_a(), T4, ws);  // a*z^4
  446|       |
  447|      0|      fe_sqr(group, T4, m_x, ws);  // x^2
  448|      0|      fe_smul<3>(T4, p, sub_ws);
  449|      0|      T4.mod_add(T3, p, sub_ws);  // 3*x^2 + a*z^4
  450|      0|   }
  451|       |
  452|  84.3k|   fe_sqr(group, T2, T4, ws);
  453|  84.3k|   T2.mod_sub(T1, p, sub_ws);
  454|  84.3k|   T2.mod_sub(T1, p, sub_ws);
  455|       |
  456|  84.3k|   fe_sqr(group, T3, T0, ws);
  457|  84.3k|   fe_smul<8>(T3, p, sub_ws);
  458|       |
  459|  84.3k|   T1.mod_sub(T2, p, sub_ws);
  460|       |
  461|  84.3k|   fe_mul(group, T0, T4, T1, ws);
  462|  84.3k|   T0.mod_sub(T3, p, sub_ws);
  463|       |
  464|  84.3k|   m_x.swap(T2);
  465|       |
  466|  84.3k|   fe_mul(group, T2, m_y, m_z, ws);
  467|  84.3k|   fe_smul<2>(T2, p, sub_ws);
  468|       |
  469|  84.3k|   m_y.swap(T0);
  470|  84.3k|   m_z.swap(T2);
  471|  84.3k|}
_ZN5Botan8EC_Point16force_all_affineENSt3__14spanIS0_Lm18446744073709551615EEERNS1_6vectorImNS_16secure_allocatorImEEEE:
  520|    249|void EC_Point::force_all_affine(std::span<EC_Point> points, secure_vector<word>& ws) {
  521|    249|   if(points.size() <= 1) {
  ------------------
  |  Branch (521:7): [True: 0, False: 249]
  ------------------
  522|      0|      for(auto& point : points) {
  ------------------
  |  Branch (522:23): [True: 0, False: 0]
  ------------------
  523|      0|         point.force_affine();
  524|      0|      }
  525|      0|      return;
  526|      0|   }
  527|       |
  528|   196k|   for(auto& point : points) {
  ------------------
  |  Branch (528:20): [True: 196k, False: 249]
  ------------------
  529|   196k|      if(point.is_zero()) {
  ------------------
  |  Branch (529:10): [True: 0, False: 196k]
  ------------------
  530|      0|         throw Invalid_State("Cannot convert zero ECC point to affine");
  531|      0|      }
  532|   196k|   }
  533|       |
  534|       |   /*
  535|       |   For >= 2 points use Montgomery's trick
  536|       |
  537|       |   See Algorithm 2.26 in "Guide to Elliptic Curve Cryptography"
  538|       |   (Hankerson, Menezes, Vanstone)
  539|       |
  540|       |   TODO is it really necessary to save all k points in c?
  541|       |   */
  542|       |
  543|    249|   const auto& group = points[0].m_curve.group();
  544|    249|   const BigInt& rep_1 = group.monty().R1();
  545|       |
  546|    249|   if(ws.size() < monty_ws_size(group)) {
  ------------------
  |  Branch (546:7): [True: 0, False: 249]
  ------------------
  547|      0|      ws.resize(monty_ws_size(group));
  548|      0|   }
  549|       |
  550|    249|   std::vector<BigInt> c(points.size());
  551|    249|   c[0] = points[0].m_z;
  552|       |
  553|   196k|   for(size_t i = 1; i != points.size(); ++i) {
  ------------------
  |  Branch (553:22): [True: 196k, False: 249]
  ------------------
  554|   196k|      fe_mul(group, c[i], c[i - 1], points[i].m_z, ws);
  555|   196k|   }
  556|       |
  557|    249|   BigInt s_inv = invert_element(group, c[c.size() - 1], ws);
  558|       |
  559|    249|   BigInt z_inv;
  560|    249|   BigInt z2_inv;
  561|    249|   BigInt z3_inv;
  562|       |
  563|   196k|   for(size_t i = points.size() - 1; i != 0; i--) {
  ------------------
  |  Branch (563:38): [True: 196k, False: 249]
  ------------------
  564|   196k|      EC_Point& point = points[i];
  565|       |
  566|   196k|      fe_mul(group, z_inv, s_inv, c[i - 1], ws);
  567|       |
  568|   196k|      s_inv = fe_mul(group, s_inv, point.m_z, ws);
  569|       |
  570|   196k|      fe_sqr(group, z2_inv, z_inv, ws);
  571|   196k|      fe_mul(group, z3_inv, z2_inv, z_inv, ws);
  572|   196k|      point.m_x = fe_mul(group, point.m_x, z2_inv, ws);
  573|   196k|      point.m_y = fe_mul(group, point.m_y, z3_inv, ws);
  574|   196k|      point.m_z = rep_1;
  575|   196k|   }
  576|       |
  577|    249|   fe_sqr(group, z2_inv, s_inv, ws);
  578|    249|   fe_mul(group, z3_inv, z2_inv, s_inv, ws);
  579|    249|   points[0].m_x = fe_mul(group, points[0].m_x, z2_inv, ws);
  580|    249|   points[0].m_y = fe_mul(group, points[0].m_y, z3_inv, ws);
  581|    249|   points[0].m_z = rep_1;
  582|    249|}
_ZN5Botan8EC_Point12force_affineEv:
  584|    100|void EC_Point::force_affine() {
  585|    100|   if(is_zero()) {
  ------------------
  |  Branch (585:7): [True: 0, False: 100]
  ------------------
  586|      0|      throw Invalid_State("Cannot convert zero ECC point to affine");
  587|      0|   }
  588|       |
  589|    100|   secure_vector<word> ws;
  590|       |
  591|    100|   const auto& group = m_curve.group();
  592|       |
  593|    100|   const BigInt z_inv = invert_element(group, m_z, ws);
  594|    100|   const BigInt z2_inv = fe_sqr(group, z_inv, ws);
  595|    100|   const BigInt z3_inv = fe_mul(group, z_inv, z2_inv, ws);
  596|    100|   m_x = fe_mul(group, m_x, z2_inv, ws);
  597|    100|   m_y = fe_mul(group, m_y, z3_inv, ws);
  598|    100|   m_z = group.monty().R1();
  599|    100|}
_ZNK5Botan8EC_Point9is_affineEv:
  601|    200|bool EC_Point::is_affine() const {
  602|    200|   const auto& group = m_curve.group();
  603|    200|   return m_z == group.monty().R1();
  604|    200|}
_ZNK5Botan8EC_Point8xy_bytesEv:
  622|    100|secure_vector<uint8_t> EC_Point::xy_bytes() const {
  623|    100|   const auto& group = m_curve.group();
  624|    100|   const size_t p_bytes = group.p_bytes();
  625|    100|   secure_vector<uint8_t> b(2 * p_bytes);
  626|    100|   BigInt::encode_1363(&b[0], p_bytes, this->get_affine_x());  // NOLINT(*container-data-pointer)
  627|    100|   BigInt::encode_1363(&b[p_bytes], p_bytes, this->get_affine_y());
  628|    100|   return b;
  629|    100|}
_ZNK5Botan8EC_Point12get_affine_xEv:
  631|    100|BigInt EC_Point::get_affine_x() const {
  632|    100|   if(is_zero()) {
  ------------------
  |  Branch (632:7): [True: 0, False: 100]
  ------------------
  633|      0|      throw Invalid_State("Cannot convert zero point to affine");
  634|      0|   }
  635|       |
  636|    100|   secure_vector<word> monty_ws;
  637|       |
  638|    100|   const auto& group = m_curve.group();
  639|       |
  640|    100|   if(is_affine()) {
  ------------------
  |  Branch (640:7): [True: 100, False: 0]
  ------------------
  641|    100|      return from_rep_to_tmp(group, m_x, monty_ws);
  642|    100|   }
  643|       |
  644|      0|   BigInt z2 = fe_sqr(group, m_z, monty_ws);
  645|      0|   z2 = invert_element(group, z2, monty_ws);
  646|       |
  647|      0|   BigInt r;
  648|      0|   fe_mul(group, r, m_x, z2, monty_ws);
  649|      0|   from_rep(group, r, monty_ws);
  650|      0|   return r;
  651|    100|}
_ZNK5Botan8EC_Point12get_affine_yEv:
  653|    100|BigInt EC_Point::get_affine_y() const {
  654|    100|   if(is_zero()) {
  ------------------
  |  Branch (654:7): [True: 0, False: 100]
  ------------------
  655|      0|      throw Invalid_State("Cannot convert zero point to affine");
  656|      0|   }
  657|       |
  658|    100|   const auto& group = m_curve.group();
  659|    100|   secure_vector<word> monty_ws;
  660|       |
  661|    100|   if(is_affine()) {
  ------------------
  |  Branch (661:7): [True: 100, False: 0]
  ------------------
  662|    100|      return from_rep_to_tmp(group, m_y, monty_ws);
  663|    100|   }
  664|       |
  665|      0|   const BigInt z2 = fe_sqr(group, m_z, monty_ws);
  666|      0|   const BigInt z3 = fe_mul(group, m_z, z2, monty_ws);
  667|      0|   const BigInt z3_inv = invert_element(group, z3, monty_ws);
  668|       |
  669|      0|   BigInt r;
  670|      0|   fe_mul(group, r, m_y, z3_inv, monty_ws);
  671|      0|   from_rep(group, r, monty_ws);
  672|      0|   return r;
  673|    100|}
_ZNK5Botan8EC_Point12on_the_curveEv:
  675|    131|bool EC_Point::on_the_curve() const {
  676|       |   /*
  677|       |   Is the point still on the curve?? (If everything is correct, the
  678|       |   point is always on its curve; then the function will return true.
  679|       |   If somehow the state is corrupted, which suggests a fault attack
  680|       |   (or internal computational error), then return false.
  681|       |   */
  682|    131|   if(is_zero()) {
  ------------------
  |  Branch (682:7): [True: 0, False: 131]
  ------------------
  683|      0|      return true;
  684|      0|   }
  685|       |
  686|    131|   const auto& group = m_curve.group();
  687|    131|   secure_vector<word> monty_ws;
  688|       |
  689|    131|   const BigInt y2 = from_rep_to_tmp(group, fe_sqr(group, m_y, monty_ws), monty_ws);
  690|    131|   const BigInt x3 = fe_mul(group, m_x, fe_sqr(group, m_x, monty_ws), monty_ws);
  691|    131|   const BigInt ax = fe_mul(group, m_x, group.monty_a(), monty_ws);
  692|    131|   const BigInt z2 = fe_sqr(group, m_z, monty_ws);
  693|       |
  694|    131|   const BigInt& monty_b = group.monty_b();
  695|       |
  696|       |   // Is z equal to 1 (in Montgomery form)?
  697|    131|   if(m_z == z2) {
  ------------------
  |  Branch (697:7): [True: 131, False: 0]
  ------------------
  698|    131|      if(y2 != from_rep_to_tmp(group, x3 + ax + monty_b, monty_ws)) {
  ------------------
  |  Branch (698:10): [True: 130, False: 1]
  ------------------
  699|    130|         return false;
  700|    130|      }
  701|    131|   }
  702|       |
  703|      1|   const BigInt z3 = fe_mul(group, m_z, z2, monty_ws);
  704|      1|   const BigInt ax_z4 = fe_mul(group, ax, fe_sqr(group, z2, monty_ws), monty_ws);
  705|      1|   const BigInt b_z6 = fe_mul(group, monty_b, fe_sqr(group, z3, monty_ws), monty_ws);
  706|       |
  707|      1|   if(y2 != from_rep_to_tmp(group, x3 + ax_z4 + b_z6, monty_ws)) {
  ------------------
  |  Branch (707:7): [True: 0, False: 1]
  ------------------
  708|      0|      return false;
  709|      0|   }
  710|       |
  711|      1|   return true;
  712|      1|}
_ZN5Botan8EC_Point4swapERS0_:
  792|   172k|void EC_Point::swap(EC_Point& other) noexcept {
  793|   172k|   m_curve.swap(other.m_curve);
  794|   172k|   m_x.swap(other.m_x);
  795|   172k|   m_y.swap(other.m_y);
  796|   172k|   m_z.swap(other.m_z);
  797|   172k|}
_ZN5Botan6OS2ECPENSt3__14spanIKhLm18446744073709551615EEERKNS_8CurveGFpE:
  866|    135|EC_Point OS2ECP(std::span<const uint8_t> data, const CurveGFp& curve) {
  867|    135|   return OS2ECP(data.data(), data.size(), curve);
  868|    135|}
_ZN5Botan6OS2ECPEPKhmRKNS_8CurveGFpE:
  870|    135|EC_Point OS2ECP(const uint8_t data[], size_t data_len, const CurveGFp& curve) {
  871|    135|   if(data_len == 1 && data[0] == 0) {
  ------------------
  |  Branch (871:7): [True: 0, False: 135]
  |  Branch (871:24): [True: 0, False: 0]
  ------------------
  872|       |      // SEC1 standard representation of the point at infinity
  873|      0|      return EC_Point(curve);
  874|      0|   }
  875|       |
  876|    135|   const auto [g_x, g_y] = OS2ECP(data, data_len, curve.get_p(), curve.get_a(), curve.get_b());
  877|       |
  878|    135|   EC_Point point(curve, g_x, g_y);
  879|       |
  880|    135|   if(!point.on_the_curve()) {
  ------------------
  |  Branch (880:7): [True: 130, False: 5]
  ------------------
  881|    130|      throw Decoding_Error("OS2ECP: Decoded point was not on the curve");
  882|    130|   }
  883|       |
  884|      5|   return point;
  885|    135|}
_ZN5Botan6OS2ECPEPKhmRKNS_6BigIntES4_S4_:
  887|    135|std::pair<BigInt, BigInt> OS2ECP(const uint8_t pt[], size_t pt_len, const BigInt& p, const BigInt& a, const BigInt& b) {
  888|    135|   if(pt_len <= 1) {
  ------------------
  |  Branch (888:7): [True: 0, False: 135]
  ------------------
  889|      0|      throw Decoding_Error("OS2ECP invalid point encoding");
  890|      0|   }
  891|       |
  892|    135|   const uint8_t pc = pt[0];
  893|    135|   const size_t p_bytes = p.bytes();
  894|       |
  895|    135|   BigInt x;
  896|    135|   BigInt y;
  897|       |
  898|    135|   if(pc == 2 || pc == 3) {
  ------------------
  |  Branch (898:7): [True: 0, False: 135]
  |  Branch (898:18): [True: 0, False: 135]
  ------------------
  899|      0|      if(pt_len != 1 + p_bytes) {
  ------------------
  |  Branch (899:10): [True: 0, False: 0]
  ------------------
  900|      0|         throw Decoding_Error("OS2ECP invalid point encoding");
  901|      0|      }
  902|      0|      x = BigInt::decode(&pt[1], pt_len - 1);
  903|       |
  904|      0|      const bool y_mod_2 = ((pc & 0x01) == 1);
  905|      0|      y = decompress_point(y_mod_2, x, p, a, b);
  906|    135|   } else if(pc == 4) {
  ------------------
  |  Branch (906:14): [True: 135, False: 0]
  ------------------
  907|    135|      if(pt_len != 1 + 2 * p_bytes) {
  ------------------
  |  Branch (907:10): [True: 0, False: 135]
  ------------------
  908|      0|         throw Decoding_Error("OS2ECP invalid point encoding");
  909|      0|      }
  910|       |
  911|    135|      x = BigInt::decode(&pt[1], p_bytes);
  912|    135|      y = BigInt::decode(&pt[p_bytes + 1], p_bytes);
  913|    135|   } else if(pc == 6 || pc == 7) {
  ------------------
  |  Branch (913:14): [True: 0, False: 0]
  |  Branch (913:25): [True: 0, False: 0]
  ------------------
  914|      0|      if(pt_len != 1 + 2 * p_bytes) {
  ------------------
  |  Branch (914:10): [True: 0, False: 0]
  ------------------
  915|      0|         throw Decoding_Error("OS2ECP invalid point encoding");
  916|      0|      }
  917|       |
  918|      0|      x = BigInt::decode(&pt[1], p_bytes);
  919|      0|      y = BigInt::decode(&pt[p_bytes + 1], p_bytes);
  920|       |
  921|      0|      const bool y_mod_2 = ((pc & 0x01) == 1);
  922|       |
  923|      0|      if(decompress_point(y_mod_2, x, p, a, b) != y) {
  ------------------
  |  Branch (923:10): [True: 0, False: 0]
  ------------------
  924|      0|         throw Decoding_Error("OS2ECP: Decoding error in hybrid format");
  925|      0|      }
  926|      0|   } else {
  927|      0|      throw Decoding_Error("OS2ECP: Unknown format type " + std::to_string(static_cast<int>(pc)));
  928|      0|   }
  929|       |
  930|    135|   if(x >= p || y >= p) {
  ------------------
  |  Branch (930:7): [True: 2, False: 133]
  |  Branch (930:17): [True: 2, False: 131]
  ------------------
  931|      4|      throw Decoding_Error("OS2ECP invalid point encoding");
  932|      4|   }
  933|       |
  934|    131|   return std::make_pair(x, y);
  935|    135|}
ec_point.cpp:_ZN5Botan12_GLOBAL__N_113monty_ws_sizeERKNS_13EC_Group_DataE:
  102|   205k|size_t monty_ws_size(const EC_Group_Data& group) {
  103|   205k|   return 2 * group.p_words();
  104|   205k|}
ec_point.cpp:_ZN5Botan12_GLOBAL__N_16to_repERKNS_13EC_Group_DataERNS_6BigIntERNSt3__16vectorImNS_16secure_allocatorImEEEE:
   55|  7.88k|void to_rep(const EC_Group_Data& group, BigInt& x, secure_vector<word>& ws) {
   56|  7.88k|   group.monty().mul_by(x, group.monty().R2(), ws);
   57|  7.88k|}
ec_point.cpp:_ZN5Botan12_GLOBAL__N_16fe_sqrERKNS_13EC_Group_DataERKNS_6BigIntERNSt3__16vectorImNS_16secure_allocatorImEEEE:
   94|    495|BigInt fe_sqr(const EC_Group_Data& group, const BigInt& x, secure_vector<word>& ws) {
   95|    495|   return group.monty().sqr(x, ws);
   96|    495|}
ec_point.cpp:_ZN5Botan12_GLOBAL__N_16fe_mulERKNS_13EC_Group_DataERKNS_6BigIntES6_RNSt3__16vectorImNS_16secure_allocatorImEEEE:
   82|   590k|inline BigInt fe_mul(const EC_Group_Data& group, const BigInt& x, const BigInt& y, secure_vector<word>& ws) {
   83|   590k|   return group.monty().mul(x, y, ws);
   84|   590k|}
ec_point.cpp:_ZN5Botan12_GLOBAL__N_19resize_wsERNSt3__16vectorINS_6BigIntENS1_9allocatorIS3_EEEEm:
  163|   200k|inline void resize_ws(std::vector<BigInt>& ws_bn, size_t cap_size) {
  164|   200k|   BOTAN_ASSERT(ws_bn.size() >= EC_Point::WORKSPACE_SIZE, "Expected size for EC_Point workspace");
  ------------------
  |  |   64|   200k|   do {                                                                                 \
  |  |   65|   200k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|   200k|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 200k]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|   200k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 200k]
  |  |  ------------------
  ------------------
  165|       |
  166|  1.60M|   for(auto& ws : ws_bn) {
  ------------------
  |  Branch (166:17): [True: 1.60M, False: 200k]
  ------------------
  167|  1.60M|      if(ws.size() < cap_size) {
  ------------------
  |  Branch (167:10): [True: 2.88k, False: 1.60M]
  ------------------
  168|  2.88k|         ws.get_word_vector().resize(cap_size);
  169|  2.88k|      }
  170|  1.60M|   }
  171|   200k|}
ec_point.cpp:_ZN5Botan12_GLOBAL__N_16fe_sqrERKNS_13EC_Group_DataERNS_6BigIntERKS4_RNSt3__16vectorImNS_16secure_allocatorImEEEE:
   86|   883k|void fe_sqr(const EC_Group_Data& group, BigInt& z, const BigInt& x, secure_vector<word>& ws) {
   87|   883k|   group.monty().sqr(z, x, ws);
   88|   883k|}
ec_point.cpp:_ZN5Botan12_GLOBAL__N_16fe_mulERKNS_13EC_Group_DataERNS_6BigIntEPKmmRKS4_RNSt3__16vectorImNS_16secure_allocatorImEEEE:
   72|   458k|   const EC_Group_Data& group, BigInt& z, const word x_w[], size_t x_size, const BigInt& y, secure_vector<word>& ws) {
   73|   458k|   group.monty().mul(z, y, std::span{x_w, x_size}, ws);
   74|   458k|}
ec_point.cpp:_ZN5Botan12_GLOBAL__N_16fe_mulERKNS_13EC_Group_DataERNS_6BigIntERKS4_S7_RNSt3__16vectorImNS_16secure_allocatorImEEEE:
   67|  1.79M|inline void fe_mul(const EC_Group_Data& group, BigInt& z, const BigInt& x, const BigInt& y, secure_vector<word>& ws) {
   68|  1.79M|   group.monty().mul(z, x, y, ws);
   69|  1.79M|}
ec_point.cpp:_ZN5Botan12_GLOBAL__N_16fe_sqrERKNS_13EC_Group_DataERNS_6BigIntEPKmmRNSt3__16vectorImNS_16secure_allocatorImEEEE:
   90|   112k|void fe_sqr(const EC_Group_Data& group, BigInt& z, const word x_w[], size_t x_size, secure_vector<word>& ws) {
   91|   112k|   group.monty().sqr(z, std::span{x_w, x_size}, ws);
   92|   112k|}
ec_point.cpp:_ZN5Botan12_GLOBAL__N_114invert_elementERKNS_13EC_Group_DataERKNS_6BigIntERNSt3__16vectorImNS_16secure_allocatorImEEEE:
   98|    349|BigInt invert_element(const EC_Group_Data& group, const BigInt& x, secure_vector<word>& ws) {
   99|    349|   return group.monty().mul(inverse_mod_public_prime(x, group.p()), group.monty().R3(), ws);
  100|    349|}
ec_point.cpp:_ZN5Botan12_GLOBAL__N_115from_rep_to_tmpERKNS_13EC_Group_DataERKNS_6BigIntERNSt3__16vectorImNS_16secure_allocatorImEEEE:
   63|    463|BigInt from_rep_to_tmp(const EC_Group_Data& group, const BigInt& x, secure_vector<word>& ws) {
   64|    463|   return group.monty().redc(x, ws);
   65|    463|}
ec_point.cpp:_ZN5Botan12_GLOBAL__N_17fe_smulILm4EEEvRNS_6BigIntERKS2_RNSt3__16vectorImNS_16secure_allocatorImEEEE:
   77|  84.3k|inline void fe_smul(BigInt& z, const BigInt& p, secure_vector<word>& ws) {
   78|  84.3k|   static_assert(M == 2 || M == 3 || M == 4 || M == 8);
   79|  84.3k|   z.mod_mul(M, p, ws);
   80|  84.3k|}
ec_point.cpp:_ZN5Botan12_GLOBAL__N_17fe_smulILm3EEEvRNS_6BigIntERKS2_RNSt3__16vectorImNS_16secure_allocatorImEEEE:
   77|  84.3k|inline void fe_smul(BigInt& z, const BigInt& p, secure_vector<word>& ws) {
   78|  84.3k|   static_assert(M == 2 || M == 3 || M == 4 || M == 8);
   79|  84.3k|   z.mod_mul(M, p, ws);
   80|  84.3k|}
ec_point.cpp:_ZN5Botan12_GLOBAL__N_17fe_smulILm8EEEvRNS_6BigIntERKS2_RNSt3__16vectorImNS_16secure_allocatorImEEEE:
   77|  84.3k|inline void fe_smul(BigInt& z, const BigInt& p, secure_vector<word>& ws) {
   78|  84.3k|   static_assert(M == 2 || M == 3 || M == 4 || M == 8);
   79|  84.3k|   z.mod_mul(M, p, ws);
   80|  84.3k|}
ec_point.cpp:_ZN5Botan12_GLOBAL__N_17fe_smulILm2EEEvRNS_6BigIntERKS2_RNSt3__16vectorImNS_16secure_allocatorImEEEE:
   77|  84.3k|inline void fe_smul(BigInt& z, const BigInt& p, secure_vector<word>& ws) {
   78|  84.3k|   static_assert(M == 2 || M == 3 || M == 4 || M == 8);
   79|  84.3k|   z.mod_mul(M, p, ws);
   80|  84.3k|}

_ZN5Botan30EC_Point_Base_Point_PrecomputeC2ERKNS_8EC_PointERKNS_17Barrett_ReductionE:
   43|    249|      m_base_point(base), m_mod_order(mod_order), m_p_words(base.get_curve().get_p_words()) {
   44|    249|   std::vector<BigInt> ws(EC_Point::WORKSPACE_SIZE);
   45|       |
   46|    249|   const size_t order_bits = mod_order.modulus_bits();
   47|       |
   48|    249|   const size_t T_bits = round_up(order_bits + blinding_size(order_bits), WindowBits) / WindowBits;
   49|       |
   50|    249|   std::vector<EC_Point> T(WindowSize * T_bits);
   51|       |
   52|    249|   EC_Point g = base;
   53|    249|   EC_Point g2;
   54|    249|   EC_Point g4;
   55|       |
   56|  28.3k|   for(size_t i = 0; i != T_bits; i++) {
  ------------------
  |  Branch (56:22): [True: 28.1k, False: 249]
  ------------------
   57|  28.1k|      g2 = g;
   58|  28.1k|      g2.mult2(ws);
   59|  28.1k|      g4 = g2;
   60|  28.1k|      g4.mult2(ws);
   61|       |
   62|  28.1k|      T[7 * i + 0] = g;
   63|  28.1k|      T[7 * i + 1] = std::move(g2);
   64|  28.1k|      T[7 * i + 2] = T[7 * i + 1].plus(T[7 * i + 0], ws);  // g2+g
   65|  28.1k|      T[7 * i + 3] = g4;
   66|  28.1k|      T[7 * i + 4] = T[7 * i + 3].plus(T[7 * i + 0], ws);  // g4+g
   67|  28.1k|      T[7 * i + 5] = T[7 * i + 3].plus(T[7 * i + 1], ws);  // g4+g2
   68|  28.1k|      T[7 * i + 6] = T[7 * i + 3].plus(T[7 * i + 2], ws);  // g4+g2+g
   69|       |
   70|  28.1k|      g.swap(g4);
   71|  28.1k|      g.mult2(ws);
   72|  28.1k|   }
   73|       |
   74|    249|   EC_Point::force_all_affine(T, ws[0].get_word_vector());
   75|       |
   76|    249|   m_W.resize(T.size() * 2 * m_p_words);
   77|       |
   78|    249|   word* p = m_W.data();
   79|   196k|   for(const auto& pt : T) {
  ------------------
  |  Branch (79:23): [True: 196k, False: 249]
  ------------------
   80|   196k|      pt.get_x().encode_words(p, m_p_words);
   81|   196k|      p += m_p_words;
   82|   196k|      pt.get_y().encode_words(p, m_p_words);
   83|   196k|      p += m_p_words;
   84|   196k|   }
   85|    249|}
_ZNK5Botan30EC_Point_Base_Point_Precompute3mulERKNS_6BigIntERNS_21RandomNumberGeneratorES3_RNSt3__16vectorIS1_NS6_9allocatorIS1_EEEE:
   90|     99|                                             std::vector<BigInt>& ws) const {
   91|     99|   if(k.signum() < 0) {
  ------------------
  |  Branch (91:7): [True: 0, False: 99]
  ------------------
   92|      0|      throw Invalid_Argument("EC_Point_Base_Point_Precompute scalar must be positive");
   93|      0|   }
   94|       |
   95|       |   // Instead of reducing k mod group order should we alter the mask size??
   96|     99|   BigInt scalar = m_mod_order.reduce(k);
   97|       |
   98|     99|   if(rng.is_seeded()) {
  ------------------
  |  Branch (98:7): [True: 0, False: 99]
  ------------------
   99|       |      // Choose a small mask m and use k' = k + m*order (Coron's 1st countermeasure)
  100|      0|      scalar += group_order * blinding_mask(group_order, rng);
  101|     99|   } else {
  102|       |      /*
  103|       |      When we don't have an RNG we cannot do scalar blinding. Instead use the
  104|       |      same trick as OpenSSL and add one or two copies of the order to normalize
  105|       |      the length of the scalar at order.bits()+1. This at least ensures the loop
  106|       |      bound does not leak information about the high bits of the scalar.
  107|       |      */
  108|     99|      scalar += group_order;
  109|     99|      if(scalar.bits() == group_order.bits()) {
  ------------------
  |  Branch (109:10): [True: 99, False: 0]
  ------------------
  110|     99|         scalar += group_order;
  111|     99|      }
  112|     99|      BOTAN_DEBUG_ASSERT(scalar.bits() == group_order.bits() + 1);
  ------------------
  |  |  130|     99|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|     99|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 99]
  |  |  ------------------
  ------------------
  113|     99|   }
  114|       |
  115|     99|   const size_t windows = round_up(scalar.bits(), WindowBits) / WindowBits;
  116|       |
  117|     99|   const size_t elem_size = 2 * m_p_words;
  118|       |
  119|     99|   BOTAN_ASSERT(windows <= m_W.size() / (3 * elem_size), "Precomputed sufficient values for scalar mult");
  ------------------
  |  |   64|     99|   do {                                                                                 \
  |  |   65|     99|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|     99|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 99]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|     99|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 99]
  |  |  ------------------
  ------------------
  120|       |
  121|     99|   EC_Point R = m_base_point.zero();
  122|       |
  123|     99|   if(ws.size() < EC_Point::WORKSPACE_SIZE) {
  ------------------
  |  Branch (123:7): [True: 99, False: 0]
  ------------------
  124|     99|      ws.resize(EC_Point::WORKSPACE_SIZE);
  125|     99|   }
  126|       |
  127|       |   // the precomputed multiples are not secret so use std::vector
  128|     99|   std::vector<word> Wt(elem_size);
  129|       |
  130|  7.23k|   for(size_t i = 0; i != windows; ++i) {
  ------------------
  |  Branch (130:22): [True: 7.13k, False: 99]
  ------------------
  131|  7.13k|      const size_t window = windows - i - 1;
  132|  7.13k|      const size_t base_addr = (WindowSize * window) * elem_size;
  133|       |
  134|  7.13k|      const word w = scalar.get_substring(WindowBits * window, WindowBits);
  135|       |
  136|  7.13k|      const auto w_is_1 = CT::Mask<word>::is_equal(w, 1);
  137|  7.13k|      const auto w_is_2 = CT::Mask<word>::is_equal(w, 2);
  138|  7.13k|      const auto w_is_3 = CT::Mask<word>::is_equal(w, 3);
  139|  7.13k|      const auto w_is_4 = CT::Mask<word>::is_equal(w, 4);
  140|  7.13k|      const auto w_is_5 = CT::Mask<word>::is_equal(w, 5);
  141|  7.13k|      const auto w_is_6 = CT::Mask<word>::is_equal(w, 6);
  142|  7.13k|      const auto w_is_7 = CT::Mask<word>::is_equal(w, 7);
  143|       |
  144|  64.3k|      for(size_t j = 0; j != elem_size; ++j) {
  ------------------
  |  Branch (144:25): [True: 57.2k, False: 7.13k]
  ------------------
  145|  57.2k|         const word w1 = w_is_1.if_set_return(m_W[base_addr + 0 * elem_size + j]);
  146|  57.2k|         const word w2 = w_is_2.if_set_return(m_W[base_addr + 1 * elem_size + j]);
  147|  57.2k|         const word w3 = w_is_3.if_set_return(m_W[base_addr + 2 * elem_size + j]);
  148|  57.2k|         const word w4 = w_is_4.if_set_return(m_W[base_addr + 3 * elem_size + j]);
  149|  57.2k|         const word w5 = w_is_5.if_set_return(m_W[base_addr + 4 * elem_size + j]);
  150|  57.2k|         const word w6 = w_is_6.if_set_return(m_W[base_addr + 5 * elem_size + j]);
  151|  57.2k|         const word w7 = w_is_7.if_set_return(m_W[base_addr + 6 * elem_size + j]);
  152|       |
  153|  57.2k|         Wt[j] = w1 | w2 | w3 | w4 | w5 | w6 | w7;
  154|  57.2k|      }
  155|       |
  156|  7.13k|      R.add_affine(Wt.data(), m_p_words, &Wt[m_p_words], m_p_words, ws);
  157|       |
  158|  7.13k|      if(i == 0 && rng.is_seeded()) {
  ------------------
  |  Branch (158:10): [True: 99, False: 7.03k]
  |  Branch (158:20): [True: 0, False: 99]
  ------------------
  159|       |         /*
  160|       |         * Since we start with the top bit of the exponent we know the
  161|       |         * first window must have a non-zero element, and thus R is
  162|       |         * now a point other than the point at infinity.
  163|       |         */
  164|      0|         BOTAN_DEBUG_ASSERT(w != 0);
  ------------------
  |  |  130|      0|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|      0|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 0]
  |  |  ------------------
  ------------------
  165|      0|         R.randomize_repr(rng, ws[0].get_word_vector());
  166|      0|      }
  167|  7.13k|   }
  168|       |
  169|     99|   BOTAN_DEBUG_ASSERT(R.on_the_curve());
  ------------------
  |  |  130|     99|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|     99|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 99]
  |  |  ------------------
  ------------------
  170|       |
  171|     99|   return R;
  172|     99|}
point_mul.cpp:_ZN5Botan12_GLOBAL__N_113blinding_sizeEm:
   20|    249|size_t blinding_size(size_t order_bits) {
   21|    249|   return (order_bits + 1) / 2;
   22|    249|}

_ZN5Botan17EC_PublicKey_DataC2ERKNS_8EC_GroupENSt3__14spanIKhLm18446744073709551615EEE:
   38|    599|      EC_PublicKey_Data(group, decode_ec_public_key_point(group, bytes)) {}
_ZN5Botan17EC_PublicKey_DataC2ENS_8EC_GroupENS_14EC_AffinePointE:
   41|  1.59k|      m_group(std::move(group)), m_point(std::move(pt)) {
   42|  1.59k|#if defined(BOTAN_HAS_LEGACY_EC_POINT)
   43|  1.59k|   m_legacy_point = m_point.to_legacy_point();
   44|  1.59k|#endif
   45|       |
   46|       |   // Checking that the point lies on the curve is done in the deserialization
   47|       |   // of EC_AffinePoint.
   48|  1.59k|   BOTAN_ARG_CHECK(!m_point.is_identity(), "ECC public key cannot be point at infinity");
  ------------------
  |  |   35|  1.59k|   do {                                                          \
  |  |   36|  1.59k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  1.59k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 1.59k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  1.59k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 1.59k]
  |  |  ------------------
  ------------------
   49|  1.59k|}
_ZN5Botan18EC_PrivateKey_DataC2ENS_8EC_GroupENS_9EC_ScalarE:
   52|  2.18k|      m_group(std::move(group)), m_scalar(std::move(x)), m_legacy_x(m_scalar.to_bigint()) {
   53|       |   // Checking that the scalar is lower than the group order is ensured in the
   54|       |   // deserialization of the EC_Scalar or during the random generation respectively.
   55|  2.18k|   BOTAN_ARG_CHECK(m_scalar.is_nonzero(), "ECC private key cannot be zero");
  ------------------
  |  |   35|  2.18k|   do {                                                          \
  |  |   36|  2.18k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  2.18k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 2.18k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  2.18k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 2.18k]
  |  |  ------------------
  ------------------
   56|  2.18k|}
_ZN5Botan18EC_PrivateKey_DataC2ERKNS_8EC_GroupENSt3__14spanIKhLm18446744073709551615EEE:
   88|  2.22k|      Botan::EC_PrivateKey_Data(group, decode_ec_secret_key_scalar(group, bytes)) {}
_ZN5Botan18EC_PrivateKey_DataD2Ev:
   90|  2.18k|EC_PrivateKey_Data::~EC_PrivateKey_Data() {
   91|  2.18k|   m_scalar.zeroize();
   92|  2.18k|}
_ZNK5Botan18EC_PrivateKey_Data10public_keyERNS_21RandomNumberGeneratorEb:
   95|  1.59k|                                                                  bool with_modular_inverse) const {
   96|  1.59k|   auto public_point = [&] {
   97|  1.59k|      if(with_modular_inverse) {
   98|  1.59k|         return EC_AffinePoint::g_mul(m_scalar.invert(), rng);
   99|  1.59k|      } else {
  100|  1.59k|         return EC_AffinePoint::g_mul(m_scalar, rng);
  101|  1.59k|      }
  102|  1.59k|   };
  103|       |
  104|  1.59k|   return std::make_shared<EC_PublicKey_Data>(m_group, public_point());
  105|  1.59k|}
_ZNK5Botan18EC_PrivateKey_Data10public_keyEb:
  107|  1.59k|std::shared_ptr<EC_PublicKey_Data> EC_PrivateKey_Data::public_key(bool with_modular_inverse) const {
  108|  1.59k|   Null_RNG null_rng;
  109|  1.59k|   return this->public_key(null_rng, with_modular_inverse);
  110|  1.59k|}
ec_key_data.cpp:_ZN5Botan12_GLOBAL__N_126decode_ec_public_key_pointERKNS_8EC_GroupENSt3__14spanIKhLm18446744073709551615EEE:
   17|    599|EC_AffinePoint decode_ec_public_key_point(const EC_Group& group, std::span<const uint8_t> bytes) {
   18|       |   /*
   19|       |   * RFC 5480 section 2.2:
   20|       |   *    The first octet of the OCTET STRING indicates whether the key is
   21|       |   *    compressed or uncompressed.  The uncompressed form is indicated
   22|       |   *    by 0x04 and the compressed form is indicated by either 0x02 or
   23|       |   *    0x03 (see 2.3.3 in [SEC1]).  The public key MUST be rejected if
   24|       |   *    any other value is included in the first octet.
   25|       |   */
   26|    599|   if(auto pt_uncompressed = EC_AffinePoint::deserialize_uncompressed(group, bytes)) {
  ------------------
  |  Branch (26:12): [True: 3, False: 596]
  ------------------
   27|      3|      return std::move(pt_uncompressed).value();
   28|    596|   } else if(auto pt_compressed = EC_AffinePoint::deserialize_compressed(group, bytes)) {
  ------------------
  |  Branch (28:19): [True: 0, False: 596]
  ------------------
   29|      0|      return std::move(pt_compressed).value();
   30|    596|   } else {
   31|    596|      throw Decoding_Error("Failed to deserialize elliptic curve point");
   32|    596|   }
   33|    599|}
ec_key_data.cpp:_ZN5Botan12_GLOBAL__N_127decode_ec_secret_key_scalarERKNS_8EC_GroupENSt3__14spanIKhLm18446744073709551615EEE:
   60|  4.16k|EC_Scalar decode_ec_secret_key_scalar(const EC_Group& group, std::span<const uint8_t> bytes) {
   61|  4.16k|   const size_t order_bytes = group.get_order_bytes();
   62|       |
   63|  4.16k|   if(bytes.size() < order_bytes) {
  ------------------
  |  Branch (63:7): [True: 1.94k, False: 2.22k]
  ------------------
   64|       |      /*
   65|       |      * Older versions had a bug which caused secret keys to not be encoded to
   66|       |      * the full byte length of the order if there were leading zero bytes. This
   67|       |      * was particularly a problem for P-521, where on average half of keys do
   68|       |      * not have their high bit set and so can be encoded in 65 bytes, vs 66
   69|       |      * bytes for the full order.
   70|       |      *
   71|       |      * To accommodate this, zero prefix the key if we see such a short input
   72|       |      */
   73|  1.94k|      secure_vector<uint8_t> padded_sk(order_bytes);
   74|  1.94k|      copy_mem(std::span{padded_sk}.last(bytes.size()), bytes);
   75|  1.94k|      return decode_ec_secret_key_scalar(group, padded_sk);
   76|  1.94k|   }
   77|       |
   78|  2.22k|   if(auto s = EC_Scalar::deserialize(group, bytes)) {
  ------------------
  |  Branch (78:12): [True: 2.18k, False: 32]
  ------------------
   79|  2.18k|      return s.value();
   80|  2.18k|   } else {
   81|     32|      throw Decoding_Error("EC private key is invalid for this group");
   82|     32|   }
   83|  2.22k|}
ec_key_data.cpp:_ZZNK5Botan18EC_PrivateKey_Data10public_keyERNS_21RandomNumberGeneratorEbENK3$_0clEv:
   96|  1.59k|   auto public_point = [&] {
   97|  1.59k|      if(with_modular_inverse) {
  ------------------
  |  Branch (97:10): [True: 0, False: 1.59k]
  ------------------
   98|      0|         return EC_AffinePoint::g_mul(m_scalar.invert(), rng);
   99|  1.59k|      } else {
  100|  1.59k|         return EC_AffinePoint::g_mul(m_scalar, rng);
  101|  1.59k|      }
  102|  1.59k|   };

_ZN5Botan12EC_PublicKey27assert_algorithm_identifierERKNS_19AlgorithmIdentifierENSt3__117basic_string_viewIcNS4_11char_traitsIcEEEE:
   49|  2.48k|                                                                     std::string_view alg_name) {
   50|  2.48k|   if(alg_id.oid() != OID::from_string(alg_name)) {
  ------------------
  |  Branch (50:7): [True: 5, False: 2.47k]
  ------------------
   51|      5|      throw Decoding_Error(
   52|      5|         fmt("Unexpected AlgorithmIdentifier OID {} in association with {} key", alg_id.oid(), alg_name));
   53|      5|   }
   54|       |
   55|  2.47k|   return alg_id;  // NOLINT(*-return-const-ref-from-parameter)
   56|  2.48k|}
_ZNK5Botan12EC_PublicKey6domainEv:
   76|  1.59k|const EC_Group& EC_PublicKey::domain() const {
   77|  1.59k|   BOTAN_STATE_CHECK(m_public_key != nullptr);
  ------------------
  |  |   51|  1.59k|   do {                                                         \
  |  |   52|  1.59k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|  1.59k|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 1.59k]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|  1.59k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 1.59k]
  |  |  ------------------
  ------------------
   78|  1.59k|   return m_public_key->group();
   79|  1.59k|}
_ZN5Botan13EC_PrivateKeyC2ERKNS_19AlgorithmIdentifierENSt3__14spanIKhLm18446744073709551615EEEb:
  191|  3.36k|      m_with_modular_inverse(with_modular_inverse) {
  192|  3.36k|   OID key_parameters;
  193|  3.36k|   secure_vector<uint8_t> private_key_bits;
  194|  3.36k|   secure_vector<uint8_t> public_key_bits;
  195|       |
  196|  3.36k|   BER_Decoder(key_bits, BER_Decoder::Limits::DER())
  197|  3.36k|      .start_sequence()
  198|  3.36k|      .decode_and_check<size_t>(1, "Unknown version code for ECC key")
  199|  3.36k|      .decode(private_key_bits, ASN1_Type::OctetString)
  200|  3.36k|      .decode_optional(key_parameters, ASN1_Type(0), ASN1_Class::ExplicitContextSpecific)
  201|  3.36k|      .decode_optional_octet_aligned_bitstring(public_key_bits, 1, ASN1_Class::ExplicitContextSpecific)
  202|  3.36k|      .end_cons()
  203|  3.36k|      .verify_end();
  204|       |
  205|  3.36k|   std::unique_ptr<EC_Group> group;
  206|       |
  207|  3.36k|   if(!alg_id.parameters_are_empty()) {
  ------------------
  |  Branch (207:7): [True: 3.24k, False: 115]
  ------------------
  208|  3.24k|      group = std::make_unique<EC_Group>(alg_id.parameters());
  209|  3.24k|   }
  210|  3.36k|   if(!key_parameters.empty()) {
  ------------------
  |  Branch (210:7): [True: 15, False: 3.34k]
  ------------------
  211|     15|      if(group) {
  ------------------
  |  Branch (211:10): [True: 15, False: 0]
  ------------------
  212|     15|         if(EC_Group(key_parameters) != *group) {
  ------------------
  |  Branch (212:13): [True: 0, False: 15]
  ------------------
  213|      0|            throw Invalid_Argument(
  214|      0|               "Domain parameters supplied AlgorithmIdentifier does not match the ECC private key's domain parameters in EC_PrivateKey construction");
  215|      0|         }
  216|     15|      } else {
  217|      0|         group = std::make_unique<EC_Group>(key_parameters);
  218|      0|      }
  219|     15|   }
  220|  3.36k|   if(!group) {
  ------------------
  |  Branch (220:7): [True: 1, False: 3.36k]
  ------------------
  221|      1|      throw Invalid_Argument("Domain parameters are not supplied in EC_PrivateKey construction");
  222|      1|   }
  223|       |
  224|  3.36k|   m_private_key = std::make_shared<EC_PrivateKey_Data>(*group, private_key_bits);
  225|       |
  226|  3.36k|   if(public_key_bits.empty()) {
  ------------------
  |  Branch (226:7): [True: 1.59k, False: 1.77k]
  ------------------
  227|  1.59k|      m_public_key = m_private_key->public_key(with_modular_inverse);
  228|  1.77k|   } else {
  229|  1.77k|      m_public_key = std::make_shared<EC_PublicKey_Data>(*group, public_key_bits);
  230|  1.77k|   }
  231|       |
  232|  3.36k|   m_domain_encoding = default_encoding_for(domain());
  233|  3.36k|}
ecc_key.cpp:_ZN5Botan12_GLOBAL__N_120default_encoding_forERKNS_8EC_GroupE:
   38|  1.59k|EC_Group_Encoding default_encoding_for(const EC_Group& group) {
   39|  1.59k|   if(group.get_curve_oid().empty()) {
  ------------------
  |  Branch (39:7): [True: 54, False: 1.53k]
  ------------------
   40|     54|      return EC_Group_Encoding::Explicit;
   41|  1.53k|   } else {
   42|  1.53k|      return EC_Group_Encoding::NamedCurve;
   43|  1.53k|   }
   44|  1.59k|}

_ZN5Botan19ed25519_gen_keypairEPhS0_PKh:
   19|      2|void ed25519_gen_keypair(uint8_t pk[32], uint8_t sk[64], const uint8_t seed[32]) {
   20|      2|   uint8_t az[64];
   21|       |
   22|      2|   auto sha512 = HashFunction::create_or_throw("SHA-512");
   23|      2|   sha512->update(seed, 32);
   24|      2|   sha512->final(az);
   25|      2|   az[0] &= 248;
   26|      2|   az[31] &= 63;
   27|      2|   az[31] |= 64;
   28|       |
   29|      2|   ed25519_basepoint_mul(std::span<uint8_t, 32>{pk, 32}, az);
   30|       |
   31|      2|   copy_mem(sk, seed, 32);
   32|      2|   copy_mem(sk + 32, pk, 32);
   33|      2|}

_ZNK5Botan20Ed25519_FieldElement6invertEv:
   18|      2|Ed25519_FieldElement Ed25519_FieldElement::invert() const {
   19|      2|   auto t0 = this->sqr();
   20|      2|   auto t1 = t0.sqr_iter(2);
   21|      2|   t1 = *this * t1;
   22|      2|   t0 = t0 * t1;
   23|      2|   auto t2 = t0.sqr();
   24|      2|   t1 = t1 * t2;
   25|      2|   t2 = t1.sqr_iter(5);
   26|      2|   t1 = t2 * t1;
   27|      2|   t2 = t1.sqr_iter(10);
   28|      2|   t2 = t2 * t1;
   29|      2|   auto t3 = t2.sqr_iter(20);
   30|      2|   t2 = t3 * t2;
   31|      2|   t2 = t2.sqr_iter(10);
   32|      2|   t1 = t2 * t1;
   33|      2|   t2 = t1.sqr_iter(50);
   34|      2|   t2 = t2 * t1;
   35|      2|   t3 = t2.sqr_iter(100);
   36|      2|   t2 = t3 * t2;
   37|      2|   t2 = t2.sqr_iter(50);
   38|      2|   t1 = t2 * t1;
   39|      2|   t1 = t1.sqr_iter(5);
   40|       |
   41|      2|   t0 = t1 * t0;
   42|      2|   return t0;
   43|      2|}
_ZN5Botan20Ed25519_FieldElement3mulERKS0_S2_:
  105|    948|Ed25519_FieldElement Ed25519_FieldElement::mul(const Ed25519_FieldElement& f, const Ed25519_FieldElement& g) {
  106|    948|   const int32_t f0 = f.m_fe[0];
  107|    948|   const int32_t f1 = f.m_fe[1];
  108|    948|   const int32_t f2 = f.m_fe[2];
  109|    948|   const int32_t f3 = f.m_fe[3];
  110|    948|   const int32_t f4 = f.m_fe[4];
  111|    948|   const int32_t f5 = f.m_fe[5];
  112|    948|   const int32_t f6 = f.m_fe[6];
  113|    948|   const int32_t f7 = f.m_fe[7];
  114|    948|   const int32_t f8 = f.m_fe[8];
  115|    948|   const int32_t f9 = f.m_fe[9];
  116|       |
  117|    948|   const int32_t g0 = g.m_fe[0];
  118|    948|   const int32_t g1 = g.m_fe[1];
  119|    948|   const int32_t g2 = g.m_fe[2];
  120|    948|   const int32_t g3 = g.m_fe[3];
  121|    948|   const int32_t g4 = g.m_fe[4];
  122|    948|   const int32_t g5 = g.m_fe[5];
  123|    948|   const int32_t g6 = g.m_fe[6];
  124|    948|   const int32_t g7 = g.m_fe[7];
  125|    948|   const int32_t g8 = g.m_fe[8];
  126|    948|   const int32_t g9 = g.m_fe[9];
  127|       |
  128|    948|   const int32_t g1_19 = 19 * g1; /* 1.959375*2^29 */
  129|    948|   const int32_t g2_19 = 19 * g2; /* 1.959375*2^30; still ok */
  130|    948|   const int32_t g3_19 = 19 * g3;
  131|    948|   const int32_t g4_19 = 19 * g4;
  132|    948|   const int32_t g5_19 = 19 * g5;
  133|    948|   const int32_t g6_19 = 19 * g6;
  134|    948|   const int32_t g7_19 = 19 * g7;
  135|    948|   const int32_t g8_19 = 19 * g8;
  136|    948|   const int32_t g9_19 = 19 * g9;
  137|    948|   const int32_t f1_2 = 2 * f1;
  138|    948|   const int32_t f3_2 = 2 * f3;
  139|    948|   const int32_t f5_2 = 2 * f5;
  140|    948|   const int32_t f7_2 = 2 * f7;
  141|    948|   const int32_t f9_2 = 2 * f9;
  142|       |
  143|    948|   const int64_t f0g0 = f0 * static_cast<int64_t>(g0);
  144|    948|   const int64_t f0g1 = f0 * static_cast<int64_t>(g1);
  145|    948|   const int64_t f0g2 = f0 * static_cast<int64_t>(g2);
  146|    948|   const int64_t f0g3 = f0 * static_cast<int64_t>(g3);
  147|    948|   const int64_t f0g4 = f0 * static_cast<int64_t>(g4);
  148|    948|   const int64_t f0g5 = f0 * static_cast<int64_t>(g5);
  149|    948|   const int64_t f0g6 = f0 * static_cast<int64_t>(g6);
  150|    948|   const int64_t f0g7 = f0 * static_cast<int64_t>(g7);
  151|    948|   const int64_t f0g8 = f0 * static_cast<int64_t>(g8);
  152|    948|   const int64_t f0g9 = f0 * static_cast<int64_t>(g9);
  153|    948|   const int64_t f1g0 = f1 * static_cast<int64_t>(g0);
  154|    948|   const int64_t f1g1_2 = f1_2 * static_cast<int64_t>(g1);
  155|    948|   const int64_t f1g2 = f1 * static_cast<int64_t>(g2);
  156|    948|   const int64_t f1g3_2 = f1_2 * static_cast<int64_t>(g3);
  157|    948|   const int64_t f1g4 = f1 * static_cast<int64_t>(g4);
  158|    948|   const int64_t f1g5_2 = f1_2 * static_cast<int64_t>(g5);
  159|    948|   const int64_t f1g6 = f1 * static_cast<int64_t>(g6);
  160|    948|   const int64_t f1g7_2 = f1_2 * static_cast<int64_t>(g7);
  161|    948|   const int64_t f1g8 = f1 * static_cast<int64_t>(g8);
  162|    948|   const int64_t f1g9_38 = f1_2 * static_cast<int64_t>(g9_19);
  163|    948|   const int64_t f2g0 = f2 * static_cast<int64_t>(g0);
  164|    948|   const int64_t f2g1 = f2 * static_cast<int64_t>(g1);
  165|    948|   const int64_t f2g2 = f2 * static_cast<int64_t>(g2);
  166|    948|   const int64_t f2g3 = f2 * static_cast<int64_t>(g3);
  167|    948|   const int64_t f2g4 = f2 * static_cast<int64_t>(g4);
  168|    948|   const int64_t f2g5 = f2 * static_cast<int64_t>(g5);
  169|    948|   const int64_t f2g6 = f2 * static_cast<int64_t>(g6);
  170|    948|   const int64_t f2g7 = f2 * static_cast<int64_t>(g7);
  171|    948|   const int64_t f2g8_19 = f2 * static_cast<int64_t>(g8_19);
  172|    948|   const int64_t f2g9_19 = f2 * static_cast<int64_t>(g9_19);
  173|    948|   const int64_t f3g0 = f3 * static_cast<int64_t>(g0);
  174|    948|   const int64_t f3g1_2 = f3_2 * static_cast<int64_t>(g1);
  175|    948|   const int64_t f3g2 = f3 * static_cast<int64_t>(g2);
  176|    948|   const int64_t f3g3_2 = f3_2 * static_cast<int64_t>(g3);
  177|    948|   const int64_t f3g4 = f3 * static_cast<int64_t>(g4);
  178|    948|   const int64_t f3g5_2 = f3_2 * static_cast<int64_t>(g5);
  179|    948|   const int64_t f3g6 = f3 * static_cast<int64_t>(g6);
  180|    948|   const int64_t f3g7_38 = f3_2 * static_cast<int64_t>(g7_19);
  181|    948|   const int64_t f3g8_19 = f3 * static_cast<int64_t>(g8_19);
  182|    948|   const int64_t f3g9_38 = f3_2 * static_cast<int64_t>(g9_19);
  183|    948|   const int64_t f4g0 = f4 * static_cast<int64_t>(g0);
  184|    948|   const int64_t f4g1 = f4 * static_cast<int64_t>(g1);
  185|    948|   const int64_t f4g2 = f4 * static_cast<int64_t>(g2);
  186|    948|   const int64_t f4g3 = f4 * static_cast<int64_t>(g3);
  187|    948|   const int64_t f4g4 = f4 * static_cast<int64_t>(g4);
  188|    948|   const int64_t f4g5 = f4 * static_cast<int64_t>(g5);
  189|    948|   const int64_t f4g6_19 = f4 * static_cast<int64_t>(g6_19);
  190|    948|   const int64_t f4g7_19 = f4 * static_cast<int64_t>(g7_19);
  191|    948|   const int64_t f4g8_19 = f4 * static_cast<int64_t>(g8_19);
  192|    948|   const int64_t f4g9_19 = f4 * static_cast<int64_t>(g9_19);
  193|    948|   const int64_t f5g0 = f5 * static_cast<int64_t>(g0);
  194|    948|   const int64_t f5g1_2 = f5_2 * static_cast<int64_t>(g1);
  195|    948|   const int64_t f5g2 = f5 * static_cast<int64_t>(g2);
  196|    948|   const int64_t f5g3_2 = f5_2 * static_cast<int64_t>(g3);
  197|    948|   const int64_t f5g4 = f5 * static_cast<int64_t>(g4);
  198|    948|   const int64_t f5g5_38 = f5_2 * static_cast<int64_t>(g5_19);
  199|    948|   const int64_t f5g6_19 = f5 * static_cast<int64_t>(g6_19);
  200|    948|   const int64_t f5g7_38 = f5_2 * static_cast<int64_t>(g7_19);
  201|    948|   const int64_t f5g8_19 = f5 * static_cast<int64_t>(g8_19);
  202|    948|   const int64_t f5g9_38 = f5_2 * static_cast<int64_t>(g9_19);
  203|    948|   const int64_t f6g0 = f6 * static_cast<int64_t>(g0);
  204|    948|   const int64_t f6g1 = f6 * static_cast<int64_t>(g1);
  205|    948|   const int64_t f6g2 = f6 * static_cast<int64_t>(g2);
  206|    948|   const int64_t f6g3 = f6 * static_cast<int64_t>(g3);
  207|    948|   const int64_t f6g4_19 = f6 * static_cast<int64_t>(g4_19);
  208|    948|   const int64_t f6g5_19 = f6 * static_cast<int64_t>(g5_19);
  209|    948|   const int64_t f6g6_19 = f6 * static_cast<int64_t>(g6_19);
  210|    948|   const int64_t f6g7_19 = f6 * static_cast<int64_t>(g7_19);
  211|    948|   const int64_t f6g8_19 = f6 * static_cast<int64_t>(g8_19);
  212|    948|   const int64_t f6g9_19 = f6 * static_cast<int64_t>(g9_19);
  213|    948|   const int64_t f7g0 = f7 * static_cast<int64_t>(g0);
  214|    948|   const int64_t f7g1_2 = f7_2 * static_cast<int64_t>(g1);
  215|    948|   const int64_t f7g2 = f7 * static_cast<int64_t>(g2);
  216|    948|   const int64_t f7g3_38 = f7_2 * static_cast<int64_t>(g3_19);
  217|    948|   const int64_t f7g4_19 = f7 * static_cast<int64_t>(g4_19);
  218|    948|   const int64_t f7g5_38 = f7_2 * static_cast<int64_t>(g5_19);
  219|    948|   const int64_t f7g6_19 = f7 * static_cast<int64_t>(g6_19);
  220|    948|   const int64_t f7g7_38 = f7_2 * static_cast<int64_t>(g7_19);
  221|    948|   const int64_t f7g8_19 = f7 * static_cast<int64_t>(g8_19);
  222|    948|   const int64_t f7g9_38 = f7_2 * static_cast<int64_t>(g9_19);
  223|    948|   const int64_t f8g0 = f8 * static_cast<int64_t>(g0);
  224|    948|   const int64_t f8g1 = f8 * static_cast<int64_t>(g1);
  225|    948|   const int64_t f8g2_19 = f8 * static_cast<int64_t>(g2_19);
  226|    948|   const int64_t f8g3_19 = f8 * static_cast<int64_t>(g3_19);
  227|    948|   const int64_t f8g4_19 = f8 * static_cast<int64_t>(g4_19);
  228|    948|   const int64_t f8g5_19 = f8 * static_cast<int64_t>(g5_19);
  229|    948|   const int64_t f8g6_19 = f8 * static_cast<int64_t>(g6_19);
  230|    948|   const int64_t f8g7_19 = f8 * static_cast<int64_t>(g7_19);
  231|    948|   const int64_t f8g8_19 = f8 * static_cast<int64_t>(g8_19);
  232|    948|   const int64_t f8g9_19 = f8 * static_cast<int64_t>(g9_19);
  233|    948|   const int64_t f9g0 = f9 * static_cast<int64_t>(g0);
  234|    948|   const int64_t f9g1_38 = f9_2 * static_cast<int64_t>(g1_19);
  235|    948|   const int64_t f9g2_19 = f9 * static_cast<int64_t>(g2_19);
  236|    948|   const int64_t f9g3_38 = f9_2 * static_cast<int64_t>(g3_19);
  237|    948|   const int64_t f9g4_19 = f9 * static_cast<int64_t>(g4_19);
  238|    948|   const int64_t f9g5_38 = f9_2 * static_cast<int64_t>(g5_19);
  239|    948|   const int64_t f9g6_19 = f9 * static_cast<int64_t>(g6_19);
  240|    948|   const int64_t f9g7_38 = f9_2 * static_cast<int64_t>(g7_19);
  241|    948|   const int64_t f9g8_19 = f9 * static_cast<int64_t>(g8_19);
  242|    948|   const int64_t f9g9_38 = f9_2 * static_cast<int64_t>(g9_19);
  243|       |
  244|    948|   int64_t h0 = f0g0 + f1g9_38 + f2g8_19 + f3g7_38 + f4g6_19 + f5g5_38 + f6g4_19 + f7g3_38 + f8g2_19 + f9g1_38;
  245|    948|   int64_t h1 = f0g1 + f1g0 + f2g9_19 + f3g8_19 + f4g7_19 + f5g6_19 + f6g5_19 + f7g4_19 + f8g3_19 + f9g2_19;
  246|    948|   int64_t h2 = f0g2 + f1g1_2 + f2g0 + f3g9_38 + f4g8_19 + f5g7_38 + f6g6_19 + f7g5_38 + f8g4_19 + f9g3_38;
  247|    948|   int64_t h3 = f0g3 + f1g2 + f2g1 + f3g0 + f4g9_19 + f5g8_19 + f6g7_19 + f7g6_19 + f8g5_19 + f9g4_19;
  248|    948|   int64_t h4 = f0g4 + f1g3_2 + f2g2 + f3g1_2 + f4g0 + f5g9_38 + f6g8_19 + f7g7_38 + f8g6_19 + f9g5_38;
  249|    948|   int64_t h5 = f0g5 + f1g4 + f2g3 + f3g2 + f4g1 + f5g0 + f6g9_19 + f7g8_19 + f8g7_19 + f9g6_19;
  250|    948|   int64_t h6 = f0g6 + f1g5_2 + f2g4 + f3g3_2 + f4g2 + f5g1_2 + f6g0 + f7g9_38 + f8g8_19 + f9g7_38;
  251|    948|   int64_t h7 = f0g7 + f1g6 + f2g5 + f3g4 + f4g3 + f5g2 + f6g1 + f7g0 + f8g9_19 + f9g8_19;
  252|    948|   int64_t h8 = f0g8 + f1g7_2 + f2g6 + f3g5_2 + f4g4 + f5g3_2 + f6g2 + f7g1_2 + f8g0 + f9g9_38;
  253|    948|   int64_t h9 = f0g9 + f1g8 + f2g7 + f3g6 + f4g5 + f5g4 + f6g3 + f7g2 + f8g1 + f9g0;
  254|       |
  255|       |   /*
  256|       |   |h0| <= (1.65*1.65*2^52*(1+19+19+19+19)+1.65*1.65*2^50*(38+38+38+38+38))
  257|       |   i.e. |h0| <= 1.4*2^60; narrower ranges for h2, h4, h6, h8
  258|       |   |h1| <= (1.65*1.65*2^51*(1+1+19+19+19+19+19+19+19+19))
  259|       |   i.e. |h1| <= 1.7*2^59; narrower ranges for h3, h5, h7, h9
  260|       |   */
  261|    948|   carry<26>(h0, h1);
  262|    948|   carry<26>(h4, h5);
  263|       |
  264|       |   /* |h0| <= 2^25 */
  265|       |   /* |h4| <= 2^25 */
  266|       |   /* |h1| <= 1.71*2^59 */
  267|       |   /* |h5| <= 1.71*2^59 */
  268|       |
  269|    948|   carry<25>(h1, h2);
  270|    948|   carry<25>(h5, h6);
  271|       |
  272|       |   /* |h1| <= 2^24; from now on fits into int32 */
  273|       |   /* |h5| <= 2^24; from now on fits into int32 */
  274|       |   /* |h2| <= 1.41*2^60 */
  275|       |   /* |h6| <= 1.41*2^60 */
  276|       |
  277|    948|   carry<26>(h2, h3);
  278|    948|   carry<26>(h6, h7);
  279|       |   /* |h2| <= 2^25; from now on fits into int32 unchanged */
  280|       |   /* |h6| <= 2^25; from now on fits into int32 unchanged */
  281|       |   /* |h3| <= 1.71*2^59 */
  282|       |   /* |h7| <= 1.71*2^59 */
  283|       |
  284|    948|   carry<25>(h3, h4);
  285|    948|   carry<25>(h7, h8);
  286|       |   /* |h3| <= 2^24; from now on fits into int32 unchanged */
  287|       |   /* |h7| <= 2^24; from now on fits into int32 unchanged */
  288|       |   /* |h4| <= 1.72*2^34 */
  289|       |   /* |h8| <= 1.41*2^60 */
  290|       |
  291|    948|   carry<26>(h4, h5);
  292|    948|   carry<26>(h8, h9);
  293|       |   /* |h4| <= 2^25; from now on fits into int32 unchanged */
  294|       |   /* |h8| <= 2^25; from now on fits into int32 unchanged */
  295|       |   /* |h5| <= 1.01*2^24 */
  296|       |   /* |h9| <= 1.71*2^59 */
  297|       |
  298|    948|   carry<25, 19>(h9, h0);
  299|       |
  300|       |   /* |h9| <= 2^24; from now on fits into int32 unchanged */
  301|       |   /* |h0| <= 1.1*2^39 */
  302|       |
  303|    948|   carry<26>(h0, h1);
  304|       |   /* |h0| <= 2^25; from now on fits into int32 unchanged */
  305|       |   /* |h1| <= 1.01*2^24 */
  306|       |
  307|    948|   return Ed25519_FieldElement(h0, h1, h2, h3, h4, h5, h6, h7, h8, h9);
  308|    948|}
_ZNK5Botan20Ed25519_FieldElement8sqr_iterEm:
  326|     46|Ed25519_FieldElement Ed25519_FieldElement::sqr_iter(size_t iter) const {
  327|     46|   int32_t f0 = m_fe[0];
  328|     46|   int32_t f1 = m_fe[1];
  329|     46|   int32_t f2 = m_fe[2];
  330|     46|   int32_t f3 = m_fe[3];
  331|     46|   int32_t f4 = m_fe[4];
  332|     46|   int32_t f5 = m_fe[5];
  333|     46|   int32_t f6 = m_fe[6];
  334|     46|   int32_t f7 = m_fe[7];
  335|     46|   int32_t f8 = m_fe[8];
  336|     46|   int32_t f9 = m_fe[9];
  337|       |
  338|    578|   for(size_t i = 0; i != iter; ++i) {
  ------------------
  |  Branch (338:22): [True: 532, False: 46]
  ------------------
  339|    532|      const int32_t f0_2 = 2 * f0;
  340|    532|      const int32_t f1_2 = 2 * f1;
  341|    532|      const int32_t f2_2 = 2 * f2;
  342|    532|      const int32_t f3_2 = 2 * f3;
  343|    532|      const int32_t f4_2 = 2 * f4;
  344|    532|      const int32_t f5_2 = 2 * f5;
  345|    532|      const int32_t f6_2 = 2 * f6;
  346|    532|      const int32_t f7_2 = 2 * f7;
  347|    532|      const int32_t f5_38 = 38 * f5; /* 1.959375*2^30 */
  348|    532|      const int32_t f6_19 = 19 * f6; /* 1.959375*2^30 */
  349|    532|      const int32_t f7_38 = 38 * f7; /* 1.959375*2^30 */
  350|    532|      const int32_t f8_19 = 19 * f8; /* 1.959375*2^30 */
  351|    532|      const int32_t f9_38 = 38 * f9; /* 1.959375*2^30 */
  352|       |
  353|    532|      const int64_t f0f0 = f0 * static_cast<int64_t>(f0);
  354|    532|      const int64_t f0f1_2 = f0_2 * static_cast<int64_t>(f1);
  355|    532|      const int64_t f0f2_2 = f0_2 * static_cast<int64_t>(f2);
  356|    532|      const int64_t f0f3_2 = f0_2 * static_cast<int64_t>(f3);
  357|    532|      const int64_t f0f4_2 = f0_2 * static_cast<int64_t>(f4);
  358|    532|      const int64_t f0f5_2 = f0_2 * static_cast<int64_t>(f5);
  359|    532|      const int64_t f0f6_2 = f0_2 * static_cast<int64_t>(f6);
  360|    532|      const int64_t f0f7_2 = f0_2 * static_cast<int64_t>(f7);
  361|    532|      const int64_t f0f8_2 = f0_2 * static_cast<int64_t>(f8);
  362|    532|      const int64_t f0f9_2 = f0_2 * static_cast<int64_t>(f9);
  363|    532|      const int64_t f1f1_2 = f1_2 * static_cast<int64_t>(f1);
  364|    532|      const int64_t f1f2_2 = f1_2 * static_cast<int64_t>(f2);
  365|    532|      const int64_t f1f3_4 = f1_2 * static_cast<int64_t>(f3_2);
  366|    532|      const int64_t f1f4_2 = f1_2 * static_cast<int64_t>(f4);
  367|    532|      const int64_t f1f5_4 = f1_2 * static_cast<int64_t>(f5_2);
  368|    532|      const int64_t f1f6_2 = f1_2 * static_cast<int64_t>(f6);
  369|    532|      const int64_t f1f7_4 = f1_2 * static_cast<int64_t>(f7_2);
  370|    532|      const int64_t f1f8_2 = f1_2 * static_cast<int64_t>(f8);
  371|    532|      const int64_t f1f9_76 = f1_2 * static_cast<int64_t>(f9_38);
  372|    532|      const int64_t f2f2 = f2 * static_cast<int64_t>(f2);
  373|    532|      const int64_t f2f3_2 = f2_2 * static_cast<int64_t>(f3);
  374|    532|      const int64_t f2f4_2 = f2_2 * static_cast<int64_t>(f4);
  375|    532|      const int64_t f2f5_2 = f2_2 * static_cast<int64_t>(f5);
  376|    532|      const int64_t f2f6_2 = f2_2 * static_cast<int64_t>(f6);
  377|    532|      const int64_t f2f7_2 = f2_2 * static_cast<int64_t>(f7);
  378|    532|      const int64_t f2f8_38 = f2_2 * static_cast<int64_t>(f8_19);
  379|    532|      const int64_t f2f9_38 = f2 * static_cast<int64_t>(f9_38);
  380|    532|      const int64_t f3f3_2 = f3_2 * static_cast<int64_t>(f3);
  381|    532|      const int64_t f3f4_2 = f3_2 * static_cast<int64_t>(f4);
  382|    532|      const int64_t f3f5_4 = f3_2 * static_cast<int64_t>(f5_2);
  383|    532|      const int64_t f3f6_2 = f3_2 * static_cast<int64_t>(f6);
  384|    532|      const int64_t f3f7_76 = f3_2 * static_cast<int64_t>(f7_38);
  385|    532|      const int64_t f3f8_38 = f3_2 * static_cast<int64_t>(f8_19);
  386|    532|      const int64_t f3f9_76 = f3_2 * static_cast<int64_t>(f9_38);
  387|    532|      const int64_t f4f4 = f4 * static_cast<int64_t>(f4);
  388|    532|      const int64_t f4f5_2 = f4_2 * static_cast<int64_t>(f5);
  389|    532|      const int64_t f4f6_38 = f4_2 * static_cast<int64_t>(f6_19);
  390|    532|      const int64_t f4f7_38 = f4 * static_cast<int64_t>(f7_38);
  391|    532|      const int64_t f4f8_38 = f4_2 * static_cast<int64_t>(f8_19);
  392|    532|      const int64_t f4f9_38 = f4 * static_cast<int64_t>(f9_38);
  393|    532|      const int64_t f5f5_38 = f5 * static_cast<int64_t>(f5_38);
  394|    532|      const int64_t f5f6_38 = f5_2 * static_cast<int64_t>(f6_19);
  395|    532|      const int64_t f5f7_76 = f5_2 * static_cast<int64_t>(f7_38);
  396|    532|      const int64_t f5f8_38 = f5_2 * static_cast<int64_t>(f8_19);
  397|    532|      const int64_t f5f9_76 = f5_2 * static_cast<int64_t>(f9_38);
  398|    532|      const int64_t f6f6_19 = f6 * static_cast<int64_t>(f6_19);
  399|    532|      const int64_t f6f7_38 = f6 * static_cast<int64_t>(f7_38);
  400|    532|      const int64_t f6f8_38 = f6_2 * static_cast<int64_t>(f8_19);
  401|    532|      const int64_t f6f9_38 = f6 * static_cast<int64_t>(f9_38);
  402|    532|      const int64_t f7f7_38 = f7 * static_cast<int64_t>(f7_38);
  403|    532|      const int64_t f7f8_38 = f7_2 * static_cast<int64_t>(f8_19);
  404|    532|      const int64_t f7f9_76 = f7_2 * static_cast<int64_t>(f9_38);
  405|    532|      const int64_t f8f8_19 = f8 * static_cast<int64_t>(f8_19);
  406|    532|      const int64_t f8f9_38 = f8 * static_cast<int64_t>(f9_38);
  407|    532|      const int64_t f9f9_38 = f9 * static_cast<int64_t>(f9_38);
  408|       |
  409|    532|      int64_t h0 = f0f0 + f1f9_76 + f2f8_38 + f3f7_76 + f4f6_38 + f5f5_38;
  410|    532|      int64_t h1 = f0f1_2 + f2f9_38 + f3f8_38 + f4f7_38 + f5f6_38;
  411|    532|      int64_t h2 = f0f2_2 + f1f1_2 + f3f9_76 + f4f8_38 + f5f7_76 + f6f6_19;
  412|    532|      int64_t h3 = f0f3_2 + f1f2_2 + f4f9_38 + f5f8_38 + f6f7_38;
  413|    532|      int64_t h4 = f0f4_2 + f1f3_4 + f2f2 + f5f9_76 + f6f8_38 + f7f7_38;
  414|    532|      int64_t h5 = f0f5_2 + f1f4_2 + f2f3_2 + f6f9_38 + f7f8_38;
  415|    532|      int64_t h6 = f0f6_2 + f1f5_4 + f2f4_2 + f3f3_2 + f7f9_76 + f8f8_19;
  416|    532|      int64_t h7 = f0f7_2 + f1f6_2 + f2f5_2 + f3f4_2 + f8f9_38;
  417|    532|      int64_t h8 = f0f8_2 + f1f7_4 + f2f6_2 + f3f5_4 + f4f4 + f9f9_38;
  418|    532|      int64_t h9 = f0f9_2 + f1f8_2 + f2f7_2 + f3f6_2 + f4f5_2;
  419|       |
  420|    532|      carry<26>(h0, h1);
  421|    532|      carry<26>(h4, h5);
  422|    532|      carry<25>(h1, h2);
  423|    532|      carry<25>(h5, h6);
  424|    532|      carry<26>(h2, h3);
  425|    532|      carry<26>(h6, h7);
  426|       |
  427|    532|      carry<25>(h3, h4);
  428|    532|      carry<25>(h7, h8);
  429|       |
  430|    532|      carry<26>(h4, h5);
  431|    532|      carry<26>(h8, h9);
  432|    532|      carry<25, 19>(h9, h0);
  433|    532|      carry<26>(h0, h1);
  434|       |
  435|    532|      f0 = static_cast<int32_t>(h0);
  436|    532|      f1 = static_cast<int32_t>(h1);
  437|    532|      f2 = static_cast<int32_t>(h2);
  438|    532|      f3 = static_cast<int32_t>(h3);
  439|    532|      f4 = static_cast<int32_t>(h4);
  440|    532|      f5 = static_cast<int32_t>(h5);
  441|    532|      f6 = static_cast<int32_t>(h6);
  442|    532|      f7 = static_cast<int32_t>(h7);
  443|    532|      f8 = static_cast<int32_t>(h8);
  444|    532|      f9 = static_cast<int32_t>(h9);
  445|    532|   }
  446|       |
  447|     46|   return Ed25519_FieldElement(f0, f1, f2, f3, f4, f5, f6, f7, f8, f9);
  448|     46|}
_ZNK5Botan20Ed25519_FieldElement4sqr2Ev:
  466|      8|Ed25519_FieldElement Ed25519_FieldElement::sqr2() const {
  467|      8|   const int32_t f0 = m_fe[0];
  468|      8|   const int32_t f1 = m_fe[1];
  469|      8|   const int32_t f2 = m_fe[2];
  470|      8|   const int32_t f3 = m_fe[3];
  471|      8|   const int32_t f4 = m_fe[4];
  472|      8|   const int32_t f5 = m_fe[5];
  473|      8|   const int32_t f6 = m_fe[6];
  474|      8|   const int32_t f7 = m_fe[7];
  475|      8|   const int32_t f8 = m_fe[8];
  476|      8|   const int32_t f9 = m_fe[9];
  477|       |
  478|      8|   const int32_t f0_2 = 2 * f0;
  479|      8|   const int32_t f1_2 = 2 * f1;
  480|      8|   const int32_t f2_2 = 2 * f2;
  481|      8|   const int32_t f3_2 = 2 * f3;
  482|      8|   const int32_t f4_2 = 2 * f4;
  483|      8|   const int32_t f5_2 = 2 * f5;
  484|      8|   const int32_t f6_2 = 2 * f6;
  485|      8|   const int32_t f7_2 = 2 * f7;
  486|      8|   const int32_t f5_38 = 38 * f5; /* 1.959375*2^30 */
  487|      8|   const int32_t f6_19 = 19 * f6; /* 1.959375*2^30 */
  488|      8|   const int32_t f7_38 = 38 * f7; /* 1.959375*2^30 */
  489|      8|   const int32_t f8_19 = 19 * f8; /* 1.959375*2^30 */
  490|      8|   const int32_t f9_38 = 38 * f9; /* 1.959375*2^30 */
  491|      8|   const int64_t f0f0 = f0 * static_cast<int64_t>(f0);
  492|      8|   const int64_t f0f1_2 = f0_2 * static_cast<int64_t>(f1);
  493|      8|   const int64_t f0f2_2 = f0_2 * static_cast<int64_t>(f2);
  494|      8|   const int64_t f0f3_2 = f0_2 * static_cast<int64_t>(f3);
  495|      8|   const int64_t f0f4_2 = f0_2 * static_cast<int64_t>(f4);
  496|      8|   const int64_t f0f5_2 = f0_2 * static_cast<int64_t>(f5);
  497|      8|   const int64_t f0f6_2 = f0_2 * static_cast<int64_t>(f6);
  498|      8|   const int64_t f0f7_2 = f0_2 * static_cast<int64_t>(f7);
  499|      8|   const int64_t f0f8_2 = f0_2 * static_cast<int64_t>(f8);
  500|      8|   const int64_t f0f9_2 = f0_2 * static_cast<int64_t>(f9);
  501|      8|   const int64_t f1f1_2 = f1_2 * static_cast<int64_t>(f1);
  502|      8|   const int64_t f1f2_2 = f1_2 * static_cast<int64_t>(f2);
  503|      8|   const int64_t f1f3_4 = f1_2 * static_cast<int64_t>(f3_2);
  504|      8|   const int64_t f1f4_2 = f1_2 * static_cast<int64_t>(f4);
  505|      8|   const int64_t f1f5_4 = f1_2 * static_cast<int64_t>(f5_2);
  506|      8|   const int64_t f1f6_2 = f1_2 * static_cast<int64_t>(f6);
  507|      8|   const int64_t f1f7_4 = f1_2 * static_cast<int64_t>(f7_2);
  508|      8|   const int64_t f1f8_2 = f1_2 * static_cast<int64_t>(f8);
  509|      8|   const int64_t f1f9_76 = f1_2 * static_cast<int64_t>(f9_38);
  510|      8|   const int64_t f2f2 = f2 * static_cast<int64_t>(f2);
  511|      8|   const int64_t f2f3_2 = f2_2 * static_cast<int64_t>(f3);
  512|      8|   const int64_t f2f4_2 = f2_2 * static_cast<int64_t>(f4);
  513|      8|   const int64_t f2f5_2 = f2_2 * static_cast<int64_t>(f5);
  514|      8|   const int64_t f2f6_2 = f2_2 * static_cast<int64_t>(f6);
  515|      8|   const int64_t f2f7_2 = f2_2 * static_cast<int64_t>(f7);
  516|      8|   const int64_t f2f8_38 = f2_2 * static_cast<int64_t>(f8_19);
  517|      8|   const int64_t f2f9_38 = f2 * static_cast<int64_t>(f9_38);
  518|      8|   const int64_t f3f3_2 = f3_2 * static_cast<int64_t>(f3);
  519|      8|   const int64_t f3f4_2 = f3_2 * static_cast<int64_t>(f4);
  520|      8|   const int64_t f3f5_4 = f3_2 * static_cast<int64_t>(f5_2);
  521|      8|   const int64_t f3f6_2 = f3_2 * static_cast<int64_t>(f6);
  522|      8|   const int64_t f3f7_76 = f3_2 * static_cast<int64_t>(f7_38);
  523|      8|   const int64_t f3f8_38 = f3_2 * static_cast<int64_t>(f8_19);
  524|      8|   const int64_t f3f9_76 = f3_2 * static_cast<int64_t>(f9_38);
  525|      8|   const int64_t f4f4 = f4 * static_cast<int64_t>(f4);
  526|      8|   const int64_t f4f5_2 = f4_2 * static_cast<int64_t>(f5);
  527|      8|   const int64_t f4f6_38 = f4_2 * static_cast<int64_t>(f6_19);
  528|      8|   const int64_t f4f7_38 = f4 * static_cast<int64_t>(f7_38);
  529|      8|   const int64_t f4f8_38 = f4_2 * static_cast<int64_t>(f8_19);
  530|      8|   const int64_t f4f9_38 = f4 * static_cast<int64_t>(f9_38);
  531|      8|   const int64_t f5f5_38 = f5 * static_cast<int64_t>(f5_38);
  532|      8|   const int64_t f5f6_38 = f5_2 * static_cast<int64_t>(f6_19);
  533|      8|   const int64_t f5f7_76 = f5_2 * static_cast<int64_t>(f7_38);
  534|      8|   const int64_t f5f8_38 = f5_2 * static_cast<int64_t>(f8_19);
  535|      8|   const int64_t f5f9_76 = f5_2 * static_cast<int64_t>(f9_38);
  536|      8|   const int64_t f6f6_19 = f6 * static_cast<int64_t>(f6_19);
  537|      8|   const int64_t f6f7_38 = f6 * static_cast<int64_t>(f7_38);
  538|      8|   const int64_t f6f8_38 = f6_2 * static_cast<int64_t>(f8_19);
  539|      8|   const int64_t f6f9_38 = f6 * static_cast<int64_t>(f9_38);
  540|      8|   const int64_t f7f7_38 = f7 * static_cast<int64_t>(f7_38);
  541|      8|   const int64_t f7f8_38 = f7_2 * static_cast<int64_t>(f8_19);
  542|      8|   const int64_t f7f9_76 = f7_2 * static_cast<int64_t>(f9_38);
  543|      8|   const int64_t f8f8_19 = f8 * static_cast<int64_t>(f8_19);
  544|      8|   const int64_t f8f9_38 = f8 * static_cast<int64_t>(f9_38);
  545|      8|   const int64_t f9f9_38 = f9 * static_cast<int64_t>(f9_38);
  546|       |
  547|      8|   int64_t h0 = f0f0 + f1f9_76 + f2f8_38 + f3f7_76 + f4f6_38 + f5f5_38;
  548|      8|   int64_t h1 = f0f1_2 + f2f9_38 + f3f8_38 + f4f7_38 + f5f6_38;
  549|      8|   int64_t h2 = f0f2_2 + f1f1_2 + f3f9_76 + f4f8_38 + f5f7_76 + f6f6_19;
  550|      8|   int64_t h3 = f0f3_2 + f1f2_2 + f4f9_38 + f5f8_38 + f6f7_38;
  551|      8|   int64_t h4 = f0f4_2 + f1f3_4 + f2f2 + f5f9_76 + f6f8_38 + f7f7_38;
  552|      8|   int64_t h5 = f0f5_2 + f1f4_2 + f2f3_2 + f6f9_38 + f7f8_38;
  553|      8|   int64_t h6 = f0f6_2 + f1f5_4 + f2f4_2 + f3f3_2 + f7f9_76 + f8f8_19;
  554|      8|   int64_t h7 = f0f7_2 + f1f6_2 + f2f5_2 + f3f4_2 + f8f9_38;
  555|      8|   int64_t h8 = f0f8_2 + f1f7_4 + f2f6_2 + f3f5_4 + f4f4 + f9f9_38;
  556|      8|   int64_t h9 = f0f9_2 + f1f8_2 + f2f7_2 + f3f6_2 + f4f5_2;
  557|       |
  558|      8|   h0 += h0;
  559|      8|   h1 += h1;
  560|      8|   h2 += h2;
  561|      8|   h3 += h3;
  562|      8|   h4 += h4;
  563|      8|   h5 += h5;
  564|      8|   h6 += h6;
  565|      8|   h7 += h7;
  566|      8|   h8 += h8;
  567|      8|   h9 += h9;
  568|       |
  569|      8|   carry<26>(h0, h1);
  570|      8|   carry<26>(h4, h5);
  571|       |
  572|      8|   carry<25>(h1, h2);
  573|      8|   carry<25>(h5, h6);
  574|       |
  575|      8|   carry<26>(h2, h3);
  576|      8|   carry<26>(h6, h7);
  577|       |
  578|      8|   carry<25>(h3, h4);
  579|      8|   carry<25>(h7, h8);
  580|      8|   carry<26>(h4, h5);
  581|      8|   carry<26>(h8, h9);
  582|      8|   carry<25, 19>(h9, h0);
  583|      8|   carry<26>(h0, h1);
  584|       |
  585|      8|   return Ed25519_FieldElement(h0, h1, h2, h3, h4, h5, h6, h7, h8, h9);
  586|      8|}
_ZNK5Botan20Ed25519_FieldElement12serialize_toENSt3__14spanIhLm32EEE:
  643|      4|void Ed25519_FieldElement::serialize_to(std::span<uint8_t, 32> s) const {
  644|      4|   const int32_t X25 = (1 << 25);
  645|       |
  646|      4|   int32_t h0 = m_fe[0];
  647|      4|   int32_t h1 = m_fe[1];
  648|      4|   int32_t h2 = m_fe[2];
  649|      4|   int32_t h3 = m_fe[3];
  650|      4|   int32_t h4 = m_fe[4];
  651|      4|   int32_t h5 = m_fe[5];
  652|      4|   int32_t h6 = m_fe[6];
  653|      4|   int32_t h7 = m_fe[7];
  654|      4|   int32_t h8 = m_fe[8];
  655|      4|   int32_t h9 = m_fe[9];
  656|       |
  657|      4|   int32_t q = (19 * h9 + ((static_cast<int32_t>(1) << 24))) >> 25;
  658|      4|   q = (h0 + q) >> 26;
  659|      4|   q = (h1 + q) >> 25;
  660|      4|   q = (h2 + q) >> 26;
  661|      4|   q = (h3 + q) >> 25;
  662|      4|   q = (h4 + q) >> 26;
  663|      4|   q = (h5 + q) >> 25;
  664|      4|   q = (h6 + q) >> 26;
  665|      4|   q = (h7 + q) >> 25;
  666|      4|   q = (h8 + q) >> 26;
  667|      4|   q = (h9 + q) >> 25;
  668|       |
  669|       |   /* Goal: Output h-(2^255-19)q, which is between 0 and 2^255-20. */
  670|      4|   h0 += 19 * q;
  671|       |   /* Goal: Output h-2^255 q, which is between 0 and 2^255-20. */
  672|       |
  673|      4|   carry0<26>(h0, h1);
  674|      4|   carry0<25>(h1, h2);
  675|      4|   carry0<26>(h2, h3);
  676|      4|   carry0<25>(h3, h4);
  677|      4|   carry0<26>(h4, h5);
  678|      4|   carry0<25>(h5, h6);
  679|      4|   carry0<26>(h6, h7);
  680|      4|   carry0<25>(h7, h8);
  681|      4|   carry0<26>(h8, h9);
  682|       |
  683|      4|   const int32_t carry9 = h9 >> 25;
  684|      4|   h9 -= carry9 * X25;
  685|       |   /* h10 = carry9 */
  686|       |
  687|       |   /*
  688|       |   Goal: Output h0+...+2^255 h10-2^255 q, which is between 0 and 2^255-20.
  689|       |   Have h0+...+2^230 h9 between 0 and 2^255-1;
  690|       |   evidently 2^255 h10-2^255 q = 0.
  691|       |   Goal: Output h0+...+2^230 h9.
  692|       |   */
  693|       |
  694|      4|   s[0] = static_cast<uint8_t>(h0 >> 0);
  695|      4|   s[1] = static_cast<uint8_t>(h0 >> 8);
  696|      4|   s[2] = static_cast<uint8_t>(h0 >> 16);
  697|      4|   s[3] = static_cast<uint8_t>((h0 >> 24) | (h1 << 2));
  698|      4|   s[4] = static_cast<uint8_t>(h1 >> 6);
  699|      4|   s[5] = static_cast<uint8_t>(h1 >> 14);
  700|      4|   s[6] = static_cast<uint8_t>((h1 >> 22) | (h2 << 3));
  701|      4|   s[7] = static_cast<uint8_t>(h2 >> 5);
  702|      4|   s[8] = static_cast<uint8_t>(h2 >> 13);
  703|      4|   s[9] = static_cast<uint8_t>((h2 >> 21) | (h3 << 5));
  704|      4|   s[10] = static_cast<uint8_t>(h3 >> 3);
  705|      4|   s[11] = static_cast<uint8_t>(h3 >> 11);
  706|      4|   s[12] = static_cast<uint8_t>((h3 >> 19) | (h4 << 6));
  707|      4|   s[13] = static_cast<uint8_t>(h4 >> 2);
  708|      4|   s[14] = static_cast<uint8_t>(h4 >> 10);
  709|      4|   s[15] = static_cast<uint8_t>(h4 >> 18);
  710|      4|   s[16] = static_cast<uint8_t>(h5 >> 0);
  711|      4|   s[17] = static_cast<uint8_t>(h5 >> 8);
  712|      4|   s[18] = static_cast<uint8_t>(h5 >> 16);
  713|      4|   s[19] = static_cast<uint8_t>((h5 >> 24) | (h6 << 1));
  714|      4|   s[20] = static_cast<uint8_t>(h6 >> 7);
  715|      4|   s[21] = static_cast<uint8_t>(h6 >> 15);
  716|      4|   s[22] = static_cast<uint8_t>((h6 >> 23) | (h7 << 3));
  717|      4|   s[23] = static_cast<uint8_t>(h7 >> 5);
  718|      4|   s[24] = static_cast<uint8_t>(h7 >> 13);
  719|      4|   s[25] = static_cast<uint8_t>((h7 >> 21) | (h8 << 4));
  720|      4|   s[26] = static_cast<uint8_t>(h8 >> 4);
  721|      4|   s[27] = static_cast<uint8_t>(h8 >> 12);
  722|      4|   s[28] = static_cast<uint8_t>((h8 >> 20) | (h9 << 6));
  723|      4|   s[29] = static_cast<uint8_t>(h9 >> 2);
  724|      4|   s[30] = static_cast<uint8_t>(h9 >> 10);
  725|      4|   s[31] = static_cast<uint8_t>(h9 >> 18);
  726|      4|}

_ZN5Botan18Ed25519_PrivateKeyC1ERKNS_19AlgorithmIdentifierENSt3__14spanIKhLm18446744073709551615EEE:
  181|     10|Ed25519_PrivateKey::Ed25519_PrivateKey(const AlgorithmIdentifier& alg_id, std::span<const uint8_t> key_bits) {
  182|       |   // RFC 8410 Section 3: "the parameters MUST be absent".
  183|     10|   if(!alg_id.parameters_are_empty()) {
  ------------------
  |  Branch (183:7): [True: 1, False: 9]
  ------------------
  184|      1|      throw Decoding_Error("Unexpected parameters for Ed25519 private key");
  185|      1|   }
  186|       |
  187|      9|   secure_vector<uint8_t> bits;
  188|      9|   BER_Decoder(key_bits, BER_Decoder::Limits::DER()).decode(bits, ASN1_Type::OctetString).discard_remaining();
  189|       |
  190|      9|   if(bits.size() != 32) {
  ------------------
  |  Branch (190:7): [True: 6, False: 3]
  ------------------
  191|      6|      throw Decoding_Error("Invalid size for Ed25519 private key");
  192|      6|   }
  193|      3|   load_ed25519_keypair(ed25519_expand_seed(bits), m_public, m_private);
  194|      3|}
ed25519_key.cpp:_ZN5Botan12_GLOBAL__N_120load_ed25519_keypairENSt3__16vectorIhNS_16secure_allocatorIhEEEERNS1_10shared_ptrIKNS_22Ed25519_PublicKey_DataEEERNS6_IKNS_23Ed25519_PrivateKey_DataEEE:
  136|      2|                          std::shared_ptr<const Ed25519_PrivateKey_Data>& sk_out) {
  137|      2|   BOTAN_ASSERT_NOMSG(expanded_key.size() == 64);
  ------------------
  |  |   77|      2|   do {                                                                     \
  |  |   78|      2|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|      2|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 2]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|      2|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 2]
  |  |  ------------------
  ------------------
  138|      2|   pk_out = std::make_shared<const Ed25519_PublicKey_Data>(
  139|      2|      std::vector<uint8_t>(expanded_key.begin() + 32, expanded_key.end()));
  140|      2|   sk_out = std::make_shared<const Ed25519_PrivateKey_Data>(std::move(expanded_key));
  141|      2|}
_ZN5Botan23Ed25519_PrivateKey_DataC2ENSt3__16vectorIhNS_16secure_allocatorIhEEEE:
   33|      2|      explicit Ed25519_PrivateKey_Data(secure_vector<uint8_t> key) : m_key(std::move(key)) {}
ed25519_key.cpp:_ZN5Botan12_GLOBAL__N_119ed25519_expand_seedENSt3__14spanIKhLm18446744073709551615EEE:
  144|      2|secure_vector<uint8_t> ed25519_expand_seed(std::span<const uint8_t> seed) {
  145|      2|   BOTAN_ASSERT_NOMSG(seed.size() == 32);
  ------------------
  |  |   77|      2|   do {                                                                     \
  |  |   78|      2|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|      2|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 2]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|      2|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 2]
  |  |  ------------------
  ------------------
  146|      2|   std::vector<uint8_t> pk(32);  // also written into the expanded private key
  147|      2|   secure_vector<uint8_t> sk(64);
  148|      2|   ed25519_gen_keypair(pk.data(), sk.data(), seed.data());
  149|      2|   return sk;
  150|      2|}
_ZN5Botan22Ed25519_PublicKey_DataC2ENSt3__16vectorIhNS1_9allocatorIhEEEE:
   23|      2|      explicit Ed25519_PublicKey_Data(std::vector<uint8_t> key) : m_key(std::move(key)) {}

_ZN5Botan21ed25519_basepoint_mulENSt3__14spanIhLm32EEEPKh:
 1874|      2|void ed25519_basepoint_mul(std::span<uint8_t, 32> out, const uint8_t a[32]) {
 1875|      2|   std::array<int8_t, 64> e{};
 1876|       |
 1877|      2|   CT::poison(a, 32);
 1878|       |
 1879|       |   // each e[i] is between 0 and 15 except e[63] which is between 0 and 7
 1880|     66|   for(size_t i = 0; i != 32; ++i) {
  ------------------
  |  Branch (1880:22): [True: 64, False: 2]
  ------------------
 1881|     64|      e[2 * i + 0] = (a[i] >> 0) & 0x0F;
 1882|     64|      e[2 * i + 1] = (a[i] >> 4) & 0x0F;
 1883|     64|   }
 1884|       |
 1885|      2|   int8_t carry = 0;
 1886|    128|   for(size_t i = 0; i < 63; ++i) {
  ------------------
  |  Branch (1886:22): [True: 126, False: 2]
  ------------------
 1887|    126|      e[i] += carry;
 1888|    126|      carry = e[i] + 8;
 1889|    126|      carry >>= 4;
 1890|    126|      e[i] -= carry << 4;
 1891|    126|   }
 1892|      2|   e[63] += carry;
 1893|       |   /* each e[i] is between -8 and 8 */
 1894|       |
 1895|      2|   auto h = Ed25519_Point_Extended::identity();
 1896|     66|   for(size_t i = 1; i < 64; i += 2) {
  ------------------
  |  Branch (1896:22): [True: 64, False: 2]
  ------------------
 1897|     64|      h = Ed25519_Point_Extended::from(h + select(B_precomp[i / 2], e[i]));
 1898|     64|   }
 1899|       |
 1900|      2|   auto s = Ed25519_Point_Projective::from(h.dbl());
 1901|      2|   s = Ed25519_Point_Projective::from(s.dbl());
 1902|      2|   s = Ed25519_Point_Projective::from(s.dbl());
 1903|      2|   h = Ed25519_Point_Extended::from(s.dbl());
 1904|       |
 1905|     66|   for(size_t i = 0; i != 64; i += 2) {
  ------------------
  |  Branch (1905:22): [True: 64, False: 2]
  ------------------
 1906|     64|      h = Ed25519_Point_Extended::from(h + select(B_precomp[i / 2], e[i]));
 1907|     64|   }
 1908|       |
 1909|      2|   h.serialize_to(out);
 1910|       |
 1911|      2|   CT::unpoison(a, 32);
 1912|      2|   CT::unpoison(out);
 1913|      2|}
ge.cpp:_ZN5Botan12_GLOBAL__N_122Ed25519_Point_Extended8identityEv:
  109|      2|      static constexpr Ed25519_Point_Extended identity() {
  110|      2|         Ed25519_Point_Extended h;
  111|      2|         h.X = Ed25519_FieldElement::zero();
  112|      2|         h.Y = Ed25519_FieldElement::one();
  113|      2|         h.Z = Ed25519_FieldElement::one();
  114|      2|         h.T = Ed25519_FieldElement::zero();
  115|      2|         return h;
  116|      2|      }
ge.cpp:_ZN5Botan12_GLOBAL__N_122Ed25519_Point_Extended4fromERKNS0_23Ed25519_Point_CompletedE:
  129|    130|      static Ed25519_Point_Extended from(const Ed25519_Point_Completed& p) {
  130|    130|         Ed25519_Point_Extended r;
  131|    130|         r.X = p.X * p.T;
  132|    130|         r.Y = p.Y * p.Z;
  133|    130|         r.Z = p.Z * p.T;
  134|    130|         r.T = p.X * p.Y;
  135|    130|         return r;
  136|    130|      }
ge.cpp:_ZN5Botan12_GLOBAL__N_1plERKNS0_22Ed25519_Point_ExtendedERKNS0_19Ed25519_Point_NielsE:
  220|    128|inline Ed25519_Point_Completed operator+(const Ed25519_Point_Extended& p, const Ed25519_Point_Niels& q) {
  221|    128|   Ed25519_Point_Completed r;
  222|    128|   r.X = p.Y + p.X;        // YpX1 = Y1+X1
  223|    128|   r.Y = p.Y - p.X;        // YmX1 = Y1-X1
  224|    128|   r.Z = r.X * q.yplusx;   // A = YpX1*ypx2
  225|    128|   r.Y = r.Y * q.yminusx;  // B = YmX1*ymx2
  226|    128|   r.T = q.xy2d * p.T;     // C = xy2d2*T1
  227|    128|   auto t0 = p.Z + p.Z;    // D = 2*Z1
  228|    128|   r.X = r.Z - r.Y;        // X3 = A-B
  229|    128|   r.Y = r.Z + r.Y;        // Y3 = A+B
  230|    128|   r.Z = t0 + r.T;         // Z3 = D+C
  231|    128|   r.T = t0 - r.T;         // T3 = D-C
  232|    128|   return r;
  233|    128|}
ge.cpp:_ZN5Botan12_GLOBAL__N_16selectEPKNS0_19Ed25519_Point_NielsEa:
  466|    128|Ed25519_Point_Niels select(const Ed25519_Point_Niels base[8], int8_t b) {
  467|    128|   const uint8_t bnegative = negative(b);
  468|    128|   const uint8_t babs = b - ((-static_cast<int>(bnegative) & b) * 2);
  469|    128|   const uint32_t neg_mask = equal32(bnegative, 1);
  470|       |
  471|    128|   const uint32_t mask1 = equal32(babs, 1);
  472|    128|   const uint32_t mask2 = equal32(babs, 2);
  473|    128|   const uint32_t mask3 = equal32(babs, 3);
  474|    128|   const uint32_t mask4 = equal32(babs, 4);
  475|    128|   const uint32_t mask5 = equal32(babs, 5);
  476|    128|   const uint32_t mask6 = equal32(babs, 6);
  477|    128|   const uint32_t mask7 = equal32(babs, 7);
  478|    128|   const uint32_t mask8 = equal32(babs, 8);
  479|       |
  480|    128|   auto t = Ed25519_Point_Niels::identity();
  481|       |
  482|  1.40k|   for(size_t i = 0; i != 10; ++i) {
  ------------------
  |  Branch (482:22): [True: 1.28k, False: 128]
  ------------------
  483|  1.28k|      t.yplusx[i] = t.yplusx[i] ^ ((t.yplusx[i] ^ base[0].yplusx[i]) & mask1) ^
  484|  1.28k|                    ((t.yplusx[i] ^ base[1].yplusx[i]) & mask2) ^ ((t.yplusx[i] ^ base[2].yplusx[i]) & mask3) ^
  485|  1.28k|                    ((t.yplusx[i] ^ base[3].yplusx[i]) & mask4) ^ ((t.yplusx[i] ^ base[4].yplusx[i]) & mask5) ^
  486|  1.28k|                    ((t.yplusx[i] ^ base[5].yplusx[i]) & mask6) ^ ((t.yplusx[i] ^ base[6].yplusx[i]) & mask7) ^
  487|  1.28k|                    ((t.yplusx[i] ^ base[7].yplusx[i]) & mask8);
  488|       |
  489|  1.28k|      t.yminusx[i] = t.yminusx[i] ^ ((t.yminusx[i] ^ base[0].yminusx[i]) & mask1) ^
  490|  1.28k|                     ((t.yminusx[i] ^ base[1].yminusx[i]) & mask2) ^ ((t.yminusx[i] ^ base[2].yminusx[i]) & mask3) ^
  491|  1.28k|                     ((t.yminusx[i] ^ base[3].yminusx[i]) & mask4) ^ ((t.yminusx[i] ^ base[4].yminusx[i]) & mask5) ^
  492|  1.28k|                     ((t.yminusx[i] ^ base[5].yminusx[i]) & mask6) ^ ((t.yminusx[i] ^ base[6].yminusx[i]) & mask7) ^
  493|  1.28k|                     ((t.yminusx[i] ^ base[7].yminusx[i]) & mask8);
  494|       |
  495|  1.28k|      t.xy2d[i] = t.xy2d[i] ^ ((t.xy2d[i] ^ base[0].xy2d[i]) & mask1) ^ ((t.xy2d[i] ^ base[1].xy2d[i]) & mask2) ^
  496|  1.28k|                  ((t.xy2d[i] ^ base[2].xy2d[i]) & mask3) ^ ((t.xy2d[i] ^ base[3].xy2d[i]) & mask4) ^
  497|  1.28k|                  ((t.xy2d[i] ^ base[4].xy2d[i]) & mask5) ^ ((t.xy2d[i] ^ base[5].xy2d[i]) & mask6) ^
  498|  1.28k|                  ((t.xy2d[i] ^ base[6].xy2d[i]) & mask7) ^ ((t.xy2d[i] ^ base[7].xy2d[i]) & mask8);
  499|  1.28k|   }
  500|       |
  501|    128|   auto minus_xy2d = -t.xy2d;
  502|       |
  503|       |   // If negative have to swap yminusx and yplusx
  504|  1.40k|   for(size_t i = 0; i != 10; ++i) {
  ------------------
  |  Branch (504:22): [True: 1.28k, False: 128]
  ------------------
  505|  1.28k|      const int32_t t_yplusx = t.yplusx[i] ^ ((t.yplusx[i] ^ t.yminusx[i]) & neg_mask);
  506|  1.28k|      const int32_t t_yminusx = t.yminusx[i] ^ ((t.yminusx[i] ^ t.yplusx[i]) & neg_mask);
  507|       |
  508|  1.28k|      t.yplusx[i] = t_yplusx;
  509|  1.28k|      t.yminusx[i] = t_yminusx;
  510|  1.28k|      t.xy2d[i] = t.xy2d[i] ^ ((t.xy2d[i] ^ minus_xy2d[i]) & neg_mask);
  511|  1.28k|   }
  512|       |
  513|    128|   return t;
  514|    128|}
ge.cpp:_ZN5Botan12_GLOBAL__N_18negativeEa:
  462|    128|inline uint8_t negative(int8_t b) {
  463|    128|   return static_cast<uint8_t>(b) >> 7;
  464|    128|}
ge.cpp:_ZN5Botan12_GLOBAL__N_17equal32Ehh:
  458|  1.15k|inline uint32_t equal32(uint8_t b, uint8_t c) {
  459|  1.15k|   return CT::Mask<uint32_t>::is_equal(b, c).value();
  460|  1.15k|}
ge.cpp:_ZN5Botan12_GLOBAL__N_119Ed25519_Point_Niels8identityEv:
  160|    128|      static constexpr Ed25519_Point_Niels identity() {
  161|    128|         Ed25519_Point_Niels h;
  162|    128|         h.yplusx = Ed25519_FieldElement::one();
  163|    128|         h.yminusx = Ed25519_FieldElement::one();
  164|    128|         h.xy2d = Ed25519_FieldElement::zero();
  165|    128|         return h;
  166|    128|      }
ge.cpp:_ZN5Botan12_GLOBAL__N_124Ed25519_Point_Projective4fromERKNS0_23Ed25519_Point_CompletedE:
   56|      6|      static Ed25519_Point_Projective from(const Ed25519_Point_Completed& p) {
   57|      6|         Ed25519_Point_Projective r;
   58|      6|         r.X = p.X * p.T;
   59|      6|         r.Y = p.Y * p.Z;
   60|      6|         r.Z = p.Z * p.T;
   61|      6|         return r;
   62|      6|      }
ge.cpp:_ZNK5Botan12_GLOBAL__N_122Ed25519_Point_Extended3dblEv:
  118|      2|      Ed25519_Point_Completed dbl() const {
  119|      2|         Ed25519_Point_Projective q;
  120|      2|         q.X = X;
  121|      2|         q.Y = Y;
  122|      2|         q.Z = Z;
  123|      2|         return q.dbl();
  124|      2|      }
ge.cpp:_ZNK5Botan12_GLOBAL__N_124Ed25519_Point_Projective3dblEv:
   83|      8|Ed25519_Point_Completed Ed25519_Point_Projective::dbl() const {
   84|      8|   Ed25519_Point_Completed r;
   85|      8|   r.X = X.sqr();        // XX=X1^2
   86|      8|   r.Z = Y.sqr();        // YY=Y1^2
   87|      8|   r.T = Z.sqr2();       // B=2*Z1^2
   88|      8|   r.Y = X + Y;          // A=X1+Y1
   89|      8|   auto t0 = r.Y.sqr();  // AA=A^2
   90|      8|   r.Y = r.Z + r.X;      // Y3=YY+XX
   91|      8|   r.Z = r.Z - r.X;      // Z3=YY-XX
   92|      8|   r.X = t0 - r.Y;       // X3=AA-Y3
   93|      8|   r.T = r.T - r.Z;      // T3=B-Z3
   94|      8|   return r;
   95|      8|}
ge.cpp:_ZNK5Botan12_GLOBAL__N_122Ed25519_Point_Extended12serialize_toENSt3__14spanIhLm32EEE:
  138|      2|      void serialize_to(std::span<uint8_t, 32> out) const {
  139|      2|         auto recip = this->Z.invert();
  140|      2|         auto x = this->X * recip;
  141|      2|         auto y = this->Y * recip;
  142|      2|         y.serialize_to(out);
  143|      2|         out[31] ^= x.is_negative() ? 0x80 : 0x00;
  ------------------
  |  Branch (143:21): [True: 0, False: 2]
  ------------------
  144|      2|      }

_ZN5Botan20GOST_3410_PrivateKeyC1ERKNS_19AlgorithmIdentifierENSt3__14spanIKhLm18446744073709551615EEE:
  188|      2|      EC_PrivateKey(gost_private_key_alg_id(alg_id), key_bits) {}
gost_3410.cpp:_ZN5Botan12_GLOBAL__N_132assert_gost_algorithm_identifierERKNS_19AlgorithmIdentifierE:
   35|      2|const AlgorithmIdentifier& assert_gost_algorithm_identifier(const AlgorithmIdentifier& alg_id) {
   36|      2|   if(!is_gost_3410_key_oid(alg_id.oid())) {
  ------------------
  |  Branch (36:7): [True: 1, False: 1]
  ------------------
   37|      1|      throw Decoding_Error(
   38|      1|         fmt("Unexpected AlgorithmIdentifier OID {} in association with GOST 34.10 key", alg_id.oid()));
   39|      1|   }
   40|       |
   41|      1|   return alg_id;  // NOLINT(*-return-const-ref-from-parameter)
   42|      2|}
gost_3410.cpp:_ZN5Botan12_GLOBAL__N_120is_gost_3410_key_oidERKNS_3OIDE:
   30|      2|bool is_gost_3410_key_oid(const OID& oid) {
   31|      2|   return oid == OID::from_string("GOST-34.10") || oid == OID::from_string("GOST-34.10-2012-256") ||
  ------------------
  |  Branch (31:11): [True: 1, False: 1]
  |  Branch (31:52): [True: 0, False: 1]
  ------------------
   32|      1|          oid == OID::from_string("GOST-34.10-2012-512");
  ------------------
  |  Branch (32:11): [True: 0, False: 1]
  ------------------
   33|      2|}
gost_3410.cpp:_ZN5Botan12_GLOBAL__N_126decode_gost_key_parametersERKNS_19AlgorithmIdentifierE:
   44|      1|OID decode_gost_key_parameters(const AlgorithmIdentifier& alg_id) {
   45|      1|   OID ecc_param_id;
   46|       |
   47|      1|   auto outer = BER_Decoder(alg_id.parameters(), BER_Decoder::Limits::DER());
   48|      1|   auto params = outer.start_sequence();
   49|      1|   params.decode(ecc_param_id);
   50|       |
   51|      1|   if(params.more_items()) {
  ------------------
  |  Branch (51:7): [True: 0, False: 1]
  ------------------
   52|      0|      OID digest_param_id;
   53|      0|      params.decode(digest_param_id);
   54|       |
   55|      0|      if(alg_id.oid() == OID::from_string("GOST-34.10-2012-256") &&
  ------------------
  |  Branch (55:10): [True: 0, False: 0]
  |  Branch (55:10): [True: 0, False: 0]
  ------------------
   56|      0|         digest_param_id != OID::from_string("Streebog-256")) {
  ------------------
  |  Branch (56:10): [True: 0, False: 0]
  ------------------
   57|      0|         throw Decoding_Error("Unexpected digest parameters for GOST-34.10-2012-256 public key");
   58|      0|      }
   59|       |
   60|      0|      if(alg_id.oid() == OID::from_string("GOST-34.10-2012-512") &&
  ------------------
  |  Branch (60:10): [True: 0, False: 0]
  |  Branch (60:10): [True: 0, False: 0]
  ------------------
   61|      0|         digest_param_id != OID::from_string("Streebog-512")) {
  ------------------
  |  Branch (61:10): [True: 0, False: 0]
  ------------------
   62|      0|         throw Decoding_Error("Unexpected digest parameters for GOST-34.10-2012-512 public key");
   63|      0|      }
   64|      0|   }
   65|       |
   66|      1|   if(params.more_items()) {
  ------------------
  |  Branch (66:7): [True: 0, False: 1]
  ------------------
   67|      0|      if(alg_id.oid() != OID::from_string("GOST-34.10")) {
  ------------------
  |  Branch (67:10): [True: 0, False: 0]
  ------------------
   68|      0|         throw Decoding_Error("Unexpected extra parameters for GOST-34.10-2012 public key");
   69|      0|      }
   70|       |
   71|      0|      OID encryption_param_id;
   72|      0|      params.decode(encryption_param_id);
   73|      0|   }
   74|       |
   75|      1|   params.verify_end();
   76|      1|   outer.verify_end();
   77|       |
   78|      1|   return ecc_param_id;
   79|      1|}
gost_3410.cpp:_ZN5Botan12_GLOBAL__N_123gost_private_key_alg_idERKNS_19AlgorithmIdentifierE:
   91|      2|AlgorithmIdentifier gost_private_key_alg_id(const AlgorithmIdentifier& alg_id) {
   92|      2|   assert_gost_algorithm_identifier(alg_id);
   93|       |
   94|      2|   OID ecc_param_id;
   95|      2|   BER_Decoder decoder(alg_id.parameters(), BER_Decoder::Limits::DER());
   96|      2|   if(decoder.peek_next_object().type_tag() == ASN1_Type::ObjectId) {
  ------------------
  |  Branch (96:7): [True: 0, False: 2]
  ------------------
   97|      0|      decoder.decode(ecc_param_id).verify_end();
   98|      2|   } else {
   99|      2|      ecc_param_id = decode_gost_key_parameters(alg_id);
  100|      2|   }
  101|       |
  102|      2|   auto group = check_domain(EC_Group::from_OID(ecc_param_id));
  103|      2|   check_gost_key_oid_matches_group(alg_id.oid(), group);
  104|       |
  105|      2|   return AlgorithmIdentifier(alg_id.oid(), group.DER_encode());
  106|      2|}

_ZN5Botan9KyberModeC2ERKNS_3OIDE:
   86|     33|KyberMode::KyberMode(const OID& oid) : m_mode(kyber_mode_from_oid(oid)) {}
_ZNK5Botan9KyberMode9is_ml_kemEv:
  127|     99|bool KyberMode::is_ml_kem() const {
  128|     99|   return m_mode == KyberMode::ML_KEM_512 || m_mode == KyberMode::ML_KEM_768 || m_mode == KyberMode::ML_KEM_1024;
  ------------------
  |  Branch (128:11): [True: 18, False: 81]
  |  Branch (128:46): [True: 42, False: 39]
  |  Branch (128:81): [True: 39, False: 0]
  ------------------
  129|     99|}
_ZNK5Botan9KyberMode15is_kyber_round3Ev:
  131|    116|bool KyberMode::is_kyber_round3() const {
  132|    116|   return m_mode == KyberMode::Kyber512_R3 || m_mode == KyberMode::Kyber768_R3 || m_mode == KyberMode::Kyber1024_R3 ||
  ------------------
  |  Branch (132:11): [True: 0, False: 116]
  |  Branch (132:47): [True: 0, False: 116]
  |  Branch (132:83): [True: 0, False: 116]
  ------------------
  133|    116|          m_mode == KyberMode::Kyber512_90s || m_mode == KyberMode::Kyber768_90s || m_mode == KyberMode::Kyber1024_90s;
  ------------------
  |  Branch (133:11): [True: 0, False: 116]
  |  Branch (133:48): [True: 0, False: 116]
  |  Branch (133:85): [True: 0, False: 116]
  ------------------
  134|    116|}
_ZN5Botan16Kyber_PrivateKeyC1ERKNS_19AlgorithmIdentifierENSt3__14spanIKhLm18446744073709551615EEE:
  240|     33|      Kyber_PrivateKey(key_bits, KyberMode(alg_id.oid())) {
  241|       |   // The parameter set is identified by the OID; no parameters are defined.
  242|     33|   if(!alg_id.parameters_are_empty()) {
  ------------------
  |  Branch (242:7): [True: 13, False: 20]
  ------------------
  243|     13|      throw Decoding_Error("Unexpected parameters for ML-KEM/Kyber private key");
  244|     13|   }
  245|     33|}
_ZN5Botan16Kyber_PrivateKeyC1ENSt3__14spanIKhLm18446744073709551615EEENS_9KyberModeE:
  247|     33|Kyber_PrivateKey::Kyber_PrivateKey(std::span<const uint8_t> sk, KyberMode m) {
  248|     33|   KyberConstants mode(m);
  249|       |
  250|     33|   if(mode.mode().is_ml_kem() && sk.size() == mode.seed_private_key_bytes()) {
  ------------------
  |  Branch (250:7): [True: 33, False: 0]
  |  Branch (250:7): [True: 25, False: 8]
  |  Branch (250:34): [True: 25, False: 8]
  ------------------
  251|     25|      std::tie(m_public, m_private) = Seed_Expanding_Keypair_Codec().decode_keypair(sk, std::move(mode));
  252|     25|   } else if(sk.size() == mode.expanded_private_key_bytes()) {
  ------------------
  |  Branch (252:14): [True: 0, False: 8]
  ------------------
  253|      0|      std::tie(m_public, m_private) = Expanded_Keypair_Codec().decode_keypair(sk, std::move(mode));
  254|      8|   } else if(!mode.mode().is_ml_kem() && sk.size() == mode.seed_private_key_bytes()) {
  ------------------
  |  Branch (254:14): [True: 0, False: 8]
  |  Branch (254:14): [True: 0, False: 8]
  |  Branch (254:42): [True: 0, False: 0]
  ------------------
  255|      0|      throw Invalid_Argument("Kyber round 3 private keys do not support the seed format");
  256|      8|   } else {
  257|      8|      throw Invalid_Argument("Private key does not have the correct byte count");
  258|      8|   }
  259|     33|}
kyber.cpp:_ZN5Botan12_GLOBAL__N_119kyber_mode_from_oidERKNS_3OIDE:
   74|     33|KyberMode::Mode kyber_mode_from_oid(const OID& oid) {
   75|     33|   if(const auto name = oid.registered_name()) {
  ------------------
  |  Branch (75:18): [True: 33, False: 0]
  ------------------
   76|     33|      return kyber_mode_from_string(*name);
   77|     33|   }
   78|       |
   79|      0|   throw Invalid_Argument(fmt("OID '{}' is not registered as a Kyber/ML-KEM mode", oid));
   80|     33|}
kyber.cpp:_ZN5Botan12_GLOBAL__N_122kyber_mode_from_stringENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   42|     33|KyberMode::Mode kyber_mode_from_string(std::string_view str) {
   43|     33|   if(str == "Kyber-512-90s-r3") {
  ------------------
  |  Branch (43:7): [True: 0, False: 33]
  ------------------
   44|      0|      return KyberMode::Kyber512_90s;
   45|      0|   }
   46|     33|   if(str == "Kyber-768-90s-r3") {
  ------------------
  |  Branch (46:7): [True: 0, False: 33]
  ------------------
   47|      0|      return KyberMode::Kyber768_90s;
   48|      0|   }
   49|     33|   if(str == "Kyber-1024-90s-r3") {
  ------------------
  |  Branch (49:7): [True: 0, False: 33]
  ------------------
   50|      0|      return KyberMode::Kyber1024_90s;
   51|      0|   }
   52|     33|   if(str == "Kyber-512-r3") {
  ------------------
  |  Branch (52:7): [True: 0, False: 33]
  ------------------
   53|      0|      return KyberMode::Kyber512_R3;
   54|      0|   }
   55|     33|   if(str == "Kyber-768-r3") {
  ------------------
  |  Branch (55:7): [True: 0, False: 33]
  ------------------
   56|      0|      return KyberMode::Kyber768_R3;
   57|      0|   }
   58|     33|   if(str == "Kyber-1024-r3") {
  ------------------
  |  Branch (58:7): [True: 0, False: 33]
  ------------------
   59|      0|      return KyberMode::Kyber1024_R3;
   60|      0|   }
   61|     33|   if(str == "ML-KEM-512") {
  ------------------
  |  Branch (61:7): [True: 6, False: 27]
  ------------------
   62|      6|      return KyberMode::ML_KEM_512;
   63|      6|   }
   64|     27|   if(str == "ML-KEM-768") {
  ------------------
  |  Branch (64:7): [True: 14, False: 13]
  ------------------
   65|     14|      return KyberMode::ML_KEM_768;
   66|     14|   }
   67|     13|   if(str == "ML-KEM-1024") {
  ------------------
  |  Branch (67:7): [True: 13, False: 0]
  ------------------
   68|     13|      return KyberMode::ML_KEM_1024;
   69|     13|   }
   70|       |
   71|      0|   throw Invalid_Argument(fmt("'{}' is not a valid Kyber mode name", str));
   72|     13|}

_ZN5Botan11Kyber_Algos24encode_polynomial_vectorENSt3__14spanIhLm18446744073709551615EEERKNS_8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS4_6DomainE1EEE:
  186|     25|void encode_polynomial_vector(std::span<uint8_t> out, const KyberPolyVecNTT& vec) {
  187|     25|   BufferStuffer bs(out);
  188|     80|   for(const auto& v : vec) {
  ------------------
  |  Branch (188:22): [True: 80, False: 25]
  ------------------
  189|     80|      byte_encode(bs, v);
  190|     80|   }
  191|     25|   BOTAN_ASSERT_NOMSG(bs.full());
  ------------------
  |  |   77|     25|   do {                                                                     \
  |  |   78|     25|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|     25|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 25]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|     25|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 25]
  |  |  ------------------
  ------------------
  192|     25|}
_ZN5Botan11Kyber_Algos14expand_keypairENS_19KyberPrivateKeySeedENS_14KyberConstantsE:
  323|     25|KyberInternalKeypair expand_keypair(KyberPrivateKeySeed seed, KyberConstants mode) {
  324|     25|   BOTAN_ARG_CHECK(seed.d.has_value(), "Cannot expand keypair without the full private seed");
  ------------------
  |  |   35|     25|   do {                                                          \
  |  |   36|     25|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|     25|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 25]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|     25|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 25]
  |  |  ------------------
  ------------------
  325|     25|   const auto& d = seed.d.value();
  326|       |
  327|     25|   CT::poison(d);
  328|     25|   auto [rho, sigma] = mode.symmetric_primitives().G(d, mode);
  329|     25|   CT::unpoison(rho);  // rho is public (seed for the public matrix A)
  330|       |
  331|       |   // Algorithm 13 (K-PKE.KeyGen) ----------------
  332|       |
  333|     25|   auto A = Kyber_Algos::sample_matrix(rho, false /* not transposed */, mode);
  334|       |
  335|       |   // The nonce N is handled internally by the PolynomialSampler
  336|     25|   Kyber_Algos::PolynomialSampler ps(sigma, mode);
  337|     25|   auto s = ntt(ps.sample_polynomial_vector_cbd_eta1());
  338|     25|   const auto e = ntt(ps.sample_polynomial_vector_cbd_eta1());
  339|       |
  340|     25|   auto t = montgomery(A * s);
  341|     25|   t += e;
  342|     25|   t.reduce();
  343|       |
  344|       |   // Bring s into canonical [0,Q) form (as ByteEncode_12 requires), matching
  345|       |   // the representation produced when decoding a private key. This lets the
  346|       |   // secret key be serialized directly, without reducing a copy at encode time.
  347|     25|   s.reduce();
  348|       |
  349|       |   // End Algorithm 13 ---------------------------
  350|       |
  351|     25|   CT::unpoison_all(d, t, s);
  352|       |
  353|     25|   return {
  354|     25|      std::make_shared<Kyber_PublicKeyInternal>(mode, std::move(t), std::move(rho)),
  355|     25|      std::make_shared<Kyber_PrivateKeyInternal>(std::move(mode), std::move(s), std::move(seed)),
  356|     25|   };
  357|     25|}
_ZN5Botan11Kyber_Algos13sample_matrixENS_10StrongSpanIKNS_6StrongINSt3__16vectorIhNS3_9allocatorIhEEEENS_13KyberSeedRho_EJEEEEEbRKNS_14KyberConstantsE:
  387|     25|KyberPolyMat sample_matrix(StrongSpan<const KyberSeedRho> seed, bool transposed, const KyberConstants& mode) {
  388|     25|   BOTAN_ASSERT(seed.size() == KyberConstants::SEED_BYTES, "unexpected seed size");
  ------------------
  |  |   64|     25|   do {                                                                                 \
  |  |   65|     25|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|     25|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 25]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|     25|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 25]
  |  |  ------------------
  ------------------
  389|       |
  390|     25|   KyberPolyMat mat(mode.k(), mode.k());
  391|       |
  392|     25|   const auto& sym = mode.symmetric_primitives();
  393|     25|   std::unique_ptr<Botan::XOF> xof;
  394|       |
  395|    105|   for(uint8_t i = 0; i < mode.k(); ++i) {
  ------------------
  |  Branch (395:23): [True: 80, False: 25]
  ------------------
  396|    350|      for(uint8_t j = 0; j < mode.k(); ++j) {
  ------------------
  |  Branch (396:26): [True: 270, False: 80]
  ------------------
  397|    270|         const auto pos = (transposed) ? std::tuple(i, j) : std::tuple(j, i);
  ------------------
  |  Branch (397:27): [True: 0, False: 270]
  ------------------
  398|    270|         sym.setup_XOF(xof, seed, pos);
  399|    270|         sample_ntt_uniform(mat[i][j], *xof);
  400|    270|      }
  401|     80|   }
  402|       |
  403|     25|   return mat;
  404|     25|}
_ZN5Botan11Kyber_Algos26sample_polynomial_from_cbdERNS_8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS1_6DomainE0EEENS_14KyberConstants8KyberEtaERKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_24KyberSamplingRandomness_EJEEE:
  414|    160|                                const KyberSamplingRandomness& randomness) {
  415|    160|   switch(eta) {
  ------------------
  |  Branch (415:11): [True: 160, False: 0]
  ------------------
  416|    140|      case KyberConstants::KyberEta::_2:
  ------------------
  |  Branch (416:7): [True: 140, False: 20]
  ------------------
  417|    140|         return sample_poly_cbd<KyberConstants::KyberEta::_2>(poly, randomness);
  418|     20|      case KyberConstants::KyberEta::_3:
  ------------------
  |  Branch (418:7): [True: 20, False: 140]
  ------------------
  419|     20|         return sample_poly_cbd<KyberConstants::KyberEta::_3>(poly, randomness);
  420|    160|   }
  421|       |
  422|      0|   BOTAN_ASSERT_UNREACHABLE();
  ------------------
  |  |  166|      0|#define BOTAN_ASSERT_UNREACHABLE() Botan::assert_unreachable(__FILE__, __LINE__)
  ------------------
  423|      0|}
kyber_algos.cpp:_ZN5Botan11Kyber_Algos12_GLOBAL__N_111byte_encodeERNS_13BufferStufferERKNS_8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS4_6DomainE1EEE:
   44|     80|void byte_encode(BufferStuffer& bs, const KyberPolyNTT& p) {
   45|     80|   CRYSTALS::pack<KyberConstants::Q - 1>(p, bs);
   46|     80|}
kyber_algos.cpp:_ZN5Botan11Kyber_Algos12_GLOBAL__N_118sample_ntt_uniformERNS_8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS2_6DomainE1EEERNS_3XOFE:
   76|    270|void sample_ntt_uniform(KyberPolyNTT& p, XOF& xof) {
   77|       |   // A generator that returns the next coefficient sampled from the XOF. As the
   78|       |   // sampling uses half-bytes, this keeps track of the additionally sampled
   79|       |   // coefficient as needed.
   80|    270|   auto sample = [stashed_coeff = std::optional<uint16_t>{},
   81|    270|                  bounded_xof =
   82|    270|                     Bounded_XOF<KyberConstants::SAMPLE_NTT_POLY_FROM_XOF_BOUND>(xof)]() mutable -> uint16_t {
   83|    270|      auto lowerthan_q = [](uint32_t d) -> std::optional<uint16_t> {
   84|    270|         if(d < KyberConstants::Q) {
   85|    270|            return static_cast<uint16_t>(d);
   86|    270|         } else {
   87|    270|            return std::nullopt;
   88|    270|         }
   89|    270|      };
   90|       |
   91|    270|      if(auto stashed = std::exchange(stashed_coeff, std::nullopt)) {
   92|    270|         return *stashed;  // value retained from a previous invocation
   93|    270|      }
   94|       |
   95|    270|      while(true) {
   96|    270|         const auto [d1, d2] = bounded_xof.next<3>([&](const auto bytes) {
   97|    270|            const auto x = load_le3(bytes);
   98|    270|            return std::pair{lowerthan_q(x & 0x0FFF), lowerthan_q(x >> 12)};
   99|    270|         });
  100|       |
  101|    270|         if(d1.has_value()) {
  102|    270|            stashed_coeff = d2;  // keep candidate d2 for the next invocation
  103|    270|            return *d1;
  104|    270|         } else if(d2.has_value()) {
  105|       |            // d1 was invalid, d2 is valid, nothing to stash
  106|    270|            return *d2;
  107|    270|         }
  108|    270|      }
  109|    270|   };
  110|       |
  111|  69.1k|   for(auto& coeff : p) {
  ------------------
  |  Branch (111:20): [True: 69.1k, False: 270]
  ------------------
  112|  69.1k|      coeff = sample();
  113|  69.1k|   }
  114|    270|}
kyber_algos.cpp:_ZZN5Botan11Kyber_Algos12_GLOBAL__N_118sample_ntt_uniformERNS_8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS2_6DomainE1EEERNS_3XOFEEN3$_0clEv:
   82|  69.1k|                     Bounded_XOF<KyberConstants::SAMPLE_NTT_POLY_FROM_XOF_BOUND>(xof)]() mutable -> uint16_t {
   83|  69.1k|      auto lowerthan_q = [](uint32_t d) -> std::optional<uint16_t> {
   84|  69.1k|         if(d < KyberConstants::Q) {
   85|  69.1k|            return static_cast<uint16_t>(d);
   86|  69.1k|         } else {
   87|  69.1k|            return std::nullopt;
   88|  69.1k|         }
   89|  69.1k|      };
   90|       |
   91|  69.1k|      if(auto stashed = std::exchange(stashed_coeff, std::nullopt)) {
  ------------------
  |  Branch (91:15): [True: 27.7k, False: 41.3k]
  ------------------
   92|  27.7k|         return *stashed;  // value retained from a previous invocation
   93|  27.7k|      }
   94|       |
   95|  42.8k|      while(true) {
  ------------------
  |  Branch (95:13): [True: 42.8k, Folded]
  ------------------
   96|  42.8k|         const auto [d1, d2] = bounded_xof.next<3>([&](const auto bytes) {
   97|  42.8k|            const auto x = load_le3(bytes);
   98|  42.8k|            return std::pair{lowerthan_q(x & 0x0FFF), lowerthan_q(x >> 12)};
   99|  42.8k|         });
  100|       |
  101|  42.8k|         if(d1.has_value()) {
  ------------------
  |  Branch (101:13): [True: 34.5k, False: 8.35k]
  ------------------
  102|  34.5k|            stashed_coeff = d2;  // keep candidate d2 for the next invocation
  103|  34.5k|            return *d1;
  104|  34.5k|         } else if(d2.has_value()) {
  ------------------
  |  Branch (104:20): [True: 6.82k, False: 1.53k]
  ------------------
  105|       |            // d1 was invalid, d2 is valid, nothing to stash
  106|  6.82k|            return *d2;
  107|  6.82k|         }
  108|  42.8k|      }
  109|  41.3k|   };
kyber_algos.cpp:_ZZZN5Botan11Kyber_Algos12_GLOBAL__N_118sample_ntt_uniformERNS_8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS2_6DomainE1EEERNS_3XOFEEN3$_0clEvENKUlT_E_clINSt3__15arrayIhLm3EEEEEDaSB_:
   96|  42.8k|         const auto [d1, d2] = bounded_xof.next<3>([&](const auto bytes) {
   97|  42.8k|            const auto x = load_le3(bytes);
   98|  42.8k|            return std::pair{lowerthan_q(x & 0x0FFF), lowerthan_q(x >> 12)};
   99|  42.8k|         });
kyber_algos.cpp:_ZZZN5Botan11Kyber_Algos12_GLOBAL__N_118sample_ntt_uniformERNS_8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS2_6DomainE1EEERNS_3XOFEEN3$_0clEvENKUljE_clEj:
   83|  85.7k|      auto lowerthan_q = [](uint32_t d) -> std::optional<uint16_t> {
   84|  85.7k|         if(d < KyberConstants::Q) {
  ------------------
  |  Branch (84:13): [True: 69.2k, False: 16.4k]
  ------------------
   85|  69.2k|            return static_cast<uint16_t>(d);
   86|  69.2k|         } else {
   87|  16.4k|            return std::nullopt;
   88|  16.4k|         }
   89|  85.7k|      };
kyber_algos.cpp:_ZN5Botan11Kyber_Algos12_GLOBAL__N_115sample_poly_cbdILNS_14KyberConstants8KyberEtaE2EEEvRNS_8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS5_6DomainE0EEENS_10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_24KyberSamplingRandomness_EJEEEEE:
  130|    140|                                                   StrongSpan<const KyberSamplingRandomness> randomness) {
  131|    140|   BufferSlicer bs(randomness);
  132|       |
  133|  4.62k|   for(size_t i = 0; i < poly.size() / 8; ++i) {
  ------------------
  |  Branch (133:22): [True: 4.48k, False: 140]
  ------------------
  134|  4.48k|      const uint32_t t = Botan::load_le(bs.take<4>());
  135|       |
  136|       |      // SWAR (SIMD within a Register) trick: calculate 16 2-bit-sums in parallel
  137|  4.48k|      constexpr uint32_t operand_bitmask = 0b01010101010101010101010101010101;
  138|       |
  139|       |      // clang-format off
  140|  4.48k|      const uint32_t d = ((t >> 0) & operand_bitmask) +
  141|  4.48k|                         ((t >> 1) & operand_bitmask);
  142|       |      // clang-format on
  143|       |
  144|  40.3k|      for(size_t j = 0; j < 8; ++j) {
  ------------------
  |  Branch (144:25): [True: 35.8k, False: 4.48k]
  ------------------
  145|  35.8k|         const int16_t a = (d >> (4 * j + 0)) & 0x3;
  146|  35.8k|         const int16_t b = (d >> (4 * j + 2)) & 0x3;
  147|  35.8k|         poly[8 * i + j] = a - b;
  148|  35.8k|      }
  149|  4.48k|   }
  150|       |
  151|    140|   BOTAN_ASSERT_NOMSG(bs.empty());
  ------------------
  |  |   77|    140|   do {                                                                     \
  |  |   78|    140|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|    140|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 140]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|    140|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 140]
  |  |  ------------------
  ------------------
  152|    140|}
kyber_algos.cpp:_ZN5Botan11Kyber_Algos12_GLOBAL__N_115sample_poly_cbdILNS_14KyberConstants8KyberEtaE3EEEvRNS_8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS5_6DomainE0EEENS_10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_24KyberSamplingRandomness_EJEEEEE:
  159|     20|                                                   StrongSpan<const KyberSamplingRandomness> randomness) {
  160|     20|   BufferSlicer bs(randomness);
  161|       |
  162|  1.30k|   for(size_t i = 0; i < poly.size() / 4; ++i) {
  ------------------
  |  Branch (162:22): [True: 1.28k, False: 20]
  ------------------
  163|  1.28k|      const uint32_t t = load_le3(bs.take<3>());
  164|       |
  165|       |      // SWAR (SIMD within a Register) trick: calculate 8 3-bit-sums in parallel
  166|  1.28k|      constexpr uint32_t operand_bitmask = 0b00000000001001001001001001001001;
  167|       |
  168|       |      // clang-format off
  169|  1.28k|      const uint32_t d = ((t >> 0) & operand_bitmask) +
  170|  1.28k|                         ((t >> 1) & operand_bitmask) +
  171|  1.28k|                         ((t >> 2) & operand_bitmask);
  172|       |      // clang-format on
  173|       |
  174|  6.40k|      for(size_t j = 0; j < 4; ++j) {
  ------------------
  |  Branch (174:25): [True: 5.12k, False: 1.28k]
  ------------------
  175|  5.12k|         const int16_t a = (d >> (6 * j + 0)) & 0x7;
  176|  5.12k|         const int16_t b = (d >> (6 * j + 3)) & 0x7;
  177|  5.12k|         poly[4 * i + j] = a - b;
  178|  5.12k|      }
  179|  1.28k|   }
  180|       |
  181|     20|   BOTAN_ASSERT_NOMSG(bs.empty());
  ------------------
  |  |   77|     20|   do {                                                                     \
  |  |   78|     20|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|     20|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 20]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|     20|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 20]
  |  |  ------------------
  ------------------
  182|     20|}

_ZN5Botan14KyberConstantsC2ENS_9KyberModeE:
   30|     58|KyberConstants::KyberConstants(KyberMode mode) : m_mode(mode) {
   31|     58|   switch(mode.mode()) {
   32|      0|      case KyberMode::Kyber512_R3:
  ------------------
  |  Branch (32:7): [True: 0, False: 58]
  ------------------
   33|      0|      case KyberMode::Kyber512_90s:
  ------------------
  |  Branch (33:7): [True: 0, False: 58]
  ------------------
   34|     11|      case KyberMode::ML_KEM_512:
  ------------------
  |  Branch (34:7): [True: 11, False: 47]
  ------------------
   35|     11|         m_nist_strength = KyberStrength::_128;
   36|     11|         m_k = 2;
   37|     11|         m_eta1 = KyberEta::_3;
   38|     11|         m_du = KyberDu::_10;
   39|     11|         m_dv = KyberDv::_4;
   40|     11|         break;
   41|       |
   42|      0|      case KyberMode::Kyber768_R3:
  ------------------
  |  Branch (42:7): [True: 0, False: 58]
  ------------------
   43|      0|      case KyberMode::Kyber768_90s:
  ------------------
  |  Branch (43:7): [True: 0, False: 58]
  ------------------
   44|     24|      case KyberMode::ML_KEM_768:
  ------------------
  |  Branch (44:7): [True: 24, False: 34]
  ------------------
   45|     24|         m_nist_strength = KyberStrength::_192;
   46|     24|         m_k = 3;
   47|     24|         m_eta1 = KyberEta::_2;
   48|     24|         m_du = KyberDu::_10;
   49|     24|         m_dv = KyberDv::_4;
   50|     24|         break;
   51|       |
   52|      0|      case KyberMode::Kyber1024_R3:
  ------------------
  |  Branch (52:7): [True: 0, False: 58]
  ------------------
   53|      0|      case KyberMode::Kyber1024_90s:
  ------------------
  |  Branch (53:7): [True: 0, False: 58]
  ------------------
   54|     23|      case KyberMode::ML_KEM_1024:
  ------------------
  |  Branch (54:7): [True: 23, False: 35]
  ------------------
   55|     23|         m_nist_strength = KyberStrength::_256;
   56|     23|         m_k = 4;
   57|     23|         m_eta1 = KyberEta::_2;
   58|     23|         m_du = KyberDu::_11;
   59|     23|         m_dv = KyberDv::_5;
   60|     23|         break;
   61|       |
   62|      0|      default:
  ------------------
  |  Branch (62:7): [True: 0, False: 58]
  ------------------
   63|      0|         BOTAN_ASSERT_UNREACHABLE();
  ------------------
  |  |  166|      0|#define BOTAN_ASSERT_UNREACHABLE() Botan::assert_unreachable(__FILE__, __LINE__)
  ------------------
   64|     58|   }
   65|       |
   66|     58|#ifdef BOTAN_HAS_KYBER_90S
   67|     58|   if(mode.is_kyber_round3() && mode.is_90s()) {
  ------------------
  |  Branch (67:7): [True: 0, False: 58]
  |  Branch (67:33): [True: 0, False: 0]
  ------------------
   68|      0|      m_symmetric_primitives = std::make_unique<Kyber_90s_Symmetric_Primitives>();
   69|      0|   }
   70|     58|#endif
   71|       |
   72|     58|#ifdef BOTAN_HAS_KYBER
   73|     58|   if(mode.is_kyber_round3() && mode.is_modern()) {
  ------------------
  |  Branch (73:7): [True: 0, False: 58]
  |  Branch (73:33): [True: 0, False: 0]
  ------------------
   74|      0|      m_symmetric_primitives = std::make_unique<Kyber_Modern_Symmetric_Primitives>();
   75|      0|   }
   76|     58|#endif
   77|       |
   78|     58|#ifdef BOTAN_HAS_ML_KEM
   79|     58|   if(mode.is_ml_kem()) {
  ------------------
  |  Branch (79:7): [True: 58, False: 0]
  ------------------
   80|     58|      m_symmetric_primitives = std::make_unique<ML_KEM_Symmetric_Primitives>();
   81|     58|   }
   82|     58|#endif
   83|       |
   84|     58|   static_assert(N % 8 == 0);
   85|     58|   m_polynomial_vector_bytes = (bitlen(Q) * (N / 8)) * k();
   86|     58|   m_polynomial_vector_compressed_bytes = d_u() * k() * (N / 8);
   87|     58|   m_polynomial_compressed_bytes = d_v() * (N / 8);
   88|     58|   m_expanded_private_key_bytes =
   89|     58|      static_cast<uint32_t>(m_polynomial_vector_bytes + public_key_bytes() + PUBLIC_KEY_HASH_BYTES + SEED_BYTES);
   90|     58|   m_seed_private_key_bytes = 2 * SEED_BYTES;
   91|       |
   92|     58|   if(!m_symmetric_primitives) {
  ------------------
  |  Branch (92:7): [True: 0, False: 58]
  ------------------
   93|      0|      throw Not_Implemented("requested Kyber mode is not enabled in this build");
   94|      0|   }
   95|     58|}
_ZN5Botan14KyberConstantsD2Ev:
   97|    183|KyberConstants::~KyberConstants() = default;

_ZNK5Botan28Seed_Expanding_Keypair_Codec14decode_keypairENSt3__14spanIKhLm18446744073709551615EEENS_14KyberConstantsE:
   88|     25|                                                                  KyberConstants mode) const {
   89|     25|   BufferSlicer s(private_key);
   90|     25|   auto seed = KyberPrivateKeySeed{
   91|     25|      s.copy<KyberSeedRandomness>(KyberConstants::SEED_BYTES),
   92|     25|      s.copy<KyberImplicitRejectionValue>(KyberConstants::SEED_BYTES),
   93|     25|   };
   94|     25|   BOTAN_ASSERT_NOMSG(s.empty());
  ------------------
  |  |   77|     25|   do {                                                                     \
  |  |   78|     25|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|     25|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 25]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|     25|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 25]
  |  |  ------------------
  ------------------
   95|     25|   return Kyber_Algos::expand_keypair(std::move(seed), std::move(mode));
   96|     25|}
_ZN5Botan23Kyber_PublicKeyInternalC2ENS_14KyberConstantsENS_8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS2_6DomainE1EEENS_6StrongINSt3__16vectorIhNS8_9allocatorIhEEEENS_13KyberSeedRho_EJEEE:
  114|     25|      m_mode(std::move(mode)),
  115|     25|      m_public_key_bits_raw(concat(Kyber_Algos::encode_polynomial_vector<std::vector<uint8_t>>(t, m_mode), rho)),
  116|     25|      m_H_public_key_bits_raw(m_mode.symmetric_primitives().H(m_public_key_bits_raw)),
  117|     25|      m_t(std::move(t)),
  118|     25|      m_rho(std::move(rho)) {}

_ZN5Botan8PEM_Code6decodeERNS_10DataSourceERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE:
   62|    261|secure_vector<uint8_t> decode(DataSource& source, std::string& label) {
   63|    261|   const size_t RANDOM_CHAR_LIMIT = 8;
   64|       |
   65|    261|   label.clear();
   66|       |
   67|    261|   const std::string PEM_HEADER1 = "-----BEGIN ";
   68|    261|   const std::string PEM_HEADER2 = "-----";
   69|    261|   size_t position = 0;
   70|       |
   71|  6.19k|   while(position != PEM_HEADER1.length()) {
  ------------------
  |  Branch (71:10): [True: 5.97k, False: 222]
  ------------------
   72|  5.97k|      auto b = source.read_byte();
   73|       |
   74|  5.97k|      if(!b) {
  ------------------
  |  Branch (74:10): [True: 38, False: 5.93k]
  ------------------
   75|     38|         throw Decoding_Error("PEM: No PEM header found");
   76|     38|      }
   77|  5.93k|      if(static_cast<char>(*b) == PEM_HEADER1[position]) {
  ------------------
  |  Branch (77:10): [True: 2.67k, False: 3.26k]
  ------------------
   78|  2.67k|         ++position;
   79|  3.26k|      } else if(position >= RANDOM_CHAR_LIMIT) {
  ------------------
  |  Branch (79:17): [True: 1, False: 3.26k]
  ------------------
   80|      1|         throw Decoding_Error("PEM: Malformed PEM header");
   81|  3.26k|      } else {
   82|  3.26k|         position = 0;
   83|  3.26k|      }
   84|  5.93k|   }
   85|    222|   position = 0;
   86|  2.76k|   while(position != PEM_HEADER2.length()) {
  ------------------
  |  Branch (86:10): [True: 2.58k, False: 185]
  ------------------
   87|  2.58k|      auto b = source.read_byte();
   88|       |
   89|  2.58k|      if(!b) {
  ------------------
  |  Branch (89:10): [True: 34, False: 2.55k]
  ------------------
   90|     34|         throw Decoding_Error("PEM: No PEM header found");
   91|     34|      }
   92|  2.55k|      if(static_cast<char>(*b) == PEM_HEADER2[position]) {
  ------------------
  |  Branch (92:10): [True: 939, False: 1.61k]
  ------------------
   93|    939|         ++position;
   94|  1.61k|      } else if(position > 0) {
  ------------------
  |  Branch (94:17): [True: 2, False: 1.60k]
  ------------------
   95|      2|         throw Decoding_Error("PEM: Malformed PEM header");
   96|      2|      }
   97|       |
   98|  2.54k|      if(position == 0) {
  ------------------
  |  Branch (98:10): [True: 1.60k, False: 939]
  ------------------
   99|  1.60k|         if(label.size() >= 128) {
  ------------------
  |  Branch (99:13): [True: 1, False: 1.60k]
  ------------------
  100|      1|            throw Decoding_Error("PEM: Label too long");
  101|      1|         }
  102|  1.60k|         label += static_cast<char>(*b);
  103|  1.60k|      }
  104|  2.54k|   }
  105|       |
  106|    185|   std::vector<char> b64;
  107|       |
  108|    185|   const std::string PEM_TRAILER = fmt("-----END {}-----", label);
  109|    185|   position = 0;
  110|  71.7k|   while(position != PEM_TRAILER.length()) {
  ------------------
  |  Branch (110:10): [True: 71.6k, False: 125]
  ------------------
  111|  71.6k|      auto b = source.read_byte();
  112|       |
  113|  71.6k|      if(!b) {
  ------------------
  |  Branch (113:10): [True: 50, False: 71.5k]
  ------------------
  114|     50|         throw Decoding_Error("PEM: No PEM trailer found");
  115|     50|      }
  116|  71.5k|      if(static_cast<char>(*b) == PEM_TRAILER[position]) {
  ------------------
  |  Branch (116:10): [True: 2.36k, False: 69.1k]
  ------------------
  117|  2.36k|         ++position;
  118|  69.1k|      } else if(position > 0) {
  ------------------
  |  Branch (118:17): [True: 10, False: 69.1k]
  ------------------
  119|     10|         throw Decoding_Error("PEM: Malformed PEM trailer");
  120|     10|      }
  121|       |
  122|  71.5k|      if(position == 0) {
  ------------------
  |  Branch (122:10): [True: 69.1k, False: 2.36k]
  ------------------
  123|  69.1k|         b64.push_back(*b);
  124|  69.1k|      }
  125|  71.5k|   }
  126|       |
  127|    125|   return base64_decode(b64.data(), b64.size());
  128|    185|}
_ZN5Botan8PEM_Code7matchesERNS_10DataSourceENSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEm:
  143|  6.66k|bool matches(DataSource& source, std::string_view extra, size_t search_range) {
  144|  6.66k|   const std::string PEM_HEADER = fmt("-----BEGIN {}", extra);
  145|       |
  146|  6.66k|   secure_vector<uint8_t> search_buf(search_range);
  147|  6.66k|   const size_t got = source.peek(search_buf.data(), search_buf.size(), 0);
  148|       |
  149|  6.66k|   if(got < PEM_HEADER.length()) {
  ------------------
  |  Branch (149:7): [True: 486, False: 6.17k]
  ------------------
  150|    486|      return false;
  151|    486|   }
  152|       |
  153|  6.17k|   size_t index = 0;
  154|       |
  155|   856k|   for(size_t j = 0; j != got; ++j) {
  ------------------
  |  Branch (155:22): [True: 850k, False: 6.17k]
  ------------------
  156|   850k|      if(static_cast<char>(search_buf[j]) == PEM_HEADER[index]) {
  ------------------
  |  Branch (156:10): [True: 3.21k, False: 847k]
  ------------------
  157|  3.21k|         ++index;
  158|   847k|      } else {
  159|   847k|         index = 0;
  160|   847k|      }
  161|       |
  162|   850k|      if(index == PEM_HEADER.size()) {
  ------------------
  |  Branch (162:10): [True: 3, False: 850k]
  ------------------
  163|      3|         return true;
  164|      3|      }
  165|   850k|   }
  166|       |
  167|  6.17k|   return false;
  168|  6.17k|}

_ZN5Botan16load_private_keyERKNS_19AlgorithmIdentifierENSt3__14spanIKhLm18446744073709551615EEE:
  298|  3.96k|                                              [[maybe_unused]] std::span<const uint8_t> key_bits) {
  299|  3.96k|   const std::string alg_name = [&]() -> std::string {
  300|  3.96k|      if(const auto name = alg_id.oid().registered_name()) {
  301|  3.96k|         const std::vector<std::string> alg_info = split_on(*name, '/');
  302|  3.96k|         if(!alg_info.empty()) {
  303|  3.96k|            return alg_info[0];
  304|  3.96k|         }
  305|  3.96k|      }
  306|       |
  307|  3.96k|      throw Decoding_Error(
  308|  3.96k|         fmt("Private key decoding failed, no algorithm associated with {}", alg_id.oid().to_string()));
  309|  3.96k|   }();
  310|       |
  311|  3.96k|#if defined(BOTAN_HAS_RSA)
  312|  3.96k|   if(alg_name == "RSA") {
  ------------------
  |  Branch (312:7): [True: 45, False: 3.91k]
  ------------------
  313|     45|      return std::make_unique<RSA_PrivateKey>(alg_id, key_bits);
  314|     45|   }
  315|  3.91k|#endif
  316|       |
  317|  3.91k|#if defined(BOTAN_HAS_X25519)
  318|  3.91k|   if(alg_name == "X25519" || alg_name == "Curve25519") {
  ------------------
  |  Branch (318:7): [True: 9, False: 3.90k]
  |  Branch (318:31): [True: 0, False: 3.90k]
  ------------------
  319|      9|      return std::make_unique<X25519_PrivateKey>(alg_id, key_bits);
  320|      9|   }
  321|  3.90k|#endif
  322|       |
  323|  3.90k|#if defined(BOTAN_HAS_X448)
  324|  3.90k|   if(alg_name == "X448") {
  ------------------
  |  Branch (324:7): [True: 6, False: 3.90k]
  ------------------
  325|      6|      return std::make_unique<X448_PrivateKey>(alg_id, key_bits);
  326|      6|   }
  327|  3.90k|#endif
  328|       |
  329|  3.90k|#if defined(BOTAN_HAS_ECDSA)
  330|  3.90k|   if(alg_name == "ECDSA") {
  ------------------
  |  Branch (330:7): [True: 2.48k, False: 1.41k]
  ------------------
  331|  2.48k|      return std::make_unique<ECDSA_PrivateKey>(alg_id, key_bits);
  332|  2.48k|   }
  333|  1.41k|#endif
  334|       |
  335|  1.41k|#if defined(BOTAN_HAS_ECDH)
  336|  1.41k|   if(alg_name == "ECDH") {
  ------------------
  |  Branch (336:7): [True: 883, False: 534]
  ------------------
  337|    883|      return std::make_unique<ECDH_PrivateKey>(alg_id, key_bits);
  338|    883|   }
  339|    534|#endif
  340|       |
  341|    534|#if defined(BOTAN_HAS_DIFFIE_HELLMAN)
  342|    534|   if(alg_name == "DH") {
  ------------------
  |  Branch (342:7): [True: 290, False: 244]
  ------------------
  343|    290|      return std::make_unique<DH_PrivateKey>(alg_id, key_bits);
  344|    290|   }
  345|    244|#endif
  346|       |
  347|    244|#if defined(BOTAN_HAS_DSA)
  348|    244|   if(alg_name == "DSA") {
  ------------------
  |  Branch (348:7): [True: 11, False: 233]
  ------------------
  349|     11|      return std::make_unique<DSA_PrivateKey>(alg_id, key_bits);
  350|     11|   }
  351|    233|#endif
  352|       |
  353|    233|#if defined(BOTAN_HAS_FRODOKEM)
  354|    233|   if(alg_name == "FrodoKEM" || alg_name.starts_with("FrodoKEM-") || alg_name.starts_with("eFrodoKEM-")) {
  ------------------
  |  Branch (354:7): [True: 0, False: 233]
  |  Branch (354:33): [True: 0, False: 233]
  |  Branch (354:70): [True: 0, False: 233]
  ------------------
  355|      0|      return std::make_unique<FrodoKEM_PrivateKey>(alg_id, key_bits);
  356|      0|   }
  357|    233|#endif
  358|       |
  359|    233|#if defined(BOTAN_HAS_KYBER) || defined(BOTAN_HAS_KYBER_90S)
  360|    233|   if(alg_name == "Kyber" || alg_name.starts_with("Kyber-")) {
  ------------------
  |  Branch (360:7): [True: 0, False: 233]
  |  Branch (360:30): [True: 0, False: 233]
  ------------------
  361|      0|      return std::make_unique<Kyber_PrivateKey>(alg_id, key_bits);
  362|      0|   }
  363|    233|#endif
  364|       |
  365|    233|#if defined(BOTAN_HAS_ML_KEM)
  366|    233|   if(alg_name.starts_with("ML-KEM-")) {
  ------------------
  |  Branch (366:7): [True: 33, False: 200]
  ------------------
  367|     33|      return std::make_unique<ML_KEM_PrivateKey>(alg_id, key_bits);
  368|     33|   }
  369|    200|#endif
  370|       |
  371|    200|#if defined(BOTAN_HAS_MCELIECE)
  372|    200|   if(alg_name == "McEliece") {
  ------------------
  |  Branch (372:7): [True: 0, False: 200]
  ------------------
  373|      0|      return std::make_unique<McEliece_PrivateKey>(alg_id, key_bits);
  374|      0|   }
  375|    200|#endif
  376|       |
  377|    200|#if defined(BOTAN_HAS_ECGDSA)
  378|    200|   if(alg_name == "ECGDSA") {
  ------------------
  |  Branch (378:7): [True: 0, False: 200]
  ------------------
  379|      0|      return std::make_unique<ECGDSA_PrivateKey>(alg_id, key_bits);
  380|      0|   }
  381|    200|#endif
  382|       |
  383|    200|#if defined(BOTAN_HAS_ECKCDSA)
  384|    200|   if(alg_name == "ECKCDSA") {
  ------------------
  |  Branch (384:7): [True: 0, False: 200]
  ------------------
  385|      0|      return std::make_unique<ECKCDSA_PrivateKey>(alg_id, key_bits);
  386|      0|   }
  387|    200|#endif
  388|       |
  389|    200|#if defined(BOTAN_HAS_ED25519)
  390|    200|   if(alg_name == "Ed25519") {
  ------------------
  |  Branch (390:7): [True: 10, False: 190]
  ------------------
  391|     10|      return std::make_unique<Ed25519_PrivateKey>(alg_id, key_bits);
  392|     10|   }
  393|    190|#endif
  394|       |
  395|    190|#if defined(BOTAN_HAS_ED448)
  396|    190|   if(alg_name == "Ed448") {
  ------------------
  |  Branch (396:7): [True: 8, False: 182]
  ------------------
  397|      8|      return std::make_unique<Ed448_PrivateKey>(alg_id, key_bits);
  398|      8|   }
  399|    182|#endif
  400|       |
  401|    182|#if defined(BOTAN_HAS_GOST_34_10_2001)
  402|    182|   if(alg_name == "GOST-34.10" || alg_name == "GOST-34.10-2012-256" || alg_name == "GOST-34.10-2012-512") {
  ------------------
  |  Branch (402:7): [True: 2, False: 180]
  |  Branch (402:35): [True: 0, False: 180]
  |  Branch (402:72): [True: 0, False: 180]
  ------------------
  403|      2|      return std::make_unique<GOST_3410_PrivateKey>(alg_id, key_bits);
  404|      2|   }
  405|    180|#endif
  406|       |
  407|    180|#if defined(BOTAN_HAS_SM2)
  408|    180|   if(alg_name == "SM2" || alg_name == "SM2_Sig" || alg_name == "SM2_Enc") {
  ------------------
  |  Branch (408:7): [True: 0, False: 180]
  |  Branch (408:28): [True: 0, False: 180]
  |  Branch (408:53): [True: 0, False: 180]
  ------------------
  409|      0|      return std::make_unique<SM2_PrivateKey>(alg_id, key_bits);
  410|      0|   }
  411|    180|#endif
  412|       |
  413|    180|#if defined(BOTAN_HAS_ELGAMAL)
  414|    180|   if(alg_name == "ElGamal") {
  ------------------
  |  Branch (414:7): [True: 0, False: 180]
  ------------------
  415|      0|      return std::make_unique<ElGamal_PrivateKey>(alg_id, key_bits);
  416|      0|   }
  417|    180|#endif
  418|       |
  419|    180|#if defined(BOTAN_HAS_XMSS_RFC8391)
  420|    180|   if(alg_name == "XMSS") {
  ------------------
  |  Branch (420:7): [True: 0, False: 180]
  ------------------
  421|      0|      return std::make_unique<XMSS_PrivateKey>(alg_id, key_bits);
  422|      0|   }
  423|    180|#endif
  424|       |
  425|    180|#if defined(BOTAN_HAS_DILITHIUM) || defined(BOTAN_HAS_DILITHIUM_AES)
  426|    180|   if(alg_name == "Dilithium" || alg_name.starts_with("Dilithium-")) {
  ------------------
  |  Branch (426:7): [True: 0, False: 180]
  |  Branch (426:34): [True: 0, False: 180]
  ------------------
  427|      0|      return std::make_unique<Dilithium_PrivateKey>(alg_id, key_bits);
  428|      0|   }
  429|    180|#endif
  430|       |
  431|    180|#if defined(BOTAN_HAS_ML_DSA)
  432|    180|   if(alg_name.starts_with("ML-DSA-")) {
  ------------------
  |  Branch (432:7): [True: 78, False: 102]
  ------------------
  433|     78|      return std::make_unique<ML_DSA_PrivateKey>(alg_id, key_bits);
  434|     78|   }
  435|    102|#endif
  436|       |
  437|    102|#if defined(BOTAN_HAS_HSS_LMS)
  438|    102|   if(alg_name == "HSS-LMS-Private-Key") {
  ------------------
  |  Branch (438:7): [True: 0, False: 102]
  ------------------
  439|      0|      return std::make_unique<HSS_LMS_PrivateKey>(alg_id, key_bits);
  440|      0|   }
  441|    102|#endif
  442|       |
  443|    102|#if defined(BOTAN_HAS_SPHINCS_PLUS_WITH_SHA2) || defined(BOTAN_HAS_SPHINCS_PLUS_WITH_SHAKE)
  444|    102|   if(alg_name == "SPHINCS+" || alg_name.starts_with("SphincsPlus-")) {
  ------------------
  |  Branch (444:7): [True: 0, False: 102]
  |  Branch (444:33): [True: 0, False: 102]
  ------------------
  445|      0|      return std::make_unique<SphincsPlus_PrivateKey>(alg_id, key_bits);
  446|      0|   }
  447|    102|#endif
  448|       |
  449|    102|#if defined(BOTAN_HAS_SLH_DSA_WITH_SHA2) || defined(BOTAN_HAS_SLH_DSA_WITH_SHAKE)
  450|    102|   if(alg_name.starts_with("SLH-DSA-") || alg_name.starts_with("Hash-SLH-DSA-")) {
  ------------------
  |  Branch (450:7): [True: 17, False: 85]
  |  Branch (450:43): [True: 0, False: 85]
  ------------------
  451|     17|      return std::make_unique<SLH_DSA_PrivateKey>(alg_id, key_bits);
  452|     17|   }
  453|     85|#endif
  454|       |
  455|     85|#if defined(BOTAN_HAS_CLASSICMCELIECE)
  456|     85|   if(alg_name.starts_with("ClassicMcEliece")) {
  ------------------
  |  Branch (456:7): [True: 0, False: 85]
  ------------------
  457|      0|      return std::make_unique<Classic_McEliece_PrivateKey>(alg_id, key_bits);
  458|      0|   }
  459|     85|#endif
  460|       |
  461|     85|   throw Decoding_Error(fmt("Unknown or unavailable public key algorithm '{}'", alg_name));
  462|     85|}
pk_algs.cpp:_ZZN5Botan16load_private_keyERKNS_19AlgorithmIdentifierENSt3__14spanIKhLm18446744073709551615EEEENK3$_0clEv:
  299|  3.96k|   const std::string alg_name = [&]() -> std::string {
  300|  3.96k|      if(const auto name = alg_id.oid().registered_name()) {
  ------------------
  |  Branch (300:21): [True: 3.96k, False: 0]
  ------------------
  301|  3.96k|         const std::vector<std::string> alg_info = split_on(*name, '/');
  302|  3.96k|         if(!alg_info.empty()) {
  ------------------
  |  Branch (302:13): [True: 3.96k, False: 0]
  ------------------
  303|  3.96k|            return alg_info[0];
  304|  3.96k|         }
  305|  3.96k|      }
  306|       |
  307|      0|      throw Decoding_Error(
  308|      0|         fmt("Private key decoding failed, no algorithm associated with {}", alg_id.oid().to_string()));
  309|  3.96k|   }();

_ZN5Botan5PKCS88load_keyERNS_10DataSourceE:
  350|  6.92k|std::unique_ptr<Private_Key> load_key(DataSource& source) {
  351|  6.92k|   auto fail_fn = []() -> std::string {
  352|  6.92k|      throw PKCS8_Exception("Internal error: Attempt to read password for unencrypted key");
  353|  6.92k|   };
  354|       |
  355|  6.92k|   return load_key(source, fail_fn, false);
  356|  6.92k|}
pkcs8.cpp:_ZN5Botan5PKCS812_GLOBAL__N_18load_keyERNS_10DataSourceERKNSt3__18functionIFNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEvEEEb:
  303|  6.92k|                                      bool is_encrypted) {
  304|  6.92k|   AlgorithmIdentifier alg_id;
  305|  6.92k|   secure_vector<uint8_t> pkcs8_key = PKCS8_decode(source, get_pass, alg_id, is_encrypted);
  306|       |
  307|  6.92k|   if(const auto alg_name = alg_id.oid().registered_name()) {
  ------------------
  |  Branch (307:18): [True: 3.96k, False: 2.96k]
  ------------------
  308|  3.96k|      return load_private_key(alg_id, pkcs8_key);
  309|  3.96k|   } else {
  310|  2.96k|      throw PKCS8_Exception(fmt("Unknown algorithm OID {}", alg_id.oid()));
  311|  2.96k|   }
  312|  6.92k|}
pkcs8.cpp:_ZN5Botan5PKCS812_GLOBAL__N_112PKCS8_decodeERNS_10DataSourceERKNSt3__18functionIFNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEvEEERNS_19AlgorithmIdentifierEb:
   50|  6.92k|                                    bool is_encrypted) {
   51|  6.92k|   AlgorithmIdentifier pbe_alg_id;
   52|  6.92k|   secure_vector<uint8_t> key_data;
   53|  6.92k|   secure_vector<uint8_t> key;
   54|       |
   55|  6.92k|   try {
   56|  6.92k|      if(ASN1::maybe_BER(source) && !PEM_Code::matches(source)) {
  ------------------
  |  Branch (56:10): [True: 6.66k, False: 258]
  |  Branch (56:37): [True: 6.66k, False: 3]
  ------------------
   57|  6.66k|         if(is_encrypted) {
  ------------------
  |  Branch (57:13): [True: 0, False: 6.66k]
  ------------------
   58|      0|            key_data = PKCS8_extract(source, pbe_alg_id);
   59|  6.66k|         } else {
   60|       |            // todo read more efficiently
   61|   874k|            while(auto b = source.read_byte()) {
  ------------------
  |  Branch (61:24): [True: 867k, False: 6.66k]
  ------------------
   62|   867k|               key_data.push_back(*b);
   63|   867k|            }
   64|  6.66k|         }
   65|  6.66k|      } else {
   66|    261|         std::string label;
   67|    261|         key_data = PEM_Code::decode(source, label);
   68|       |
   69|       |         // todo remove autodetect for pem as well?
   70|    261|         if(label == "PRIVATE KEY") {
  ------------------
  |  Branch (70:13): [True: 3, False: 258]
  ------------------
   71|      3|            is_encrypted = false;
   72|    258|         } else if(label == "ENCRYPTED PRIVATE KEY") {
  ------------------
  |  Branch (72:20): [True: 2, False: 256]
  ------------------
   73|      2|            DataSource_Memory key_source(key_data);
   74|      2|            key_data = PKCS8_extract(key_source, pbe_alg_id);
   75|    256|         } else {
   76|    256|            throw PKCS8_Exception(fmt("Unknown PEM label '{}'", label));
   77|    256|         }
   78|    261|      }
   79|       |
   80|  6.66k|      if(key_data.empty()) {
  ------------------
  |  Branch (80:10): [True: 1, False: 6.66k]
  ------------------
   81|      1|         throw PKCS8_Exception("No key data found");
   82|      1|      }
   83|  6.66k|   } catch(Decoding_Error& e) {
   84|    201|      throw Decoding_Error("PKCS #8 private key decoding", e);
   85|    201|   }
   86|       |
   87|  6.66k|   try {
   88|  6.66k|      if(is_encrypted) {
  ------------------
  |  Branch (88:10): [True: 0, False: 6.66k]
  ------------------
   89|      0|         if(pbe_alg_id.oid().registered_name() != "PBE-PKCS5v20") {
  ------------------
  |  Branch (89:13): [True: 0, False: 0]
  ------------------
   90|      0|            throw PKCS8_Exception(fmt("Unknown PBE type {}", pbe_alg_id.oid()));
   91|      0|         }
   92|       |
   93|      0|#if defined(BOTAN_HAS_PKCS5_PBES2)
   94|      0|         key = pbes2_decrypt(key_data, get_passphrase(), pbe_alg_id.parameters());
   95|       |#else
   96|       |         BOTAN_UNUSED(get_passphrase);
   97|       |         throw Decoding_Error("Private key is encrypted but PBES2 was disabled in build");
   98|       |#endif
   99|  6.66k|      } else {
  100|  6.66k|         key = key_data;
  101|  6.66k|      }
  102|       |
  103|  6.66k|      BER_Decoder(key, BER_Decoder::Limits::DER())
  104|  6.66k|         .start_sequence()
  105|  6.66k|         .decode_and_check<size_t>(0, "Unknown PKCS #8 version number")
  106|  6.66k|         .decode(pk_alg_id)
  107|  6.66k|         .decode(key, ASN1_Type::OctetString)
  108|  6.66k|         .discard_remaining()
  109|  6.66k|         .end_cons()
  110|  6.66k|         .verify_end();
  111|  6.66k|   } catch(std::exception& e) {
  112|    961|      throw Decoding_Error("PKCS #8 private key decoding", e);
  113|    961|   }
  114|  5.70k|   return key;
  115|  6.66k|}
pkcs8.cpp:_ZN5Botan5PKCS812_GLOBAL__N_113PKCS8_extractERNS_10DataSourceERNS_19AlgorithmIdentifierE:
   31|      2|secure_vector<uint8_t> PKCS8_extract(DataSource& source, AlgorithmIdentifier& pbe_alg_id) {
   32|      2|   secure_vector<uint8_t> key_data;
   33|       |
   34|      2|   BER_Decoder(source, BER_Decoder::Limits::DER())
   35|      2|      .start_sequence()
   36|      2|      .decode(pbe_alg_id)
   37|      2|      .decode(key_data, ASN1_Type::OctetString)
   38|      2|      .end_cons()
   39|      2|      .verify_end();
   40|       |
   41|      2|   return key_data;
   42|      2|}

_ZN5Botan13RSA_PublicKey4initEONS_6BigIntES2_:
  156|      5|void RSA_PublicKey::init(BigInt&& n, BigInt&& e) {
  157|      5|   if(n.signum() <= 0 || n.is_even() || n.bits() < 384 || n.bits() > 16384) {
  ------------------
  |  Branch (157:7): [True: 2, False: 3]
  |  Branch (157:26): [True: 1, False: 2]
  |  Branch (157:41): [True: 2, False: 0]
  |  Branch (157:59): [True: 0, False: 0]
  ------------------
  158|      5|      throw Decoding_Error("Invalid RSA public key modulus");
  159|      5|   }
  160|      0|   if(e.is_even() || e <= 1 || e >= n || e.bits() > 256) {
  ------------------
  |  Branch (160:7): [True: 0, False: 0]
  |  Branch (160:22): [True: 0, False: 0]
  |  Branch (160:32): [True: 0, False: 0]
  |  Branch (160:42): [True: 0, False: 0]
  ------------------
  161|      0|      throw Decoding_Error("Invalid RSA public key exponent");
  162|      0|   }
  163|      0|   m_public = std::make_shared<RSA_Public_Data>(std::move(n), std::move(e));
  164|      0|}
_ZN5Botan14RSA_PrivateKeyC1ERKNS_19AlgorithmIdentifierENSt3__14spanIKhLm18446744073709551615EEE:
  282|     45|RSA_PrivateKey::RSA_PrivateKey(const AlgorithmIdentifier& alg_id, std::span<const uint8_t> key_bits) {
  283|     45|   if(alg_id.oid().registered_name() == "RSA" && !alg_id.parameters_are_null_or_empty()) {
  ------------------
  |  Branch (283:7): [True: 4, False: 41]
  |  Branch (283:7): [True: 2, False: 43]
  |  Branch (283:50): [True: 2, False: 2]
  ------------------
  284|      2|      throw Decoding_Error("Unexpected parameters for RSA private key");
  285|      2|   }
  286|       |
  287|     43|   BigInt n;
  288|     43|   BigInt e;
  289|     43|   BigInt d;
  290|     43|   BigInt p;
  291|     43|   BigInt q;
  292|     43|   BigInt d1;
  293|     43|   BigInt d2;
  294|     43|   BigInt c;
  295|       |
  296|     43|   BER_Decoder(key_bits, BER_Decoder::Limits::DER())
  297|     43|      .start_sequence()
  298|     43|      .decode_and_check<size_t>(0, "Unknown PKCS #1 key format version")
  299|     43|      .decode(n)
  300|     43|      .decode(e)
  301|     43|      .decode(d)
  302|     43|      .decode(p)
  303|     43|      .decode(q)
  304|     43|      .decode(d1)
  305|     43|      .decode(d2)
  306|     43|      .decode(c)
  307|     43|      .end_cons()
  308|     43|      .verify_end();
  309|       |
  310|     43|   RSA_PublicKey::init(std::move(n), std::move(e));
  311|       |
  312|     43|   RSA_PrivateKey::init(std::move(d), std::move(p), std::move(q), std::move(d1), std::move(d2), std::move(c));
  313|     43|}

_ZN5Botan18Sphincs_ParametersC2ENS_21Sphincs_Parameter_SetENS_17Sphincs_Hash_TypeEjjjjjjj:
  245|     34|      m_set(set), m_hash_type(hash_type), m_n(n), m_h(h), m_d(d), m_a(a), m_k(k), m_w(w), m_bitsec(bitsec) {
  246|     34|   BOTAN_ARG_CHECK(!(hash_type == Sphincs_Hash_Type::Haraka && is_slh_dsa_set(set)),
  ------------------
  |  |   35|     34|   do {                                                          \
  |  |   36|     34|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|     34|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 0, False: 34]
  |  |  |  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|     34|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 34]
  |  |  ------------------
  ------------------
  247|     34|                   "Haraka is not available for SLH-DSA");
  248|     34|   BOTAN_ARG_CHECK(w == 4 || w == 16 || w == 256, "Winternitz parameter must be one of 4, 16, 256");
  ------------------
  |  |   35|     34|   do {                                                          \
  |  |   36|     34|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    102|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 0, False: 34]
  |  |  |  Branch (37:12): [True: 34, 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|     34|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 34]
  |  |  ------------------
  ------------------
  249|     34|   BOTAN_ARG_CHECK(n == 16 || n == 24 || n == 32, "n must be one of 16, 24, 32");
  ------------------
  |  |   35|     34|   do {                                                          \
  |  |   36|     34|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|     96|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 14, False: 20]
  |  |  |  Branch (37:12): [True: 12, False: 8]
  |  |  |  Branch (37:12): [True: 8, False: 0]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|     34|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 34]
  |  |  ------------------
  ------------------
  250|     34|   BOTAN_ARG_CHECK(m_d > 0, "d must be greater than zero");
  ------------------
  |  |   35|     34|   do {                                                          \
  |  |   36|     34|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|     34|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 34]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|     34|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 34]
  |  |  ------------------
  ------------------
  251|       |
  252|     34|   m_xmss_tree_height = m_h / m_d;
  253|     34|   m_lg_w = ceil_log2(m_w);
  254|       |
  255|       |   // base_2^b algorithm (Fips 205, Algorithm 4) only works
  256|       |   // when m_log_w is a divisor of 8.
  257|     34|   BOTAN_ASSERT_NOMSG(m_lg_w <= 8 && 8 % m_lg_w == 0);
  ------------------
  |  |   77|     34|   do {                                                                     \
  |  |   78|     34|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|     68|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:12): [True: 34, False: 0]
  |  |  |  Branch (79:12): [True: 34, False: 0]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|     34|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 34]
  |  |  ------------------
  ------------------
  258|       |
  259|       |   // # Winternitz blocks of the message (len_1 of FIPS 205, Algorithm 1)
  260|     34|   m_wots_len1 = (m_n * 8) / m_lg_w;
  261|       |
  262|       |   // # Winternitz blocks of the checksum (output of FIPS 205 Algorithm 1)
  263|     34|   m_wots_len2 = ceil_log2(m_wots_len1 * (m_w - 1)) / m_lg_w + 1;
  264|       |
  265|       |   // # Winternitz blocks in the signature (len of FIPS 205, Equation 5.4)
  266|     34|   m_wots_len = m_wots_len1 + m_wots_len2;
  267|       |
  268|       |   // byte length of WOTS+ signature as well as public key
  269|     34|   m_wots_bytes = m_wots_len * m_n;
  270|       |
  271|       |   // # of bytes the WOTS+ checksum consists of
  272|     34|   m_wots_checksum_bytes = ceil_tobytes(m_wots_len2 * m_lg_w);
  273|       |
  274|     34|   m_fors_sig_bytes = (m_a + 1) * m_k * m_n;
  275|       |
  276|       |   // byte length of the FORS input message
  277|     34|   m_fors_message_bytes = ceil_tobytes(m_k * m_a);
  278|       |
  279|     34|   m_xmss_sig_bytes = m_wots_bytes + m_xmss_tree_height * m_n;
  280|     34|   m_ht_sig_bytes = m_d * m_xmss_sig_bytes;
  281|     34|   m_sp_sig_bytes = m_n /* random */ + m_fors_sig_bytes + m_ht_sig_bytes;
  282|       |
  283|     34|   m_tree_digest_bytes = ceil_tobytes(m_h - m_xmss_tree_height);
  284|     34|   m_leaf_digest_bytes = ceil_tobytes(m_xmss_tree_height);
  285|     34|   m_h_msg_digest_bytes = m_fors_message_bytes + m_tree_digest_bytes + m_leaf_digest_bytes;
  286|     34|}
_ZNK5Botan18Sphincs_Parameters12is_availableEv:
  288|     10|bool Sphincs_Parameters::is_available() const {
  289|     10|   [[maybe_unused]] const bool is_slh_dsa = is_slh_dsa_set(m_set);
  290|     10|#ifdef BOTAN_HAS_SLH_DSA_WITH_SHA2
  291|     10|   if(is_slh_dsa && m_hash_type == Sphincs_Hash_Type::Sha256) {
  ------------------
  |  Branch (291:7): [True: 10, False: 0]
  |  Branch (291:21): [True: 8, False: 2]
  ------------------
  292|      8|      return true;
  293|      8|   }
  294|      2|#endif
  295|      2|#ifdef BOTAN_HAS_SLH_DSA_WITH_SHAKE
  296|      2|   if(is_slh_dsa && m_hash_type == Sphincs_Hash_Type::Shake256) {
  ------------------
  |  Branch (296:7): [True: 2, False: 0]
  |  Branch (296:21): [True: 2, False: 0]
  ------------------
  297|      2|      return true;
  298|      2|   }
  299|      0|#endif
  300|      0|#ifdef BOTAN_HAS_SPHINCS_PLUS_WITH_SHA2
  301|      0|   if(!is_slh_dsa && m_hash_type == Sphincs_Hash_Type::Sha256) {
  ------------------
  |  Branch (301:7): [True: 0, False: 0]
  |  Branch (301:22): [True: 0, False: 0]
  ------------------
  302|      0|      return true;
  303|      0|   }
  304|      0|#endif
  305|      0|#ifdef BOTAN_HAS_SPHINCS_PLUS_WITH_SHAKE
  306|      0|   if(!is_slh_dsa && m_hash_type == Sphincs_Hash_Type::Shake256) {
  ------------------
  |  Branch (306:7): [True: 0, False: 0]
  |  Branch (306:22): [True: 0, False: 0]
  ------------------
  307|      0|      return true;
  308|      0|   }
  309|      0|#endif
  310|      0|   return false;
  311|      0|}
_ZN5Botan18Sphincs_Parameters6createENS_21Sphincs_Parameter_SetENS_17Sphincs_Hash_TypeE:
  314|     34|   Sphincs_Parameter_Set set, Sphincs_Hash_Type hash /*, SlhDsaInputMode input_mode [TODO: prehash mode]*/) {
  315|       |   // See FIPS 205, Table 2
  316|     34|   switch(set) {
  ------------------
  |  Branch (316:11): [True: 34, False: 0]
  ------------------
  317|      0|      case Sphincs_Parameter_Set::Sphincs128Small:
  ------------------
  |  Branch (317:7): [True: 0, False: 34]
  ------------------
  318|      8|      case Sphincs_Parameter_Set::SLHDSA128Small:
  ------------------
  |  Branch (318:7): [True: 8, False: 26]
  ------------------
  319|      8|         return Sphincs_Parameters(set, hash, 16, 63, 7, 12, 14, 16, 133);
  320|      0|      case Sphincs_Parameter_Set::Sphincs128Fast:
  ------------------
  |  Branch (320:7): [True: 0, False: 34]
  ------------------
  321|      6|      case Sphincs_Parameter_Set::SLHDSA128Fast:
  ------------------
  |  Branch (321:7): [True: 6, False: 28]
  ------------------
  322|      6|         return Sphincs_Parameters(set, hash, 16, 66, 22, 6, 33, 16, 128);
  323|       |
  324|      0|      case Sphincs_Parameter_Set::Sphincs192Small:
  ------------------
  |  Branch (324:7): [True: 0, False: 34]
  ------------------
  325|      6|      case Sphincs_Parameter_Set::SLHDSA192Small:
  ------------------
  |  Branch (325:7): [True: 6, False: 28]
  ------------------
  326|      6|         return Sphincs_Parameters(set, hash, 24, 63, 7, 14, 17, 16, 193);
  327|      0|      case Sphincs_Parameter_Set::Sphincs192Fast:
  ------------------
  |  Branch (327:7): [True: 0, False: 34]
  ------------------
  328|      6|      case Sphincs_Parameter_Set::SLHDSA192Fast:
  ------------------
  |  Branch (328:7): [True: 6, False: 28]
  ------------------
  329|      6|         return Sphincs_Parameters(set, hash, 24, 66, 22, 8, 33, 16, 194);
  330|       |
  331|      0|      case Sphincs_Parameter_Set::Sphincs256Small:
  ------------------
  |  Branch (331:7): [True: 0, False: 34]
  ------------------
  332|      4|      case Sphincs_Parameter_Set::SLHDSA256Small:
  ------------------
  |  Branch (332:7): [True: 4, False: 30]
  ------------------
  333|      4|         return Sphincs_Parameters(set, hash, 32, 64, 8, 14, 22, 16, 255);
  334|      0|      case Sphincs_Parameter_Set::Sphincs256Fast:
  ------------------
  |  Branch (334:7): [True: 0, False: 34]
  ------------------
  335|      4|      case Sphincs_Parameter_Set::SLHDSA256Fast:
  ------------------
  |  Branch (335:7): [True: 4, False: 30]
  ------------------
  336|      4|         return Sphincs_Parameters(set, hash, 32, 68, 17, 9, 35, 16, 255);
  337|     34|   }
  338|      0|   BOTAN_ASSERT_UNREACHABLE();
  ------------------
  |  |  166|      0|#define BOTAN_ASSERT_UNREACHABLE() Botan::assert_unreachable(__FILE__, __LINE__)
  ------------------
  339|      0|}
_ZN5Botan18Sphincs_Parameters6createENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  341|     34|Sphincs_Parameters Sphincs_Parameters::create(std::string_view name) {
  342|     34|   auto [param_set, hash_type] = set_and_hash_from_name(name);
  343|     34|   return Sphincs_Parameters::create(param_set, hash_type);
  344|     34|}
_ZNK5Botan18Sphincs_Parameters9to_stringEv:
  362|     17|std::string Sphincs_Parameters::to_string() const {
  363|     17|   return name_from_set_and_hash(parameter_set(), hash_type());
  364|     17|}
_ZN5Botan18Sphincs_Parameters6createERKNS_3OIDE:
  366|     34|Sphincs_Parameters Sphincs_Parameters::create(const OID& oid) {
  367|     34|   if(const auto name = oid.registered_name()) {
  ------------------
  |  Branch (367:18): [True: 34, False: 0]
  ------------------
  368|     34|      return Sphincs_Parameters::create(*name);
  369|     34|   }
  370|       |
  371|      0|   throw Lookup_Error(fmt("No SLH-DSA (or SPHINCS+) parameter registered for OID {}", oid));
  372|     34|}
_ZNK5Botan18Sphincs_Parameters17object_identifierEv:
  374|     17|OID Sphincs_Parameters::object_identifier() const {
  375|     17|   return OID::from_string(to_string());
  376|     17|}
sp_parameters.cpp:_ZN5Botan12_GLOBAL__N_114is_slh_dsa_setENS_21Sphincs_Parameter_SetE:
  214|     10|constexpr bool is_slh_dsa_set(Sphincs_Parameter_Set set) {
  215|     10|   switch(set) {
  ------------------
  |  Branch (215:11): [True: 10, False: 0]
  ------------------
  216|      4|      case Sphincs_Parameter_Set::SLHDSA128Small:
  ------------------
  |  Branch (216:7): [True: 4, False: 6]
  ------------------
  217|      6|      case Sphincs_Parameter_Set::SLHDSA128Fast:
  ------------------
  |  Branch (217:7): [True: 2, False: 8]
  ------------------
  218|      8|      case Sphincs_Parameter_Set::SLHDSA192Small:
  ------------------
  |  Branch (218:7): [True: 2, False: 8]
  ------------------
  219|     10|      case Sphincs_Parameter_Set::SLHDSA192Fast:
  ------------------
  |  Branch (219:7): [True: 2, False: 8]
  ------------------
  220|     10|      case Sphincs_Parameter_Set::SLHDSA256Small:
  ------------------
  |  Branch (220:7): [True: 0, False: 10]
  ------------------
  221|     10|      case Sphincs_Parameter_Set::SLHDSA256Fast:
  ------------------
  |  Branch (221:7): [True: 0, False: 10]
  ------------------
  222|     10|         return true;
  223|      0|      case Sphincs_Parameter_Set::Sphincs128Small:
  ------------------
  |  Branch (223:7): [True: 0, False: 10]
  ------------------
  224|      0|      case Sphincs_Parameter_Set::Sphincs128Fast:
  ------------------
  |  Branch (224:7): [True: 0, False: 10]
  ------------------
  225|      0|      case Sphincs_Parameter_Set::Sphincs192Small:
  ------------------
  |  Branch (225:7): [True: 0, False: 10]
  ------------------
  226|      0|      case Sphincs_Parameter_Set::Sphincs192Fast:
  ------------------
  |  Branch (226:7): [True: 0, False: 10]
  ------------------
  227|      0|      case Sphincs_Parameter_Set::Sphincs256Small:
  ------------------
  |  Branch (227:7): [True: 0, False: 10]
  ------------------
  228|      0|      case Sphincs_Parameter_Set::Sphincs256Fast:
  ------------------
  |  Branch (228:7): [True: 0, False: 10]
  ------------------
  229|      0|         return false;
  230|     10|   }
  231|      0|   BOTAN_ASSERT_UNREACHABLE();
  ------------------
  |  |  166|      0|#define BOTAN_ASSERT_UNREACHABLE() Botan::assert_unreachable(__FILE__, __LINE__)
  ------------------
  232|      0|}
sp_parameters.cpp:_ZN5Botan12_GLOBAL__N_122set_and_hash_from_nameENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   20|     34|std::pair<Sphincs_Parameter_Set, Sphincs_Hash_Type> set_and_hash_from_name(std::string_view name) {
   21|       |   // SPHINCS+ Round 3.1 instances
   22|     34|   if(name == "SphincsPlus-sha2-128s-r3.1") {
  ------------------
  |  Branch (22:7): [True: 0, False: 34]
  ------------------
   23|      0|      return {Sphincs_Parameter_Set::Sphincs128Small, Sphincs_Hash_Type::Sha256};
   24|      0|   }
   25|     34|   if(name == "SphincsPlus-sha2-128f-r3.1") {
  ------------------
  |  Branch (25:7): [True: 0, False: 34]
  ------------------
   26|      0|      return {Sphincs_Parameter_Set::Sphincs128Fast, Sphincs_Hash_Type::Sha256};
   27|      0|   }
   28|     34|   if(name == "SphincsPlus-sha2-192s-r3.1") {
  ------------------
  |  Branch (28:7): [True: 0, False: 34]
  ------------------
   29|      0|      return {Sphincs_Parameter_Set::Sphincs192Small, Sphincs_Hash_Type::Sha256};
   30|      0|   }
   31|     34|   if(name == "SphincsPlus-sha2-192f-r3.1") {
  ------------------
  |  Branch (31:7): [True: 0, False: 34]
  ------------------
   32|      0|      return {Sphincs_Parameter_Set::Sphincs192Fast, Sphincs_Hash_Type::Sha256};
   33|      0|   }
   34|     34|   if(name == "SphincsPlus-sha2-256s-r3.1") {
  ------------------
  |  Branch (34:7): [True: 0, False: 34]
  ------------------
   35|      0|      return {Sphincs_Parameter_Set::Sphincs256Small, Sphincs_Hash_Type::Sha256};
   36|      0|   }
   37|     34|   if(name == "SphincsPlus-sha2-256f-r3.1") {
  ------------------
  |  Branch (37:7): [True: 0, False: 34]
  ------------------
   38|      0|      return {Sphincs_Parameter_Set::Sphincs256Fast, Sphincs_Hash_Type::Sha256};
   39|      0|   }
   40|       |
   41|     34|   if(name == "SphincsPlus-shake-128s-r3.1") {
  ------------------
  |  Branch (41:7): [True: 0, False: 34]
  ------------------
   42|      0|      return {Sphincs_Parameter_Set::Sphincs128Small, Sphincs_Hash_Type::Shake256};
   43|      0|   }
   44|     34|   if(name == "SphincsPlus-shake-128f-r3.1") {
  ------------------
  |  Branch (44:7): [True: 0, False: 34]
  ------------------
   45|      0|      return {Sphincs_Parameter_Set::Sphincs128Fast, Sphincs_Hash_Type::Shake256};
   46|      0|   }
   47|     34|   if(name == "SphincsPlus-shake-192s-r3.1") {
  ------------------
  |  Branch (47:7): [True: 0, False: 34]
  ------------------
   48|      0|      return {Sphincs_Parameter_Set::Sphincs192Small, Sphincs_Hash_Type::Shake256};
   49|      0|   }
   50|     34|   if(name == "SphincsPlus-shake-192f-r3.1") {
  ------------------
  |  Branch (50:7): [True: 0, False: 34]
  ------------------
   51|      0|      return {Sphincs_Parameter_Set::Sphincs192Fast, Sphincs_Hash_Type::Shake256};
   52|      0|   }
   53|     34|   if(name == "SphincsPlus-shake-256s-r3.1") {
  ------------------
  |  Branch (53:7): [True: 0, False: 34]
  ------------------
   54|      0|      return {Sphincs_Parameter_Set::Sphincs256Small, Sphincs_Hash_Type::Shake256};
   55|      0|   }
   56|     34|   if(name == "SphincsPlus-shake-256f-r3.1") {
  ------------------
  |  Branch (56:7): [True: 0, False: 34]
  ------------------
   57|      0|      return {Sphincs_Parameter_Set::Sphincs256Fast, Sphincs_Hash_Type::Shake256};
   58|      0|   }
   59|       |
   60|     34|   if(name == "SphincsPlus-haraka-128s-r3.1") {
  ------------------
  |  Branch (60:7): [True: 0, False: 34]
  ------------------
   61|      0|      return {Sphincs_Parameter_Set::Sphincs128Small, Sphincs_Hash_Type::Haraka};
   62|      0|   }
   63|     34|   if(name == "SphincsPlus-haraka-128f-r3.1") {
  ------------------
  |  Branch (63:7): [True: 0, False: 34]
  ------------------
   64|      0|      return {Sphincs_Parameter_Set::Sphincs128Fast, Sphincs_Hash_Type::Haraka};
   65|      0|   }
   66|     34|   if(name == "SphincsPlus-haraka-192s-r3.1") {
  ------------------
  |  Branch (66:7): [True: 0, False: 34]
  ------------------
   67|      0|      return {Sphincs_Parameter_Set::Sphincs192Small, Sphincs_Hash_Type::Haraka};
   68|      0|   }
   69|     34|   if(name == "SphincsPlus-haraka-192f-r3.1") {
  ------------------
  |  Branch (69:7): [True: 0, False: 34]
  ------------------
   70|      0|      return {Sphincs_Parameter_Set::Sphincs192Fast, Sphincs_Hash_Type::Haraka};
   71|      0|   }
   72|     34|   if(name == "SphincsPlus-haraka-256s-r3.1") {
  ------------------
  |  Branch (72:7): [True: 0, False: 34]
  ------------------
   73|      0|      return {Sphincs_Parameter_Set::Sphincs256Small, Sphincs_Hash_Type::Haraka};
   74|      0|   }
   75|     34|   if(name == "SphincsPlus-haraka-256f-r3.1") {
  ------------------
  |  Branch (75:7): [True: 0, False: 34]
  ------------------
   76|      0|      return {Sphincs_Parameter_Set::Sphincs256Fast, Sphincs_Hash_Type::Haraka};
   77|      0|   }
   78|       |
   79|       |   // SLH-DSA instances WITHOUT prehash mode
   80|     34|   if(name == "SLH-DSA-SHA2-128s") {
  ------------------
  |  Branch (80:7): [True: 4, False: 30]
  ------------------
   81|      4|      return {Sphincs_Parameter_Set::SLHDSA128Small, Sphincs_Hash_Type::Sha256};
   82|      4|   }
   83|     30|   if(name == "SLH-DSA-SHA2-128f") {
  ------------------
  |  Branch (83:7): [True: 4, False: 26]
  ------------------
   84|      4|      return {Sphincs_Parameter_Set::SLHDSA128Fast, Sphincs_Hash_Type::Sha256};
   85|      4|   }
   86|     26|   if(name == "SLH-DSA-SHA2-192s") {
  ------------------
  |  Branch (86:7): [True: 4, False: 22]
  ------------------
   87|      4|      return {Sphincs_Parameter_Set::SLHDSA192Small, Sphincs_Hash_Type::Sha256};
   88|      4|   }
   89|     22|   if(name == "SLH-DSA-SHA2-192f") {
  ------------------
  |  Branch (89:7): [True: 4, False: 18]
  ------------------
   90|      4|      return {Sphincs_Parameter_Set::SLHDSA192Fast, Sphincs_Hash_Type::Sha256};
   91|      4|   }
   92|     18|   if(name == "SLH-DSA-SHA2-256s") {
  ------------------
  |  Branch (92:7): [True: 2, False: 16]
  ------------------
   93|      2|      return {Sphincs_Parameter_Set::SLHDSA256Small, Sphincs_Hash_Type::Sha256};
   94|      2|   }
   95|     16|   if(name == "SLH-DSA-SHA2-256f") {
  ------------------
  |  Branch (95:7): [True: 2, False: 14]
  ------------------
   96|      2|      return {Sphincs_Parameter_Set::SLHDSA256Fast, Sphincs_Hash_Type::Sha256};
   97|      2|   }
   98|       |
   99|     14|   if(name == "SLH-DSA-SHAKE-128s") {
  ------------------
  |  Branch (99:7): [True: 4, False: 10]
  ------------------
  100|      4|      return {Sphincs_Parameter_Set::SLHDSA128Small, Sphincs_Hash_Type::Shake256};
  101|      4|   }
  102|     10|   if(name == "SLH-DSA-SHAKE-128f") {
  ------------------
  |  Branch (102:7): [True: 2, False: 8]
  ------------------
  103|      2|      return {Sphincs_Parameter_Set::SLHDSA128Fast, Sphincs_Hash_Type::Shake256};
  104|      2|   }
  105|      8|   if(name == "SLH-DSA-SHAKE-192s") {
  ------------------
  |  Branch (105:7): [True: 2, False: 6]
  ------------------
  106|      2|      return {Sphincs_Parameter_Set::SLHDSA192Small, Sphincs_Hash_Type::Shake256};
  107|      2|   }
  108|      6|   if(name == "SLH-DSA-SHAKE-192f") {
  ------------------
  |  Branch (108:7): [True: 2, False: 4]
  ------------------
  109|      2|      return {Sphincs_Parameter_Set::SLHDSA192Fast, Sphincs_Hash_Type::Shake256};
  110|      2|   }
  111|      4|   if(name == "SLH-DSA-SHAKE-256s") {
  ------------------
  |  Branch (111:7): [True: 2, False: 2]
  ------------------
  112|      2|      return {Sphincs_Parameter_Set::SLHDSA256Small, Sphincs_Hash_Type::Shake256};
  113|      2|   }
  114|      2|   if(name == "SLH-DSA-SHAKE-256f") {
  ------------------
  |  Branch (114:7): [True: 2, False: 0]
  ------------------
  115|      2|      return {Sphincs_Parameter_Set::SLHDSA256Fast, Sphincs_Hash_Type::Shake256};
  116|      2|   }
  117|       |
  118|       |   // The pre-hash variants (HashSLH-DSA) are not currently implemented
  119|      0|   if(name.starts_with("Hash-SLH-DSA-")) {
  ------------------
  |  Branch (119:7): [True: 0, False: 0]
  ------------------
  120|      0|      throw Not_Implemented(fmt("Pre-hash SLH-DSA ({}) is not supported", name));
  121|      0|   }
  122|       |
  123|      0|   throw Lookup_Error(fmt("No SLH-DSA (or SPHINCS+) parameter supported for: {}", name));
  124|      0|}
sp_parameters.cpp:_ZN5Botan12_GLOBAL__N_122name_from_set_and_hashENS_21Sphincs_Parameter_SetENS_17Sphincs_Hash_TypeE:
  126|     17|std::string name_from_set_and_hash(Sphincs_Parameter_Set set, Sphincs_Hash_Type hash) {
  127|     17|   if(hash == Sphincs_Hash_Type::Sha256) {
  ------------------
  |  Branch (127:7): [True: 10, False: 7]
  ------------------
  128|     10|      switch(set) {
  ------------------
  |  Branch (128:14): [True: 10, False: 0]
  ------------------
  129|      0|         case Sphincs_Parameter_Set::Sphincs128Small:
  ------------------
  |  Branch (129:10): [True: 0, False: 10]
  ------------------
  130|      0|            return "SphincsPlus-sha2-128s-r3.1";
  131|      0|         case Sphincs_Parameter_Set::Sphincs128Fast:
  ------------------
  |  Branch (131:10): [True: 0, False: 10]
  ------------------
  132|      0|            return "SphincsPlus-sha2-128f-r3.1";
  133|      0|         case Sphincs_Parameter_Set::Sphincs192Small:
  ------------------
  |  Branch (133:10): [True: 0, False: 10]
  ------------------
  134|      0|            return "SphincsPlus-sha2-192s-r3.1";
  135|      0|         case Sphincs_Parameter_Set::Sphincs192Fast:
  ------------------
  |  Branch (135:10): [True: 0, False: 10]
  ------------------
  136|      0|            return "SphincsPlus-sha2-192f-r3.1";
  137|      0|         case Sphincs_Parameter_Set::Sphincs256Small:
  ------------------
  |  Branch (137:10): [True: 0, False: 10]
  ------------------
  138|      0|            return "SphincsPlus-sha2-256s-r3.1";
  139|      0|         case Sphincs_Parameter_Set::Sphincs256Fast:
  ------------------
  |  Branch (139:10): [True: 0, False: 10]
  ------------------
  140|      0|            return "SphincsPlus-sha2-256f-r3.1";
  141|       |
  142|      2|         case Sphincs_Parameter_Set::SLHDSA128Small:
  ------------------
  |  Branch (142:10): [True: 2, False: 8]
  ------------------
  143|      2|            return "SLH-DSA-SHA2-128s";
  144|      2|         case Sphincs_Parameter_Set::SLHDSA128Fast:
  ------------------
  |  Branch (144:10): [True: 2, False: 8]
  ------------------
  145|      2|            return "SLH-DSA-SHA2-128f";
  146|      2|         case Sphincs_Parameter_Set::SLHDSA192Small:
  ------------------
  |  Branch (146:10): [True: 2, False: 8]
  ------------------
  147|      2|            return "SLH-DSA-SHA2-192s";
  148|      2|         case Sphincs_Parameter_Set::SLHDSA192Fast:
  ------------------
  |  Branch (148:10): [True: 2, False: 8]
  ------------------
  149|      2|            return "SLH-DSA-SHA2-192f";
  150|      1|         case Sphincs_Parameter_Set::SLHDSA256Small:
  ------------------
  |  Branch (150:10): [True: 1, False: 9]
  ------------------
  151|      1|            return "SLH-DSA-SHA2-256s";
  152|      1|         case Sphincs_Parameter_Set::SLHDSA256Fast:
  ------------------
  |  Branch (152:10): [True: 1, False: 9]
  ------------------
  153|      1|            return "SLH-DSA-SHA2-256f";
  154|     10|      }
  155|     10|   }
  156|       |
  157|      7|   if(hash == Sphincs_Hash_Type::Shake256) {
  ------------------
  |  Branch (157:7): [True: 7, False: 0]
  ------------------
  158|      7|      switch(set) {
  ------------------
  |  Branch (158:14): [True: 7, False: 0]
  ------------------
  159|      0|         case Sphincs_Parameter_Set::Sphincs128Small:
  ------------------
  |  Branch (159:10): [True: 0, False: 7]
  ------------------
  160|      0|            return "SphincsPlus-shake-128s-r3.1";
  161|      0|         case Sphincs_Parameter_Set::Sphincs128Fast:
  ------------------
  |  Branch (161:10): [True: 0, False: 7]
  ------------------
  162|      0|            return "SphincsPlus-shake-128f-r3.1";
  163|      0|         case Sphincs_Parameter_Set::Sphincs192Small:
  ------------------
  |  Branch (163:10): [True: 0, False: 7]
  ------------------
  164|      0|            return "SphincsPlus-shake-192s-r3.1";
  165|      0|         case Sphincs_Parameter_Set::Sphincs192Fast:
  ------------------
  |  Branch (165:10): [True: 0, False: 7]
  ------------------
  166|      0|            return "SphincsPlus-shake-192f-r3.1";
  167|      0|         case Sphincs_Parameter_Set::Sphincs256Small:
  ------------------
  |  Branch (167:10): [True: 0, False: 7]
  ------------------
  168|      0|            return "SphincsPlus-shake-256s-r3.1";
  169|      0|         case Sphincs_Parameter_Set::Sphincs256Fast:
  ------------------
  |  Branch (169:10): [True: 0, False: 7]
  ------------------
  170|      0|            return "SphincsPlus-shake-256f-r3.1";
  171|       |
  172|      2|         case Sphincs_Parameter_Set::SLHDSA128Small:
  ------------------
  |  Branch (172:10): [True: 2, False: 5]
  ------------------
  173|      2|            return "SLH-DSA-SHAKE-128s";
  174|      1|         case Sphincs_Parameter_Set::SLHDSA128Fast:
  ------------------
  |  Branch (174:10): [True: 1, False: 6]
  ------------------
  175|      1|            return "SLH-DSA-SHAKE-128f";
  176|      1|         case Sphincs_Parameter_Set::SLHDSA192Small:
  ------------------
  |  Branch (176:10): [True: 1, False: 6]
  ------------------
  177|      1|            return "SLH-DSA-SHAKE-192s";
  178|      1|         case Sphincs_Parameter_Set::SLHDSA192Fast:
  ------------------
  |  Branch (178:10): [True: 1, False: 6]
  ------------------
  179|      1|            return "SLH-DSA-SHAKE-192f";
  180|      1|         case Sphincs_Parameter_Set::SLHDSA256Small:
  ------------------
  |  Branch (180:10): [True: 1, False: 6]
  ------------------
  181|      1|            return "SLH-DSA-SHAKE-256s";
  182|      1|         case Sphincs_Parameter_Set::SLHDSA256Fast:
  ------------------
  |  Branch (182:10): [True: 1, False: 6]
  ------------------
  183|      1|            return "SLH-DSA-SHAKE-256f";
  184|      7|      }
  185|      7|   }
  186|       |
  187|      0|   if(hash == Sphincs_Hash_Type::Haraka) {
  ------------------
  |  Branch (187:7): [True: 0, False: 0]
  ------------------
  188|      0|      switch(set) {
  ------------------
  |  Branch (188:14): [True: 0, False: 0]
  ------------------
  189|      0|         case Sphincs_Parameter_Set::Sphincs128Small:
  ------------------
  |  Branch (189:10): [True: 0, False: 0]
  ------------------
  190|      0|            return "SphincsPlus-haraka-128s-r3.1";
  191|      0|         case Sphincs_Parameter_Set::Sphincs128Fast:
  ------------------
  |  Branch (191:10): [True: 0, False: 0]
  ------------------
  192|      0|            return "SphincsPlus-haraka-128f-r3.1";
  193|      0|         case Sphincs_Parameter_Set::Sphincs192Small:
  ------------------
  |  Branch (193:10): [True: 0, False: 0]
  ------------------
  194|      0|            return "SphincsPlus-haraka-192s-r3.1";
  195|      0|         case Sphincs_Parameter_Set::Sphincs192Fast:
  ------------------
  |  Branch (195:10): [True: 0, False: 0]
  ------------------
  196|      0|            return "SphincsPlus-haraka-192f-r3.1";
  197|      0|         case Sphincs_Parameter_Set::Sphincs256Small:
  ------------------
  |  Branch (197:10): [True: 0, False: 0]
  ------------------
  198|      0|            return "SphincsPlus-haraka-256s-r3.1";
  199|      0|         case Sphincs_Parameter_Set::Sphincs256Fast:
  ------------------
  |  Branch (199:10): [True: 0, False: 0]
  ------------------
  200|      0|            return "SphincsPlus-haraka-256f-r3.1";
  201|       |
  202|      0|         case Sphincs_Parameter_Set::SLHDSA128Small:
  ------------------
  |  Branch (202:10): [True: 0, False: 0]
  ------------------
  203|      0|         case Sphincs_Parameter_Set::SLHDSA128Fast:
  ------------------
  |  Branch (203:10): [True: 0, False: 0]
  ------------------
  204|      0|         case Sphincs_Parameter_Set::SLHDSA192Small:
  ------------------
  |  Branch (204:10): [True: 0, False: 0]
  ------------------
  205|      0|         case Sphincs_Parameter_Set::SLHDSA192Fast:
  ------------------
  |  Branch (205:10): [True: 0, False: 0]
  ------------------
  206|      0|         case Sphincs_Parameter_Set::SLHDSA256Small:
  ------------------
  |  Branch (206:10): [True: 0, False: 0]
  ------------------
  207|      0|         case Sphincs_Parameter_Set::SLHDSA256Fast:
  ------------------
  |  Branch (207:10): [True: 0, False: 0]
  ------------------
  208|      0|            throw Invalid_Argument("SLH-DSA does not support Haraka");
  209|      0|      }
  210|      0|   }
  211|      0|   throw Invalid_Argument("Cannot serialize invalid parameter combination");
  212|      0|}

_ZN5Botan21SphincsPlus_PublicKeyC2ENSt3__14spanIKhLm18446744073709551615EEENS_18Sphincs_ParametersE:
  133|      5|      m_public(std::make_shared<SphincsPlus_PublicKeyInternal>(params, pub_key)) {
  134|      5|   if(!params.is_available()) {
  ------------------
  |  Branch (134:7): [True: 0, False: 5]
  ------------------
  135|      0|      throw Not_Implemented("This SPHINCS+ parameter set is not available in this configuration");
  136|      0|   }
  137|      5|}
_ZN5Botan21SphincsPlus_PublicKeyD2Ev:
  147|      5|SphincsPlus_PublicKey::~SphincsPlus_PublicKey() = default;
_ZN5Botan22SphincsPlus_PrivateKeyC1ERKNS_19AlgorithmIdentifierENSt3__14spanIKhLm18446744073709551615EEE:
  304|     17|      SphincsPlus_PrivateKey(key_bits, Sphincs_Parameters::create(alg_id.oid())) {
  305|       |   // The parameter set is identified by the OID; no parameters are defined.
  306|     17|   if(!alg_id.parameters_are_empty()) {
  ------------------
  |  Branch (306:7): [True: 1, False: 16]
  ------------------
  307|      1|      throw Decoding_Error("Unexpected parameters for SLH-DSA/SPHINCS+ private key");
  308|      1|   }
  309|     17|}
_ZN5Botan22SphincsPlus_PrivateKeyC1ENSt3__14spanIKhLm18446744073709551615EEENS_18Sphincs_ParametersE:
  312|     17|      SphincsPlus_PublicKey(slice_off_public_key(params.object_identifier(), private_key), params) {
  313|     17|   if(!params.is_available()) {
  ------------------
  |  Branch (313:7): [True: 0, False: 17]
  ------------------
  314|      0|      throw Not_Implemented("This SPHINCS+ parameter set is not available in this configuration");
  315|      0|   }
  316|       |
  317|     17|   const auto private_portion_bytes = params.private_key_bytes() - params.public_key_bytes();
  318|     17|   BOTAN_ASSERT_NOMSG(private_key.size() >= private_portion_bytes);
  ------------------
  |  |   77|     17|   do {                                                                     \
  |  |   78|     17|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|     17|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 17]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|     17|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 17]
  |  |  ------------------
  ------------------
  319|       |
  320|     17|   m_private = std::make_shared<SphincsPlus_PrivateKeyInternal>(params, private_key.first(private_portion_bytes));
  321|     17|}
_ZN5Botan22SphincsPlus_PrivateKeyD2Ev:
  345|      5|SphincsPlus_PrivateKey::~SphincsPlus_PrivateKey() = default;
sphincsplus.cpp:_ZN5Botan12_GLOBAL__N_120slice_off_public_keyERKNS_3OIDENSt3__14spanIKhLm18446744073709551615EEE:
  282|     17|std::span<const uint8_t> slice_off_public_key(const OID& oid, std::span<const uint8_t> key_bits) {
  283|     17|   const auto params = Sphincs_Parameters::create(oid);
  284|       |   // Note: We need to transiently instantiate the `Sphincs_Parameters` object
  285|       |   //       to know the size of the public/private key. That's slightly
  286|       |   //       inefficient but was the best we could do. Once we get rid of the
  287|       |   //       PublicKey-PrivateKey inheritance, we might want to reconsider this
  288|       |   //       control flow.
  289|     17|   if(key_bits.size() != params.private_key_bytes()) {
  ------------------
  |  Branch (289:7): [True: 12, False: 5]
  ------------------
  290|     12|      throw Decoding_Error("Sphincs Private Key doesn't have the expected length");
  291|     12|   }
  292|       |
  293|      5|   return key_bits.subspan(params.private_key_bytes() - params.public_key_bytes());
  294|     17|}
_ZN5Botan29SphincsPlus_PublicKeyInternalC2ENS_18Sphincs_ParametersENSt3__14spanIKhLm18446744073709551615EEE:
   73|      5|      SphincsPlus_PublicKeyInternal(Sphincs_Parameters params, std::span<const uint8_t> key_bits) : m_params(params) {
   74|      5|         if(key_bits.size() != m_params.public_key_bytes()) {
  ------------------
  |  Branch (74:13): [True: 0, False: 5]
  ------------------
   75|      0|            throw Decoding_Error("SLH-DSA (or SPHINCS+) Public Key doesn't have the expected length");
   76|      0|         }
   77|       |
   78|      5|         BufferSlicer s(key_bits);
   79|      5|         m_public_seed = s.copy<SphincsPublicSeed>(params.n());
   80|      5|         m_sphincs_root = s.copy<SphincsTreeNode>(params.n());
   81|       |
   82|      5|         BOTAN_ASSERT_NOMSG(s.empty());
  ------------------
  |  |   77|      5|   do {                                                                     \
  |  |   78|      5|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|      5|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 5]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|      5|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 5]
  |  |  ------------------
  ------------------
   83|      5|      }
_ZN5Botan30SphincsPlus_PrivateKeyInternalC2ERKNS_18Sphincs_ParametersENSt3__14spanIKhLm18446744073709551615EEE:
  104|      5|      SphincsPlus_PrivateKeyInternal(const Sphincs_Parameters& params, std::span<const uint8_t> key_bits) {
  105|      5|         if(key_bits.size() != params.private_key_bytes() - params.public_key_bytes()) {
  ------------------
  |  Branch (105:13): [True: 0, False: 5]
  ------------------
  106|      0|            throw Decoding_Error("SLH-DSA (or SPHINCS+) Private Key doesn't have the expected length");
  107|      0|         }
  108|       |
  109|      5|         BufferSlicer s(key_bits);
  110|      5|         m_secret_seed = s.copy<SphincsSecretSeed>(params.n());
  111|      5|         m_prf = s.copy<SphincsSecretPRF>(params.n());
  112|       |
  113|      5|         BOTAN_ASSERT_NOMSG(s.empty());
  ------------------
  |  |   77|      5|   do {                                                                     \
  |  |   78|      5|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|      5|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 5]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|      5|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 5]
  |  |  ------------------
  ------------------
  114|      5|      }

_ZN5Botan14if_work_factorEm:
   37|    255|size_t if_work_factor(size_t bits) {
   38|    255|   if(bits < 512) {
  ------------------
  |  Branch (38:7): [True: 22, False: 233]
  ------------------
   39|     22|      return 0;
   40|     22|   }
   41|       |
   42|       |   // RFC 3766 estimates k at .02 and o(1) to be effectively zero for sizes of interest
   43|       |
   44|    233|   const double log2_k = -5.6438;  // log2(.02)
   45|    233|   return nfs_workfactor(bits, log2_k);
   46|    255|}
_ZN5Botan14dl_work_factorEm:
   48|    255|size_t dl_work_factor(size_t bits) {
   49|       |   // Lacking better estimates...
   50|    255|   return if_work_factor(bits);
   51|    255|}
_ZN5Botan16dl_exponent_sizeEm:
   53|    255|size_t dl_exponent_size(size_t p_bits) {
   54|    255|   BOTAN_ARG_CHECK(p_bits > 1, "Invalid prime length");
  ------------------
  |  |   35|    255|   do {                                                          \
  |  |   36|    255|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    255|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 255]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    255|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 255]
  |  |  ------------------
  ------------------
   55|       |
   56|       |   /*
   57|       |   For relevant sizes we follow the suggestions in
   58|       |   NIST SP 800-56B Rev 2 Appendix D
   59|       |   "Maximum Security Strength Estimates for IFC Modulus Lengths"
   60|       |
   61|       |   For sizes outside the range considered in the SP we use some sensible values
   62|       |
   63|       |   Note that we return twice the value given in Table 4 since we are choosing
   64|       |   the exponent size as twice the estimated security strength.
   65|       |
   66|       |   See also NIST SP 800-56A Rev 3 Appendix D, Tables 25 and 26
   67|       |   */
   68|       |
   69|    255|   if(p_bits <= 256) {
  ------------------
  |  Branch (69:7): [True: 6, False: 249]
  ------------------
   70|       |      /*
   71|       |      * For stupidly small groups we might return a value larger than the group
   72|       |      * size if we fell into the conditionals below. Just use the maximum
   73|       |      * possible exponent size - for all the good it will do you with a group
   74|       |      * this weak.
   75|       |      */
   76|      6|      return p_bits - 1;
   77|    249|   } else if(p_bits <= 1024) {
  ------------------
  |  Branch (77:14): [True: 249, False: 0]
  ------------------
   78|       |      /*
   79|       |      Not in the SP, but general estimates are that a 1024 bit group provides at
   80|       |      most 80 bits security, so using an exponent appropriate for 96 bit security
   81|       |      is more than sufficient.
   82|       |      */
   83|    249|      return 192;
   84|    249|   } else if(p_bits <= 2048) {
  ------------------
  |  Branch (84:14): [True: 0, False: 0]
  ------------------
   85|      0|      return 224;  // SP 800-56B
   86|      0|   } else if(p_bits <= 3072) {
  ------------------
  |  Branch (86:14): [True: 0, False: 0]
  ------------------
   87|      0|      return 256;  // SP 800-56B
   88|      0|   } else if(p_bits <= 4096) {
  ------------------
  |  Branch (88:14): [True: 0, False: 0]
  ------------------
   89|      0|      return 304;  // SP 800-56B
   90|      0|   } else if(p_bits <= 6144) {
  ------------------
  |  Branch (90:14): [True: 0, False: 0]
  ------------------
   91|      0|      return 352;  // SP 800-56B
   92|      0|   } else if(p_bits <= 8192) {
  ------------------
  |  Branch (92:14): [True: 0, False: 0]
  ------------------
   93|      0|      return 400;  // SP 800-56B
   94|      0|   } else {
   95|       |      // For values larger than we know about, just saturate to 256 bit security
   96|       |      // which is Good Enough for FFDH
   97|       |      //
   98|       |      // NIST puts 15360 bit groups at exactly 256 bits security
   99|      0|      return 512;
  100|      0|   }
  101|    255|}
workfactor.cpp:_ZN5Botan12_GLOBAL__N_114nfs_workfactorEmd:
   22|    233|size_t nfs_workfactor(size_t bits, double log2_k) {
   23|       |   // approximates natural logarithm of an integer of given bitsize
   24|    233|   const double log_p = static_cast<double>(bits) / std::numbers::log2e;
   25|       |
   26|    233|   const double log_log_p = std::log(log_p);
   27|       |
   28|       |   // RFC 3766: k * e^((1.92 + o(1)) * cubrt(ln(n) * (ln(ln(n)))^2))
   29|    233|   const double est = 1.92 * std::pow(log_p * log_log_p * log_log_p, 1.0 / 3.0);
   30|       |
   31|       |   // return log2 of the workfactor
   32|    233|   return static_cast<size_t>(log2_k + std::numbers::log2e * est);
   33|    233|}

_ZN5Botan16curve25519_donnaEPhPKhS2_:
  453|      1|void curve25519_donna(uint8_t mypublic[32], const uint8_t secret[32], const uint8_t basepoint[32]) {
  454|      1|   CT::poison(secret, 32);
  455|      1|   CT::poison(basepoint, 32);
  456|       |
  457|      1|   uint64_t bp[5];
  458|      1|   uint64_t x[5];
  459|      1|   uint64_t z[5];
  460|      1|   uint64_t zmone[5];
  461|      1|   uint8_t e[32];
  462|       |
  463|      1|   copy_mem(e, secret, 32);
  464|      1|   e[0] &= 248;
  465|      1|   e[31] &= 127;
  466|      1|   e[31] |= 64;
  467|       |
  468|      1|   fexpand(bp, basepoint);
  469|      1|   cmult(x, z, e, bp);
  470|      1|   crecip(zmone, z);
  471|      1|   fmul(z, x, zmone);
  472|      1|   fcontract(mypublic, z);
  473|       |
  474|      1|   CT::unpoison(secret, 32);
  475|      1|   CT::unpoison(basepoint, 32);
  476|      1|   CT::unpoison(mypublic, 32);
  477|      1|}
donna.cpp:_ZN5Botan12_GLOBAL__N_17fexpandEPmPKh:
  217|      1|inline void fexpand(uint64_t* out, const uint8_t* in) {
  218|      1|   out[0] = load_le<uint64_t>(in, 0) & MASK_63;
  219|      1|   out[1] = (load_le<uint64_t>(in + 6, 0) >> 3) & MASK_63;
  220|      1|   out[2] = (load_le<uint64_t>(in + 12, 0) >> 6) & MASK_63;
  221|      1|   out[3] = (load_le<uint64_t>(in + 19, 0) >> 1) & MASK_63;
  222|      1|   out[4] = (load_le<uint64_t>(in + 24, 0) >> 12) & MASK_63;
  223|      1|}
donna.cpp:_ZN5Botan12_GLOBAL__N_15cmultEPmS1_PKhPKm:
  364|      1|void cmult(uint64_t resultx[5], uint64_t resultz[5], const uint8_t n[32], const uint64_t q[5]) {
  365|      1|   uint64_t a[5] = {0};  // nqpqx
  366|      1|   uint64_t b[5] = {1};  // npqpz
  367|      1|   uint64_t c[5] = {1};  // nqx
  368|      1|   uint64_t d[5] = {0};  // nqz
  369|      1|   uint64_t e[5] = {0};  // npqqx2
  370|      1|   uint64_t f[5] = {1};  // npqqz2
  371|      1|   uint64_t g[5] = {0};  // nqx2
  372|      1|   uint64_t h[5] = {1};  // nqz2
  373|       |
  374|      1|   copy_mem(a, q, 5);
  375|       |
  376|     33|   for(size_t i = 0; i < 32; ++i) {
  ------------------
  |  Branch (376:22): [True: 32, False: 1]
  ------------------
  377|     32|      const uint64_t si = n[31 - i];
  378|     32|      const auto bit0 = CT::Mask<uint64_t>::expand_bit(si, 7);
  379|     32|      const auto bit1 = CT::Mask<uint64_t>::expand_bit(si, 6);
  380|     32|      const auto bit2 = CT::Mask<uint64_t>::expand_bit(si, 5);
  381|     32|      const auto bit3 = CT::Mask<uint64_t>::expand_bit(si, 4);
  382|     32|      const auto bit4 = CT::Mask<uint64_t>::expand_bit(si, 3);
  383|     32|      const auto bit5 = CT::Mask<uint64_t>::expand_bit(si, 2);
  384|     32|      const auto bit6 = CT::Mask<uint64_t>::expand_bit(si, 1);
  385|     32|      const auto bit7 = CT::Mask<uint64_t>::expand_bit(si, 0);
  386|       |
  387|     32|      swap_conditional(c, a, d, b, bit0);
  388|     32|      fmonty(g, h, e, f, c, d, a, b, q);
  389|       |
  390|     32|      swap_conditional(g, e, h, f, bit0 ^ bit1);
  391|     32|      fmonty(c, d, a, b, g, h, e, f, q);
  392|       |
  393|     32|      swap_conditional(c, a, d, b, bit1 ^ bit2);
  394|     32|      fmonty(g, h, e, f, c, d, a, b, q);
  395|       |
  396|     32|      swap_conditional(g, e, h, f, bit2 ^ bit3);
  397|     32|      fmonty(c, d, a, b, g, h, e, f, q);
  398|       |
  399|     32|      swap_conditional(c, a, d, b, bit3 ^ bit4);
  400|     32|      fmonty(g, h, e, f, c, d, a, b, q);
  401|       |
  402|     32|      swap_conditional(g, e, h, f, bit4 ^ bit5);
  403|     32|      fmonty(c, d, a, b, g, h, e, f, q);
  404|       |
  405|     32|      swap_conditional(c, a, d, b, bit5 ^ bit6);
  406|     32|      fmonty(g, h, e, f, c, d, a, b, q);
  407|       |
  408|     32|      swap_conditional(g, e, h, f, bit6 ^ bit7);
  409|     32|      fmonty(c, d, a, b, g, h, e, f, q);
  410|       |
  411|     32|      swap_conditional(c, a, d, b, bit7);
  412|     32|   }
  413|       |
  414|      1|   copy_mem(resultx, c, 5);
  415|      1|   copy_mem(resultz, d, 5);
  416|      1|}
donna.cpp:_ZN5Botan12_GLOBAL__N_116swap_conditionalEPmS1_S1_S1_NS_2CT4MaskImEE:
  346|    288|inline void swap_conditional(uint64_t a[5], uint64_t b[5], uint64_t c[5], uint64_t d[5], CT::Mask<uint64_t> swap) {
  347|  1.72k|   for(size_t i = 0; i < 5; ++i) {
  ------------------
  |  Branch (347:22): [True: 1.44k, False: 288]
  ------------------
  348|  1.44k|      const uint64_t x0 = swap.if_set_return(a[i] ^ b[i]);
  349|  1.44k|      a[i] ^= x0;
  350|  1.44k|      b[i] ^= x0;
  351|       |
  352|  1.44k|      const uint64_t x1 = swap.if_set_return(c[i] ^ d[i]);
  353|  1.44k|      c[i] ^= x1;
  354|  1.44k|      d[i] ^= x1;
  355|  1.44k|   }
  356|    288|}
donna.cpp:_ZN5Botan12_GLOBAL__N_16fmontyEPmS1_S1_S1_S1_S1_S1_S1_PKm:
  308|    256|            const uint64_t q_minus_q_dash[5]) {
  309|    256|   uint64_t zzz[5];
  310|    256|   uint64_t xx[5];
  311|    256|   uint64_t zz[5];
  312|    256|   uint64_t xxprime[5];
  313|    256|   uint64_t zzprime[5];
  314|    256|   uint64_t zzzprime[5];
  315|       |
  316|    256|   fadd_sub(in_q_z, in_q_x);
  317|    256|   fadd_sub(in_q_dash_z, in_q_dash_x);
  318|       |
  319|    256|   fmul(xxprime, in_q_dash_x, in_q_z);
  320|    256|   fmul(zzprime, in_q_dash_z, in_q_x);
  321|       |
  322|    256|   fadd_sub(zzprime, xxprime);
  323|       |
  324|    256|   fsquare(result_q_plus_q_dash_x, xxprime);
  325|    256|   fsquare(zzzprime, zzprime);
  326|    256|   fmul(result_q_plus_q_dash_z, zzzprime, q_minus_q_dash);
  327|       |
  328|    256|   fsquare(xx, in_q_x);
  329|    256|   fsquare(zz, in_q_z);
  330|    256|   fmul(result_two_q_x, xx, zz);
  331|       |
  332|    256|   fdifference_backwards(zz, xx);  // does zz = xx - zz
  333|    256|   fscalar_product(zzz, zz, 121665);
  334|    256|   fsum(zzz, xx);
  335|       |
  336|    256|   fmul(result_two_q_z, zz, zzz);
  337|    256|}
donna.cpp:_ZN5Botan12_GLOBAL__N_18fadd_subEPmS1_:
   76|    768|inline void fadd_sub(uint64_t x[5], uint64_t y[5]) {
   77|       |   // TODO merge these and avoid the tmp array
   78|    768|   uint64_t tmp[5];
   79|    768|   copy_mem(tmp, y, 5);
   80|    768|   fsum(y, x);
   81|    768|   fdifference_backwards(x, tmp);  // does x - z
   82|    768|}
donna.cpp:_ZN5Botan12_GLOBAL__N_17fsquareEPmPKmm:
  169|  1.03k|inline void fsquare(uint64_t out[5], const uint64_t in[5], size_t count = 1) {
  170|  1.03k|   uint64_t r0 = in[0];
  171|  1.03k|   uint64_t r1 = in[1];
  172|  1.03k|   uint64_t r2 = in[2];
  173|  1.03k|   uint64_t r3 = in[3];
  174|  1.03k|   uint64_t r4 = in[4];
  175|       |
  176|  2.31k|   for(size_t i = 0; i != count; ++i) {
  ------------------
  |  Branch (176:22): [True: 1.27k, False: 1.03k]
  ------------------
  177|  1.27k|      const uint64_t d0 = r0 * 2;
  178|  1.27k|      const uint64_t d1 = r1 * 2;
  179|  1.27k|      const uint64_t d2 = r2 * 2 * 19;
  180|  1.27k|      const uint64_t d419 = r4 * 19;
  181|  1.27k|      const uint64_t d4 = d419 * 2;
  182|       |
  183|  1.27k|      const uint128_t t0 = uint128_t(r0) * r0 + uint128_t(d4) * r1 + uint128_t(d2) * (r3);
  184|  1.27k|      uint128_t t1 = uint128_t(d0) * r1 + uint128_t(d4) * r2 + uint128_t(r3) * (r3 * 19);
  185|  1.27k|      uint128_t t2 = uint128_t(d0) * r2 + uint128_t(r1) * r1 + uint128_t(d4) * (r3);
  186|  1.27k|      uint128_t t3 = uint128_t(d0) * r3 + uint128_t(d1) * r2 + uint128_t(r4) * (d419);
  187|  1.27k|      uint128_t t4 = uint128_t(d0) * r4 + uint128_t(d1) * r3 + uint128_t(r2) * (r2);
  188|       |
  189|  1.27k|      r0 = t0 & MASK_63;
  190|  1.27k|      t1 += carry_shift(t0, 51);
  191|  1.27k|      r1 = t1 & MASK_63;
  192|  1.27k|      t2 += carry_shift(t1, 51);
  193|  1.27k|      r2 = t2 & MASK_63;
  194|  1.27k|      t3 += carry_shift(t2, 51);
  195|  1.27k|      r3 = t3 & MASK_63;
  196|  1.27k|      t4 += carry_shift(t3, 51);
  197|  1.27k|      r4 = t4 & MASK_63;
  198|  1.27k|      uint64_t c = carry_shift(t4, 51);
  199|       |
  200|  1.27k|      r0 += c * 19;
  201|  1.27k|      c = r0 >> 51U;
  202|  1.27k|      r0 = r0 & MASK_63;
  203|  1.27k|      r1 += c;
  204|  1.27k|      c = r1 >> 51U;
  205|  1.27k|      r1 = r1 & MASK_63;
  206|  1.27k|      r2 += c;
  207|  1.27k|   }
  208|       |
  209|  1.03k|   out[0] = r0;
  210|  1.03k|   out[1] = r1;
  211|  1.03k|   out[2] = r2;
  212|  1.03k|   out[3] = r3;
  213|  1.03k|   out[4] = r4;
  214|  1.03k|}
donna.cpp:_ZN5Botan12_GLOBAL__N_121fdifference_backwardsEPmPKm:
   64|  1.02k|inline void fdifference_backwards(uint64_t out[5], const uint64_t in[5]) {
   65|       |   /* 152 is 19 << 3 */
   66|  1.02k|   const uint64_t two54m152 = (static_cast<uint64_t>(1) << 54) - 152;
   67|  1.02k|   const uint64_t two54m8 = (static_cast<uint64_t>(1) << 54) - 8;
   68|       |
   69|  1.02k|   out[0] = in[0] + two54m152 - out[0];
   70|  1.02k|   out[1] = in[1] + two54m8 - out[1];
   71|  1.02k|   out[2] = in[2] + two54m8 - out[2];
   72|  1.02k|   out[3] = in[3] + two54m8 - out[3];
   73|  1.02k|   out[4] = in[4] + two54m8 - out[4];
   74|  1.02k|}
donna.cpp:_ZN5Botan12_GLOBAL__N_115fscalar_productEPmPKmm:
   87|    256|inline void fscalar_product(uint64_t out[5], const uint64_t in[5], const uint64_t scalar) {
   88|    256|   uint128_t a = uint128_t(in[0]) * scalar;
   89|    256|   out[0] = a & MASK_63;
   90|       |
   91|    256|   a = uint128_t(in[1]) * scalar + carry_shift(a, 51);
   92|    256|   out[1] = a & MASK_63;
   93|       |
   94|    256|   a = uint128_t(in[2]) * scalar + carry_shift(a, 51);
   95|    256|   out[2] = a & MASK_63;
   96|       |
   97|    256|   a = uint128_t(in[3]) * scalar + carry_shift(a, 51);
   98|    256|   out[3] = a & MASK_63;
   99|       |
  100|    256|   a = uint128_t(in[4]) * scalar + carry_shift(a, 51);
  101|    256|   out[4] = a & MASK_63;
  102|       |
  103|    256|   out[0] += carry_shift(a, 51) * 19;
  104|    256|}
donna.cpp:_ZN5Botan12_GLOBAL__N_14fsumEPmPKm:
   50|  1.02k|inline void fsum(uint64_t out[5], const uint64_t in[5]) {
   51|  1.02k|   out[0] += in[0];
   52|  1.02k|   out[1] += in[1];
   53|  1.02k|   out[2] += in[2];
   54|  1.02k|   out[3] += in[3];
   55|  1.02k|   out[4] += in[4];
   56|  1.02k|}
donna.cpp:_ZN5Botan12_GLOBAL__N_16crecipEPmPKm:
  421|      1|void crecip(uint64_t out[5], const uint64_t z[5]) {
  422|      1|   uint64_t a[5];
  423|      1|   uint64_t b[5];
  424|      1|   uint64_t c[5];
  425|      1|   uint64_t t0[5];
  426|       |
  427|      1|   fsquare(a, z);        // 2
  428|      1|   fsquare(t0, a, 2);    // 8
  429|      1|   fmul(b, t0, z);       // 9
  430|      1|   fmul(a, b, a);        // 11
  431|      1|   fsquare(t0, a);       // 22
  432|      1|   fmul(b, t0, b);       // 2^5 - 2^0 = 31
  433|      1|   fsquare(t0, b, 5);    // 2^10 - 2^5
  434|      1|   fmul(b, t0, b);       // 2^10 - 2^0
  435|      1|   fsquare(t0, b, 10);   // 2^20 - 2^10
  436|      1|   fmul(c, t0, b);       // 2^20 - 2^0
  437|      1|   fsquare(t0, c, 20);   // 2^40 - 2^20
  438|      1|   fmul(t0, t0, c);      // 2^40 - 2^0
  439|      1|   fsquare(t0, t0, 10);  // 2^50 - 2^10
  440|      1|   fmul(b, t0, b);       // 2^50 - 2^0
  441|      1|   fsquare(t0, b, 50);   // 2^100 - 2^50
  442|      1|   fmul(c, t0, b);       // 2^100 - 2^0
  443|      1|   fsquare(t0, c, 100);  // 2^200 - 2^100
  444|      1|   fmul(t0, t0, c);      // 2^200 - 2^0
  445|      1|   fsquare(t0, t0, 50);  // 2^250 - 2^50
  446|      1|   fmul(t0, t0, b);      // 2^250 - 2^0
  447|      1|   fsquare(t0, t0, 5);   // 2^255 - 2^5
  448|      1|   fmul(out, t0, a);     // 2^255 - 21
  449|      1|}
donna.cpp:_ZN5Botan12_GLOBAL__N_14fmulEPmPKmS3_:
  114|  1.29k|inline void fmul(uint64_t out[5], const uint64_t in[5], const uint64_t in2[5]) {
  115|  1.29k|   const auto s0 = uint128_t(in2[0]);
  116|  1.29k|   const auto s1 = uint128_t(in2[1]);
  117|  1.29k|   const auto s2 = uint128_t(in2[2]);
  118|  1.29k|   const auto s3 = uint128_t(in2[3]);
  119|  1.29k|   const auto s4 = uint128_t(in2[4]);
  120|       |
  121|  1.29k|   uint64_t r0 = in[0];
  122|  1.29k|   uint64_t r1 = in[1];
  123|  1.29k|   uint64_t r2 = in[2];
  124|  1.29k|   uint64_t r3 = in[3];
  125|  1.29k|   uint64_t r4 = in[4];
  126|       |
  127|  1.29k|   uint128_t t0 = r0 * s0;
  128|  1.29k|   uint128_t t1 = r0 * s1 + r1 * s0;
  129|  1.29k|   uint128_t t2 = r0 * s2 + r2 * s0 + r1 * s1;
  130|  1.29k|   uint128_t t3 = r0 * s3 + r3 * s0 + r1 * s2 + r2 * s1;
  131|  1.29k|   uint128_t t4 = r0 * s4 + r4 * s0 + r3 * s1 + r1 * s3 + r2 * s2;
  132|       |
  133|  1.29k|   r4 *= 19;
  134|  1.29k|   r1 *= 19;
  135|  1.29k|   r2 *= 19;
  136|  1.29k|   r3 *= 19;
  137|       |
  138|  1.29k|   t0 += r4 * s1 + r1 * s4 + r2 * s3 + r3 * s2;
  139|  1.29k|   t1 += r4 * s2 + r2 * s4 + r3 * s3;
  140|  1.29k|   t2 += r4 * s3 + r3 * s4;
  141|  1.29k|   t3 += r4 * s4;
  142|       |
  143|  1.29k|   r0 = t0 & MASK_63;
  144|  1.29k|   t1 += carry_shift(t0, 51);
  145|  1.29k|   r1 = t1 & MASK_63;
  146|  1.29k|   t2 += carry_shift(t1, 51);
  147|  1.29k|   r2 = t2 & MASK_63;
  148|  1.29k|   t3 += carry_shift(t2, 51);
  149|  1.29k|   r3 = t3 & MASK_63;
  150|  1.29k|   t4 += carry_shift(t3, 51);
  151|  1.29k|   r4 = t4 & MASK_63;
  152|  1.29k|   uint64_t c = carry_shift(t4, 51);
  153|       |
  154|  1.29k|   r0 += c * 19;
  155|  1.29k|   c = r0 >> 51U;
  156|  1.29k|   r0 = r0 & MASK_63;
  157|  1.29k|   r1 += c;
  158|  1.29k|   c = r1 >> 51U;
  159|  1.29k|   r1 = r1 & MASK_63;
  160|  1.29k|   r2 += c;
  161|       |
  162|  1.29k|   out[0] = r0;
  163|  1.29k|   out[1] = r1;
  164|  1.29k|   out[2] = r2;
  165|  1.29k|   out[3] = r3;
  166|  1.29k|   out[4] = r4;
  167|  1.29k|}
donna.cpp:_ZN5Botan12_GLOBAL__N_19fcontractEPhPKm:
  228|      1|inline void fcontract(uint8_t* out, const uint64_t input[5]) {
  229|      1|   auto t0 = uint128_t(input[0]);
  230|      1|   auto t1 = uint128_t(input[1]);
  231|      1|   auto t2 = uint128_t(input[2]);
  232|      1|   auto t3 = uint128_t(input[3]);
  233|      1|   auto t4 = uint128_t(input[4]);
  234|       |
  235|      3|   for(size_t i = 0; i != 2; ++i) {
  ------------------
  |  Branch (235:22): [True: 2, False: 1]
  ------------------
  236|      2|      t1 += t0 >> 51U;
  237|      2|      t0 &= MASK_63;
  238|      2|      t2 += t1 >> 51U;
  239|      2|      t1 &= MASK_63;
  240|      2|      t3 += t2 >> 51U;
  241|      2|      t2 &= MASK_63;
  242|      2|      t4 += t3 >> 51U;
  243|      2|      t3 &= MASK_63;
  244|      2|      t0 += (t4 >> 51U) * 19;
  245|      2|      t4 &= MASK_63;
  246|      2|   }
  247|       |
  248|       |   /* now t is between 0 and 2^255-1, properly carried. */
  249|       |   /* case 1: between 0 and 2^255-20. case 2: between 2^255-19 and 2^255-1. */
  250|       |
  251|      1|   t0 += 19;
  252|       |
  253|      1|   t1 += t0 >> 51U;
  254|      1|   t0 &= MASK_63;
  255|      1|   t2 += t1 >> 51U;
  256|      1|   t1 &= MASK_63;
  257|      1|   t3 += t2 >> 51U;
  258|      1|   t2 &= MASK_63;
  259|      1|   t4 += t3 >> 51U;
  260|      1|   t3 &= MASK_63;
  261|      1|   t0 += (t4 >> 51U) * 19;
  262|      1|   t4 &= MASK_63;
  263|       |
  264|       |   /* now between 19 and 2^255-1 in both cases, and offset by 19. */
  265|       |
  266|      1|   t0 += 0x8000000000000 - 19;
  267|      1|   t1 += 0x8000000000000 - 1;
  268|      1|   t2 += 0x8000000000000 - 1;
  269|      1|   t3 += 0x8000000000000 - 1;
  270|      1|   t4 += 0x8000000000000 - 1;
  271|       |
  272|       |   /* now between 2^255 and 2^256-20, and offset by 2^255. */
  273|       |
  274|      1|   t1 += t0 >> 51U;
  275|      1|   t0 &= MASK_63;
  276|      1|   t2 += t1 >> 51U;
  277|      1|   t1 &= MASK_63;
  278|      1|   t3 += t2 >> 51U;
  279|      1|   t2 &= MASK_63;
  280|      1|   t4 += t3 >> 51U;
  281|      1|   t3 &= MASK_63;
  282|      1|   t4 &= MASK_63;
  283|       |
  284|      1|   store_le(out,
  285|      1|            combine_lower(t0, 0, t1, 51),
  286|      1|            combine_lower(t1, 13, t2, 38),
  287|      1|            combine_lower(t2, 26, t3, 25),
  288|      1|            combine_lower(t3, 39, t4, 12));
  289|      1|}

_ZN5Botan20curve25519_basepointEPhPKh:
   47|      1|void curve25519_basepoint(uint8_t mypublic[32], const uint8_t secret[32]) {
   48|      1|   const uint8_t basepoint[32] = {9};
   49|      1|   curve25519_donna(mypublic, secret, basepoint);
   50|      1|}
_ZN5Botan17X25519_PrivateKeyC1ERKNS_19AlgorithmIdentifierENSt3__14spanIKhLm18446744073709551615EEE:
  125|      9|X25519_PrivateKey::X25519_PrivateKey(const AlgorithmIdentifier& alg_id, std::span<const uint8_t> key_bits) {
  126|       |   // RFC 8410 Section 3: "the parameters MUST be absent".
  127|      9|   if(!alg_id.parameters_are_empty()) {
  ------------------
  |  Branch (127:7): [True: 1, False: 8]
  ------------------
  128|      1|      throw Decoding_Error("Unexpected parameters for X25519 private key");
  129|      1|   }
  130|       |
  131|      8|   secure_vector<uint8_t> secret_key;
  132|      8|   BER_Decoder(key_bits, BER_Decoder::Limits::DER()).decode(secret_key, ASN1_Type::OctetString).discard_remaining();
  133|       |
  134|      8|   size_check(secret_key.size(), "private key");
  135|      8|   load_x25519_keypair(std::move(secret_key), m_public, m_private);
  136|      8|}
x25519.cpp:_ZN5Botan12_GLOBAL__N_110size_checkEmPKc:
   54|      7|void size_check(size_t size, const char* thing) {
   55|      7|   if(size != 32) {
  ------------------
  |  Branch (55:7): [True: 6, False: 1]
  ------------------
   56|      6|      throw Decoding_Error(fmt("Invalid size {} for X25519 {}", size, thing));
   57|      6|   }
   58|      7|}
x25519.cpp:_ZN5Botan12_GLOBAL__N_119load_x25519_keypairENSt3__16vectorIhNS_16secure_allocatorIhEEEERNS1_10shared_ptrIKNS_21X25519_PublicKey_DataEEERNS6_IKNS_22X25519_PrivateKey_DataEEE:
   70|      1|                         std::shared_ptr<const X25519_PrivateKey_Data>& sk_out) {
   71|      1|   BOTAN_ASSERT_NOMSG(secret.size() == 32);
  ------------------
  |  |   77|      1|   do {                                                                     \
  |  |   78|      1|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|      1|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 1]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|      1|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 1]
  |  |  ------------------
  ------------------
   72|      1|   std::vector<uint8_t> pub(32);
   73|      1|   curve25519_basepoint(pub.data(), secret.data());
   74|      1|   pk_out = std::make_shared<const X25519_PublicKey_Data>(std::move(pub));
   75|      1|   sk_out = std::make_shared<const X25519_PrivateKey_Data>(std::move(secret));
   76|      1|}
_ZN5Botan22X25519_PrivateKey_DataC2ENSt3__16vectorIhNS_16secure_allocatorIhEEEE:
   31|      1|      explicit X25519_PrivateKey_Data(secure_vector<uint8_t> key) : m_key(std::move(key)) {}
_ZN5Botan21X25519_PublicKey_DataC2ENSt3__16vectorIhNS1_9allocatorIhEEEE:
   21|      1|      explicit X25519_PublicKey_Data(std::vector<uint8_t> key) : m_key(std::move(key)) {}

_ZN5Botan15allocate_memoryEmm:
   21|  12.7M|BOTAN_MALLOC_FN void* allocate_memory(size_t elems, size_t elem_size) {
   22|  12.7M|   if(elems == 0 || elem_size == 0) {
  ------------------
  |  Branch (22:7): [True: 0, False: 12.7M]
  |  Branch (22:21): [True: 0, False: 12.7M]
  ------------------
   23|      0|      return nullptr;
   24|      0|   }
   25|       |
   26|       |   // Some calloc implementations do not check for overflow (?!?)
   27|  12.7M|   if(!checked_mul(elems, elem_size).has_value()) {
  ------------------
  |  Branch (27:7): [True: 0, False: 12.7M]
  ------------------
   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|  12.7M|   void* ptr = std::calloc(elems, elem_size);  // NOLINT(*-no-malloc,*-owning-memory)
   43|  12.7M|#endif
   44|  12.7M|   if(ptr == nullptr) {
  ------------------
  |  Branch (44:7): [True: 0, False: 12.7M]
  ------------------
   45|      0|      [[unlikely]] throw std::bad_alloc();
   46|      0|   }
   47|  12.7M|   return ptr;
   48|  12.7M|}
_ZN5Botan17deallocate_memoryEPvmm:
   50|  12.7M|void deallocate_memory(void* p, size_t elems, size_t elem_size) {
   51|  12.7M|   if(p == nullptr) {
  ------------------
  |  Branch (51:7): [True: 0, False: 12.7M]
  ------------------
   52|      0|      [[unlikely]] return;
   53|      0|   }
   54|       |
   55|  12.7M|   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|  12.7M|   std::free(p);  // NOLINT(*-no-malloc,*-owning-memory)
   64|  12.7M|}
_ZN5Botan20initialize_allocatorEv:
   66|      1|void initialize_allocator() {
   67|       |#if defined(BOTAN_HAS_LOCKING_ALLOCATOR)
   68|       |   mlock_allocator::instance();
   69|       |#endif
   70|      1|}

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

_ZN5Botan21is_ascii_control_charEc:
  198|     37|bool is_ascii_control_char(char c) {
  199|     37|   const uint8_t b = static_cast<uint8_t>(c);
  200|     37|   return b < 0x20 || b == 0x7F;
  ------------------
  |  Branch (200:11): [True: 13, False: 24]
  |  Branch (200:23): [True: 1, False: 23]
  ------------------
  201|     37|}
_ZN5Botan23format_char_for_displayEc:
  243|     37|std::string format_char_for_display(char c) {
  244|     37|   std::string out;
  245|     37|   out += '\'';
  246|       |
  247|     37|   if(c == '\t') {
  ------------------
  |  Branch (247:7): [True: 0, False: 37]
  ------------------
  248|      0|      out += "\\t";
  249|     37|   } else if(c == '\n') {
  ------------------
  |  Branch (249:14): [True: 0, False: 37]
  ------------------
  250|      0|      out += "\\n";
  251|     37|   } else if(c == '\r') {
  ------------------
  |  Branch (251:14): [True: 0, False: 37]
  ------------------
  252|      0|      out += "\\r";
  253|     37|   } else if(is_ascii_control_char(c) || static_cast<uint8_t>(c) >= 0x80) {
  ------------------
  |  Branch (253:14): [True: 14, False: 23]
  |  Branch (253:42): [True: 13, False: 10]
  ------------------
  254|     27|      const auto b = static_cast<uint8_t>(c);
  255|     27|      out += "\\x";
  256|     27|      out += nibble_to_hex(b >> 4);
  257|     27|      out += nibble_to_hex(b);
  258|     27|   } else {
  259|     10|      out += c;
  260|     10|   }
  261|       |
  262|     37|   out += '\'';
  263|       |
  264|     37|   return out;
  265|     37|}

_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|   604k|size_t DataSource::read_byte(uint8_t& out) {
   28|   604k|   return read(&out, 1);
   29|   604k|}
_ZN5Botan10DataSource9read_byteEv:
   34|  1.02M|std::optional<uint8_t> DataSource::read_byte() {
   35|  1.02M|   uint8_t b = 0;
   36|  1.02M|   if(this->read(&b, 1) == 1) {
  ------------------
  |  Branch (36:7): [True: 1.01M, False: 11.8k]
  ------------------
   37|  1.01M|      return b;
   38|  1.01M|   } else {
   39|  11.8k|      return {};
   40|  11.8k|   }
   41|  1.02M|}
_ZNK5Botan10DataSource9peek_byteERh:
   46|  6.92k|size_t DataSource::peek_byte(uint8_t& out) const {
   47|  6.92k|   return peek(&out, 1, 0);
   48|  6.92k|}
_ZN5Botan17DataSource_Memory4readEPhm:
   73|  1.00M|size_t DataSource_Memory::read(uint8_t out[], size_t length) {
   74|  1.00M|   const size_t got = std::min<size_t>(m_source.size() - m_offset, length);
   75|  1.00M|   copy_mem(out, m_source.data() + m_offset, got);
   76|  1.00M|   m_offset += got;
   77|  1.00M|   return got;
   78|  1.00M|}
_ZN5Botan17DataSource_Memory15check_availableEm:
   80|  14.5k|bool DataSource_Memory::check_available(size_t n) {
   81|  14.5k|   return (n <= (m_source.size() - m_offset));
   82|  14.5k|}
_ZNK5Botan17DataSource_Memory4peekEPhmm:
   87|  13.5k|size_t DataSource_Memory::peek(uint8_t out[], size_t length, size_t peek_offset) const {
   88|  13.5k|   const size_t bytes_left = m_source.size() - m_offset;
   89|  13.5k|   if(peek_offset >= bytes_left) {
  ------------------
  |  Branch (89:7): [True: 0, False: 13.5k]
  ------------------
   90|      0|      return 0;
   91|      0|   }
   92|       |
   93|  13.5k|   const size_t got = std::min(bytes_left - peek_offset, length);
   94|  13.5k|   copy_mem(out, &m_source[m_offset + peek_offset], got);
   95|  13.5k|   return got;
   96|  13.5k|}
_ZNK5Botan17DataSource_Memory11end_of_dataEv:
  101|  13.4k|bool DataSource_Memory::end_of_data() const {
  102|  13.4k|   return (m_offset == m_source.size());
  103|  13.4k|}

_ZN5Botan9ExceptionC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   71|  5.22k|Exception::Exception(std::string_view msg) : m_msg(msg) {}
_ZN5Botan9ExceptionC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEERKSt9exception:
   73|  1.16k|Exception::Exception(std::string_view msg, const std::exception& e) : m_msg(fmt("{} failed with {}", msg, e.what())) {}
_ZN5Botan16Invalid_ArgumentC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   77|     95|Invalid_Argument::Invalid_Argument(std::string_view msg) : Exception(msg) {}
_ZN5Botan14Decoding_ErrorC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  125|  3.32k|Decoding_Error::Decoding_Error(std::string_view name) : Exception(name) {}
_ZN5Botan14Decoding_ErrorC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEES5_:
  128|  1.80k|      Exception(fmt("{}: {}", category, err)) {}
_ZN5Botan14Decoding_ErrorC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEERKSt9exception:
  130|  1.16k|Decoding_Error::Decoding_Error(std::string_view msg, const std::exception& e) : Exception(msg, e) {}

_ZN5Botan19secure_scrub_memoryEPvm:
   25|  12.8M|void secure_scrub_memory(void* ptr, size_t n) {
   26|  12.8M|   return secure_zeroize_buffer(ptr, n);
   27|  12.8M|}
_ZN5Botan21secure_zeroize_bufferEPvm:
   29|  12.8M|void secure_zeroize_buffer(void* ptr, size_t n) {
   30|  12.8M|   if(n == 0) {
  ------------------
  |  Branch (30:7): [True: 78.0k, False: 12.8M]
  ------------------
   31|  78.0k|      return;
   32|  78.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|  12.8M|   ::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|  12.8M|}

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

_ZN5Botan9parse_u32ENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEEb:
   64|     50|std::optional<uint32_t> parse_u32(std::string_view input, bool require_canonical) {
   65|     50|   return parse_decimal_integer<uint32_t>(input, require_canonical);
   66|     50|}
_ZN5Botan9to_u32bitENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
   76|     50|uint32_t to_u32bit(std::string_view input) {
   77|     50|   if(const auto parsed = parse_u32(input)) {
  ------------------
  |  Branch (77:18): [True: 50, False: 0]
  ------------------
   78|     50|      return *parsed;
   79|     50|   } else {
   80|      0|      throw Invalid_Argument(fmt("Failed to parse input '{}' as a 32-bit integer", input));
   81|      0|   }
   82|     50|}
_ZN5Botan8split_onENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEEc:
  141|  3.96k|std::vector<std::string> split_on(std::string_view str, char delim) {
  142|  3.96k|   std::vector<std::string> elems;
  143|  3.96k|   if(str.empty()) {
  ------------------
  |  Branch (143:7): [True: 0, False: 3.96k]
  ------------------
  144|      0|      return elems;
  145|      0|   }
  146|       |
  147|  3.96k|   std::string substr;
  148|  20.5k|   for(const char c : str) {
  ------------------
  |  Branch (148:21): [True: 20.5k, False: 3.96k]
  ------------------
  149|  20.5k|      if(c == delim) {
  ------------------
  |  Branch (149:10): [True: 65, False: 20.5k]
  ------------------
  150|     65|         if(!substr.empty()) {
  ------------------
  |  Branch (150:13): [True: 65, False: 0]
  ------------------
  151|     65|            elems.push_back(substr);
  152|     65|         }
  153|     65|         substr.clear();
  154|  20.5k|      } else {
  155|  20.5k|         substr += c;
  156|  20.5k|      }
  157|  20.5k|   }
  158|       |
  159|  3.96k|   if(substr.empty()) {
  ------------------
  |  Branch (159:7): [True: 0, False: 3.96k]
  ------------------
  160|      0|      throw Invalid_Argument(fmt("Unable to split string '{}", str));
  161|      0|   }
  162|  3.96k|   elems.push_back(substr);
  163|       |
  164|  3.96k|   return elems;
  165|  3.96k|}
parsing.cpp:_ZN5Botan12_GLOBAL__N_116digit_from_asciiEc:
   23|    150|std::optional<size_t> digit_from_ascii(char c) {
   24|    150|   if(c >= '0' && c <= '9') {
  ------------------
  |  Branch (24:7): [True: 150, False: 0]
  |  Branch (24:19): [True: 150, False: 0]
  ------------------
   25|    150|      return c - '0';
   26|    150|   } else {
   27|      0|      return {};
   28|      0|   }
   29|    150|}
parsing.cpp:_ZN5Botan12_GLOBAL__N_121parse_decimal_integerITkNSt3__117unsigned_integralEjEENS2_8optionalIT_EENS2_17basic_string_viewIcNS2_11char_traitsIcEEEEb:
   32|     50|std::optional<T> parse_decimal_integer(std::string_view input, bool require_canonical) {
   33|     50|   if(input.empty() || input.size() > (std::numeric_limits<T>::digits10 + 1)) {
  ------------------
  |  Branch (33:7): [True: 0, False: 50]
  |  Branch (33:24): [True: 0, False: 50]
  ------------------
   34|      0|      return {};
   35|      0|   }
   36|       |
   37|       |   // The canonical encoding of zero is "0"; no other value starts with a zero
   38|     50|   if(require_canonical && input.size() > 1 && input.front() == '0') {
  ------------------
  |  Branch (38:7): [True: 0, False: 50]
  |  Branch (38:28): [True: 0, False: 0]
  |  Branch (38:48): [True: 0, False: 0]
  ------------------
   39|      0|      return {};
   40|      0|   }
   41|       |
   42|     50|   T accum = 0;
   43|       |
   44|    150|   for(const char c : input) {
  ------------------
  |  Branch (44:21): [True: 150, False: 50]
  ------------------
   45|    150|      if(const auto digit = digit_from_ascii(c)) {
  ------------------
  |  Branch (45:21): [True: 150, False: 0]
  ------------------
   46|    150|         if(accum > (std::numeric_limits<T>::max() - static_cast<T>(*digit)) / 10) {
  ------------------
  |  Branch (46:13): [True: 0, False: 150]
  ------------------
   47|      0|            return {};
   48|      0|         }
   49|    150|         accum = accum * 10 + static_cast<T>(*digit);
   50|    150|      } else {
   51|      0|         return {};
   52|      0|      }
   53|    150|   }
   54|       |
   55|     50|   return accum;
   56|     50|}

_ZN5Botan9SCAN_NameC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   61|  3.95k|SCAN_Name::SCAN_Name(std::string_view algo_spec) : m_orig_algo_spec(algo_spec) {
   62|  3.95k|   if(algo_spec.empty()) {
  ------------------
  |  Branch (62:7): [True: 0, False: 3.95k]
  ------------------
   63|      0|      throw Invalid_Argument("Expected algorithm name, got empty string");
   64|      0|   }
   65|       |
   66|       |   // Fast path for a bare name with no arguments or modes (eg "SHA-256"),
   67|       |   // which is the common case. Equivalent to the general parse below, which
   68|       |   // for such input produces a single token and no args/modes.
   69|  3.95k|   if(algo_spec.find_first_of("(),/") == std::string_view::npos) {
  ------------------
  |  Branch (69:7): [True: 3.90k, False: 50]
  ------------------
   70|  3.90k|      m_alg_name = std::string(algo_spec);
   71|  3.90k|      return;
   72|  3.90k|   }
   73|       |
   74|     50|   std::vector<std::pair<size_t, std::string>> name;
   75|     50|   size_t level = 0;
   76|     50|   std::pair<size_t, std::string> accum = std::make_pair(level, "");
   77|       |
   78|     50|   bool expect_token = true;
   79|       |
   80|    500|   for(const char c : algo_spec) {
  ------------------
  |  Branch (80:21): [True: 500, False: 50]
  ------------------
   81|    500|      if(c == '/' || c == ',' || c == '(' || c == ')') {
  ------------------
  |  Branch (81:10): [True: 0, False: 500]
  |  Branch (81:22): [True: 0, False: 500]
  |  Branch (81:34): [True: 50, False: 450]
  |  Branch (81:46): [True: 50, False: 400]
  ------------------
   82|    100|         if(c == '(') {
  ------------------
  |  Branch (82:13): [True: 50, False: 50]
  ------------------
   83|     50|            ++level;
   84|     50|         } else if(c == ')') {
  ------------------
  |  Branch (84:20): [True: 50, False: 0]
  ------------------
   85|     50|            if(level == 0) {
  ------------------
  |  Branch (85:16): [True: 0, False: 50]
  ------------------
   86|      0|               throw Invalid_Algorithm_Name(m_orig_algo_spec);
   87|      0|            }
   88|     50|            --level;
   89|     50|         }
   90|       |
   91|    100|         if(c == '/' && level > 0) {
  ------------------
  |  Branch (91:13): [True: 0, False: 100]
  |  Branch (91:25): [True: 0, False: 0]
  ------------------
   92|      0|            accum.second.push_back(c);
   93|      0|            expect_token = false;
   94|    100|         } else {
   95|    100|            if(expect_token) {
  ------------------
  |  Branch (95:16): [True: 0, False: 100]
  ------------------
   96|      0|               throw Invalid_Algorithm_Name(m_orig_algo_spec);
   97|      0|            }
   98|    100|            if(!accum.second.empty()) {
  ------------------
  |  Branch (98:16): [True: 100, False: 0]
  ------------------
   99|    100|               name.push_back(accum);
  100|    100|            }
  101|    100|            accum = std::make_pair(level, "");
  102|    100|            expect_token = (c != ')');
  103|    100|         }
  104|    400|      } else {
  105|    400|         accum.second.push_back(c);
  106|    400|         expect_token = false;
  107|    400|      }
  108|    500|   }
  109|       |
  110|     50|   if(!accum.second.empty()) {
  ------------------
  |  Branch (110:7): [True: 0, False: 50]
  ------------------
  111|      0|      name.push_back(accum);
  112|      0|   }
  113|       |
  114|     50|   if(level != 0) {
  ------------------
  |  Branch (114:7): [True: 0, False: 50]
  ------------------
  115|      0|      throw Invalid_Algorithm_Name(m_orig_algo_spec);
  116|      0|   }
  117|       |
  118|     50|   if(expect_token) {
  ------------------
  |  Branch (118:7): [True: 0, False: 50]
  ------------------
  119|       |      // A trailing separator with no following token, eg "Foo/" or "Foo,"
  120|      0|      throw Invalid_Algorithm_Name(m_orig_algo_spec);
  121|      0|   }
  122|       |
  123|     50|   if(name.empty()) {
  ------------------
  |  Branch (123:7): [True: 0, False: 50]
  ------------------
  124|      0|      throw Invalid_Algorithm_Name(m_orig_algo_spec);
  125|      0|   }
  126|       |
  127|     50|   m_alg_name = name[0].second;
  128|       |
  129|     50|   bool in_modes = false;
  130|       |
  131|    100|   for(size_t i = 1; i != name.size(); ++i) {
  ------------------
  |  Branch (131:22): [True: 50, False: 50]
  ------------------
  132|     50|      if(name[i].first == 0) {
  ------------------
  |  Branch (132:10): [True: 0, False: 50]
  ------------------
  133|      0|         m_mode_info.push_back(make_arg(name, i));
  134|      0|         in_modes = true;
  135|     50|      } else if(name[i].first == 1 && !in_modes) {
  ------------------
  |  Branch (135:17): [True: 50, False: 0]
  |  Branch (135:39): [True: 50, False: 0]
  ------------------
  136|     50|         m_args.push_back(make_arg(name, i));
  137|     50|      }
  138|     50|   }
  139|     50|}
_ZNK5Botan9SCAN_Name14arg_as_integerEmm:
  155|     50|size_t SCAN_Name::arg_as_integer(size_t i, size_t def_value) const {
  156|     50|   if(i >= arg_count()) {
  ------------------
  |  Branch (156:7): [True: 0, False: 50]
  ------------------
  157|      0|      return def_value;
  158|      0|   }
  159|     50|   return to_u32bit(m_args[i]);
  160|     50|}
scan_name.cpp:_ZN5Botan12_GLOBAL__N_18make_argERKNSt3__16vectorINS1_4pairImNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS7_ISA_EEEEm:
   18|     50|std::string make_arg(const std::vector<std::pair<size_t, std::string>>& name, size_t start) {
   19|     50|   std::string output = name[start].second;
   20|     50|   size_t level = name[start].first;
   21|       |
   22|     50|   size_t paren_depth = 0;
   23|       |
   24|     50|   for(size_t i = start + 1; i != name.size(); ++i) {
  ------------------
  |  Branch (24:30): [True: 0, False: 50]
  ------------------
   25|      0|      if(name[i].first <= name[start].first) {
  ------------------
  |  Branch (25:10): [True: 0, False: 0]
  ------------------
   26|      0|         break;
   27|      0|      }
   28|       |
   29|      0|      if(name[i].first > level) {
  ------------------
  |  Branch (29:10): [True: 0, False: 0]
  ------------------
   30|      0|         for(size_t j = level; j < name[i].first; j++) {
  ------------------
  |  Branch (30:32): [True: 0, False: 0]
  ------------------
   31|      0|            output += "(";
   32|      0|            ++paren_depth;
   33|      0|         }
   34|      0|         output += name[i].second;
   35|      0|      } else if(name[i].first < level) {
  ------------------
  |  Branch (35:17): [True: 0, False: 0]
  ------------------
   36|      0|         for(size_t j = name[i].first; j < level; j++) {
  ------------------
  |  Branch (36:40): [True: 0, False: 0]
  ------------------
   37|      0|            output += ")";
   38|      0|            BOTAN_ASSERT_NOMSG(paren_depth != 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]
  |  |  ------------------
  ------------------
   39|      0|            --paren_depth;
   40|      0|         }
   41|      0|         output += "," + name[i].second;
   42|      0|      } else {
   43|      0|         if(output[output.size() - 1] != '(') {
  ------------------
  |  Branch (43:13): [True: 0, False: 0]
  ------------------
   44|      0|            output += ",";
   45|      0|         }
   46|      0|         output += name[i].second;
   47|      0|      }
   48|       |
   49|      0|      level = name[i].first;
   50|      0|   }
   51|       |
   52|     50|   for(size_t i = 0; i != paren_depth; ++i) {
  ------------------
  |  Branch (52:22): [True: 0, False: 50]
  ------------------
   53|      0|      output += ")";
   54|      0|   }
   55|       |
   56|     50|   return output;
   57|     50|}

_ZN5Botan9SHAKE_XOFC2Em:
   17|  3.90k|      m_keccak({.capacity_bits = capacity, .padding = KeccakPadding::shake()}), m_output_generated(false) {
   18|  3.90k|   BOTAN_ASSERT_NOMSG(capacity == 256 || capacity == 512);
  ------------------
  |  |   77|  3.90k|   do {                                                                     \
  |  |   78|  3.90k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  4.97k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:12): [True: 2.82k, False: 1.07k]
  |  |  |  Branch (79:12): [True: 1.07k, False: 0]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  3.90k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 3.90k]
  |  |  ------------------
  ------------------
   19|  3.90k|}
_ZN5Botan9SHAKE_XOF5resetEv:
   21|    430|void SHAKE_XOF::reset() {
   22|    430|   m_keccak.clear();
   23|    430|   m_output_generated = false;
   24|    430|}
_ZN5Botan9SHAKE_XOF8add_dataENSt3__14spanIKhLm18446744073709551615EEE:
   26|  8.48k|void SHAKE_XOF::add_data(std::span<const uint8_t> input) {
   27|  8.48k|   BOTAN_STATE_CHECK(!m_output_generated);
  ------------------
  |  |   51|  8.48k|   do {                                                         \
  |  |   52|  8.48k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|  8.48k|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 8.48k]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|  8.48k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 8.48k]
  |  |  ------------------
  ------------------
   28|  8.48k|   m_keccak.absorb(input);
   29|  8.48k|}
_ZN5Botan9SHAKE_XOF14generate_bytesENSt3__14spanIhLm18446744073709551615EEE:
   31|   920k|void SHAKE_XOF::generate_bytes(std::span<uint8_t> output) {
   32|   920k|   if(!m_output_generated) {
  ------------------
  |  Branch (32:7): [True: 4.28k, False: 916k]
  ------------------
   33|  4.28k|      m_output_generated = true;
   34|  4.28k|      m_keccak.finish();
   35|  4.28k|   }
   36|       |
   37|   920k|   m_keccak.squeeze(output);
   38|   920k|}

_ZN5Botan3XOF6createENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEES5_:
   28|  3.90k|std::unique_ptr<XOF> XOF::create(std::string_view algo_spec, std::string_view provider) {
   29|  3.90k|   const SCAN_Name req(algo_spec);
   30|       |
   31|  3.90k|   if(!provider.empty() && provider != "base") {
  ------------------
  |  Branch (31:7): [True: 0, False: 3.90k]
  |  Branch (31:28): [True: 0, False: 0]
  ------------------
   32|      0|      return nullptr;  // unknown provider
   33|      0|   }
   34|       |
   35|  3.90k|#if defined(BOTAN_HAS_SHAKE_XOF)
   36|  3.90k|   if(req.algo_name() == "SHAKE-128" && req.arg_count() == 0) {
  ------------------
  |  Branch (36:7): [True: 2.82k, False: 1.07k]
  |  Branch (36:41): [True: 2.82k, False: 0]
  ------------------
   37|  2.82k|      return std::make_unique<SHAKE_128_XOF>();
   38|  2.82k|   }
   39|  1.07k|   if(req.algo_name() == "SHAKE-256" && req.arg_count() == 0) {
  ------------------
  |  Branch (39:7): [True: 1.07k, False: 0]
  |  Branch (39:41): [True: 1.07k, False: 0]
  ------------------
   40|  1.07k|      return std::make_unique<SHAKE_256_XOF>();
   41|  1.07k|   }
   42|      0|#endif
   43|       |
   44|      0|#if defined(BOTAN_HAS_ASCON_XOF128)
   45|      0|   if(req.algo_name() == "Ascon-XOF128" && req.arg_count() == 0) {
  ------------------
  |  Branch (45:7): [True: 0, False: 0]
  |  Branch (45:44): [True: 0, False: 0]
  ------------------
   46|      0|      return std::make_unique<Ascon_XOF128>();
   47|      0|   }
   48|      0|#endif
   49|       |
   50|      0|   return nullptr;
   51|      0|}
_ZN5Botan3XOF15create_or_throwENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEES5_:
   54|  3.90k|std::unique_ptr<XOF> XOF::create_or_throw(std::string_view algo_spec, std::string_view provider) {
   55|  3.90k|   if(auto xof = XOF::create(algo_spec, provider)) {
  ------------------
  |  Branch (55:12): [True: 3.90k, False: 0]
  ------------------
   56|  3.90k|      return xof;
   57|  3.90k|   }
   58|      0|   throw Lookup_Error("XOF", algo_spec, provider);
   59|  3.90k|}
_ZN5Botan3XOF5startENSt3__14spanIKhLm18446744073709551615EEES4_:
   70|  4.28k|void XOF::start(std::span<const uint8_t> salt, std::span<const uint8_t> key) {
   71|  4.28k|   if(!key_spec().valid_keylength(key.size())) {
  ------------------
  |  Branch (71:7): [True: 0, False: 4.28k]
  ------------------
   72|      0|      throw Invalid_Key_Length(name(), key.size());
   73|      0|   }
   74|       |
   75|  4.28k|   if(!valid_salt_length(salt.size())) {
  ------------------
  |  Branch (75:7): [True: 0, False: 4.28k]
  ------------------
   76|      0|      throw Invalid_Argument(fmt("{} cannot accept a salt length of {}", name(), salt.size()));
   77|      0|   }
   78|       |
   79|  4.28k|   m_xof_started = true;
   80|  4.28k|   start_msg(salt, key);
   81|  4.28k|}
_ZN5Botan3XOF9start_msgENSt3__14spanIKhLm18446744073709551615EEES4_:
   83|  4.28k|void XOF::start_msg(std::span<const uint8_t> salt, std::span<const uint8_t> key) {
   84|  4.28k|   BOTAN_UNUSED(salt, key);
  ------------------
  |  |  144|  4.28k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   85|  4.28k|}

