_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|  3.65k|      BigInt cube(const BigInt& x) const { return this->multiply(x, this->square(x)); }
_ZNK5Botan17Barrett_Reduction12modulus_bitsEv:
   71|    862|      size_t modulus_bits() const { return m_modulus_bits; }

_ZN5Botan17ct_expand_top_bitITkNSt3__117unsigned_integralEmEET_S2_:
   28|   385M|BOTAN_FORCE_INLINE constexpr T ct_expand_top_bit(T a) {
   29|   385M|   const T top = CT::value_barrier<T>(a >> (sizeof(T) * 8 - 1));
   30|   385M|   return static_cast<T>(0) - top;
   31|   385M|}
_ZN5Botan10ct_is_zeroITkNSt3__117unsigned_integralEmEET_S2_:
   37|   345M|BOTAN_FORCE_INLINE constexpr T ct_is_zero(T x) {
   38|   345M|   return ct_expand_top_bit<T>(~x & (x - 1));
   39|   345M|}
_ZN5Botan6chooseITkNSt3__117unsigned_integralEmEET_S2_S2_S2_:
  216|   420M|BOTAN_FORCE_INLINE constexpr T choose(T mask, T a, T b) {
  217|       |   //return (mask & a) | (~mask & b);
  218|   420M|   return (b ^ (mask & (a ^ b)));
  219|   420M|}
_ZN5Botan8high_bitITkNSt3__117unsigned_integralEjEEmT_:
   73|  2.23k|BOTAN_FORCE_INLINE constexpr size_t high_bit(T n) {
   74|  2.23k|   size_t hb = 0;
   75|       |
   76|  13.3k|   for(size_t s = 8 * sizeof(T) / 2; s > 0; s /= 2) {
  ------------------
  |  Branch (76:38): [True: 11.1k, False: 2.23k]
  ------------------
   77|       |      // Equivalent to: ((n >> s) == 0) ? 0 : s;
   78|  11.1k|      const size_t z = s - ct_if_is_zero_ret<T>(n >> s, s);
   79|  11.1k|      hb += z;
   80|  11.1k|      n >>= z;
   81|  11.1k|   }
   82|       |
   83|  2.23k|   hb += n;
   84|       |
   85|  2.23k|   return hb;
   86|  2.23k|}
_ZN5Botan17ct_if_is_zero_retITkNSt3__117unsigned_integralEjEEmT_m:
   45|  11.1k|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|  11.1k|   const T a = ~x & (x - 1);
   51|  11.1k|   const size_t a_top = static_cast<size_t>(CT::value_barrier<T>(a >> (sizeof(T) * 8 - 1)));
   52|  11.1k|   const size_t mask = static_cast<size_t>(0) - a_top;
   53|  11.1k|   return mask & s;
   54|  11.1k|}
_ZN5Botan17ct_if_is_zero_retITkNSt3__117unsigned_integralEmEEmT_m:
   45|  3.80M|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|  3.80M|   const T a = ~x & (x - 1);
   51|  3.80M|   const size_t a_top = static_cast<size_t>(CT::value_barrier<T>(a >> (sizeof(T) * 8 - 1)));
   52|  3.80M|   const size_t mask = static_cast<size_t>(0) - a_top;
   53|  3.80M|   return mask & s;
   54|  3.80M|}
_ZN5Botan13is_power_of_2ITkNSt3__117unsigned_integralEmEEbT_:
   62|  44.5k|BOTAN_FORCE_INLINE constexpr bool is_power_of_2(T arg) {
   63|  44.5k|   return (arg != 0) && (arg != 1) && ((arg & static_cast<T>(arg - 1)) == 0);
  ------------------
  |  Branch (63:11): [True: 44.5k, False: 0]
  |  Branch (63:25): [True: 44.5k, False: 0]
  |  Branch (63:39): [True: 27.2k, False: 17.3k]
  ------------------
   64|  44.5k|}
_ZN5Botan8high_bitITkNSt3__117unsigned_integralEmEEmT_:
   73|  84.1k|BOTAN_FORCE_INLINE constexpr size_t high_bit(T n) {
   74|  84.1k|   size_t hb = 0;
   75|       |
   76|   588k|   for(size_t s = 8 * sizeof(T) / 2; s > 0; s /= 2) {
  ------------------
  |  Branch (76:38): [True: 504k, False: 84.1k]
  ------------------
   77|       |      // Equivalent to: ((n >> s) == 0) ? 0 : s;
   78|   504k|      const size_t z = s - ct_if_is_zero_ret<T>(n >> s, s);
   79|   504k|      hb += z;
   80|   504k|      n >>= z;
   81|   504k|   }
   82|       |
   83|  84.1k|   hb += n;
   84|       |
   85|  84.1k|   return hb;
   86|  84.1k|}
_ZN5Botan9ceil_log2ITkNSt3__117unsigned_integralEmEEhT_QltstS2_Li32E:
  142|    903|{
  143|    903|   if(x >> (sizeof(T) * 8 - 1)) {
  ------------------
  |  Branch (143:7): [True: 0, False: 903]
  ------------------
  144|      0|      return sizeof(T) * 8;
  145|      0|   }
  146|       |
  147|    903|   uint8_t result = 0;
  148|    903|   T compare = 1;
  149|       |
  150|  10.5k|   while(compare < x) {
  ------------------
  |  Branch (150:10): [True: 9.67k, False: 903]
  ------------------
  151|  9.67k|      compare <<= 1;
  152|  9.67k|      result++;
  153|  9.67k|   }
  154|       |
  155|    903|   return result;
  156|    903|}
_ZN5Botan10ct_is_zeroITkNSt3__117unsigned_integralEhEET_S2_:
   37|   655k|BOTAN_FORCE_INLINE constexpr T ct_is_zero(T x) {
   38|   655k|   return ct_expand_top_bit<T>(~x & (x - 1));
   39|   655k|}
_ZN5Botan17ct_expand_top_bitITkNSt3__117unsigned_integralEhEET_S2_:
   28|   655k|BOTAN_FORCE_INLINE constexpr T ct_expand_top_bit(T a) {
   29|   655k|   const T top = CT::value_barrier<T>(a >> (sizeof(T) * 8 - 1));
   30|   655k|   return static_cast<T>(0) - top;
   31|   655k|}
_ZN5Botan6chooseITkNSt3__117unsigned_integralEhEET_S2_S2_S2_:
  216|   655k|BOTAN_FORCE_INLINE constexpr T choose(T mask, T a, T b) {
  217|       |   //return (mask & a) | (~mask & b);
  218|   655k|   return (b ^ (mask & (a ^ b)));
  219|   655k|}
_ZN5Botan3ctzITkNSt3__117unsigned_integralEmEEmT_:
  115|   471k|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|   471k|   size_t lb = ct_if_is_zero_ret<T>(n, 1);
  121|       |
  122|  3.29M|   for(size_t s = 8 * sizeof(T) / 2; s > 0; s /= 2) {
  ------------------
  |  Branch (122:38): [True: 2.82M, False: 471k]
  ------------------
  123|  2.82M|      const T range = (static_cast<T>(1) << s) - 1;
  124|       |      // Equivalent to: ((n & range) == 0) ? s : 0;
  125|  2.82M|      const size_t z = ct_if_is_zero_ret<T>(n & range, s);
  126|  2.82M|      lb += z;
  127|  2.82M|      n >>= z;
  128|  2.82M|   }
  129|       |
  130|   471k|   return lb;
  131|   471k|}
_ZN5Botan9ceil_log2ITkNSt3__117unsigned_integralEjEEhT_QltstS2_Li32E:
  142|     56|{
  143|     56|   if(x >> (sizeof(T) * 8 - 1)) {
  ------------------
  |  Branch (143:7): [True: 0, False: 56]
  ------------------
  144|      0|      return sizeof(T) * 8;
  145|      0|   }
  146|       |
  147|     56|   uint8_t result = 0;
  148|     56|   T compare = 1;
  149|       |
  150|    436|   while(compare < x) {
  ------------------
  |  Branch (150:10): [True: 380, False: 56]
  ------------------
  151|    380|      compare <<= 1;
  152|    380|      result++;
  153|    380|   }
  154|       |
  155|     56|   return result;
  156|     56|}
_ZN5Botan12ceil_tobytesITkNSt3__117unsigned_integralEjEET_S2_:
  175|    112|BOTAN_FORCE_INLINE constexpr T ceil_tobytes(T bits) {
  176|    112|   return (bits + 7) / 8;
  177|    112|}
_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|}
_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|   130k|BOTAN_FORCE_INLINE constexpr T ct_expand_top_bit(T a) {
   29|   130k|   const T top = CT::value_barrier<T>(a >> (sizeof(T) * 8 - 1));
   30|   130k|   return static_cast<T>(0) - top;
   31|   130k|}

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

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

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

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

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

_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|     31|{
   93|     31|   if constexpr(std::same_as<detail::AutoDetect, OutR>) {
   94|       |      // Try to auto-detect a reasonable output type given the input ranges
   95|     31|      static_assert(sizeof...(Rs) > 0, "Cannot auto-detect the output type if not a single input range is provided.");
   96|     31|      using candidate_result_t = std::remove_cvref_t<std::tuple_element_t<0, std::tuple<Rs...>>>;
   97|     31|      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|     31|      } 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|     31|         static_assert(
  109|     31|            concepts::reservable_container<candidate_result_t>,
  110|     31|            "First input range has static extent, but a dynamically allocated output range is required. Please explicitly specify a dynamically allocatable output type.");
  111|     31|         return detail::concatenate<candidate_result_t>(std::forward<Rs>(ranges)...);
  112|     31|      }
  113|       |   } else {
  114|       |      // The caller has explicitly specified the output type
  115|       |      return detail::concatenate<OutR>(std::forward<Rs>(ranges)...);
  116|       |   }
  117|     31|}
_ZN5Botan6detail11concatenateITkNS_6ranges14spanable_rangeENSt3__16vectorIhNS3_9allocatorIhEEEETpTkNS2_14spanable_rangeEJS7_RNS_6StrongIS7_NS_13KyberSeedRho_EJEEEEEET_DpOT0_Qoosr8conceptsE20reservable_containerISC_Esr6rangesE25statically_spanable_rangeISC_E:
   33|     31|{
   34|     31|   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|     31|   [[maybe_unused]] auto fill_fn = [&] {
   40|     31|      if constexpr(concepts::reservable_container<OutR>) {
   41|       |         // dynamically allocate the correct result byte length
   42|     31|         const size_t total_size = (ranges.size() + ... + 0);
   43|     31|         result.reserve(total_size);
   44|       |
   45|       |         // fill the result buffer using a back-inserter
   46|     31|         return [&result](auto&& range) {
   47|     31|            std::copy(
   48|     31|               std::ranges::begin(range), std::ranges::end(range), std::back_inserter(unwrap_strong_type(result)));
   49|     31|         };
   50|     31|      } else {
   51|     31|         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|     31|            [[maybe_unused]] constexpr size_t total_size = (decltype(std::span{ranges})::extent + ... + 0);
   55|     31|            static_assert(result.size() == total_size, "size of result buffer does not match the sum of input buffers");
   56|     31|         } else {
   57|       |            // at least one input range has a dynamic extent, so check the total size at runtime
   58|     31|            const size_t total_size = (ranges.size() + ... + 0);
   59|     31|            BOTAN_ARG_CHECK(result.size() == total_size,
   60|     31|                            "result buffer has static extent that does not match the sum of input buffers");
   61|     31|         }
   62|       |
   63|       |         // fill the result buffer and hold the current output-iterator position
   64|     31|         return [itr = std::ranges::begin(result)](auto&& range) mutable {
   65|     31|            std::copy(std::ranges::begin(range), std::ranges::end(range), itr);
   66|     31|            std::advance(itr, std::ranges::size(range));
   67|     31|         };
   68|     31|      }
   69|     31|   }();
   70|       |
   71|       |   // perform the actual concatenation
   72|     31|   (fill_fn(std::forward<Rs>(ranges)), ...);
   73|       |
   74|     31|   return result;
   75|     31|}
_ZZN5Botan6detail11concatenateITkNS_6ranges14spanable_rangeENSt3__16vectorIhNS3_9allocatorIhEEEETpTkNS2_14spanable_rangeEJS7_RNS_6StrongIS7_NS_13KyberSeedRho_EJEEEEEET_DpOT0_Qoosr8conceptsE20reservable_containerISC_Esr6rangesE25statically_spanable_rangeISC_EENKUlvE_clEv:
   39|     31|   [[maybe_unused]] auto fill_fn = [&] {
   40|     31|      if constexpr(concepts::reservable_container<OutR>) {
   41|       |         // dynamically allocate the correct result byte length
   42|     31|         const size_t total_size = (ranges.size() + ... + 0);
   43|     31|         result.reserve(total_size);
   44|       |
   45|       |         // fill the result buffer using a back-inserter
   46|     31|         return [&result](auto&& range) {
   47|     31|            std::copy(
   48|     31|               std::ranges::begin(range), std::ranges::end(range), std::back_inserter(unwrap_strong_type(result)));
   49|     31|         };
   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|     31|   }();
_ZZZN5Botan6detail11concatenateITkNS_6ranges14spanable_rangeENSt3__16vectorIhNS3_9allocatorIhEEEETpTkNS2_14spanable_rangeEJS7_RNS_6StrongIS7_NS_13KyberSeedRho_EJEEEEEET_DpOT0_Qoosr8conceptsE20reservable_containerISC_Esr6rangesE25statically_spanable_rangeISC_EENKUlvE_clEvENKUlOSC_E_clIS7_EEDaSH_:
   46|     31|         return [&result](auto&& range) {
   47|     31|            std::copy(
   48|     31|               std::ranges::begin(range), std::ranges::end(range), std::back_inserter(unwrap_strong_type(result)));
   49|     31|         };
_ZZZN5Botan6detail11concatenateITkNS_6ranges14spanable_rangeENSt3__16vectorIhNS3_9allocatorIhEEEETpTkNS2_14spanable_rangeEJS7_RNS_6StrongIS7_NS_13KyberSeedRho_EJEEEEEET_DpOT0_Qoosr8conceptsE20reservable_containerISC_Esr6rangesE25statically_spanable_rangeISC_EENKUlvE_clEvENKUlOSC_E_clISB_EEDaSH_:
   46|     31|         return [&result](auto&& range) {
   47|     31|            std::copy(
   48|     31|               std::ranges::begin(range), std::ranges::end(range), std::back_inserter(unwrap_strong_type(result)));
   49|     31|         };

_ZN5Botan5CPUID3hasENS_10CPUFeatureE:
   94|  38.7k|      static bool has(CPUID::Feature feat) { return state().has_bit(feat.as_u32()); }
_ZN5Botan5CPUID5stateEv:
  156|  38.7k|      static CPUID_Data& state() {
  157|  38.7k|         static CPUID::CPUID_Data g_cpuid;
  158|  38.7k|         return g_cpuid;
  159|  38.7k|      }
_ZNK5Botan5CPUID10CPUID_Data7has_bitEj:
  144|  38.7k|            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: 5, False: 3]
  ------------------
  120|      5|            return (bit.as_u32() & allowed);
  121|      5|         } else {
  122|      3|            return 0;
  123|      3|         }
  124|      8|      }
cpuid_x86.cpp:_ZN5Botan5CPUID6if_setIZNS0_10CPUID_Data19detect_cpu_featuresEjE18x86_CPUID_7_1_bitsEEjmT_NS_10CPUFeatureEj:
  117|      3|      static inline uint32_t if_set(uint64_t cpuid, T flag, CPUID::Feature bit, uint32_t allowed) {
  118|      3|         const uint64_t flag64 = static_cast<uint64_t>(flag);
  119|      3|         if((cpuid & flag64) == flag64) {
  ------------------
  |  Branch (119:13): [True: 0, False: 3]
  ------------------
  120|      0|            return (bit.as_u32() & allowed);
  121|      3|         } else {
  122|      3|            return 0;
  123|      3|         }
  124|      3|      }

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

_ZN5Botan2CT6Choice9from_maskEm:
  303|  9.05M|      constexpr static Choice from_mask(underlying_type v) { return Choice(v); }
_ZN5Botan2CT6Choice2noEv:
  307|    468|      constexpr static Choice no() { return Choice(0); }
_ZNK5Botan2CT6ChoicentEv:
  309|  3.68M|      constexpr Choice operator!() const { return Choice(~value()); }
_ZNK5Botan2CT6ChoiceaaERKS1_:
  311|  4.61M|      constexpr Choice operator&&(const Choice& other) const { return Choice(value() & other.value()); }
_ZNK5Botan2CT6ChoiceooERKS1_:
  313|   744k|      constexpr Choice operator||(const Choice& other) const { return Choice(value() | other.value()); }
_ZNK5Botan2CT6Choice7as_boolEv:
  329|  3.69M|      constexpr bool as_bool() const { return m_value != 0; }
_ZNK5Botan2CT6Choice5valueEv:
  332|  17.8M|      constexpr underlying_type value() const { return value_barrier(m_value); }
_ZN5Botan2CT6ChoiceC2Em:
  341|  20.7M|      constexpr explicit Choice(underlying_type v) : m_value(CT::value_barrier<underlying_type>(v)) {}
_ZN5Botan2CT4MaskImE7is_zeroEm:
  437|   119M|      static constexpr Mask<T> is_zero(T x) { return Mask<T>(ct_is_zero<T>(value_barrier<T>(x))); }
_ZNK5Botan2CT4MaskImE5valueEv:
  630|   319M|      constexpr T value() const { return value_barrier<T>(m_mask); }
_ZNK5Botan2CT4MaskImEcoEv:
  533|  55.7M|      constexpr Mask<T> operator~() const { return Mask<T>(~value()); }
_ZN5Botan2CT4MaskImE6expandEm:
  392|  55.3M|      static constexpr Mask<T> expand(T v) { return ~Mask<T>::is_zero(value_barrier<T>(v)); }
_ZN5Botan2CT6poisonImEEvPKT_m:
   56|  2.96M|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.96M|   BOTAN_UNUSED(p, n);
  ------------------
  |  |  144|  2.96M|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   64|  2.96M|}
_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|  24.8k|constexpr void poison(const R& r) {
  122|  24.8k|   const std::span s{r};
  123|  24.8k|   poison(s.data(), s.size());
  124|  24.8k|}
_ZN5Botan2CT8unpoisonImEEvPKT_m:
   67|  53.6M|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|  53.6M|   BOTAN_UNUSED(p, n);
  ------------------
  |  |  144|  53.6M|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   75|  53.6M|}
_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|  8.81M|constexpr void unpoison(const R& r) {
  129|  8.81M|   const std::span s{r};
  130|  8.81M|   unpoison(s.data(), s.size());
  131|  8.81M|}
_ZNK5Botan2CT4MaskImE6selectEmm:
  548|  84.0M|      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|  6.81M|constexpr inline CT::Mask<T> all_zeros(const T elem[], size_t len) {
  786|  6.81M|   T sum = 0;
  787|  54.3M|   for(size_t i = 0; i != len; ++i) {
  ------------------
  |  Branch (787:22): [True: 47.5M, False: 6.81M]
  ------------------
  788|  47.5M|      sum |= elem[i];
  789|  47.5M|   }
  790|  6.81M|   return CT::Mask<T>::is_zero(sum);
  791|  6.81M|}
_ZN5Botan2CT4MaskImEC2Em:
  637|   233M|      constexpr explicit Mask(T m) : m_mask(m) {}
_ZNK5Botan2CT4MaskImE7as_boolEv:
  614|   876k|      constexpr bool as_bool() const { return unpoisoned_value() != 0; }
_ZNK5Botan2CT4MaskImE16unpoisoned_valueEv:
  598|  9.92M|      constexpr T unpoisoned_value() const {
  599|  9.92M|         T r = value();
  600|  9.92M|         CT::unpoison(r);
  601|  9.92M|         return r;
  602|  9.92M|      }
_ZN5Botan2CT8unpoisonITkNSt3__18integralEmEEvRKT_:
  112|  31.1M|constexpr void unpoison(const T& p) {
  113|  31.1M|   unpoison(&p, 1);
  114|  31.1M|}
_ZN5Botan2CTanENS0_4MaskImEES2_:
  518|   412k|      friend Mask<T> operator&(Mask<T> x, Mask<T> y) { return Mask<T>(x.value() & y.value()); }
_ZN5Botan2CT4MaskImE8is_equalEmm:
  442|  47.7M|      static constexpr Mask<T> is_equal(T x, T y) {
  443|  47.7M|         const T diff = value_barrier(x) ^ value_barrier(y);
  444|  47.7M|         return Mask<T>::is_zero(diff);
  445|  47.7M|      }
_ZNK5Botan2CT4MaskImE13if_set_returnEm:
  538|  42.8M|      constexpr T if_set_return(T x) const { return value() & x; }
_ZN5Botan2CT4MaskImE5is_ltEmm:
  450|  39.9M|      static constexpr Mask<T> is_lt(T x, T y) {
  451|  39.9M|         T u = x ^ ((x ^ y) | ((x - y) ^ x));
  452|  39.9M|         return Mask<T>::expand_top_bit(u);
  453|  39.9M|      }
_ZN5Botan2CT4MaskImE14expand_top_bitEm:
  415|  40.3M|      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.98M|constexpr inline Mask<T> conditional_copy_mem(T cnd, T* dest, const T* if_set, const T* if_unset, size_t elems) {
  739|  2.98M|   const auto mask = CT::Mask<T>::expand(cnd);
  740|  2.98M|   return CT::conditional_copy_mem(mask, dest, if_set, if_unset, elems);
  741|  2.98M|}
_ZN5Botan2CT20conditional_copy_memImEENS0_4MaskIT_EES4_PS3_PKS3_S7_m:
  732|  2.98M|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.98M|   mask.select_n(dest, if_set, if_unset, elems);
  734|  2.98M|   return mask;
  735|  2.98M|}
_ZNK5Botan2CT4MaskImE8select_nEPmPKmS5_m:
  565|  48.8M|      constexpr void select_n(T output[], const T x[], const T y[], size_t len) const {
  566|  48.8M|         const T mask = value();
  567|   328M|         for(size_t i = 0; i != len; ++i) {
  ------------------
  |  Branch (567:28): [True: 279M, False: 48.8M]
  ------------------
  568|   279M|            output[i] = choose(mask, x[i], y[i]);
  569|   279M|         }
  570|  48.8M|      }
_ZNK5Botan2CT4MaskImE11select_maskES2_S2_:
  559|  17.2M|      Mask<T> select_mask(Mask<T> x, Mask<T> y) const { return Mask<T>(select(x.value(), y.value())); }
_ZN5Botan2CT4MaskImEoRES2_:
  510|   553k|      Mask<T>& operator|=(Mask<T> o) {
  511|   553k|         m_mask |= o.value();
  512|   553k|         return (*this);
  513|   553k|      }
_ZN5Botan2CT4MaskImEaNES2_:
  494|  2.58M|      Mask<T>& operator&=(Mask<T> o) {
  495|  2.58M|         m_mask &= o.value();
  496|  2.58M|         return (*this);
  497|  2.58M|      }
_ZN5Botan2CT4MaskImE11expand_boolEb:
  397|   621k|      static constexpr Mask<T> expand_bool(bool v) { return Mask<T>::expand(static_cast<T>(v)); }
_ZN5Botan2CT4MaskIhE11expand_boolEb:
  397|   655k|      static constexpr Mask<T> expand_bool(bool v) { return Mask<T>::expand(static_cast<T>(v)); }
_ZN5Botan2CT4MaskIhE6expandEh:
  392|   655k|      static constexpr Mask<T> expand(T v) { return ~Mask<T>::is_zero(value_barrier<T>(v)); }
_ZN5Botan2CT4MaskIhE7is_zeroEh:
  437|   655k|      static constexpr Mask<T> is_zero(T x) { return Mask<T>(ct_is_zero<T>(value_barrier<T>(x))); }
_ZN5Botan2CT4MaskIhEC2Eh:
  637|  1.31M|      constexpr explicit Mask(T m) : m_mask(m) {}
_ZNK5Botan2CT4MaskIhEcoEv:
  533|   655k|      constexpr Mask<T> operator~() const { return Mask<T>(~value()); }
_ZNK5Botan2CT4MaskIhE5valueEv:
  630|  1.31M|      constexpr T value() const { return value_barrier<T>(m_mask); }
_ZNK5Botan2CT4MaskIhE6selectEhh:
  548|   655k|      constexpr T select(T x, T y) const { return choose(value(), x, y); }
_ZNK5Botan2CT4MaskImE9as_choiceEv:
  619|  9.05M|      constexpr CT::Choice as_choice() const {
  620|  9.05M|         if constexpr(sizeof(T) >= sizeof(Choice::underlying_type)) {
  621|  9.05M|            return CT::Choice::from_mask(static_cast<Choice::underlying_type>(unpoisoned_value()));
  622|       |         } else {
  623|       |            return CT::Choice::from_int(unpoisoned_value());
  624|       |         }
  625|  9.05M|      }
_ZN5Botan2CT4MaskImE6is_gteEmm:
  468|   357k|      static constexpr Mask<T> is_gte(T x, T y) { return ~Mask<T>::is_lt(x, y); }
_ZN5Botan2CTorENS0_4MaskImEES2_:
  528|   357k|      friend Mask<T> operator|(Mask<T> x, Mask<T> y) { return Mask<T>(x.value() | y.value()); }
_ZN5Botan2CTeoENS0_4MaskImEES2_:
  523|    448|      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.63M|      constexpr static Choice from_int(T v) {
  269|  2.63M|         if constexpr(sizeof(T) <= sizeof(underlying_type)) {
  270|  2.63M|            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.63M|      }
_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.93M|constexpr void poison(const R& r) {
  122|  2.93M|   const std::span s{r};
  123|  2.93M|   poison(s.data(), s.size());
  124|  2.93M|}
_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.93M|constexpr void unpoison(const R& r) {
  129|  2.93M|   const std::span s{r};
  130|  2.93M|   unpoison(s.data(), s.size());
  131|  2.93M|}
_ZN5Botan2CT4MaskImE15if_set_zero_outEPmm:
  575|  3.37M|      constexpr void if_set_zero_out(T buf[], size_t elems) {
  576|  33.7M|         for(size_t i = 0; i != elems; ++i) {
  ------------------
  |  Branch (576:28): [True: 30.3M, False: 3.37M]
  ------------------
  577|  30.3M|            buf[i] = this->if_not_set_return(buf[i]);
  578|  30.3M|         }
  579|  3.37M|      }
_ZNK5Botan2CT4MaskImE17if_not_set_returnEm:
  543|  30.8M|      constexpr T if_not_set_return(T x) const { return ~value() & x; }
_ZN5Botan2CT22conditional_assign_memImEENS0_4MaskIT_EES3_PS3_PKS3_m:
  749|  37.0M|constexpr inline Mask<T> conditional_assign_mem(T cnd, T* dest, const T* src, size_t elems) {
  750|  37.0M|   const auto mask = CT::Mask<T>::expand(cnd);
  751|  37.0M|   mask.select_n(dest, src, dest, elems);
  752|  37.0M|   return mask;
  753|  37.0M|}
_ZN5Botan2CT4MaskImE7clearedEv:
  387|  54.1k|      static constexpr Mask<T> cleared() { return Mask<T>(0); }
_ZN5Botan2CT16driveby_unpoisonITkNS0_12unpoisonableEmEEDcOT_Qsr3stdE21is_rvalue_reference_vIDtfp_EE:
  245|  1.54k|{
  246|  1.54k|   unpoison(v);
  247|  1.54k|   return std::forward<T>(v);
  248|  1.54k|}
_ZNK5Botan2CT6Choice12into_bitmaskImQaasr3stdE17unsigned_integralIT_Entsr3stdE7same_asIbS3_EEES3_v:
  291|  3.48M|      constexpr T into_bitmask() const {
  292|  3.48M|         if constexpr(sizeof(T) <= sizeof(underlying_type)) {
  293|       |            // The inner mask is already |0| or |1| so just truncate
  294|  3.48M|            return static_cast<T>(value());
  295|       |         } else {
  296|       |            return ~ct_is_zero<T>(value());
  297|       |         }
  298|  3.48M|      }
_ZN5Botan2CT6poisonIhEEvPKT_m:
   56|  1.26k|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.26k|   BOTAN_UNUSED(p, n);
  ------------------
  |  |  144|  1.26k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   64|  1.26k|}
pcurves_brainpool256r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES4_E11FieldParamsEEEEES9_EEEEvRKT_:
  138|     96|constexpr void poison(const T& x) {
  139|     96|   x._const_time_poison();
  140|     96|}
pcurves_brainpool256r1.cpp:_ZN5Botan2CT10poison_allITpTkNS0_10poisonableEJNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES3_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  201|     96|constexpr void poison_all(const Ts&... ts) {
  202|     96|   (poison(ts), ...);
  203|     96|}
pcurves_brainpool256r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES3_E11FieldParamsEEEEEEEvRKT_:
  138|    288|constexpr void poison(const T& x) {
  139|    288|   x._const_time_poison();
  140|    288|}
_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.63k|constexpr void poison(const R& r) {
  122|  1.63k|   const std::span s{r};
  123|  1.63k|   poison(s.data(), s.size());
  124|  1.63k|}
pcurves_brainpool256r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES4_E11FieldParamsEEEEES9_EEEEvRKT_:
  143|     96|constexpr void unpoison(const T& x) {
  144|     96|   x._const_time_unpoison();
  145|     96|}
pcurves_brainpool256r1.cpp:_ZN5Botan2CT12unpoison_allITpTkNS0_12unpoisonableEJNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES3_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  207|     96|constexpr void unpoison_all(const Ts&... ts) {
  208|     96|   (unpoison(ts), ...);
  209|     96|}
pcurves_brainpool256r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES3_E11FieldParamsEEEEEEEvRKT_:
  143|    288|constexpr void unpoison(const T& x) {
  144|    288|   x._const_time_unpoison();
  145|    288|}
_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.63k|constexpr void unpoison(const R& r) {
  129|  1.63k|   const std::span s{r};
  130|  1.63k|   unpoison(s.data(), s.size());
  131|  1.63k|}
_ZN5Botan2CT8unpoisonIhEEvPKT_m:
   67|  1.46k|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.46k|   BOTAN_UNUSED(p, n);
  ------------------
  |  |  144|  1.46k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   75|  1.46k|}
_ZN5Botan2CT8is_equalImEENS0_4MaskIT_EEPKS3_S6_m:
  798|  1.72k|constexpr inline CT::Mask<T> is_equal(const T x[], const T y[], size_t len) {
  799|  1.72k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (799:7): [Folded, False: 1.72k]
  ------------------
  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.72k|   } else {
  808|  1.72k|      volatile T difference = 0;
  809|       |
  810|  10.9k|      for(size_t i = 0; i != len; ++i) {
  ------------------
  |  Branch (810:25): [True: 9.22k, False: 1.72k]
  ------------------
  811|  9.22k|         difference = difference | (x[i] ^ y[i]);
  812|  9.22k|      }
  813|       |
  814|  1.72k|      return CT::Mask<T>::is_zero(difference);
  815|  1.72k|   }
  816|  1.72k|}
pcurves_brainpool384r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES4_E11FieldParamsEEEEES9_EEEEvRKT_:
  138|    138|constexpr void poison(const T& x) {
  139|    138|   x._const_time_poison();
  140|    138|}
pcurves_brainpool384r1.cpp:_ZN5Botan2CT10poison_allITpTkNS0_10poisonableEJNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES3_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  201|    138|constexpr void poison_all(const Ts&... ts) {
  202|    138|   (poison(ts), ...);
  203|    138|}
pcurves_brainpool384r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES3_E11FieldParamsEEEEEEEvRKT_:
  138|    414|constexpr void poison(const T& x) {
  139|    414|   x._const_time_poison();
  140|    414|}
_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|    915|constexpr void poison(const R& r) {
  122|    915|   const std::span s{r};
  123|    915|   poison(s.data(), s.size());
  124|    915|}
pcurves_brainpool384r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES4_E11FieldParamsEEEEES9_EEEEvRKT_:
  143|    138|constexpr void unpoison(const T& x) {
  144|    138|   x._const_time_unpoison();
  145|    138|}
pcurves_brainpool384r1.cpp:_ZN5Botan2CT12unpoison_allITpTkNS0_12unpoisonableEJNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES3_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  207|    138|constexpr void unpoison_all(const Ts&... ts) {
  208|    138|   (unpoison(ts), ...);
  209|    138|}
pcurves_brainpool384r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES3_E11FieldParamsEEEEEEEvRKT_:
  143|    414|constexpr void unpoison(const T& x) {
  144|    414|   x._const_time_unpoison();
  145|    414|}
_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|    915|constexpr void unpoison(const R& r) {
  129|    915|   const std::span s{r};
  130|    915|   unpoison(s.data(), s.size());
  131|    915|}
pcurves_brainpool512r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES4_E11FieldParamsEEEEES9_EEEEvRKT_:
  138|    126|constexpr void poison(const T& x) {
  139|    126|   x._const_time_poison();
  140|    126|}
pcurves_brainpool512r1.cpp:_ZN5Botan2CT10poison_allITpTkNS0_10poisonableEJNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES3_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  201|    126|constexpr void poison_all(const Ts&... ts) {
  202|    126|   (poison(ts), ...);
  203|    126|}
pcurves_brainpool512r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES3_E11FieldParamsEEEEEEEvRKT_:
  138|    378|constexpr void poison(const T& x) {
  139|    378|   x._const_time_poison();
  140|    378|}
_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|    378|constexpr void poison(const R& r) {
  122|    378|   const std::span s{r};
  123|    378|   poison(s.data(), s.size());
  124|    378|}
pcurves_brainpool512r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES4_E11FieldParamsEEEEES9_EEEEvRKT_:
  143|    126|constexpr void unpoison(const T& x) {
  144|    126|   x._const_time_unpoison();
  145|    126|}
pcurves_brainpool512r1.cpp:_ZN5Botan2CT12unpoison_allITpTkNS0_12unpoisonableEJNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES3_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  207|    126|constexpr void unpoison_all(const Ts&... ts) {
  208|    126|   (unpoison(ts), ...);
  209|    126|}
pcurves_brainpool512r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES3_E11FieldParamsEEEEEEEvRKT_:
  143|    378|constexpr void unpoison(const T& x) {
  144|    378|   x._const_time_unpoison();
  145|    378|}
_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|    378|constexpr void unpoison(const R& r) {
  129|    378|   const std::span s{r};
  130|    378|   unpoison(s.data(), s.size());
  131|    378|}
_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_6PCurve22GenericProjectivePointEEEvRKT_:
  138|    301|constexpr void poison(const T& x) {
  139|    301|   x._const_time_poison();
  140|    301|}
pcurves_generic.cpp:_ZN5Botan2CT10poison_allITpTkNS0_10poisonableEJNS_6PCurve12_GLOBAL__N_112GenericFieldES4_S4_EQgtsZT_Li0EEEvDpRKT_:
  201|    301|constexpr void poison_all(const Ts&... ts) {
  202|    301|   (poison(ts), ...);
  203|    301|}
pcurves_generic.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_6PCurve12_GLOBAL__N_112GenericFieldEEEvRKT_:
  138|    903|constexpr void poison(const T& x) {
  139|    903|   x._const_time_poison();
  140|    903|}
_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.42k|constexpr void poison(const R& r) {
  122|  1.42k|   const std::span s{r};
  123|  1.42k|   poison(s.data(), s.size());
  124|  1.42k|}
_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_6PCurve22GenericProjectivePointEEEvRKT_:
  143|    301|constexpr void unpoison(const T& x) {
  144|    301|   x._const_time_unpoison();
  145|    301|}
pcurves_generic.cpp:_ZN5Botan2CT12unpoison_allITpTkNS0_12unpoisonableEJNS_6PCurve12_GLOBAL__N_112GenericFieldES4_S4_EQgtsZT_Li0EEEvDpRKT_:
  207|    301|constexpr void unpoison_all(const Ts&... ts) {
  208|    301|   (unpoison(ts), ...);
  209|    301|}
pcurves_generic.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_6PCurve12_GLOBAL__N_112GenericFieldEEEvRKT_:
  143|    903|constexpr void unpoison(const T& x) {
  144|    903|   x._const_time_unpoison();
  145|    903|}
_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.42k|constexpr void unpoison(const R& r) {
  129|  1.42k|   const std::span s{r};
  130|  1.42k|   unpoison(s.data(), s.size());
  131|  1.42k|}
pcurves_secp224r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS6_6ParamsES7_E11FieldParamsEEEEES9_EEEEvRKT_:
  138|    207|constexpr void poison(const T& x) {
  139|    207|   x._const_time_poison();
  140|    207|}
pcurves_secp224r1.cpp:_ZN5Botan2CT10poison_allITpTkNS0_10poisonableEJNS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  201|    207|constexpr void poison_all(const Ts&... ts) {
  202|    207|   (poison(ts), ...);
  203|    207|}
pcurves_secp224r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEEEEvRKT_:
  138|    621|constexpr void poison(const T& x) {
  139|    621|   x._const_time_poison();
  140|    621|}
pcurves_secp224r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS6_6ParamsES7_E11FieldParamsEEEEES9_EEEEvRKT_:
  143|    207|constexpr void unpoison(const T& x) {
  144|    207|   x._const_time_unpoison();
  145|    207|}
pcurves_secp224r1.cpp:_ZN5Botan2CT12unpoison_allITpTkNS0_12unpoisonableEJNS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  207|    207|constexpr void unpoison_all(const Ts&... ts) {
  208|    207|   (unpoison(ts), ...);
  209|    207|}
pcurves_secp224r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEEEEvRKT_:
  143|    621|constexpr void unpoison(const T& x) {
  144|    621|   x._const_time_unpoison();
  145|    621|}
pcurves_secp256k1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS6_6ParamsES7_E11FieldParamsEEEEES9_EEEEvRKT_:
  138|    177|constexpr void poison(const T& x) {
  139|    177|   x._const_time_poison();
  140|    177|}
pcurves_secp256k1.cpp:_ZN5Botan2CT10poison_allITpTkNS0_10poisonableEJNS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  201|    177|constexpr void poison_all(const Ts&... ts) {
  202|    177|   (poison(ts), ...);
  203|    177|}
pcurves_secp256k1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEEEEvRKT_:
  138|    531|constexpr void poison(const T& x) {
  139|    531|   x._const_time_poison();
  140|    531|}
pcurves_secp256k1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS6_6ParamsES7_E11FieldParamsEEEEES9_EEEEvRKT_:
  143|    177|constexpr void unpoison(const T& x) {
  144|    177|   x._const_time_unpoison();
  145|    177|}
pcurves_secp256k1.cpp:_ZN5Botan2CT12unpoison_allITpTkNS0_12unpoisonableEJNS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  207|    177|constexpr void unpoison_all(const Ts&... ts) {
  208|    177|   (unpoison(ts), ...);
  209|    177|}
pcurves_secp256k1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEEEEvRKT_:
  143|    531|constexpr void unpoison(const T& x) {
  144|    531|   x._const_time_unpoison();
  145|    531|}
pcurves_secp256r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS5_9secp256r16ParamsES6_E11FieldParamsEEEEES9_EEEEvRKT_:
  138|     65|constexpr void poison(const T& x) {
  139|     65|   x._const_time_poison();
  140|     65|}
pcurves_secp256r1.cpp:_ZN5Botan2CT10poison_allITpTkNS0_10poisonableEJNS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS4_9secp256r16ParamsES5_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  201|     65|constexpr void poison_all(const Ts&... ts) {
  202|     65|   (poison(ts), ...);
  203|     65|}
pcurves_secp256r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS4_9secp256r16ParamsES5_E11FieldParamsEEEEEEEvRKT_:
  138|    195|constexpr void poison(const T& x) {
  139|    195|   x._const_time_poison();
  140|    195|}
pcurves_secp256r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS5_9secp256r16ParamsES6_E11FieldParamsEEEEES9_EEEEvRKT_:
  143|     65|constexpr void unpoison(const T& x) {
  144|     65|   x._const_time_unpoison();
  145|     65|}
pcurves_secp256r1.cpp:_ZN5Botan2CT12unpoison_allITpTkNS0_12unpoisonableEJNS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS4_9secp256r16ParamsES5_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  207|     65|constexpr void unpoison_all(const Ts&... ts) {
  208|     65|   (unpoison(ts), ...);
  209|     65|}
pcurves_secp256r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS4_9secp256r16ParamsES5_E11FieldParamsEEEEEEEvRKT_:
  143|    195|constexpr void unpoison(const T& x) {
  144|    195|   x._const_time_unpoison();
  145|    195|}
pcurves_secp384r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS5_9secp384r16ParamsES6_E11FieldParamsEEEEES9_EEEEvRKT_:
  138|    167|constexpr void poison(const T& x) {
  139|    167|   x._const_time_poison();
  140|    167|}
pcurves_secp384r1.cpp:_ZN5Botan2CT10poison_allITpTkNS0_10poisonableEJNS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS4_9secp384r16ParamsES5_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  201|    167|constexpr void poison_all(const Ts&... ts) {
  202|    167|   (poison(ts), ...);
  203|    167|}
pcurves_secp384r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS4_9secp384r16ParamsES5_E11FieldParamsEEEEEEEvRKT_:
  138|    501|constexpr void poison(const T& x) {
  139|    501|   x._const_time_poison();
  140|    501|}
pcurves_secp384r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS5_9secp384r16ParamsES6_E11FieldParamsEEEEES9_EEEEvRKT_:
  143|    167|constexpr void unpoison(const T& x) {
  144|    167|   x._const_time_unpoison();
  145|    167|}
pcurves_secp384r1.cpp:_ZN5Botan2CT12unpoison_allITpTkNS0_12unpoisonableEJNS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS4_9secp384r16ParamsES5_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  207|    167|constexpr void unpoison_all(const Ts&... ts) {
  208|    167|   (unpoison(ts), ...);
  209|    167|}
pcurves_secp384r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS4_9secp384r16ParamsES5_E11FieldParamsEEEEEEEvRKT_:
  143|    501|constexpr void unpoison(const T& x) {
  144|    501|   x._const_time_unpoison();
  145|    501|}
pcurves_secp521r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS6_6ParamsES7_E11FieldParamsEEEEES9_EEEEvRKT_:
  138|    174|constexpr void poison(const T& x) {
  139|    174|   x._const_time_poison();
  140|    174|}
pcurves_secp521r1.cpp:_ZN5Botan2CT10poison_allITpTkNS0_10poisonableEJNS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  201|    174|constexpr void poison_all(const Ts&... ts) {
  202|    174|   (poison(ts), ...);
  203|    174|}
pcurves_secp521r1.cpp:_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEEEEvRKT_:
  138|    522|constexpr void poison(const T& x) {
  139|    522|   x._const_time_poison();
  140|    522|}
pcurves_secp521r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS6_6ParamsES7_E11FieldParamsEEEEES9_EEEEvRKT_:
  143|    174|constexpr void unpoison(const T& x) {
  144|    174|   x._const_time_unpoison();
  145|    174|}
pcurves_secp521r1.cpp:_ZN5Botan2CT12unpoison_allITpTkNS0_12unpoisonableEJNS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEESC_SC_EQgtsZT_Li0EEEvDpRKT_:
  207|    174|constexpr void unpoison_all(const Ts&... ts) {
  208|    174|   (unpoison(ts), ...);
  209|    174|}
pcurves_secp521r1.cpp:_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS5_6ParamsES6_E11FieldParamsEEEEEEEvRKT_:
  143|    522|constexpr void unpoison(const T& x) {
  144|    522|   x._const_time_unpoison();
  145|    522|}
_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.55k|constexpr void poison_range(const R& r) {
  182|  24.8k|   for(const auto& v : r) {
  ------------------
  |  Branch (182:22): [True: 24.8k, False: 1.55k]
  ------------------
  183|  24.8k|      poison(v);
  184|  24.8k|   }
  185|  1.55k|}
_ZN5Botan2CT6poisonITkNS0_17custom_poisonableENS_14Montgomery_IntEEEvRKT_:
  138|  24.8k|constexpr void poison(const T& x) {
  139|  24.8k|   x._const_time_poison();
  140|  24.8k|}
_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_14Montgomery_IntEEEvRKT_:
  143|  3.79k|constexpr void unpoison(const T& x) {
  144|  3.79k|   x._const_time_unpoison();
  145|  3.79k|}
_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|   130k|      constexpr T value() const { return value_barrier<T>(m_mask); }
_ZNK5Botan2CT4MaskIjE13if_set_returnEj:
  538|   129k|      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|   337k|constexpr void unpoison(const T& p) {
  113|   337k|   unpoison(&p, 1);
  114|   337k|}
_ZN5Botan2CT8unpoisonIbEEvPKT_m:
   67|   337k|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|   337k|   BOTAN_UNUSED(p, n);
  ------------------
  |  |  144|   337k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   75|   337k|}
_ZN5Botan2CT4MaskIjEC2Ej:
  637|   130k|      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|   337k|{
  246|   337k|   unpoison(v);
  247|   337k|   return std::forward<T>(v);
  248|   337k|}
_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|   129k|      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|    945|constexpr void poison(const T& x) {
  139|    945|   x._const_time_poison();
  140|    945|}
_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|    945|constexpr void poison(const R& r) {
  122|    945|   const std::span s{r};
  123|    945|   poison(s.data(), s.size());
  124|    945|}
_ZN5Botan2CT6poisonIiEEvPKT_m:
   56|    945|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|    945|   BOTAN_UNUSED(p, n);
  ------------------
  |  |  144|    945|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   64|    945|}
_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|     79|constexpr void poison(const R& r) {
  122|     79|   const std::span s{r};
  123|     79|   poison(s.data(), s.size());
  124|     79|}
_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS2_6DomainE0EEEEEvRKT_:
  143|    316|constexpr void unpoison(const T& x) {
  144|    316|   x._const_time_unpoison();
  145|    316|}
_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|    316|constexpr void unpoison_range(const R& r) {
  190|  1.95k|   for(const auto& v : r) {
  ------------------
  |  Branch (190:22): [True: 1.95k, False: 316]
  ------------------
  191|  1.95k|      unpoison(v);
  192|  1.95k|   }
  193|    316|}
_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS2_6DomainE0EEEEEvRKT_:
  143|  1.95k|constexpr void unpoison(const T& x) {
  144|  1.95k|   x._const_time_unpoison();
  145|  1.95k|}
_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.95k|constexpr void unpoison(const R& r) {
  129|  1.95k|   const std::span s{r};
  130|  1.95k|   unpoison(s.data(), s.size());
  131|  1.95k|}
_ZN5Botan2CT8unpoisonIiEEvPKT_m:
   67|  1.95k|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.95k|   BOTAN_UNUSED(p, n);
  ------------------
  |  |  144|  1.95k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   75|  1.95k|}
_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_28Dilithium_PrivateKeyInternalEEEvRKT_:
  143|     79|constexpr void unpoison(const T& x) {
  144|     79|   x._const_time_unpoison();
  145|     79|}
_ZN5Botan2CT12unpoison_allITpTkNS0_12unpoisonableEJNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_15DilithiumSeedK_EJEEENS_8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNSA_6DomainE0EEESE_SE_EQgtsZT_Li0EEEvDpRKT_:
  207|     79|constexpr void unpoison_all(const Ts&... ts) {
  208|     79|   (unpoison(ts), ...);
  209|     79|}
_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|     79|constexpr void unpoison(const R& r) {
  129|     79|   const std::span s{r};
  130|     79|   unpoison(s.data(), s.size());
  131|     79|}
_ZN5Botan2CT8unpoisonINS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_24DilithiumSeedRandomness_EJEEEQrQRKT__Xclgssr5Botan2CTE8unpoisonfL0p_EEEEvRKNS3_8optionalISA_EE:
  160|     79|constexpr void unpoison(const std::optional<T>& x) {
  161|     79|   if(x.has_value()) {
  ------------------
  |  Branch (161:7): [True: 79, False: 0]
  ------------------
  162|     79|      unpoison(*x);
  163|     79|   }
  164|     79|}
_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|     79|constexpr void unpoison(const R& r) {
  129|     79|   const std::span s{r};
  130|     79|   unpoison(s.data(), s.size());
  131|     79|}
_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|     79|constexpr void unpoison(const R& r) {
  129|     79|   const std::span s{r};
  130|     79|   unpoison(s.data(), s.size());
  131|     79|}
_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|     31|constexpr void poison(const R& r) {
  122|     31|   const std::span s{r};
  123|     31|   poison(s.data(), s.size());
  124|     31|}
_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|     31|constexpr void unpoison(const R& r) {
  129|     31|   const std::span s{r};
  130|     31|   unpoison(s.data(), s.size());
  131|     31|}
_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS2_6DomainE1EEEEEvRKT_:
  143|     62|constexpr void unpoison(const T& x) {
  144|     62|   x._const_time_unpoison();
  145|     62|}
_ZN5Botan2CT8unpoisonITkNS0_19custom_unpoisonableENS_8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS2_6DomainE1EEEEEvRKT_:
  143|    204|constexpr void unpoison(const T& x) {
  144|    204|   x._const_time_unpoison();
  145|    204|}
_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|     62|constexpr void unpoison_range(const R& r) {
  190|    204|   for(const auto& v : r) {
  ------------------
  |  Branch (190:22): [True: 204, False: 62]
  ------------------
  191|    204|      unpoison(v);
  192|    204|   }
  193|     62|}
_ZN5Botan2CT8unpoisonIsEEvPKT_m:
   67|    204|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|    204|   BOTAN_UNUSED(p, n);
  ------------------
  |  |  144|    204|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
   75|    204|}
_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|    204|constexpr void unpoison(const R& r) {
  129|    204|   const std::span s{r};
  130|    204|   unpoison(s.data(), s.size());
  131|    204|}
_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|     31|constexpr void unpoison(const R& r) {
  129|     31|   const std::span s{r};
  130|     31|   unpoison(s.data(), s.size());
  131|     31|}
_ZN5Botan2CT12unpoison_allITpTkNS0_12unpoisonableEJNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_20KyberSeedRandomness_EJEEENS_8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNSA_6DomainE1EEESE_EQgtsZT_Li0EEEvDpRKT_:
  207|     31|constexpr void unpoison_all(const Ts&... ts) {
  208|     31|   (unpoison(ts), ...);
  209|     31|}
_ZN5Botan2CT4MaskImE10expand_bitEmm:
  421|    512|      static constexpr Mask<T> expand_bit(T v, size_t bit) {
  422|    512|         return CT::Mask<T>::expand_top_bit(v << (sizeof(v) * 8 - 1 - bit));
  423|    512|      }

_ZN5Botan9Gf448Elem4zeroEv:
   59|      1|      static Gf448Elem zero() { return Gf448Elem(0); }
_ZN5Botan9Gf448Elem3oneEv:
   64|      2|      static Gf448Elem one() { return Gf448Elem(1); }
_ZN5Botan9Gf448Elem5wordsEv:
  120|  2.24k|      std::span<uint64_t, WORDS_448> words() { return m_x; }
_ZNK5Botan9Gf448Elem5wordsEv:
  128|  2.24k|      std::span<const uint64_t, WORDS_448> words() const { return m_x; }

_ZNK5Botan18DilithiumConstants4modeEv:
  162|    166|      DilithiumMode mode() const { return m_mode; }
_ZNK5Botan18DilithiumConstants16public_key_bytesEv:
  152|     79|      size_t public_key_bytes() const { return m_public_key_bytes; }
_ZNK5Botan18DilithiumConstants20symmetric_primitivesEv:
  167|  4.03k|      Dilithium_Symmetric_Primitives_Base& symmetric_primitives() const { return *m_symmetric_primitives; }
_ZN5Botan18DilithiumConstantsC2EOS0_:
   96|    411|      DilithiumConstants(DilithiumConstants&& other) = default;
_ZNK5Botan18DilithiumConstants9is_ml_dsaEv:
  104|    332|      bool is_ml_dsa() const { return m_mode.is_ml_dsa(); }
_ZNK5Botan18DilithiumConstants1kEv:
  123|    909|      uint8_t k() const { return m_k; }
_ZNK5Botan18DilithiumConstants1lEv:
  126|  3.76k|      uint8_t l() const { return m_l; }
_ZNK5Botan18DilithiumConstants13keypair_codecEv:
  169|     87|      Dilithium_Keypair_Codec& keypair_codec() const { return *m_keypair_codec; }
_ZN5Botan18DilithiumConstantsC2ERKS0_:
   94|     79|      DilithiumConstants(const DilithiumConstants& other) : DilithiumConstants(other.m_mode) {}
_ZNK5Botan18DilithiumConstants9is_modernEv:
  100|    166|      bool is_modern() const { return m_mode.is_modern(); }
_ZNK5Botan18DilithiumConstants6is_aesEv:
  102|    166|      bool is_aes() const { return m_mode.is_aes(); }
_ZNK5Botan18DilithiumConstants3etaEv:
  129|    945|      DilithiumEta eta() const { return m_eta; }
_ZNK5Botan18DilithiumConstants21public_key_hash_bytesEv:
  138|    166|      size_t public_key_hash_bytes() const { return m_public_key_hash_bytes; }
_ZNK5Botan18DilithiumConstants26commitment_hash_full_bytesEv:
  141|    166|      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|     79|            m_mode(std::move(mode)),
   43|     79|            m_rho(std::move(rho)),
   44|     79|            m_t1(std::move(t1)),
   45|     79|            m_tr(m_mode.symmetric_primitives().H(raw_pk())) {
   46|     79|         BOTAN_ASSERT_NOMSG(!m_rho.empty());
  ------------------
  |  |   77|     79|   do {                                                                     \
  |  |   78|     79|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|     79|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 79]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|     79|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 79]
  |  |  ------------------
  ------------------
   47|     79|         BOTAN_ASSERT_NOMSG(m_t1.size() > 0);
  ------------------
  |  |   77|     79|   do {                                                                     \
  |  |   78|     79|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|     79|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 79]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|     79|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 79]
  |  |  ------------------
  ------------------
   48|     79|      }
_ZNK5Botan27Dilithium_PublicKeyInternal6raw_pkEv:
   51|     79|      DilithiumSerializedPublicKey raw_pk() const { return Dilithium_Algos::encode_public_key(m_rho, m_t1, m_mode); }
_ZNK5Botan28Dilithium_PrivateKeyInternal20_const_time_unpoisonEv:
  102|     79|      void _const_time_unpoison() const {
  103|     79|         CT::unpoison_all(m_signing_seed, m_s1, m_s2, m_t0);
  104|     79|         CT::unpoison(m_seed);
  105|     79|      }
_ZN5Botan28Dilithium_PrivateKeyInternalC2ENS_18DilithiumConstantsENSt3__18optionalINS_6StrongINS2_6vectorIhNS_16secure_allocatorIhEEEENS_24DilithiumSeedRandomness_EJEEEEENS4_IS8_NS_15DilithiumSeedK_EJEEENS_8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNSE_6DomainE0EEESI_SI_:
   76|     79|            m_mode(std::move(mode)),
   77|     79|            m_seed(std::move(seed)),
   78|     79|            m_signing_seed(std::move(signing_seed)),
   79|     79|            m_t0(std::move(t0)),
   80|     79|            m_s1(std::move(s1)),
   81|     79|            m_s2(std::move(s2)) {}
_ZN5Botan23Dilithium_Keypair_CodecD2Ev:
   27|    166|      virtual ~Dilithium_Keypair_Codec() = default;

_ZN5Botan19DilithiumPolyTraits3nttENSt3__14spanIiLm256EEE:
   50|    439|      static constexpr void ntt(std::span<T, N> coeffs) {
   51|    439|         size_t j = 0;
   52|    439|         size_t k = 0;
   53|       |
   54|  3.95k|         for(size_t len = N / 2; len > 0; len >>= 1) {
  ------------------
  |  Branch (54:34): [True: 3.51k, False: 439]
  ------------------
   55|   115k|            for(size_t start = 0; start < N; start = j + len) {
  ------------------
  |  Branch (55:35): [True: 111k, False: 3.51k]
  ------------------
   56|   111k|               const T zeta = zetas[++k];
   57|   561k|               for(j = start; j < start + len; ++j) {
  ------------------
  |  Branch (57:31): [True: 449k, False: 111k]
  ------------------
   58|       |                  // Zetas contain the montgomery parameter 2^32 mod q
   59|   449k|                  const T t = fqmul(zeta, coeffs[j + len]);
   60|   449k|                  coeffs[j + len] = coeffs[j] - t;
   61|   449k|                  coeffs[j] = coeffs[j] + t;
   62|   449k|               }
   63|   111k|            }
   64|  3.51k|         }
   65|    439|      }
_ZN5Botan19DilithiumPolyTraits29montgomery_reduce_coefficientEl:
   26|  1.84M|      static constexpr T montgomery_reduce_coefficient(T2 a) {
   27|  1.84M|         const T2 t = static_cast<T>(static_cast<T2>(static_cast<T>(a)) * Q_inverse);
   28|  1.84M|         return static_cast<T>((a - static_cast<T2>(t) * Q) >> (sizeof(T) * 8));
   29|  1.84M|      }
_ZN5Botan19DilithiumPolyTraits25poly_pointwise_montgomeryENSt3__14spanIiLm256EEENS2_IKiLm256EEES5_:
  107|  2.93k|                                                      std::span<const T, N> rhs) {
  108|   753k|         for(size_t i = 0; i < N; ++i) {
  ------------------
  |  Branch (108:28): [True: 750k, False: 2.93k]
  ------------------
  109|   750k|            result[i] = fqmul(lhs[i], rhs[i]);
  110|   750k|         }
  111|  2.93k|      }
_ZN5Botan19DilithiumPolyTraits26barrett_reduce_coefficientEi:
   31|   259k|      static constexpr T barrett_reduce_coefficient(T a) {
   32|       |         // 2**22 is roughly Q/2 and 2**23 is roughly Q
   33|   259k|         const T t = (a + (1 << 22)) >> 23;
   34|   259k|         a = a - t * Q;
   35|   259k|         return a;
   36|   259k|      }
_ZN5Botan19DilithiumPolyTraits11inverse_nttENSt3__14spanIiLm256EEE:
   78|    506|      static constexpr void inverse_ntt(std::span<T, N> coeffs) {
   79|    506|         size_t j = 0;
   80|    506|         size_t k = N;
   81|  4.55k|         for(size_t len = 1; len < N; len <<= 1) {
  ------------------
  |  Branch (81:30): [True: 4.04k, False: 506]
  ------------------
   82|   133k|            for(size_t start = 0; start < N; start = j + len) {
  ------------------
  |  Branch (82:35): [True: 129k, False: 4.04k]
  ------------------
   83|   129k|               const T zeta = -zetas[--k];
   84|   647k|               for(j = start; j < start + len; ++j) {
  ------------------
  |  Branch (84:31): [True: 518k, False: 129k]
  ------------------
   85|   518k|                  const T t = coeffs[j];
   86|   518k|                  coeffs[j] = t + coeffs[j + len];
   87|   518k|                  coeffs[j + len] = t - coeffs[j + len];
   88|       |                  // Zetas contain the montgomery parameter 2^32 mod q
   89|   518k|                  coeffs[j + len] = fqmul(zeta, coeffs[j + len]);
   90|   518k|               }
   91|   129k|            }
   92|  4.04k|         }
   93|       |
   94|   129k|         for(auto& coeff : coeffs) {
  ------------------
  |  Branch (94:26): [True: 129k, False: 506]
  ------------------
   95|   129k|            coeff = fqmul(coeff, F_WITH_MONTY_SQUARED);
   96|   129k|         }
   97|    506|      }

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

_ZNK5Botan35Dilithium_Symmetric_Primitives_Base1HENS_10StrongSpanIKNS_6StrongINSt3__16vectorIhNS3_9allocatorIhEEEENS_29DilithiumSerializedPublicKey_EJEEEEE:
  120|     79|      DilithiumHashedPublicKey H(StrongSpan<const DilithiumSerializedPublicKey> pk) const {
  121|     79|         return H_256<DilithiumHashedPublicKey>(m_public_key_hash_bytes, pk);
  122|     79|      }
_ZNK5Botan35Dilithium_Symmetric_Primitives_Base5H_256ITkNS_8concepts21resizable_byte_bufferENS_6StrongINSt3__16vectorIhNS4_9allocatorIhEEEENS_25DilithiumHashedPublicKey_EJEEETpTkNS_6ranges14spanable_rangeEJNS_10StrongSpanIKNS3_IS8_NS_29DilithiumSerializedPublicKey_EJEEEEEEEET_mDpRKT0_:
  178|     79|      OutT H_256(size_t outbytes, const InTs&... ins) const {
  179|     79|         auto xof = XOF::create_or_throw("SHAKE-256");
  180|     79|         (xof->update(ins), ...);
  181|     79|         return xof->output<OutT>(outbytes);
  182|     79|      }
_ZNK5Botan35Dilithium_Symmetric_Primitives_Base1HENS_10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_24DilithiumSeedRandomness_EJEEEEE:
  125|     79|         StrongSpan<const DilithiumSeedRandomness> seed) const {
  126|     79|         auto xof = XOF::create_or_throw("SHAKE-256");
  127|     79|         xof->update(seed);
  128|     79|         if(auto domsep = seed_expansion_domain_separator()) {
  ------------------
  |  Branch (128:18): [True: 79, False: 0]
  ------------------
  129|     79|            xof->update(domsep.value());
  130|     79|         }
  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|     79|         auto rho = xof->output<DilithiumSeedRho>(DilithiumConstants::SEED_RHO_BYTES);
  136|     79|         auto rhoprime = xof->output<DilithiumSeedRhoPrime>(DilithiumConstants::SEED_RHOPRIME_BYTES);
  137|     79|         auto k = xof->output<DilithiumSigningSeedK>(DilithiumConstants::SEED_SIGNING_KEY_BYTES);
  138|       |
  139|     79|         return {std::move(rho), std::move(rhoprime), std::move(k)};
  140|     79|      }
_ZNK5Botan35Dilithium_Symmetric_Primitives_Base1HENS_10StrongSpanIKNS_6StrongINSt3__16vectorIhNS3_9allocatorIhEEEENS_20DilithiumPublicSeed_EJEEEEEt:
  153|  2.93k|      std::unique_ptr<XOF> H(StrongSpan<const DilithiumSeedRho> seed, uint16_t nonce) const {
  154|  2.93k|         return m_xof_adapter->XOF128(seed, nonce);
  155|  2.93k|      }
_ZNK5Botan35Dilithium_Symmetric_Primitives_Base1HENS_10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_22DilithiumSeedRhoPrime_EJEEEEEt:
  157|    945|      std::unique_ptr<XOF> H(StrongSpan<const DilithiumSeedRhoPrime> seed, uint16_t nonce) const {
  158|    945|         return m_xof_adapter->XOF256(seed, nonce);
  159|    945|      }
_ZN5Botan12DilithiumXOFD2Ev:
   86|    166|      virtual ~DilithiumXOF() = default;
_ZN5Botan35Dilithium_Symmetric_Primitives_BaseD2Ev:
  103|    166|      virtual ~Dilithium_Symmetric_Primitives_Base() = default;

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

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

_ZNK5Botan13EC_Group_Data7p_bytesEv:
  205|    338|      size_t p_bytes() const { return (m_p_bits + 7) / 8; }
_ZNK5Botan13EC_Group_Data11order_bytesEv:
  209|  10.1k|      size_t order_bytes() const { return m_order_bytes; }
_ZNK5Botan13EC_Group_Data1pEv:
  169|   722k|      const BigInt& p() const { return m_p; }
_ZNK5Botan13EC_Group_Data1aEv:
  171|    865|      const BigInt& a() const { return m_a; }
_ZNK5Botan13EC_Group_Data1bEv:
  173|    864|      const BigInt& b() const { return m_b; }
_ZNK5Botan13EC_Group_Data5orderEv:
  175|    216|      const BigInt& order() const { return m_order; }
_ZNK5Botan13EC_Group_Data8cofactorEv:
  177|    216|      const BigInt& cofactor() const { return m_cofactor; }
_ZNK5Botan13EC_Group_Data3oidEv:
  165|  4.15k|      const OID& oid() const { return m_oid; }
_ZNK5Botan13EC_Group_Data5curveEv:
  180|  1.45k|      const CurveGFp& curve() const { return m_curve; }
_ZNK5Botan13EC_Group_Data5montyEv:
  184|  13.6M|      const Montgomery_Params& monty() const { return m_monty; }
_ZNK5Botan13EC_Group_Data7monty_aEv:
  186|    109|      const BigInt& monty_a() const { return m_a_r; }
_ZNK5Botan13EC_Group_Data7monty_bEv:
  188|    109|      const BigInt& monty_b() const { return m_b_r; }
_ZNK5Botan13EC_Group_Data7p_wordsEv:
  201|  1.12M|      size_t p_words() const { return m_p_words; }
_ZNK5Botan13EC_Group_Data12a_is_minus_3Ev:
  211|  51.2k|      bool a_is_minus_3() const { return m_a_is_minus_3; }
_ZNK5Botan13EC_Group_Data9a_is_zeroEv:
  213|   301k|      bool a_is_zero() const { return m_a_is_zero; }
_ZNK5Botan13EC_Group_Data6pcurveEv:
  282|  8.19k|      const PCurve::PrimeOrderCurve& pcurve() const {
  283|  8.19k|         BOTAN_ASSERT_NONNULL(m_pcurve);
  ------------------
  |  |  116|  8.19k|   do {                                                                                   \
  |  |  117|  8.19k|      if((ptr) == nullptr) {                                                              \
  |  |  ------------------
  |  |  |  Branch (117:10): [True: 0, False: 8.19k]
  |  |  ------------------
  |  |  118|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                              \
  |  |  119|      0|         Botan::assertion_failure(#ptr " is not null", "", __func__, __FILE__, __LINE__); \
  |  |  120|      0|      }                                                                                   \
  |  |  121|  8.19k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (121:12): [Folded, False: 8.19k]
  |  |  ------------------
  ------------------
  284|  8.19k|         return *m_pcurve;
  285|  8.19k|      }
_ZN5Botan19EC_AffinePoint_DataD2Ev:
   73|  1.59k|      virtual ~EC_AffinePoint_Data() = default;
_ZN5Botan14EC_Scalar_DataD2Ev:
   38|  5.40k|      virtual ~EC_Scalar_Data() = default;

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

_ZNK5Botan17EC_PublicKey_Data5groupEv:
   31|  1.59k|      const EC_Group& group() const { return m_group; }
_ZN5Botan17EC_PublicKey_DataC2ERKNS_8EC_GroupENSt3__14spanIKhLm18446744073709551615EEE:
   29|  1.11k|            EC_PublicKey_Data(group, EC_AffinePoint(group, bytes)) {}

_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|}

_ZN5Botan3fmtIJNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEES7_NS1_17basic_string_viewIcS4_EEDpRKT_:
   53|    377|std::string fmt(std::string_view format, const T&... args) {
   54|    377|   std::ostringstream oss;
   55|    377|   oss.imbue(std::locale::classic());
   56|    377|   fmt_detail::do_fmt(oss, format, args...);
   57|    377|   return oss.str();
   58|    377|}
_ZN5Botan10fmt_detail6do_fmtINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEJEEEvRNS2_19basic_ostringstreamIcS5_S7_EENS2_17basic_string_viewIcS5_EERKT_DpRKT0_:
   25|    377|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|    377|   size_t i = 0;
   27|       |
   28|  6.32k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 6.32k, False: 0]
  ------------------
   29|  6.32k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 377, False: 5.95k]
  |  Branch (29:30): [True: 377, False: 0]
  |  Branch (29:59): [True: 377, False: 0]
  ------------------
   30|    377|         oss << val;
   31|    377|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  5.95k|      } else {
   33|  5.95k|         oss << format[i];
   34|  5.95k|      }
   35|       |
   36|  5.95k|      i += 1;
   37|  5.95k|   }
   38|    377|}
_ZN5Botan10fmt_detail6do_fmtERNSt3__119basic_ostringstreamIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_17basic_string_viewIcS4_EE:
   20|  13.2k|inline void do_fmt(std::ostringstream& oss, std::string_view format) {
   21|  13.2k|   oss << format;
   22|  13.2k|}
_ZN5Botan3fmtIJNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEEEENS1_12basic_stringIcS4_NS1_9allocatorIcEEEES5_DpRKT_:
   53|  8.00k|std::string fmt(std::string_view format, const T&... args) {
   54|  8.00k|   std::ostringstream oss;
   55|  8.00k|   oss.imbue(std::locale::classic());
   56|  8.00k|   fmt_detail::do_fmt(oss, format, args...);
   57|  8.00k|   return oss.str();
   58|  8.00k|}
_ZN5Botan10fmt_detail6do_fmtINSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEJEEEvRNS2_19basic_ostringstreamIcS5_NS2_9allocatorIcEEEES6_RKT_DpRKT0_:
   25|  9.93k|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|  9.93k|   size_t i = 0;
   27|       |
   28|   100k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 100k, False: 0]
  ------------------
   29|   100k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 9.93k, False: 90.6k]
  |  Branch (29:30): [True: 9.93k, False: 0]
  |  Branch (29:59): [True: 9.93k, False: 0]
  ------------------
   30|  9.93k|         oss << val;
   31|  9.93k|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  90.6k|      } else {
   33|  90.6k|         oss << format[i];
   34|  90.6k|      }
   35|       |
   36|  90.6k|      i += 1;
   37|  90.6k|   }
   38|  9.93k|}
_ZN5Botan3fmtIJNS_3OIDEEEENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS2_17basic_string_viewIcS5_EEDpRKT_:
   53|  1.88k|std::string fmt(std::string_view format, const T&... args) {
   54|  1.88k|   std::ostringstream oss;
   55|  1.88k|   oss.imbue(std::locale::classic());
   56|  1.88k|   fmt_detail::do_fmt(oss, format, args...);
   57|  1.88k|   return oss.str();
   58|  1.88k|}
_ZN5Botan10fmt_detail6do_fmtINS_3OIDEJEEEvRNSt3__119basic_ostringstreamIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS3_17basic_string_viewIcS6_EERKT_DpRKT0_:
   25|  1.88k|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|  1.88k|   size_t i = 0;
   27|       |
   28|  43.3k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 43.3k, False: 0]
  ------------------
   29|  43.3k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 1.88k, False: 41.4k]
  |  Branch (29:30): [True: 1.88k, False: 0]
  |  Branch (29:59): [True: 1.88k, False: 0]
  ------------------
   30|  1.88k|         oss << val;
   31|  1.88k|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  41.4k|      } else {
   33|  41.4k|         oss << format[i];
   34|  41.4k|      }
   35|       |
   36|  41.4k|      i += 1;
   37|  41.4k|   }
   38|  1.88k|}
_ZN5Botan3fmtIJPKcS2_S2_EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS3_17basic_string_viewIcS6_EEDpRKT_:
   53|      2|std::string fmt(std::string_view format, const T&... args) {
   54|      2|   std::ostringstream oss;
   55|      2|   oss.imbue(std::locale::classic());
   56|      2|   fmt_detail::do_fmt(oss, format, args...);
   57|      2|   return oss.str();
   58|      2|}
_ZN5Botan10fmt_detail6do_fmtIPKcJS3_S3_EEEvRNSt3__119basic_ostringstreamIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_17basic_string_viewIcS7_EERKT_DpRKT0_:
   25|      2|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|      2|   size_t i = 0;
   27|       |
   28|      2|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 2, False: 0]
  ------------------
   29|      2|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 2, False: 0]
  |  Branch (29:30): [True: 2, False: 0]
  |  Branch (29:59): [True: 2, False: 0]
  ------------------
   30|      2|         oss << val;
   31|      2|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|      2|      } else {
   33|      0|         oss << format[i];
   34|      0|      }
   35|       |
   36|      0|      i += 1;
   37|      0|   }
   38|      2|}
_ZN5Botan10fmt_detail6do_fmtIPKcJS3_EEEvRNSt3__119basic_ostringstreamIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_17basic_string_viewIcS7_EERKT_DpRKT0_:
   25|      2|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|      2|   size_t i = 0;
   27|       |
   28|     10|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 10, False: 0]
  ------------------
   29|     10|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 2, False: 8]
  |  Branch (29:30): [True: 2, False: 0]
  |  Branch (29:59): [True: 2, False: 0]
  ------------------
   30|      2|         oss << val;
   31|      2|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|      8|      } else {
   33|      8|         oss << format[i];
   34|      8|      }
   35|       |
   36|      8|      i += 1;
   37|      8|   }
   38|      2|}
_ZN5Botan10fmt_detail6do_fmtIPKcJEEEvRNSt3__119basic_ostringstreamIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_17basic_string_viewIcS7_EERKT_DpRKT0_:
   25|  1.02k|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|  1.02k|   size_t i = 0;
   27|       |
   28|  14.3k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 14.3k, False: 0]
  ------------------
   29|  14.3k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 1.02k, False: 13.2k]
  |  Branch (29:30): [True: 1.02k, False: 0]
  |  Branch (29:59): [True: 1.02k, False: 0]
  ------------------
   30|  1.02k|         oss << val;
   31|  1.02k|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  13.2k|      } else {
   33|  13.2k|         oss << format[i];
   34|  13.2k|      }
   35|       |
   36|  13.2k|      i += 1;
   37|  13.2k|   }
   38|  1.02k|}
_ZN5Botan10fmt_detail6do_fmtINSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEJS6_EEEvRNS2_19basic_ostringstreamIcS5_NS2_9allocatorIcEEEES6_RKT_DpRKT0_:
   25|  1.92k|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|  1.92k|   size_t i = 0;
   27|       |
   28|  1.92k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 1.92k, False: 0]
  ------------------
   29|  1.92k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 1.92k, False: 0]
  |  Branch (29:30): [True: 1.92k, False: 0]
  |  Branch (29:59): [True: 1.92k, False: 0]
  ------------------
   30|  1.92k|         oss << val;
   31|  1.92k|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  1.92k|      } else {
   33|      0|         oss << format[i];
   34|      0|      }
   35|       |
   36|      0|      i += 1;
   37|      0|   }
   38|  1.92k|}
_ZN5Botan3fmtIJNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEPKcEEENS1_12basic_stringIcS4_NS1_9allocatorIcEEEES5_DpRKT_:
   53|  1.01k|std::string fmt(std::string_view format, const T&... args) {
   54|  1.01k|   std::ostringstream oss;
   55|  1.01k|   oss.imbue(std::locale::classic());
   56|  1.01k|   fmt_detail::do_fmt(oss, format, args...);
   57|  1.01k|   return oss.str();
   58|  1.01k|}
_ZN5Botan10fmt_detail6do_fmtINSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEJPKcEEEvRNS2_19basic_ostringstreamIcS5_NS2_9allocatorIcEEEES6_RKT_DpRKT0_:
   25|  1.01k|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|  1.01k|   size_t i = 0;
   27|       |
   28|  1.01k|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 1.01k, False: 0]
  ------------------
   29|  1.01k|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 1.01k, False: 0]
  |  Branch (29:30): [True: 1.01k, False: 0]
  |  Branch (29:59): [True: 1.01k, False: 0]
  ------------------
   30|  1.01k|         oss << val;
   31|  1.01k|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|  1.01k|      } else {
   33|      0|         oss << format[i];
   34|      0|      }
   35|       |
   36|      0|      i += 1;
   37|      0|   }
   38|  1.01k|}
_ZN5Botan3fmtIJNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEES5_EEENS1_12basic_stringIcS4_NS1_9allocatorIcEEEES5_DpRKT_:
   53|  1.92k|std::string fmt(std::string_view format, const T&... args) {
   54|  1.92k|   std::ostringstream oss;
   55|  1.92k|   oss.imbue(std::locale::classic());
   56|  1.92k|   fmt_detail::do_fmt(oss, format, args...);
   57|  1.92k|   return oss.str();
   58|  1.92k|}
_ZN5Botan3fmtIJNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEjEEENS1_12basic_stringIcS4_NS1_9allocatorIcEEEES5_DpRKT_:
   53|     33|std::string fmt(std::string_view format, const T&... args) {
   54|     33|   std::ostringstream oss;
   55|     33|   oss.imbue(std::locale::classic());
   56|     33|   fmt_detail::do_fmt(oss, format, args...);
   57|     33|   return oss.str();
   58|     33|}
_ZN5Botan10fmt_detail6do_fmtINSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEJjEEEvRNS2_19basic_ostringstreamIcS5_NS2_9allocatorIcEEEES6_RKT_DpRKT0_:
   25|     33|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|     33|   size_t i = 0;
   27|       |
   28|     33|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 33, False: 0]
  ------------------
   29|     33|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 33, False: 0]
  |  Branch (29:30): [True: 33, False: 0]
  |  Branch (29:59): [True: 33, False: 0]
  ------------------
   30|     33|         oss << val;
   31|     33|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|     33|      } else {
   33|      0|         oss << format[i];
   34|      0|      }
   35|       |
   36|      0|      i += 1;
   37|      0|   }
   38|     33|}
_ZN5Botan10fmt_detail6do_fmtIjJEEEvRNSt3__119basic_ostringstreamIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS2_17basic_string_viewIcS5_EERKT_DpRKT0_:
   25|     33|void do_fmt(std::ostringstream& oss, std::string_view format, const T& val, const Ts&... rest) {
   26|     33|   size_t i = 0;
   27|       |
   28|     99|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 99, False: 0]
  ------------------
   29|     99|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 33, False: 66]
  |  Branch (29:30): [True: 33, False: 0]
  |  Branch (29:59): [True: 33, False: 0]
  ------------------
   30|     33|         oss << val;
   31|     33|         return do_fmt(oss, format.substr(i + 2), rest...);
   32|     66|      } else {
   33|     66|         oss << format[i];
   34|     66|      }
   35|       |
   36|     66|      i += 1;
   37|     66|   }
   38|     33|}
_ZN5Botan3fmtIJmPKcEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS3_17basic_string_viewIcS6_EEDpRKT_:
   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_fmtImJPKcEEEvRNSt3__119basic_ostringstreamIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_17basic_string_viewIcS7_EERKT_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|     70|   while(i < format.size()) {
  ------------------
  |  Branch (28:10): [True: 70, False: 0]
  ------------------
   29|     70|      if(format[i] == '{' && (format.size() > (i + 1)) && format.at(i + 1) == '}') {
  ------------------
  |  Branch (29:10): [True: 5, False: 65]
  |  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|     65|      } else {
   33|     65|         oss << format[i];
   34|     65|      }
   35|       |
   36|     65|      i += 1;
   37|     65|   }
   38|      5|}

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

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

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

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

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

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

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

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

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

_ZN5Botan11make_uint16Ehh:
   92|    352|inline constexpr uint16_t make_uint16(uint8_t i0, uint8_t i1) {
   93|    352|   return static_cast<uint16_t>((static_cast<uint16_t>(i0) << 8) | i1);
   94|    352|}
_ZN5Botan11make_uint32Ehhhh:
  104|   750k|inline constexpr uint32_t make_uint32(uint8_t i0, uint8_t i1, uint8_t i2, uint8_t i3) {
  105|   750k|   return ((static_cast<uint32_t>(i0) << 24) | (static_cast<uint32_t>(i1) << 16) | (static_cast<uint32_t>(i2) << 8) |
  106|   750k|           (static_cast<uint32_t>(i3)));
  107|   750k|}
_ZN5Botan12get_byte_varImEEhmT_:
   69|  47.7k|inline constexpr uint8_t get_byte_var(size_t byte_num, T input) {
   70|  47.7k|   return static_cast<uint8_t>(input >> (((~byte_num) & (sizeof(T) - 1)) << 3));
   71|  47.7k|}
_ZN5Botan8store_beINS_6detail10AutoDetectEJRKmPhEEEDaDpOT0_:
  745|  5.61k|inline constexpr auto store_be(ParamTs&&... params) {
  746|  5.61k|   return detail::store_any<std::endian::big, ModifierT>(std::forward<ParamTs>(params)...);
  747|  5.61k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS0_20unsigned_integralishEmQoosr3stdE7same_asIS4_T0_Esr3stdE7same_asIT1_S5_EEEvS6_Ph:
  711|  5.61k|inline constexpr void store_any(T in, uint8_t out[]) {
  712|       |   // asserts that *out points to enough bytes to write into
  713|  5.61k|   store_any<endianness, InT>(in, std::span<uint8_t, sizeof(T)>(out, sizeof(T)));
  714|  5.61k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS0_20unsigned_integralishEmTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm8EEEQsr3stdE7same_asIS4_T0_EEEvT1_OT2_:
  646|  5.61k|inline constexpr void store_any(T in, OutR&& out_range) {
  647|  5.61k|   store_any<endianness, T>(in, std::forward<OutR>(out_range));
  648|  5.61k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm8EEEQnt15custom_storableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEEvS9_OT1_:
  525|  46.0k|inline constexpr void store_any(WrappedInT wrapped_in, OutR&& out_range) {
  526|  46.0k|   const auto in = detail::unwrap_strong_type_or_enum(wrapped_in);
  527|  46.0k|   using InT = decltype(in);
  528|  46.0k|   ranges::assert_exact_byte_length<sizeof(in)>(out_range);
  529|  46.0k|   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|  46.0k|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (534:7): [Folded, False: 46.0k]
  ------------------
  535|      0|      return fallback_store_any<endianness, InT>(in, std::forward<OutR>(out_range));
  536|  46.0k|   } 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|  46.0k|      } else {
  542|  46.0k|         static_assert(opposite(endianness) == std::endian::native);
  543|  46.0k|         typecast_copy(out, reverse_bytes(in));
  544|  46.0k|      }
  545|  46.0k|   }
  546|  46.0k|}
_ZN5Botan6detail26unwrap_strong_type_or_enumITkNS0_20unsigned_integralishEmEEDaT_:
  190|  46.0k|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|  46.0k|   } else {
  195|  46.0k|      return Botan::unwrap_strong_type(t);
  196|  46.0k|   }
  197|  46.0k|}
_ZN5Botan7load_beImJNSt3__14spanIKhLm8EEEEEEDaDpOT0_:
  504|   133k|inline constexpr auto load_be(ParamTs&&... params) {
  505|   133k|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|   133k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_:
  278|   146k|inline constexpr WrappedOutT load_any(InR&& in_range) {
  279|   146k|   using OutT = detail::wrapped_type<WrappedOutT>;
  280|   146k|   ranges::assert_exact_byte_length<sizeof(OutT)>(in_range);
  281|       |
  282|   146k|   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|   146k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  287|   146k|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|   146k|      } else {
  289|   146k|         const std::span in{in_range};
  290|   146k|         if constexpr(sizeof(OutT) == 1) {
  291|   146k|            return static_cast<OutT>(in[0]);
  292|   146k|         } else if constexpr(endianness == std::endian::native) {
  293|   146k|            return typecast_copy<OutT>(in);
  294|   146k|         } else {
  295|   146k|            static_assert(opposite(endianness) == std::endian::native);
  296|   146k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|   146k|         }
  298|   146k|      }
  299|   146k|   }());
  300|   146k|}
_ZN5Botan6detail24wrap_strong_type_or_enumITkNS0_20unsigned_integralishEmTkNSt3__117unsigned_integralEmEEDaT0_:
  200|   229k|constexpr auto wrap_strong_type_or_enum(T t) {
  201|       |   if constexpr(std::is_enum_v<OutT>) {
  202|       |      return static_cast<OutT>(t);
  203|   229k|   } else {
  204|   229k|      return Botan::wrap_strong_type<OutT>(t);
  205|   229k|   }
  206|   229k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_ENKUlvE_clEv:
  282|   146k|   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|   146k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (286:10): [Folded, False: 146k]
  ------------------
  287|      0|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|   146k|      } else {
  289|   146k|         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|   146k|         } else {
  295|   146k|            static_assert(opposite(endianness) == std::endian::native);
  296|   146k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|   146k|         }
  298|   146k|      }
  299|   146k|   }());
_ZN5Botan7load_beImJRNSt3__15arrayIhLm8EEEEEEDaDpOT0_:
  504|  30.6k|inline constexpr auto load_be(ParamTs&&... params) {
  505|  30.6k|   return detail::load_any<std::endian::big, OutT>(std::forward<ParamTs>(params)...);
  506|  30.6k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEERNS2_5arrayIhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_:
  278|  30.6k|inline constexpr WrappedOutT load_any(InR&& in_range) {
  279|  30.6k|   using OutT = detail::wrapped_type<WrappedOutT>;
  280|  30.6k|   ranges::assert_exact_byte_length<sizeof(OutT)>(in_range);
  281|       |
  282|  30.6k|   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|  30.6k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  287|  30.6k|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  30.6k|      } else {
  289|  30.6k|         const std::span in{in_range};
  290|  30.6k|         if constexpr(sizeof(OutT) == 1) {
  291|  30.6k|            return static_cast<OutT>(in[0]);
  292|  30.6k|         } else if constexpr(endianness == std::endian::native) {
  293|  30.6k|            return typecast_copy<OutT>(in);
  294|  30.6k|         } else {
  295|  30.6k|            static_assert(opposite(endianness) == std::endian::native);
  296|  30.6k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  30.6k|         }
  298|  30.6k|      }
  299|  30.6k|   }());
  300|  30.6k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEERNS2_5arrayIhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_ENKUlvE_clEv:
  282|  30.6k|   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|  30.6k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (286:10): [Folded, False: 30.6k]
  ------------------
  287|      0|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  30.6k|      } else {
  289|  30.6k|         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|  30.6k|         } else {
  295|  30.6k|            static_assert(opposite(endianness) == std::endian::native);
  296|  30.6k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  30.6k|         }
  298|  30.6k|      }
  299|  30.6k|   }());
_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.3k|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, Ts... ins) {
  583|  40.3k|   ranges::assert_exact_byte_length<(sizeof(Ts) + ...)>(out);
  584|  40.3k|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|  40.3k|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|  40.3k|      off += sizeof(T);
  587|  40.3k|   };
  588|       |
  589|  40.3k|   (store_one(std::span{out}, ins), ...);
  590|  40.3k|}
_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.3k|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|  40.3k|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|  40.3k|      off += sizeof(T);
  587|  40.3k|   };
_ZN5Botan8store_beINS_6detail10AutoDetectEJRNSt3__14spanIhLm32EEERNS3_5arrayImLm4EEEEEEDaDpOT0_:
  745|  1.39k|inline constexpr auto store_be(ParamTs&&... params) {
  746|  1.39k|   return detail::store_any<std::endian::big, ModifierT>(std::forward<ParamTs>(params)...);
  747|  1.39k|}
_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.39k|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  604|  1.39k|   ranges::assert_equal_byte_lengths(out, in);
  605|  1.39k|   using element_type = std::ranges::range_value_t<InR>;
  606|       |
  607|  1.39k|   auto store_elementwise = [&] {
  608|  1.39k|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|  1.39k|      std::span<uint8_t> out_s(out);
  610|  1.39k|      for(auto in_elem : in) {
  611|  1.39k|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|  1.39k|         out_s = out_s.subspan(bytes_per_element);
  613|  1.39k|      }
  614|  1.39k|   };
  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.39k|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (619:7): [Folded, False: 1.39k]
  ------------------
  620|      0|      store_elementwise();
  621|  1.39k|   } else {
  622|       |      if constexpr(endianness == std::endian::native && !custom_storable<element_type>) {
  623|       |         typecast_copy(out, in);
  624|  1.39k|      } else {
  625|  1.39k|         store_elementwise();
  626|  1.39k|      }
  627|  1.39k|   }
  628|  1.39k|}
_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.39k|   auto store_elementwise = [&] {
  608|  1.39k|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|  1.39k|      std::span<uint8_t> out_s(out);
  610|  5.57k|      for(auto in_elem : in) {
  ------------------
  |  Branch (610:24): [True: 5.57k, False: 1.39k]
  ------------------
  611|  5.57k|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|  5.57k|         out_s = out_s.subspan(bytes_per_element);
  613|  5.57k|      }
  614|  1.39k|   };
_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|}
_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|}
_ZN5Botan6detail8load_anyILNSt3__16endianE57005ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_:
  278|  47.5k|inline constexpr WrappedOutT load_any(InR&& in_range) {
  279|  47.5k|   using OutT = detail::wrapped_type<WrappedOutT>;
  280|  47.5k|   ranges::assert_exact_byte_length<sizeof(OutT)>(in_range);
  281|       |
  282|  47.5k|   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|  47.5k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  287|  47.5k|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  47.5k|      } else {
  289|  47.5k|         const std::span in{in_range};
  290|  47.5k|         if constexpr(sizeof(OutT) == 1) {
  291|  47.5k|            return static_cast<OutT>(in[0]);
  292|  47.5k|         } else if constexpr(endianness == std::endian::native) {
  293|  47.5k|            return typecast_copy<OutT>(in);
  294|  47.5k|         } else {
  295|  47.5k|            static_assert(opposite(endianness) == std::endian::native);
  296|  47.5k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  47.5k|         }
  298|  47.5k|      }
  299|  47.5k|   }());
  300|  47.5k|}
_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.71k|      for(auto in_elem : in) {
  ------------------
  |  Branch (610:24): [True: 7.71k, False: 1.28k]
  ------------------
  611|  7.71k|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|  7.71k|         out_s = out_s.subspan(bytes_per_element);
  613|  7.71k|      }
  614|  1.28k|   };
_ZN5Botan8store_beINS_6detail10AutoDetectEJRNSt3__14spanIhLm64EEERNS3_5arrayImLm8EEEEEEDaDpOT0_:
  745|    529|inline constexpr auto store_be(ParamTs&&... params) {
  746|    529|   return detail::store_any<std::endian::big, ModifierT>(std::forward<ParamTs>(params)...);
  747|    529|}
_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|    529|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  604|    529|   ranges::assert_equal_byte_lengths(out, in);
  605|    529|   using element_type = std::ranges::range_value_t<InR>;
  606|       |
  607|    529|   auto store_elementwise = [&] {
  608|    529|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|    529|      std::span<uint8_t> out_s(out);
  610|    529|      for(auto in_elem : in) {
  611|    529|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|    529|         out_s = out_s.subspan(bytes_per_element);
  613|    529|      }
  614|    529|   };
  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|    529|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (619:7): [Folded, False: 529]
  ------------------
  620|      0|      store_elementwise();
  621|    529|   } else {
  622|       |      if constexpr(endianness == std::endian::native && !custom_storable<element_type>) {
  623|       |         typecast_copy(out, in);
  624|    529|      } else {
  625|    529|         store_elementwise();
  626|    529|      }
  627|    529|   }
  628|    529|}
_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|    529|   auto store_elementwise = [&] {
  608|    529|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|    529|      std::span<uint8_t> out_s(out);
  610|  4.23k|      for(auto in_elem : in) {
  ------------------
  |  Branch (610:24): [True: 4.23k, False: 529]
  ------------------
  611|  4.23k|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|  4.23k|         out_s = out_s.subspan(bytes_per_element);
  613|  4.23k|      }
  614|    529|   };
_ZN5Botan8store_beINS_6detail10AutoDetectEJRNSt3__15arrayImLm9EEEEEEDaDpOT0_:
  745|  2.11k|inline constexpr auto store_be(ParamTs&&... params) {
  746|  2.11k|   return detail::store_any<std::endian::big, ModifierT>(std::forward<ParamTs>(params)...);
  747|  2.11k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges14spanable_rangeERNS2_5arrayImLm9EEEQoooosr3stdE7same_asIS4_T0_Eaasr6rangesE25statically_spanable_rangeIS9_Esr3stdE21default_initializableIS9_Esr8conceptsE21resizable_byte_bufferIS9_EEEDaOT1_:
  663|  2.11k|inline constexpr auto store_any(InR&& in_range) {
  664|  2.11k|   auto out = []([[maybe_unused]] const auto& in) {
  665|  2.11k|      if constexpr(std::same_as<AutoDetect, OutR>) {
  666|  2.11k|         if constexpr(ranges::statically_spanable_range<InR>) {
  667|  2.11k|            constexpr size_t bytes = decltype(std::span{in})::extent * sizeof(std::ranges::range_value_t<InR>);
  668|  2.11k|            return std::array<uint8_t, bytes>();
  669|  2.11k|         } else {
  670|  2.11k|            static_assert(
  671|  2.11k|               !std::same_as<AutoDetect, OutR>,
  672|  2.11k|               "cannot infer a suitable result container type from the given parameters at compile time, please specify it explicitly");
  673|  2.11k|         }
  674|  2.11k|      } else if constexpr(concepts::resizable_byte_buffer<OutR>) {
  675|  2.11k|         return OutR(std::span{in}.size_bytes());
  676|  2.11k|      } else {
  677|  2.11k|         return OutR{};
  678|  2.11k|      }
  679|  2.11k|   }(in_range);
  680|       |
  681|  2.11k|   store_any<endianness, std::ranges::range_value_t<InR>>(out, std::forward<InR>(in_range));
  682|  2.11k|   return out;
  683|  2.11k|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges14spanable_rangeERNS2_5arrayImLm9EEEQoooosr3stdE7same_asIS4_T0_Eaasr6rangesE25statically_spanable_rangeIS9_Esr3stdE21default_initializableIS9_Esr8conceptsE21resizable_byte_bufferIS9_EEEDaOT1_ENKUlRKT_E_clIS7_EEDaSE_:
  664|  2.11k|   auto out = []([[maybe_unused]] const auto& in) {
  665|  2.11k|      if constexpr(std::same_as<AutoDetect, OutR>) {
  666|  2.11k|         if constexpr(ranges::statically_spanable_range<InR>) {
  667|  2.11k|            constexpr size_t bytes = decltype(std::span{in})::extent * sizeof(std::ranges::range_value_t<InR>);
  668|  2.11k|            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|  2.11k|   }(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|  2.11k|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  604|  2.11k|   ranges::assert_equal_byte_lengths(out, in);
  605|  2.11k|   using element_type = std::ranges::range_value_t<InR>;
  606|       |
  607|  2.11k|   auto store_elementwise = [&] {
  608|  2.11k|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|  2.11k|      std::span<uint8_t> out_s(out);
  610|  2.11k|      for(auto in_elem : in) {
  611|  2.11k|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|  2.11k|         out_s = out_s.subspan(bytes_per_element);
  613|  2.11k|      }
  614|  2.11k|   };
  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.11k|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (619:7): [Folded, False: 2.11k]
  ------------------
  620|      0|      store_elementwise();
  621|  2.11k|   } else {
  622|       |      if constexpr(endianness == std::endian::native && !custom_storable<element_type>) {
  623|       |         typecast_copy(out, in);
  624|  2.11k|      } else {
  625|  2.11k|         store_elementwise();
  626|  2.11k|      }
  627|  2.11k|   }
  628|  2.11k|}
_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|  2.11k|   auto store_elementwise = [&] {
  608|  2.11k|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|  2.11k|      std::span<uint8_t> out_s(out);
  610|  19.0k|      for(auto in_elem : in) {
  ------------------
  |  Branch (610:24): [True: 19.0k, False: 2.11k]
  ------------------
  611|  19.0k|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|  19.0k|         out_s = out_s.subspan(bytes_per_element);
  613|  19.0k|      }
  614|  2.11k|   };
_ZN5Botan8store_beINS_6detail10AutoDetectEJRNSt3__15arrayImLm4EEEEEEDaDpOT0_:
  745|    949|inline constexpr auto store_be(ParamTs&&... params) {
  746|    949|   return detail::store_any<std::endian::big, ModifierT>(std::forward<ParamTs>(params)...);
  747|    949|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges14spanable_rangeERNS2_5arrayImLm4EEEQoooosr3stdE7same_asIS4_T0_Eaasr6rangesE25statically_spanable_rangeIS9_Esr3stdE21default_initializableIS9_Esr8conceptsE21resizable_byte_bufferIS9_EEEDaOT1_:
  663|    949|inline constexpr auto store_any(InR&& in_range) {
  664|    949|   auto out = []([[maybe_unused]] const auto& in) {
  665|    949|      if constexpr(std::same_as<AutoDetect, OutR>) {
  666|    949|         if constexpr(ranges::statically_spanable_range<InR>) {
  667|    949|            constexpr size_t bytes = decltype(std::span{in})::extent * sizeof(std::ranges::range_value_t<InR>);
  668|    949|            return std::array<uint8_t, bytes>();
  669|    949|         } else {
  670|    949|            static_assert(
  671|    949|               !std::same_as<AutoDetect, OutR>,
  672|    949|               "cannot infer a suitable result container type from the given parameters at compile time, please specify it explicitly");
  673|    949|         }
  674|    949|      } else if constexpr(concepts::resizable_byte_buffer<OutR>) {
  675|    949|         return OutR(std::span{in}.size_bytes());
  676|    949|      } else {
  677|    949|         return OutR{};
  678|    949|      }
  679|    949|   }(in_range);
  680|       |
  681|    949|   store_any<endianness, std::ranges::range_value_t<InR>>(out, std::forward<InR>(in_range));
  682|    949|   return out;
  683|    949|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges14spanable_rangeERNS2_5arrayImLm4EEEQoooosr3stdE7same_asIS4_T0_Eaasr6rangesE25statically_spanable_rangeIS9_Esr3stdE21default_initializableIS9_Esr8conceptsE21resizable_byte_bufferIS9_EEEDaOT1_ENKUlRKT_E_clIS7_EEDaSE_:
  664|    949|   auto out = []([[maybe_unused]] const auto& in) {
  665|    949|      if constexpr(std::same_as<AutoDetect, OutR>) {
  666|    949|         if constexpr(ranges::statically_spanable_range<InR>) {
  667|    949|            constexpr size_t bytes = decltype(std::span{in})::extent * sizeof(std::ranges::range_value_t<InR>);
  668|    949|            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|    949|   }(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|    949|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  604|    949|   ranges::assert_equal_byte_lengths(out, in);
  605|    949|   using element_type = std::ranges::range_value_t<InR>;
  606|       |
  607|    949|   auto store_elementwise = [&] {
  608|    949|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|    949|      std::span<uint8_t> out_s(out);
  610|    949|      for(auto in_elem : in) {
  611|    949|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|    949|         out_s = out_s.subspan(bytes_per_element);
  613|    949|      }
  614|    949|   };
  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|    949|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (619:7): [Folded, False: 949]
  ------------------
  620|      0|      store_elementwise();
  621|    949|   } else {
  622|       |      if constexpr(endianness == std::endian::native && !custom_storable<element_type>) {
  623|       |         typecast_copy(out, in);
  624|    949|      } else {
  625|    949|         store_elementwise();
  626|    949|      }
  627|    949|   }
  628|    949|}
_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|    949|   auto store_elementwise = [&] {
  608|    949|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|    949|      std::span<uint8_t> out_s(out);
  610|  3.79k|      for(auto in_elem : in) {
  ------------------
  |  Branch (610:24): [True: 3.79k, False: 949]
  ------------------
  611|  3.79k|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|  3.79k|         out_s = out_s.subspan(bytes_per_element);
  613|  3.79k|      }
  614|    949|   };
_ZN5Botan8store_beINS_6detail10AutoDetectEJRKhEEEDaDpOT0_:
  745|    204|inline constexpr auto store_be(ParamTs&&... params) {
  746|    204|   return detail::store_any<std::endian::big, ModifierT>(std::forward<ParamTs>(params)...);
  747|    204|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETpTkNS0_20unsigned_integralishEJhEQ10all_same_vIDpT1_EEEDaS6_:
  696|    204|inline constexpr auto store_any(Ts... ins) {
  697|    204|   return store_any<endianness, OutR>(std::array{ins...});
  698|    204|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges14spanable_rangeENS2_5arrayIhLm1EEEQoooosr3stdE7same_asIS4_T0_Eaasr6rangesE25statically_spanable_rangeIS8_Esr3stdE21default_initializableIS8_Esr8conceptsE21resizable_byte_bufferIS8_EEEDaOT1_:
  663|    204|inline constexpr auto store_any(InR&& in_range) {
  664|    204|   auto out = []([[maybe_unused]] const auto& in) {
  665|    204|      if constexpr(std::same_as<AutoDetect, OutR>) {
  666|    204|         if constexpr(ranges::statically_spanable_range<InR>) {
  667|    204|            constexpr size_t bytes = decltype(std::span{in})::extent * sizeof(std::ranges::range_value_t<InR>);
  668|    204|            return std::array<uint8_t, bytes>();
  669|    204|         } else {
  670|    204|            static_assert(
  671|    204|               !std::same_as<AutoDetect, OutR>,
  672|    204|               "cannot infer a suitable result container type from the given parameters at compile time, please specify it explicitly");
  673|    204|         }
  674|    204|      } else if constexpr(concepts::resizable_byte_buffer<OutR>) {
  675|    204|         return OutR(std::span{in}.size_bytes());
  676|    204|      } else {
  677|    204|         return OutR{};
  678|    204|      }
  679|    204|   }(in_range);
  680|       |
  681|    204|   store_any<endianness, std::ranges::range_value_t<InR>>(out, std::forward<InR>(in_range));
  682|    204|   return out;
  683|    204|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges14spanable_rangeENS2_5arrayIhLm1EEEQoooosr3stdE7same_asIS4_T0_Eaasr6rangesE25statically_spanable_rangeIS8_Esr3stdE21default_initializableIS8_Esr8conceptsE21resizable_byte_bufferIS8_EEEDaOT1_ENKUlRKT_E_clIS7_EEDaSD_:
  664|    204|   auto out = []([[maybe_unused]] const auto& in) {
  665|    204|      if constexpr(std::same_as<AutoDetect, OutR>) {
  666|    204|         if constexpr(ranges::statically_spanable_range<InR>) {
  667|    204|            constexpr size_t bytes = decltype(std::span{in})::extent * sizeof(std::ranges::range_value_t<InR>);
  668|    204|            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|    204|   }(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|    204|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  604|    204|   ranges::assert_equal_byte_lengths(out, in);
  605|    204|   using element_type = std::ranges::range_value_t<InR>;
  606|       |
  607|    204|   auto store_elementwise = [&] {
  608|    204|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|    204|      std::span<uint8_t> out_s(out);
  610|    204|      for(auto in_elem : in) {
  611|    204|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|    204|         out_s = out_s.subspan(bytes_per_element);
  613|    204|      }
  614|    204|   };
  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|    204|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (619:7): [Folded, False: 204]
  ------------------
  620|      0|      store_elementwise();
  621|    204|   } else {
  622|       |      if constexpr(endianness == std::endian::native && !custom_storable<element_type>) {
  623|       |         typecast_copy(out, in);
  624|    204|      } else {
  625|    204|         store_elementwise();
  626|    204|      }
  627|    204|   }
  628|    204|}
_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|    204|   auto store_elementwise = [&] {
  608|    204|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|    204|      std::span<uint8_t> out_s(out);
  610|    204|      for(auto in_elem : in) {
  ------------------
  |  Branch (610:24): [True: 204, False: 204]
  ------------------
  611|    204|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|    204|         out_s = out_s.subspan(bytes_per_element);
  613|    204|      }
  614|    204|   };
_ZN5Botan6detail9store_anyILNSt3__16endianE64206EhTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm1EEETpTkNS0_20unsigned_integralishEJhEQaagtsZT2_Li0Eooaasr3stdE7same_asINS0_10AutoDetectET0_E10all_same_vIDpT2_Eaa20unsigned_integralishIS9_E10all_same_vIS9_SB_EEEvOT1_SB_:
  582|    204|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, Ts... ins) {
  583|    204|   ranges::assert_exact_byte_length<(sizeof(Ts) + ...)>(out);
  584|    204|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|    204|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|    204|      off += sizeof(T);
  587|    204|   };
  588|       |
  589|    204|   (store_one(std::span{out}, ins), ...);
  590|    204|}
_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|    204|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|    204|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|    204|      off += sizeof(T);
  587|    204|   };
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEhTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm1EEEQnt15custom_storableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEEvS9_OT1_:
  525|    204|inline constexpr void store_any(WrappedInT wrapped_in, OutR&& out_range) {
  526|    204|   const auto in = detail::unwrap_strong_type_or_enum(wrapped_in);
  527|    204|   using InT = decltype(in);
  528|    204|   ranges::assert_exact_byte_length<sizeof(in)>(out_range);
  529|    204|   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|    204|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (534:7): [Folded, False: 204]
  ------------------
  535|      0|      return fallback_store_any<endianness, InT>(in, std::forward<OutR>(out_range));
  536|    204|   } else {
  537|    204|      if constexpr(sizeof(InT) == 1) {
  538|    204|         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|    204|   }
  546|    204|}
_ZN5Botan6detail26unwrap_strong_type_or_enumITkNS0_20unsigned_integralishEhEEDaT_:
  190|    204|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|    204|   } else {
  195|    204|      return Botan::unwrap_strong_type(t);
  196|    204|   }
  197|    204|}
_ZN5Botan6detail24wrap_strong_type_or_enumITkNS0_20unsigned_integralishEjTkNSt3__117unsigned_integralEjEEDaT0_:
  200|  62.9k|constexpr auto wrap_strong_type_or_enum(T t) {
  201|       |   if constexpr(std::is_enum_v<OutT>) {
  202|       |      return static_cast<OutT>(t);
  203|  62.9k|   } else {
  204|  62.9k|      return Botan::wrap_strong_type<OutT>(t);
  205|  62.9k|   }
  206|  62.9k|}
_ZN5Botan6detail24wrap_strong_type_or_enumITkNS0_20unsigned_integralishEtTkNSt3__117unsigned_integralEtEEDaT0_:
  200|  2.93k|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.93k|   } else {
  204|  2.93k|      return Botan::wrap_strong_type<OutT>(t);
  205|  2.93k|   }
  206|  2.93k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ETkNS0_20unsigned_integralishEtTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm2EEEQnt15custom_storableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEEvS9_OT1_:
  525|    352|inline constexpr void store_any(WrappedInT wrapped_in, OutR&& out_range) {
  526|    352|   const auto in = detail::unwrap_strong_type_or_enum(wrapped_in);
  527|    352|   using InT = decltype(in);
  528|    352|   ranges::assert_exact_byte_length<sizeof(in)>(out_range);
  529|    352|   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|    352|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (534:7): [Folded, False: 352]
  ------------------
  535|      0|      return fallback_store_any<endianness, InT>(in, std::forward<OutR>(out_range));
  536|    352|   } 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|    352|      } else {
  542|    352|         static_assert(opposite(endianness) == std::endian::native);
  543|    352|         typecast_copy(out, reverse_bytes(in));
  544|    352|      }
  545|    352|   }
  546|    352|}
_ZN5Botan6detail26unwrap_strong_type_or_enumITkNS0_20unsigned_integralishEtEEDaT_:
  190|    352|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|    352|   } else {
  195|    352|      return Botan::unwrap_strong_type(t);
  196|    352|   }
  197|    352|}
_ZN5Botan6detail9store_anyILNSt3__16endianE57005ETkNS0_20unsigned_integralishEmTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm8EEEQnt15custom_storableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEEvS9_OT1_:
  525|      8|inline constexpr void store_any(WrappedInT wrapped_in, OutR&& out_range) {
  526|      8|   const auto in = detail::unwrap_strong_type_or_enum(wrapped_in);
  527|      8|   using InT = decltype(in);
  528|      8|   ranges::assert_exact_byte_length<sizeof(in)>(out_range);
  529|      8|   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|      8|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (534:7): [Folded, False: 8]
  ------------------
  535|      0|      return fallback_store_any<endianness, InT>(in, std::forward<OutR>(out_range));
  536|      8|   } else {
  537|       |      if constexpr(sizeof(InT) == 1) {
  538|       |         out[0] = static_cast<uint8_t>(in);
  539|      8|      } else if constexpr(endianness == std::endian::native) {
  540|      8|         typecast_copy(out, in);
  541|       |      } else {
  542|       |         static_assert(opposite(endianness) == std::endian::native);
  543|       |         typecast_copy(out, reverse_bytes(in));
  544|       |      }
  545|      8|   }
  546|      8|}
_ZN5Botan6detail8load_anyILNSt3__16endianE57005ETkNS0_20unsigned_integralishEjTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm4EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_:
  278|  5.88k|inline constexpr WrappedOutT load_any(InR&& in_range) {
  279|  5.88k|   using OutT = detail::wrapped_type<WrappedOutT>;
  280|  5.88k|   ranges::assert_exact_byte_length<sizeof(OutT)>(in_range);
  281|       |
  282|  5.88k|   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|  5.88k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  287|  5.88k|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  5.88k|      } else {
  289|  5.88k|         const std::span in{in_range};
  290|  5.88k|         if constexpr(sizeof(OutT) == 1) {
  291|  5.88k|            return static_cast<OutT>(in[0]);
  292|  5.88k|         } else if constexpr(endianness == std::endian::native) {
  293|  5.88k|            return typecast_copy<OutT>(in);
  294|  5.88k|         } else {
  295|  5.88k|            static_assert(opposite(endianness) == std::endian::native);
  296|  5.88k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  5.88k|         }
  298|  5.88k|      }
  299|  5.88k|   }());
  300|  5.88k|}
_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|   };
_ZN5Botan7load_leImJRPKhiEEEDaDpOT0_:
  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__16endianE57005ETkNS0_20unsigned_integralishEmEET0_PKhm:
  454|     10|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|     10|   constexpr size_t out_size = sizeof(OutT);
  457|     10|   return load_any<endianness, OutT>(std::span<const uint8_t, out_size>(in + off * out_size, out_size));
  458|     10|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE57005ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_ENKUlvE_clEv:
  282|  47.5k|   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|  47.5k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (286:10): [Folded, False: 47.5k]
  ------------------
  287|      0|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  47.5k|      } else {
  289|  47.5k|         const std::span in{in_range};
  290|       |         if constexpr(sizeof(OutT) == 1) {
  291|       |            return static_cast<OutT>(in[0]);
  292|  47.5k|         } else if constexpr(endianness == std::endian::native) {
  293|  47.5k|            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|  47.5k|      }
  299|  47.5k|   }());
_ZN5Botan7load_leImJPKhiEEEDaDpOT0_:
  495|      8|inline constexpr auto load_le(ParamTs&&... params) {
  496|      8|   return detail::load_any<std::endian::little, OutT>(std::forward<ParamTs>(params)...);
  497|      8|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE57005ETkNS0_20unsigned_integralishEjTkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm4EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_ENKUlvE_clEv:
  282|  5.88k|   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|  5.88k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (286:10): [Folded, False: 5.88k]
  ------------------
  287|      0|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  5.88k|      } else {
  289|  5.88k|         const std::span in{in_range};
  290|       |         if constexpr(sizeof(OutT) == 1) {
  291|       |            return static_cast<OutT>(in[0]);
  292|  5.88k|         } else if constexpr(endianness == std::endian::native) {
  293|  5.88k|            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|  5.88k|      }
  299|  5.88k|   }());
_ZN5Botan7load_leINS_6detail10AutoDetectEJRNSt3__15arrayIhLm8EEEEEEDaDpOT0_:
  495|  4.54k|inline constexpr auto load_le(ParamTs&&... params) {
  496|  4.54k|   return detail::load_any<std::endian::little, OutT>(std::forward<ParamTs>(params)...);
  497|  4.54k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges16contiguous_rangeIhEERNS2_5arrayIhLm8EEEQoosr3stdE7same_asIS4_T0_Eaaoosr6rangesE25statically_spanable_rangeISA_Esr8conceptsE19resizable_containerISA_E20unsigned_integralishINSA_10value_typeEEEEDaOT1_:
  397|  4.54k|inline constexpr auto load_any(InR&& in_range) {
  398|  4.54k|   auto out = []([[maybe_unused]] const auto& in) {
  399|  4.54k|      if constexpr(std::same_as<AutoDetect, OutT>) {
  400|  4.54k|         if constexpr(ranges::statically_spanable_range<InR>) {
  401|  4.54k|            constexpr size_t extent = decltype(std::span{in})::extent;
  402|       |
  403|       |            // clang-format off
  404|  4.54k|            using type =
  405|  4.54k|               std::conditional_t<extent == 1, uint8_t,
  406|  4.54k|               std::conditional_t<extent == 2, uint16_t,
  407|  4.54k|               std::conditional_t<extent == 4, uint32_t,
  408|  4.54k|               std::conditional_t<extent == 8, uint64_t, void>>>>;
  409|       |            // clang-format on
  410|       |
  411|  4.54k|            static_assert(
  412|  4.54k|               !std::is_void_v<type>,
  413|  4.54k|               "Cannot determine the output type based on a statically sized bytearray with length other than those: 1, 2, 4, 8");
  414|       |
  415|  4.54k|            return type{};
  416|  4.54k|         } else {
  417|  4.54k|            static_assert(
  418|  4.54k|               !std::same_as<AutoDetect, OutT>,
  419|  4.54k|               "cannot infer return type from a dynamic range at compile time, please specify it explicitly");
  420|  4.54k|         }
  421|  4.54k|      } else if constexpr(concepts::resizable_container<OutT>) {
  422|  4.54k|         const size_t in_bytes = std::span{in}.size_bytes();
  423|  4.54k|         constexpr size_t out_elem_bytes = sizeof(typename OutT::value_type);
  424|  4.54k|         BOTAN_ARG_CHECK(in_bytes % out_elem_bytes == 0,
  425|  4.54k|                         "Input range is not word-aligned with the requested output range");
  426|  4.54k|         return OutT(in_bytes / out_elem_bytes);
  427|  4.54k|      } else {
  428|  4.54k|         return OutT{};
  429|  4.54k|      }
  430|  4.54k|   }(in_range);
  431|       |
  432|  4.54k|   using out_type = decltype(out);
  433|  4.54k|   if constexpr(unsigned_integralish<out_type>) {
  434|  4.54k|      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.54k|   return out;
  441|  4.54k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges16contiguous_rangeIhEERNS2_5arrayIhLm8EEEQoosr3stdE7same_asIS4_T0_Eaaoosr6rangesE25statically_spanable_rangeISA_Esr8conceptsE19resizable_containerISA_E20unsigned_integralishINSA_10value_typeEEEEDaOT1_ENKUlRKT_E_clIS8_EEDaSG_:
  398|  4.54k|   auto out = []([[maybe_unused]] const auto& in) {
  399|  4.54k|      if constexpr(std::same_as<AutoDetect, OutT>) {
  400|  4.54k|         if constexpr(ranges::statically_spanable_range<InR>) {
  401|  4.54k|            constexpr size_t extent = decltype(std::span{in})::extent;
  402|       |
  403|       |            // clang-format off
  404|  4.54k|            using type =
  405|  4.54k|               std::conditional_t<extent == 1, uint8_t,
  406|  4.54k|               std::conditional_t<extent == 2, uint16_t,
  407|  4.54k|               std::conditional_t<extent == 4, uint32_t,
  408|  4.54k|               std::conditional_t<extent == 8, uint64_t, void>>>>;
  409|       |            // clang-format on
  410|       |
  411|  4.54k|            static_assert(
  412|  4.54k|               !std::is_void_v<type>,
  413|  4.54k|               "Cannot determine the output type based on a statically sized bytearray with length other than those: 1, 2, 4, 8");
  414|       |
  415|  4.54k|            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.54k|   }(in_range);
_ZN5Botan6detail8load_anyILNSt3__16endianE57005ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEERNS2_5arrayIhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_:
  278|  4.54k|inline constexpr WrappedOutT load_any(InR&& in_range) {
  279|  4.54k|   using OutT = detail::wrapped_type<WrappedOutT>;
  280|  4.54k|   ranges::assert_exact_byte_length<sizeof(OutT)>(in_range);
  281|       |
  282|  4.54k|   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.54k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  287|  4.54k|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  4.54k|      } else {
  289|  4.54k|         const std::span in{in_range};
  290|  4.54k|         if constexpr(sizeof(OutT) == 1) {
  291|  4.54k|            return static_cast<OutT>(in[0]);
  292|  4.54k|         } else if constexpr(endianness == std::endian::native) {
  293|  4.54k|            return typecast_copy<OutT>(in);
  294|  4.54k|         } else {
  295|  4.54k|            static_assert(opposite(endianness) == std::endian::native);
  296|  4.54k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  4.54k|         }
  298|  4.54k|      }
  299|  4.54k|   }());
  300|  4.54k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE57005ETkNS0_20unsigned_integralishEmTkNS_6ranges16contiguous_rangeIhEERNS2_5arrayIhLm8EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEESA_OT1_ENKUlvE_clEv:
  282|  4.54k|   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.54k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (286:10): [Folded, False: 4.54k]
  ------------------
  287|      0|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  4.54k|      } else {
  289|  4.54k|         const std::span in{in_range};
  290|       |         if constexpr(sizeof(OutT) == 1) {
  291|       |            return static_cast<OutT>(in[0]);
  292|  4.54k|         } else if constexpr(endianness == std::endian::native) {
  293|  4.54k|            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.54k|      }
  299|  4.54k|   }());
_ZN5Botan7load_leINS_6detail10AutoDetectEJNSt3__14spanIKhLm8EEEEEEDaDpOT0_:
  495|  47.5k|inline constexpr auto load_le(ParamTs&&... params) {
  496|  47.5k|   return detail::load_any<std::endian::little, OutT>(std::forward<ParamTs>(params)...);
  497|  47.5k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm8EEEQoosr3stdE7same_asIS4_T0_Eaaoosr6rangesE25statically_spanable_rangeISA_Esr8conceptsE19resizable_containerISA_E20unsigned_integralishINSA_10value_typeEEEEDaOT1_:
  397|  47.5k|inline constexpr auto load_any(InR&& in_range) {
  398|  47.5k|   auto out = []([[maybe_unused]] const auto& in) {
  399|  47.5k|      if constexpr(std::same_as<AutoDetect, OutT>) {
  400|  47.5k|         if constexpr(ranges::statically_spanable_range<InR>) {
  401|  47.5k|            constexpr size_t extent = decltype(std::span{in})::extent;
  402|       |
  403|       |            // clang-format off
  404|  47.5k|            using type =
  405|  47.5k|               std::conditional_t<extent == 1, uint8_t,
  406|  47.5k|               std::conditional_t<extent == 2, uint16_t,
  407|  47.5k|               std::conditional_t<extent == 4, uint32_t,
  408|  47.5k|               std::conditional_t<extent == 8, uint64_t, void>>>>;
  409|       |            // clang-format on
  410|       |
  411|  47.5k|            static_assert(
  412|  47.5k|               !std::is_void_v<type>,
  413|  47.5k|               "Cannot determine the output type based on a statically sized bytearray with length other than those: 1, 2, 4, 8");
  414|       |
  415|  47.5k|            return type{};
  416|  47.5k|         } else {
  417|  47.5k|            static_assert(
  418|  47.5k|               !std::same_as<AutoDetect, OutT>,
  419|  47.5k|               "cannot infer return type from a dynamic range at compile time, please specify it explicitly");
  420|  47.5k|         }
  421|  47.5k|      } else if constexpr(concepts::resizable_container<OutT>) {
  422|  47.5k|         const size_t in_bytes = std::span{in}.size_bytes();
  423|  47.5k|         constexpr size_t out_elem_bytes = sizeof(typename OutT::value_type);
  424|  47.5k|         BOTAN_ARG_CHECK(in_bytes % out_elem_bytes == 0,
  425|  47.5k|                         "Input range is not word-aligned with the requested output range");
  426|  47.5k|         return OutT(in_bytes / out_elem_bytes);
  427|  47.5k|      } else {
  428|  47.5k|         return OutT{};
  429|  47.5k|      }
  430|  47.5k|   }(in_range);
  431|       |
  432|  47.5k|   using out_type = decltype(out);
  433|  47.5k|   if constexpr(unsigned_integralish<out_type>) {
  434|  47.5k|      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|  47.5k|   return out;
  441|  47.5k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm8EEEQoosr3stdE7same_asIS4_T0_Eaaoosr6rangesE25statically_spanable_rangeISA_Esr8conceptsE19resizable_containerISA_E20unsigned_integralishINSA_10value_typeEEEEDaOT1_ENKUlRKT_E_clIS9_EEDaSG_:
  398|  47.5k|   auto out = []([[maybe_unused]] const auto& in) {
  399|  47.5k|      if constexpr(std::same_as<AutoDetect, OutT>) {
  400|  47.5k|         if constexpr(ranges::statically_spanable_range<InR>) {
  401|  47.5k|            constexpr size_t extent = decltype(std::span{in})::extent;
  402|       |
  403|       |            // clang-format off
  404|  47.5k|            using type =
  405|  47.5k|               std::conditional_t<extent == 1, uint8_t,
  406|  47.5k|               std::conditional_t<extent == 2, uint16_t,
  407|  47.5k|               std::conditional_t<extent == 4, uint32_t,
  408|  47.5k|               std::conditional_t<extent == 8, uint64_t, void>>>>;
  409|       |            // clang-format on
  410|       |
  411|  47.5k|            static_assert(
  412|  47.5k|               !std::is_void_v<type>,
  413|  47.5k|               "Cannot determine the output type based on a statically sized bytearray with length other than those: 1, 2, 4, 8");
  414|       |
  415|  47.5k|            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|  47.5k|   }(in_range);
_ZN5Botan8store_leINS_6detail10AutoDetectEJRmEEEDaDpOT0_:
  736|  1.18M|inline constexpr auto store_le(ParamTs&&... params) {
  737|  1.18M|   return detail::store_any<std::endian::little, ModifierT>(std::forward<ParamTs>(params)...);
  738|  1.18M|}
_ZN5Botan6detail9store_anyILNSt3__16endianE57005ENS0_10AutoDetectETpTkNS0_20unsigned_integralishEJmEQ10all_same_vIDpT1_EEEDaS6_:
  696|  1.18M|inline constexpr auto store_any(Ts... ins) {
  697|  1.18M|   return store_any<endianness, OutR>(std::array{ins...});
  698|  1.18M|}
_ZN5Botan6detail9store_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges14spanable_rangeENS2_5arrayImLm1EEEQoooosr3stdE7same_asIS4_T0_Eaasr6rangesE25statically_spanable_rangeIS8_Esr3stdE21default_initializableIS8_Esr8conceptsE21resizable_byte_bufferIS8_EEEDaOT1_:
  663|  1.18M|inline constexpr auto store_any(InR&& in_range) {
  664|  1.18M|   auto out = []([[maybe_unused]] const auto& in) {
  665|  1.18M|      if constexpr(std::same_as<AutoDetect, OutR>) {
  666|  1.18M|         if constexpr(ranges::statically_spanable_range<InR>) {
  667|  1.18M|            constexpr size_t bytes = decltype(std::span{in})::extent * sizeof(std::ranges::range_value_t<InR>);
  668|  1.18M|            return std::array<uint8_t, bytes>();
  669|  1.18M|         } else {
  670|  1.18M|            static_assert(
  671|  1.18M|               !std::same_as<AutoDetect, OutR>,
  672|  1.18M|               "cannot infer a suitable result container type from the given parameters at compile time, please specify it explicitly");
  673|  1.18M|         }
  674|  1.18M|      } else if constexpr(concepts::resizable_byte_buffer<OutR>) {
  675|  1.18M|         return OutR(std::span{in}.size_bytes());
  676|  1.18M|      } else {
  677|  1.18M|         return OutR{};
  678|  1.18M|      }
  679|  1.18M|   }(in_range);
  680|       |
  681|  1.18M|   store_any<endianness, std::ranges::range_value_t<InR>>(out, std::forward<InR>(in_range));
  682|  1.18M|   return out;
  683|  1.18M|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges14spanable_rangeENS2_5arrayImLm1EEEQoooosr3stdE7same_asIS4_T0_Eaasr6rangesE25statically_spanable_rangeIS8_Esr3stdE21default_initializableIS8_Esr8conceptsE21resizable_byte_bufferIS8_EEEDaOT1_ENKUlRKT_E_clIS7_EEDaSD_:
  664|  1.18M|   auto out = []([[maybe_unused]] const auto& in) {
  665|  1.18M|      if constexpr(std::same_as<AutoDetect, OutR>) {
  666|  1.18M|         if constexpr(ranges::statically_spanable_range<InR>) {
  667|  1.18M|            constexpr size_t bytes = decltype(std::span{in})::extent * sizeof(std::ranges::range_value_t<InR>);
  668|  1.18M|            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.18M|   }(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.22M|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  604|  1.22M|   ranges::assert_equal_byte_lengths(out, in);
  605|  1.22M|   using element_type = std::ranges::range_value_t<InR>;
  606|       |
  607|  1.22M|   auto store_elementwise = [&] {
  608|  1.22M|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|  1.22M|      std::span<uint8_t> out_s(out);
  610|  1.22M|      for(auto in_elem : in) {
  611|  1.22M|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|  1.22M|         out_s = out_s.subspan(bytes_per_element);
  613|  1.22M|      }
  614|  1.22M|   };
  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.22M|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (619:7): [Folded, False: 1.22M]
  ------------------
  620|      0|      store_elementwise();
  621|  1.22M|   } else {
  622|  1.22M|      if constexpr(endianness == std::endian::native && !custom_storable<element_type>) {
  623|  1.22M|         typecast_copy(out, in);
  624|       |      } else {
  625|       |         store_elementwise();
  626|       |      }
  627|  1.22M|   }
  628|  1.22M|}
_ZN5Botan7load_leINS_6detail10AutoDetectEJNSt3__14spanIKhLm4EEEEEEDaDpOT0_:
  495|  5.88k|inline constexpr auto load_le(ParamTs&&... params) {
  496|  5.88k|   return detail::load_any<std::endian::little, OutT>(std::forward<ParamTs>(params)...);
  497|  5.88k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm4EEEQoosr3stdE7same_asIS4_T0_Eaaoosr6rangesE25statically_spanable_rangeISA_Esr8conceptsE19resizable_containerISA_E20unsigned_integralishINSA_10value_typeEEEEDaOT1_:
  397|  5.88k|inline constexpr auto load_any(InR&& in_range) {
  398|  5.88k|   auto out = []([[maybe_unused]] const auto& in) {
  399|  5.88k|      if constexpr(std::same_as<AutoDetect, OutT>) {
  400|  5.88k|         if constexpr(ranges::statically_spanable_range<InR>) {
  401|  5.88k|            constexpr size_t extent = decltype(std::span{in})::extent;
  402|       |
  403|       |            // clang-format off
  404|  5.88k|            using type =
  405|  5.88k|               std::conditional_t<extent == 1, uint8_t,
  406|  5.88k|               std::conditional_t<extent == 2, uint16_t,
  407|  5.88k|               std::conditional_t<extent == 4, uint32_t,
  408|  5.88k|               std::conditional_t<extent == 8, uint64_t, void>>>>;
  409|       |            // clang-format on
  410|       |
  411|  5.88k|            static_assert(
  412|  5.88k|               !std::is_void_v<type>,
  413|  5.88k|               "Cannot determine the output type based on a statically sized bytearray with length other than those: 1, 2, 4, 8");
  414|       |
  415|  5.88k|            return type{};
  416|  5.88k|         } else {
  417|  5.88k|            static_assert(
  418|  5.88k|               !std::same_as<AutoDetect, OutT>,
  419|  5.88k|               "cannot infer return type from a dynamic range at compile time, please specify it explicitly");
  420|  5.88k|         }
  421|  5.88k|      } else if constexpr(concepts::resizable_container<OutT>) {
  422|  5.88k|         const size_t in_bytes = std::span{in}.size_bytes();
  423|  5.88k|         constexpr size_t out_elem_bytes = sizeof(typename OutT::value_type);
  424|  5.88k|         BOTAN_ARG_CHECK(in_bytes % out_elem_bytes == 0,
  425|  5.88k|                         "Input range is not word-aligned with the requested output range");
  426|  5.88k|         return OutT(in_bytes / out_elem_bytes);
  427|  5.88k|      } else {
  428|  5.88k|         return OutT{};
  429|  5.88k|      }
  430|  5.88k|   }(in_range);
  431|       |
  432|  5.88k|   using out_type = decltype(out);
  433|  5.88k|   if constexpr(unsigned_integralish<out_type>) {
  434|  5.88k|      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|  5.88k|   return out;
  441|  5.88k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges16contiguous_rangeIhEENS2_4spanIKhLm4EEEQoosr3stdE7same_asIS4_T0_Eaaoosr6rangesE25statically_spanable_rangeISA_Esr8conceptsE19resizable_containerISA_E20unsigned_integralishINSA_10value_typeEEEEDaOT1_ENKUlRKT_E_clIS9_EEDaSG_:
  398|  5.88k|   auto out = []([[maybe_unused]] const auto& in) {
  399|  5.88k|      if constexpr(std::same_as<AutoDetect, OutT>) {
  400|  5.88k|         if constexpr(ranges::statically_spanable_range<InR>) {
  401|  5.88k|            constexpr size_t extent = decltype(std::span{in})::extent;
  402|       |
  403|       |            // clang-format off
  404|  5.88k|            using type =
  405|  5.88k|               std::conditional_t<extent == 1, uint8_t,
  406|  5.88k|               std::conditional_t<extent == 2, uint16_t,
  407|  5.88k|               std::conditional_t<extent == 4, uint32_t,
  408|  5.88k|               std::conditional_t<extent == 8, uint64_t, void>>>>;
  409|       |            // clang-format on
  410|       |
  411|  5.88k|            static_assert(
  412|  5.88k|               !std::is_void_v<type>,
  413|  5.88k|               "Cannot determine the output type based on a statically sized bytearray with length other than those: 1, 2, 4, 8");
  414|       |
  415|  5.88k|            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|  5.88k|   }(in_range);
_ZN5Botan8store_leINS_6detail10AutoDetectEJRNSt3__15arrayImLm1EEEEEEDaDpOT0_:
  736|  38.9k|inline constexpr auto store_le(ParamTs&&... params) {
  737|  38.9k|   return detail::store_any<std::endian::little, ModifierT>(std::forward<ParamTs>(params)...);
  738|  38.9k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges14spanable_rangeERNS2_5arrayImLm1EEEQoooosr3stdE7same_asIS4_T0_Eaasr6rangesE25statically_spanable_rangeIS9_Esr3stdE21default_initializableIS9_Esr8conceptsE21resizable_byte_bufferIS9_EEEDaOT1_:
  663|  38.9k|inline constexpr auto store_any(InR&& in_range) {
  664|  38.9k|   auto out = []([[maybe_unused]] const auto& in) {
  665|  38.9k|      if constexpr(std::same_as<AutoDetect, OutR>) {
  666|  38.9k|         if constexpr(ranges::statically_spanable_range<InR>) {
  667|  38.9k|            constexpr size_t bytes = decltype(std::span{in})::extent * sizeof(std::ranges::range_value_t<InR>);
  668|  38.9k|            return std::array<uint8_t, bytes>();
  669|  38.9k|         } else {
  670|  38.9k|            static_assert(
  671|  38.9k|               !std::same_as<AutoDetect, OutR>,
  672|  38.9k|               "cannot infer a suitable result container type from the given parameters at compile time, please specify it explicitly");
  673|  38.9k|         }
  674|  38.9k|      } else if constexpr(concepts::resizable_byte_buffer<OutR>) {
  675|  38.9k|         return OutR(std::span{in}.size_bytes());
  676|  38.9k|      } else {
  677|  38.9k|         return OutR{};
  678|  38.9k|      }
  679|  38.9k|   }(in_range);
  680|       |
  681|  38.9k|   store_any<endianness, std::ranges::range_value_t<InR>>(out, std::forward<InR>(in_range));
  682|  38.9k|   return out;
  683|  38.9k|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges14spanable_rangeERNS2_5arrayImLm1EEEQoooosr3stdE7same_asIS4_T0_Eaasr6rangesE25statically_spanable_rangeIS9_Esr3stdE21default_initializableIS9_Esr8conceptsE21resizable_byte_bufferIS9_EEEDaOT1_ENKUlRKT_E_clIS7_EEDaSE_:
  664|  38.9k|   auto out = []([[maybe_unused]] const auto& in) {
  665|  38.9k|      if constexpr(std::same_as<AutoDetect, OutR>) {
  666|  38.9k|         if constexpr(ranges::statically_spanable_range<InR>) {
  667|  38.9k|            constexpr size_t bytes = decltype(std::span{in})::extent * sizeof(std::ranges::range_value_t<InR>);
  668|  38.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|  38.9k|   }(in_range);
_ZN5Botan7load_leINS_6detail10AutoDetectEJNSt3__15arrayIhLm2EEEEEEDaDpOT0_:
  495|  2.93k|inline constexpr auto load_le(ParamTs&&... params) {
  496|  2.93k|   return detail::load_any<std::endian::little, OutT>(std::forward<ParamTs>(params)...);
  497|  2.93k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges16contiguous_rangeIhEENS2_5arrayIhLm2EEEQoosr3stdE7same_asIS4_T0_Eaaoosr6rangesE25statically_spanable_rangeIS9_Esr8conceptsE19resizable_containerIS9_E20unsigned_integralishINS9_10value_typeEEEEDaOT1_:
  397|  2.93k|inline constexpr auto load_any(InR&& in_range) {
  398|  2.93k|   auto out = []([[maybe_unused]] const auto& in) {
  399|  2.93k|      if constexpr(std::same_as<AutoDetect, OutT>) {
  400|  2.93k|         if constexpr(ranges::statically_spanable_range<InR>) {
  401|  2.93k|            constexpr size_t extent = decltype(std::span{in})::extent;
  402|       |
  403|       |            // clang-format off
  404|  2.93k|            using type =
  405|  2.93k|               std::conditional_t<extent == 1, uint8_t,
  406|  2.93k|               std::conditional_t<extent == 2, uint16_t,
  407|  2.93k|               std::conditional_t<extent == 4, uint32_t,
  408|  2.93k|               std::conditional_t<extent == 8, uint64_t, void>>>>;
  409|       |            // clang-format on
  410|       |
  411|  2.93k|            static_assert(
  412|  2.93k|               !std::is_void_v<type>,
  413|  2.93k|               "Cannot determine the output type based on a statically sized bytearray with length other than those: 1, 2, 4, 8");
  414|       |
  415|  2.93k|            return type{};
  416|  2.93k|         } else {
  417|  2.93k|            static_assert(
  418|  2.93k|               !std::same_as<AutoDetect, OutT>,
  419|  2.93k|               "cannot infer return type from a dynamic range at compile time, please specify it explicitly");
  420|  2.93k|         }
  421|  2.93k|      } else if constexpr(concepts::resizable_container<OutT>) {
  422|  2.93k|         const size_t in_bytes = std::span{in}.size_bytes();
  423|  2.93k|         constexpr size_t out_elem_bytes = sizeof(typename OutT::value_type);
  424|  2.93k|         BOTAN_ARG_CHECK(in_bytes % out_elem_bytes == 0,
  425|  2.93k|                         "Input range is not word-aligned with the requested output range");
  426|  2.93k|         return OutT(in_bytes / out_elem_bytes);
  427|  2.93k|      } else {
  428|  2.93k|         return OutT{};
  429|  2.93k|      }
  430|  2.93k|   }(in_range);
  431|       |
  432|  2.93k|   using out_type = decltype(out);
  433|  2.93k|   if constexpr(unsigned_integralish<out_type>) {
  434|  2.93k|      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.93k|   return out;
  441|  2.93k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges16contiguous_rangeIhEENS2_5arrayIhLm2EEEQoosr3stdE7same_asIS4_T0_Eaaoosr6rangesE25statically_spanable_rangeIS9_Esr8conceptsE19resizable_containerIS9_E20unsigned_integralishINS9_10value_typeEEEEDaOT1_ENKUlRKT_E_clIS8_EEDaSF_:
  398|  2.93k|   auto out = []([[maybe_unused]] const auto& in) {
  399|  2.93k|      if constexpr(std::same_as<AutoDetect, OutT>) {
  400|  2.93k|         if constexpr(ranges::statically_spanable_range<InR>) {
  401|  2.93k|            constexpr size_t extent = decltype(std::span{in})::extent;
  402|       |
  403|       |            // clang-format off
  404|  2.93k|            using type =
  405|  2.93k|               std::conditional_t<extent == 1, uint8_t,
  406|  2.93k|               std::conditional_t<extent == 2, uint16_t,
  407|  2.93k|               std::conditional_t<extent == 4, uint32_t,
  408|  2.93k|               std::conditional_t<extent == 8, uint64_t, void>>>>;
  409|       |            // clang-format on
  410|       |
  411|  2.93k|            static_assert(
  412|  2.93k|               !std::is_void_v<type>,
  413|  2.93k|               "Cannot determine the output type based on a statically sized bytearray with length other than those: 1, 2, 4, 8");
  414|       |
  415|  2.93k|            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.93k|   }(in_range);
_ZN5Botan6detail8load_anyILNSt3__16endianE57005ETkNS0_20unsigned_integralishEtTkNS_6ranges16contiguous_rangeIhEENS2_5arrayIhLm2EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEES9_OT1_:
  278|  2.93k|inline constexpr WrappedOutT load_any(InR&& in_range) {
  279|  2.93k|   using OutT = detail::wrapped_type<WrappedOutT>;
  280|  2.93k|   ranges::assert_exact_byte_length<sizeof(OutT)>(in_range);
  281|       |
  282|  2.93k|   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.93k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  287|  2.93k|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  2.93k|      } else {
  289|  2.93k|         const std::span in{in_range};
  290|  2.93k|         if constexpr(sizeof(OutT) == 1) {
  291|  2.93k|            return static_cast<OutT>(in[0]);
  292|  2.93k|         } else if constexpr(endianness == std::endian::native) {
  293|  2.93k|            return typecast_copy<OutT>(in);
  294|  2.93k|         } else {
  295|  2.93k|            static_assert(opposite(endianness) == std::endian::native);
  296|  2.93k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  2.93k|         }
  298|  2.93k|      }
  299|  2.93k|   }());
  300|  2.93k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE57005ETkNS0_20unsigned_integralishEtTkNS_6ranges16contiguous_rangeIhEENS2_5arrayIhLm2EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEES9_OT1_ENKUlvE_clEv:
  282|  2.93k|   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.93k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (286:10): [Folded, False: 2.93k]
  ------------------
  287|      0|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  2.93k|      } else {
  289|  2.93k|         const std::span in{in_range};
  290|       |         if constexpr(sizeof(OutT) == 1) {
  291|       |            return static_cast<OutT>(in[0]);
  292|  2.93k|         } else if constexpr(endianness == std::endian::native) {
  293|  2.93k|            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.93k|      }
  299|  2.93k|   }());
_ZZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges14spanable_rangeENS2_5arrayItLm1EEEQoooosr3stdE7same_asIS4_T0_Eaasr6rangesE25statically_spanable_rangeIS8_Esr3stdE21default_initializableIS8_Esr8conceptsE21resizable_byte_bufferIS8_EEEDaOT1_ENKUlRKT_E_clIS7_EEDaSD_:
  664|    352|   auto out = []([[maybe_unused]] const auto& in) {
  665|    352|      if constexpr(std::same_as<AutoDetect, OutR>) {
  666|    352|         if constexpr(ranges::statically_spanable_range<InR>) {
  667|    352|            constexpr size_t bytes = decltype(std::span{in})::extent * sizeof(std::ranges::range_value_t<InR>);
  668|    352|            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|    352|   }(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|    352|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|    352|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|    352|      off += sizeof(T);
  587|    352|   };
_ZN5Botan6detail9store_anyILNSt3__16endianE64206EtTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm2EEETpTkNS0_20unsigned_integralishEJtEQaagtsZT2_Li0Eooaasr3stdE7same_asINS0_10AutoDetectET0_E10all_same_vIDpT2_Eaa20unsigned_integralishIS9_E10all_same_vIS9_SB_EEEvOT1_SB_:
  582|    352|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, Ts... ins) {
  583|    352|   ranges::assert_exact_byte_length<(sizeof(Ts) + ...)>(out);
  584|    352|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|    352|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|    352|      off += sizeof(T);
  587|    352|   };
  588|       |
  589|    352|   (store_one(std::span{out}, ins), ...);
  590|    352|}
_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|    352|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  604|    352|   ranges::assert_equal_byte_lengths(out, in);
  605|    352|   using element_type = std::ranges::range_value_t<InR>;
  606|       |
  607|    352|   auto store_elementwise = [&] {
  608|    352|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|    352|      std::span<uint8_t> out_s(out);
  610|    352|      for(auto in_elem : in) {
  611|    352|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|    352|         out_s = out_s.subspan(bytes_per_element);
  613|    352|      }
  614|    352|   };
  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|    352|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (619:7): [Folded, False: 352]
  ------------------
  620|      0|      store_elementwise();
  621|    352|   } else {
  622|       |      if constexpr(endianness == std::endian::native && !custom_storable<element_type>) {
  623|       |         typecast_copy(out, in);
  624|    352|      } else {
  625|    352|         store_elementwise();
  626|    352|      }
  627|    352|   }
  628|    352|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETkNS_6ranges14spanable_rangeENS2_5arrayItLm1EEEQoooosr3stdE7same_asIS4_T0_Eaasr6rangesE25statically_spanable_rangeIS8_Esr3stdE21default_initializableIS8_Esr8conceptsE21resizable_byte_bufferIS8_EEEDaOT1_:
  663|    352|inline constexpr auto store_any(InR&& in_range) {
  664|    352|   auto out = []([[maybe_unused]] const auto& in) {
  665|    352|      if constexpr(std::same_as<AutoDetect, OutR>) {
  666|    352|         if constexpr(ranges::statically_spanable_range<InR>) {
  667|    352|            constexpr size_t bytes = decltype(std::span{in})::extent * sizeof(std::ranges::range_value_t<InR>);
  668|    352|            return std::array<uint8_t, bytes>();
  669|    352|         } else {
  670|    352|            static_assert(
  671|    352|               !std::same_as<AutoDetect, OutR>,
  672|    352|               "cannot infer a suitable result container type from the given parameters at compile time, please specify it explicitly");
  673|    352|         }
  674|    352|      } else if constexpr(concepts::resizable_byte_buffer<OutR>) {
  675|    352|         return OutR(std::span{in}.size_bytes());
  676|    352|      } else {
  677|    352|         return OutR{};
  678|    352|      }
  679|    352|   }(in_range);
  680|       |
  681|    352|   store_any<endianness, std::ranges::range_value_t<InR>>(out, std::forward<InR>(in_range));
  682|    352|   return out;
  683|    352|}
_ZN5Botan6detail9store_anyILNSt3__16endianE64206ENS0_10AutoDetectETpTkNS0_20unsigned_integralishEJtEQ10all_same_vIDpT1_EEEDaS6_:
  696|    352|inline constexpr auto store_any(Ts... ins) {
  697|    352|   return store_any<endianness, OutR>(std::array{ins...});
  698|    352|}
_ZN5Botan8store_beINS_6detail10AutoDetectEJtEEEDaDpOT0_:
  745|    352|inline constexpr auto store_be(ParamTs&&... params) {
  746|    352|   return detail::store_any<std::endian::big, ModifierT>(std::forward<ParamTs>(params)...);
  747|    352|}
_ZN5Botan7load_leINS_6detail10AutoDetectEJNSt3__15arrayIhLm4EEEEEEDaDpOT0_:
  495|  57.0k|inline constexpr auto load_le(ParamTs&&... params) {
  496|  57.0k|   return detail::load_any<std::endian::little, OutT>(std::forward<ParamTs>(params)...);
  497|  57.0k|}
_ZN5Botan6detail8load_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges16contiguous_rangeIhEENS2_5arrayIhLm4EEEQoosr3stdE7same_asIS4_T0_Eaaoosr6rangesE25statically_spanable_rangeIS9_Esr8conceptsE19resizable_containerIS9_E20unsigned_integralishINS9_10value_typeEEEEDaOT1_:
  397|  57.0k|inline constexpr auto load_any(InR&& in_range) {
  398|  57.0k|   auto out = []([[maybe_unused]] const auto& in) {
  399|  57.0k|      if constexpr(std::same_as<AutoDetect, OutT>) {
  400|  57.0k|         if constexpr(ranges::statically_spanable_range<InR>) {
  401|  57.0k|            constexpr size_t extent = decltype(std::span{in})::extent;
  402|       |
  403|       |            // clang-format off
  404|  57.0k|            using type =
  405|  57.0k|               std::conditional_t<extent == 1, uint8_t,
  406|  57.0k|               std::conditional_t<extent == 2, uint16_t,
  407|  57.0k|               std::conditional_t<extent == 4, uint32_t,
  408|  57.0k|               std::conditional_t<extent == 8, uint64_t, void>>>>;
  409|       |            // clang-format on
  410|       |
  411|  57.0k|            static_assert(
  412|  57.0k|               !std::is_void_v<type>,
  413|  57.0k|               "Cannot determine the output type based on a statically sized bytearray with length other than those: 1, 2, 4, 8");
  414|       |
  415|  57.0k|            return type{};
  416|  57.0k|         } else {
  417|  57.0k|            static_assert(
  418|  57.0k|               !std::same_as<AutoDetect, OutT>,
  419|  57.0k|               "cannot infer return type from a dynamic range at compile time, please specify it explicitly");
  420|  57.0k|         }
  421|  57.0k|      } else if constexpr(concepts::resizable_container<OutT>) {
  422|  57.0k|         const size_t in_bytes = std::span{in}.size_bytes();
  423|  57.0k|         constexpr size_t out_elem_bytes = sizeof(typename OutT::value_type);
  424|  57.0k|         BOTAN_ARG_CHECK(in_bytes % out_elem_bytes == 0,
  425|  57.0k|                         "Input range is not word-aligned with the requested output range");
  426|  57.0k|         return OutT(in_bytes / out_elem_bytes);
  427|  57.0k|      } else {
  428|  57.0k|         return OutT{};
  429|  57.0k|      }
  430|  57.0k|   }(in_range);
  431|       |
  432|  57.0k|   using out_type = decltype(out);
  433|  57.0k|   if constexpr(unsigned_integralish<out_type>) {
  434|  57.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|  57.0k|   return out;
  441|  57.0k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges16contiguous_rangeIhEENS2_5arrayIhLm4EEEQoosr3stdE7same_asIS4_T0_Eaaoosr6rangesE25statically_spanable_rangeIS9_Esr8conceptsE19resizable_containerIS9_E20unsigned_integralishINS9_10value_typeEEEEDaOT1_ENKUlRKT_E_clIS8_EEDaSF_:
  398|  57.0k|   auto out = []([[maybe_unused]] const auto& in) {
  399|  57.0k|      if constexpr(std::same_as<AutoDetect, OutT>) {
  400|  57.0k|         if constexpr(ranges::statically_spanable_range<InR>) {
  401|  57.0k|            constexpr size_t extent = decltype(std::span{in})::extent;
  402|       |
  403|       |            // clang-format off
  404|  57.0k|            using type =
  405|  57.0k|               std::conditional_t<extent == 1, uint8_t,
  406|  57.0k|               std::conditional_t<extent == 2, uint16_t,
  407|  57.0k|               std::conditional_t<extent == 4, uint32_t,
  408|  57.0k|               std::conditional_t<extent == 8, uint64_t, void>>>>;
  409|       |            // clang-format on
  410|       |
  411|  57.0k|            static_assert(
  412|  57.0k|               !std::is_void_v<type>,
  413|  57.0k|               "Cannot determine the output type based on a statically sized bytearray with length other than those: 1, 2, 4, 8");
  414|       |
  415|  57.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|  57.0k|   }(in_range);
_ZN5Botan6detail8load_anyILNSt3__16endianE57005ETkNS0_20unsigned_integralishEjTkNS_6ranges16contiguous_rangeIhEENS2_5arrayIhLm4EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEES9_OT1_:
  278|  57.0k|inline constexpr WrappedOutT load_any(InR&& in_range) {
  279|  57.0k|   using OutT = detail::wrapped_type<WrappedOutT>;
  280|  57.0k|   ranges::assert_exact_byte_length<sizeof(OutT)>(in_range);
  281|       |
  282|  57.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|  57.0k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  287|  57.0k|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  57.0k|      } else {
  289|  57.0k|         const std::span in{in_range};
  290|  57.0k|         if constexpr(sizeof(OutT) == 1) {
  291|  57.0k|            return static_cast<OutT>(in[0]);
  292|  57.0k|         } else if constexpr(endianness == std::endian::native) {
  293|  57.0k|            return typecast_copy<OutT>(in);
  294|  57.0k|         } else {
  295|  57.0k|            static_assert(opposite(endianness) == std::endian::native);
  296|  57.0k|            return reverse_bytes(typecast_copy<OutT>(in));
  297|  57.0k|         }
  298|  57.0k|      }
  299|  57.0k|   }());
  300|  57.0k|}
_ZZN5Botan6detail8load_anyILNSt3__16endianE57005ETkNS0_20unsigned_integralishEjTkNS_6ranges16contiguous_rangeIhEENS2_5arrayIhLm4EEEQnt15custom_loadableINS0_19wrapped_type_helperIu14__remove_cvrefIT0_EE4typeEEEES9_OT1_ENKUlvE_clEv:
  282|  57.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|  57.0k|      if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (286:10): [Folded, False: 57.0k]
  ------------------
  287|      0|         return fallback_load_any<endianness, OutT>(std::forward<InR>(in_range));
  288|  57.0k|      } else {
  289|  57.0k|         const std::span in{in_range};
  290|       |         if constexpr(sizeof(OutT) == 1) {
  291|       |            return static_cast<OutT>(in[0]);
  292|  57.0k|         } else if constexpr(endianness == std::endian::native) {
  293|  57.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|  57.0k|      }
  299|  57.0k|   }());
_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|    352|   auto store_elementwise = [&] {
  608|    352|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|    352|      std::span<uint8_t> out_s(out);
  610|    352|      for(auto in_elem : in) {
  ------------------
  |  Branch (610:24): [True: 352, False: 352]
  ------------------
  611|    352|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|    352|         out_s = out_s.subspan(bytes_per_element);
  613|    352|      }
  614|    352|   };
_ZN5Botan8store_leINS_6detail10AutoDetectEJRPhmmmmEEEDaDpOT0_:
  736|      2|inline constexpr auto store_le(ParamTs&&... params) {
  737|      2|   return detail::store_any<std::endian::little, ModifierT>(std::forward<ParamTs>(params)...);
  738|      2|}
_ZN5Botan6detail9store_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS0_20unsigned_integralishEmTpTkNS0_20unsigned_integralishEJmmmEQaaoosr3stdE7same_asIS4_T0_Esr3stdE7same_asIT1_S5_E10all_same_vIS6_DpT2_EEEvPhS6_S8_:
  723|      2|inline constexpr void store_any(uint8_t out[], T0 in0, Ts... ins) {
  724|      2|   constexpr auto bytes = sizeof(in0) + (sizeof(ins) + ... + 0);
  725|       |   // asserts that *out points to the correct amount of memory
  726|      2|   store_any<endianness, T0>(std::span<uint8_t, bytes>(out, bytes), in0, ins...);
  727|      2|}
_ZN5Botan6detail9store_anyILNSt3__16endianE57005EmTkNS_6ranges23contiguous_output_rangeIhEENS2_4spanIhLm32EEETpTkNS0_20unsigned_integralishEJmmmmEQaagtsZT2_Li0Eooaasr3stdE7same_asINS0_10AutoDetectET0_E10all_same_vIDpT2_Eaa20unsigned_integralishIS9_E10all_same_vIS9_SB_EEEvOT1_SB_:
  582|      2|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, Ts... ins) {
  583|      2|   ranges::assert_exact_byte_length<(sizeof(Ts) + ...)>(out);
  584|      2|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|      2|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|      2|      off += sizeof(T);
  587|      2|   };
  588|       |
  589|      2|   (store_one(std::span{out}, ins), ...);
  590|      2|}
_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|      8|   auto store_one = [off = 0]<typename T>(auto o, T i) mutable {
  585|      8|      store_any<endianness, T>(i, o.subspan(off).template first<sizeof(T)>());
  586|      8|      off += sizeof(T);
  587|      8|   };
_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|      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_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|      1|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  604|      1|   ranges::assert_equal_byte_lengths(out, in);
  605|      1|   using element_type = std::ranges::range_value_t<InR>;
  606|       |
  607|      1|   auto store_elementwise = [&] {
  608|      1|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|      1|      std::span<uint8_t> out_s(out);
  610|      1|      for(auto in_elem : in) {
  611|      1|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|      1|         out_s = out_s.subspan(bytes_per_element);
  613|      1|      }
  614|      1|   };
  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|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (619:7): [Folded, False: 1]
  ------------------
  620|      0|      store_elementwise();
  621|      1|   } else {
  622|      1|      if constexpr(endianness == std::endian::native && !custom_storable<element_type>) {
  623|      1|         typecast_copy(out, in);
  624|       |      } else {
  625|       |         store_elementwise();
  626|       |      }
  627|      1|   }
  628|      1|}
_ZN5Botan8store_leINS_6detail10AutoDetectEJRtEEEDaDpOT0_:
  736|  3.87k|inline constexpr auto store_le(ParamTs&&... params) {
  737|  3.87k|   return detail::store_any<std::endian::little, ModifierT>(std::forward<ParamTs>(params)...);
  738|  3.87k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE57005ENS0_10AutoDetectETpTkNS0_20unsigned_integralishEJtEQ10all_same_vIDpT1_EEEDaS6_:
  696|  3.87k|inline constexpr auto store_any(Ts... ins) {
  697|  3.87k|   return store_any<endianness, OutR>(std::array{ins...});
  698|  3.87k|}
_ZN5Botan6detail9store_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges14spanable_rangeENS2_5arrayItLm1EEEQoooosr3stdE7same_asIS4_T0_Eaasr6rangesE25statically_spanable_rangeIS8_Esr3stdE21default_initializableIS8_Esr8conceptsE21resizable_byte_bufferIS8_EEEDaOT1_:
  663|  3.87k|inline constexpr auto store_any(InR&& in_range) {
  664|  3.87k|   auto out = []([[maybe_unused]] const auto& in) {
  665|  3.87k|      if constexpr(std::same_as<AutoDetect, OutR>) {
  666|  3.87k|         if constexpr(ranges::statically_spanable_range<InR>) {
  667|  3.87k|            constexpr size_t bytes = decltype(std::span{in})::extent * sizeof(std::ranges::range_value_t<InR>);
  668|  3.87k|            return std::array<uint8_t, bytes>();
  669|  3.87k|         } else {
  670|  3.87k|            static_assert(
  671|  3.87k|               !std::same_as<AutoDetect, OutR>,
  672|  3.87k|               "cannot infer a suitable result container type from the given parameters at compile time, please specify it explicitly");
  673|  3.87k|         }
  674|  3.87k|      } else if constexpr(concepts::resizable_byte_buffer<OutR>) {
  675|  3.87k|         return OutR(std::span{in}.size_bytes());
  676|  3.87k|      } else {
  677|  3.87k|         return OutR{};
  678|  3.87k|      }
  679|  3.87k|   }(in_range);
  680|       |
  681|  3.87k|   store_any<endianness, std::ranges::range_value_t<InR>>(out, std::forward<InR>(in_range));
  682|  3.87k|   return out;
  683|  3.87k|}
_ZZN5Botan6detail9store_anyILNSt3__16endianE57005ENS0_10AutoDetectETkNS_6ranges14spanable_rangeENS2_5arrayItLm1EEEQoooosr3stdE7same_asIS4_T0_Eaasr6rangesE25statically_spanable_rangeIS8_Esr3stdE21default_initializableIS8_Esr8conceptsE21resizable_byte_bufferIS8_EEEDaOT1_ENKUlRKT_E_clIS7_EEDaSD_:
  664|  3.87k|   auto out = []([[maybe_unused]] const auto& in) {
  665|  3.87k|      if constexpr(std::same_as<AutoDetect, OutR>) {
  666|  3.87k|         if constexpr(ranges::statically_spanable_range<InR>) {
  667|  3.87k|            constexpr size_t bytes = decltype(std::span{in})::extent * sizeof(std::ranges::range_value_t<InR>);
  668|  3.87k|            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.87k|   }(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.87k|inline constexpr void store_any(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  604|  3.87k|   ranges::assert_equal_byte_lengths(out, in);
  605|  3.87k|   using element_type = std::ranges::range_value_t<InR>;
  606|       |
  607|  3.87k|   auto store_elementwise = [&] {
  608|  3.87k|      constexpr size_t bytes_per_element = sizeof(element_type);
  609|  3.87k|      std::span<uint8_t> out_s(out);
  610|  3.87k|      for(auto in_elem : in) {
  611|  3.87k|         store_any<endianness, element_type>(out_s.template first<bytes_per_element>(), in_elem);
  612|  3.87k|         out_s = out_s.subspan(bytes_per_element);
  613|  3.87k|      }
  614|  3.87k|   };
  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.87k|   if(std::is_constant_evaluated()) /* TODO: C++23: if consteval {} */ {
  ------------------
  |  Branch (619:7): [Folded, False: 3.87k]
  ------------------
  620|      0|      store_elementwise();
  621|  3.87k|   } else {
  622|  3.87k|      if constexpr(endianness == std::endian::native && !custom_storable<element_type>) {
  623|  3.87k|         typecast_copy(out, in);
  624|       |      } else {
  625|       |         store_elementwise();
  626|       |      }
  627|  3.87k|   }
  628|  3.87k|}

_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_integralEmEEvPT_m:
   37|  54.8M|inline void zeroize_buffer(T buf[], size_t n) {
   38|  54.8M|   if(n > 0) {
  ------------------
  |  Branch (38:7): [True: 52.5M, False: 2.28M]
  ------------------
   39|  52.5M|      std::memset(buf, 0, sizeof(T) * n);
   40|  52.5M|   }
   41|  54.8M|}
_ZN5Botan21unchecked_copy_memoryITkNSt3__117unsigned_integralEmEEvPT_PKS2_m:
   44|  6.54M|inline void unchecked_copy_memory(T* out, const T* in, size_t n) {
   45|  6.54M|   if(in != nullptr && out != nullptr && n > 0) {
  ------------------
  |  Branch (45:7): [True: 6.54M, False: 0]
  |  Branch (45:24): [True: 6.54M, False: 0]
  |  Branch (45:42): [True: 6.54M, False: 0]
  ------------------
   46|  6.54M|      std::memmove(out, in, sizeof(T) * n);
   47|  6.54M|   }
   48|  6.54M|}
_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|}

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

_ZNK5Botan27ML_KEM_Symmetric_Primitives31seed_expansion_domain_separatorERKNS_14KyberConstantsE:
   59|     31|      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|     31|         return std::array{mode.k()};
   65|     31|      }
_ZNK5Botan27ML_KEM_Symmetric_Primitives8create_GEv:
   67|     31|      std::unique_ptr<HashFunction> create_G() const override { return HashFunction::create_or_throw("SHA-3(512)"); }
_ZNK5Botan27ML_KEM_Symmetric_Primitives8create_HEv:
   69|     31|      std::unique_ptr<HashFunction> create_H() const override { return HashFunction::create_or_throw("SHA-3(256)"); }
_ZNK5Botan27ML_KEM_Symmetric_Primitives10create_PRFENSt3__14spanIKhLm18446744073709551615EEEh:
   79|     31|      std::unique_ptr<Botan::XOF> create_PRF(std::span<const uint8_t> seed, const uint8_t nonce) const override {
   80|     31|         auto xof = Botan::XOF::create_or_throw("SHAKE-256");
   81|     31|         init_PRF(*xof, seed, nonce);
   82|     31|         return xof;
   83|     31|      }
_ZNK5Botan27ML_KEM_Symmetric_Primitives8init_PRFERNS_3XOFENSt3__14spanIKhLm18446744073709551615EEEh:
   85|    204|      void init_PRF(Botan::XOF& xof, std::span<const uint8_t> seed, const uint8_t nonce) const override {
   86|    204|         xof.clear();
   87|    204|         xof.update(seed);
   88|    204|         xof.update(store_be(nonce));
   89|    204|      }
_ZNK5Botan27ML_KEM_Symmetric_Primitives10create_XOFENSt3__14spanIKhLm18446744073709551615EEENS1_5tupleIJhhEEE:
   92|     31|                                             std::tuple<uint8_t, uint8_t> matrix_position) const override {
   93|     31|         auto xof = Botan::XOF::create_or_throw("SHAKE-128");
   94|     31|         init_XOF(*xof, seed, matrix_position);
   95|     31|         return xof;
   96|     31|      }
_ZNK5Botan27ML_KEM_Symmetric_Primitives8init_XOFERNS_3XOFENSt3__14spanIKhLm18446744073709551615EEENS3_5tupleIJhhEEE:
  100|    352|                    std::tuple<uint8_t, uint8_t> matrix_position) const override {
  101|    352|         xof.clear();
  102|    352|         xof.update(seed);
  103|    352|         xof.update(store_be(make_uint16(std::get<0>(matrix_position), std::get<1>(matrix_position))));
  104|    352|      }

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

_ZN5Botan17monty_exp_vartimeERKNS_17Montgomery_ParamsERKNS_6BigIntES5_:
   54|  2.25k|inline Montgomery_Int monty_exp_vartime(const Montgomery_Params& params_p, const BigInt& g, const BigInt& k) {
   55|  2.25k|   auto precomputed = monty_precompute(params_p, g, 4, false);
   56|  2.25k|   return monty_execute_vartime(*precomputed, k);
   57|  2.25k|}

_ZN5Botan10word8_add2ITkNS_8WordTypeEmEET_PS1_PKS1_S1_:
  268|    471|inline constexpr auto word8_add2(W x[8], const W y[8], W carry) -> W {
  269|    471|#if defined(BOTAN_MP_USE_X86_64_ASM)
  270|    471|   if(std::same_as<W, uint64_t> && !std::is_constant_evaluated()) {
  ------------------
  |  Branch (270:7): [True: 0, Folded]
  |  Branch (270:36): [True: 0, Folded]
  ------------------
  271|    471|      asm volatile(ADD_OR_SUBTRACT(DO_8_TIMES(ADDSUB2_OP, "adcq"))
  272|    471|                   : [carry] "=r"(carry)
  273|    471|                   : [x] "r"(x), [y] "r"(y), "0"(carry)
  274|    471|                   : "cc", "memory");
  275|    471|      return carry;
  276|    471|   }
  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|    471|}
_ZN5Botan8word_addITkNS_8WordTypeEmEET_S1_S1_PS1_:
  231|  70.4M|inline constexpr auto word_add(W x, W y, W* carry) -> W {
  232|  70.4M|#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_addc)
  233|  70.4M|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (233:7): [True: 70.4M, Folded]
  ------------------
  234|       |      if constexpr(std::same_as<W, unsigned int>) {
  235|       |         return __builtin_addc(x, y, *carry & 1, carry);
  236|  70.4M|      } else if constexpr(std::same_as<W, unsigned long>) {
  237|  70.4M|         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|  70.4M|   }
  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|  70.4M|   } else {
  255|  70.4M|      const W cb = *carry & 1;
  256|  70.4M|      W z = x + y;
  257|  70.4M|      W c1 = (z < x);
  258|  70.4M|      z += cb;
  259|  70.4M|      *carry = c1 | (z < cb);
  260|  70.4M|      return z;
  261|  70.4M|   }
  262|  70.4M|}
_ZN5Botan10word8_sub2ITkNS_8WordTypeEmEET_PS1_PKS1_S1_:
  345|  1.39M|inline constexpr auto word8_sub2(W x[8], const W y[8], W carry) -> W {
  346|  1.39M|#if defined(BOTAN_MP_USE_X86_64_ASM)
  347|  1.39M|   if(std::same_as<W, uint64_t> && !std::is_constant_evaluated()) {
  ------------------
  |  Branch (347:7): [True: 0, Folded]
  |  Branch (347:36): [True: 0, Folded]
  ------------------
  348|  1.39M|      asm volatile(ADD_OR_SUBTRACT(DO_8_TIMES(ADDSUB2_OP, "sbbq"))
  349|  1.39M|                   : [carry] "=r"(carry)
  350|  1.39M|                   : [x] "r"(x), [y] "r"(y), "0"(carry)
  351|  1.39M|                   : "cc", "memory");
  352|  1.39M|      return carry;
  353|  1.39M|   }
  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|  1.39M|}
_ZN5Botan8word_subITkNS_8WordTypeEmEET_S1_S1_PS1_:
  320|   255M|inline constexpr auto word_sub(W x, W y, W* carry) -> W {
  321|   255M|#if BOTAN_COMPILER_HAS_BUILTIN(__builtin_subc)
  322|   255M|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (322:7): [True: 255M, Folded]
  ------------------
  323|       |      if constexpr(std::same_as<W, unsigned int>) {
  324|       |         return __builtin_subc(x, y, *carry & 1, carry);
  325|   255M|      } else if constexpr(std::same_as<W, unsigned long>) {
  326|   255M|         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|   255M|   }
  331|      0|#endif
  332|       |
  333|      0|   const W cb = *carry & 1;
  334|   255M|   W t0 = x - y;
  335|   255M|   W c1 = (t0 > x);
  336|   255M|   W z = t0 - cb;
  337|   255M|   *carry = c1 | (z > t0);
  338|   255M|   return z;
  339|   255M|}
_ZN5Botan10word8_sub3ITkNS_8WordTypeEmEET_PS1_PKS1_S4_S1_:
  371|  14.6M|inline constexpr auto word8_sub3(W z[8], const W x[8], const W y[8], W carry) -> W {
  372|  14.6M|#if defined(BOTAN_MP_USE_X86_64_ASM)
  373|  14.6M|   if(std::same_as<W, uint64_t> && !std::is_constant_evaluated()) {
  ------------------
  |  Branch (373:7): [True: 0, Folded]
  |  Branch (373:36): [True: 0, Folded]
  ------------------
  374|  14.6M|      asm volatile(ADD_OR_SUBTRACT(DO_8_TIMES(ADDSUB3_OP, "sbbq"))
  375|  14.6M|                   : [carry] "=r"(carry)
  376|  14.6M|                   : [x] "r"(x), [y] "r"(y), [z] "r"(z), "0"(carry)
  377|  14.6M|                   : "cc", "memory");
  378|  14.6M|      return carry;
  379|  14.6M|   }
  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|  14.6M|}
_ZN5Botan10word8_add3ITkNS_8WordTypeEmEET_PS1_PKS1_S4_S1_:
  294|  1.49M|inline constexpr auto word8_add3(W z[8], const W x[8], const W y[8], W carry) -> W {
  295|  1.49M|#if defined(BOTAN_MP_USE_X86_64_ASM)
  296|  1.49M|   if(std::same_as<W, uint64_t> && !std::is_constant_evaluated()) {
  ------------------
  |  Branch (296:7): [True: 0, Folded]
  |  Branch (296:36): [True: 0, Folded]
  ------------------
  297|  1.49M|      asm volatile(ADD_OR_SUBTRACT(DO_8_TIMES(ADDSUB3_OP, "adcq"))
  298|  1.49M|                   : [carry] "=r"(carry)
  299|  1.49M|                   : [x] "r"(x), [y] "r"(y), [z] "r"(z), "0"(carry)
  300|  1.49M|                   : "cc", "memory");
  301|  1.49M|      return carry;
  302|  1.49M|   }
  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|  1.49M|}
_ZN5Botan13word8_linmul3ITkNS_8WordTypeEmEET_PS1_PKS1_S1_S1_:
  397|  23.5k|inline constexpr auto word8_linmul3(W z[8], const W x[8], W y, W carry) -> W {
  398|  23.5k|#if defined(BOTAN_MP_USE_X86_64_ASM)
  399|  23.5k|   if(std::same_as<W, uint64_t> && !std::is_constant_evaluated()) {
  ------------------
  |  Branch (399:7): [True: 0, Folded]
  |  Branch (399:36): [True: 0, Folded]
  ------------------
  400|  23.5k|      asm(DO_8_TIMES(LINMUL_OP, "z")
  401|  23.5k|          : [carry] "=r"(carry)
  402|  23.5k|          : [z] "r"(z), [x] "r"(x), [y] "rm"(y), "0"(carry)
  403|  23.5k|          : "cc", "%rax", "%rdx", "memory");
  404|  23.5k|      return carry;
  405|  23.5k|   }
  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|  23.5k|}
_ZN5Botan10word_madd2ITkNS_8WordTypeEmEET_S1_S1_PS1_:
   90|  12.4M|inline constexpr auto word_madd2(W a, W b, W* c) -> W {
   91|  12.4M|#if defined(BOTAN_MP_USE_X86_64_ASM)
   92|  12.4M|   if(std::same_as<W, uint64_t> && !std::is_constant_evaluated()) {
  ------------------
  |  Branch (92:7): [True: 0, Folded]
  |  Branch (92:36): [True: 0, Folded]
  ------------------
   93|  12.4M|      asm(R"(
   94|  12.4M|         mulq %[b]
   95|  12.4M|         addq %[c],%[a]
   96|  12.4M|         adcq $0,%[carry]
   97|  12.4M|         )"
   98|  12.4M|          : [a] "=a"(a), [b] "=rm"(b), [carry] "=&d"(*c)
   99|  12.4M|          : "0"(a), "1"(b), [c] "g"(*c)
  100|  12.4M|          : "cc");
  101|       |
  102|  12.4M|      return a;
  103|  12.4M|   }
  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|  12.4M|}
_ZN5Botan11word8_madd3ITkNS_8WordTypeEmEET_PS1_PKS1_S1_S1_:
  423|  24.0M|inline constexpr auto word8_madd3(W z[8], const W x[8], W y, W carry) -> W {
  424|  24.0M|#if defined(BOTAN_MP_USE_X86_64_ASM)
  425|  24.0M|   if(std::same_as<W, uint64_t> && !std::is_constant_evaluated()) {
  ------------------
  |  Branch (425:7): [True: 0, Folded]
  |  Branch (425:36): [True: 0, Folded]
  ------------------
  426|  24.0M|      asm(DO_8_TIMES(MULADD_OP, "")
  427|  24.0M|          : [carry] "=r"(carry)
  428|  24.0M|          : [z] "r"(z), [x] "r"(x), [y] "rm"(y), "0"(carry)
  429|  24.0M|          : "cc", "%rax", "%rdx", "memory");
  430|  24.0M|      return carry;
  431|  24.0M|   }
  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|  24.0M|}
_ZN5Botan10word_madd3ITkNS_8WordTypeEmEET_S1_S1_S1_PS1_:
  133|   157M|inline constexpr auto word_madd3(W a, W b, W c, W* d) -> W {
  134|   157M|#if defined(BOTAN_MP_USE_X86_64_ASM)
  135|   157M|   if(std::same_as<W, uint64_t> && !std::is_constant_evaluated()) {
  ------------------
  |  Branch (135:7): [True: 0, Folded]
  |  Branch (135:36): [True: 0, Folded]
  ------------------
  136|   157M|      asm(R"(
  137|   157M|         mulq %[b]
  138|   157M|
  139|   157M|         addq %[c],%[a]
  140|   157M|         adcq $0,%[carry]
  141|   157M|
  142|   157M|         addq %[d],%[a]
  143|   157M|         adcq $0,%[carry]
  144|   157M|         )"
  145|   157M|          : [a] "=a"(a), [b] "=rm"(b), [carry] "=&d"(*d)
  146|   157M|          : "0"(a), "1"(b), [c] "g"(c), [d] "g"(*d)
  147|   157M|          : "cc");
  148|       |
  149|   157M|      return a;
  150|   157M|   }
  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|   157M|}
_ZN5Botan5word3ImE3mulEmm:
  460|  1.45G|      inline constexpr void mul(W x, W y) { m_w += static_cast<W3>(x) * y; }
_ZN5Botan5word3ImE7extractEv:
  466|   464M|      inline constexpr W extract() {
  467|   464M|         W r = static_cast<W>(m_w);
  468|   464M|         m_w >>= WordInfo<W>::bits;
  469|   464M|         return r;
  470|   464M|      }
_ZN5Botan5word3ImE3addEm:
  464|   276M|      inline constexpr void add(W x) { m_w += x; }
_ZN5Botan5word3ImE10monty_stepEmm:
  472|   138M|      inline constexpr W monty_step(W p0, W p_dash) {
  473|   138M|         const W w0 = static_cast<W>(m_w);
  474|   138M|         const W r = w0 * p_dash;
  475|   138M|         mul(r, p0);
  476|   138M|         m_w >>= WordInfo<W>::bits;
  477|   138M|         return r;
  478|   138M|      }
_ZN5Botan5word3ImEC2Ev:
  458|  57.3M|      constexpr word3() : m_w(0) {}
_ZN5Botan5word3ImE6mul_x2Emm:
  462|   101M|      inline constexpr void mul_x2(W x, W y) { m_w += static_cast<W3>(x) * y * 2; }

_ZN5Botan11bigint_add2ITkNS_8WordTypeEmEET_PS1_mPKS1_m:
   94|   164k|inline constexpr auto bigint_add2(W x[], size_t x_size, const W y[], size_t y_size) -> W {
   95|   164k|   W carry = 0;
   96|       |
   97|   164k|   BOTAN_ASSERT(x_size >= y_size, "Expected sizes");
  ------------------
  |  |   64|   164k|   do {                                                                                 \
  |  |   65|   164k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|   164k|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 164k]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|   164k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 164k]
  |  |  ------------------
  ------------------
   98|       |
   99|   164k|   const size_t blocks = y_size - (y_size % 8);
  100|       |
  101|   165k|   for(size_t i = 0; i != blocks; i += 8) {
  ------------------
  |  Branch (101:22): [True: 471, False: 164k]
  ------------------
  102|    471|      carry = word8_add2(x + i, y + i, carry);
  103|    471|   }
  104|       |
  105|   493k|   for(size_t i = blocks; i != y_size; ++i) {
  ------------------
  |  Branch (105:27): [True: 329k, False: 164k]
  ------------------
  106|   329k|      x[i] = word_add(x[i], y[i], &carry);
  107|   329k|   }
  108|       |
  109|   503k|   for(size_t i = y_size; i != x_size; ++i) {
  ------------------
  |  Branch (109:27): [True: 338k, False: 164k]
  ------------------
  110|   338k|      x[i] = word_add(x[i], static_cast<W>(0), &carry);
  111|   338k|   }
  112|       |
  113|   164k|   return carry;
  114|   164k|}
_ZN5Botan10bigint_cmpITkNS_8WordTypeEmEEiPKT_mS3_m:
  439|  3.10M|inline constexpr int32_t bigint_cmp(const W x[], size_t x_size, const W y[], size_t y_size) {
  440|  3.10M|   static_assert(sizeof(W) >= sizeof(uint32_t), "Size assumption");
  441|       |
  442|  3.10M|   const W LT = static_cast<W>(-1);
  443|  3.10M|   const W EQ = 0;
  444|  3.10M|   const W GT = 1;
  445|       |
  446|  3.10M|   const size_t common_elems = std::min(x_size, y_size);
  447|       |
  448|  3.10M|   W result = EQ;  // until found otherwise
  449|       |
  450|  25.5M|   for(size_t i = 0; i != common_elems; i++) {
  ------------------
  |  Branch (450:22): [True: 22.4M, False: 3.10M]
  ------------------
  451|  22.4M|      const auto is_eq = CT::Mask<W>::is_equal(x[i], y[i]);
  452|  22.4M|      const auto is_lt = CT::Mask<W>::is_lt(x[i], y[i]);
  453|       |
  454|  22.4M|      result = is_eq.select(result, is_lt.select(LT, GT));
  455|  22.4M|   }
  456|       |
  457|  3.10M|   if(x_size < y_size) {
  ------------------
  |  Branch (457:7): [True: 4.75k, False: 3.09M]
  ------------------
  458|  4.75k|      W mask = 0;
  459|  15.5k|      for(size_t i = x_size; i != y_size; i++) {
  ------------------
  |  Branch (459:30): [True: 10.7k, False: 4.75k]
  ------------------
  460|  10.7k|         mask |= y[i];
  461|  10.7k|      }
  462|       |
  463|       |      // If any bits were set in high part of y, then x < y
  464|  4.75k|      result = CT::Mask<W>::is_zero(mask).select(result, LT);
  465|  3.09M|   } else if(y_size < x_size) {
  ------------------
  |  Branch (465:14): [True: 16.4k, False: 3.08M]
  ------------------
  466|  16.4k|      W mask = 0;
  467|  59.9k|      for(size_t i = y_size; i != x_size; i++) {
  ------------------
  |  Branch (467:30): [True: 43.4k, False: 16.4k]
  ------------------
  468|  43.4k|         mask |= x[i];
  469|  43.4k|      }
  470|       |
  471|       |      // If any bits were set in high part of x, then x > y
  472|  16.4k|      result = CT::Mask<W>::is_zero(mask).select(result, GT);
  473|  16.4k|   }
  474|       |
  475|  3.10M|   CT::unpoison(result);
  476|  3.10M|   BOTAN_DEBUG_ASSERT(result == LT || result == GT || result == EQ);
  ------------------
  |  |  130|  3.10M|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  3.10M|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 3.10M]
  |  |  ------------------
  ------------------
  477|  3.10M|   return static_cast<int32_t>(result);
  478|  3.10M|}
_ZN5Botan11bigint_sub2ITkNS_8WordTypeEmEET_PS1_mPKS1_m:
  148|  3.01M|inline constexpr auto bigint_sub2(W x[], size_t x_size, const W y[], size_t y_size) -> W {
  149|  3.01M|   W borrow = 0;
  150|       |
  151|  3.01M|   BOTAN_ASSERT(x_size >= y_size, "Expected sizes");
  ------------------
  |  |   64|  3.01M|   do {                                                                                 \
  |  |   65|  3.01M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|  3.01M|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 3.01M]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|  3.01M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 3.01M]
  |  |  ------------------
  ------------------
  152|       |
  153|  3.01M|   const size_t blocks = y_size - (y_size % 8);
  154|       |
  155|  4.40M|   for(size_t i = 0; i != blocks; i += 8) {
  ------------------
  |  Branch (155:22): [True: 1.39M, False: 3.01M]
  ------------------
  156|  1.39M|      borrow = word8_sub2(x + i, y + i, borrow);
  157|  1.39M|   }
  158|       |
  159|  17.0M|   for(size_t i = blocks; i != y_size; ++i) {
  ------------------
  |  Branch (159:27): [True: 13.9M, False: 3.01M]
  ------------------
  160|  13.9M|      x[i] = word_sub(x[i], y[i], &borrow);
  161|  13.9M|   }
  162|       |
  163|  3.02M|   for(size_t i = y_size; i != x_size; ++i) {
  ------------------
  |  Branch (163:27): [True: 8.98k, False: 3.01M]
  ------------------
  164|  8.98k|      x[i] = word_sub(x[i], static_cast<W>(0), &borrow);
  165|  8.98k|   }
  166|       |
  167|  3.01M|   return borrow;
  168|  3.01M|}
_ZN5Botan15bigint_sub2_revITkNS_8WordTypeEmEEvPT_PKS1_m:
  174|  2.48k|inline constexpr void bigint_sub2_rev(W x[], const W y[], size_t y_size) {
  175|  2.48k|   W borrow = 0;
  176|       |
  177|  10.1k|   for(size_t i = 0; i != y_size; ++i) {
  ------------------
  |  Branch (177:22): [True: 7.68k, False: 2.48k]
  ------------------
  178|  7.68k|      x[i] = word_sub(y[i], x[i], &borrow);
  179|  7.68k|   }
  180|       |
  181|  2.48k|   BOTAN_ASSERT(borrow == 0, "y must be greater than x");
  ------------------
  |  |   64|  2.48k|   do {                                                                                 \
  |  |   65|  2.48k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|  2.48k|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 2.48k]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|  2.48k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 2.48k]
  |  |  ------------------
  ------------------
  182|  2.48k|}
_ZN5Botan11bigint_sub3ITkNS_8WordTypeEmEET_PS1_PKS1_mS4_m:
  192|  16.9M|inline constexpr auto bigint_sub3(W z[], const W x[], size_t x_size, const W y[], size_t y_size) -> W {
  193|  16.9M|   W borrow = 0;
  194|       |
  195|  16.9M|   BOTAN_ASSERT(x_size >= y_size, "Expected sizes");
  ------------------
  |  |   64|  16.9M|   do {                                                                                 \
  |  |   65|  16.9M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|  16.9M|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 16.9M]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|  16.9M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 16.9M]
  |  |  ------------------
  ------------------
  196|       |
  197|  16.9M|   const size_t blocks = y_size - (y_size % 8);
  198|       |
  199|  23.5M|   for(size_t i = 0; i != blocks; i += 8) {
  ------------------
  |  Branch (199:22): [True: 6.56M, False: 16.9M]
  ------------------
  200|  6.56M|      borrow = word8_sub3(z + i, x + i, y + i, borrow);
  201|  6.56M|   }
  202|       |
  203|  66.3M|   for(size_t i = blocks; i != y_size; ++i) {
  ------------------
  |  Branch (203:27): [True: 49.4M, False: 16.9M]
  ------------------
  204|  49.4M|      z[i] = word_sub(x[i], y[i], &borrow);
  205|  49.4M|   }
  206|       |
  207|  27.4M|   for(size_t i = y_size; i != x_size; ++i) {
  ------------------
  |  Branch (207:27): [True: 10.4M, False: 16.9M]
  ------------------
  208|  10.4M|      z[i] = word_sub(x[i], static_cast<W>(0), &borrow);
  209|  10.4M|   }
  210|       |
  211|  16.9M|   return borrow;
  212|  16.9M|}
_ZN5Botan11bigint_add3ITkNS_8WordTypeEmEET_PS1_PKS1_mS4_m:
  120|  5.39M|inline constexpr auto bigint_add3(W z[], const W x[], size_t x_size, const W y[], size_t y_size) -> W {
  121|  5.39M|   if(x_size < y_size) {
  ------------------
  |  Branch (121:7): [True: 21.2k, False: 5.37M]
  ------------------
  122|  21.2k|      return bigint_add3(z, y, y_size, x, x_size);
  123|  21.2k|   }
  124|       |
  125|  5.37M|   W carry = 0;
  126|       |
  127|  5.37M|   const size_t blocks = y_size - (y_size % 8);
  128|       |
  129|  6.86M|   for(size_t i = 0; i != blocks; i += 8) {
  ------------------
  |  Branch (129:22): [True: 1.49M, False: 5.37M]
  ------------------
  130|  1.49M|      carry = word8_add3(z + i, x + i, y + i, carry);
  131|  1.49M|   }
  132|       |
  133|  21.9M|   for(size_t i = blocks; i != y_size; ++i) {
  ------------------
  |  Branch (133:27): [True: 16.6M, False: 5.37M]
  ------------------
  134|  16.6M|      z[i] = word_add(x[i], y[i], &carry);
  135|  16.6M|   }
  136|       |
  137|  5.48M|   for(size_t i = y_size; i != x_size; ++i) {
  ------------------
  |  Branch (137:27): [True: 113k, False: 5.37M]
  ------------------
  138|   113k|      z[i] = word_add(x[i], static_cast<W>(0), &carry);
  139|   113k|   }
  140|       |
  141|  5.37M|   return carry;
  142|  5.39M|}
_ZN5Botan14bigint_cnd_addITkNS_8WordTypeEmEET_S1_PS1_PKS1_m:
   45|  5.50M|inline constexpr W bigint_cnd_add(W cnd, W x[], const W y[], size_t size) {
   46|  5.50M|   const auto mask = CT::Mask<W>::expand(cnd).value();
   47|       |
   48|  5.50M|   W carry = 0;
   49|       |
   50|  29.4M|   for(size_t i = 0; i != size; ++i) {
  ------------------
  |  Branch (50:22): [True: 23.9M, False: 5.50M]
  ------------------
   51|  23.9M|      x[i] = word_add(x[i], y[i] & mask, &carry);
   52|  23.9M|   }
   53|       |
   54|  5.50M|   return (mask & carry);
   55|  5.50M|}
_ZN5Botan14bigint_linmul3ITkNS_8WordTypeEmEEvPT_PKS1_mS1_:
  416|  77.1k|inline constexpr void bigint_linmul3(W z[], const W x[], size_t x_size, W y) {
  417|  77.1k|   const size_t blocks = x_size - (x_size % 8);
  418|       |
  419|  77.1k|   W carry = 0;
  420|       |
  421|   100k|   for(size_t i = 0; i != blocks; i += 8) {
  ------------------
  |  Branch (421:22): [True: 23.5k, False: 77.1k]
  ------------------
  422|  23.5k|      carry = word8_linmul3(z + i, x + i, y, carry);
  423|  23.5k|   }
  424|       |
  425|   346k|   for(size_t i = blocks; i != x_size; ++i) {
  ------------------
  |  Branch (425:27): [True: 269k, False: 77.1k]
  ------------------
  426|   269k|      z[i] = word_madd2(x[i], y, &carry);
  427|   269k|   }
  428|       |
  429|  77.1k|   z[x_size] = carry;
  430|  77.1k|}
_ZN5Botan14bigint_linmul2ITkNS_8WordTypeEmEET_PS1_mS1_:
  405|  1.20M|[[nodiscard]] inline constexpr auto bigint_linmul2(W x[], size_t x_size, W y) -> W {
  406|  1.20M|   W carry = 0;
  407|       |
  408|  12.9M|   for(size_t i = 0; i != x_size; ++i) {
  ------------------
  |  Branch (408:22): [True: 11.7M, False: 1.20M]
  ------------------
  409|  11.7M|      x[i] = word_madd2(x[i], y, &carry);
  410|  11.7M|   }
  411|       |
  412|  1.20M|   return carry;
  413|  1.20M|}
_ZN5Botan14divide_precompImEC2Em:
  574|  61.7k|      explicit constexpr divide_precomp(W divisor) : m_divisor(divisor) {
  575|  61.7k|         BOTAN_ARG_CHECK(m_divisor != 0, "Division by zero");
  ------------------
  |  |   35|  61.7k|   do {                                                          \
  |  |   36|  61.7k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  61.7k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 61.7k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  61.7k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 61.7k]
  |  |  ------------------
  ------------------
  576|  61.7k|      }
_ZNK5Botan14divide_precompImE16vartime_mod_2to1Emm:
  644|  34.3k|      inline constexpr W vartime_mod_2to1(W n1, W n0) const {
  645|  34.3k|         BOTAN_ASSERT_NOMSG(n1 < m_divisor);
  ------------------
  |  |   77|  34.3k|   do {                                                                     \
  |  |   78|  34.3k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  34.3k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 34.3k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  34.3k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 34.3k]
  |  |  ------------------
  ------------------
  646|  34.3k|         W q = this->vartime_div_2to1(n1, n0);
  647|  34.3k|         W carry = 0;
  648|  34.3k|         q = word_madd2(q, m_divisor, &carry);
  649|  34.3k|         return (n0 - q);
  650|  34.3k|      }
_ZNK5Botan14divide_precompImE16vartime_div_2to1Emm:
  581|   133k|      inline constexpr W vartime_div_2to1(W n1, W n0) const {
  582|   133k|         BOTAN_ASSERT_NOMSG(n1 < m_divisor);
  ------------------
  |  |   77|   133k|   do {                                                                     \
  |  |   78|   133k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|   133k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 133k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|   133k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 133k]
  |  |  ------------------
  ------------------
  583|       |
  584|   133k|         if(m_divisor == WordInfo<W>::max) {
  ------------------
  |  Branch (584:13): [True: 44.6k, False: 89.1k]
  ------------------
  585|  44.6k|            return vartime_div_2to1_max_d(n1, n0);
  586|  44.6k|         }
  587|       |
  588|  89.1k|         if(m_divisor == WordInfo<W>::top_bit) {
  ------------------
  |  Branch (588:13): [True: 4.31k, False: 84.8k]
  ------------------
  589|       |            // Simply a shift by N-1 bits
  590|  4.31k|            return (n1 << 1) | (n0 >> (WordInfo<W>::bits - 1));
  591|  4.31k|         }
  592|       |
  593|  84.8k|         if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (593:13): [True: 84.8k, Folded]
  ------------------
  594|  84.8k|#if defined(BOTAN_MP_USE_X86_64_ASM)
  595|  84.8k|            if constexpr(std::same_as<W, uint64_t>) {
  596|  84.8k|               W quotient = 0;
  597|  84.8k|               W remainder = 0;
  598|       |               // NOLINTNEXTLINE(*-no-assembler)
  599|  84.8k|               asm("divq %[v]" : "=a"(quotient), "=d"(remainder) : [v] "r"(m_divisor), "a"(n0), "d"(n1) : "cc");
  600|  84.8k|               return quotient;
  601|  84.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|  84.8k|            if constexpr(WordInfo<W>::dword_is_native) {
  614|  84.8k|               typename WordInfo<W>::dword n = n1;
  615|  84.8k|               n <<= WordInfo<W>::bits;
  616|  84.8k|               n |= n0;
  617|  84.8k|               return static_cast<W>(n / m_divisor);
  618|  84.8k|            }
  619|  84.8k|#endif
  620|  84.8k|         }
  621|       |
  622|      0|         W high = n1;
  623|  84.8k|         W quotient = 0;
  624|       |
  625|  84.8k|         for(size_t i = 0; i != WordInfo<W>::bits; ++i) {
  ------------------
  |  Branch (625:28): [True: 0, False: 84.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|  84.8k|         return quotient;
  639|  89.1k|      }
_ZN5Botan14divide_precompImE22vartime_div_2to1_max_dEmm:
  657|  44.6k|      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|  44.6k|         const W s = n0 + n1;
  684|       |         // did n0 + n1 overflow? or does (n0 + n1) == 2^k - 1? if either, c == 1
  685|  44.6k|         if(s < n0 || s == WordInfo<W>::max) {
  ------------------
  |  Branch (685:13): [True: 7.07k, False: 37.5k]
  |  Branch (685:23): [True: 60, False: 37.4k]
  ------------------
  686|  7.13k|            n1 += 1;
  687|  7.13k|         }
  688|       |
  689|  44.6k|         return n1;
  690|  44.6k|      }
_ZN5Botan11bigint_shl1ITkNS_8WordTypeEmEEvPT_mmm:
  309|   342k|inline constexpr void bigint_shl1(W x[], size_t x_size, size_t x_words, size_t shift) {
  310|   342k|   const size_t word_shift = shift / WordInfo<W>::bits;
  311|   342k|   const size_t bit_shift = shift % WordInfo<W>::bits;
  312|       |
  313|   342k|   BOTAN_ASSERT_NOMSG(word_shift <= x_size);
  ------------------
  |  |   77|   342k|   do {                                                                     \
  |  |   78|   342k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|   342k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 342k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|   342k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 342k]
  |  |  ------------------
  ------------------
  314|   342k|   BOTAN_ASSERT_NOMSG(x_words <= x_size - word_shift);
  ------------------
  |  |   77|   342k|   do {                                                                     \
  |  |   78|   342k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|   342k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 342k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|   342k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 342k]
  |  |  ------------------
  ------------------
  315|       |
  316|   342k|   unchecked_copy_memory(x + word_shift, x, x_words);
  317|   342k|   zeroize_buffer(x, word_shift);
  318|       |
  319|   342k|   const auto carry_mask = CT::Mask<W>::expand(bit_shift);
  320|   342k|   const W carry_shift = carry_mask.if_set_return(WordInfo<W>::bits - bit_shift);
  321|       |
  322|   342k|   W carry = 0;
  323|  3.36M|   for(size_t i = word_shift; i != x_size; ++i) {
  ------------------
  |  Branch (323:31): [True: 3.02M, False: 342k]
  ------------------
  324|  3.02M|      const W w = x[i];
  325|  3.02M|      x[i] = (w << bit_shift) | carry;
  326|  3.02M|      carry = carry_mask.if_set_return(w >> carry_shift);
  327|  3.02M|   }
  328|   342k|}
_ZN5Botan11bigint_shr1ITkNS_8WordTypeEmEEvPT_mm:
  331|  2.03M|inline constexpr void bigint_shr1(W x[], size_t x_size, size_t shift) {
  332|  2.03M|   const size_t word_shift = shift / WordInfo<W>::bits;
  333|  2.03M|   const size_t bit_shift = shift % WordInfo<W>::bits;
  334|       |
  335|  2.03M|   const size_t top = x_size >= word_shift ? (x_size - word_shift) : 0;
  ------------------
  |  Branch (335:23): [True: 2.03M, False: 0]
  ------------------
  336|       |
  337|  2.03M|   if(top > 0) {
  ------------------
  |  Branch (337:7): [True: 2.03M, False: 0]
  ------------------
  338|  2.03M|      unchecked_copy_memory(x, x + word_shift, top);
  339|  2.03M|   }
  340|  2.03M|   zeroize_buffer(x + top, std::min(word_shift, x_size));
  341|       |
  342|  2.03M|   const auto carry_mask = CT::Mask<W>::expand(bit_shift);
  343|  2.03M|   const W carry_shift = carry_mask.if_set_return(WordInfo<W>::bits - bit_shift);
  344|       |
  345|  2.03M|   W carry = 0;
  346|       |
  347|  26.6M|   for(size_t i = 0; i != top; ++i) {
  ------------------
  |  Branch (347:22): [True: 24.6M, False: 2.03M]
  ------------------
  348|  24.6M|      const W w = x[top - i - 1];
  349|  24.6M|      x[top - i - 1] = (w >> bit_shift) | carry;
  350|  24.6M|      carry = carry_mask.if_set_return(w << carry_shift);
  351|  24.6M|   }
  352|  2.03M|}
_ZN5Botan17bigint_monty_redcEPmPKmS2_mmS0_m:
  924|  28.6M|   word r[], const word z[], const word p[], size_t p_size, word p_dash, word ws[], size_t ws_size) {
  925|  28.6M|   const size_t z_size = 2 * p_size;
  926|       |
  927|  28.6M|   BOTAN_ARG_CHECK(ws_size >= p_size, "Montgomery reduction workspace too small");
  ------------------
  |  |   35|  28.6M|   do {                                                          \
  |  |   36|  28.6M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  28.6M|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 28.6M]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  28.6M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 28.6M]
  |  |  ------------------
  ------------------
  928|       |
  929|  28.6M|   if(p_size == 4) {
  ------------------
  |  Branch (929:7): [True: 17.2M, False: 11.4M]
  ------------------
  930|  17.2M|      bigint_monty_redc_4(r, z, p, p_dash, ws);
  931|  17.2M|   } else if(p_size == 6) {
  ------------------
  |  Branch (931:14): [True: 14.9k, False: 11.4M]
  ------------------
  932|  14.9k|      bigint_monty_redc_6(r, z, p, p_dash, ws);
  933|  11.4M|   } else if(p_size == 8) {
  ------------------
  |  Branch (933:14): [True: 864, False: 11.4M]
  ------------------
  934|    864|      bigint_monty_redc_8(r, z, p, p_dash, ws);
  935|  11.4M|   } else if(p_size == 12) {
  ------------------
  |  Branch (935:14): [True: 0, False: 11.4M]
  ------------------
  936|      0|      bigint_monty_redc_12(r, z, p, p_dash, ws);
  937|  11.4M|   } else if(p_size == 16) {
  ------------------
  |  Branch (937:14): [True: 0, False: 11.4M]
  ------------------
  938|      0|      bigint_monty_redc_16(r, z, p, p_dash, ws);
  939|  11.4M|   } else if(p_size == 24) {
  ------------------
  |  Branch (939:14): [True: 0, False: 11.4M]
  ------------------
  940|      0|      bigint_monty_redc_24(r, z, p, p_dash, ws);
  941|  11.4M|   } else if(p_size == 32) {
  ------------------
  |  Branch (941:14): [True: 0, False: 11.4M]
  ------------------
  942|      0|      bigint_monty_redc_32(r, z, p, p_dash, ws);
  943|  11.4M|   } else {
  944|  11.4M|      bigint_monty_redc_generic(r, z, z_size, p, p_size, p_dash, ws);
  945|  11.4M|   }
  946|  28.6M|}
_ZN5Botan25bigint_monty_redc_inplaceEPmPKmmmS0_m:
  948|  14.4M|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|  14.4M|   bigint_monty_redc(z, z, p, p_size, p_dash, ws, ws_size);
  950|  14.4M|   zeroize_buffer(z + p_size, p_size);
  951|  14.4M|}
_ZN5Botan11bigint_shl2ITkNS_8WordTypeEmEEvPT_mPKS1_mm:
  355|  44.6k|inline constexpr void bigint_shl2(W y[], size_t y_size, const W x[], size_t x_size, size_t shift) {
  356|  44.6k|   const size_t word_shift = shift / WordInfo<W>::bits;
  357|  44.6k|   const size_t bit_shift = shift % WordInfo<W>::bits;
  358|       |
  359|  44.6k|   BOTAN_ASSERT_NOMSG(word_shift <= y_size);
  ------------------
  |  |   77|  44.6k|   do {                                                                     \
  |  |   78|  44.6k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  44.6k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 44.6k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  44.6k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 44.6k]
  |  |  ------------------
  ------------------
  360|  44.6k|   BOTAN_ASSERT_NOMSG(x_size < y_size - word_shift);
  ------------------
  |  |   77|  44.6k|   do {                                                                     \
  |  |   78|  44.6k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  44.6k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 44.6k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  44.6k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 44.6k]
  |  |  ------------------
  ------------------
  361|       |
  362|  44.6k|   unchecked_copy_memory(y + word_shift, x, x_size);
  363|  44.6k|   zeroize_buffer(y, word_shift);
  364|  44.6k|   zeroize_buffer(y + word_shift + x_size, y_size - word_shift - x_size);
  365|       |
  366|  44.6k|   const auto carry_mask = CT::Mask<W>::expand(bit_shift);
  367|  44.6k|   const W carry_shift = carry_mask.if_set_return(WordInfo<W>::bits - bit_shift);
  368|       |
  369|  44.6k|   W carry = 0;
  370|   257k|   for(size_t i = word_shift; i != x_size + word_shift + 1; ++i) {
  ------------------
  |  Branch (370:31): [True: 213k, False: 44.6k]
  ------------------
  371|   213k|      const W w = y[i];
  372|   213k|      y[i] = (w << bit_shift) | carry;
  373|   213k|      carry = carry_mask.if_set_return(w >> carry_shift);
  374|   213k|   }
  375|  44.6k|}
_ZN5Botan11bigint_shr2ITkNS_8WordTypeEmEEvPT_mPKS1_mm:
  378|  1.85k|inline constexpr void bigint_shr2(W y[], size_t y_size, const W x[], size_t x_size, size_t shift) {
  379|  1.85k|   const size_t word_shift = shift / WordInfo<W>::bits;
  380|  1.85k|   const size_t bit_shift = shift % WordInfo<W>::bits;
  381|  1.85k|   const size_t new_size = x_size < word_shift ? 0 : (x_size - word_shift);
  ------------------
  |  Branch (381:28): [True: 0, False: 1.85k]
  ------------------
  382|       |
  383|  1.85k|   BOTAN_ASSERT_NOMSG(new_size <= y_size);
  ------------------
  |  |   77|  1.85k|   do {                                                                     \
  |  |   78|  1.85k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  1.85k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 1.85k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  1.85k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 1.85k]
  |  |  ------------------
  ------------------
  384|       |
  385|  1.85k|   if(new_size > 0) {
  ------------------
  |  Branch (385:7): [True: 1.85k, False: 0]
  ------------------
  386|  1.85k|      unchecked_copy_memory(y, x + word_shift, new_size);
  387|  1.85k|   }
  388|  1.85k|   zeroize_buffer(y + new_size, y_size - new_size);
  389|       |
  390|  1.85k|   const auto carry_mask = CT::Mask<W>::expand(bit_shift);
  391|  1.85k|   const W carry_shift = carry_mask.if_set_return(WordInfo<W>::bits - bit_shift);
  392|       |
  393|  1.85k|   W carry = 0;
  394|  11.1k|   for(size_t i = new_size; i > 0; --i) {
  ------------------
  |  Branch (394:29): [True: 9.33k, False: 1.85k]
  ------------------
  395|  9.33k|      W w = y[i - 1];
  396|  9.33k|      y[i - 1] = (w >> bit_shift) | carry;
  397|  9.33k|      carry = carry_mask.if_set_return(w << carry_shift);
  398|  9.33k|   }
  399|  1.85k|}
_ZN5Botan15bigint_ct_is_eqITkNS_8WordTypeEmEENS_2CT4MaskIT_EEPKS3_mS6_m:
  519|  32.0k|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|  32.0k|   const size_t common_elems = std::min(x_size, y_size);
  521|       |
  522|  32.0k|   W diff = 0;
  523|       |
  524|   345k|   for(size_t i = 0; i != common_elems; i++) {
  ------------------
  |  Branch (524:22): [True: 313k, False: 32.0k]
  ------------------
  525|   313k|      diff |= (x[i] ^ y[i]);
  526|   313k|   }
  527|       |
  528|       |   // If any bits were set in high part of x/y, then they are not equal
  529|  32.0k|   if(x_size < y_size) {
  ------------------
  |  Branch (529:7): [True: 325, False: 31.7k]
  ------------------
  530|  2.14k|      for(size_t i = x_size; i != y_size; i++) {
  ------------------
  |  Branch (530:30): [True: 1.81k, False: 325]
  ------------------
  531|  1.81k|         diff |= y[i];
  532|  1.81k|      }
  533|  31.7k|   } else if(y_size < x_size) {
  ------------------
  |  Branch (533:14): [True: 22.3k, False: 9.40k]
  ------------------
  534|   133k|      for(size_t i = y_size; i != x_size; i++) {
  ------------------
  |  Branch (534:30): [True: 110k, False: 22.3k]
  ------------------
  535|   110k|         diff |= x[i];
  536|   110k|      }
  537|  22.3k|   }
  538|       |
  539|  32.0k|   return CT::Mask<W>::is_zero(diff);
  540|  32.0k|}
_ZN5Botan15bigint_ct_is_ltITkNS_8WordTypeEmEENS_2CT4MaskIT_EEPKS3_mS6_mb:
  487|  2.70M|   -> CT::Mask<W> {
  488|  2.70M|   const size_t common_elems = std::min(x_size, y_size);
  489|       |
  490|  2.70M|   auto is_lt = CT::Mask<W>::expand(lt_or_equal);
  491|       |
  492|  19.9M|   for(size_t i = 0; i != common_elems; i++) {
  ------------------
  |  Branch (492:22): [True: 17.2M, False: 2.70M]
  ------------------
  493|  17.2M|      const auto eq = CT::Mask<W>::is_equal(x[i], y[i]);
  494|  17.2M|      const auto lt = CT::Mask<W>::is_lt(x[i], y[i]);
  495|  17.2M|      is_lt = eq.select_mask(is_lt, lt);
  496|  17.2M|   }
  497|       |
  498|  2.70M|   if(x_size < y_size) {
  ------------------
  |  Branch (498:7): [True: 82.1k, False: 2.62M]
  ------------------
  499|  82.1k|      W mask = 0;
  500|   216k|      for(size_t i = x_size; i != y_size; i++) {
  ------------------
  |  Branch (500:30): [True: 133k, False: 82.1k]
  ------------------
  501|   133k|         mask |= y[i];
  502|   133k|      }
  503|       |      // If any bits were set in high part of y, then is_lt should be forced true
  504|  82.1k|      is_lt |= CT::Mask<W>::expand(mask);
  505|  2.62M|   } else if(y_size < x_size) {
  ------------------
  |  Branch (505:14): [True: 2.58M, False: 45.5k]
  ------------------
  506|  2.58M|      W mask = 0;
  507|  29.6M|      for(size_t i = y_size; i != x_size; i++) {
  ------------------
  |  Branch (507:30): [True: 27.0M, False: 2.58M]
  ------------------
  508|  27.0M|         mask |= x[i];
  509|  27.0M|      }
  510|       |
  511|       |      // If any bits were set in high part of x, then is_lt should be false
  512|  2.58M|      is_lt &= CT::Mask<W>::is_zero(mask);
  513|  2.58M|   }
  514|       |
  515|  2.70M|   return is_lt;
  516|  2.70M|}
_ZN5Botan15bigint_cnd_swapITkNS_8WordTypeEmEEvT_PS1_S2_m:
   29|   730k|inline constexpr void bigint_cnd_swap(W cnd, W x[], W y[], size_t size) {
   30|   730k|   const auto mask = CT::Mask<W>::expand(cnd);
   31|       |
   32|  4.36M|   for(size_t i = 0; i != size; ++i) {
  ------------------
  |  Branch (32:22): [True: 3.63M, False: 730k]
  ------------------
   33|  3.63M|      const W a = x[i];
   34|  3.63M|      const W b = y[i];
   35|  3.63M|      x[i] = mask.select(b, a);
   36|  3.63M|      y[i] = mask.select(a, b);
   37|  3.63M|   }
   38|   730k|}
_ZN5Botan14bigint_sub_absITkNS_8WordTypeEmEENS_2CT4MaskIT_EEPS3_PKS3_S7_mS5_:
  279|  2.93M|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.93M|   W* ws0 = ws;
  283|  2.93M|   W* ws1 = ws + N;
  284|       |
  285|  2.93M|   W borrow0 = 0;
  286|  2.93M|   W borrow1 = 0;
  287|       |
  288|  2.93M|   const size_t blocks = N - (N % 8);
  289|       |
  290|  4.25M|   for(size_t i = 0; i != blocks; i += 8) {
  ------------------
  |  Branch (290:22): [True: 1.32M, False: 2.93M]
  ------------------
  291|  1.32M|      borrow0 = word8_sub3(ws0 + i, x + i, y + i, borrow0);
  292|  1.32M|      borrow1 = word8_sub3(ws1 + i, y + i, x + i, borrow1);
  293|  1.32M|   }
  294|       |
  295|  13.9M|   for(size_t i = blocks; i != N; ++i) {
  ------------------
  |  Branch (295:27): [True: 11.0M, False: 2.93M]
  ------------------
  296|  11.0M|      ws0[i] = word_sub(x[i], y[i], &borrow0);
  297|  11.0M|      ws1[i] = word_sub(y[i], x[i], &borrow1);
  298|  11.0M|   }
  299|       |
  300|  2.93M|   return CT::conditional_copy_mem(borrow0, z, ws1, ws0, N);
  301|  2.93M|}
_ZN5Botan14bigint_cnd_subITkNS_8WordTypeEmEET_S1_PS1_PKS1_m:
   62|   917k|inline constexpr auto bigint_cnd_sub(W cnd, W x[], const W y[], size_t size) -> W {
   63|   917k|   const auto mask = CT::Mask<W>::expand(cnd).value();
   64|       |
   65|   917k|   W carry = 0;
   66|       |
   67|  4.86M|   for(size_t i = 0; i != size; ++i) {
  ------------------
  |  Branch (67:22): [True: 3.94M, False: 917k]
  ------------------
   68|  3.94M|      x[i] = word_sub(x[i], y[i] & mask, &carry);
   69|  3.94M|   }
   70|       |
   71|   917k|   return (mask & carry);
   72|   917k|}
_ZN5Botan14bigint_cnd_absITkNS_8WordTypeEmEEvT_PS1_m:
   80|   458k|inline constexpr void bigint_cnd_abs(W cnd, W x[], size_t size) {
   81|   458k|   const auto mask = CT::Mask<W>::expand(cnd);
   82|       |
   83|   458k|   W carry = mask.if_set_return(1);
   84|  2.43M|   for(size_t i = 0; i != size; ++i) {
  ------------------
  |  Branch (84:22): [True: 1.97M, False: 458k]
  ------------------
   85|  1.97M|      const W z = word_add(~x[i], static_cast<W>(0), &carry);
   86|  1.97M|      x[i] = mask.select(z, x[i]);
   87|  1.97M|   }
   88|   458k|}
_ZN5Botan13monty_inverseITkNS_8WordTypeEmEET_S1_:
  703|  5.74k|inline constexpr auto monty_inverse(W a) -> W {
  704|  5.74k|   BOTAN_ARG_CHECK(a % 2 == 1, "Cannot compute Montgomery inverse of an even integer");
  ------------------
  |  |   35|  5.74k|   do {                                                          \
  |  |   36|  5.74k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  5.74k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 5.74k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  5.74k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 5.74k]
  |  |  ------------------
  ------------------
  705|       |
  706|       |   // Newton's Method, following https://lemire.me/blog/2017/09/18/computing-the-inverse-of-odd-integers/
  707|       |
  708|  5.74k|   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|  5.74k|   W r = (3 * a) ^ 2;
  712|       |
  713|       |   // Each iteration doubles the accuracy
  714|  28.7k|   for(size_t i = 0; i != iter; ++i) {
  ------------------
  |  Branch (714:22): [True: 22.9k, False: 5.74k]
  ------------------
  715|  22.9k|      r = r * (2 - r * a);
  716|  22.9k|   }
  717|       |
  718|       |   // Now invert in addition space
  719|  5.74k|   r = (WordInfo<W>::max - r) + 1;
  720|       |
  721|  5.74k|   return r;
  722|  5.74k|}
_ZN5Botan22bigint_monty_maybe_subITkNS_8WordTypeEmEEvmPT_S1_PKS1_S4_:
  225|  15.7M|inline constexpr void bigint_monty_maybe_sub(size_t N, W z[], W x0, const W x[], const W p[]) {
  226|  15.7M|   W borrow = 0;
  227|       |
  228|  15.7M|   const size_t blocks = N - (N % 8);
  229|       |
  230|  21.2M|   for(size_t i = 0; i != blocks; i += 8) {
  ------------------
  |  Branch (230:22): [True: 5.46M, False: 15.7M]
  ------------------
  231|  5.46M|      borrow = word8_sub3(z + i, x + i, p + i, borrow);
  232|  5.46M|   }
  233|       |
  234|  60.1M|   for(size_t i = blocks; i != N; ++i) {
  ------------------
  |  Branch (234:27): [True: 44.3M, False: 15.7M]
  ------------------
  235|  44.3M|      z[i] = word_sub(x[i], p[i], &borrow);
  236|  44.3M|   }
  237|       |
  238|  15.7M|   borrow = (x0 - borrow) > x0;
  239|       |
  240|  15.7M|   CT::conditional_assign_mem(borrow, z, x, N);
  241|  15.7M|}
_ZN5Botan9comba_sqrILm4ETkNS_8WordTypeEmEEvPT0_PKS1_:
  854|   232k|constexpr inline void comba_sqr(W z[2 * N], const W x[N]) {
  855|   232k|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (855:7): [True: 232k, Folded]
  ------------------
  856|   232k|      if constexpr(std::same_as<W, word> && N == 4) {
  857|   232k|         return bigint_comba_sqr4(z, x);
  858|   232k|      }
  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|   232k|   }
  875|       |
  876|      0|   word3<W> accum;
  877|       |
  878|   232k|   for(size_t i = 0; i != 2 * N; ++i) {
  ------------------
  |  Branch (878:22): [True: 0, False: 232k]
  ------------------
  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|   232k|}
_ZN5Botan22bigint_monty_maybe_subILm4ETkNS_8WordTypeEmEEvPT0_S1_PKS1_S4_:
  254|  17.3M|inline constexpr void bigint_monty_maybe_sub(W z[N], W x0, const W x[N], const W y[N]) {
  255|  17.3M|   W borrow = 0;
  256|       |
  257|  86.8M|   for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (257:22): [True: 69.4M, False: 17.3M]
  ------------------
  258|  69.4M|      z[i] = word_sub(x[i], y[i], &borrow);
  259|  69.4M|   }
  260|       |
  261|  17.3M|   borrow = (x0 - borrow) > x0;
  262|       |
  263|  17.3M|   CT::conditional_assign_mem(borrow, z, x, N);
  264|  17.3M|}
_ZN5Botan9comba_mulILm4ETkNS_8WordTypeEmEEvPT0_PKS1_S4_:
  818|   272k|constexpr inline void comba_mul(W z[2 * N], const W x[N], const W y[N]) {
  819|   272k|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (819:7): [True: 272k, Folded]
  ------------------
  820|   272k|      if constexpr(std::same_as<W, word> && N == 4) {
  821|   272k|         return bigint_comba_mul4(z, x, y);
  822|   272k|      }
  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|   272k|   }
  839|       |
  840|      0|   word3<W> accum;
  841|       |
  842|   272k|   for(size_t i = 0; i != 2 * N; ++i) {
  ------------------
  |  Branch (842:22): [True: 0, False: 272k]
  ------------------
  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|   272k|}
_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|  6.14k|constexpr size_t read_window_bits(std::span<const W, N> words, size_t offset) {
 1072|  6.14k|   static_assert(WindowBits >= 1 && WindowBits <= 7);
 1073|       |
 1074|  6.14k|   constexpr uint8_t WindowMask = static_cast<uint8_t>(1 << WindowBits) - 1;
 1075|       |
 1076|  6.14k|   constexpr size_t W_bits = sizeof(W) * 8;
 1077|  6.14k|   const auto bit_shift = offset % W_bits;
 1078|  6.14k|   const auto word_offset = words.size() - 1 - (offset / W_bits);
 1079|       |
 1080|  6.14k|   const bool single_byte_window = bit_shift <= (W_bits - WindowBits) || word_offset == 0;
  ------------------
  |  Branch (1080:36): [True: 6.14k, False: 0]
  |  Branch (1080:74): [True: 0, False: 0]
  ------------------
 1081|       |
 1082|  6.14k|   const auto w0 = words[word_offset];
 1083|       |
 1084|  6.14k|   if(single_byte_window) {
  ------------------
  |  Branch (1084:7): [True: 6.14k, False: 0]
  ------------------
 1085|  6.14k|      return (w0 >> bit_shift) & WindowMask;
 1086|  6.14k|   } 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|  6.14k|}
_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|  79.6k|constexpr size_t read_window_bits(std::span<const W, N> words, size_t offset) {
 1072|  79.6k|   static_assert(WindowBits >= 1 && WindowBits <= 7);
 1073|       |
 1074|  79.6k|   constexpr uint8_t WindowMask = static_cast<uint8_t>(1 << WindowBits) - 1;
 1075|       |
 1076|  79.6k|   constexpr size_t W_bits = sizeof(W) * 8;
 1077|  79.6k|   const auto bit_shift = offset % W_bits;
 1078|  79.6k|   const auto word_offset = words.size() - 1 - (offset / W_bits);
 1079|       |
 1080|  79.6k|   const bool single_byte_window = bit_shift <= (W_bits - WindowBits) || word_offset == 0;
  ------------------
  |  Branch (1080:36): [True: 20.6k, False: 59.0k]
  |  Branch (1080:74): [True: 1.27k, False: 57.7k]
  ------------------
 1081|       |
 1082|  79.6k|   const auto w0 = words[word_offset];
 1083|       |
 1084|  79.6k|   if(single_byte_window) {
  ------------------
  |  Branch (1084:7): [True: 21.9k, False: 57.7k]
  ------------------
 1085|  21.9k|      return (w0 >> bit_shift) & WindowMask;
 1086|  57.7k|   } else {
 1087|       |      // Otherwise we must join two words and extract the result
 1088|  57.7k|      const auto w1 = words[word_offset - 1];
 1089|  57.7k|      const auto combined = ((w0 >> bit_shift) | (w1 << (W_bits - bit_shift)));
 1090|  57.7k|      return combined & WindowMask;
 1091|  57.7k|   }
 1092|  79.6k|}
_ZN5Botan9comba_sqrILm6ETkNS_8WordTypeEmEEvPT0_PKS1_:
  854|   203k|constexpr inline void comba_sqr(W z[2 * N], const W x[N]) {
  855|   203k|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (855:7): [True: 203k, Folded]
  ------------------
  856|       |      if constexpr(std::same_as<W, word> && N == 4) {
  857|       |         return bigint_comba_sqr4(z, x);
  858|       |      }
  859|   203k|      if constexpr(std::same_as<W, word> && N == 6) {
  860|   203k|         return bigint_comba_sqr6(z, x);
  861|   203k|      }
  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|   203k|   }
  875|       |
  876|      0|   word3<W> accum;
  877|       |
  878|   203k|   for(size_t i = 0; i != 2 * N; ++i) {
  ------------------
  |  Branch (878:22): [True: 0, False: 203k]
  ------------------
  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|   203k|}
_ZN5Botan22bigint_monty_maybe_subILm6ETkNS_8WordTypeEmEEvPT0_S1_PKS1_S4_:
  254|   274k|inline constexpr void bigint_monty_maybe_sub(W z[N], W x0, const W x[N], const W y[N]) {
  255|   274k|   W borrow = 0;
  256|       |
  257|  1.92M|   for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (257:22): [True: 1.64M, False: 274k]
  ------------------
  258|  1.64M|      z[i] = word_sub(x[i], y[i], &borrow);
  259|  1.64M|   }
  260|       |
  261|   274k|   borrow = (x0 - borrow) > x0;
  262|       |
  263|   274k|   CT::conditional_assign_mem(borrow, z, x, N);
  264|   274k|}
_ZN5Botan9comba_mulILm6ETkNS_8WordTypeEmEEvPT0_PKS1_S4_:
  818|   236k|constexpr inline void comba_mul(W z[2 * N], const W x[N], const W y[N]) {
  819|   236k|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (819:7): [True: 236k, Folded]
  ------------------
  820|       |      if constexpr(std::same_as<W, word> && N == 4) {
  821|       |         return bigint_comba_mul4(z, x, y);
  822|       |      }
  823|   236k|      if constexpr(std::same_as<W, word> && N == 6) {
  824|   236k|         return bigint_comba_mul6(z, x, y);
  825|   236k|      }
  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|   236k|   }
  839|       |
  840|      0|   word3<W> accum;
  841|       |
  842|   236k|   for(size_t i = 0; i != 2 * N; ++i) {
  ------------------
  |  Branch (842:22): [True: 0, False: 236k]
  ------------------
  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|   236k|}
_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|  10.6k|constexpr size_t read_window_bits(std::span<const W, N> words, size_t offset) {
 1072|  10.6k|   static_assert(WindowBits >= 1 && WindowBits <= 7);
 1073|       |
 1074|  10.6k|   constexpr uint8_t WindowMask = static_cast<uint8_t>(1 << WindowBits) - 1;
 1075|       |
 1076|  10.6k|   constexpr size_t W_bits = sizeof(W) * 8;
 1077|  10.6k|   const auto bit_shift = offset % W_bits;
 1078|  10.6k|   const auto word_offset = words.size() - 1 - (offset / W_bits);
 1079|       |
 1080|  10.6k|   const bool single_byte_window = bit_shift <= (W_bits - WindowBits) || word_offset == 0;
  ------------------
  |  Branch (1080:36): [True: 9.93k, False: 690]
  |  Branch (1080:74): [True: 138, False: 552]
  ------------------
 1081|       |
 1082|  10.6k|   const auto w0 = words[word_offset];
 1083|       |
 1084|  10.6k|   if(single_byte_window) {
  ------------------
  |  Branch (1084:7): [True: 10.0k, False: 552]
  ------------------
 1085|  10.0k|      return (w0 >> bit_shift) & WindowMask;
 1086|  10.0k|   } else {
 1087|       |      // Otherwise we must join two words and extract the result
 1088|    552|      const auto w1 = words[word_offset - 1];
 1089|    552|      const auto combined = ((w0 >> bit_shift) | (w1 << (W_bits - bit_shift)));
 1090|    552|      return combined & WindowMask;
 1091|    552|   }
 1092|  10.6k|}
_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|   117k|constexpr inline void comba_sqr(W z[2 * N], const W x[N]) {
  855|   117k|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (855:7): [True: 117k, 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|   117k|      if constexpr(std::same_as<W, word> && N == 8) {
  866|   117k|         return bigint_comba_sqr8(z, x);
  867|   117k|      }
  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|   117k|   }
  875|       |
  876|      0|   word3<W> accum;
  877|       |
  878|   117k|   for(size_t i = 0; i != 2 * N; ++i) {
  ------------------
  |  Branch (878:22): [True: 0, False: 117k]
  ------------------
  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|   117k|}
_ZN5Botan22bigint_monty_maybe_subILm8ETkNS_8WordTypeEmEEvPT0_S1_PKS1_S4_:
  254|   291k|inline constexpr void bigint_monty_maybe_sub(W z[N], W x0, const W x[N], const W y[N]) {
  255|   291k|   W borrow = 0;
  256|       |
  257|  2.62M|   for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (257:22): [True: 2.33M, False: 291k]
  ------------------
  258|  2.33M|      z[i] = word_sub(x[i], y[i], &borrow);
  259|  2.33M|   }
  260|       |
  261|   291k|   borrow = (x0 - borrow) > x0;
  262|       |
  263|   291k|   CT::conditional_assign_mem(borrow, z, x, N);
  264|   291k|}
_ZN5Botan9comba_mulILm8ETkNS_8WordTypeEmEEvPT0_PKS1_S4_:
  818|   143k|constexpr inline void comba_mul(W z[2 * N], const W x[N], const W y[N]) {
  819|   143k|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (819:7): [True: 143k, 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|   143k|      if constexpr(std::same_as<W, word> && N == 8) {
  830|   143k|         return bigint_comba_mul8(z, x, y);
  831|   143k|      }
  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|   143k|   }
  839|       |
  840|      0|   word3<W> accum;
  841|       |
  842|   143k|   for(size_t i = 0; i != 2 * N; ++i) {
  ------------------
  |  Branch (842:22): [True: 0, False: 143k]
  ------------------
  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|   143k|}
_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|  12.9k|constexpr size_t read_window_bits(std::span<const W, N> words, size_t offset) {
 1072|  12.9k|   static_assert(WindowBits >= 1 && WindowBits <= 7);
 1073|       |
 1074|  12.9k|   constexpr uint8_t WindowMask = static_cast<uint8_t>(1 << WindowBits) - 1;
 1075|       |
 1076|  12.9k|   constexpr size_t W_bits = sizeof(W) * 8;
 1077|  12.9k|   const auto bit_shift = offset % W_bits;
 1078|  12.9k|   const auto word_offset = words.size() - 1 - (offset / W_bits);
 1079|       |
 1080|  12.9k|   const bool single_byte_window = bit_shift <= (W_bits - WindowBits) || word_offset == 0;
  ------------------
  |  Branch (1080:36): [True: 12.0k, False: 882]
  |  Branch (1080:74): [True: 126, False: 756]
  ------------------
 1081|       |
 1082|  12.9k|   const auto w0 = words[word_offset];
 1083|       |
 1084|  12.9k|   if(single_byte_window) {
  ------------------
  |  Branch (1084:7): [True: 12.2k, False: 756]
  ------------------
 1085|  12.2k|      return (w0 >> bit_shift) & WindowMask;
 1086|  12.2k|   } else {
 1087|       |      // Otherwise we must join two words and extract the result
 1088|    756|      const auto w1 = words[word_offset - 1];
 1089|    756|      const auto combined = ((w0 >> bit_shift) | (w1 << (W_bits - bit_shift)));
 1090|    756|      return combined & WindowMask;
 1091|    756|   }
 1092|  12.9k|}
_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|  3.09M|inline constexpr W shift_left(std::array<W, N>& x) {
  726|  3.09M|   static_assert(N >= 1, "Invalid input size");
  727|  3.09M|   static_assert(S > 0, "Zero shift not supported");
  728|  3.09M|   static_assert(S < WordInfo<W>::bits, "Shift too large");
  729|       |
  730|  3.09M|   const W carry = x[N - 1] >> (WordInfo<W>::bits - S);
  731|       |
  732|  27.8M|   for(size_t i = N - 1; i != 0; --i) {
  ------------------
  |  Branch (732:26): [True: 24.7M, False: 3.09M]
  ------------------
  733|  24.7M|      x[i] = (x[i] << S) | (x[i - 1] >> (WordInfo<W>::bits - S));
  734|  24.7M|   }
  735|  3.09M|   x[0] <<= S;
  736|       |
  737|  3.09M|   return carry;
  738|  3.09M|}
_ZN5Botan22bigint_monty_maybe_subILm9ETkNS_8WordTypeEmEEvPT0_S1_PKS1_S4_:
  254|  3.12M|inline constexpr void bigint_monty_maybe_sub(W z[N], W x0, const W x[N], const W y[N]) {
  255|  3.12M|   W borrow = 0;
  256|       |
  257|  31.2M|   for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (257:22): [True: 28.0M, False: 3.12M]
  ------------------
  258|  28.0M|      z[i] = word_sub(x[i], y[i], &borrow);
  259|  28.0M|   }
  260|       |
  261|  3.12M|   borrow = (x0 - borrow) > x0;
  262|       |
  263|  3.12M|   CT::conditional_assign_mem(borrow, z, x, N);
  264|  3.12M|}
_ZN5Botan16read_window_bitsILm4EmLm18446744073709551615EEEmNSt3__14spanIKT0_XT1_EEEm:
 1071|  46.6k|constexpr size_t read_window_bits(std::span<const W, N> words, size_t offset) {
 1072|  46.6k|   static_assert(WindowBits >= 1 && WindowBits <= 7);
 1073|       |
 1074|  46.6k|   constexpr uint8_t WindowMask = static_cast<uint8_t>(1 << WindowBits) - 1;
 1075|       |
 1076|  46.6k|   constexpr size_t W_bits = sizeof(W) * 8;
 1077|  46.6k|   const auto bit_shift = offset % W_bits;
 1078|  46.6k|   const auto word_offset = words.size() - 1 - (offset / W_bits);
 1079|       |
 1080|  46.6k|   const bool single_byte_window = bit_shift <= (W_bits - WindowBits) || word_offset == 0;
  ------------------
  |  Branch (1080:36): [True: 46.6k, False: 0]
  |  Branch (1080:74): [True: 0, False: 0]
  ------------------
 1081|       |
 1082|  46.6k|   const auto w0 = words[word_offset];
 1083|       |
 1084|  46.6k|   if(single_byte_window) {
  ------------------
  |  Branch (1084:7): [True: 46.6k, False: 0]
  ------------------
 1085|  46.6k|      return (w0 >> bit_shift) & WindowMask;
 1086|  46.6k|   } 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|  46.6k|}
_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|    550|inline constexpr W shift_left(std::array<W, N>& x) {
  726|    550|   static_assert(N >= 1, "Invalid input size");
  727|    550|   static_assert(S > 0, "Zero shift not supported");
  728|    550|   static_assert(S < WordInfo<W>::bits, "Shift too large");
  729|       |
  730|    550|   const W carry = x[N - 1] >> (WordInfo<W>::bits - S);
  731|       |
  732|  2.20k|   for(size_t i = N - 1; i != 0; --i) {
  ------------------
  |  Branch (732:26): [True: 1.65k, False: 550]
  ------------------
  733|  1.65k|      x[i] = (x[i] << S) | (x[i - 1] >> (WordInfo<W>::bits - S));
  734|  1.65k|   }
  735|    550|   x[0] <<= S;
  736|       |
  737|    550|   return carry;
  738|    550|}
_ZN5Botan13redc_crandallITkNS_8WordTypeEmLm4ETnT_Lm4294968273EEENSt3__15arrayIS1_XT0_EEENS2_4spanIKS1_XmlLi2ET0_EEE:
  992|   159k|constexpr std::array<W, N> redc_crandall(std::span<const W, 2 * N> z) {
  993|   159k|   static_assert(N >= 2);
  994|       |
  995|   159k|   std::array<W, N> hi = {};
  996|       |
  997|       |   // hi = hi * c + lo
  998|       |
  999|   159k|   W carry = 0;
 1000|   795k|   for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (1000:22): [True: 636k, False: 159k]
  ------------------
 1001|   636k|      hi[i] = word_madd3(z[i + N], C, z[i], &carry);
 1002|   636k|   }
 1003|       |
 1004|       |   // hi += carry * C
 1005|   159k|   word carry_c[2] = {0};
 1006|   159k|   carry_c[0] = word_madd2(carry, C, &carry_c[1]);
 1007|       |
 1008|   159k|   carry = bigint_add2(hi.data(), N, carry_c, 2);
 1009|       |
 1010|   159k|   constexpr W P0 = WordInfo<W>::max - (C - 1);
 1011|       |
 1012|   159k|   std::array<W, N> r = {};
 1013|       |
 1014|   159k|   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|   159k|   r[0] = word_sub(hi[0], P0, &borrow);
 1058|   636k|   for(size_t i = 1; i != N; ++i) {
  ------------------
  |  Branch (1058:22): [True: 477k, False: 159k]
  ------------------
 1059|   477k|      r[i] = word_sub(hi[i], WordInfo<W>::max, &borrow);
 1060|   477k|   }
 1061|       |
 1062|   159k|   borrow = (carry - borrow) > carry;
 1063|       |
 1064|   159k|   CT::conditional_assign_mem(borrow, r.data(), hi.data(), N);
 1065|       |
 1066|   159k|   return r;
 1067|   159k|}
_ZN5Botan9comba_sqrILm9ETkNS_8WordTypeEmEEvPT0_PKS1_:
  854|   151k|constexpr inline void comba_sqr(W z[2 * N], const W x[N]) {
  855|   151k|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (855:7): [True: 151k, 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|   151k|      if constexpr(std::same_as<W, word> && N == 9) {
  869|   151k|         return bigint_comba_sqr9(z, x);
  870|   151k|      }
  871|       |      if constexpr(std::same_as<W, word> && N == 16) {
  872|       |         return bigint_comba_sqr16(z, x);
  873|       |      }
  874|   151k|   }
  875|       |
  876|      0|   word3<W> accum;
  877|       |
  878|   151k|   for(size_t i = 0; i != 2 * N; ++i) {
  ------------------
  |  Branch (878:22): [True: 0, False: 151k]
  ------------------
  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|   151k|}
_ZN5Botan9comba_mulILm9ETkNS_8WordTypeEmEEvPT0_PKS1_S4_:
  818|   165k|constexpr inline void comba_mul(W z[2 * N], const W x[N], const W y[N]) {
  819|   165k|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (819:7): [True: 165k, 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|   165k|      if constexpr(std::same_as<W, word> && N == 9) {
  833|   165k|         return bigint_comba_mul9(z, x, y);
  834|   165k|      }
  835|       |      if constexpr(std::same_as<W, word> && N == 16) {
  836|       |         return bigint_comba_mul16(z, x, y);
  837|       |      }
  838|   165k|   }
  839|       |
  840|      0|   word3<W> accum;
  841|       |
  842|   165k|   for(size_t i = 0; i != 2 * N; ++i) {
  ------------------
  |  Branch (842:22): [True: 0, False: 165k]
  ------------------
  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|   165k|}
_ZN5Botan10shift_leftILm16ETkNS_8WordTypeEmLm9EEET0_RNSt3__15arrayIS1_XT1_EEE:
  725|    388|inline constexpr W shift_left(std::array<W, N>& x) {
  726|    388|   static_assert(N >= 1, "Invalid input size");
  727|    388|   static_assert(S > 0, "Zero shift not supported");
  728|    388|   static_assert(S < WordInfo<W>::bits, "Shift too large");
  729|       |
  730|    388|   const W carry = x[N - 1] >> (WordInfo<W>::bits - S);
  731|       |
  732|  3.49k|   for(size_t i = N - 1; i != 0; --i) {
  ------------------
  |  Branch (732:26): [True: 3.10k, False: 388]
  ------------------
  733|  3.10k|      x[i] = (x[i] << S) | (x[i - 1] >> (WordInfo<W>::bits - S));
  734|  3.10k|   }
  735|    388|   x[0] <<= S;
  736|       |
  737|    388|   return carry;
  738|    388|}
_ZN5Botan9comba_mulILm7ETkNS_8WordTypeEmEEvPT0_PKS1_S4_:
  818|  2.25k|constexpr inline void comba_mul(W z[2 * N], const W x[N], const W y[N]) {
  819|  2.25k|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (819:7): [True: 2.25k, 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|  2.25k|      if constexpr(std::same_as<W, word> && N == 7) {
  827|  2.25k|         return bigint_comba_mul7(z, x, y);
  828|  2.25k|      }
  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|  2.25k|   }
  839|       |
  840|      0|   word3<W> accum;
  841|       |
  842|  2.25k|   for(size_t i = 0; i != 2 * N; ++i) {
  ------------------
  |  Branch (842:22): [True: 0, False: 2.25k]
  ------------------
  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|  2.25k|}
_ZN5Botan9comba_sqrILm7ETkNS_8WordTypeEmEEvPT0_PKS1_:
  854|  2.23k|constexpr inline void comba_sqr(W z[2 * N], const W x[N]) {
  855|  2.23k|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (855:7): [True: 2.23k, 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|  2.23k|      if constexpr(std::same_as<W, word> && N == 7) {
  863|  2.23k|         return bigint_comba_sqr7(z, x);
  864|  2.23k|      }
  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|  2.23k|   }
  875|       |
  876|      0|   word3<W> accum;
  877|       |
  878|  2.23k|   for(size_t i = 0; i != 2 * N; ++i) {
  ------------------
  |  Branch (878:22): [True: 0, False: 2.23k]
  ------------------
  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|  2.23k|}

_ZN5Botan6PCurve15PrimeOrderCurve6ScalarD2Ev:
   72|  11.4k|            ~Scalar() = default;
_ZN5Botan6PCurve15PrimeOrderCurve11AffinePointD2Ev:
  100|  4.82k|            ~AffinePoint() = default;
_ZN5Botan6PCurve15PrimeOrderCurve15ProjectivePointD2Ev:
  134|  1.45k|            ~ProjectivePoint() = default;
_ZN5Botan6PCurve15PrimeOrderCurve6ScalarC2EOS2_:
   69|  5.74k|            Scalar(Scalar&& other) = default;
_ZN5Botan6PCurve15PrimeOrderCurve6ScalarC2ERKS2_:
   68|  3.83k|            Scalar(const Scalar& other) = default;
_ZN5Botan6PCurve15PrimeOrderCurve11AffinePointC2EOS2_:
   97|  2.91k|            AffinePoint(AffinePoint&& other) = default;
_ZNK5Botan6PCurve15PrimeOrderCurve6Scalar6_curveEv:
   76|  5.28k|            const auto& _curve() const { return m_curve; }
_ZNK5Botan6PCurve15PrimeOrderCurve6Scalar6_valueEv:
   78|  5.28k|            const auto& _value() const { return m_value; }
_ZN5Botan6PCurve15PrimeOrderCurve6Scalar7_createENSt3__110shared_ptrIKS1_EENS3_5arrayImLm9EEE:
   80|  1.91k|            static Scalar _create(CurvePtr curve, StorageUnit v) { return Scalar(std::move(curve), v); }
_ZN5Botan6PCurve15PrimeOrderCurve6ScalarC2ENSt3__110shared_ptrIKS1_EENS3_5arrayImLm9EEE:
   83|  1.91k|            Scalar(CurvePtr curve, StorageUnit v) : m_curve(std::move(curve)), m_value(v) {}
_ZNK5Botan6PCurve15PrimeOrderCurve11AffinePoint6_curveEv:
  104|  3.36k|            const auto& _curve() const { return m_curve; }
_ZNK5Botan6PCurve15PrimeOrderCurve11AffinePoint2_xEv:
  106|  3.36k|            const auto& _x() const { return m_x; }
_ZNK5Botan6PCurve15PrimeOrderCurve11AffinePoint2_yEv:
  108|  3.36k|            const auto& _y() const { return m_y; }
_ZN5Botan6PCurve15PrimeOrderCurve11AffinePoint7_createENSt3__110shared_ptrIKS1_EENS3_5arrayImLm9EEES8_:
  110|  1.91k|            static AffinePoint _create(CurvePtr curve, StorageUnit x, StorageUnit y) {
  111|  1.91k|               return AffinePoint(std::move(curve), x, y);
  112|  1.91k|            }
_ZN5Botan6PCurve15PrimeOrderCurve11AffinePointC2ENSt3__110shared_ptrIKS1_EENS3_5arrayImLm9EEES8_:
  115|  1.91k|            AffinePoint(CurvePtr curve, StorageUnit x, StorageUnit y) : m_curve(std::move(curve)), m_x(x), m_y(y) {}
_ZNK5Botan6PCurve15PrimeOrderCurve15ProjectivePoint6_curveEv:
  136|  1.45k|            const auto& _curve() const { return m_curve; }
_ZNK5Botan6PCurve15PrimeOrderCurve15ProjectivePoint2_xEv:
  138|  1.45k|            const auto& _x() const { return m_x; }
_ZNK5Botan6PCurve15PrimeOrderCurve15ProjectivePoint2_yEv:
  140|  1.45k|            const auto& _y() const { return m_y; }
_ZNK5Botan6PCurve15PrimeOrderCurve15ProjectivePoint2_zEv:
  142|  1.45k|            const auto& _z() const { return m_z; }
_ZN5Botan6PCurve15PrimeOrderCurve15ProjectivePoint7_createENSt3__110shared_ptrIKS1_EENS3_5arrayImLm9EEES8_S8_:
  144|  1.45k|            static ProjectivePoint _create(CurvePtr curve, StorageUnit x, StorageUnit y, StorageUnit z) {
  145|  1.45k|               return ProjectivePoint(std::move(curve), x, y, z);
  146|  1.45k|            }
_ZN5Botan6PCurve15PrimeOrderCurve15ProjectivePointC2ENSt3__110shared_ptrIKS1_EENS3_5arrayImLm9EEES8_S8_:
  150|  1.45k|                  m_curve(std::move(curve)), m_x(x), m_y(y), m_z(z) {}
_ZN5Botan6PCurve15PrimeOrderCurveD2Ev:
  163|    468|      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|     96|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|     96|   } else {
   85|     96|      const auto z_inv = invert_field_element<C>(pt.z());
   86|     96|      const auto z2_inv = z_inv.square();
   87|     96|      const auto z3_inv = z_inv * z2_inv;
   88|     96|      return typename C::AffinePoint(pt.x() * z2_inv, pt.y() * z3_inv);
   89|     96|   }
   90|     96|}
pcurves_brainpool256r1.cpp:_ZN5Botan20invert_field_elementINS_6PCurve12_GLOBAL__N_114brainpool256r15CurveEEEDaRKNT_12FieldElementE:
   35|     96|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|     96|   } else {
   39|     96|      return fe.invert();
   40|     96|   }
   41|     96|}
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|  4.03k|                                                        const FieldElement& one) {
  297|  4.03k|   const auto a_is_identity = a.is_identity();
  298|  4.03k|   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|  4.03k|   auto by = b.y();
  307|  4.03k|   by.conditional_assign(sub, by.negate());
  308|       |
  309|  4.03k|   const auto Z1Z1 = a.z().square();
  310|  4.03k|   const auto U2 = b.x() * Z1Z1;
  311|  4.03k|   const auto S2 = by * a.z() * Z1Z1;
  312|  4.03k|   const auto H = U2 - a.x();
  313|  4.03k|   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|  4.03k|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (325:7): [True: 0, False: 4.03k]
  ------------------
  326|      0|      return a.dbl();
  327|      0|   }
  328|       |
  329|  4.03k|   const auto HH = H.square();
  330|  4.03k|   const auto HHH = H * HH;
  331|  4.03k|   const auto V = a.x() * HH;
  332|  4.03k|   const auto t2 = r.square();
  333|  4.03k|   const auto t3 = V + V;
  334|  4.03k|   const auto t4 = t2 - HHH;
  335|  4.03k|   auto X3 = t4 - t3;
  336|  4.03k|   const auto t5 = V - X3;
  337|  4.03k|   const auto t6 = a.y() * HHH;
  338|  4.03k|   const auto t7 = r * t5;
  339|  4.03k|   auto Y3 = t7 - t6;
  340|  4.03k|   auto Z3 = a.z() * H;
  341|       |
  342|       |   // if a is identity then return b
  343|  4.03k|   FieldElement::conditional_assign(X3, Y3, Z3, a_is_identity, b.x(), by, one);
  344|       |
  345|       |   // if b is identity then return a
  346|  4.03k|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  347|       |
  348|  4.03k|   return ProjectivePoint(X3, Y3, Z3);
  349|  4.03k|}
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|    138|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|    138|   } else {
   85|    138|      const auto z_inv = invert_field_element<C>(pt.z());
   86|    138|      const auto z2_inv = z_inv.square();
   87|    138|      const auto z3_inv = z_inv * z2_inv;
   88|    138|      return typename C::AffinePoint(pt.x() * z2_inv, pt.y() * z3_inv);
   89|    138|   }
   90|    138|}
pcurves_brainpool384r1.cpp:_ZN5Botan20invert_field_elementINS_6PCurve12_GLOBAL__N_114brainpool384r15CurveEEEDaRKNT_12FieldElementE:
   35|    138|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|    138|   } else {
   39|    138|      return fe.invert();
   40|    138|   }
   41|    138|}
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|  8.83k|                                                        const FieldElement& one) {
  297|  8.83k|   const auto a_is_identity = a.is_identity();
  298|  8.83k|   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|  8.83k|   auto by = b.y();
  307|  8.83k|   by.conditional_assign(sub, by.negate());
  308|       |
  309|  8.83k|   const auto Z1Z1 = a.z().square();
  310|  8.83k|   const auto U2 = b.x() * Z1Z1;
  311|  8.83k|   const auto S2 = by * a.z() * Z1Z1;
  312|  8.83k|   const auto H = U2 - a.x();
  313|  8.83k|   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|  8.83k|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (325:7): [True: 0, False: 8.83k]
  ------------------
  326|      0|      return a.dbl();
  327|      0|   }
  328|       |
  329|  8.83k|   const auto HH = H.square();
  330|  8.83k|   const auto HHH = H * HH;
  331|  8.83k|   const auto V = a.x() * HH;
  332|  8.83k|   const auto t2 = r.square();
  333|  8.83k|   const auto t3 = V + V;
  334|  8.83k|   const auto t4 = t2 - HHH;
  335|  8.83k|   auto X3 = t4 - t3;
  336|  8.83k|   const auto t5 = V - X3;
  337|  8.83k|   const auto t6 = a.y() * HHH;
  338|  8.83k|   const auto t7 = r * t5;
  339|  8.83k|   auto Y3 = t7 - t6;
  340|  8.83k|   auto Z3 = a.z() * H;
  341|       |
  342|       |   // if a is identity then return b
  343|  8.83k|   FieldElement::conditional_assign(X3, Y3, Z3, a_is_identity, b.x(), by, one);
  344|       |
  345|       |   // if b is identity then return a
  346|  8.83k|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  347|       |
  348|  8.83k|   return ProjectivePoint(X3, Y3, Z3);
  349|  8.83k|}
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|    126|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|    126|   } else {
   85|    126|      const auto z_inv = invert_field_element<C>(pt.z());
   86|    126|      const auto z2_inv = z_inv.square();
   87|    126|      const auto z3_inv = z_inv * z2_inv;
   88|    126|      return typename C::AffinePoint(pt.x() * z2_inv, pt.y() * z3_inv);
   89|    126|   }
   90|    126|}
pcurves_brainpool512r1.cpp:_ZN5Botan20invert_field_elementINS_6PCurve12_GLOBAL__N_114brainpool512r15CurveEEEDaRKNT_12FieldElementE:
   35|    126|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|    126|   } else {
   39|    126|      return fe.invert();
   40|    126|   }
   41|    126|}
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|  10.7k|                                                        const FieldElement& one) {
  297|  10.7k|   const auto a_is_identity = a.is_identity();
  298|  10.7k|   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|  10.7k|   auto by = b.y();
  307|  10.7k|   by.conditional_assign(sub, by.negate());
  308|       |
  309|  10.7k|   const auto Z1Z1 = a.z().square();
  310|  10.7k|   const auto U2 = b.x() * Z1Z1;
  311|  10.7k|   const auto S2 = by * a.z() * Z1Z1;
  312|  10.7k|   const auto H = U2 - a.x();
  313|  10.7k|   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|  10.7k|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (325:7): [True: 0, False: 10.7k]
  ------------------
  326|      0|      return a.dbl();
  327|      0|   }
  328|       |
  329|  10.7k|   const auto HH = H.square();
  330|  10.7k|   const auto HHH = H * HH;
  331|  10.7k|   const auto V = a.x() * HH;
  332|  10.7k|   const auto t2 = r.square();
  333|  10.7k|   const auto t3 = V + V;
  334|  10.7k|   const auto t4 = t2 - HHH;
  335|  10.7k|   auto X3 = t4 - t3;
  336|  10.7k|   const auto t5 = V - X3;
  337|  10.7k|   const auto t6 = a.y() * HHH;
  338|  10.7k|   const auto t7 = r * t5;
  339|  10.7k|   auto Y3 = t7 - t6;
  340|  10.7k|   auto Z3 = a.z() * H;
  341|       |
  342|       |   // if a is identity then return b
  343|  10.7k|   FieldElement::conditional_assign(X3, Y3, Z3, a_is_identity, b.x(), by, one);
  344|       |
  345|       |   // if b is identity then return a
  346|  10.7k|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  347|       |
  348|  10.7k|   return ProjectivePoint(X3, Y3, Z3);
  349|  10.7k|}
pcurves_generic.cpp:_ZN5Botan22point_add_or_sub_mixedINS_6PCurve22GenericProjectivePointENS1_18GenericAffinePointENS1_12_GLOBAL__N_112GenericFieldEEET_RKS6_RKT0_NS_2CT6ChoiceERKT1_:
  296|  11.1k|                                                        const FieldElement& one) {
  297|  11.1k|   const auto a_is_identity = a.is_identity();
  298|  11.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|  11.1k|   auto by = b.y();
  307|  11.1k|   by.conditional_assign(sub, by.negate());
  308|       |
  309|  11.1k|   const auto Z1Z1 = a.z().square();
  310|  11.1k|   const auto U2 = b.x() * Z1Z1;
  311|  11.1k|   const auto S2 = by * a.z() * Z1Z1;
  312|  11.1k|   const auto H = U2 - a.x();
  313|  11.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|  11.1k|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (325:7): [True: 0, False: 11.1k]
  ------------------
  326|      0|      return a.dbl();
  327|      0|   }
  328|       |
  329|  11.1k|   const auto HH = H.square();
  330|  11.1k|   const auto HHH = H * HH;
  331|  11.1k|   const auto V = a.x() * HH;
  332|  11.1k|   const auto t2 = r.square();
  333|  11.1k|   const auto t3 = V + V;
  334|  11.1k|   const auto t4 = t2 - HHH;
  335|  11.1k|   auto X3 = t4 - t3;
  336|  11.1k|   const auto t5 = V - X3;
  337|  11.1k|   const auto t6 = a.y() * HHH;
  338|  11.1k|   const auto t7 = r * t5;
  339|  11.1k|   auto Y3 = t7 - t6;
  340|  11.1k|   auto Z3 = a.z() * H;
  341|       |
  342|       |   // if a is identity then return b
  343|  11.1k|   FieldElement::conditional_assign(X3, Y3, Z3, a_is_identity, b.x(), by, one);
  344|       |
  345|       |   // if b is identity then return a
  346|  11.1k|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  347|       |
  348|  11.1k|   return ProjectivePoint(X3, Y3, Z3);
  349|  11.1k|}
_ZN5Botan13dbl_a_minus_3INS_6PCurve22GenericProjectivePointEEET_RKS3_:
  362|  97.3k|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|  97.3k|   const auto z2 = pt.z().square();
  368|  97.3k|   const auto m = (pt.x() - z2).mul3() * (pt.x() + z2);
  369|       |
  370|       |   // Remaining cost: 3M + 3S + 3A + 2*2 + 1*4 + 1*8
  371|  97.3k|   const auto y2 = pt.y().square();
  372|  97.3k|   const auto s = pt.x().mul4() * y2;
  373|  97.3k|   const auto nx = m.square() - s.mul2();
  374|  97.3k|   const auto ny = m * (s - nx) - y2.square().mul8();
  375|  97.3k|   const auto nz = pt.y().mul2() * pt.z();
  376|       |
  377|  97.3k|   return ProjectivePoint(nx, ny, nz);
  378|  97.3k|}
_ZN5Botan10dbl_a_zeroINS_6PCurve22GenericProjectivePointEEET_RKS3_:
  381|   111k|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|   111k|   const auto m = pt.x().square().mul3();
  385|       |
  386|       |   // Remaining cost: 3M + 3S + 3A + 2*2 + 1*4 + 1*8
  387|   111k|   const auto y2 = pt.y().square();
  388|   111k|   const auto s = pt.x().mul4() * y2;
  389|   111k|   const auto nx = m.square() - s.mul2();
  390|   111k|   const auto ny = m * (s - nx) - y2.square().mul8();
  391|   111k|   const auto nz = pt.y().mul2() * pt.z();
  392|       |
  393|   111k|   return ProjectivePoint(nx, ny, nz);
  394|   111k|}
pcurves_generic.cpp:_ZN5Botan11dbl_genericINS_6PCurve22GenericProjectivePointENS1_12_GLOBAL__N_112GenericFieldEEET_RKS5_RKT0_:
  397|   176k|inline constexpr ProjectivePoint dbl_generic(const ProjectivePoint& pt, const FieldElement& A) {
  398|       |   // Cost: 1M + 3S + 1A + 1*3
  399|   176k|   const auto z2 = pt.z().square();
  400|   176k|   const auto m = pt.x().square().mul3() + A * z2.square();
  401|       |
  402|       |   // Remaining cost: 3M + 3S + 3A + 2*2 + 1*4 + 1*8
  403|   176k|   const auto y2 = pt.y().square();
  404|   176k|   const auto s = pt.x().mul4() * y2;
  405|   176k|   const auto nx = m.square() - s.mul2();
  406|   176k|   const auto ny = m * (s - nx) - y2.square().mul8();
  407|   176k|   const auto nz = pt.y().mul2() * pt.z();
  408|       |
  409|   176k|   return ProjectivePoint(nx, ny, nz);
  410|   176k|}
pcurves_generic.cpp:_ZN5Botan20invert_field_elementINS_6PCurve12_GLOBAL__N_112GenericCurveEEEDaRKNT_12FieldElementE:
   35|    301|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|    301|   } else {
   39|    301|      return fe.invert();
   40|    301|   }
   41|    301|}
pcurves_generic.cpp:_ZN5Botan9point_addINS_6PCurve22GenericProjectivePointENS1_12_GLOBAL__N_112GenericFieldEEET_RKS5_S7_:
  187|   340k|inline constexpr ProjectivePoint point_add(const ProjectivePoint& a, const ProjectivePoint& b) {
  188|   340k|   const auto a_is_identity = a.is_identity();
  189|   340k|   const auto b_is_identity = b.is_identity();
  190|       |
  191|   340k|   const auto Z1Z1 = a.z().square();
  192|   340k|   const auto Z2Z2 = b.z().square();
  193|   340k|   const auto U1 = a.x() * Z2Z2;
  194|   340k|   const auto U2 = b.x() * Z1Z1;
  195|   340k|   const auto S1 = a.y() * b.z() * Z2Z2;
  196|   340k|   const auto S2 = b.y() * a.z() * Z1Z1;
  197|   340k|   const auto H = U2 - U1;
  198|   340k|   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|   340k|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (210:7): [True: 0, False: 340k]
  ------------------
  211|      0|      return a.dbl();
  212|      0|   }
  213|       |
  214|   340k|   const auto HH = H.square();
  215|   340k|   const auto HHH = H * HH;
  216|   340k|   const auto V = U1 * HH;
  217|   340k|   const auto t2 = r.square();
  218|   340k|   const auto t3 = V + V;
  219|   340k|   const auto t4 = t2 - HHH;
  220|   340k|   auto X3 = t4 - t3;
  221|   340k|   const auto t5 = V - X3;
  222|   340k|   const auto t6 = S1 * HHH;
  223|   340k|   const auto t7 = r * t5;
  224|   340k|   auto Y3 = t7 - t6;
  225|   340k|   const auto t8 = b.z() * H;
  226|   340k|   auto Z3 = a.z() * t8;
  227|       |
  228|       |   // if a is identity then return b
  229|   340k|   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|   340k|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  233|       |
  234|   340k|   return ProjectivePoint(X3, Y3, Z3);
  235|   340k|}
pcurves_generic.cpp:_ZN5Botan9to_affineINS_6PCurve12_GLOBAL__N_112GenericCurveEEEDaRKNT_15ProjectivePointE:
   76|    301|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|    301|   } else {
   85|    301|      const auto z_inv = invert_field_element<C>(pt.z());
   86|    301|      const auto z2_inv = z_inv.square();
   87|    301|      const auto z3_inv = z_inv * z2_inv;
   88|    301|      return typename C::AffinePoint(pt.x() * z2_inv, pt.y() * z3_inv);
   89|    301|   }
   90|    301|}
pcurves_generic.cpp:_ZN5Botan15to_affine_batchINS_6PCurve12_GLOBAL__N_112GenericCurveELb1EEEDaNSt3__14spanIKNT_15ProjectivePointELm18446744073709551615EEE:
  107|    460|auto to_affine_batch(std::span<const typename C::ProjectivePoint> projective) {
  108|    460|   using AffinePoint = typename C::AffinePoint;
  109|       |
  110|    460|   const size_t N = projective.size();
  111|    460|   std::vector<AffinePoint> affine;
  112|    460|   affine.reserve(N);
  113|       |
  114|    460|   CT::Choice any_identity = CT::Choice::no();
  115|       |
  116|   726k|   for(const auto& pt : projective) {
  ------------------
  |  Branch (116:23): [True: 726k, False: 460]
  ------------------
  117|   726k|      any_identity = any_identity || pt.is_identity();
  118|   726k|   }
  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|    460|   if(N <= 2 || any_identity.as_bool()) {
  ------------------
  |  Branch (126:7): [True: 0, False: 460]
  |  Branch (126:17): [True: 0, False: 460]
  ------------------
  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|    460|   } else {
  134|    460|      std::vector<typename C::FieldElement> c;
  135|    460|      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|    460|      c.push_back(projective[0].z());
  145|   726k|      for(size_t i = 1; i != N; ++i) {
  ------------------
  |  Branch (145:25): [True: 725k, False: 460]
  ------------------
  146|   725k|         c.push_back(c[i - 1] * projective[i].z());
  147|   725k|      }
  148|       |
  149|    460|      auto s_inv = [&]() {
  150|    460|         if constexpr(VariableTime) {
  151|    460|            return c[N - 1].invert_vartime();
  152|    460|         } else {
  153|    460|            return invert_field_element<C>(c[N - 1]);
  154|    460|         }
  155|    460|      }();
  156|       |
  157|   726k|      for(size_t i = N - 1; i > 0; --i) {
  ------------------
  |  Branch (157:29): [True: 725k, False: 460]
  ------------------
  158|   725k|         const auto& p = projective[i];
  159|       |
  160|   725k|         const auto z_inv = s_inv * c[i - 1];
  161|   725k|         const auto z2_inv = z_inv.square();
  162|   725k|         const auto z3_inv = z_inv * z2_inv;
  163|       |
  164|   725k|         s_inv = s_inv * p.z();
  165|       |
  166|   725k|         affine.push_back(AffinePoint(p.x() * z2_inv, p.y() * z3_inv));
  167|   725k|      }
  168|       |
  169|    460|      const auto z2_inv = s_inv.square();
  170|    460|      const auto z3_inv = s_inv * z2_inv;
  171|    460|      affine.push_back(AffinePoint(projective[0].x() * z2_inv, projective[0].y() * z3_inv));
  172|    460|      std::reverse(affine.begin(), affine.end());
  173|    460|      return affine;
  174|    460|   }
  175|       |
  176|      0|   return affine;
  177|    460|}
pcurves_generic.cpp:_ZZN5Botan15to_affine_batchINS_6PCurve12_GLOBAL__N_112GenericCurveELb1EEEDaNSt3__14spanIKNT_15ProjectivePointELm18446744073709551615EEEENKUlvE_clEv:
  149|    460|      auto s_inv = [&]() {
  150|    460|         if constexpr(VariableTime) {
  151|    460|            return c[N - 1].invert_vartime();
  152|       |         } else {
  153|       |            return invert_field_element<C>(c[N - 1]);
  154|       |         }
  155|    460|      }();
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|    207|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|    207|   if constexpr(curve_supports_fe_invert2<C>) {
   81|    207|      const auto z2_inv = C::fe_invert2(pt.z());
   82|    207|      const auto z3_inv = z2_inv.square() * pt.z();
   83|    207|      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|    207|}
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.65k|                                                        const FieldElement& one) {
  297|  7.65k|   const auto a_is_identity = a.is_identity();
  298|  7.65k|   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.65k|   auto by = b.y();
  307|  7.65k|   by.conditional_assign(sub, by.negate());
  308|       |
  309|  7.65k|   const auto Z1Z1 = a.z().square();
  310|  7.65k|   const auto U2 = b.x() * Z1Z1;
  311|  7.65k|   const auto S2 = by * a.z() * Z1Z1;
  312|  7.65k|   const auto H = U2 - a.x();
  313|  7.65k|   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.65k|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (325:7): [True: 0, False: 7.65k]
  ------------------
  326|      0|      return a.dbl();
  327|      0|   }
  328|       |
  329|  7.65k|   const auto HH = H.square();
  330|  7.65k|   const auto HHH = H * HH;
  331|  7.65k|   const auto V = a.x() * HH;
  332|  7.65k|   const auto t2 = r.square();
  333|  7.65k|   const auto t3 = V + V;
  334|  7.65k|   const auto t4 = t2 - HHH;
  335|  7.65k|   auto X3 = t4 - t3;
  336|  7.65k|   const auto t5 = V - X3;
  337|  7.65k|   const auto t6 = a.y() * HHH;
  338|  7.65k|   const auto t7 = r * t5;
  339|  7.65k|   auto Y3 = t7 - t6;
  340|  7.65k|   auto Z3 = a.z() * H;
  341|       |
  342|       |   // if a is identity then return b
  343|  7.65k|   FieldElement::conditional_assign(X3, Y3, Z3, a_is_identity, b.x(), by, one);
  344|       |
  345|       |   // if b is identity then return a
  346|  7.65k|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  347|       |
  348|  7.65k|   return ProjectivePoint(X3, Y3, Z3);
  349|  7.65k|}
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|    177|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|    177|   if constexpr(curve_supports_fe_invert2<C>) {
   81|    177|      const auto z2_inv = C::fe_invert2(pt.z());
   82|    177|      const auto z3_inv = z2_inv.square() * pt.z();
   83|    177|      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|    177|}
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|  7.43k|                                                        const FieldElement& one) {
  297|  7.43k|   const auto a_is_identity = a.is_identity();
  298|  7.43k|   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.43k|   auto by = b.y();
  307|  7.43k|   by.conditional_assign(sub, by.negate());
  308|       |
  309|  7.43k|   const auto Z1Z1 = a.z().square();
  310|  7.43k|   const auto U2 = b.x() * Z1Z1;
  311|  7.43k|   const auto S2 = by * a.z() * Z1Z1;
  312|  7.43k|   const auto H = U2 - a.x();
  313|  7.43k|   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.43k|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (325:7): [True: 0, False: 7.43k]
  ------------------
  326|      0|      return a.dbl();
  327|      0|   }
  328|       |
  329|  7.43k|   const auto HH = H.square();
  330|  7.43k|   const auto HHH = H * HH;
  331|  7.43k|   const auto V = a.x() * HH;
  332|  7.43k|   const auto t2 = r.square();
  333|  7.43k|   const auto t3 = V + V;
  334|  7.43k|   const auto t4 = t2 - HHH;
  335|  7.43k|   auto X3 = t4 - t3;
  336|  7.43k|   const auto t5 = V - X3;
  337|  7.43k|   const auto t6 = a.y() * HHH;
  338|  7.43k|   const auto t7 = r * t5;
  339|  7.43k|   auto Y3 = t7 - t6;
  340|  7.43k|   auto Z3 = a.z() * H;
  341|       |
  342|       |   // if a is identity then return b
  343|  7.43k|   FieldElement::conditional_assign(X3, Y3, Z3, a_is_identity, b.x(), by, one);
  344|       |
  345|       |   // if b is identity then return a
  346|  7.43k|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  347|       |
  348|  7.43k|   return ProjectivePoint(X3, Y3, Z3);
  349|  7.43k|}
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|     65|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|     65|   if constexpr(curve_supports_fe_invert2<C>) {
   81|     65|      const auto z2_inv = C::fe_invert2(pt.z());
   82|     65|      const auto z3_inv = z2_inv.square() * pt.z();
   83|     65|      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|     65|}
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|  2.73k|                                                        const FieldElement& one) {
  297|  2.73k|   const auto a_is_identity = a.is_identity();
  298|  2.73k|   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|  2.73k|   auto by = b.y();
  307|  2.73k|   by.conditional_assign(sub, by.negate());
  308|       |
  309|  2.73k|   const auto Z1Z1 = a.z().square();
  310|  2.73k|   const auto U2 = b.x() * Z1Z1;
  311|  2.73k|   const auto S2 = by * a.z() * Z1Z1;
  312|  2.73k|   const auto H = U2 - a.x();
  313|  2.73k|   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|  2.73k|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (325:7): [True: 0, False: 2.73k]
  ------------------
  326|      0|      return a.dbl();
  327|      0|   }
  328|       |
  329|  2.73k|   const auto HH = H.square();
  330|  2.73k|   const auto HHH = H * HH;
  331|  2.73k|   const auto V = a.x() * HH;
  332|  2.73k|   const auto t2 = r.square();
  333|  2.73k|   const auto t3 = V + V;
  334|  2.73k|   const auto t4 = t2 - HHH;
  335|  2.73k|   auto X3 = t4 - t3;
  336|  2.73k|   const auto t5 = V - X3;
  337|  2.73k|   const auto t6 = a.y() * HHH;
  338|  2.73k|   const auto t7 = r * t5;
  339|  2.73k|   auto Y3 = t7 - t6;
  340|  2.73k|   auto Z3 = a.z() * H;
  341|       |
  342|       |   // if a is identity then return b
  343|  2.73k|   FieldElement::conditional_assign(X3, Y3, Z3, a_is_identity, b.x(), by, one);
  344|       |
  345|       |   // if b is identity then return a
  346|  2.73k|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  347|       |
  348|  2.73k|   return ProjectivePoint(X3, Y3, Z3);
  349|  2.73k|}
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|    167|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|    167|   if constexpr(curve_supports_fe_invert2<C>) {
   81|    167|      const auto z2_inv = C::fe_invert2(pt.z());
   82|    167|      const auto z3_inv = z2_inv.square() * pt.z();
   83|    167|      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|    167|}
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|  10.6k|                                                        const FieldElement& one) {
  297|  10.6k|   const auto a_is_identity = a.is_identity();
  298|  10.6k|   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|  10.6k|   auto by = b.y();
  307|  10.6k|   by.conditional_assign(sub, by.negate());
  308|       |
  309|  10.6k|   const auto Z1Z1 = a.z().square();
  310|  10.6k|   const auto U2 = b.x() * Z1Z1;
  311|  10.6k|   const auto S2 = by * a.z() * Z1Z1;
  312|  10.6k|   const auto H = U2 - a.x();
  313|  10.6k|   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|  10.6k|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (325:7): [True: 0, False: 10.6k]
  ------------------
  326|      0|      return a.dbl();
  327|      0|   }
  328|       |
  329|  10.6k|   const auto HH = H.square();
  330|  10.6k|   const auto HHH = H * HH;
  331|  10.6k|   const auto V = a.x() * HH;
  332|  10.6k|   const auto t2 = r.square();
  333|  10.6k|   const auto t3 = V + V;
  334|  10.6k|   const auto t4 = t2 - HHH;
  335|  10.6k|   auto X3 = t4 - t3;
  336|  10.6k|   const auto t5 = V - X3;
  337|  10.6k|   const auto t6 = a.y() * HHH;
  338|  10.6k|   const auto t7 = r * t5;
  339|  10.6k|   auto Y3 = t7 - t6;
  340|  10.6k|   auto Z3 = a.z() * H;
  341|       |
  342|       |   // if a is identity then return b
  343|  10.6k|   FieldElement::conditional_assign(X3, Y3, Z3, a_is_identity, b.x(), by, one);
  344|       |
  345|       |   // if b is identity then return a
  346|  10.6k|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  347|       |
  348|  10.6k|   return ProjectivePoint(X3, Y3, Z3);
  349|  10.6k|}
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|    174|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|    174|   if constexpr(curve_supports_fe_invert2<C>) {
   81|    174|      const auto z2_inv = C::fe_invert2(pt.z());
   82|    174|      const auto z3_inv = z2_inv.square() * pt.z();
   83|    174|      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|    174|}
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|  14.9k|                                                        const FieldElement& one) {
  297|  14.9k|   const auto a_is_identity = a.is_identity();
  298|  14.9k|   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.9k|   auto by = b.y();
  307|  14.9k|   by.conditional_assign(sub, by.negate());
  308|       |
  309|  14.9k|   const auto Z1Z1 = a.z().square();
  310|  14.9k|   const auto U2 = b.x() * Z1Z1;
  311|  14.9k|   const auto S2 = by * a.z() * Z1Z1;
  312|  14.9k|   const auto H = U2 - a.x();
  313|  14.9k|   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.9k|   if((r.is_zero() && H.is_zero() && !(a_is_identity && b_is_identity)).as_bool()) {
  ------------------
  |  Branch (325:7): [True: 0, False: 14.9k]
  ------------------
  326|      0|      return a.dbl();
  327|      0|   }
  328|       |
  329|  14.9k|   const auto HH = H.square();
  330|  14.9k|   const auto HHH = H * HH;
  331|  14.9k|   const auto V = a.x() * HH;
  332|  14.9k|   const auto t2 = r.square();
  333|  14.9k|   const auto t3 = V + V;
  334|  14.9k|   const auto t4 = t2 - HHH;
  335|  14.9k|   auto X3 = t4 - t3;
  336|  14.9k|   const auto t5 = V - X3;
  337|  14.9k|   const auto t6 = a.y() * HHH;
  338|  14.9k|   const auto t7 = r * t5;
  339|  14.9k|   auto Y3 = t7 - t6;
  340|  14.9k|   auto Z3 = a.z() * H;
  341|       |
  342|       |   // if a is identity then return b
  343|  14.9k|   FieldElement::conditional_assign(X3, Y3, Z3, a_is_identity, b.x(), by, one);
  344|       |
  345|       |   // if b is identity then return a
  346|  14.9k|   FieldElement::conditional_assign(X3, Y3, Z3, b_is_identity, a.x(), a.y(), a.z());
  347|       |
  348|  14.9k|   return ProjectivePoint(X3, Y3, Z3);
  349|  14.9k|}

_ZNK5Botan6PCurve22GenericPrimeOrderCurve7_paramsEv:
  113|  75.1M|      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|     97|      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|     97|         auto x = pt.x();
 1027|     97|         auto y = pt.y();
 1028|     97|         auto z = FieldElement::one();
 1029|       |
 1030|     97|         FieldElement::conditional_swap(pt.is_identity(), y, z);
 1031|       |
 1032|     97|         return ProjectiveCurvePoint(x, y, z);
 1033|     97|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEEE1xEv:
  971|   144k|      constexpr const FieldElement& x() const { return m_x; }
pcurves_brainpool256r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEEE1yEv:
  976|   140k|      constexpr const FieldElement& y() const { return m_y; }
pcurves_brainpool256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE3oneEv:
  200|  4.22k|      static constexpr Self one() { return Self(Rep::one()); }
pcurves_brainpool256r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES0_E11FieldParamsEE3oneEv:
   99|  4.22k|      constexpr static std::array<W, N> one() { return R1; }
pcurves_brainpool256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEEC2ENSt3__15arrayImLm4EEE:
  898|   139k|      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|     97|      static constexpr void conditional_swap(CT::Choice cond, Self& x, Self& y) {
  411|     97|         const W mask = cond.into_bitmask<W>();
  412|       |
  413|    485|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (413:28): [True: 388, False: 97]
  ------------------
  414|    388|            auto nx = Botan::choose(mask, y.m_val[i], x.m_val[i]);
  415|    388|            auto ny = Botan::choose(mask, x.m_val[i], y.m_val[i]);
  416|    388|            x.m_val[i] = nx;
  417|    388|            y.m_val[i] = ny;
  418|    388|         }
  419|     97|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEEE11is_identityEv:
  928|  4.41k|      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|  25.4k|      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|  5.88k|            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|  34.2k|      constexpr const FieldElement& z() const { return m_z; }
pcurves_brainpool256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE6squareEv:
  426|  22.5k|      constexpr BOTAN_FORCE_INLINE Self square() const {
  427|  22.5k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  428|  22.5k|         comba_sqr<N>(z.data(), this->data());
  429|  22.5k|         return Self(Rep::redc(z));
  430|  22.5k|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE4dataEv:
  896|   172k|      constexpr const W* data() const { return m_val.data(); }
pcurves_brainpool256r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES0_E11FieldParamsEE4redcERKNSt3__15arrayImLm8EEE:
  104|   107k|      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|   107k|         } else {
  108|   107k|            return monty_redc(z, P, P_dash);
  109|   107k|         }
  110|   107k|      }
pcurves_brainpool256r1.cpp:_ZN5BotanplERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEEESC_:
  265|  6.80k|      friend constexpr BOTAN_FORCE_INLINE Self operator+(const Self& a, const Self& b) {
  266|  6.80k|         std::array<W, N> t;  // NOLINT(*-member-init)
  267|       |
  268|  6.80k|         W carry = 0;
  269|  34.0k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (269:28): [True: 27.2k, False: 6.80k]
  ------------------
  270|  27.2k|            t[i] = word_add(a.m_val[i], b.m_val[i], &carry);
  271|  27.2k|         }
  272|       |
  273|  6.80k|         std::array<W, N> r;  // NOLINT(*-member-init)
  274|  6.80k|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  275|  6.80k|         return Self(r);
  276|  6.80k|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEES7_E1xEv:
 1162|  18.6k|      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|  54.8k|      friend constexpr BOTAN_FORCE_INLINE Self operator*(const Self& a, const Self& b) {
  347|  54.8k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  348|  54.8k|         comba_mul<N>(z.data(), a.data(), b.data());
  349|  54.8k|         return Self(Rep::redc(z));
  350|  54.8k|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEES7_E1yEv:
 1167|  18.6k|      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|  31.1k|      friend constexpr BOTAN_FORCE_INLINE Self operator-(const Self& a, const Self& b) {
  282|  31.1k|         std::array<W, N> r;  // NOLINT(*-member-init)
  283|  31.1k|         W carry = 0;
  284|   155k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (284:28): [True: 124k, False: 31.1k]
  ------------------
  285|   124k|            r[i] = word_sub(a.m_val[i], b.m_val[i], &carry);
  286|   124k|         }
  287|       |
  288|  31.1k|         const auto mask = CT::Mask<W>::expand(carry).value();
  289|       |
  290|  31.1k|         carry = 0;
  291|       |
  292|   155k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (292:28): [True: 124k, False: 31.1k]
  ------------------
  293|   124k|            r[i] = word_add(r[i], P[i] & mask, &carry);
  294|   124k|         }
  295|       |
  296|  31.1k|         return Self(r);
  297|  31.1k|      }
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|  7.07k|      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|  9.63k|         Self& x, Self& y, Self& z, CT::Choice cond, const Self& nx, const Self& ny, const Self& nz) {
  396|  9.63k|         const W mask = cond.into_bitmask<W>();
  397|       |
  398|  48.1k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (398:28): [True: 38.5k, False: 9.63k]
  ------------------
  399|  38.5k|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  400|  38.5k|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  401|  38.5k|            z.m_val[i] = Botan::choose(mask, nz.m_val[i], z.m_val[i]);
  402|  38.5k|         }
  403|  9.63k|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE6invertEv:
  538|     96|      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|     96|      constexpr Self pow_vartime(const std::array<W, N>& exp) const {
  478|     96|         constexpr size_t WindowBits = (Self::BITS <= 256) ? 4 : 5;
  ------------------
  |  Branch (478:40): [True: 0, Folded]
  ------------------
  479|     96|         constexpr size_t WindowElements = (1 << WindowBits) - 1;
  480|       |
  481|     96|         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|     96|         std::array<Self, WindowElements> tbl;
  490|       |
  491|     96|         tbl[0] = (*this);
  492|       |
  493|  1.44k|         for(size_t i = 1; i != WindowElements; ++i) {
  ------------------
  |  Branch (493:28): [True: 1.34k, False: 96]
  ------------------
  494|       |            // Conditional ok: table indexes are public here
  495|  1.34k|            if(i % 2 == 1) {
  ------------------
  |  Branch (495:16): [True: 672, False: 672]
  ------------------
  496|    672|               tbl[i] = tbl[i / 2].square();
  497|    672|            } else {
  498|    672|               tbl[i] = tbl[i - 1] * tbl[0];
  499|    672|            }
  500|  1.34k|         }
  501|       |
  502|     96|         auto r = Self::one();
  503|       |
  504|     96|         const size_t w0 = read_window_bits<WindowBits>(std::span{exp}, (Windows - 1) * WindowBits);
  505|       |
  506|       |         // Conditional ok: this function is variable time
  507|     96|         if(w0 > 0) {
  ------------------
  |  Branch (507:13): [True: 96, False: 0]
  ------------------
  508|     96|            r = tbl[w0 - 1];
  509|     96|         }
  510|       |
  511|  6.14k|         for(size_t i = 1; i != Windows; ++i) {
  ------------------
  |  Branch (511:28): [True: 6.04k, False: 96]
  ------------------
  512|  6.04k|            r.square_n(WindowBits);
  513|       |
  514|  6.04k|            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|  6.04k|            if(w > 0) {
  ------------------
  |  Branch (517:16): [True: 5.66k, False: 384]
  ------------------
  518|  5.66k|               r *= tbl[w - 1];
  519|  5.66k|            }
  520|  6.04k|         }
  521|       |
  522|     96|         return r;
  523|     96|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEEC2Ev:
  180|  1.44k|      constexpr IntMod() : m_val({}) {}
pcurves_brainpool256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE8square_nEm:
  439|  6.04k|      constexpr void square_n(size_t n) {
  440|  6.04k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  441|  30.2k|         for(size_t i = 0; i != n; ++i) {
  ------------------
  |  Branch (441:28): [True: 24.1k, False: 6.04k]
  ------------------
  442|  24.1k|            comba_sqr<N>(z.data(), this->data());
  443|  24.1k|            m_val = Rep::redc(z);
  444|  24.1k|         }
  445|  6.04k|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEEmLERKSA_:
  355|  5.66k|      constexpr BOTAN_FORCE_INLINE Self& operator*=(const Self& other) {
  356|  5.66k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  357|  5.66k|         comba_mul<N>(z.data(), data(), other.data());
  358|  5.66k|         m_val = Rep::redc(z);
  359|  5.66k|         return (*this);
  360|  5.66k|      }
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|  8.25k|      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|    193|      constexpr static std::array<W, N> from_rep(const std::array<W, N>& z) {
  138|    193|         std::array<W, 2 * N> ze = {};
  139|    193|         copy_mem(std::span{ze}.template first<N>(), z);
  140|    193|         return Self::redc(ze);
  141|    193|      }
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|  4.13k|      constexpr Self negate() const {
  453|  4.13k|         const W x_is_zero = ~CT::all_zeros(this->data(), N).value();
  454|       |
  455|  4.13k|         std::array<W, N> r;  // NOLINT(*-member-init)
  456|  4.13k|         W carry = 0;
  457|  20.6k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (457:28): [True: 16.5k, False: 4.13k]
  ------------------
  458|  16.5k|            r[i] = word_sub(P[i] & x_is_zero, m_val[i], &carry);
  459|  16.5k|         }
  460|       |
  461|  4.13k|         return Self(r);
  462|  4.13k|      }
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|  5.98k|      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|    480|      std::array<W, L> stash_value() const {
  760|    480|         static_assert(L >= N);
  761|    480|         std::array<W, L> stash = {};
  762|  2.40k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 1.92k, False: 480]
  ------------------
  763|  1.92k|            stash[i] = m_val[i];
  764|  1.92k|         }
  765|    480|         return stash;
  766|    480|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan23PrecomputedBaseMulTableINS_6PCurve12_GLOBAL__N_114brainpool256r15CurveELm6EE3mulERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES7_E12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1407|     96|      ProjectivePoint mul(const Scalar& s, RandomNumberGenerator& rng) const {
 1408|     96|         const BlindedScalar scalar(s, rng);
 1409|     96|         return basemul_booth_exec<C, WindowBits>(m_table, scalar, rng);
 1410|     96|      }
pcurves_brainpool256r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_114brainpool256r15CurveELm7EEC2ERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES7_E12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1307|     96|      BlindedScalarBits(const typename C::Scalar& scalar, RandomNumberGenerator& rng) {
 1308|     96|         if(BlindingBits > 0 && rng.is_seeded()) {
  ------------------
  |  Branch (1308:13): [True: 96, Folded]
  |  Branch (1308:33): [True: 0, False: 96]
  ------------------
 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|     96|         } else {
 1344|       |            // No RNG available, skip blinding
 1345|     96|            m_bytes.resize(C::Scalar::BYTES);
 1346|     96|            scalar.serialize_to(std::span{m_bytes}.template first<C::Scalar::BYTES>());
 1347|     96|            m_bits = C::Scalar::BITS;
 1348|     96|         }
 1349|       |
 1350|     96|         CT::poison(m_bytes.data(), m_bytes.size());
 1351|     96|      }
pcurves_brainpool256r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES0_E12ScalarParamsEE8from_repERKNSt3__15arrayImLm4EEE:
  137|    225|      constexpr static std::array<W, N> from_rep(const std::array<W, N>& z) {
  138|    225|         std::array<W, 2 * N> ze = {};
  139|    225|         copy_mem(std::span{ze}.template first<N>(), z);
  140|    225|         return Self::redc(ze);
  141|    225|      }
pcurves_brainpool256r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES0_E12ScalarParamsEE4redcERKNSt3__15arrayImLm8EEE:
  104|    355|      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|    355|         } else {
  108|    355|            return monty_redc(z, P, P_dash);
  109|    355|         }
  110|    355|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E12ScalarParamsEEEE12serialize_toENSt3__14spanIhLm32EEE:
  739|    225|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    225|         auto v = Rep::from_rep(m_val);
  741|    225|         std::reverse(v.begin(), v.end());
  742|       |
  743|    225|         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|    225|            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|    225|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_114brainpool256r15CurveELm7EE4bitsEv:
 1305|     96|      size_t bits() const { return m_bits; }
pcurves_brainpool256r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEES7_E18conditional_assignENS_2CT6ChoiceERKSC_:
 1084|     96|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
 1085|     96|         FieldElement::conditional_assign(m_x, m_y, m_z, cond, pt.x(), pt.y(), pt.z());
 1086|     96|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEES7_E6negateEv:
 1134|     96|      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|     96|      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|    288|      constexpr void _const_time_poison() const { CT::poison(m_val); }
pcurves_brainpool256r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_114brainpool256r15CurveELm7EE10get_windowEm:
 1353|  4.12k|      size_t get_window(size_t offset) const {
 1354|       |         // Extract a WindowBits sized window out of s, depending on offset.
 1355|  4.12k|         return read_window_bits<WindowBits>(std::span{m_bytes}, offset);
 1356|  4.12k|      }
pcurves_brainpool256r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEES7_E10add_or_subERKSC_RKNS_16AffineCurvePointISB_EENS_2CT6ChoiceE:
 1096|  4.03k|      constexpr static Self add_or_sub(const Self& a, const AffinePoint& b, CT::Choice sub) {
 1097|  4.03k|         return point_add_or_sub_mixed<Self, AffinePoint, FieldElement>(a, b, sub, FieldElement::one());
 1098|  4.03k|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE18conditional_assignENS_2CT6ChoiceERKSA_:
  367|  4.03k|      constexpr void conditional_assign(CT::Choice cond, const Self& nx) {
  368|  4.03k|         const W mask = cond.into_bitmask<W>();
  369|       |
  370|  20.1k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (370:28): [True: 16.1k, False: 4.03k]
  ------------------
  371|  16.1k|            m_val[i] = Botan::choose(mask, nx.m_val[i], m_val[i]);
  372|  16.1k|         }
  373|  4.03k|      }
pcurves_brainpool256r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEEE9ct_selectENSt3__14spanIKSC_Lm18446744073709551615EEEm:
  955|  4.12k|      static constexpr auto ct_select(std::span<const Self> pts, size_t idx) {
  956|  4.12k|         auto result = Self::identity(pts[0]);
  957|       |
  958|       |         // Intentionally wrapping; set to maximum size_t if idx == 0
  959|  4.12k|         const size_t idx1 = static_cast<size_t>(idx - 1);
  960|   136k|         for(size_t i = 0; i != pts.size(); ++i) {
  ------------------
  |  Branch (960:28): [True: 132k, False: 4.12k]
  ------------------
  961|   132k|            const auto found = CT::Mask<size_t>::is_equal(idx1, i).as_choice();
  962|   132k|            result.conditional_assign(found, pts[i]);
  963|   132k|         }
  964|       |
  965|  4.12k|         return result;
  966|  4.12k|      }
pcurves_brainpool256r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEEE8identityERKSC_:
  924|  4.12k|      static constexpr Self identity(const Self& /*unused*/) {
  925|  4.12k|         return Self(FieldElement::zero(), FieldElement::zero());
  926|  4.12k|      }
pcurves_brainpool256r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEEE18conditional_assignENS_2CT6ChoiceERKSC_:
  981|   132k|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
  982|   132k|         FieldElement::conditional_assign(m_x, m_y, cond, pt.x(), pt.y());
  983|   132k|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE18conditional_assignERSA_SB_NS_2CT6ChoiceERKSA_SF_:
  380|   132k|      static constexpr void conditional_assign(Self& x, Self& y, CT::Choice cond, const Self& nx, const Self& ny) {
  381|   132k|         const W mask = cond.into_bitmask<W>();
  382|       |
  383|   660k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (383:28): [True: 528k, False: 132k]
  ------------------
  384|   528k|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  385|   528k|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  386|   528k|         }
  387|   132k|      }
pcurves_brainpool256r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEES7_E13randomize_repERNS_21RandomNumberGeneratorE:
 1142|    384|      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|    384|         if(rng.is_seeded()) {
  ------------------
  |  Branch (1147:13): [True: 0, False: 384]
  ------------------
 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|    384|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEES7_E20_const_time_unpoisonEv:
 1176|     96|      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|    288|      constexpr void _const_time_unpoison() const { CT::unpoison(m_val); }
pcurves_brainpool256r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_114brainpool256r15CurveELm7EED2Ev:
 1358|     96|      ~BlindedScalarBits() {
 1359|     96|         secure_zeroize_buffer(m_bytes.data(), m_bytes.size());
 1360|     96|         CT::unpoison(m_bytes.data(), m_bytes.size());
 1361|     96|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E12ScalarParamsEEEE10from_stashILm9EEESA_RKNSt3__15arrayImXT_EEE:
  774|    354|      static Self from_stash(const std::array<W, L>& stash) {
  775|    354|         static_assert(L >= N);
  776|    354|         std::array<W, N> val = {};
  777|  1.77k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 1.41k, False: 354]
  ------------------
  778|  1.41k|            val[i] = stash[i];
  779|  1.41k|         }
  780|    354|         return Self(val);
  781|    354|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E12ScalarParamsEEEEC2ENSt3__15arrayImLm4EEE:
  898|    484|      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|    192|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    192|         auto v = Rep::from_rep(m_val);
  741|    192|         std::reverse(v.begin(), v.end());
  742|       |
  743|    192|         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|    192|            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|    192|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E12ScalarParamsEEEE11stash_valueILm9EEENSt3__15arrayImXT_EEEv:
  759|    129|      std::array<W, L> stash_value() const {
  760|    129|         static_assert(L >= N);
  761|    129|         std::array<W, L> stash = {};
  762|    645|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 516, False: 129]
  ------------------
  763|    516|            stash[i] = m_val[i];
  764|    516|         }
  765|    129|         return stash;
  766|    129|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E11FieldParamsEEEE10from_stashILm9EEESA_RKNSt3__15arrayImXT_EEE:
  774|    672|      static Self from_stash(const std::array<W, L>& stash) {
  775|    672|         static_assert(L >= N);
  776|    672|         std::array<W, N> val = {};
  777|  3.36k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 2.68k, False: 672]
  ------------------
  778|  2.68k|            val[i] = stash[i];
  779|  2.68k|         }
  780|    672|         return Self(val);
  781|    672|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E12ScalarParamsEEEE7is_zeroEv:
  225|    259|      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|     96|      constexpr CT::Choice operator==(const Self& other) const {
  723|     96|         return CT::is_equal(this->data(), other.data(), N).as_choice();
  724|     96|      }
pcurves_brainpool256r1.cpp:_ZN5Botan13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsENS_13MontgomeryRepEE7x3_ax_bERKNS_6IntModINS5_INS6_11FieldParamsEEEEE:
 1275|     96|      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|    130|      static std::optional<Self> deserialize(std::span<const uint8_t> bytes) {
  793|       |         // Conditional ok: input length is public
  794|    130|         if(bytes.size() != Self::BYTES) {
  ------------------
  |  Branch (794:13): [True: 0, False: 130]
  ------------------
  795|      0|            return {};
  796|      0|         }
  797|       |
  798|    130|         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|    130|         if(!bigint_ct_is_lt(words.data(), N, P.data(), N).as_bool()) {
  ------------------
  |  Branch (801:13): [True: 0, False: 130]
  ------------------
  802|      0|            return {};
  803|      0|         }
  804|       |
  805|       |         // Safe because we checked above that words is an integer < P
  806|    130|         return Self::from_words(words);
  807|    130|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES1_E12ScalarParamsEEEE10from_wordsILm4EEESA_NSt3__15arrayImXT_EEE:
  211|    130|      static constexpr Self from_words(std::array<W, L> w) {
  212|    130|         if constexpr(L == N) {
  213|    130|            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|    130|      }
pcurves_brainpool256r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES0_E12ScalarParamsEE6to_repERKNSt3__15arrayImLm4EEE:
  115|    130|      constexpr static std::array<W, N> to_rep(const std::array<W, N>& x) {
  116|    130|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  117|    130|         comba_mul<N>(z.data(), x.data(), R2.data());
  118|    130|         return Self::redc(z);
  119|    130|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool256r16ParamsES2_E11FieldParamsEEEEEE12serialize_toENSt3__14spanIhLm65EEE:
  941|     96|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  942|     96|         BOTAN_STATE_CHECK(this->is_identity().as_bool() == false);
  ------------------
  |  |   51|     96|   do {                                                         \
  |  |   52|     96|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|     96|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 96]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|     96|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 96]
  |  |  ------------------
  ------------------
  943|     96|         BufferStuffer pack(bytes);
  944|     96|         pack.append(0x04);
  945|     96|         x().serialize_to(pack.next<FieldElement::BYTES>());
  946|     96|         y().serialize_to(pack.next<FieldElement::BYTES>());
  947|     96|         BOTAN_DEBUG_ASSERT(pack.full());
  ------------------
  |  |  130|     96|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|     96|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 96]
  |  |  ------------------
  ------------------
  948|     96|      }
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|    139|      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|    139|         auto x = pt.x();
 1027|    139|         auto y = pt.y();
 1028|    139|         auto z = FieldElement::one();
 1029|       |
 1030|    139|         FieldElement::conditional_swap(pt.is_identity(), y, z);
 1031|       |
 1032|    139|         return ProjectiveCurvePoint(x, y, z);
 1033|    139|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEEE1xEv:
  971|   314k|      constexpr const FieldElement& x() const { return m_x; }
pcurves_brainpool384r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEEE1yEv:
  976|   305k|      constexpr const FieldElement& y() const { return m_y; }
pcurves_brainpool384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE3oneEv:
  200|  9.10k|      static constexpr Self one() { return Self(Rep::one()); }
pcurves_brainpool384r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES0_E11FieldParamsEE3oneEv:
   99|  9.10k|      constexpr static std::array<W, N> one() { return R1; }
pcurves_brainpool384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEEC2ENSt3__15arrayImLm6EEE:
  898|   271k|      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|    139|      static constexpr void conditional_swap(CT::Choice cond, Self& x, Self& y) {
  411|    139|         const W mask = cond.into_bitmask<W>();
  412|       |
  413|    973|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (413:28): [True: 834, False: 139]
  ------------------
  414|    834|            auto nx = Botan::choose(mask, y.m_val[i], x.m_val[i]);
  415|    834|            auto ny = Botan::choose(mask, x.m_val[i], y.m_val[i]);
  416|    834|            x.m_val[i] = nx;
  417|    834|            y.m_val[i] = ny;
  418|    834|         }
  419|    139|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEEE11is_identityEv:
  928|  9.38k|      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|  51.9k|      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|  11.5k|            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|  65.1k|      constexpr const FieldElement& z() const { return m_z; }
pcurves_brainpool384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE6squareEv:
  426|  43.1k|      constexpr BOTAN_FORCE_INLINE Self square() const {
  427|  43.1k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  428|  43.1k|         comba_sqr<N>(z.data(), this->data());
  429|  43.1k|         return Self(Rep::redc(z));
  430|  43.1k|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE4dataEv:
  896|   336k|      constexpr const W* data() const { return m_val.data(); }
pcurves_brainpool384r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES0_E11FieldParamsEE4redcERKNSt3__15arrayImLm12EEE:
  104|   211k|      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|   211k|         } else {
  108|   211k|            return monty_redc(z, P, P_dash);
  109|   211k|         }
  110|   211k|      }
pcurves_brainpool384r1.cpp:_ZN5BotanplERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEEESC_:
  265|  12.9k|      friend constexpr BOTAN_FORCE_INLINE Self operator+(const Self& a, const Self& b) {
  266|  12.9k|         std::array<W, N> t;  // NOLINT(*-member-init)
  267|       |
  268|  12.9k|         W carry = 0;
  269|  90.6k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (269:28): [True: 77.6k, False: 12.9k]
  ------------------
  270|  77.6k|            t[i] = word_add(a.m_val[i], b.m_val[i], &carry);
  271|  77.6k|         }
  272|       |
  273|  12.9k|         std::array<W, N> r;  // NOLINT(*-member-init)
  274|  12.9k|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  275|  12.9k|         return Self(r);
  276|  12.9k|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEES7_E1xEv:
 1162|  36.2k|      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|   105k|      friend constexpr BOTAN_FORCE_INLINE Self operator*(const Self& a, const Self& b) {
  347|   105k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  348|   105k|         comba_mul<N>(z.data(), a.data(), b.data());
  349|   105k|         return Self(Rep::redc(z));
  350|   105k|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEES7_E1yEv:
 1167|  36.2k|      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|  63.2k|      friend constexpr BOTAN_FORCE_INLINE Self operator-(const Self& a, const Self& b) {
  282|  63.2k|         std::array<W, N> r;  // NOLINT(*-member-init)
  283|  63.2k|         W carry = 0;
  284|   442k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (284:28): [True: 379k, False: 63.2k]
  ------------------
  285|   379k|            r[i] = word_sub(a.m_val[i], b.m_val[i], &carry);
  286|   379k|         }
  287|       |
  288|  63.2k|         const auto mask = CT::Mask<W>::expand(carry).value();
  289|       |
  290|  63.2k|         carry = 0;
  291|       |
  292|   442k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (292:28): [True: 379k, False: 63.2k]
  ------------------
  293|   379k|            r[i] = word_add(r[i], P[i] & mask, &carry);
  294|   379k|         }
  295|       |
  296|  63.2k|         return Self(r);
  297|  63.2k|      }
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.3k|      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|  19.9k|         Self& x, Self& y, Self& z, CT::Choice cond, const Self& nx, const Self& ny, const Self& nz) {
  396|  19.9k|         const W mask = cond.into_bitmask<W>();
  397|       |
  398|   139k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (398:28): [True: 119k, False: 19.9k]
  ------------------
  399|   119k|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  400|   119k|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  401|   119k|            z.m_val[i] = Botan::choose(mask, nz.m_val[i], z.m_val[i]);
  402|   119k|         }
  403|  19.9k|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE6invertEv:
  538|    138|      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|    138|      constexpr Self pow_vartime(const std::array<W, N>& exp) const {
  478|    138|         constexpr size_t WindowBits = (Self::BITS <= 256) ? 4 : 5;
  ------------------
  |  Branch (478:40): [Folded, False: 138]
  ------------------
  479|    138|         constexpr size_t WindowElements = (1 << WindowBits) - 1;
  480|       |
  481|    138|         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|    138|         std::array<Self, WindowElements> tbl;
  490|       |
  491|    138|         tbl[0] = (*this);
  492|       |
  493|  4.27k|         for(size_t i = 1; i != WindowElements; ++i) {
  ------------------
  |  Branch (493:28): [True: 4.14k, False: 138]
  ------------------
  494|       |            // Conditional ok: table indexes are public here
  495|  4.14k|            if(i % 2 == 1) {
  ------------------
  |  Branch (495:16): [True: 2.07k, False: 2.07k]
  ------------------
  496|  2.07k|               tbl[i] = tbl[i / 2].square();
  497|  2.07k|            } else {
  498|  2.07k|               tbl[i] = tbl[i - 1] * tbl[0];
  499|  2.07k|            }
  500|  4.14k|         }
  501|       |
  502|    138|         auto r = Self::one();
  503|       |
  504|    138|         const size_t w0 = read_window_bits<WindowBits>(std::span{exp}, (Windows - 1) * WindowBits);
  505|       |
  506|       |         // Conditional ok: this function is variable time
  507|    138|         if(w0 > 0) {
  ------------------
  |  Branch (507:13): [True: 138, False: 0]
  ------------------
  508|    138|            r = tbl[w0 - 1];
  509|    138|         }
  510|       |
  511|  10.6k|         for(size_t i = 1; i != Windows; ++i) {
  ------------------
  |  Branch (511:28): [True: 10.4k, False: 138]
  ------------------
  512|  10.4k|            r.square_n(WindowBits);
  513|       |
  514|  10.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|  10.4k|            if(w > 0) {
  ------------------
  |  Branch (517:16): [True: 10.0k, False: 414]
  ------------------
  518|  10.0k|               r *= tbl[w - 1];
  519|  10.0k|            }
  520|  10.4k|         }
  521|       |
  522|    138|         return r;
  523|    138|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEEC2Ev:
  180|  4.27k|      constexpr IntMod() : m_val({}) {}
pcurves_brainpool384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE8square_nEm:
  439|  10.4k|      constexpr void square_n(size_t n) {
  440|  10.4k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  441|  62.9k|         for(size_t i = 0; i != n; ++i) {
  ------------------
  |  Branch (441:28): [True: 52.4k, False: 10.4k]
  ------------------
  442|  52.4k|            comba_sqr<N>(z.data(), this->data());
  443|  52.4k|            m_val = Rep::redc(z);
  444|  52.4k|         }
  445|  10.4k|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEEmLERKSA_:
  355|  10.0k|      constexpr BOTAN_FORCE_INLINE Self& operator*=(const Self& other) {
  356|  10.0k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  357|  10.0k|         comba_mul<N>(z.data(), data(), other.data());
  358|  10.0k|         m_val = Rep::redc(z);
  359|  10.0k|         return (*this);
  360|  10.0k|      }
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|  17.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|    277|      constexpr static std::array<W, N> from_rep(const std::array<W, N>& z) {
  138|    277|         std::array<W, 2 * N> ze = {};
  139|    277|         copy_mem(std::span{ze}.template first<N>(), z);
  140|    277|         return Self::redc(ze);
  141|    277|      }
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|  8.97k|      constexpr Self negate() const {
  453|  8.97k|         const W x_is_zero = ~CT::all_zeros(this->data(), N).value();
  454|       |
  455|  8.97k|         std::array<W, N> r;  // NOLINT(*-member-init)
  456|  8.97k|         W carry = 0;
  457|  62.8k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (457:28): [True: 53.8k, False: 8.97k]
  ------------------
  458|  53.8k|            r[i] = word_sub(P[i] & x_is_zero, m_val[i], &carry);
  459|  53.8k|         }
  460|       |
  461|  8.97k|         return Self(r);
  462|  8.97k|      }
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|  11.7k|      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|    690|      std::array<W, L> stash_value() const {
  760|    690|         static_assert(L >= N);
  761|    690|         std::array<W, L> stash = {};
  762|  4.83k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 4.14k, False: 690]
  ------------------
  763|  4.14k|            stash[i] = m_val[i];
  764|  4.14k|         }
  765|    690|         return stash;
  766|    690|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan23PrecomputedBaseMulTableINS_6PCurve12_GLOBAL__N_114brainpool384r15CurveELm6EE3mulERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES7_E12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1407|    138|      ProjectivePoint mul(const Scalar& s, RandomNumberGenerator& rng) const {
 1408|    138|         const BlindedScalar scalar(s, rng);
 1409|    138|         return basemul_booth_exec<C, WindowBits>(m_table, scalar, rng);
 1410|    138|      }
pcurves_brainpool384r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_114brainpool384r15CurveELm7EEC2ERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES7_E12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1307|    138|      BlindedScalarBits(const typename C::Scalar& scalar, RandomNumberGenerator& rng) {
 1308|    138|         if(BlindingBits > 0 && rng.is_seeded()) {
  ------------------
  |  Branch (1308:13): [True: 138, Folded]
  |  Branch (1308:33): [True: 0, False: 138]
  ------------------
 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|    138|         } else {
 1344|       |            // No RNG available, skip blinding
 1345|    138|            m_bytes.resize(C::Scalar::BYTES);
 1346|    138|            scalar.serialize_to(std::span{m_bytes}.template first<C::Scalar::BYTES>());
 1347|    138|            m_bits = C::Scalar::BITS;
 1348|    138|         }
 1349|       |
 1350|    138|         CT::poison(m_bytes.data(), m_bytes.size());
 1351|    138|      }
pcurves_brainpool384r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES0_E12ScalarParamsEE8from_repERKNSt3__15arrayImLm6EEE:
  137|    322|      constexpr static std::array<W, N> from_rep(const std::array<W, N>& z) {
  138|    322|         std::array<W, 2 * N> ze = {};
  139|    322|         copy_mem(std::span{ze}.template first<N>(), z);
  140|    322|         return Self::redc(ze);
  141|    322|      }
pcurves_brainpool384r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES0_E12ScalarParamsEE4redcERKNSt3__15arrayImLm12EEE:
  104|    507|      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|    507|         } else {
  108|    507|            return monty_redc(z, P, P_dash);
  109|    507|         }
  110|    507|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E12ScalarParamsEEEE12serialize_toENSt3__14spanIhLm48EEE:
  739|    322|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    322|         auto v = Rep::from_rep(m_val);
  741|    322|         std::reverse(v.begin(), v.end());
  742|       |
  743|    322|         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|    322|            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|    322|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_114brainpool384r15CurveELm7EE4bitsEv:
 1305|    138|      size_t bits() const { return m_bits; }
pcurves_brainpool384r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEES7_E18conditional_assignENS_2CT6ChoiceERKSC_:
 1084|    138|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
 1085|    138|         FieldElement::conditional_assign(m_x, m_y, m_z, cond, pt.x(), pt.y(), pt.z());
 1086|    138|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEES7_E6negateEv:
 1134|    138|      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|    138|      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|    414|      constexpr void _const_time_poison() const { CT::poison(m_val); }
pcurves_brainpool384r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_114brainpool384r15CurveELm7EE10get_windowEm:
 1353|  8.97k|      size_t get_window(size_t offset) const {
 1354|       |         // Extract a WindowBits sized window out of s, depending on offset.
 1355|  8.97k|         return read_window_bits<WindowBits>(std::span{m_bytes}, offset);
 1356|  8.97k|      }
pcurves_brainpool384r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEES7_E10add_or_subERKSC_RKNS_16AffineCurvePointISB_EENS_2CT6ChoiceE:
 1096|  8.83k|      constexpr static Self add_or_sub(const Self& a, const AffinePoint& b, CT::Choice sub) {
 1097|  8.83k|         return point_add_or_sub_mixed<Self, AffinePoint, FieldElement>(a, b, sub, FieldElement::one());
 1098|  8.83k|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE18conditional_assignENS_2CT6ChoiceERKSA_:
  367|  8.83k|      constexpr void conditional_assign(CT::Choice cond, const Self& nx) {
  368|  8.83k|         const W mask = cond.into_bitmask<W>();
  369|       |
  370|  61.8k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (370:28): [True: 52.9k, False: 8.83k]
  ------------------
  371|  52.9k|            m_val[i] = Botan::choose(mask, nx.m_val[i], m_val[i]);
  372|  52.9k|         }
  373|  8.83k|      }
pcurves_brainpool384r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEEE9ct_selectENSt3__14spanIKSC_Lm18446744073709551615EEEm:
  955|  8.97k|      static constexpr auto ct_select(std::span<const Self> pts, size_t idx) {
  956|  8.97k|         auto result = Self::identity(pts[0]);
  957|       |
  958|       |         // Intentionally wrapping; set to maximum size_t if idx == 0
  959|  8.97k|         const size_t idx1 = static_cast<size_t>(idx - 1);
  960|   296k|         for(size_t i = 0; i != pts.size(); ++i) {
  ------------------
  |  Branch (960:28): [True: 287k, False: 8.97k]
  ------------------
  961|   287k|            const auto found = CT::Mask<size_t>::is_equal(idx1, i).as_choice();
  962|   287k|            result.conditional_assign(found, pts[i]);
  963|   287k|         }
  964|       |
  965|  8.97k|         return result;
  966|  8.97k|      }
pcurves_brainpool384r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEEE8identityERKSC_:
  924|  8.97k|      static constexpr Self identity(const Self& /*unused*/) {
  925|  8.97k|         return Self(FieldElement::zero(), FieldElement::zero());
  926|  8.97k|      }
pcurves_brainpool384r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEEE18conditional_assignENS_2CT6ChoiceERKSC_:
  981|   287k|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
  982|   287k|         FieldElement::conditional_assign(m_x, m_y, cond, pt.x(), pt.y());
  983|   287k|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE18conditional_assignERSA_SB_NS_2CT6ChoiceERKSA_SF_:
  380|   287k|      static constexpr void conditional_assign(Self& x, Self& y, CT::Choice cond, const Self& nx, const Self& ny) {
  381|   287k|         const W mask = cond.into_bitmask<W>();
  382|       |
  383|  2.00M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (383:28): [True: 1.72M, False: 287k]
  ------------------
  384|  1.72M|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  385|  1.72M|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  386|  1.72M|         }
  387|   287k|      }
pcurves_brainpool384r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEES7_E13randomize_repERNS_21RandomNumberGeneratorE:
 1142|    552|      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|    552|         if(rng.is_seeded()) {
  ------------------
  |  Branch (1147:13): [True: 0, False: 552]
  ------------------
 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|    552|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEES7_E20_const_time_unpoisonEv:
 1176|    138|      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|    414|      constexpr void _const_time_unpoison() const { CT::unpoison(m_val); }
pcurves_brainpool384r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_114brainpool384r15CurveELm7EED2Ev:
 1358|    138|      ~BlindedScalarBits() {
 1359|    138|         secure_zeroize_buffer(m_bytes.data(), m_bytes.size());
 1360|    138|         CT::unpoison(m_bytes.data(), m_bytes.size());
 1361|    138|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E12ScalarParamsEEEE10from_stashILm9EEESA_RKNSt3__15arrayImXT_EEE:
  774|    506|      static Self from_stash(const std::array<W, L>& stash) {
  775|    506|         static_assert(L >= N);
  776|    506|         std::array<W, N> val = {};
  777|  3.54k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 3.03k, False: 506]
  ------------------
  778|  3.03k|            val[i] = stash[i];
  779|  3.03k|         }
  780|    506|         return Self(val);
  781|    506|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E12ScalarParamsEEEEC2ENSt3__15arrayImLm6EEE:
  898|    691|      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|    276|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    276|         auto v = Rep::from_rep(m_val);
  741|    276|         std::reverse(v.begin(), v.end());
  742|       |
  743|    276|         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|    276|            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|    276|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E12ScalarParamsEEEE11stash_valueILm9EEENSt3__15arrayImXT_EEEv:
  759|    184|      std::array<W, L> stash_value() const {
  760|    184|         static_assert(L >= N);
  761|    184|         std::array<W, L> stash = {};
  762|  1.28k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 1.10k, False: 184]
  ------------------
  763|  1.10k|            stash[i] = m_val[i];
  764|  1.10k|         }
  765|    184|         return stash;
  766|    184|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E11FieldParamsEEEE10from_stashILm9EEESA_RKNSt3__15arrayImXT_EEE:
  774|    966|      static Self from_stash(const std::array<W, L>& stash) {
  775|    966|         static_assert(L >= N);
  776|    966|         std::array<W, N> val = {};
  777|  6.76k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 5.79k, False: 966]
  ------------------
  778|  5.79k|            val[i] = stash[i];
  779|  5.79k|         }
  780|    966|         return Self(val);
  781|    966|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E12ScalarParamsEEEE7is_zeroEv:
  225|    369|      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|    138|      constexpr CT::Choice operator==(const Self& other) const {
  723|    138|         return CT::is_equal(this->data(), other.data(), N).as_choice();
  724|    138|      }
pcurves_brainpool384r1.cpp:_ZN5Botan13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsENS_13MontgomeryRepEE7x3_ax_bERKNS_6IntModINS5_INS6_11FieldParamsEEEEE:
 1275|    138|      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|    185|      static std::optional<Self> deserialize(std::span<const uint8_t> bytes) {
  793|       |         // Conditional ok: input length is public
  794|    185|         if(bytes.size() != Self::BYTES) {
  ------------------
  |  Branch (794:13): [True: 0, False: 185]
  ------------------
  795|      0|            return {};
  796|      0|         }
  797|       |
  798|    185|         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|    185|         if(!bigint_ct_is_lt(words.data(), N, P.data(), N).as_bool()) {
  ------------------
  |  Branch (801:13): [True: 0, False: 185]
  ------------------
  802|      0|            return {};
  803|      0|         }
  804|       |
  805|       |         // Safe because we checked above that words is an integer < P
  806|    185|         return Self::from_words(words);
  807|    185|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES1_E12ScalarParamsEEEE10from_wordsILm6EEESA_NSt3__15arrayImXT_EEE:
  211|    185|      static constexpr Self from_words(std::array<W, L> w) {
  212|    185|         if constexpr(L == N) {
  213|    185|            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|    185|      }
pcurves_brainpool384r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES0_E12ScalarParamsEE6to_repERKNSt3__15arrayImLm6EEE:
  115|    185|      constexpr static std::array<W, N> to_rep(const std::array<W, N>& x) {
  116|    185|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  117|    185|         comba_mul<N>(z.data(), x.data(), R2.data());
  118|    185|         return Self::redc(z);
  119|    185|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool384r16ParamsES2_E11FieldParamsEEEEEE12serialize_toENSt3__14spanIhLm97EEE:
  941|    138|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  942|    138|         BOTAN_STATE_CHECK(this->is_identity().as_bool() == false);
  ------------------
  |  |   51|    138|   do {                                                         \
  |  |   52|    138|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    138|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 138]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    138|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 138]
  |  |  ------------------
  ------------------
  943|    138|         BufferStuffer pack(bytes);
  944|    138|         pack.append(0x04);
  945|    138|         x().serialize_to(pack.next<FieldElement::BYTES>());
  946|    138|         y().serialize_to(pack.next<FieldElement::BYTES>());
  947|    138|         BOTAN_DEBUG_ASSERT(pack.full());
  ------------------
  |  |  130|    138|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    138|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 138]
  |  |  ------------------
  ------------------
  948|    138|      }
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|    127|      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|    127|         auto x = pt.x();
 1027|    127|         auto y = pt.y();
 1028|    127|         auto z = FieldElement::one();
 1029|       |
 1030|    127|         FieldElement::conditional_swap(pt.is_identity(), y, z);
 1031|       |
 1032|    127|         return ProjectiveCurvePoint(x, y, z);
 1033|    127|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEEE1xEv:
  971|   379k|      constexpr const FieldElement& x() const { return m_x; }
pcurves_brainpool512r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEEE1yEv:
  976|   369k|      constexpr const FieldElement& y() const { return m_y; }
pcurves_brainpool512r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE3oneEv:
  200|  10.9k|      static constexpr Self one() { return Self(Rep::one()); }
pcurves_brainpool512r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES0_E11FieldParamsEE3oneEv:
   99|  10.9k|      constexpr static std::array<W, N> one() { return R1; }
pcurves_brainpool512r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEEC2ENSt3__15arrayImLm8EEE:
  898|   335k|      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|    127|      static constexpr void conditional_swap(CT::Choice cond, Self& x, Self& y) {
  411|    127|         const W mask = cond.into_bitmask<W>();
  412|       |
  413|  1.14k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (413:28): [True: 1.01k, False: 127]
  ------------------
  414|  1.01k|            auto nx = Botan::choose(mask, y.m_val[i], x.m_val[i]);
  415|  1.01k|            auto ny = Botan::choose(mask, x.m_val[i], y.m_val[i]);
  416|  1.01k|            x.m_val[i] = nx;
  417|  1.01k|            y.m_val[i] = ny;
  418|  1.01k|         }
  419|    127|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEEE11is_identityEv:
  928|  11.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|  63.4k|      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|  14.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|  81.2k|      constexpr const FieldElement& z() const { return m_z; }
pcurves_brainpool512r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE6squareEv:
  426|  53.2k|      constexpr BOTAN_FORCE_INLINE Self square() const {
  427|  53.2k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  428|  53.2k|         comba_sqr<N>(z.data(), this->data());
  429|  53.2k|         return Self(Rep::redc(z));
  430|  53.2k|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE4dataEv:
  896|   416k|      constexpr const W* data() const { return m_val.data(); }
pcurves_brainpool512r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES0_E11FieldParamsEE4redcERKNSt3__15arrayImLm16EEE:
  104|   261k|      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|   261k|         } else {
  108|   261k|            return monty_redc(z, P, P_dash);
  109|   261k|         }
  110|   261k|      }
pcurves_brainpool512r1.cpp:_ZN5BotanplERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEEESC_:
  265|  16.0k|      friend constexpr BOTAN_FORCE_INLINE Self operator+(const Self& a, const Self& b) {
  266|  16.0k|         std::array<W, N> t;  // NOLINT(*-member-init)
  267|       |
  268|  16.0k|         W carry = 0;
  269|   144k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (269:28): [True: 128k, False: 16.0k]
  ------------------
  270|   128k|            t[i] = word_add(a.m_val[i], b.m_val[i], &carry);
  271|   128k|         }
  272|       |
  273|  16.0k|         std::array<W, N> r;  // NOLINT(*-member-init)
  274|  16.0k|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  275|  16.0k|         return Self(r);
  276|  16.0k|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEES7_E1xEv:
 1162|  44.8k|      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|   130k|      friend constexpr BOTAN_FORCE_INLINE Self operator*(const Self& a, const Self& b) {
  347|   130k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  348|   130k|         comba_mul<N>(z.data(), a.data(), b.data());
  349|   130k|         return Self(Rep::redc(z));
  350|   130k|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEES7_E1yEv:
 1167|  44.8k|      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|  77.9k|      friend constexpr BOTAN_FORCE_INLINE Self operator-(const Self& a, const Self& b) {
  282|  77.9k|         std::array<W, N> r;  // NOLINT(*-member-init)
  283|  77.9k|         W carry = 0;
  284|   701k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (284:28): [True: 623k, False: 77.9k]
  ------------------
  285|   623k|            r[i] = word_sub(a.m_val[i], b.m_val[i], &carry);
  286|   623k|         }
  287|       |
  288|  77.9k|         const auto mask = CT::Mask<W>::expand(carry).value();
  289|       |
  290|  77.9k|         carry = 0;
  291|       |
  292|   701k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (292:28): [True: 623k, False: 77.9k]
  ------------------
  293|   623k|            r[i] = word_add(r[i], P[i] & mask, &carry);
  294|   623k|         }
  295|       |
  296|  77.9k|         return Self(r);
  297|  77.9k|      }
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|  16.7k|      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|  24.4k|         Self& x, Self& y, Self& z, CT::Choice cond, const Self& nx, const Self& ny, const Self& nz) {
  396|  24.4k|         const W mask = cond.into_bitmask<W>();
  397|       |
  398|   220k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (398:28): [True: 195k, False: 24.4k]
  ------------------
  399|   195k|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  400|   195k|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  401|   195k|            z.m_val[i] = Botan::choose(mask, nz.m_val[i], z.m_val[i]);
  402|   195k|         }
  403|  24.4k|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE6invertEv:
  538|    126|      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|    126|      constexpr Self pow_vartime(const std::array<W, N>& exp) const {
  478|    126|         constexpr size_t WindowBits = (Self::BITS <= 256) ? 4 : 5;
  ------------------
  |  Branch (478:40): [Folded, False: 126]
  ------------------
  479|    126|         constexpr size_t WindowElements = (1 << WindowBits) - 1;
  480|       |
  481|    126|         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|    126|         std::array<Self, WindowElements> tbl;
  490|       |
  491|    126|         tbl[0] = (*this);
  492|       |
  493|  3.90k|         for(size_t i = 1; i != WindowElements; ++i) {
  ------------------
  |  Branch (493:28): [True: 3.78k, False: 126]
  ------------------
  494|       |            // Conditional ok: table indexes are public here
  495|  3.78k|            if(i % 2 == 1) {
  ------------------
  |  Branch (495:16): [True: 1.89k, False: 1.89k]
  ------------------
  496|  1.89k|               tbl[i] = tbl[i / 2].square();
  497|  1.89k|            } else {
  498|  1.89k|               tbl[i] = tbl[i - 1] * tbl[0];
  499|  1.89k|            }
  500|  3.78k|         }
  501|       |
  502|    126|         auto r = Self::one();
  503|       |
  504|    126|         const size_t w0 = read_window_bits<WindowBits>(std::span{exp}, (Windows - 1) * WindowBits);
  505|       |
  506|       |         // Conditional ok: this function is variable time
  507|    126|         if(w0 > 0) {
  ------------------
  |  Branch (507:13): [True: 126, False: 0]
  ------------------
  508|    126|            r = tbl[w0 - 1];
  509|    126|         }
  510|       |
  511|  12.9k|         for(size_t i = 1; i != Windows; ++i) {
  ------------------
  |  Branch (511:28): [True: 12.8k, False: 126]
  ------------------
  512|  12.8k|            r.square_n(WindowBits);
  513|       |
  514|  12.8k|            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|  12.8k|            if(w > 0) {
  ------------------
  |  Branch (517:16): [True: 12.6k, False: 252]
  ------------------
  518|  12.6k|               r *= tbl[w - 1];
  519|  12.6k|            }
  520|  12.8k|         }
  521|       |
  522|    126|         return r;
  523|    126|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEEC2Ev:
  180|  3.90k|      constexpr IntMod() : m_val({}) {}
pcurves_brainpool512r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE8square_nEm:
  439|  12.8k|      constexpr void square_n(size_t n) {
  440|  12.8k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  441|  77.1k|         for(size_t i = 0; i != n; ++i) {
  ------------------
  |  Branch (441:28): [True: 64.2k, False: 12.8k]
  ------------------
  442|  64.2k|            comba_sqr<N>(z.data(), this->data());
  443|  64.2k|            m_val = Rep::redc(z);
  444|  64.2k|         }
  445|  12.8k|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEEmLERKSA_:
  355|  12.6k|      constexpr BOTAN_FORCE_INLINE Self& operator*=(const Self& other) {
  356|  12.6k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  357|  12.6k|         comba_mul<N>(z.data(), data(), other.data());
  358|  12.6k|         m_val = Rep::redc(z);
  359|  12.6k|         return (*this);
  360|  12.6k|      }
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|  21.6k|      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|    253|      constexpr static std::array<W, N> from_rep(const std::array<W, N>& z) {
  138|    253|         std::array<W, 2 * N> ze = {};
  139|    253|         copy_mem(std::span{ze}.template first<N>(), z);
  140|    253|         return Self::redc(ze);
  141|    253|      }
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|  10.8k|      constexpr Self negate() const {
  453|  10.8k|         const W x_is_zero = ~CT::all_zeros(this->data(), N).value();
  454|       |
  455|  10.8k|         std::array<W, N> r;  // NOLINT(*-member-init)
  456|  10.8k|         W carry = 0;
  457|  97.5k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (457:28): [True: 86.7k, False: 10.8k]
  ------------------
  458|  86.7k|            r[i] = word_sub(P[i] & x_is_zero, m_val[i], &carry);
  459|  86.7k|         }
  460|       |
  461|  10.8k|         return Self(r);
  462|  10.8k|      }
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|  14.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|    630|      std::array<W, L> stash_value() const {
  760|    630|         static_assert(L >= N);
  761|    630|         std::array<W, L> stash = {};
  762|  5.67k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 5.04k, False: 630]
  ------------------
  763|  5.04k|            stash[i] = m_val[i];
  764|  5.04k|         }
  765|    630|         return stash;
  766|    630|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan23PrecomputedBaseMulTableINS_6PCurve12_GLOBAL__N_114brainpool512r15CurveELm6EE3mulERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES7_E12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1407|    126|      ProjectivePoint mul(const Scalar& s, RandomNumberGenerator& rng) const {
 1408|    126|         const BlindedScalar scalar(s, rng);
 1409|    126|         return basemul_booth_exec<C, WindowBits>(m_table, scalar, rng);
 1410|    126|      }
pcurves_brainpool512r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_114brainpool512r15CurveELm7EEC2ERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES7_E12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1307|    126|      BlindedScalarBits(const typename C::Scalar& scalar, RandomNumberGenerator& rng) {
 1308|    126|         if(BlindingBits > 0 && rng.is_seeded()) {
  ------------------
  |  Branch (1308:13): [True: 126, Folded]
  |  Branch (1308:33): [True: 0, False: 126]
  ------------------
 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|    126|         } else {
 1344|       |            // No RNG available, skip blinding
 1345|    126|            m_bytes.resize(C::Scalar::BYTES);
 1346|    126|            scalar.serialize_to(std::span{m_bytes}.template first<C::Scalar::BYTES>());
 1347|    126|            m_bits = C::Scalar::BITS;
 1348|    126|         }
 1349|       |
 1350|    126|         CT::poison(m_bytes.data(), m_bytes.size());
 1351|    126|      }
pcurves_brainpool512r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES0_E12ScalarParamsEE8from_repERKNSt3__15arrayImLm8EEE:
  137|    277|      constexpr static std::array<W, N> from_rep(const std::array<W, N>& z) {
  138|    277|         std::array<W, 2 * N> ze = {};
  139|    277|         copy_mem(std::span{ze}.template first<N>(), z);
  140|    277|         return Self::redc(ze);
  141|    277|      }
pcurves_brainpool512r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES0_E12ScalarParamsEE4redcERKNSt3__15arrayImLm16EEE:
  104|    429|      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|    429|         } else {
  108|    429|            return monty_redc(z, P, P_dash);
  109|    429|         }
  110|    429|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E12ScalarParamsEEEE12serialize_toENSt3__14spanIhLm64EEE:
  739|    277|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    277|         auto v = Rep::from_rep(m_val);
  741|    277|         std::reverse(v.begin(), v.end());
  742|       |
  743|    277|         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|    277|            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|    277|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_114brainpool512r15CurveELm7EE4bitsEv:
 1305|    126|      size_t bits() const { return m_bits; }
pcurves_brainpool512r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEES7_E18conditional_assignENS_2CT6ChoiceERKSC_:
 1084|    126|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
 1085|    126|         FieldElement::conditional_assign(m_x, m_y, m_z, cond, pt.x(), pt.y(), pt.z());
 1086|    126|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEES7_E6negateEv:
 1134|    126|      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|    126|      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|    378|      constexpr void _const_time_poison() const { CT::poison(m_val); }
pcurves_brainpool512r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_114brainpool512r15CurveELm7EE10get_windowEm:
 1353|  10.8k|      size_t get_window(size_t offset) const {
 1354|       |         // Extract a WindowBits sized window out of s, depending on offset.
 1355|  10.8k|         return read_window_bits<WindowBits>(std::span{m_bytes}, offset);
 1356|  10.8k|      }
pcurves_brainpool512r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEES7_E10add_or_subERKSC_RKNS_16AffineCurvePointISB_EENS_2CT6ChoiceE:
 1096|  10.7k|      constexpr static Self add_or_sub(const Self& a, const AffinePoint& b, CT::Choice sub) {
 1097|  10.7k|         return point_add_or_sub_mixed<Self, AffinePoint, FieldElement>(a, b, sub, FieldElement::one());
 1098|  10.7k|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE18conditional_assignENS_2CT6ChoiceERKSA_:
  367|  10.7k|      constexpr void conditional_assign(CT::Choice cond, const Self& nx) {
  368|  10.7k|         const W mask = cond.into_bitmask<W>();
  369|       |
  370|  96.3k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (370:28): [True: 85.6k, False: 10.7k]
  ------------------
  371|  85.6k|            m_val[i] = Botan::choose(mask, nx.m_val[i], m_val[i]);
  372|  85.6k|         }
  373|  10.7k|      }
pcurves_brainpool512r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEEE9ct_selectENSt3__14spanIKSC_Lm18446744073709551615EEEm:
  955|  10.8k|      static constexpr auto ct_select(std::span<const Self> pts, size_t idx) {
  956|  10.8k|         auto result = Self::identity(pts[0]);
  957|       |
  958|       |         // Intentionally wrapping; set to maximum size_t if idx == 0
  959|  10.8k|         const size_t idx1 = static_cast<size_t>(idx - 1);
  960|   357k|         for(size_t i = 0; i != pts.size(); ++i) {
  ------------------
  |  Branch (960:28): [True: 346k, False: 10.8k]
  ------------------
  961|   346k|            const auto found = CT::Mask<size_t>::is_equal(idx1, i).as_choice();
  962|   346k|            result.conditional_assign(found, pts[i]);
  963|   346k|         }
  964|       |
  965|  10.8k|         return result;
  966|  10.8k|      }
pcurves_brainpool512r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEEE8identityERKSC_:
  924|  10.8k|      static constexpr Self identity(const Self& /*unused*/) {
  925|  10.8k|         return Self(FieldElement::zero(), FieldElement::zero());
  926|  10.8k|      }
pcurves_brainpool512r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEEE18conditional_assignENS_2CT6ChoiceERKSC_:
  981|   346k|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
  982|   346k|         FieldElement::conditional_assign(m_x, m_y, cond, pt.x(), pt.y());
  983|   346k|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE18conditional_assignERSA_SB_NS_2CT6ChoiceERKSA_SF_:
  380|   346k|      static constexpr void conditional_assign(Self& x, Self& y, CT::Choice cond, const Self& nx, const Self& ny) {
  381|   346k|         const W mask = cond.into_bitmask<W>();
  382|       |
  383|  3.12M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (383:28): [True: 2.77M, False: 346k]
  ------------------
  384|  2.77M|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  385|  2.77M|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  386|  2.77M|         }
  387|   346k|      }
pcurves_brainpool512r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEES7_E13randomize_repERNS_21RandomNumberGeneratorE:
 1142|    504|      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|    504|         if(rng.is_seeded()) {
  ------------------
  |  Branch (1147:13): [True: 0, False: 504]
  ------------------
 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|    504|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEES7_E20_const_time_unpoisonEv:
 1176|    126|      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|    378|      constexpr void _const_time_unpoison() const { CT::unpoison(m_val); }
pcurves_brainpool512r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_114brainpool512r15CurveELm7EED2Ev:
 1358|    126|      ~BlindedScalarBits() {
 1359|    126|         secure_zeroize_buffer(m_bytes.data(), m_bytes.size());
 1360|    126|         CT::unpoison(m_bytes.data(), m_bytes.size());
 1361|    126|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E12ScalarParamsEEEE10from_stashILm9EEESA_RKNSt3__15arrayImXT_EEE:
  774|    428|      static Self from_stash(const std::array<W, L>& stash) {
  775|    428|         static_assert(L >= N);
  776|    428|         std::array<W, N> val = {};
  777|  3.85k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 3.42k, False: 428]
  ------------------
  778|  3.42k|            val[i] = stash[i];
  779|  3.42k|         }
  780|    428|         return Self(val);
  781|    428|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E12ScalarParamsEEEEC2ENSt3__15arrayImLm8EEE:
  898|    580|      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|    252|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    252|         auto v = Rep::from_rep(m_val);
  741|    252|         std::reverse(v.begin(), v.end());
  742|       |
  743|    252|         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|    252|            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|    252|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E12ScalarParamsEEEE11stash_valueILm9EEENSt3__15arrayImXT_EEEv:
  759|    151|      std::array<W, L> stash_value() const {
  760|    151|         static_assert(L >= N);
  761|    151|         std::array<W, L> stash = {};
  762|  1.35k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 1.20k, False: 151]
  ------------------
  763|  1.20k|            stash[i] = m_val[i];
  764|  1.20k|         }
  765|    151|         return stash;
  766|    151|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E11FieldParamsEEEE10from_stashILm9EEESA_RKNSt3__15arrayImXT_EEE:
  774|    882|      static Self from_stash(const std::array<W, L>& stash) {
  775|    882|         static_assert(L >= N);
  776|    882|         std::array<W, N> val = {};
  777|  7.93k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 7.05k, False: 882]
  ------------------
  778|  7.05k|            val[i] = stash[i];
  779|  7.05k|         }
  780|    882|         return Self(val);
  781|    882|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E12ScalarParamsEEEE7is_zeroEv:
  225|    303|      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|    126|      constexpr CT::Choice operator==(const Self& other) const {
  723|    126|         return CT::is_equal(this->data(), other.data(), N).as_choice();
  724|    126|      }
pcurves_brainpool512r1.cpp:_ZN5Botan13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsENS_13MontgomeryRepEE7x3_ax_bERKNS_6IntModINS5_INS6_11FieldParamsEEEEE:
 1275|    126|      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|    152|      static std::optional<Self> deserialize(std::span<const uint8_t> bytes) {
  793|       |         // Conditional ok: input length is public
  794|    152|         if(bytes.size() != Self::BYTES) {
  ------------------
  |  Branch (794:13): [True: 0, False: 152]
  ------------------
  795|      0|            return {};
  796|      0|         }
  797|       |
  798|    152|         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|    152|         if(!bigint_ct_is_lt(words.data(), N, P.data(), N).as_bool()) {
  ------------------
  |  Branch (801:13): [True: 0, False: 152]
  ------------------
  802|      0|            return {};
  803|      0|         }
  804|       |
  805|       |         // Safe because we checked above that words is an integer < P
  806|    152|         return Self::from_words(words);
  807|    152|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES1_E12ScalarParamsEEEE10from_wordsILm8EEESA_NSt3__15arrayImXT_EEE:
  211|    152|      static constexpr Self from_words(std::array<W, L> w) {
  212|    152|         if constexpr(L == N) {
  213|    152|            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|    152|      }
pcurves_brainpool512r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES0_E12ScalarParamsEE6to_repERKNSt3__15arrayImLm8EEE:
  115|    152|      constexpr static std::array<W, N> to_rep(const std::array<W, N>& x) {
  116|    152|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  117|    152|         comba_mul<N>(z.data(), x.data(), R2.data());
  118|    152|         return Self::redc(z);
  119|    152|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_114brainpool512r16ParamsES2_E11FieldParamsEEEEEE12serialize_toENSt3__14spanIhLm129EEE:
  941|    126|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  942|    126|         BOTAN_STATE_CHECK(this->is_identity().as_bool() == false);
  ------------------
  |  |   51|    126|   do {                                                         \
  |  |   52|    126|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    126|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 126]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    126|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 126]
  |  |  ------------------
  ------------------
  943|    126|         BufferStuffer pack(bytes);
  944|    126|         pack.append(0x04);
  945|    126|         x().serialize_to(pack.next<FieldElement::BYTES>());
  946|    126|         y().serialize_to(pack.next<FieldElement::BYTES>());
  947|    126|         BOTAN_DEBUG_ASSERT(pack.full());
  ------------------
  |  |  130|    126|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    126|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 126]
  |  |  ------------------
  ------------------
  948|    126|      }
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|    208|      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|    208|         auto x = pt.x();
 1027|    208|         auto y = pt.y();
 1028|    208|         auto z = FieldElement::one();
 1029|       |
 1030|    208|         FieldElement::conditional_swap(pt.is_identity(), y, z);
 1031|       |
 1032|    208|         return ProjectiveCurvePoint(x, y, z);
 1033|    208|      }
pcurves_secp224r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE1xEv:
  971|   276k|      constexpr const FieldElement& x() const { return m_x; }
pcurves_secp224r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE1yEv:
  976|   268k|      constexpr const FieldElement& y() const { return m_y; }
pcurves_secp224r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE3oneEv:
  200|  7.86k|      static constexpr Self one() { return Self(Rep::one()); }
pcurves_secp224r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEC2ENSt3__15arrayImLm4EEE:
  898|   215k|      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|    208|      static constexpr void conditional_swap(CT::Choice cond, Self& x, Self& y) {
  411|    208|         const W mask = cond.into_bitmask<W>();
  412|       |
  413|  1.04k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (413:28): [True: 832, False: 208]
  ------------------
  414|    832|            auto nx = Botan::choose(mask, y.m_val[i], x.m_val[i]);
  415|    832|            auto ny = Botan::choose(mask, x.m_val[i], y.m_val[i]);
  416|    832|            x.m_val[i] = nx;
  417|    832|            y.m_val[i] = ny;
  418|    832|         }
  419|    208|      }
pcurves_secp224r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE11is_identityEv:
  928|  8.49k|      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|  43.9k|      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.65k|            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|  51.3k|      constexpr const FieldElement& z() const { return m_z; }
pcurves_secp224r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE6squareEv:
  426|  31.7k|      constexpr BOTAN_FORCE_INLINE Self square() const {
  427|  31.7k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  428|  31.7k|         comba_sqr<N>(z.data(), this->data());
  429|  31.7k|         return Self(Rep::redc(z));
  430|  31.7k|      }
pcurves_secp224r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE4dataEv:
  896|   253k|      constexpr const W* data() const { return m_val.data(); }
pcurves_secp224r1.cpp:_ZN5BotanmlERKNS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEESC_:
  346|  81.1k|      friend constexpr BOTAN_FORCE_INLINE Self operator*(const Self& a, const Self& b) {
  347|  81.1k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  348|  81.1k|         comba_mul<N>(z.data(), a.data(), b.data());
  349|  81.1k|         return Self(Rep::redc(z));
  350|  81.1k|      }
pcurves_secp224r1.cpp:_ZN5BotanmiERKNS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEESC_:
  281|  52.7k|      friend constexpr BOTAN_FORCE_INLINE Self operator-(const Self& a, const Self& b) {
  282|  52.7k|         std::array<W, N> r;  // NOLINT(*-member-init)
  283|  52.7k|         W carry = 0;
  284|   263k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (284:28): [True: 210k, False: 52.7k]
  ------------------
  285|   210k|            r[i] = word_sub(a.m_val[i], b.m_val[i], &carry);
  286|   210k|         }
  287|       |
  288|  52.7k|         const auto mask = CT::Mask<W>::expand(carry).value();
  289|       |
  290|  52.7k|         carry = 0;
  291|       |
  292|   263k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (292:28): [True: 210k, False: 52.7k]
  ------------------
  293|   210k|            r[i] = word_add(r[i], P[i] & mask, &carry);
  294|   210k|         }
  295|       |
  296|  52.7k|         return Self(r);
  297|  52.7k|      }
pcurves_secp224r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E1xEv:
 1162|  29.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.5k|      friend constexpr BOTAN_FORCE_INLINE Self operator+(const Self& a, const Self& b) {
  266|  10.5k|         std::array<W, N> t;  // NOLINT(*-member-init)
  267|       |
  268|  10.5k|         W carry = 0;
  269|  52.7k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (269:28): [True: 42.2k, False: 10.5k]
  ------------------
  270|  42.2k|            t[i] = word_add(a.m_val[i], b.m_val[i], &carry);
  271|  42.2k|         }
  272|       |
  273|  10.5k|         std::array<W, N> r;  // NOLINT(*-member-init)
  274|  10.5k|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  275|  10.5k|         return Self(r);
  276|  10.5k|      }
pcurves_secp224r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E1yEv:
 1167|  29.2k|      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|  10.3k|      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.8k|         Self& x, Self& y, Self& z, CT::Choice cond, const Self& nx, const Self& ny, const Self& nz) {
  396|  16.8k|         const W mask = cond.into_bitmask<W>();
  397|       |
  398|  84.0k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (398:28): [True: 67.2k, False: 16.8k]
  ------------------
  399|  67.2k|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  400|  67.2k|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  401|  67.2k|            z.m_val[i] = Botan::choose(mask, nz.m_val[i], z.m_val[i]);
  402|  67.2k|         }
  403|  16.8k|      }
pcurves_secp224r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEmLERKSA_:
  355|  2.48k|      constexpr BOTAN_FORCE_INLINE Self& operator*=(const Self& other) {
  356|  2.48k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  357|  2.48k|         comba_mul<N>(z.data(), data(), other.data());
  358|  2.48k|         m_val = Rep::redc(z);
  359|  2.48k|         return (*this);
  360|  2.48k|      }
pcurves_secp224r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE8square_nEm:
  439|  1.65k|      constexpr void square_n(size_t n) {
  440|  1.65k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  441|  46.7k|         for(size_t i = 0; i != n; ++i) {
  ------------------
  |  Branch (441:28): [True: 45.1k, False: 1.65k]
  ------------------
  442|  45.1k|            comba_sqr<N>(z.data(), this->data());
  443|  45.1k|            m_val = Rep::redc(z);
  444|  45.1k|         }
  445|  1.65k|      }
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.7k|      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.86k|      constexpr Self negate() const {
  453|  7.86k|         const W x_is_zero = ~CT::all_zeros(this->data(), N).value();
  454|       |
  455|  7.86k|         std::array<W, N> r;  // NOLINT(*-member-init)
  456|  7.86k|         W carry = 0;
  457|  39.3k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (457:28): [True: 31.4k, False: 7.86k]
  ------------------
  458|  31.4k|            r[i] = word_sub(P[i] & x_is_zero, m_val[i], &carry);
  459|  31.4k|         }
  460|       |
  461|  7.86k|         return Self(r);
  462|  7.86k|      }
pcurves_secp224r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEEC2ERKSB_SE_:
  917|  9.86k|      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|  1.03k|      std::array<W, L> stash_value() const {
  760|  1.03k|         static_assert(L >= N);
  761|  1.03k|         std::array<W, L> stash = {};
  762|  5.18k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 4.14k, False: 1.03k]
  ------------------
  763|  4.14k|            stash[i] = m_val[i];
  764|  4.14k|         }
  765|  1.03k|         return stash;
  766|  1.03k|      }
pcurves_secp224r1.cpp:_ZNK5Botan23PrecomputedBaseMulTableINS_6PCurve12_GLOBAL__N_19secp224r15CurveELm6EE3mulERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS3_12Secp224r1RepEE12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1407|    207|      ProjectivePoint mul(const Scalar& s, RandomNumberGenerator& rng) const {
 1408|    207|         const BlindedScalar scalar(s, rng);
 1409|    207|         return basemul_booth_exec<C, WindowBits>(m_table, scalar, rng);
 1410|    207|      }
pcurves_secp224r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp224r15CurveELm7EEC2ERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS3_12Secp224r1RepEE12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1307|    207|      BlindedScalarBits(const typename C::Scalar& scalar, RandomNumberGenerator& rng) {
 1308|    207|         if(BlindingBits > 0 && rng.is_seeded()) {
  ------------------
  |  Branch (1308:13): [True: 207, Folded]
  |  Branch (1308:33): [True: 0, False: 207]
  ------------------
 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|    207|         } else {
 1344|       |            // No RNG available, skip blinding
 1345|    207|            m_bytes.resize(C::Scalar::BYTES);
 1346|    207|            scalar.serialize_to(std::span{m_bytes}.template first<C::Scalar::BYTES>());
 1347|    207|            m_bits = C::Scalar::BITS;
 1348|    207|         }
 1349|       |
 1350|    207|         CT::poison(m_bytes.data(), m_bytes.size());
 1351|    207|      }
pcurves_secp224r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp224r16ParamsENS4_12Secp224r1RepEE12ScalarParamsEE8from_repERKNSt3__15arrayImLm4EEE:
  137|    533|      constexpr static std::array<W, N> from_rep(const std::array<W, N>& z) {
  138|    533|         std::array<W, 2 * N> ze = {};
  139|    533|         copy_mem(std::span{ze}.template first<N>(), z);
  140|    533|         return Self::redc(ze);
  141|    533|      }
pcurves_secp224r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp224r16ParamsENS4_12Secp224r1RepEE12ScalarParamsEE4redcERKNSt3__15arrayImLm8EEE:
  104|    860|      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|    860|         } else {
  108|    860|            return monty_redc(z, P, P_dash);
  109|    860|         }
  110|    860|      }
pcurves_secp224r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp224r16ParamsENS5_12Secp224r1RepEE12ScalarParamsEEEE12serialize_toENSt3__14spanIhLm28EEE:
  739|    533|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    533|         auto v = Rep::from_rep(m_val);
  741|    533|         std::reverse(v.begin(), v.end());
  742|       |
  743|       |         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|       |            store_be(bytes, v);
  745|    533|         } else {
  746|       |            // Remove leading zero bytes
  747|    533|            const auto padded_bytes = store_be(v);
  748|    533|            constexpr size_t extra = N * WordInfo<W>::bytes - Self::BYTES;
  749|    533|            copy_mem(bytes, std::span{padded_bytes}.template subspan<extra, Self::BYTES>());
  750|    533|         }
  751|    533|      }
pcurves_secp224r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp224r15CurveELm7EE4bitsEv:
 1305|    207|      size_t bits() const { return m_bits; }
pcurves_secp224r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E18conditional_assignENS_2CT6ChoiceERKSC_:
 1084|    207|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
 1085|    207|         FieldElement::conditional_assign(m_x, m_y, m_z, cond, pt.x(), pt.y(), pt.z());
 1086|    207|      }
pcurves_secp224r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E6negateEv:
 1134|    207|      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|    207|      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|    621|      constexpr void _const_time_poison() const { CT::poison(m_val); }
pcurves_secp224r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp224r15CurveELm7EE10get_windowEm:
 1353|  7.86k|      size_t get_window(size_t offset) const {
 1354|       |         // Extract a WindowBits sized window out of s, depending on offset.
 1355|  7.86k|         return read_window_bits<WindowBits>(std::span{m_bytes}, offset);
 1356|  7.86k|      }
pcurves_secp224r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E10add_or_subERKSC_RKNS_16AffineCurvePointISB_EENS_2CT6ChoiceE:
 1096|  7.65k|      constexpr static Self add_or_sub(const Self& a, const AffinePoint& b, CT::Choice sub) {
 1097|  7.65k|         return point_add_or_sub_mixed<Self, AffinePoint, FieldElement>(a, b, sub, FieldElement::one());
 1098|  7.65k|      }
pcurves_secp224r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE18conditional_assignENS_2CT6ChoiceERKSA_:
  367|  7.65k|      constexpr void conditional_assign(CT::Choice cond, const Self& nx) {
  368|  7.65k|         const W mask = cond.into_bitmask<W>();
  369|       |
  370|  38.2k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (370:28): [True: 30.6k, False: 7.65k]
  ------------------
  371|  30.6k|            m_val[i] = Botan::choose(mask, nx.m_val[i], m_val[i]);
  372|  30.6k|         }
  373|  7.65k|      }
pcurves_secp224r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE9ct_selectENSt3__14spanIKSC_Lm18446744073709551615EEEm:
  955|  7.86k|      static constexpr auto ct_select(std::span<const Self> pts, size_t idx) {
  956|  7.86k|         auto result = Self::identity(pts[0]);
  957|       |
  958|       |         // Intentionally wrapping; set to maximum size_t if idx == 0
  959|  7.86k|         const size_t idx1 = static_cast<size_t>(idx - 1);
  960|   259k|         for(size_t i = 0; i != pts.size(); ++i) {
  ------------------
  |  Branch (960:28): [True: 251k, False: 7.86k]
  ------------------
  961|   251k|            const auto found = CT::Mask<size_t>::is_equal(idx1, i).as_choice();
  962|   251k|            result.conditional_assign(found, pts[i]);
  963|   251k|         }
  964|       |
  965|  7.86k|         return result;
  966|  7.86k|      }
pcurves_secp224r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE8identityERKSC_:
  924|  7.86k|      static constexpr Self identity(const Self& /*unused*/) {
  925|  7.86k|         return Self(FieldElement::zero(), FieldElement::zero());
  926|  7.86k|      }
pcurves_secp224r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE18conditional_assignENS_2CT6ChoiceERKSC_:
  981|   251k|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
  982|   251k|         FieldElement::conditional_assign(m_x, m_y, cond, pt.x(), pt.y());
  983|   251k|      }
pcurves_secp224r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE18conditional_assignERSA_SB_NS_2CT6ChoiceERKSA_SF_:
  380|   251k|      static constexpr void conditional_assign(Self& x, Self& y, CT::Choice cond, const Self& nx, const Self& ny) {
  381|   251k|         const W mask = cond.into_bitmask<W>();
  382|       |
  383|  1.25M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (383:28): [True: 1.00M, False: 251k]
  ------------------
  384|  1.00M|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  385|  1.00M|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  386|  1.00M|         }
  387|   251k|      }
pcurves_secp224r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E13randomize_repERNS_21RandomNumberGeneratorE:
 1142|    828|      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|    828|         if(rng.is_seeded()) {
  ------------------
  |  Branch (1147:13): [True: 0, False: 828]
  ------------------
 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|    828|      }
pcurves_secp224r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE11deserializeENSt3__14spanIKhLm18446744073709551615EEE:
  792|    222|      static std::optional<Self> deserialize(std::span<const uint8_t> bytes) {
  793|       |         // Conditional ok: input length is public
  794|    222|         if(bytes.size() != Self::BYTES) {
  ------------------
  |  Branch (794:13): [True: 0, False: 222]
  ------------------
  795|      0|            return {};
  796|      0|         }
  797|       |
  798|    222|         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|    222|         if(!bigint_ct_is_lt(words.data(), N, P.data(), N).as_bool()) {
  ------------------
  |  Branch (801:13): [True: 3, False: 219]
  ------------------
  802|      3|            return {};
  803|      3|         }
  804|       |
  805|       |         // Safe because we checked above that words is an integer < P
  806|    219|         return Self::from_words(words);
  807|    222|      }
pcurves_secp224r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE10from_wordsILm4EEESA_NSt3__15arrayImXT_EEE:
  211|    219|      static constexpr Self from_words(std::array<W, L> w) {
  212|    219|         if constexpr(L == N) {
  213|    219|            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|    219|      }
pcurves_secp224r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E20_const_time_unpoisonEv:
 1176|    207|      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|    621|      constexpr void _const_time_unpoison() const { CT::unpoison(m_val); }
pcurves_secp224r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp224r15CurveELm7EED2Ev:
 1358|    207|      ~BlindedScalarBits() {
 1359|    207|         secure_zeroize_buffer(m_bytes.data(), m_bytes.size());
 1360|    207|         CT::unpoison(m_bytes.data(), m_bytes.size());
 1361|    207|      }
pcurves_secp224r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp224r16ParamsENS5_12Secp224r1RepEE12ScalarParamsEEEE10from_stashILm9EEESB_RKNSt3__15arrayImXT_EEE:
  774|    859|      static Self from_stash(const std::array<W, L>& stash) {
  775|    859|         static_assert(L >= N);
  776|    859|         std::array<W, N> val = {};
  777|  4.29k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 3.43k, False: 859]
  ------------------
  778|  3.43k|            val[i] = stash[i];
  779|  3.43k|         }
  780|    859|         return Self(val);
  781|    859|      }
pcurves_secp224r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp224r16ParamsENS5_12Secp224r1RepEE12ScalarParamsEEEEC2ENSt3__15arrayImLm4EEE:
  898|  1.18k|      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|    416|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    416|         auto v = Rep::from_rep(m_val);
  741|    416|         std::reverse(v.begin(), v.end());
  742|       |
  743|       |         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|       |            store_be(bytes, v);
  745|    416|         } else {
  746|       |            // Remove leading zero bytes
  747|    416|            const auto padded_bytes = store_be(v);
  748|    416|            constexpr size_t extra = N * WordInfo<W>::bytes - Self::BYTES;
  749|    416|            copy_mem(bytes, std::span{padded_bytes}.template subspan<extra, Self::BYTES>());
  750|    416|         }
  751|    416|      }
pcurves_secp224r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp224r16ParamsENS5_12Secp224r1RepEE12ScalarParamsEEEE11stash_valueILm9EEENSt3__15arrayImXT_EEEv:
  759|    326|      std::array<W, L> stash_value() const {
  760|    326|         static_assert(L >= N);
  761|    326|         std::array<W, L> stash = {};
  762|  1.63k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 1.30k, False: 326]
  ------------------
  763|  1.30k|            stash[i] = m_val[i];
  764|  1.30k|         }
  765|    326|         return stash;
  766|    326|      }
pcurves_secp224r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE10from_stashILm9EEESA_RKNSt3__15arrayImXT_EEE:
  774|  1.45k|      static Self from_stash(const std::array<W, L>& stash) {
  775|  1.45k|         static_assert(L >= N);
  776|  1.45k|         std::array<W, N> val = {};
  777|  7.26k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 5.81k, False: 1.45k]
  ------------------
  778|  5.81k|            val[i] = stash[i];
  779|  5.81k|         }
  780|  1.45k|         return Self(val);
  781|  1.45k|      }
pcurves_secp224r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp224r16ParamsENS5_12Secp224r1RepEE12ScalarParamsEEEE7is_zeroEv:
  225|    653|      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|    316|      constexpr CT::Choice operator==(const Self& other) const {
  723|    316|         return CT::is_equal(this->data(), other.data(), N).as_choice();
  724|    316|      }
pcurves_secp224r1.cpp:_ZN5Botan13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp224r16ParamsENS3_12Secp224r1RepEE7x3_ax_bERKNS_6IntModINS5_INS6_11FieldParamsEEEEE:
 1275|    316|      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|    328|      static std::optional<Self> deserialize(std::span<const uint8_t> bytes) {
  793|       |         // Conditional ok: input length is public
  794|    328|         if(bytes.size() != Self::BYTES) {
  ------------------
  |  Branch (794:13): [True: 0, False: 328]
  ------------------
  795|      0|            return {};
  796|      0|         }
  797|       |
  798|    328|         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|    328|         if(!bigint_ct_is_lt(words.data(), N, P.data(), N).as_bool()) {
  ------------------
  |  Branch (801:13): [True: 1, False: 327]
  ------------------
  802|      1|            return {};
  803|      1|         }
  804|       |
  805|       |         // Safe because we checked above that words is an integer < P
  806|    327|         return Self::from_words(words);
  807|    328|      }
pcurves_secp224r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp224r16ParamsENS5_12Secp224r1RepEE12ScalarParamsEEEE10from_wordsILm4EEESB_NSt3__15arrayImXT_EEE:
  211|    327|      static constexpr Self from_words(std::array<W, L> w) {
  212|    327|         if constexpr(L == N) {
  213|    327|            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|    327|      }
pcurves_secp224r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp224r16ParamsENS4_12Secp224r1RepEE12ScalarParamsEE6to_repERKNSt3__15arrayImLm4EEE:
  115|    327|      constexpr static std::array<W, N> to_rep(const std::array<W, N>& x) {
  116|    327|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  117|    327|         comba_mul<N>(z.data(), x.data(), R2.data());
  118|    327|         return Self::redc(z);
  119|    327|      }
pcurves_secp224r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp224r112Secp224r1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE12serialize_toENSt3__14spanIhLm57EEE:
  941|    208|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  942|    208|         BOTAN_STATE_CHECK(this->is_identity().as_bool() == false);
  ------------------
  |  |   51|    208|   do {                                                         \
  |  |   52|    208|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    208|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 208]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    208|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 208]
  |  |  ------------------
  ------------------
  943|    208|         BufferStuffer pack(bytes);
  944|    208|         pack.append(0x04);
  945|    208|         x().serialize_to(pack.next<FieldElement::BYTES>());
  946|    208|         y().serialize_to(pack.next<FieldElement::BYTES>());
  947|    208|         BOTAN_DEBUG_ASSERT(pack.full());
  ------------------
  |  |  130|    208|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    208|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 208]
  |  |  ------------------
  ------------------
  948|    208|      }
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|    178|      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|    178|         auto x = pt.x();
 1027|    178|         auto y = pt.y();
 1028|    178|         auto z = FieldElement::one();
 1029|       |
 1030|    178|         FieldElement::conditional_swap(pt.is_identity(), y, z);
 1031|       |
 1032|    178|         return ProjectiveCurvePoint(x, y, z);
 1033|    178|      }
pcurves_secp256k1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE1xEv:
  971|   267k|      constexpr const FieldElement& x() const { return m_x; }
pcurves_secp256k1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE1yEv:
  976|   259k|      constexpr const FieldElement& y() const { return m_y; }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE3oneEv:
  200|  7.61k|      static constexpr Self one() { return Self(Rep::one()); }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEC2ENSt3__15arrayImLm4EEE:
  898|   211k|      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|    178|      static constexpr void conditional_swap(CT::Choice cond, Self& x, Self& y) {
  411|    178|         const W mask = cond.into_bitmask<W>();
  412|       |
  413|    890|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (413:28): [True: 712, False: 178]
  ------------------
  414|    712|            auto nx = Botan::choose(mask, y.m_val[i], x.m_val[i]);
  415|    712|            auto ny = Botan::choose(mask, x.m_val[i], y.m_val[i]);
  416|    712|            x.m_val[i] = nx;
  417|    712|            y.m_val[i] = ny;
  418|    712|         }
  419|    178|      }
pcurves_secp256k1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE11is_identityEv:
  928|  8.14k|      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|  43.0k|      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|  9.53k|            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|  29.1k|      constexpr const FieldElement& x() const { return m_x; }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE6squareEv:
  426|  31.0k|      constexpr BOTAN_FORCE_INLINE Self square() const {
  427|  31.0k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  428|  31.0k|         comba_sqr<N>(z.data(), this->data());
  429|  31.0k|         return Self(Rep::redc(z));
  430|  31.0k|      }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE4dataEv:
  896|   251k|      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|  9.53k|      friend constexpr BOTAN_FORCE_INLINE Self operator+(const Self& a, const Self& b) {
  266|  9.53k|         std::array<W, N> t;  // NOLINT(*-member-init)
  267|       |
  268|  9.53k|         W carry = 0;
  269|  47.6k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (269:28): [True: 38.1k, False: 9.53k]
  ------------------
  270|  38.1k|            t[i] = word_add(a.m_val[i], b.m_val[i], &carry);
  271|  38.1k|         }
  272|       |
  273|  9.53k|         std::array<W, N> r;  // NOLINT(*-member-init)
  274|  9.53k|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  275|  9.53k|         return Self(r);
  276|  9.53k|      }
pcurves_secp256k1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E1yEv:
 1167|  29.1k|      constexpr const FieldElement& y() const { return m_y; }
pcurves_secp256k1.cpp:_ZN5BotanmlERKNS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEESC_:
  346|  81.0k|      friend constexpr BOTAN_FORCE_INLINE Self operator*(const Self& a, const Self& b) {
  347|  81.0k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  348|  81.0k|         comba_mul<N>(z.data(), a.data(), b.data());
  349|  81.0k|         return Self(Rep::redc(z));
  350|  81.0k|      }
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|  51.5k|      friend constexpr BOTAN_FORCE_INLINE Self operator-(const Self& a, const Self& b) {
  282|  51.5k|         std::array<W, N> r;  // NOLINT(*-member-init)
  283|  51.5k|         W carry = 0;
  284|   257k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (284:28): [True: 206k, False: 51.5k]
  ------------------
  285|   206k|            r[i] = word_sub(a.m_val[i], b.m_val[i], &carry);
  286|   206k|         }
  287|       |
  288|  51.5k|         const auto mask = CT::Mask<W>::expand(carry).value();
  289|       |
  290|  51.5k|         carry = 0;
  291|       |
  292|   257k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (292:28): [True: 206k, False: 51.5k]
  ------------------
  293|   206k|            r[i] = word_add(r[i], P[i] & mask, &carry);
  294|   206k|         }
  295|       |
  296|  51.5k|         return Self(r);
  297|  51.5k|      }
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|  50.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|  10.4k|      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|  16.5k|         Self& x, Self& y, Self& z, CT::Choice cond, const Self& nx, const Self& ny, const Self& nz) {
  396|  16.5k|         const W mask = cond.into_bitmask<W>();
  397|       |
  398|  82.5k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (398:28): [True: 66.0k, False: 16.5k]
  ------------------
  399|  66.0k|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  400|  66.0k|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  401|  66.0k|            z.m_val[i] = Botan::choose(mask, nz.m_val[i], z.m_val[i]);
  402|  66.0k|         }
  403|  16.5k|      }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEmLERKSA_:
  355|  2.30k|      constexpr BOTAN_FORCE_INLINE Self& operator*=(const Self& other) {
  356|  2.30k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  357|  2.30k|         comba_mul<N>(z.data(), data(), other.data());
  358|  2.30k|         m_val = Rep::redc(z);
  359|  2.30k|         return (*this);
  360|  2.30k|      }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE8square_nEm:
  439|  2.30k|      constexpr void square_n(size_t n) {
  440|  2.30k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  441|  47.0k|         for(size_t i = 0; i != n; ++i) {
  ------------------
  |  Branch (441:28): [True: 44.7k, False: 2.30k]
  ------------------
  442|  44.7k|            comba_sqr<N>(z.data(), this->data());
  443|  44.7k|            m_val = Rep::redc(z);
  444|  44.7k|         }
  445|  2.30k|      }
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|  15.2k|      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|  7.61k|      constexpr Self negate() const {
  453|  7.61k|         const W x_is_zero = ~CT::all_zeros(this->data(), N).value();
  454|       |
  455|  7.61k|         std::array<W, N> r;  // NOLINT(*-member-init)
  456|  7.61k|         W carry = 0;
  457|  38.0k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (457:28): [True: 30.4k, False: 7.61k]
  ------------------
  458|  30.4k|            r[i] = word_sub(P[i] & x_is_zero, m_val[i], &carry);
  459|  30.4k|         }
  460|       |
  461|  7.61k|         return Self(r);
  462|  7.61k|      }
pcurves_secp256k1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEEC2ERKSB_SE_:
  917|  9.71k|      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|    885|      std::array<W, L> stash_value() const {
  760|    885|         static_assert(L >= N);
  761|    885|         std::array<W, L> stash = {};
  762|  4.42k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 3.54k, False: 885]
  ------------------
  763|  3.54k|            stash[i] = m_val[i];
  764|  3.54k|         }
  765|    885|         return stash;
  766|    885|      }
pcurves_secp256k1.cpp:_ZNK5Botan23PrecomputedBaseMulTableINS_6PCurve12_GLOBAL__N_19secp256k15CurveELm6EE3mulERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS3_12Secp256k1RepEE12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1407|    177|      ProjectivePoint mul(const Scalar& s, RandomNumberGenerator& rng) const {
 1408|    177|         const BlindedScalar scalar(s, rng);
 1409|    177|         return basemul_booth_exec<C, WindowBits>(m_table, scalar, rng);
 1410|    177|      }
pcurves_secp256k1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp256k15CurveELm7EEC2ERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS3_12Secp256k1RepEE12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1307|    177|      BlindedScalarBits(const typename C::Scalar& scalar, RandomNumberGenerator& rng) {
 1308|    177|         if(BlindingBits > 0 && rng.is_seeded()) {
  ------------------
  |  Branch (1308:13): [True: 177, Folded]
  |  Branch (1308:33): [True: 0, False: 177]
  ------------------
 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|    177|         } else {
 1344|       |            // No RNG available, skip blinding
 1345|    177|            m_bytes.resize(C::Scalar::BYTES);
 1346|    177|            scalar.serialize_to(std::span{m_bytes}.template first<C::Scalar::BYTES>());
 1347|    177|            m_bits = C::Scalar::BITS;
 1348|    177|         }
 1349|       |
 1350|    177|         CT::poison(m_bytes.data(), m_bytes.size());
 1351|    177|      }
pcurves_secp256k1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS4_12Secp256k1RepEE12ScalarParamsEE8from_repERKNSt3__15arrayImLm4EEE:
  137|    362|      constexpr static std::array<W, N> from_rep(const std::array<W, N>& z) {
  138|    362|         std::array<W, 2 * N> ze = {};
  139|    362|         copy_mem(std::span{ze}.template first<N>(), z);
  140|    362|         return Self::redc(ze);
  141|    362|      }
pcurves_secp256k1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS4_12Secp256k1RepEE12ScalarParamsEE4redcERKNSt3__15arrayImLm8EEE:
  104|    548|      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|    548|         } else {
  108|    548|            return monty_redc(z, P, P_dash);
  109|    548|         }
  110|    548|      }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS5_12Secp256k1RepEE12ScalarParamsEEEE12serialize_toENSt3__14spanIhLm32EEE:
  739|    362|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    362|         auto v = Rep::from_rep(m_val);
  741|    362|         std::reverse(v.begin(), v.end());
  742|       |
  743|    362|         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|    362|            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|    362|      }
pcurves_secp256k1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp256k15CurveELm7EE4bitsEv:
 1305|    177|      size_t bits() const { return m_bits; }
pcurves_secp256k1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E18conditional_assignENS_2CT6ChoiceERKSC_:
 1084|    177|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
 1085|    177|         FieldElement::conditional_assign(m_x, m_y, m_z, cond, pt.x(), pt.y(), pt.z());
 1086|    177|      }
pcurves_secp256k1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E6negateEv:
 1134|    177|      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|    177|      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|    531|      constexpr void _const_time_poison() const { CT::poison(m_val); }
pcurves_secp256k1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp256k15CurveELm7EE10get_windowEm:
 1353|  7.61k|      size_t get_window(size_t offset) const {
 1354|       |         // Extract a WindowBits sized window out of s, depending on offset.
 1355|  7.61k|         return read_window_bits<WindowBits>(std::span{m_bytes}, offset);
 1356|  7.61k|      }
pcurves_secp256k1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E10add_or_subERKSC_RKNS_16AffineCurvePointISB_EENS_2CT6ChoiceE:
 1096|  7.43k|      constexpr static Self add_or_sub(const Self& a, const AffinePoint& b, CT::Choice sub) {
 1097|  7.43k|         return point_add_or_sub_mixed<Self, AffinePoint, FieldElement>(a, b, sub, FieldElement::one());
 1098|  7.43k|      }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE18conditional_assignENS_2CT6ChoiceERKSA_:
  367|  7.43k|      constexpr void conditional_assign(CT::Choice cond, const Self& nx) {
  368|  7.43k|         const W mask = cond.into_bitmask<W>();
  369|       |
  370|  37.1k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (370:28): [True: 29.7k, False: 7.43k]
  ------------------
  371|  29.7k|            m_val[i] = Botan::choose(mask, nx.m_val[i], m_val[i]);
  372|  29.7k|         }
  373|  7.43k|      }
pcurves_secp256k1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE9ct_selectENSt3__14spanIKSC_Lm18446744073709551615EEEm:
  955|  7.61k|      static constexpr auto ct_select(std::span<const Self> pts, size_t idx) {
  956|  7.61k|         auto result = Self::identity(pts[0]);
  957|       |
  958|       |         // Intentionally wrapping; set to maximum size_t if idx == 0
  959|  7.61k|         const size_t idx1 = static_cast<size_t>(idx - 1);
  960|   251k|         for(size_t i = 0; i != pts.size(); ++i) {
  ------------------
  |  Branch (960:28): [True: 243k, False: 7.61k]
  ------------------
  961|   243k|            const auto found = CT::Mask<size_t>::is_equal(idx1, i).as_choice();
  962|   243k|            result.conditional_assign(found, pts[i]);
  963|   243k|         }
  964|       |
  965|  7.61k|         return result;
  966|  7.61k|      }
pcurves_secp256k1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE8identityERKSC_:
  924|  7.61k|      static constexpr Self identity(const Self& /*unused*/) {
  925|  7.61k|         return Self(FieldElement::zero(), FieldElement::zero());
  926|  7.61k|      }
pcurves_secp256k1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE18conditional_assignENS_2CT6ChoiceERKSC_:
  981|   243k|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
  982|   243k|         FieldElement::conditional_assign(m_x, m_y, cond, pt.x(), pt.y());
  983|   243k|      }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE18conditional_assignERSA_SB_NS_2CT6ChoiceERKSA_SF_:
  380|   243k|      static constexpr void conditional_assign(Self& x, Self& y, CT::Choice cond, const Self& nx, const Self& ny) {
  381|   243k|         const W mask = cond.into_bitmask<W>();
  382|       |
  383|  1.21M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (383:28): [True: 974k, False: 243k]
  ------------------
  384|   974k|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  385|   974k|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  386|   974k|         }
  387|   243k|      }
pcurves_secp256k1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E13randomize_repERNS_21RandomNumberGeneratorE:
 1142|    708|      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|    708|         if(rng.is_seeded()) {
  ------------------
  |  Branch (1147:13): [True: 0, False: 708]
  ------------------
 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|    708|      }
pcurves_secp256k1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E20_const_time_unpoisonEv:
 1176|    177|      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|    531|      constexpr void _const_time_unpoison() const { CT::unpoison(m_val); }
pcurves_secp256k1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp256k15CurveELm7EED2Ev:
 1358|    177|      ~BlindedScalarBits() {
 1359|    177|         secure_zeroize_buffer(m_bytes.data(), m_bytes.size());
 1360|    177|         CT::unpoison(m_bytes.data(), m_bytes.size());
 1361|    177|      }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS5_12Secp256k1RepEE12ScalarParamsEEEE10from_stashILm9EEESB_RKNSt3__15arrayImXT_EEE:
  774|    547|      static Self from_stash(const std::array<W, L>& stash) {
  775|    547|         static_assert(L >= N);
  776|    547|         std::array<W, N> val = {};
  777|  2.73k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 2.18k, False: 547]
  ------------------
  778|  2.18k|            val[i] = stash[i];
  779|  2.18k|         }
  780|    547|         return Self(val);
  781|    547|      }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS5_12Secp256k1RepEE12ScalarParamsEEEEC2ENSt3__15arrayImLm4EEE:
  898|    733|      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|    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|    354|         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|    354|            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|    354|      }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS5_12Secp256k1RepEE12ScalarParamsEEEE11stash_valueILm9EEENSt3__15arrayImXT_EEEv:
  759|    185|      std::array<W, L> stash_value() const {
  760|    185|         static_assert(L >= N);
  761|    185|         std::array<W, L> stash = {};
  762|    925|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 740, False: 185]
  ------------------
  763|    740|            stash[i] = m_val[i];
  764|    740|         }
  765|    185|         return stash;
  766|    185|      }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_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|  6.19k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 4.95k, False: 1.23k]
  ------------------
  778|  4.95k|            val[i] = stash[i];
  779|  4.95k|         }
  780|  1.23k|         return Self(val);
  781|  1.23k|      }
pcurves_secp256k1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS5_12Secp256k1RepEE12ScalarParamsEEEE7is_zeroEv:
  225|    371|      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|    177|      constexpr CT::Choice operator==(const Self& other) const {
  723|    177|         return CT::is_equal(this->data(), other.data(), N).as_choice();
  724|    177|      }
pcurves_secp256k1.cpp:_ZN5Botan13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS3_12Secp256k1RepEE7x3_ax_bERKNS_6IntModINS5_INS6_11FieldParamsEEEEE:
 1275|    177|      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|    186|      static std::optional<Self> deserialize(std::span<const uint8_t> bytes) {
  793|       |         // Conditional ok: input length is public
  794|    186|         if(bytes.size() != Self::BYTES) {
  ------------------
  |  Branch (794:13): [True: 0, False: 186]
  ------------------
  795|      0|            return {};
  796|      0|         }
  797|       |
  798|    186|         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|    186|         if(!bigint_ct_is_lt(words.data(), N, P.data(), N).as_bool()) {
  ------------------
  |  Branch (801:13): [True: 0, False: 186]
  ------------------
  802|      0|            return {};
  803|      0|         }
  804|       |
  805|       |         // Safe because we checked above that words is an integer < P
  806|    186|         return Self::from_words(words);
  807|    186|      }
pcurves_secp256k1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS5_12Secp256k1RepEE12ScalarParamsEEEE10from_wordsILm4EEESB_NSt3__15arrayImXT_EEE:
  211|    186|      static constexpr Self from_words(std::array<W, L> w) {
  212|    186|         if constexpr(L == N) {
  213|    186|            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|    186|      }
pcurves_secp256k1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256k16ParamsENS4_12Secp256k1RepEE12ScalarParamsEE6to_repERKNSt3__15arrayImLm4EEE:
  115|    186|      constexpr static std::array<W, N> to_rep(const std::array<W, N>& x) {
  116|    186|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  117|    186|         comba_mul<N>(z.data(), x.data(), R2.data());
  118|    186|         return Self::redc(z);
  119|    186|      }
pcurves_secp256k1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE12serialize_toENSt3__14spanIhLm65EEE:
  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_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|     66|      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|     66|         auto x = pt.x();
 1027|     66|         auto y = pt.y();
 1028|     66|         auto z = FieldElement::one();
 1029|       |
 1030|     66|         FieldElement::conditional_swap(pt.is_identity(), y, z);
 1031|       |
 1032|     66|         return ProjectiveCurvePoint(x, y, z);
 1033|     66|      }
pcurves_secp256r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEEE1xEv:
  971|  98.1k|      constexpr const FieldElement& x() const { return m_x; }
pcurves_secp256r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEEE1yEv:
  976|  95.4k|      constexpr const FieldElement& y() const { return m_y; }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE3oneEv:
  200|  2.79k|      static constexpr Self one() { return Self(Rep::one()); }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEEC2ENSt3__15arrayImLm4EEE:
  898|   107k|      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|     66|      static constexpr void conditional_swap(CT::Choice cond, Self& x, Self& y) {
  411|     66|         const W mask = cond.into_bitmask<W>();
  412|       |
  413|    330|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (413:28): [True: 264, False: 66]
  ------------------
  414|    264|            auto nx = Botan::choose(mask, y.m_val[i], x.m_val[i]);
  415|    264|            auto ny = Botan::choose(mask, x.m_val[i], y.m_val[i]);
  416|    264|            x.m_val[i] = nx;
  417|    264|            y.m_val[i] = ny;
  418|    264|         }
  419|     66|      }
pcurves_secp256r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEEE11is_identityEv:
  928|  2.99k|      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|  18.6k|      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|  4.49k|            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|  27.6k|      constexpr const FieldElement& z() const { return m_z; }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE6squareEv:
  426|  16.4k|      constexpr BOTAN_FORCE_INLINE Self square() const {
  427|  16.4k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  428|  16.4k|         comba_sqr<N>(z.data(), this->data());
  429|  16.4k|         return Self(Rep::redc(z));
  430|  16.4k|      }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE4dataEv:
  896|   125k|      constexpr const W* data() const { return m_val.data(); }
pcurves_secp256r1.cpp:_ZN5BotanmlERKNS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEEESC_:
  346|  43.6k|      friend constexpr BOTAN_FORCE_INLINE Self operator*(const Self& a, const Self& b) {
  347|  43.6k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  348|  43.6k|         comba_mul<N>(z.data(), a.data(), b.data());
  349|  43.6k|         return Self(Rep::redc(z));
  350|  43.6k|      }
pcurves_secp256r1.cpp:_ZN5BotanmiERKNS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEEESC_:
  281|  24.1k|      friend constexpr BOTAN_FORCE_INLINE Self operator-(const Self& a, const Self& b) {
  282|  24.1k|         std::array<W, N> r;  // NOLINT(*-member-init)
  283|  24.1k|         W carry = 0;
  284|   120k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (284:28): [True: 96.4k, False: 24.1k]
  ------------------
  285|  96.4k|            r[i] = word_sub(a.m_val[i], b.m_val[i], &carry);
  286|  96.4k|         }
  287|       |
  288|  24.1k|         const auto mask = CT::Mask<W>::expand(carry).value();
  289|       |
  290|  24.1k|         carry = 0;
  291|       |
  292|   120k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (292:28): [True: 96.4k, False: 24.1k]
  ------------------
  293|  96.4k|            r[i] = word_add(r[i], P[i] & mask, &carry);
  294|  96.4k|         }
  295|       |
  296|  24.1k|         return Self(r);
  297|  24.1k|      }
pcurves_secp256r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_E1xEv:
 1162|  15.4k|      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|  5.43k|      friend constexpr BOTAN_FORCE_INLINE Self operator+(const Self& a, const Self& b) {
  266|  5.43k|         std::array<W, N> t;  // NOLINT(*-member-init)
  267|       |
  268|  5.43k|         W carry = 0;
  269|  27.1k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (269:28): [True: 21.7k, False: 5.43k]
  ------------------
  270|  21.7k|            t[i] = word_add(a.m_val[i], b.m_val[i], &carry);
  271|  21.7k|         }
  272|       |
  273|  5.43k|         std::array<W, N> r;  // NOLINT(*-member-init)
  274|  5.43k|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  275|  5.43k|         return Self(r);
  276|  5.43k|      }
pcurves_secp256r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_E1yEv:
 1167|  14.6k|      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|  5.76k|      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|  6.99k|         Self& x, Self& y, Self& z, CT::Choice cond, const Self& nx, const Self& ny, const Self& nz) {
  396|  6.99k|         const W mask = cond.into_bitmask<W>();
  397|       |
  398|  34.9k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (398:28): [True: 27.9k, False: 6.99k]
  ------------------
  399|  27.9k|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  400|  27.9k|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  401|  27.9k|            z.m_val[i] = Botan::choose(mask, nz.m_val[i], z.m_val[i]);
  402|  27.9k|         }
  403|  6.99k|      }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEEmLERKSA_:
  355|    715|      constexpr BOTAN_FORCE_INLINE Self& operator*=(const Self& other) {
  356|    715|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  357|    715|         comba_mul<N>(z.data(), data(), other.data());
  358|    715|         m_val = Rep::redc(z);
  359|    715|         return (*this);
  360|    715|      }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE8square_nEm:
  439|    585|      constexpr void square_n(size_t n) {
  440|    585|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  441|  16.9k|         for(size_t i = 0; i != n; ++i) {
  ------------------
  |  Branch (441:28): [True: 16.3k, False: 585]
  ------------------
  442|  16.3k|            comba_sqr<N>(z.data(), this->data());
  443|  16.3k|            m_val = Rep::redc(z);
  444|  16.3k|         }
  445|    585|      }
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|  5.59k|      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|  2.79k|      constexpr Self negate() const {
  453|  2.79k|         const W x_is_zero = ~CT::all_zeros(this->data(), N).value();
  454|       |
  455|  2.79k|         std::array<W, N> r;  // NOLINT(*-member-init)
  456|  2.79k|         W carry = 0;
  457|  13.9k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (457:28): [True: 11.1k, False: 2.79k]
  ------------------
  458|  11.1k|            r[i] = word_sub(P[i] & x_is_zero, m_val[i], &carry);
  459|  11.1k|         }
  460|       |
  461|  2.79k|         return Self(r);
  462|  2.79k|      }
pcurves_secp256r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEEEC2ERKSB_SE_:
  917|  4.55k|      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|    325|      std::array<W, L> stash_value() const {
  760|    325|         static_assert(L >= N);
  761|    325|         std::array<W, L> stash = {};
  762|  1.62k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 1.30k, False: 325]
  ------------------
  763|  1.30k|            stash[i] = m_val[i];
  764|  1.30k|         }
  765|    325|         return stash;
  766|    325|      }
pcurves_secp256r1.cpp:_ZNK5Botan23PrecomputedBaseMulTableINS_6PCurve12_GLOBAL__N_19secp256r15CurveELm6EE3mulERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS2_12Secp256r1RepEE12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1407|     65|      ProjectivePoint mul(const Scalar& s, RandomNumberGenerator& rng) const {
 1408|     65|         const BlindedScalar scalar(s, rng);
 1409|     65|         return basemul_booth_exec<C, WindowBits>(m_table, scalar, rng);
 1410|     65|      }
pcurves_secp256r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp256r15CurveELm7EEC2ERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS2_12Secp256r1RepEE12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1307|     65|      BlindedScalarBits(const typename C::Scalar& scalar, RandomNumberGenerator& rng) {
 1308|     65|         if(BlindingBits > 0 && rng.is_seeded()) {
  ------------------
  |  Branch (1308:13): [True: 65, Folded]
  |  Branch (1308:33): [True: 0, False: 65]
  ------------------
 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|     65|         } else {
 1344|       |            // No RNG available, skip blinding
 1345|     65|            m_bytes.resize(C::Scalar::BYTES);
 1346|     65|            scalar.serialize_to(std::span{m_bytes}.template first<C::Scalar::BYTES>());
 1347|     65|            m_bits = C::Scalar::BITS;
 1348|     65|         }
 1349|       |
 1350|     65|         CT::poison(m_bytes.data(), m_bytes.size());
 1351|     65|      }
pcurves_secp256r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS3_12Secp256r1RepEE12ScalarParamsEE8from_repERKNSt3__15arrayImLm4EEE:
  137|    130|      constexpr static std::array<W, N> from_rep(const std::array<W, N>& z) {
  138|    130|         std::array<W, 2 * N> ze = {};
  139|    130|         copy_mem(std::span{ze}.template first<N>(), z);
  140|    130|         return Self::redc(ze);
  141|    130|      }
pcurves_secp256r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS3_12Secp256r1RepEE12ScalarParamsEE4redcERKNSt3__15arrayImLm8EEE:
  104|    196|      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|    196|         } else {
  108|    196|            return monty_redc(z, P, P_dash);
  109|    196|         }
  110|    196|      }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS4_12Secp256r1RepEE12ScalarParamsEEEE12serialize_toENSt3__14spanIhLm32EEE:
  739|    130|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    130|         auto v = Rep::from_rep(m_val);
  741|    130|         std::reverse(v.begin(), v.end());
  742|       |
  743|    130|         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|    130|            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|    130|      }
pcurves_secp256r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp256r15CurveELm7EE4bitsEv:
 1305|     65|      size_t bits() const { return m_bits; }
pcurves_secp256r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_E18conditional_assignENS_2CT6ChoiceERKSC_:
 1084|     65|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
 1085|     65|         FieldElement::conditional_assign(m_x, m_y, m_z, cond, pt.x(), pt.y(), pt.z());
 1086|     65|      }
pcurves_secp256r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_E6negateEv:
 1134|     65|      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|     65|      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|    195|      constexpr void _const_time_poison() const { CT::poison(m_val); }
pcurves_secp256r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp256r15CurveELm7EE10get_windowEm:
 1353|  2.79k|      size_t get_window(size_t offset) const {
 1354|       |         // Extract a WindowBits sized window out of s, depending on offset.
 1355|  2.79k|         return read_window_bits<WindowBits>(std::span{m_bytes}, offset);
 1356|  2.79k|      }
pcurves_secp256r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_E10add_or_subERKSC_RKNS_16AffineCurvePointISB_EENS_2CT6ChoiceE:
 1096|  2.73k|      constexpr static Self add_or_sub(const Self& a, const AffinePoint& b, CT::Choice sub) {
 1097|  2.73k|         return point_add_or_sub_mixed<Self, AffinePoint, FieldElement>(a, b, sub, FieldElement::one());
 1098|  2.73k|      }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE18conditional_assignENS_2CT6ChoiceERKSA_:
  367|  2.73k|      constexpr void conditional_assign(CT::Choice cond, const Self& nx) {
  368|  2.73k|         const W mask = cond.into_bitmask<W>();
  369|       |
  370|  13.6k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (370:28): [True: 10.9k, False: 2.73k]
  ------------------
  371|  10.9k|            m_val[i] = Botan::choose(mask, nx.m_val[i], m_val[i]);
  372|  10.9k|         }
  373|  2.73k|      }
pcurves_secp256r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEEE9ct_selectENSt3__14spanIKSC_Lm18446744073709551615EEEm:
  955|  2.79k|      static constexpr auto ct_select(std::span<const Self> pts, size_t idx) {
  956|  2.79k|         auto result = Self::identity(pts[0]);
  957|       |
  958|       |         // Intentionally wrapping; set to maximum size_t if idx == 0
  959|  2.79k|         const size_t idx1 = static_cast<size_t>(idx - 1);
  960|  92.2k|         for(size_t i = 0; i != pts.size(); ++i) {
  ------------------
  |  Branch (960:28): [True: 89.4k, False: 2.79k]
  ------------------
  961|  89.4k|            const auto found = CT::Mask<size_t>::is_equal(idx1, i).as_choice();
  962|  89.4k|            result.conditional_assign(found, pts[i]);
  963|  89.4k|         }
  964|       |
  965|  2.79k|         return result;
  966|  2.79k|      }
pcurves_secp256r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEEE8identityERKSC_:
  924|  2.79k|      static constexpr Self identity(const Self& /*unused*/) {
  925|  2.79k|         return Self(FieldElement::zero(), FieldElement::zero());
  926|  2.79k|      }
pcurves_secp256r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEEE18conditional_assignENS_2CT6ChoiceERKSC_:
  981|  89.4k|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
  982|  89.4k|         FieldElement::conditional_assign(m_x, m_y, cond, pt.x(), pt.y());
  983|  89.4k|      }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE18conditional_assignERSA_SB_NS_2CT6ChoiceERKSA_SF_:
  380|  89.4k|      static constexpr void conditional_assign(Self& x, Self& y, CT::Choice cond, const Self& nx, const Self& ny) {
  381|  89.4k|         const W mask = cond.into_bitmask<W>();
  382|       |
  383|   447k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (383:28): [True: 357k, False: 89.4k]
  ------------------
  384|   357k|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  385|   357k|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  386|   357k|         }
  387|  89.4k|      }
pcurves_secp256r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_E13randomize_repERNS_21RandomNumberGeneratorE:
 1142|    260|      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|    260|         if(rng.is_seeded()) {
  ------------------
  |  Branch (1147:13): [True: 0, False: 260]
  ------------------
 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|    260|      }
pcurves_secp256r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEES7_E20_const_time_unpoisonEv:
 1176|     65|      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|    195|      constexpr void _const_time_unpoison() const { CT::unpoison(m_val); }
pcurves_secp256r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp256r15CurveELm7EED2Ev:
 1358|     65|      ~BlindedScalarBits() {
 1359|     65|         secure_zeroize_buffer(m_bytes.data(), m_bytes.size());
 1360|     65|         CT::unpoison(m_bytes.data(), m_bytes.size());
 1361|     65|      }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS4_12Secp256r1RepEE12ScalarParamsEEEE10from_stashILm9EEESB_RKNSt3__15arrayImXT_EEE:
  774|    195|      static Self from_stash(const std::array<W, L>& stash) {
  775|    195|         static_assert(L >= N);
  776|    195|         std::array<W, N> val = {};
  777|    975|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 780, False: 195]
  ------------------
  778|    780|            val[i] = stash[i];
  779|    780|         }
  780|    195|         return Self(val);
  781|    195|      }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS4_12Secp256r1RepEE12ScalarParamsEEEEC2ENSt3__15arrayImLm4EEE:
  898|    261|      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|    130|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    130|         auto v = Rep::from_rep(m_val);
  741|    130|         std::reverse(v.begin(), v.end());
  742|       |
  743|    130|         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|    130|            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|    130|      }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS4_12Secp256r1RepEE12ScalarParamsEEEE11stash_valueILm9EEENSt3__15arrayImXT_EEEv:
  759|     65|      std::array<W, L> stash_value() const {
  760|     65|         static_assert(L >= N);
  761|     65|         std::array<W, L> stash = {};
  762|    325|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 260, False: 65]
  ------------------
  763|    260|            stash[i] = m_val[i];
  764|    260|         }
  765|     65|         return stash;
  766|     65|      }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS2_9secp256r16ParamsES3_E11FieldParamsEEEE10from_stashILm9EEESA_RKNSt3__15arrayImXT_EEE:
  774|    455|      static Self from_stash(const std::array<W, L>& stash) {
  775|    455|         static_assert(L >= N);
  776|    455|         std::array<W, N> val = {};
  777|  2.27k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 1.82k, False: 455]
  ------------------
  778|  1.82k|            val[i] = stash[i];
  779|  1.82k|         }
  780|    455|         return Self(val);
  781|    455|      }
pcurves_secp256r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS4_12Secp256r1RepEE12ScalarParamsEEEE7is_zeroEv:
  225|    131|      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|     65|      constexpr CT::Choice operator==(const Self& other) const {
  723|     65|         return CT::is_equal(this->data(), other.data(), N).as_choice();
  724|     65|      }
pcurves_secp256r1.cpp:_ZN5Botan13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS2_12Secp256r1RepEE7x3_ax_bERKNS_6IntModINS5_INS6_11FieldParamsEEEEE:
 1275|     65|      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|     66|      static std::optional<Self> deserialize(std::span<const uint8_t> bytes) {
  793|       |         // Conditional ok: input length is public
  794|     66|         if(bytes.size() != Self::BYTES) {
  ------------------
  |  Branch (794:13): [True: 0, False: 66]
  ------------------
  795|      0|            return {};
  796|      0|         }
  797|       |
  798|     66|         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|     66|         if(!bigint_ct_is_lt(words.data(), N, P.data(), N).as_bool()) {
  ------------------
  |  Branch (801:13): [True: 0, False: 66]
  ------------------
  802|      0|            return {};
  803|      0|         }
  804|       |
  805|       |         // Safe because we checked above that words is an integer < P
  806|     66|         return Self::from_words(words);
  807|     66|      }
pcurves_secp256r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS4_12Secp256r1RepEE12ScalarParamsEEEE10from_wordsILm4EEESB_NSt3__15arrayImXT_EEE:
  211|     66|      static constexpr Self from_words(std::array<W, L> w) {
  212|     66|         if constexpr(L == N) {
  213|     66|            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|     66|      }
pcurves_secp256r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp256r16ParamsENS3_12Secp256r1RepEE12ScalarParamsEE6to_repERKNSt3__15arrayImLm4EEE:
  115|     66|      constexpr static std::array<W, N> to_rep(const std::array<W, N>& x) {
  116|     66|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  117|     66|         comba_mul<N>(z.data(), x.data(), R2.data());
  118|     66|         return Self::redc(z);
  119|     66|      }
pcurves_secp256r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS3_9secp256r16ParamsES4_E11FieldParamsEEEEEE12serialize_toENSt3__14spanIhLm65EEE:
  941|     65|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  942|     65|         BOTAN_STATE_CHECK(this->is_identity().as_bool() == false);
  ------------------
  |  |   51|     65|   do {                                                         \
  |  |   52|     65|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|     65|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 65]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|     65|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 65]
  |  |  ------------------
  ------------------
  943|     65|         BufferStuffer pack(bytes);
  944|     65|         pack.append(0x04);
  945|     65|         x().serialize_to(pack.next<FieldElement::BYTES>());
  946|     65|         y().serialize_to(pack.next<FieldElement::BYTES>());
  947|     65|         BOTAN_DEBUG_ASSERT(pack.full());
  ------------------
  |  |  130|     65|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|     65|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 65]
  |  |  ------------------
  ------------------
  948|     65|      }
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|    168|      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|    168|         auto x = pt.x();
 1027|    168|         auto y = pt.y();
 1028|    168|         auto z = FieldElement::one();
 1029|       |
 1030|    168|         FieldElement::conditional_swap(pt.is_identity(), y, z);
 1031|       |
 1032|    168|         return ProjectiveCurvePoint(x, y, z);
 1033|    168|      }
pcurves_secp384r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEEE1xEv:
  971|   380k|      constexpr const FieldElement& x() const { return m_x; }
pcurves_secp384r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEEE1yEv:
  976|   370k|      constexpr const FieldElement& y() const { return m_y; }
pcurves_secp384r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE3oneEv:
  200|  10.8k|      static constexpr Self one() { return Self(Rep::one()); }
pcurves_secp384r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEEC2ENSt3__15arrayImLm6EEE:
  898|   307k|      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|    168|      static constexpr void conditional_swap(CT::Choice cond, Self& x, Self& y) {
  411|    168|         const W mask = cond.into_bitmask<W>();
  412|       |
  413|  1.17k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (413:28): [True: 1.00k, False: 168]
  ------------------
  414|  1.00k|            auto nx = Botan::choose(mask, y.m_val[i], x.m_val[i]);
  415|  1.00k|            auto ny = Botan::choose(mask, x.m_val[i], y.m_val[i]);
  416|  1.00k|            x.m_val[i] = nx;
  417|  1.00k|            y.m_val[i] = ny;
  418|  1.00k|         }
  419|    168|      }
pcurves_secp384r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEEE11is_identityEv:
  928|  11.3k|      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|  61.4k|      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|  13.5k|            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|  74.7k|      constexpr const FieldElement& z() const { return m_z; }
pcurves_secp384r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE6squareEv:
  426|  44.5k|      constexpr BOTAN_FORCE_INLINE Self square() const {
  427|  44.5k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  428|  44.5k|         comba_sqr<N>(z.data(), this->data());
  429|  44.5k|         return Self(Rep::redc(z));
  430|  44.5k|      }
pcurves_secp384r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE4dataEv:
  896|   361k|      constexpr const W* data() const { return m_val.data(); }
pcurves_secp384r1.cpp:_ZN5BotanmlERKNS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEEESC_:
  346|   118k|      friend constexpr BOTAN_FORCE_INLINE Self operator*(const Self& a, const Self& b) {
  347|   118k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  348|   118k|         comba_mul<N>(z.data(), a.data(), b.data());
  349|   118k|         return Self(Rep::redc(z));
  350|   118k|      }
pcurves_secp384r1.cpp:_ZN5BotanmiERKNS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEEESC_:
  281|  75.6k|      friend constexpr BOTAN_FORCE_INLINE Self operator-(const Self& a, const Self& b) {
  282|  75.6k|         std::array<W, N> r;  // NOLINT(*-member-init)
  283|  75.6k|         W carry = 0;
  284|   529k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (284:28): [True: 453k, False: 75.6k]
  ------------------
  285|   453k|            r[i] = word_sub(a.m_val[i], b.m_val[i], &carry);
  286|   453k|         }
  287|       |
  288|  75.6k|         const auto mask = CT::Mask<W>::expand(carry).value();
  289|       |
  290|  75.6k|         carry = 0;
  291|       |
  292|   529k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (292:28): [True: 453k, False: 75.6k]
  ------------------
  293|   453k|            r[i] = word_add(r[i], P[i] & mask, &carry);
  294|   453k|         }
  295|       |
  296|  75.6k|         return Self(r);
  297|  75.6k|      }
pcurves_secp384r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEES7_E1xEv:
 1162|  43.1k|      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|  14.8k|      friend constexpr BOTAN_FORCE_INLINE Self operator+(const Self& a, const Self& b) {
  266|  14.8k|         std::array<W, N> t;  // NOLINT(*-member-init)
  267|       |
  268|  14.8k|         W carry = 0;
  269|   103k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (269:28): [True: 89.1k, False: 14.8k]
  ------------------
  270|  89.1k|            t[i] = word_add(a.m_val[i], b.m_val[i], &carry);
  271|  89.1k|         }
  272|       |
  273|  14.8k|         std::array<W, N> r;  // NOLINT(*-member-init)
  274|  14.8k|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  275|  14.8k|         return Self(r);
  276|  14.8k|      }
pcurves_secp384r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEES7_E1yEv:
 1167|  41.9k|      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|  15.2k|      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|  23.7k|         Self& x, Self& y, Self& z, CT::Choice cond, const Self& nx, const Self& ny, const Self& nz) {
  396|  23.7k|         const W mask = cond.into_bitmask<W>();
  397|       |
  398|   166k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (398:28): [True: 142k, False: 23.7k]
  ------------------
  399|   142k|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  400|   142k|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  401|   142k|            z.m_val[i] = Botan::choose(mask, nz.m_val[i], z.m_val[i]);
  402|   142k|         }
  403|  23.7k|      }
pcurves_secp384r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEEmLERKSA_:
  355|  2.17k|      constexpr BOTAN_FORCE_INLINE Self& operator*=(const Self& other) {
  356|  2.17k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  357|  2.17k|         comba_mul<N>(z.data(), data(), other.data());
  358|  2.17k|         m_val = Rep::redc(z);
  359|  2.17k|         return (*this);
  360|  2.17k|      }
pcurves_secp384r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE8square_nEm:
  439|  2.00k|      constexpr void square_n(size_t n) {
  440|  2.00k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  441|  65.6k|         for(size_t i = 0; i != n; ++i) {
  ------------------
  |  Branch (441:28): [True: 63.6k, False: 2.00k]
  ------------------
  442|  63.6k|            comba_sqr<N>(z.data(), this->data());
  443|  63.6k|            m_val = Rep::redc(z);
  444|  63.6k|         }
  445|  2.00k|      }
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|  21.7k|      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.8k|      constexpr Self negate() const {
  453|  10.8k|         const W x_is_zero = ~CT::all_zeros(this->data(), N).value();
  454|       |
  455|  10.8k|         std::array<W, N> r;  // NOLINT(*-member-init)
  456|  10.8k|         W carry = 0;
  457|  75.9k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (457:28): [True: 65.1k, False: 10.8k]
  ------------------
  458|  65.1k|            r[i] = word_sub(P[i] & x_is_zero, m_val[i], &carry);
  459|  65.1k|         }
  460|       |
  461|  10.8k|         return Self(r);
  462|  10.8k|      }
pcurves_secp384r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEEEC2ERKSB_SE_:
  917|  13.6k|      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|    835|      std::array<W, L> stash_value() const {
  760|    835|         static_assert(L >= N);
  761|    835|         std::array<W, L> stash = {};
  762|  5.84k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 5.01k, False: 835]
  ------------------
  763|  5.01k|            stash[i] = m_val[i];
  764|  5.01k|         }
  765|    835|         return stash;
  766|    835|      }
pcurves_secp384r1.cpp:_ZNK5Botan23PrecomputedBaseMulTableINS_6PCurve12_GLOBAL__N_19secp384r15CurveELm6EE3mulERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS2_12Secp384r1RepEE12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1407|    167|      ProjectivePoint mul(const Scalar& s, RandomNumberGenerator& rng) const {
 1408|    167|         const BlindedScalar scalar(s, rng);
 1409|    167|         return basemul_booth_exec<C, WindowBits>(m_table, scalar, rng);
 1410|    167|      }
pcurves_secp384r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp384r15CurveELm7EEC2ERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS2_12Secp384r1RepEE12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1307|    167|      BlindedScalarBits(const typename C::Scalar& scalar, RandomNumberGenerator& rng) {
 1308|    167|         if(BlindingBits > 0 && rng.is_seeded()) {
  ------------------
  |  Branch (1308:13): [True: 167, Folded]
  |  Branch (1308:33): [True: 0, False: 167]
  ------------------
 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|    167|         } else {
 1344|       |            // No RNG available, skip blinding
 1345|    167|            m_bytes.resize(C::Scalar::BYTES);
 1346|    167|            scalar.serialize_to(std::span{m_bytes}.template first<C::Scalar::BYTES>());
 1347|    167|            m_bits = C::Scalar::BITS;
 1348|    167|         }
 1349|       |
 1350|    167|         CT::poison(m_bytes.data(), m_bytes.size());
 1351|    167|      }
pcurves_secp384r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp384r16ParamsENS3_12Secp384r1RepEE12ScalarParamsEE8from_repERKNSt3__15arrayImLm6EEE:
  137|    353|      constexpr static std::array<W, N> from_rep(const std::array<W, N>& z) {
  138|    353|         std::array<W, 2 * N> ze = {};
  139|    353|         copy_mem(std::span{ze}.template first<N>(), z);
  140|    353|         return Self::redc(ze);
  141|    353|      }
pcurves_secp384r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp384r16ParamsENS3_12Secp384r1RepEE12ScalarParamsEE4redcERKNSt3__15arrayImLm12EEE:
  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_secp384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp384r16ParamsENS4_12Secp384r1RepEE12ScalarParamsEEEE12serialize_toENSt3__14spanIhLm48EEE:
  739|    353|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    353|         auto v = Rep::from_rep(m_val);
  741|    353|         std::reverse(v.begin(), v.end());
  742|       |
  743|    353|         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|    353|            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|    353|      }
pcurves_secp384r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp384r15CurveELm7EE4bitsEv:
 1305|    167|      size_t bits() const { return m_bits; }
pcurves_secp384r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEES7_E18conditional_assignENS_2CT6ChoiceERKSC_:
 1084|    167|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
 1085|    167|         FieldElement::conditional_assign(m_x, m_y, m_z, cond, pt.x(), pt.y(), pt.z());
 1086|    167|      }
pcurves_secp384r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEES7_E6negateEv:
 1134|    167|      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|    167|      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|    501|      constexpr void _const_time_poison() const { CT::poison(m_val); }
pcurves_secp384r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp384r15CurveELm7EE10get_windowEm:
 1353|  10.8k|      size_t get_window(size_t offset) const {
 1354|       |         // Extract a WindowBits sized window out of s, depending on offset.
 1355|  10.8k|         return read_window_bits<WindowBits>(std::span{m_bytes}, offset);
 1356|  10.8k|      }
pcurves_secp384r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEES7_E10add_or_subERKSC_RKNS_16AffineCurvePointISB_EENS_2CT6ChoiceE:
 1096|  10.6k|      constexpr static Self add_or_sub(const Self& a, const AffinePoint& b, CT::Choice sub) {
 1097|  10.6k|         return point_add_or_sub_mixed<Self, AffinePoint, FieldElement>(a, b, sub, FieldElement::one());
 1098|  10.6k|      }
pcurves_secp384r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE18conditional_assignENS_2CT6ChoiceERKSA_:
  367|  10.6k|      constexpr void conditional_assign(CT::Choice cond, const Self& nx) {
  368|  10.6k|         const W mask = cond.into_bitmask<W>();
  369|       |
  370|  74.8k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (370:28): [True: 64.1k, False: 10.6k]
  ------------------
  371|  64.1k|            m_val[i] = Botan::choose(mask, nx.m_val[i], m_val[i]);
  372|  64.1k|         }
  373|  10.6k|      }
pcurves_secp384r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEEE9ct_selectENSt3__14spanIKSC_Lm18446744073709551615EEEm:
  955|  10.8k|      static constexpr auto ct_select(std::span<const Self> pts, size_t idx) {
  956|  10.8k|         auto result = Self::identity(pts[0]);
  957|       |
  958|       |         // Intentionally wrapping; set to maximum size_t if idx == 0
  959|  10.8k|         const size_t idx1 = static_cast<size_t>(idx - 1);
  960|   358k|         for(size_t i = 0; i != pts.size(); ++i) {
  ------------------
  |  Branch (960:28): [True: 347k, False: 10.8k]
  ------------------
  961|   347k|            const auto found = CT::Mask<size_t>::is_equal(idx1, i).as_choice();
  962|   347k|            result.conditional_assign(found, pts[i]);
  963|   347k|         }
  964|       |
  965|  10.8k|         return result;
  966|  10.8k|      }
pcurves_secp384r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEEE8identityERKSC_:
  924|  10.8k|      static constexpr Self identity(const Self& /*unused*/) {
  925|  10.8k|         return Self(FieldElement::zero(), FieldElement::zero());
  926|  10.8k|      }
pcurves_secp384r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEEE18conditional_assignENS_2CT6ChoiceERKSC_:
  981|   347k|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
  982|   347k|         FieldElement::conditional_assign(m_x, m_y, cond, pt.x(), pt.y());
  983|   347k|      }
pcurves_secp384r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE18conditional_assignERSA_SB_NS_2CT6ChoiceERKSA_SF_:
  380|   347k|      static constexpr void conditional_assign(Self& x, Self& y, CT::Choice cond, const Self& nx, const Self& ny) {
  381|   347k|         const W mask = cond.into_bitmask<W>();
  382|       |
  383|  2.43M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (383:28): [True: 2.08M, False: 347k]
  ------------------
  384|  2.08M|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  385|  2.08M|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  386|  2.08M|         }
  387|   347k|      }
pcurves_secp384r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEES7_E13randomize_repERNS_21RandomNumberGeneratorE:
 1142|    668|      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|    668|         if(rng.is_seeded()) {
  ------------------
  |  Branch (1147:13): [True: 0, False: 668]
  ------------------
 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|    668|      }
pcurves_secp384r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEES7_E20_const_time_unpoisonEv:
 1176|    167|      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|    501|      constexpr void _const_time_unpoison() const { CT::unpoison(m_val); }
pcurves_secp384r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp384r15CurveELm7EED2Ev:
 1358|    167|      ~BlindedScalarBits() {
 1359|    167|         secure_zeroize_buffer(m_bytes.data(), m_bytes.size());
 1360|    167|         CT::unpoison(m_bytes.data(), m_bytes.size());
 1361|    167|      }
pcurves_secp384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp384r16ParamsENS4_12Secp384r1RepEE12ScalarParamsEEEE10from_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|  3.77k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 3.23k, False: 539]
  ------------------
  778|  3.23k|            val[i] = stash[i];
  779|  3.23k|         }
  780|    539|         return Self(val);
  781|    539|      }
pcurves_secp384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp384r16ParamsENS4_12Secp384r1RepEE12ScalarParamsEEEEC2ENSt3__15arrayImLm6EEE:
  898|    726|      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|    334|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    334|         auto v = Rep::from_rep(m_val);
  741|    334|         std::reverse(v.begin(), v.end());
  742|       |
  743|    334|         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|    334|            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|    334|      }
pcurves_secp384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp384r16ParamsENS4_12Secp384r1RepEE12ScalarParamsEEEE11stash_valueILm9EEENSt3__15arrayImXT_EEEv:
  759|    186|      std::array<W, L> stash_value() const {
  760|    186|         static_assert(L >= N);
  761|    186|         std::array<W, L> stash = {};
  762|  1.30k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 1.11k, False: 186]
  ------------------
  763|  1.11k|            stash[i] = m_val[i];
  764|  1.11k|         }
  765|    186|         return stash;
  766|    186|      }
pcurves_secp384r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS2_9secp384r16ParamsES3_E11FieldParamsEEEE10from_stashILm9EEESA_RKNSt3__15arrayImXT_EEE:
  774|  1.16k|      static Self from_stash(const std::array<W, L>& stash) {
  775|  1.16k|         static_assert(L >= N);
  776|  1.16k|         std::array<W, N> val = {};
  777|  8.18k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 7.01k, False: 1.16k]
  ------------------
  778|  7.01k|            val[i] = stash[i];
  779|  7.01k|         }
  780|  1.16k|         return Self(val);
  781|  1.16k|      }
pcurves_secp384r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp384r16ParamsENS4_12Secp384r1RepEE12ScalarParamsEEEE7is_zeroEv:
  225|    373|      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|    167|      constexpr CT::Choice operator==(const Self& other) const {
  723|    167|         return CT::is_equal(this->data(), other.data(), N).as_choice();
  724|    167|      }
pcurves_secp384r1.cpp:_ZN5Botan13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp384r16ParamsENS2_12Secp384r1RepEE7x3_ax_bERKNS_6IntModINS5_INS6_11FieldParamsEEEEE:
 1275|    167|      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|    187|      static std::optional<Self> deserialize(std::span<const uint8_t> bytes) {
  793|       |         // Conditional ok: input length is public
  794|    187|         if(bytes.size() != Self::BYTES) {
  ------------------
  |  Branch (794:13): [True: 0, False: 187]
  ------------------
  795|      0|            return {};
  796|      0|         }
  797|       |
  798|    187|         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|    187|         if(!bigint_ct_is_lt(words.data(), N, P.data(), N).as_bool()) {
  ------------------
  |  Branch (801:13): [True: 0, False: 187]
  ------------------
  802|      0|            return {};
  803|      0|         }
  804|       |
  805|       |         // Safe because we checked above that words is an integer < P
  806|    187|         return Self::from_words(words);
  807|    187|      }
pcurves_secp384r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp384r16ParamsENS4_12Secp384r1RepEE12ScalarParamsEEEE10from_wordsILm6EEESB_NSt3__15arrayImXT_EEE:
  211|    187|      static constexpr Self from_words(std::array<W, L> w) {
  212|    187|         if constexpr(L == N) {
  213|    187|            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|    187|      }
pcurves_secp384r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp384r16ParamsENS3_12Secp384r1RepEE12ScalarParamsEE6to_repERKNSt3__15arrayImLm6EEE:
  115|    187|      constexpr static std::array<W, N> to_rep(const std::array<W, N>& x) {
  116|    187|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  117|    187|         comba_mul<N>(z.data(), x.data(), R2.data());
  118|    187|         return Self::redc(z);
  119|    187|      }
pcurves_secp384r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS3_9secp384r16ParamsES4_E11FieldParamsEEEEEE12serialize_toENSt3__14spanIhLm97EEE:
  941|    167|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  942|    167|         BOTAN_STATE_CHECK(this->is_identity().as_bool() == false);
  ------------------
  |  |   51|    167|   do {                                                         \
  |  |   52|    167|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    167|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 167]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    167|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 167]
  |  |  ------------------
  ------------------
  943|    167|         BufferStuffer pack(bytes);
  944|    167|         pack.append(0x04);
  945|    167|         x().serialize_to(pack.next<FieldElement::BYTES>());
  946|    167|         y().serialize_to(pack.next<FieldElement::BYTES>());
  947|    167|         BOTAN_DEBUG_ASSERT(pack.full());
  ------------------
  |  |  130|    167|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    167|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 167]
  |  |  ------------------
  ------------------
  948|    167|      }
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|    175|      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|    175|         auto x = pt.x();
 1027|    175|         auto y = pt.y();
 1028|    175|         auto z = FieldElement::one();
 1029|       |
 1030|    175|         FieldElement::conditional_swap(pt.is_identity(), y, z);
 1031|       |
 1032|    175|         return ProjectiveCurvePoint(x, y, z);
 1033|    175|      }
pcurves_secp521r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE1xEv:
  971|   530k|      constexpr const FieldElement& x() const { return m_x; }
pcurves_secp521r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE1yEv:
  976|   515k|      constexpr const FieldElement& y() const { return m_y; }
pcurves_secp521r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE3oneEv:
  200|  15.1k|      static constexpr Self one() { return Self(Rep::one()); }
pcurves_secp521r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEC2ENSt3__15arrayImLm9EEE:
  898|   425k|      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|    175|      static constexpr void conditional_swap(CT::Choice cond, Self& x, Self& y) {
  411|    175|         const W mask = cond.into_bitmask<W>();
  412|       |
  413|  1.75k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (413:28): [True: 1.57k, False: 175]
  ------------------
  414|  1.57k|            auto nx = Botan::choose(mask, y.m_val[i], x.m_val[i]);
  415|  1.57k|            auto ny = Botan::choose(mask, x.m_val[i], y.m_val[i]);
  416|  1.57k|            x.m_val[i] = nx;
  417|  1.57k|            y.m_val[i] = ny;
  418|  1.57k|         }
  419|    175|      }
pcurves_secp521r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE11is_identityEv:
  928|  15.6k|      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|  85.1k|      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.5k|            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|   102k|      constexpr const FieldElement& z() const { return m_z; }
pcurves_secp521r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE6squareEv:
  426|  61.4k|      constexpr BOTAN_FORCE_INLINE Self square() const {
  427|  61.4k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  428|  61.4k|         comba_sqr<N>(z.data(), this->data());
  429|  61.4k|         return Self(Rep::redc(z));
  430|  61.4k|      }
pcurves_secp521r1.cpp:_ZNK5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE4dataEv:
  896|   498k|      constexpr const W* data() const { return m_val.data(); }
pcurves_secp521r1.cpp:_ZN5BotanmlERKNS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEESC_:
  346|   163k|      friend constexpr BOTAN_FORCE_INLINE Self operator*(const Self& a, const Self& b) {
  347|   163k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  348|   163k|         comba_mul<N>(z.data(), a.data(), b.data());
  349|   163k|         return Self(Rep::redc(z));
  350|   163k|      }
pcurves_secp521r1.cpp:_ZN5BotanmiERKNS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEESC_:
  281|   105k|      friend constexpr BOTAN_FORCE_INLINE Self operator-(const Self& a, const Self& b) {
  282|   105k|         std::array<W, N> r;  // NOLINT(*-member-init)
  283|   105k|         W carry = 0;
  284|  1.05M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (284:28): [True: 945k, False: 105k]
  ------------------
  285|   945k|            r[i] = word_sub(a.m_val[i], b.m_val[i], &carry);
  286|   945k|         }
  287|       |
  288|   105k|         const auto mask = CT::Mask<W>::expand(carry).value();
  289|       |
  290|   105k|         carry = 0;
  291|       |
  292|  1.05M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (292:28): [True: 945k, False: 105k]
  ------------------
  293|   945k|            r[i] = word_add(r[i], P[i] & mask, &carry);
  294|   945k|         }
  295|       |
  296|   105k|         return Self(r);
  297|   105k|      }
pcurves_secp521r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E1xEv:
 1162|  59.4k|      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.5k|      friend constexpr BOTAN_FORCE_INLINE Self operator+(const Self& a, const Self& b) {
  266|  20.5k|         std::array<W, N> t;  // NOLINT(*-member-init)
  267|       |
  268|  20.5k|         W carry = 0;
  269|   205k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (269:28): [True: 184k, False: 20.5k]
  ------------------
  270|   184k|            t[i] = word_add(a.m_val[i], b.m_val[i], &carry);
  271|   184k|         }
  272|       |
  273|  20.5k|         std::array<W, N> r;  // NOLINT(*-member-init)
  274|  20.5k|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), P.data());
  275|  20.5k|         return Self(r);
  276|  20.5k|      }
pcurves_secp521r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E1yEv:
 1167|  57.8k|      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|  20.9k|      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.0k|         Self& x, Self& y, Self& z, CT::Choice cond, const Self& nx, const Self& ny, const Self& nz) {
  396|  33.0k|         const W mask = cond.into_bitmask<W>();
  397|       |
  398|   330k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (398:28): [True: 297k, False: 33.0k]
  ------------------
  399|   297k|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  400|   297k|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  401|   297k|            z.m_val[i] = Botan::choose(mask, nz.m_val[i], z.m_val[i]);
  402|   297k|         }
  403|  33.0k|      }
pcurves_secp521r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEEmLERKSA_:
  355|  2.08k|      constexpr BOTAN_FORCE_INLINE Self& operator*=(const Self& other) {
  356|  2.08k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  357|  2.08k|         comba_mul<N>(z.data(), data(), other.data());
  358|  2.08k|         m_val = Rep::redc(z);
  359|  2.08k|         return (*this);
  360|  2.08k|      }
pcurves_secp521r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE8square_nEm:
  439|  1.91k|      constexpr void square_n(size_t n) {
  440|  1.91k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  441|  92.0k|         for(size_t i = 0; i != n; ++i) {
  ------------------
  |  Branch (441:28): [True: 90.1k, False: 1.91k]
  ------------------
  442|  90.1k|            comba_sqr<N>(z.data(), this->data());
  443|  90.1k|            m_val = Rep::redc(z);
  444|  90.1k|         }
  445|  1.91k|      }
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.2k|      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.1k|      constexpr Self negate() const {
  453|  15.1k|         const W x_is_zero = ~CT::all_zeros(this->data(), N).value();
  454|       |
  455|  15.1k|         std::array<W, N> r;  // NOLINT(*-member-init)
  456|  15.1k|         W carry = 0;
  457|   151k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (457:28): [True: 136k, False: 15.1k]
  ------------------
  458|   136k|            r[i] = word_sub(P[i] & x_is_zero, m_val[i], &carry);
  459|   136k|         }
  460|       |
  461|  15.1k|         return Self(r);
  462|  15.1k|      }
pcurves_secp521r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEEC2ERKSB_SE_:
  917|  18.7k|      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|    872|      std::array<W, L> stash_value() const {
  760|    872|         static_assert(L >= N);
  761|    872|         std::array<W, L> stash = {};
  762|  8.72k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 7.84k, False: 872]
  ------------------
  763|  7.84k|            stash[i] = m_val[i];
  764|  7.84k|         }
  765|    872|         return stash;
  766|    872|      }
pcurves_secp521r1.cpp:_ZNK5Botan23PrecomputedBaseMulTableINS_6PCurve12_GLOBAL__N_19secp521r15CurveELm6EE3mulERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS3_7P521RepEE12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1407|    174|      ProjectivePoint mul(const Scalar& s, RandomNumberGenerator& rng) const {
 1408|    174|         const BlindedScalar scalar(s, rng);
 1409|    174|         return basemul_booth_exec<C, WindowBits>(m_table, scalar, rng);
 1410|    174|      }
pcurves_secp521r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp521r15CurveELm7EEC2ERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS3_7P521RepEE12ScalarParamsEEEEERNS_21RandomNumberGeneratorE:
 1307|    174|      BlindedScalarBits(const typename C::Scalar& scalar, RandomNumberGenerator& rng) {
 1308|    174|         if(BlindingBits > 0 && rng.is_seeded()) {
  ------------------
  |  Branch (1308:13): [True: 174, Folded]
  |  Branch (1308:33): [True: 0, False: 174]
  ------------------
 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|    174|         } else {
 1344|       |            // No RNG available, skip blinding
 1345|    174|            m_bytes.resize(C::Scalar::BYTES);
 1346|    174|            scalar.serialize_to(std::span{m_bytes}.template first<C::Scalar::BYTES>());
 1347|    174|            m_bits = C::Scalar::BITS;
 1348|    174|         }
 1349|       |
 1350|    174|         CT::poison(m_bytes.data(), m_bytes.size());
 1351|    174|      }
pcurves_secp521r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp521r16ParamsENS4_7P521RepEE12ScalarParamsEE8from_repERKNSt3__15arrayImLm9EEE:
  137|    421|      constexpr static std::array<W, N> from_rep(const std::array<W, N>& z) {
  138|    421|         std::array<W, 2 * N> ze = {};
  139|    421|         copy_mem(std::span{ze}.template first<N>(), z);
  140|    421|         return Self::redc(ze);
  141|    421|      }
pcurves_secp521r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp521r16ParamsENS4_7P521RepEE12ScalarParamsEE4redcERKNSt3__15arrayImLm18EEE:
  104|    669|      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|    669|         } else {
  108|    669|            return monty_redc(z, P, P_dash);
  109|    669|         }
  110|    669|      }
pcurves_secp521r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp521r16ParamsENS5_7P521RepEE12ScalarParamsEEEE12serialize_toENSt3__14spanIhLm66EEE:
  739|    421|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    421|         auto v = Rep::from_rep(m_val);
  741|    421|         std::reverse(v.begin(), v.end());
  742|       |
  743|       |         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|       |            store_be(bytes, v);
  745|    421|         } else {
  746|       |            // Remove leading zero bytes
  747|    421|            const auto padded_bytes = store_be(v);
  748|    421|            constexpr size_t extra = N * WordInfo<W>::bytes - Self::BYTES;
  749|    421|            copy_mem(bytes, std::span{padded_bytes}.template subspan<extra, Self::BYTES>());
  750|    421|         }
  751|    421|      }
pcurves_secp521r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp521r15CurveELm7EE4bitsEv:
 1305|    174|      size_t bits() const { return m_bits; }
pcurves_secp521r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E18conditional_assignENS_2CT6ChoiceERKSC_:
 1084|    174|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
 1085|    174|         FieldElement::conditional_assign(m_x, m_y, m_z, cond, pt.x(), pt.y(), pt.z());
 1086|    174|      }
pcurves_secp521r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E6negateEv:
 1134|    174|      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|    174|      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|    522|      constexpr void _const_time_poison() const { CT::poison(m_val); }
pcurves_secp521r1.cpp:_ZNK5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp521r15CurveELm7EE10get_windowEm:
 1353|  15.1k|      size_t get_window(size_t offset) const {
 1354|       |         // Extract a WindowBits sized window out of s, depending on offset.
 1355|  15.1k|         return read_window_bits<WindowBits>(std::span{m_bytes}, offset);
 1356|  15.1k|      }
pcurves_secp521r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E10add_or_subERKSC_RKNS_16AffineCurvePointISB_EENS_2CT6ChoiceE:
 1096|  14.9k|      constexpr static Self add_or_sub(const Self& a, const AffinePoint& b, CT::Choice sub) {
 1097|  14.9k|         return point_add_or_sub_mixed<Self, AffinePoint, FieldElement>(a, b, sub, FieldElement::one());
 1098|  14.9k|      }
pcurves_secp521r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE18conditional_assignENS_2CT6ChoiceERKSA_:
  367|  14.9k|      constexpr void conditional_assign(CT::Choice cond, const Self& nx) {
  368|  14.9k|         const W mask = cond.into_bitmask<W>();
  369|       |
  370|   149k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (370:28): [True: 134k, False: 14.9k]
  ------------------
  371|   134k|            m_val[i] = Botan::choose(mask, nx.m_val[i], m_val[i]);
  372|   134k|         }
  373|  14.9k|      }
pcurves_secp521r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE9ct_selectENSt3__14spanIKSC_Lm18446744073709551615EEEm:
  955|  15.1k|      static constexpr auto ct_select(std::span<const Self> pts, size_t idx) {
  956|  15.1k|         auto result = Self::identity(pts[0]);
  957|       |
  958|       |         // Intentionally wrapping; set to maximum size_t if idx == 0
  959|  15.1k|         const size_t idx1 = static_cast<size_t>(idx - 1);
  960|   499k|         for(size_t i = 0; i != pts.size(); ++i) {
  ------------------
  |  Branch (960:28): [True: 484k, False: 15.1k]
  ------------------
  961|   484k|            const auto found = CT::Mask<size_t>::is_equal(idx1, i).as_choice();
  962|   484k|            result.conditional_assign(found, pts[i]);
  963|   484k|         }
  964|       |
  965|  15.1k|         return result;
  966|  15.1k|      }
pcurves_secp521r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE8identityERKSC_:
  924|  15.1k|      static constexpr Self identity(const Self& /*unused*/) {
  925|  15.1k|         return Self(FieldElement::zero(), FieldElement::zero());
  926|  15.1k|      }
pcurves_secp521r1.cpp:_ZN5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE18conditional_assignENS_2CT6ChoiceERKSC_:
  981|   484k|      constexpr void conditional_assign(CT::Choice cond, const Self& pt) {
  982|   484k|         FieldElement::conditional_assign(m_x, m_y, cond, pt.x(), pt.y());
  983|   484k|      }
pcurves_secp521r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE18conditional_assignERSA_SB_NS_2CT6ChoiceERKSA_SF_:
  380|   484k|      static constexpr void conditional_assign(Self& x, Self& y, CT::Choice cond, const Self& nx, const Self& ny) {
  381|   484k|         const W mask = cond.into_bitmask<W>();
  382|       |
  383|  4.84M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (383:28): [True: 4.35M, False: 484k]
  ------------------
  384|  4.35M|            x.m_val[i] = Botan::choose(mask, nx.m_val[i], x.m_val[i]);
  385|  4.35M|            y.m_val[i] = Botan::choose(mask, ny.m_val[i], y.m_val[i]);
  386|  4.35M|         }
  387|   484k|      }
pcurves_secp521r1.cpp:_ZN5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E13randomize_repERNS_21RandomNumberGeneratorE:
 1142|    696|      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|    696|         if(rng.is_seeded()) {
  ------------------
  |  Branch (1147:13): [True: 0, False: 696]
  ------------------
 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|    696|      }
pcurves_secp521r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE11deserializeENSt3__14spanIKhLm18446744073709551615EEE:
  792|    138|      static std::optional<Self> deserialize(std::span<const uint8_t> bytes) {
  793|       |         // Conditional ok: input length is public
  794|    138|         if(bytes.size() != Self::BYTES) {
  ------------------
  |  Branch (794:13): [True: 0, False: 138]
  ------------------
  795|      0|            return {};
  796|      0|         }
  797|       |
  798|    138|         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|    138|         if(!bigint_ct_is_lt(words.data(), N, P.data(), N).as_bool()) {
  ------------------
  |  Branch (801:13): [True: 8, False: 130]
  ------------------
  802|      8|            return {};
  803|      8|         }
  804|       |
  805|       |         // Safe because we checked above that words is an integer < P
  806|    130|         return Self::from_words(words);
  807|    138|      }
pcurves_secp521r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE10from_wordsILm9EEESA_NSt3__15arrayImXT_EEE:
  211|    130|      static constexpr Self from_words(std::array<W, L> w) {
  212|    130|         if constexpr(L == N) {
  213|    130|            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|    130|      }
pcurves_secp521r1.cpp:_ZNK5Botan20ProjectiveCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEES7_E20_const_time_unpoisonEv:
 1176|    174|      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|    522|      constexpr void _const_time_unpoison() const { CT::unpoison(m_val); }
pcurves_secp521r1.cpp:_ZN5Botan17BlindedScalarBitsINS_6PCurve12_GLOBAL__N_19secp521r15CurveELm7EED2Ev:
 1358|    174|      ~BlindedScalarBits() {
 1359|    174|         secure_zeroize_buffer(m_bytes.data(), m_bytes.size());
 1360|    174|         CT::unpoison(m_bytes.data(), m_bytes.size());
 1361|    174|      }
pcurves_secp521r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp521r16ParamsENS5_7P521RepEE12ScalarParamsEEEE10from_stashILm9EEESB_RKNSt3__15arrayImXT_EEE:
  774|    668|      static Self from_stash(const std::array<W, L>& stash) {
  775|    668|         static_assert(L >= N);
  776|    668|         std::array<W, N> val = {};
  777|  6.68k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 6.01k, False: 668]
  ------------------
  778|  6.01k|            val[i] = stash[i];
  779|  6.01k|         }
  780|    668|         return Self(val);
  781|    668|      }
pcurves_secp521r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp521r16ParamsENS5_7P521RepEE12ScalarParamsEEEEC2ENSt3__15arrayImLm9EEE:
  898|    916|      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|    350|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  740|    350|         auto v = Rep::from_rep(m_val);
  741|    350|         std::reverse(v.begin(), v.end());
  742|       |
  743|       |         if constexpr(Self::BYTES == N * WordInfo<W>::bytes) {
  744|       |            store_be(bytes, v);
  745|    350|         } else {
  746|       |            // Remove leading zero bytes
  747|    350|            const auto padded_bytes = store_be(v);
  748|    350|            constexpr size_t extra = N * WordInfo<W>::bytes - Self::BYTES;
  749|    350|            copy_mem(bytes, std::span{padded_bytes}.template subspan<extra, Self::BYTES>());
  750|    350|         }
  751|    350|      }
pcurves_secp521r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp521r16ParamsENS5_7P521RepEE12ScalarParamsEEEE11stash_valueILm9EEENSt3__15arrayImXT_EEEv:
  759|    247|      std::array<W, L> stash_value() const {
  760|    247|         static_assert(L >= N);
  761|    247|         std::array<W, L> stash = {};
  762|  2.47k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (762:28): [True: 2.22k, False: 247]
  ------------------
  763|  2.22k|            stash[i] = m_val[i];
  764|  2.22k|         }
  765|    247|         return stash;
  766|    247|      }
pcurves_secp521r1.cpp:_ZN5Botan6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS3_6ParamsES4_E11FieldParamsEEEE10from_stashILm9EEESA_RKNSt3__15arrayImXT_EEE:
  774|  1.22k|      static Self from_stash(const std::array<W, L>& stash) {
  775|  1.22k|         static_assert(L >= N);
  776|  1.22k|         std::array<W, N> val = {};
  777|  12.2k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (777:28): [True: 10.9k, False: 1.22k]
  ------------------
  778|  10.9k|            val[i] = stash[i];
  779|  10.9k|         }
  780|  1.22k|         return Self(val);
  781|  1.22k|      }
pcurves_secp521r1.cpp:_ZNK5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp521r16ParamsENS5_7P521RepEE12ScalarParamsEEEE7is_zeroEv:
  225|    495|      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|    237|      constexpr CT::Choice operator==(const Self& other) const {
  723|    237|         return CT::is_equal(this->data(), other.data(), N).as_choice();
  724|    237|      }
pcurves_secp521r1.cpp:_ZN5Botan13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp521r16ParamsENS3_7P521RepEE7x3_ax_bERKNS_6IntModINS5_INS6_11FieldParamsEEEEE:
 1275|    237|      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|    250|      static std::optional<Self> deserialize(std::span<const uint8_t> bytes) {
  793|       |         // Conditional ok: input length is public
  794|    250|         if(bytes.size() != Self::BYTES) {
  ------------------
  |  Branch (794:13): [True: 0, False: 250]
  ------------------
  795|      0|            return {};
  796|      0|         }
  797|       |
  798|    250|         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|    250|         if(!bigint_ct_is_lt(words.data(), N, P.data(), N).as_bool()) {
  ------------------
  |  Branch (801:13): [True: 2, False: 248]
  ------------------
  802|      2|            return {};
  803|      2|         }
  804|       |
  805|       |         // Safe because we checked above that words is an integer < P
  806|    248|         return Self::from_words(words);
  807|    250|      }
pcurves_secp521r1.cpp:_ZN5Botan6IntModINS_13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp521r16ParamsENS5_7P521RepEE12ScalarParamsEEEE10from_wordsILm9EEESB_NSt3__15arrayImXT_EEE:
  211|    248|      static constexpr Self from_words(std::array<W, L> w) {
  212|    248|         if constexpr(L == N) {
  213|    248|            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|    248|      }
pcurves_secp521r1.cpp:_ZN5Botan13MontgomeryRepINS_13EllipticCurveINS_6PCurve12_GLOBAL__N_19secp521r16ParamsENS4_7P521RepEE12ScalarParamsEE6to_repERKNSt3__15arrayImLm9EEE:
  115|    248|      constexpr static std::array<W, N> to_rep(const std::array<W, N>& x) {
  116|    248|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  117|    248|         comba_mul<N>(z.data(), x.data(), R2.data());
  118|    248|         return Self::redc(z);
  119|    248|      }
pcurves_secp521r1.cpp:_ZNK5Botan16AffineCurvePointINS_6IntModINS_6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS4_6ParamsES5_E11FieldParamsEEEEEE12serialize_toENSt3__14spanIhLm133EEE:
  941|    175|      constexpr void serialize_to(std::span<uint8_t, Self::BYTES> bytes) const {
  942|    175|         BOTAN_STATE_CHECK(this->is_identity().as_bool() == false);
  ------------------
  |  |   51|    175|   do {                                                         \
  |  |   52|    175|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    175|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 175]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    175|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 175]
  |  |  ------------------
  ------------------
  943|    175|         BufferStuffer pack(bytes);
  944|    175|         pack.append(0x04);
  945|    175|         x().serialize_to(pack.next<FieldElement::BYTES>());
  946|    175|         y().serialize_to(pack.next<FieldElement::BYTES>());
  947|    175|         BOTAN_DEBUG_ASSERT(pack.full());
  ------------------
  |  |  130|    175|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    175|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 175]
  |  |  ------------------
  ------------------
  948|    175|      }

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|     96|                                               RandomNumberGenerator& rng) {
  309|     96|   static constexpr size_t WindowElements = 1 << (WindowBits - 1);
  310|       |
  311|     96|   const size_t windows = (scalar.bits() + WindowBits) / WindowBits;
  312|       |
  313|     96|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|     96|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|     96|      const size_t raw = w_bits << 1;
  317|     96|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|     96|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|     96|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|     96|      pt.conditional_assign(tneg, pt.negate());
  322|     96|      CT::poison(pt);
  323|     96|      pt.randomize_rep(rng);
  324|     96|      return pt;
  325|     96|   }();
  326|       |
  327|  4.12k|   for(size_t i = 1; i != windows; ++i) {
  ------------------
  |  Branch (327:22): [True: 4.03k, False: 96]
  ------------------
  328|       |      // Extract W+1 bits overlapping by 1 with the previous window
  329|  4.03k|      const size_t bit_pos = WindowBits * i - 1;
  330|  4.03k|      const size_t raw = scalar.get_window(bit_pos);
  331|  4.03k|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  332|       |
  333|  4.03k|      const auto tbl_i = table.subspan(WindowElements * i, WindowElements);
  334|       |
  335|  4.03k|      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|  4.03k|      if(i <= 3) {
  ------------------
  |  Branch (338:10): [True: 288, False: 3.74k]
  ------------------
  339|    288|         accum.randomize_rep(rng);
  340|    288|      }
  341|  4.03k|   }
  342|       |
  343|     96|   CT::unpoison(accum);
  344|     96|   return accum;
  345|     96|}
pcurves_brainpool256r1.cpp:_ZZN5Botan18basemul_booth_execINS_6PCurve12_GLOBAL__N_114brainpool256r15CurveELm6ENS_17BlindedScalarBitsIS4_Lm7EEEEENT_15ProjectivePointENSt3__14spanIKNS7_11AffinePointELm18446744073709551615EEERKT1_RNS_21RandomNumberGeneratorEENKUlvE_clEv:
  313|     96|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|     96|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|     96|      const size_t raw = w_bits << 1;
  317|     96|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|     96|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|     96|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|     96|      pt.conditional_assign(tneg, pt.negate());
  322|     96|      CT::poison(pt);
  323|     96|      pt.randomize_rep(rng);
  324|     96|      return pt;
  325|     96|   }();
_ZN5Botan12booth_recodeILm6ETkNSt3__117unsigned_integralEmEENS1_4pairImNS_2CT6ChoiceEEET0_:
  294|  79.6k|constexpr std::pair<size_t, CT::Choice> booth_recode(T x) {
  295|  79.6k|   static_assert(WindowBits >= 1 && WindowBits <= 8);
  296|       |
  297|  79.6k|   auto s_mask = CT::Mask<T>::expand(x >> WindowBits);
  298|  79.6k|   const T neg_x = (1 << (WindowBits + 1)) - x - 1;
  299|  79.6k|   T d = s_mask.select(neg_x, x);
  300|  79.6k|   d = (d >> 1) + (d & 1);
  301|       |
  302|  79.6k|   return std::make_pair(static_cast<size_t>(d), s_mask.as_choice());
  303|  79.6k|}
_ZN5Botan20scalar_blinding_bitsEm:
   41|    761|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|    761|   if(scalar_bits == 521) {
  ------------------
  |  Branch (45:7): [True: 53, False: 708]
  ------------------
   46|     53|      return 55;
   47|    708|   } else {
   48|    708|      return scalar_bits / 8;
   49|    708|   }
   50|    761|}
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|    138|                                               RandomNumberGenerator& rng) {
  309|    138|   static constexpr size_t WindowElements = 1 << (WindowBits - 1);
  310|       |
  311|    138|   const size_t windows = (scalar.bits() + WindowBits) / WindowBits;
  312|       |
  313|    138|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    138|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    138|      const size_t raw = w_bits << 1;
  317|    138|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    138|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    138|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    138|      pt.conditional_assign(tneg, pt.negate());
  322|    138|      CT::poison(pt);
  323|    138|      pt.randomize_rep(rng);
  324|    138|      return pt;
  325|    138|   }();
  326|       |
  327|  8.97k|   for(size_t i = 1; i != windows; ++i) {
  ------------------
  |  Branch (327:22): [True: 8.83k, False: 138]
  ------------------
  328|       |      // Extract W+1 bits overlapping by 1 with the previous window
  329|  8.83k|      const size_t bit_pos = WindowBits * i - 1;
  330|  8.83k|      const size_t raw = scalar.get_window(bit_pos);
  331|  8.83k|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  332|       |
  333|  8.83k|      const auto tbl_i = table.subspan(WindowElements * i, WindowElements);
  334|       |
  335|  8.83k|      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|  8.83k|      if(i <= 3) {
  ------------------
  |  Branch (338:10): [True: 414, False: 8.41k]
  ------------------
  339|    414|         accum.randomize_rep(rng);
  340|    414|      }
  341|  8.83k|   }
  342|       |
  343|    138|   CT::unpoison(accum);
  344|    138|   return accum;
  345|    138|}
pcurves_brainpool384r1.cpp:_ZZN5Botan18basemul_booth_execINS_6PCurve12_GLOBAL__N_114brainpool384r15CurveELm6ENS_17BlindedScalarBitsIS4_Lm7EEEEENT_15ProjectivePointENSt3__14spanIKNS7_11AffinePointELm18446744073709551615EEERKT1_RNS_21RandomNumberGeneratorEENKUlvE_clEv:
  313|    138|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    138|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    138|      const size_t raw = w_bits << 1;
  317|    138|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    138|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    138|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    138|      pt.conditional_assign(tneg, pt.negate());
  322|    138|      CT::poison(pt);
  323|    138|      pt.randomize_rep(rng);
  324|    138|      return pt;
  325|    138|   }();
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|    126|                                               RandomNumberGenerator& rng) {
  309|    126|   static constexpr size_t WindowElements = 1 << (WindowBits - 1);
  310|       |
  311|    126|   const size_t windows = (scalar.bits() + WindowBits) / WindowBits;
  312|       |
  313|    126|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    126|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    126|      const size_t raw = w_bits << 1;
  317|    126|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    126|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    126|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    126|      pt.conditional_assign(tneg, pt.negate());
  322|    126|      CT::poison(pt);
  323|    126|      pt.randomize_rep(rng);
  324|    126|      return pt;
  325|    126|   }();
  326|       |
  327|  10.8k|   for(size_t i = 1; i != windows; ++i) {
  ------------------
  |  Branch (327:22): [True: 10.7k, False: 126]
  ------------------
  328|       |      // Extract W+1 bits overlapping by 1 with the previous window
  329|  10.7k|      const size_t bit_pos = WindowBits * i - 1;
  330|  10.7k|      const size_t raw = scalar.get_window(bit_pos);
  331|  10.7k|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  332|       |
  333|  10.7k|      const auto tbl_i = table.subspan(WindowElements * i, WindowElements);
  334|       |
  335|  10.7k|      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|  10.7k|      if(i <= 3) {
  ------------------
  |  Branch (338:10): [True: 378, False: 10.3k]
  ------------------
  339|    378|         accum.randomize_rep(rng);
  340|    378|      }
  341|  10.7k|   }
  342|       |
  343|    126|   CT::unpoison(accum);
  344|    126|   return accum;
  345|    126|}
pcurves_brainpool512r1.cpp:_ZZN5Botan18basemul_booth_execINS_6PCurve12_GLOBAL__N_114brainpool512r15CurveELm6ENS_17BlindedScalarBitsIS4_Lm7EEEEENT_15ProjectivePointENSt3__14spanIKNS7_11AffinePointELm18446744073709551615EEERKT1_RNS_21RandomNumberGeneratorEENKUlvE_clEv:
  313|    126|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    126|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    126|      const size_t raw = w_bits << 1;
  317|    126|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    126|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    126|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    126|      pt.conditional_assign(tneg, pt.negate());
  322|    126|      CT::poison(pt);
  323|    126|      pt.randomize_rep(rng);
  324|    126|      return pt;
  325|    126|   }();
pcurves_generic.cpp:_ZN5Botan18basemul_booth_execINS_6PCurve12_GLOBAL__N_112GenericCurveELm6ENS2_24GenericBlindedScalarBitsEEENT_15ProjectivePointENSt3__14spanIKNS5_11AffinePointELm18446744073709551615EEERKT1_RNS_21RandomNumberGeneratorE:
  308|    301|                                               RandomNumberGenerator& rng) {
  309|    301|   static constexpr size_t WindowElements = 1 << (WindowBits - 1);
  310|       |
  311|    301|   const size_t windows = (scalar.bits() + WindowBits) / WindowBits;
  312|       |
  313|    301|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    301|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    301|      const size_t raw = w_bits << 1;
  317|    301|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    301|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    301|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    301|      pt.conditional_assign(tneg, pt.negate());
  322|    301|      CT::poison(pt);
  323|    301|      pt.randomize_rep(rng);
  324|    301|      return pt;
  325|    301|   }();
  326|       |
  327|  11.4k|   for(size_t i = 1; i != windows; ++i) {
  ------------------
  |  Branch (327:22): [True: 11.1k, False: 301]
  ------------------
  328|       |      // Extract W+1 bits overlapping by 1 with the previous window
  329|  11.1k|      const size_t bit_pos = WindowBits * i - 1;
  330|  11.1k|      const size_t raw = scalar.get_window(bit_pos);
  331|  11.1k|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  332|       |
  333|  11.1k|      const auto tbl_i = table.subspan(WindowElements * i, WindowElements);
  334|       |
  335|  11.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|  11.1k|      if(i <= 3) {
  ------------------
  |  Branch (338:10): [True: 903, False: 10.2k]
  ------------------
  339|    903|         accum.randomize_rep(rng);
  340|    903|      }
  341|  11.1k|   }
  342|       |
  343|    301|   CT::unpoison(accum);
  344|    301|   return accum;
  345|    301|}
pcurves_generic.cpp:_ZZN5Botan18basemul_booth_execINS_6PCurve12_GLOBAL__N_112GenericCurveELm6ENS2_24GenericBlindedScalarBitsEEENT_15ProjectivePointENSt3__14spanIKNS5_11AffinePointELm18446744073709551615EEERKT1_RNS_21RandomNumberGeneratorEENKUlvE_clEv:
  313|    301|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    301|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    301|      const size_t raw = w_bits << 1;
  317|    301|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    301|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    301|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    301|      pt.conditional_assign(tneg, pt.negate());
  322|    301|      CT::poison(pt);
  323|    301|      pt.randomize_rep(rng);
  324|    301|      return pt;
  325|    301|   }();
pcurves_generic.cpp:_ZN5Botan19basemul_booth_setupINS_6PCurve12_GLOBAL__N_112GenericCurveELm6EEENSt3__16vectorINT_11AffinePointENS4_9allocatorIS7_EEEERKS7_m:
  254|    460|std::vector<typename C::AffinePoint> basemul_booth_setup(const typename C::AffinePoint& p, size_t max_scalar_bits) {
  255|    460|   static_assert(WindowBits >= 1 && WindowBits <= 8);
  256|       |
  257|       |   // 2^(W-1) elements per window [1*base .. 2^(W-1)*base]
  258|    460|   constexpr size_t WindowElements = 1 << (WindowBits - 1);
  259|       |
  260|    460|   const size_t Windows = (max_scalar_bits + WindowBits - 1) / WindowBits;
  261|       |
  262|    460|   const size_t TableSize = Windows * WindowElements;
  263|       |
  264|    460|   std::vector<typename C::ProjectivePoint> table;
  265|    460|   table.reserve(TableSize);
  266|       |
  267|    460|   auto accum = C::ProjectivePoint::from_affine(p);
  268|       |
  269|  23.1k|   for(size_t i = 0; i != TableSize; i += WindowElements) {
  ------------------
  |  Branch (269:22): [True: 22.6k, False: 460]
  ------------------
  270|  22.6k|      table.push_back(accum);
  271|       |
  272|   726k|      for(size_t j = 1; j != WindowElements; ++j) {
  ------------------
  |  Branch (272:25): [True: 703k, False: 22.6k]
  ------------------
  273|       |         // Conditional ok: loop iteration count is public
  274|   703k|         if(j % 2 == 1) {
  ------------------
  |  Branch (274:13): [True: 363k, False: 340k]
  ------------------
  275|   363k|            table.emplace_back(table[i + j / 2].dbl());
  276|   363k|         } else {
  277|   340k|            table.emplace_back(table[i + j - 1] + table[i]);
  278|   340k|         }
  279|   703k|      }
  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|  22.6k|      accum = table[i + WindowElements - 1].dbl();
  284|  22.6k|   }
  285|       |
  286|       |   // Variable time batch conversion is fine since generator is public
  287|    460|   return to_affine_batch<C, true>(table);
  288|    460|}
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|    207|                                               RandomNumberGenerator& rng) {
  309|    207|   static constexpr size_t WindowElements = 1 << (WindowBits - 1);
  310|       |
  311|    207|   const size_t windows = (scalar.bits() + WindowBits) / WindowBits;
  312|       |
  313|    207|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    207|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    207|      const size_t raw = w_bits << 1;
  317|    207|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    207|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    207|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    207|      pt.conditional_assign(tneg, pt.negate());
  322|    207|      CT::poison(pt);
  323|    207|      pt.randomize_rep(rng);
  324|    207|      return pt;
  325|    207|   }();
  326|       |
  327|  7.86k|   for(size_t i = 1; i != windows; ++i) {
  ------------------
  |  Branch (327:22): [True: 7.65k, False: 207]
  ------------------
  328|       |      // Extract W+1 bits overlapping by 1 with the previous window
  329|  7.65k|      const size_t bit_pos = WindowBits * i - 1;
  330|  7.65k|      const size_t raw = scalar.get_window(bit_pos);
  331|  7.65k|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  332|       |
  333|  7.65k|      const auto tbl_i = table.subspan(WindowElements * i, WindowElements);
  334|       |
  335|  7.65k|      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.65k|      if(i <= 3) {
  ------------------
  |  Branch (338:10): [True: 621, False: 7.03k]
  ------------------
  339|    621|         accum.randomize_rep(rng);
  340|    621|      }
  341|  7.65k|   }
  342|       |
  343|    207|   CT::unpoison(accum);
  344|    207|   return accum;
  345|    207|}
pcurves_secp224r1.cpp:_ZZN5Botan18basemul_booth_execINS_6PCurve12_GLOBAL__N_19secp224r15CurveELm6ENS_17BlindedScalarBitsIS4_Lm7EEEEENT_15ProjectivePointENSt3__14spanIKNS7_11AffinePointELm18446744073709551615EEERKT1_RNS_21RandomNumberGeneratorEENKUlvE_clEv:
  313|    207|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    207|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    207|      const size_t raw = w_bits << 1;
  317|    207|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    207|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    207|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    207|      pt.conditional_assign(tneg, pt.negate());
  322|    207|      CT::poison(pt);
  323|    207|      pt.randomize_rep(rng);
  324|    207|      return pt;
  325|    207|   }();
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|    177|                                               RandomNumberGenerator& rng) {
  309|    177|   static constexpr size_t WindowElements = 1 << (WindowBits - 1);
  310|       |
  311|    177|   const size_t windows = (scalar.bits() + WindowBits) / WindowBits;
  312|       |
  313|    177|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    177|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    177|      const size_t raw = w_bits << 1;
  317|    177|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    177|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    177|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    177|      pt.conditional_assign(tneg, pt.negate());
  322|    177|      CT::poison(pt);
  323|    177|      pt.randomize_rep(rng);
  324|    177|      return pt;
  325|    177|   }();
  326|       |
  327|  7.61k|   for(size_t i = 1; i != windows; ++i) {
  ------------------
  |  Branch (327:22): [True: 7.43k, False: 177]
  ------------------
  328|       |      // Extract W+1 bits overlapping by 1 with the previous window
  329|  7.43k|      const size_t bit_pos = WindowBits * i - 1;
  330|  7.43k|      const size_t raw = scalar.get_window(bit_pos);
  331|  7.43k|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  332|       |
  333|  7.43k|      const auto tbl_i = table.subspan(WindowElements * i, WindowElements);
  334|       |
  335|  7.43k|      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.43k|      if(i <= 3) {
  ------------------
  |  Branch (338:10): [True: 531, False: 6.90k]
  ------------------
  339|    531|         accum.randomize_rep(rng);
  340|    531|      }
  341|  7.43k|   }
  342|       |
  343|    177|   CT::unpoison(accum);
  344|    177|   return accum;
  345|    177|}
pcurves_secp256k1.cpp:_ZZN5Botan18basemul_booth_execINS_6PCurve12_GLOBAL__N_19secp256k15CurveELm6ENS_17BlindedScalarBitsIS4_Lm7EEEEENT_15ProjectivePointENSt3__14spanIKNS7_11AffinePointELm18446744073709551615EEERKT1_RNS_21RandomNumberGeneratorEENKUlvE_clEv:
  313|    177|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    177|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    177|      const size_t raw = w_bits << 1;
  317|    177|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    177|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    177|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    177|      pt.conditional_assign(tneg, pt.negate());
  322|    177|      CT::poison(pt);
  323|    177|      pt.randomize_rep(rng);
  324|    177|      return pt;
  325|    177|   }();
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|     65|                                               RandomNumberGenerator& rng) {
  309|     65|   static constexpr size_t WindowElements = 1 << (WindowBits - 1);
  310|       |
  311|     65|   const size_t windows = (scalar.bits() + WindowBits) / WindowBits;
  312|       |
  313|     65|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|     65|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|     65|      const size_t raw = w_bits << 1;
  317|     65|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|     65|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|     65|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|     65|      pt.conditional_assign(tneg, pt.negate());
  322|     65|      CT::poison(pt);
  323|     65|      pt.randomize_rep(rng);
  324|     65|      return pt;
  325|     65|   }();
  326|       |
  327|  2.79k|   for(size_t i = 1; i != windows; ++i) {
  ------------------
  |  Branch (327:22): [True: 2.73k, False: 65]
  ------------------
  328|       |      // Extract W+1 bits overlapping by 1 with the previous window
  329|  2.73k|      const size_t bit_pos = WindowBits * i - 1;
  330|  2.73k|      const size_t raw = scalar.get_window(bit_pos);
  331|  2.73k|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  332|       |
  333|  2.73k|      const auto tbl_i = table.subspan(WindowElements * i, WindowElements);
  334|       |
  335|  2.73k|      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|  2.73k|      if(i <= 3) {
  ------------------
  |  Branch (338:10): [True: 195, False: 2.53k]
  ------------------
  339|    195|         accum.randomize_rep(rng);
  340|    195|      }
  341|  2.73k|   }
  342|       |
  343|     65|   CT::unpoison(accum);
  344|     65|   return accum;
  345|     65|}
pcurves_secp256r1.cpp:_ZZN5Botan18basemul_booth_execINS_6PCurve12_GLOBAL__N_19secp256r15CurveELm6ENS_17BlindedScalarBitsIS4_Lm7EEEEENT_15ProjectivePointENSt3__14spanIKNS7_11AffinePointELm18446744073709551615EEERKT1_RNS_21RandomNumberGeneratorEENKUlvE_clEv:
  313|     65|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|     65|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|     65|      const size_t raw = w_bits << 1;
  317|     65|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|     65|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|     65|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|     65|      pt.conditional_assign(tneg, pt.negate());
  322|     65|      CT::poison(pt);
  323|     65|      pt.randomize_rep(rng);
  324|     65|      return pt;
  325|     65|   }();
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|    167|                                               RandomNumberGenerator& rng) {
  309|    167|   static constexpr size_t WindowElements = 1 << (WindowBits - 1);
  310|       |
  311|    167|   const size_t windows = (scalar.bits() + WindowBits) / WindowBits;
  312|       |
  313|    167|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    167|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    167|      const size_t raw = w_bits << 1;
  317|    167|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    167|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    167|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    167|      pt.conditional_assign(tneg, pt.negate());
  322|    167|      CT::poison(pt);
  323|    167|      pt.randomize_rep(rng);
  324|    167|      return pt;
  325|    167|   }();
  326|       |
  327|  10.8k|   for(size_t i = 1; i != windows; ++i) {
  ------------------
  |  Branch (327:22): [True: 10.6k, False: 167]
  ------------------
  328|       |      // Extract W+1 bits overlapping by 1 with the previous window
  329|  10.6k|      const size_t bit_pos = WindowBits * i - 1;
  330|  10.6k|      const size_t raw = scalar.get_window(bit_pos);
  331|  10.6k|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  332|       |
  333|  10.6k|      const auto tbl_i = table.subspan(WindowElements * i, WindowElements);
  334|       |
  335|  10.6k|      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|  10.6k|      if(i <= 3) {
  ------------------
  |  Branch (338:10): [True: 501, False: 10.1k]
  ------------------
  339|    501|         accum.randomize_rep(rng);
  340|    501|      }
  341|  10.6k|   }
  342|       |
  343|    167|   CT::unpoison(accum);
  344|    167|   return accum;
  345|    167|}
pcurves_secp384r1.cpp:_ZZN5Botan18basemul_booth_execINS_6PCurve12_GLOBAL__N_19secp384r15CurveELm6ENS_17BlindedScalarBitsIS4_Lm7EEEEENT_15ProjectivePointENSt3__14spanIKNS7_11AffinePointELm18446744073709551615EEERKT1_RNS_21RandomNumberGeneratorEENKUlvE_clEv:
  313|    167|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    167|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    167|      const size_t raw = w_bits << 1;
  317|    167|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    167|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    167|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    167|      pt.conditional_assign(tneg, pt.negate());
  322|    167|      CT::poison(pt);
  323|    167|      pt.randomize_rep(rng);
  324|    167|      return pt;
  325|    167|   }();
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|    174|                                               RandomNumberGenerator& rng) {
  309|    174|   static constexpr size_t WindowElements = 1 << (WindowBits - 1);
  310|       |
  311|    174|   const size_t windows = (scalar.bits() + WindowBits) / WindowBits;
  312|       |
  313|    174|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    174|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    174|      const size_t raw = w_bits << 1;
  317|    174|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    174|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    174|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    174|      pt.conditional_assign(tneg, pt.negate());
  322|    174|      CT::poison(pt);
  323|    174|      pt.randomize_rep(rng);
  324|    174|      return pt;
  325|    174|   }();
  326|       |
  327|  15.1k|   for(size_t i = 1; i != windows; ++i) {
  ------------------
  |  Branch (327:22): [True: 14.9k, False: 174]
  ------------------
  328|       |      // Extract W+1 bits overlapping by 1 with the previous window
  329|  14.9k|      const size_t bit_pos = WindowBits * i - 1;
  330|  14.9k|      const size_t raw = scalar.get_window(bit_pos);
  331|  14.9k|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  332|       |
  333|  14.9k|      const auto tbl_i = table.subspan(WindowElements * i, WindowElements);
  334|       |
  335|  14.9k|      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.9k|      if(i <= 3) {
  ------------------
  |  Branch (338:10): [True: 522, False: 14.4k]
  ------------------
  339|    522|         accum.randomize_rep(rng);
  340|    522|      }
  341|  14.9k|   }
  342|       |
  343|    174|   CT::unpoison(accum);
  344|    174|   return accum;
  345|    174|}
pcurves_secp521r1.cpp:_ZZN5Botan18basemul_booth_execINS_6PCurve12_GLOBAL__N_19secp521r15CurveELm6ENS_17BlindedScalarBitsIS4_Lm7EEEEENT_15ProjectivePointENSt3__14spanIKNS7_11AffinePointELm18446744073709551615EEERKT1_RNS_21RandomNumberGeneratorEENKUlvE_clEv:
  313|    174|   auto accum = [&]() {
  314|       |      // First window: extract W bits, shift left 1 to insert implicit carry in of zero
  315|    174|      const size_t w_bits = scalar.get_window(0) & ((1 << WindowBits) - 1);
  316|    174|      const size_t raw = w_bits << 1;
  317|    174|      const auto [tidx, tneg] = booth_recode<WindowBits>(raw);
  318|    174|      const auto tbl_0 = table.first(WindowElements);
  319|       |
  320|    174|      auto pt = C::ProjectivePoint::from_affine(C::AffinePoint::ct_select(tbl_0, tidx));
  321|    174|      pt.conditional_assign(tneg, pt.negate());
  322|    174|      CT::poison(pt);
  323|    174|      pt.randomize_rep(rng);
  324|    174|      return pt;
  325|    174|   }();

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

_ZN5Botan10monty_redcITkNS_8WordTypeEmLm4EEENSt3__15arrayIT_XT0_EEERKNS2_IS3_XmlLi2ET0_EEERKS4_S3_:
  110|   109k|   -> std::array<W, N> {
  111|   109k|   static_assert(N >= 1);
  112|       |
  113|   109k|   std::array<W, N> ws;  // NOLINT(*-member-init)
  114|   109k|   std::array<W, N> r;   // NOLINT(*-member-init)
  115|       |
  116|       |   // Conditional ok: the parameter size is public
  117|   109k|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (117:7): [True: 109k, Folded]
  ------------------
  118|       |      // This range ensures we cover fields of 256, 384 and 512 bits for both 32 and 64 bit words
  119|   109k|      if constexpr(N == 4) {
  120|   109k|         bigint_monty_redc_4(r.data(), z.data(), p.data(), p_dash, ws.data());
  121|   109k|         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|   109k|   }
  136|       |
  137|      0|   word3<W> accum;
  138|       |
  139|   109k|   accum.add(z[0]);
  140|       |
  141|   109k|   ws[0] = accum.monty_step(p[0], p_dash);
  142|       |
  143|   109k|   for(size_t i = 1; i != N; ++i) {
  ------------------
  |  Branch (143:22): [True: 0, False: 109k]
  ------------------
  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|   109k|   for(size_t i = 0; i != N - 1; ++i) {
  ------------------
  |  Branch (153:22): [True: 0, False: 109k]
  ------------------
  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|   109k|   accum.add(z[2 * N - 1]);
  164|       |
  165|   109k|   ws[N - 1] = accum.extract();
  166|       |   // w1 is the final part, which is not stored in the workspace
  167|   109k|   const W w1 = accum.extract();
  168|       |
  169|   109k|   bigint_monty_maybe_sub<N>(r.data(), w1, ws.data(), p.data());
  170|       |
  171|   109k|   return r;
  172|   109k|}
_ZN5Botan14bytes_to_wordsITkNS_8WordTypeEmLm4ELm32EEEDaNSt3__14spanIKhXT1_EEE:
  287|    382|inline constexpr auto bytes_to_words(std::span<const uint8_t, L> bytes) {
  288|    382|   static_assert(L <= WordInfo<W>::bytes * N);
  289|       |
  290|    382|   std::array<W, N> r = {};
  291|       |
  292|    382|   constexpr size_t full_words = L / WordInfo<W>::bytes;
  293|    382|   constexpr size_t extra_bytes = L % WordInfo<W>::bytes;
  294|       |
  295|    382|   static_assert(full_words + (extra_bytes ? 1 : 0) <= N);
  296|       |
  297|  1.91k|   for(size_t i = 0; i != full_words; ++i) {
  ------------------
  |  Branch (297:22): [True: 1.52k, False: 382]
  ------------------
  298|  1.52k|      r[i] = load_be<W>(bytes.data(), full_words - 1 - i);
  299|  1.52k|   }
  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|    382|   return r;
  312|    382|}
_ZN5Botan14bytes_to_wordsITkNS_8WordTypeEmLm8ELm64EEEDaNSt3__14spanIKhXT1_EEE:
  287|    152|inline constexpr auto bytes_to_words(std::span<const uint8_t, L> bytes) {
  288|    152|   static_assert(L <= WordInfo<W>::bytes * N);
  289|       |
  290|    152|   std::array<W, N> r = {};
  291|       |
  292|    152|   constexpr size_t full_words = L / WordInfo<W>::bytes;
  293|    152|   constexpr size_t extra_bytes = L % WordInfo<W>::bytes;
  294|       |
  295|    152|   static_assert(full_words + (extra_bytes ? 1 : 0) <= N);
  296|       |
  297|  1.36k|   for(size_t i = 0; i != full_words; ++i) {
  ------------------
  |  Branch (297:22): [True: 1.21k, False: 152]
  ------------------
  298|  1.21k|      r[i] = load_be<W>(bytes.data(), full_words - 1 - i);
  299|  1.21k|   }
  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|    152|   return r;
  312|    152|}
_ZN5Botan10monty_redcITkNS_8WordTypeEmLm6EEENSt3__15arrayIT_XT0_EEERKNS2_IS3_XmlLi2ET0_EEERKS4_S3_:
  110|   212k|   -> std::array<W, N> {
  111|   212k|   static_assert(N >= 1);
  112|       |
  113|   212k|   std::array<W, N> ws;  // NOLINT(*-member-init)
  114|   212k|   std::array<W, N> r;   // NOLINT(*-member-init)
  115|       |
  116|       |   // Conditional ok: the parameter size is public
  117|   212k|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (117:7): [True: 212k, 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|   212k|      } else if constexpr(N == 6) {
  123|   212k|         bigint_monty_redc_6(r.data(), z.data(), p.data(), p_dash, ws.data());
  124|   212k|         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|   212k|   }
  136|       |
  137|      0|   word3<W> accum;
  138|       |
  139|   212k|   accum.add(z[0]);
  140|       |
  141|   212k|   ws[0] = accum.monty_step(p[0], p_dash);
  142|       |
  143|   212k|   for(size_t i = 1; i != N; ++i) {
  ------------------
  |  Branch (143:22): [True: 0, False: 212k]
  ------------------
  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|   212k|   for(size_t i = 0; i != N - 1; ++i) {
  ------------------
  |  Branch (153:22): [True: 0, False: 212k]
  ------------------
  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|   212k|   accum.add(z[2 * N - 1]);
  164|       |
  165|   212k|   ws[N - 1] = accum.extract();
  166|       |   // w1 is the final part, which is not stored in the workspace
  167|   212k|   const W w1 = accum.extract();
  168|       |
  169|   212k|   bigint_monty_maybe_sub<N>(r.data(), w1, ws.data(), p.data());
  170|       |
  171|   212k|   return r;
  172|   212k|}
_ZN5Botan14bytes_to_wordsITkNS_8WordTypeEmLm6ELm48EEEDaNSt3__14spanIKhXT1_EEE:
  287|    372|inline constexpr auto bytes_to_words(std::span<const uint8_t, L> bytes) {
  288|    372|   static_assert(L <= WordInfo<W>::bytes * N);
  289|       |
  290|    372|   std::array<W, N> r = {};
  291|       |
  292|    372|   constexpr size_t full_words = L / WordInfo<W>::bytes;
  293|    372|   constexpr size_t extra_bytes = L % WordInfo<W>::bytes;
  294|       |
  295|    372|   static_assert(full_words + (extra_bytes ? 1 : 0) <= N);
  296|       |
  297|  2.60k|   for(size_t i = 0; i != full_words; ++i) {
  ------------------
  |  Branch (297:22): [True: 2.23k, False: 372]
  ------------------
  298|  2.23k|      r[i] = load_be<W>(bytes.data(), full_words - 1 - i);
  299|  2.23k|   }
  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|    372|   return r;
  312|    372|}
_ZN5Botan10monty_redcITkNS_8WordTypeEmLm8EEENSt3__15arrayIT_XT0_EEERKNS2_IS3_XmlLi2ET0_EEERKS4_S3_:
  110|   261k|   -> std::array<W, N> {
  111|   261k|   static_assert(N >= 1);
  112|       |
  113|   261k|   std::array<W, N> ws;  // NOLINT(*-member-init)
  114|   261k|   std::array<W, N> r;   // NOLINT(*-member-init)
  115|       |
  116|       |   // Conditional ok: the parameter size is public
  117|   261k|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (117:7): [True: 261k, 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|   261k|      } else if constexpr(N == 8) {
  126|   261k|         bigint_monty_redc_8(r.data(), z.data(), p.data(), p_dash, ws.data());
  127|   261k|         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|   261k|   }
  136|       |
  137|      0|   word3<W> accum;
  138|       |
  139|   261k|   accum.add(z[0]);
  140|       |
  141|   261k|   ws[0] = accum.monty_step(p[0], p_dash);
  142|       |
  143|   261k|   for(size_t i = 1; i != N; ++i) {
  ------------------
  |  Branch (143:22): [True: 0, False: 261k]
  ------------------
  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|   261k|   for(size_t i = 0; i != N - 1; ++i) {
  ------------------
  |  Branch (153:22): [True: 0, False: 261k]
  ------------------
  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|   261k|   accum.add(z[2 * N - 1]);
  164|       |
  165|   261k|   ws[N - 1] = accum.extract();
  166|       |   // w1 is the final part, which is not stored in the workspace
  167|   261k|   const W w1 = accum.extract();
  168|       |
  169|   261k|   bigint_monty_maybe_sub<N>(r.data(), w1, ws.data(), p.data());
  170|       |
  171|   261k|   return r;
  172|   261k|}
_ZN5Botan14bytes_to_wordsITkNS_8WordTypeEmLm4ELm28EEEDaNSt3__14spanIKhXT1_EEE:
  287|    550|inline constexpr auto bytes_to_words(std::span<const uint8_t, L> bytes) {
  288|    550|   static_assert(L <= WordInfo<W>::bytes * N);
  289|       |
  290|    550|   std::array<W, N> r = {};
  291|       |
  292|    550|   constexpr size_t full_words = L / WordInfo<W>::bytes;
  293|    550|   constexpr size_t extra_bytes = L % WordInfo<W>::bytes;
  294|       |
  295|    550|   static_assert(full_words + (extra_bytes ? 1 : 0) <= N);
  296|       |
  297|  2.20k|   for(size_t i = 0; i != full_words; ++i) {
  ------------------
  |  Branch (297:22): [True: 1.65k, False: 550]
  ------------------
  298|  1.65k|      r[i] = load_be<W>(bytes.data(), full_words - 1 - i);
  299|  1.65k|   }
  300|       |
  301|    550|   if constexpr(extra_bytes > 0) {
  302|    550|      constexpr size_t shift = extra_bytes * 8;
  303|    550|      shift_left<shift>(r);
  304|       |
  305|  2.75k|      for(size_t i = 0; i != extra_bytes; ++i) {
  ------------------
  |  Branch (305:25): [True: 2.20k, False: 550]
  ------------------
  306|  2.20k|         const W b0 = bytes[WordInfo<W>::bytes * full_words + i];
  307|  2.20k|         r[0] |= (b0 << (8 * (extra_bytes - 1 - i)));
  308|  2.20k|      }
  309|    550|   }
  310|       |
  311|    550|   return r;
  312|    550|}
_ZN5Botan10monty_redcITkNS_8WordTypeEmLm9EEENSt3__15arrayIT_XT0_EEERKNS2_IS3_XmlLi2ET0_EEERKS4_S3_:
  110|    669|   -> std::array<W, N> {
  111|    669|   static_assert(N >= 1);
  112|       |
  113|    669|   std::array<W, N> ws;  // NOLINT(*-member-init)
  114|    669|   std::array<W, N> r;   // NOLINT(*-member-init)
  115|       |
  116|       |   // Conditional ok: the parameter size is public
  117|    669|   if(!std::is_constant_evaluated()) {
  ------------------
  |  Branch (117:7): [True: 669, 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|    669|      } else if constexpr(N == 16) {
  132|    669|         bigint_monty_redc_16(r.data(), z.data(), p.data(), p_dash, ws.data());
  133|    669|         return r;
  134|    669|      }
  135|    669|   }
  136|       |
  137|    669|   word3<W> accum;
  138|       |
  139|    669|   accum.add(z[0]);
  140|       |
  141|    669|   ws[0] = accum.monty_step(p[0], p_dash);
  142|       |
  143|  6.02k|   for(size_t i = 1; i != N; ++i) {
  ------------------
  |  Branch (143:22): [True: 5.35k, False: 669]
  ------------------
  144|  29.4k|      for(size_t j = 0; j < i; ++j) {
  ------------------
  |  Branch (144:25): [True: 24.0k, False: 5.35k]
  ------------------
  145|  24.0k|         accum.mul(ws[j], p[i - j]);
  146|  24.0k|      }
  147|       |
  148|  5.35k|      accum.add(z[i]);
  149|       |
  150|  5.35k|      ws[i] = accum.monty_step(p[0], p_dash);
  151|  5.35k|   }
  152|       |
  153|  6.02k|   for(size_t i = 0; i != N - 1; ++i) {
  ------------------
  |  Branch (153:22): [True: 5.35k, False: 669]
  ------------------
  154|  29.4k|      for(size_t j = i + 1; j != N; ++j) {
  ------------------
  |  Branch (154:29): [True: 24.0k, False: 5.35k]
  ------------------
  155|  24.0k|         accum.mul(ws[j], p[N + i - j]);
  156|  24.0k|      }
  157|       |
  158|  5.35k|      accum.add(z[N + i]);
  159|       |
  160|  5.35k|      ws[i] = accum.extract();
  161|  5.35k|   }
  162|       |
  163|    669|   accum.add(z[2 * N - 1]);
  164|       |
  165|    669|   ws[N - 1] = accum.extract();
  166|       |   // w1 is the final part, which is not stored in the workspace
  167|    669|   const W w1 = accum.extract();
  168|       |
  169|    669|   bigint_monty_maybe_sub<N>(r.data(), w1, ws.data(), p.data());
  170|       |
  171|    669|   return r;
  172|    669|}
_ZN5Botan14bytes_to_wordsITkNS_8WordTypeEmLm9ELm66EEEDaNSt3__14spanIKhXT1_EEE:
  287|    388|inline constexpr auto bytes_to_words(std::span<const uint8_t, L> bytes) {
  288|    388|   static_assert(L <= WordInfo<W>::bytes * N);
  289|       |
  290|    388|   std::array<W, N> r = {};
  291|       |
  292|    388|   constexpr size_t full_words = L / WordInfo<W>::bytes;
  293|    388|   constexpr size_t extra_bytes = L % WordInfo<W>::bytes;
  294|       |
  295|    388|   static_assert(full_words + (extra_bytes ? 1 : 0) <= N);
  296|       |
  297|  3.49k|   for(size_t i = 0; i != full_words; ++i) {
  ------------------
  |  Branch (297:22): [True: 3.10k, False: 388]
  ------------------
  298|  3.10k|      r[i] = load_be<W>(bytes.data(), full_words - 1 - i);
  299|  3.10k|   }
  300|       |
  301|    388|   if constexpr(extra_bytes > 0) {
  302|    388|      constexpr size_t shift = extra_bytes * 8;
  303|    388|      shift_left<shift>(r);
  304|       |
  305|  1.16k|      for(size_t i = 0; i != extra_bytes; ++i) {
  ------------------
  |  Branch (305:25): [True: 776, False: 388]
  ------------------
  306|    776|         const W b0 = bytes[WordInfo<W>::bytes * full_words + i];
  307|    776|         r[0] |= (b0 << (8 * (extra_bytes - 1 - i)));
  308|    776|      }
  309|    388|   }
  310|       |
  311|    388|   return r;
  312|    388|}

pcurves_brainpool256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE8instanceEv:
  338|  1.09k|      static std::shared_ptr<const PrimeOrderCurve> instance() {
  339|  1.09k|         static auto g_curve = std::make_shared<const PrimeOrderCurveImpl<C>>();
  340|  1.09k|         return g_curve;
  341|  1.09k|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEEC2Ev:
  336|      1|      PrimeOrderCurveImpl() : m_mul_by_g(C::G) {}
pcurves_brainpool256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE19field_element_bytesEv:
   36|    192|      size_t field_element_bytes() const override { return C::FieldElement::BYTES; }
pcurves_brainpool256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE8mul_by_gERKNS0_15PrimeOrderCurve6ScalarERNS_21RandomNumberGeneratorE:
   38|     96|      ProjectivePoint mul_by_g(const Scalar& scalar, RandomNumberGenerator& rng) const override {
   39|     96|         return stash(m_mul_by_g.mul(from_stash(scalar), rng));
   40|     96|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE5stashERKNS_20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEESA_EE:
  370|     96|      static ProjectivePoint stash(const typename C::ProjectivePoint& pt) {
  371|     96|         auto x_w = pt.x().template stash_value<StorageWords>();
  372|     96|         auto y_w = pt.y().template stash_value<StorageWords>();
  373|     96|         auto z_w = pt.z().template stash_value<StorageWords>();
  374|     96|         return ProjectivePoint::_create(instance(), x_w, y_w, z_w);
  375|     96|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE10from_stashERKNS0_15PrimeOrderCurve6ScalarE:
  348|    354|      static typename C::Scalar from_stash(const Scalar& s) {
  349|    354|         if(s._curve() != instance()) {
  ------------------
  |  Branch (349:13): [True: 0, False: 354]
  ------------------
  350|      0|            throw Invalid_Argument("Curve mismatch");
  351|      0|         }
  352|    354|         return C::Scalar::from_stash(s._value());
  353|    354|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE5stashERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES7_E12ScalarParamsEEEEE:
  344|    129|      static Scalar stash(const typename C::Scalar& s) {
  345|    129|         return Scalar::_create(instance(), s.template stash_value<StorageWords>());
  346|    129|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE10from_stashERKNS0_15PrimeOrderCurve11AffinePointE:
  361|    192|      static typename C::AffinePoint from_stash(const AffinePoint& pt) {
  362|    192|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (362:13): [True: 0, False: 192]
  ------------------
  363|      0|            throw Invalid_Argument("Curve mismatch");
  364|      0|         }
  365|    192|         auto x = C::FieldElement::from_stash(pt._x());
  366|    192|         auto y = C::FieldElement::from_stash(pt._y());
  367|    192|         return typename C::AffinePoint(x, y);
  368|    192|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE5stashERKNS_16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEEEE:
  355|     96|      static AffinePoint stash(const typename C::AffinePoint& pt) {
  356|     96|         auto x_w = pt.x().template stash_value<StorageWords>();
  357|     96|         auto y_w = pt.y().template stash_value<StorageWords>();
  358|     96|         return AffinePoint::_create(instance(), x_w, y_w);
  359|     96|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE17deserialize_pointENSt3__14spanIKhLm18446744073709551615EEE:
  242|     33|      std::optional<AffinePoint> deserialize_point(std::span<const uint8_t> bytes) const override {
  243|       |         // The identity element (see SEC1 section 2.3.4)
  244|       |         // TODO(Botan4) remove this - we should reject the identity encoding
  245|     33|         if(bytes.size() == 1 && bytes[0] == 0x00) {
  ------------------
  |  Branch (245:13): [True: 0, False: 33]
  |  Branch (245:34): [True: 0, False: 0]
  ------------------
  246|      0|            return stash(C::AffinePoint::identity());
  247|      0|         }
  248|       |
  249|     33|         constexpr size_t FieldElementBytes = C::FieldElement::BYTES;
  250|     33|         constexpr size_t CompressedBytes = C::FieldElement::BYTES + 1;
  251|     33|         constexpr size_t UncompressedBytes = 2 * C::FieldElement::BYTES + 1;
  252|       |
  253|     33|         if(bytes.size() == UncompressedBytes && bytes[0] == 0x04) {
  ------------------
  |  Branch (253:13): [True: 0, False: 33]
  |  Branch (253:50): [True: 0, False: 0]
  ------------------
  254|      0|            const auto encoded_point = bytes.subspan(1);
  255|      0|            auto x = C::FieldElement::deserialize(encoded_point.first(FieldElementBytes));
  256|      0|            auto y = C::FieldElement::deserialize(encoded_point.last(FieldElementBytes));
  257|       |
  258|      0|            if(x && y) {
  ------------------
  |  Branch (258:16): [True: 0, False: 0]
  |  Branch (258:21): [True: 0, False: 0]
  ------------------
  259|       |               // Check that y^2 = x^3 + ax + b
  260|      0|               const auto lhs = (*y).square();
  261|      0|               const auto rhs = C::x3_ax_b(*x);
  262|      0|               const auto valid = (lhs == rhs);
  263|      0|               if(valid.as_bool()) {
  ------------------
  |  Branch (263:19): [True: 0, False: 0]
  ------------------
  264|      0|                  return stash(typename C::AffinePoint(*x, *y));
  265|      0|               }
  266|      0|            }
  267|     33|         } else if(bytes.size() == CompressedBytes && (bytes[0] == 0x02 || bytes[0] == 0x03)) {
  ------------------
  |  Branch (267:20): [True: 0, False: 33]
  |  Branch (267:56): [True: 0, False: 0]
  |  Branch (267:76): [True: 0, False: 0]
  ------------------
  268|      0|            const CT::Choice y_is_even = CT::Mask<uint8_t>::is_equal(bytes[0], 0x02).as_choice();
  269|       |
  270|      0|            if(auto x = C::FieldElement::deserialize(bytes.subspan(1, FieldElementBytes))) {
  ------------------
  |  Branch (270:21): [True: 0, False: 0]
  ------------------
  271|      0|               if(auto y = sqrt_field_element<C>(C::x3_ax_b(*x)).as_optional_vartime()) {
  ------------------
  |  Branch (271:24): [True: 0, False: 0]
  ------------------
  272|      0|                  return stash(typename C::AffinePoint(*x, y->correct_sign(y_is_even)));
  273|      0|               }
  274|      0|            }
  275|      0|         }
  276|       |
  277|     33|         return {};
  278|     33|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE18deserialize_scalarENSt3__14spanIKhLm18446744073709551615EEE:
  224|    130|      std::optional<Scalar> deserialize_scalar(std::span<const uint8_t> bytes) const override {
  225|    130|         if(auto scalar = C::Scalar::deserialize(bytes)) {
  ------------------
  |  Branch (225:18): [True: 130, False: 0]
  ------------------
  226|    130|            if(!scalar->is_zero().as_bool()) {
  ------------------
  |  Branch (226:16): [True: 129, False: 1]
  ------------------
  227|    129|               return stash(*scalar);
  228|    129|            }
  229|    130|         }
  230|       |
  231|      1|         return {};
  232|    130|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE15point_to_affineERKNS0_15PrimeOrderCurve15ProjectivePointE:
  192|     96|      AffinePoint point_to_affine(const ProjectivePoint& pt) const override {
  193|     96|         auto affine = to_affine<C>(from_stash(pt));
  194|       |
  195|     96|         const auto y2 = affine.y().square();
  196|     96|         const auto x3_ax_b = C::x3_ax_b(affine.x());
  197|     96|         const auto valid_point = affine.is_identity() || (y2 == x3_ax_b);
  198|       |
  199|     96|         BOTAN_ASSERT(valid_point.as_bool(), "Computed point is on the curve");
  ------------------
  |  |   64|     96|   do {                                                                                 \
  |  |   65|     96|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|     96|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 96]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|     96|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 96]
  |  |  ------------------
  ------------------
  200|       |
  201|     96|         return stash(affine);
  202|     96|      }
pcurves_brainpool256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE10from_stashERKNS0_15PrimeOrderCurve15ProjectivePointE:
  377|     96|      static typename C::ProjectivePoint from_stash(const ProjectivePoint& pt) {
  378|     96|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (378:13): [True: 0, False: 96]
  ------------------
  379|      0|            throw Invalid_Argument("Curve mismatch");
  380|      0|         }
  381|     96|         auto x = C::FieldElement::from_stash(pt._x());
  382|     96|         auto y = C::FieldElement::from_stash(pt._y());
  383|     96|         auto z = C::FieldElement::from_stash(pt._z());
  384|     96|         return typename C::ProjectivePoint(x, y, z);
  385|     96|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE24affine_point_is_identityERKNS0_15PrimeOrderCurve11AffinePointE:
  210|     96|      bool affine_point_is_identity(const AffinePoint& pt) const override {
  211|     96|         return from_stash(pt).is_identity().as_bool();
  212|     96|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE15serialize_pointENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve11AffinePointE:
  214|     96|      void serialize_point(std::span<uint8_t> bytes, const AffinePoint& pt) const override {
  215|     96|         BOTAN_ARG_CHECK(bytes.size() == C::AffinePoint::BYTES, "Invalid length for serialize_point");
  ------------------
  |  |   35|     96|   do {                                                          \
  |  |   36|     96|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|     96|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 96]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|     96|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 96]
  |  |  ------------------
  ------------------
  216|     96|         from_stash(pt).serialize_to(bytes.subspan<0, C::AffinePoint::BYTES>());
  217|     96|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE16serialize_scalarENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve6ScalarE:
  219|    129|      void serialize_scalar(std::span<uint8_t> bytes, const Scalar& scalar) const override {
  220|    129|         BOTAN_ARG_CHECK(bytes.size() == C::Scalar::BYTES, "Invalid length to serialize_scalar");
  ------------------
  |  |   35|    129|   do {                                                          \
  |  |   36|    129|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    129|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 129]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    129|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 129]
  |  |  ------------------
  ------------------
  221|    129|         return from_stash(scalar).serialize_to(bytes.subspan<0, C::Scalar::BYTES>());
  222|    129|      }
pcurves_brainpool256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool256r15CurveEE14scalar_is_zeroERKNS0_15PrimeOrderCurve6ScalarE:
  326|    129|      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:
  338|  1.56k|      static std::shared_ptr<const PrimeOrderCurve> instance() {
  339|  1.56k|         static auto g_curve = std::make_shared<const PrimeOrderCurveImpl<C>>();
  340|  1.56k|         return g_curve;
  341|  1.56k|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEEC2Ev:
  336|      1|      PrimeOrderCurveImpl() : m_mul_by_g(C::G) {}
pcurves_brainpool384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE19field_element_bytesEv:
   36|    276|      size_t field_element_bytes() const override { return C::FieldElement::BYTES; }
pcurves_brainpool384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE8mul_by_gERKNS0_15PrimeOrderCurve6ScalarERNS_21RandomNumberGeneratorE:
   38|    138|      ProjectivePoint mul_by_g(const Scalar& scalar, RandomNumberGenerator& rng) const override {
   39|    138|         return stash(m_mul_by_g.mul(from_stash(scalar), rng));
   40|    138|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE5stashERKNS_20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEESA_EE:
  370|    138|      static ProjectivePoint stash(const typename C::ProjectivePoint& pt) {
  371|    138|         auto x_w = pt.x().template stash_value<StorageWords>();
  372|    138|         auto y_w = pt.y().template stash_value<StorageWords>();
  373|    138|         auto z_w = pt.z().template stash_value<StorageWords>();
  374|    138|         return ProjectivePoint::_create(instance(), x_w, y_w, z_w);
  375|    138|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE10from_stashERKNS0_15PrimeOrderCurve6ScalarE:
  348|    506|      static typename C::Scalar from_stash(const Scalar& s) {
  349|    506|         if(s._curve() != instance()) {
  ------------------
  |  Branch (349:13): [True: 0, False: 506]
  ------------------
  350|      0|            throw Invalid_Argument("Curve mismatch");
  351|      0|         }
  352|    506|         return C::Scalar::from_stash(s._value());
  353|    506|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE5stashERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES7_E12ScalarParamsEEEEE:
  344|    184|      static Scalar stash(const typename C::Scalar& s) {
  345|    184|         return Scalar::_create(instance(), s.template stash_value<StorageWords>());
  346|    184|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE10from_stashERKNS0_15PrimeOrderCurve11AffinePointE:
  361|    276|      static typename C::AffinePoint from_stash(const AffinePoint& pt) {
  362|    276|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (362:13): [True: 0, False: 276]
  ------------------
  363|      0|            throw Invalid_Argument("Curve mismatch");
  364|      0|         }
  365|    276|         auto x = C::FieldElement::from_stash(pt._x());
  366|    276|         auto y = C::FieldElement::from_stash(pt._y());
  367|    276|         return typename C::AffinePoint(x, y);
  368|    276|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE5stashERKNS_16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEEEE:
  355|    138|      static AffinePoint stash(const typename C::AffinePoint& pt) {
  356|    138|         auto x_w = pt.x().template stash_value<StorageWords>();
  357|    138|         auto y_w = pt.y().template stash_value<StorageWords>();
  358|    138|         return AffinePoint::_create(instance(), x_w, y_w);
  359|    138|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE17deserialize_pointENSt3__14spanIKhLm18446744073709551615EEE:
  242|     46|      std::optional<AffinePoint> deserialize_point(std::span<const uint8_t> bytes) const override {
  243|       |         // The identity element (see SEC1 section 2.3.4)
  244|       |         // TODO(Botan4) remove this - we should reject the identity encoding
  245|     46|         if(bytes.size() == 1 && bytes[0] == 0x00) {
  ------------------
  |  Branch (245:13): [True: 0, False: 46]
  |  Branch (245:34): [True: 0, False: 0]
  ------------------
  246|      0|            return stash(C::AffinePoint::identity());
  247|      0|         }
  248|       |
  249|     46|         constexpr size_t FieldElementBytes = C::FieldElement::BYTES;
  250|     46|         constexpr size_t CompressedBytes = C::FieldElement::BYTES + 1;
  251|     46|         constexpr size_t UncompressedBytes = 2 * C::FieldElement::BYTES + 1;
  252|       |
  253|     46|         if(bytes.size() == UncompressedBytes && bytes[0] == 0x04) {
  ------------------
  |  Branch (253:13): [True: 0, False: 46]
  |  Branch (253:50): [True: 0, False: 0]
  ------------------
  254|      0|            const auto encoded_point = bytes.subspan(1);
  255|      0|            auto x = C::FieldElement::deserialize(encoded_point.first(FieldElementBytes));
  256|      0|            auto y = C::FieldElement::deserialize(encoded_point.last(FieldElementBytes));
  257|       |
  258|      0|            if(x && y) {
  ------------------
  |  Branch (258:16): [True: 0, False: 0]
  |  Branch (258:21): [True: 0, False: 0]
  ------------------
  259|       |               // Check that y^2 = x^3 + ax + b
  260|      0|               const auto lhs = (*y).square();
  261|      0|               const auto rhs = C::x3_ax_b(*x);
  262|      0|               const auto valid = (lhs == rhs);
  263|      0|               if(valid.as_bool()) {
  ------------------
  |  Branch (263:19): [True: 0, False: 0]
  ------------------
  264|      0|                  return stash(typename C::AffinePoint(*x, *y));
  265|      0|               }
  266|      0|            }
  267|     46|         } else if(bytes.size() == CompressedBytes && (bytes[0] == 0x02 || bytes[0] == 0x03)) {
  ------------------
  |  Branch (267:20): [True: 0, False: 46]
  |  Branch (267:56): [True: 0, False: 0]
  |  Branch (267:76): [True: 0, False: 0]
  ------------------
  268|      0|            const CT::Choice y_is_even = CT::Mask<uint8_t>::is_equal(bytes[0], 0x02).as_choice();
  269|       |
  270|      0|            if(auto x = C::FieldElement::deserialize(bytes.subspan(1, FieldElementBytes))) {
  ------------------
  |  Branch (270:21): [True: 0, False: 0]
  ------------------
  271|      0|               if(auto y = sqrt_field_element<C>(C::x3_ax_b(*x)).as_optional_vartime()) {
  ------------------
  |  Branch (271:24): [True: 0, False: 0]
  ------------------
  272|      0|                  return stash(typename C::AffinePoint(*x, y->correct_sign(y_is_even)));
  273|      0|               }
  274|      0|            }
  275|      0|         }
  276|       |
  277|     46|         return {};
  278|     46|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE18deserialize_scalarENSt3__14spanIKhLm18446744073709551615EEE:
  224|    185|      std::optional<Scalar> deserialize_scalar(std::span<const uint8_t> bytes) const override {
  225|    185|         if(auto scalar = C::Scalar::deserialize(bytes)) {
  ------------------
  |  Branch (225:18): [True: 185, False: 0]
  ------------------
  226|    185|            if(!scalar->is_zero().as_bool()) {
  ------------------
  |  Branch (226:16): [True: 184, False: 1]
  ------------------
  227|    184|               return stash(*scalar);
  228|    184|            }
  229|    185|         }
  230|       |
  231|      1|         return {};
  232|    185|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE15point_to_affineERKNS0_15PrimeOrderCurve15ProjectivePointE:
  192|    138|      AffinePoint point_to_affine(const ProjectivePoint& pt) const override {
  193|    138|         auto affine = to_affine<C>(from_stash(pt));
  194|       |
  195|    138|         const auto y2 = affine.y().square();
  196|    138|         const auto x3_ax_b = C::x3_ax_b(affine.x());
  197|    138|         const auto valid_point = affine.is_identity() || (y2 == x3_ax_b);
  198|       |
  199|    138|         BOTAN_ASSERT(valid_point.as_bool(), "Computed point is on the curve");
  ------------------
  |  |   64|    138|   do {                                                                                 \
  |  |   65|    138|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|    138|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 138]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|    138|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 138]
  |  |  ------------------
  ------------------
  200|       |
  201|    138|         return stash(affine);
  202|    138|      }
pcurves_brainpool384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE10from_stashERKNS0_15PrimeOrderCurve15ProjectivePointE:
  377|    138|      static typename C::ProjectivePoint from_stash(const ProjectivePoint& pt) {
  378|    138|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (378:13): [True: 0, False: 138]
  ------------------
  379|      0|            throw Invalid_Argument("Curve mismatch");
  380|      0|         }
  381|    138|         auto x = C::FieldElement::from_stash(pt._x());
  382|    138|         auto y = C::FieldElement::from_stash(pt._y());
  383|    138|         auto z = C::FieldElement::from_stash(pt._z());
  384|    138|         return typename C::ProjectivePoint(x, y, z);
  385|    138|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE24affine_point_is_identityERKNS0_15PrimeOrderCurve11AffinePointE:
  210|    138|      bool affine_point_is_identity(const AffinePoint& pt) const override {
  211|    138|         return from_stash(pt).is_identity().as_bool();
  212|    138|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE15serialize_pointENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve11AffinePointE:
  214|    138|      void serialize_point(std::span<uint8_t> bytes, const AffinePoint& pt) const override {
  215|    138|         BOTAN_ARG_CHECK(bytes.size() == C::AffinePoint::BYTES, "Invalid length for serialize_point");
  ------------------
  |  |   35|    138|   do {                                                          \
  |  |   36|    138|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    138|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 138]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    138|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 138]
  |  |  ------------------
  ------------------
  216|    138|         from_stash(pt).serialize_to(bytes.subspan<0, C::AffinePoint::BYTES>());
  217|    138|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE16serialize_scalarENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve6ScalarE:
  219|    184|      void serialize_scalar(std::span<uint8_t> bytes, const Scalar& scalar) const override {
  220|    184|         BOTAN_ARG_CHECK(bytes.size() == C::Scalar::BYTES, "Invalid length to serialize_scalar");
  ------------------
  |  |   35|    184|   do {                                                          \
  |  |   36|    184|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    184|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 184]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    184|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 184]
  |  |  ------------------
  ------------------
  221|    184|         return from_stash(scalar).serialize_to(bytes.subspan<0, C::Scalar::BYTES>());
  222|    184|      }
pcurves_brainpool384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool384r15CurveEE14scalar_is_zeroERKNS0_15PrimeOrderCurve6ScalarE:
  326|    184|      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:
  338|  1.36k|      static std::shared_ptr<const PrimeOrderCurve> instance() {
  339|  1.36k|         static auto g_curve = std::make_shared<const PrimeOrderCurveImpl<C>>();
  340|  1.36k|         return g_curve;
  341|  1.36k|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEEC2Ev:
  336|      1|      PrimeOrderCurveImpl() : m_mul_by_g(C::G) {}
pcurves_brainpool512r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE19field_element_bytesEv:
   36|    252|      size_t field_element_bytes() const override { return C::FieldElement::BYTES; }
pcurves_brainpool512r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE8mul_by_gERKNS0_15PrimeOrderCurve6ScalarERNS_21RandomNumberGeneratorE:
   38|    126|      ProjectivePoint mul_by_g(const Scalar& scalar, RandomNumberGenerator& rng) const override {
   39|    126|         return stash(m_mul_by_g.mul(from_stash(scalar), rng));
   40|    126|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE5stashERKNS_20ProjectiveCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEESA_EE:
  370|    126|      static ProjectivePoint stash(const typename C::ProjectivePoint& pt) {
  371|    126|         auto x_w = pt.x().template stash_value<StorageWords>();
  372|    126|         auto y_w = pt.y().template stash_value<StorageWords>();
  373|    126|         auto z_w = pt.z().template stash_value<StorageWords>();
  374|    126|         return ProjectivePoint::_create(instance(), x_w, y_w, z_w);
  375|    126|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE10from_stashERKNS0_15PrimeOrderCurve6ScalarE:
  348|    428|      static typename C::Scalar from_stash(const Scalar& s) {
  349|    428|         if(s._curve() != instance()) {
  ------------------
  |  Branch (349:13): [True: 0, False: 428]
  ------------------
  350|      0|            throw Invalid_Argument("Curve mismatch");
  351|      0|         }
  352|    428|         return C::Scalar::from_stash(s._value());
  353|    428|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE5stashERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES7_E12ScalarParamsEEEEE:
  344|    151|      static Scalar stash(const typename C::Scalar& s) {
  345|    151|         return Scalar::_create(instance(), s.template stash_value<StorageWords>());
  346|    151|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE10from_stashERKNS0_15PrimeOrderCurve11AffinePointE:
  361|    252|      static typename C::AffinePoint from_stash(const AffinePoint& pt) {
  362|    252|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (362:13): [True: 0, False: 252]
  ------------------
  363|      0|            throw Invalid_Argument("Curve mismatch");
  364|      0|         }
  365|    252|         auto x = C::FieldElement::from_stash(pt._x());
  366|    252|         auto y = C::FieldElement::from_stash(pt._y());
  367|    252|         return typename C::AffinePoint(x, y);
  368|    252|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE5stashERKNS_16AffineCurvePointINS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEEEE:
  355|    126|      static AffinePoint stash(const typename C::AffinePoint& pt) {
  356|    126|         auto x_w = pt.x().template stash_value<StorageWords>();
  357|    126|         auto y_w = pt.y().template stash_value<StorageWords>();
  358|    126|         return AffinePoint::_create(instance(), x_w, y_w);
  359|    126|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE17deserialize_pointENSt3__14spanIKhLm18446744073709551615EEE:
  242|     25|      std::optional<AffinePoint> deserialize_point(std::span<const uint8_t> bytes) const override {
  243|       |         // The identity element (see SEC1 section 2.3.4)
  244|       |         // TODO(Botan4) remove this - we should reject the identity encoding
  245|     25|         if(bytes.size() == 1 && bytes[0] == 0x00) {
  ------------------
  |  Branch (245:13): [True: 0, False: 25]
  |  Branch (245:34): [True: 0, False: 0]
  ------------------
  246|      0|            return stash(C::AffinePoint::identity());
  247|      0|         }
  248|       |
  249|     25|         constexpr size_t FieldElementBytes = C::FieldElement::BYTES;
  250|     25|         constexpr size_t CompressedBytes = C::FieldElement::BYTES + 1;
  251|     25|         constexpr size_t UncompressedBytes = 2 * C::FieldElement::BYTES + 1;
  252|       |
  253|     25|         if(bytes.size() == UncompressedBytes && bytes[0] == 0x04) {
  ------------------
  |  Branch (253:13): [True: 0, False: 25]
  |  Branch (253:50): [True: 0, False: 0]
  ------------------
  254|      0|            const auto encoded_point = bytes.subspan(1);
  255|      0|            auto x = C::FieldElement::deserialize(encoded_point.first(FieldElementBytes));
  256|      0|            auto y = C::FieldElement::deserialize(encoded_point.last(FieldElementBytes));
  257|       |
  258|      0|            if(x && y) {
  ------------------
  |  Branch (258:16): [True: 0, False: 0]
  |  Branch (258:21): [True: 0, False: 0]
  ------------------
  259|       |               // Check that y^2 = x^3 + ax + b
  260|      0|               const auto lhs = (*y).square();
  261|      0|               const auto rhs = C::x3_ax_b(*x);
  262|      0|               const auto valid = (lhs == rhs);
  263|      0|               if(valid.as_bool()) {
  ------------------
  |  Branch (263:19): [True: 0, False: 0]
  ------------------
  264|      0|                  return stash(typename C::AffinePoint(*x, *y));
  265|      0|               }
  266|      0|            }
  267|     25|         } else if(bytes.size() == CompressedBytes && (bytes[0] == 0x02 || bytes[0] == 0x03)) {
  ------------------
  |  Branch (267:20): [True: 0, False: 25]
  |  Branch (267:56): [True: 0, False: 0]
  |  Branch (267:76): [True: 0, False: 0]
  ------------------
  268|      0|            const CT::Choice y_is_even = CT::Mask<uint8_t>::is_equal(bytes[0], 0x02).as_choice();
  269|       |
  270|      0|            if(auto x = C::FieldElement::deserialize(bytes.subspan(1, FieldElementBytes))) {
  ------------------
  |  Branch (270:21): [True: 0, False: 0]
  ------------------
  271|      0|               if(auto y = sqrt_field_element<C>(C::x3_ax_b(*x)).as_optional_vartime()) {
  ------------------
  |  Branch (271:24): [True: 0, False: 0]
  ------------------
  272|      0|                  return stash(typename C::AffinePoint(*x, y->correct_sign(y_is_even)));
  273|      0|               }
  274|      0|            }
  275|      0|         }
  276|       |
  277|     25|         return {};
  278|     25|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE18deserialize_scalarENSt3__14spanIKhLm18446744073709551615EEE:
  224|    152|      std::optional<Scalar> deserialize_scalar(std::span<const uint8_t> bytes) const override {
  225|    152|         if(auto scalar = C::Scalar::deserialize(bytes)) {
  ------------------
  |  Branch (225:18): [True: 152, False: 0]
  ------------------
  226|    152|            if(!scalar->is_zero().as_bool()) {
  ------------------
  |  Branch (226:16): [True: 151, False: 1]
  ------------------
  227|    151|               return stash(*scalar);
  228|    151|            }
  229|    152|         }
  230|       |
  231|      1|         return {};
  232|    152|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE15point_to_affineERKNS0_15PrimeOrderCurve15ProjectivePointE:
  192|    126|      AffinePoint point_to_affine(const ProjectivePoint& pt) const override {
  193|    126|         auto affine = to_affine<C>(from_stash(pt));
  194|       |
  195|    126|         const auto y2 = affine.y().square();
  196|    126|         const auto x3_ax_b = C::x3_ax_b(affine.x());
  197|    126|         const auto valid_point = affine.is_identity() || (y2 == x3_ax_b);
  198|       |
  199|    126|         BOTAN_ASSERT(valid_point.as_bool(), "Computed point is on the curve");
  ------------------
  |  |   64|    126|   do {                                                                                 \
  |  |   65|    126|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|    126|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 126]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|    126|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 126]
  |  |  ------------------
  ------------------
  200|       |
  201|    126|         return stash(affine);
  202|    126|      }
pcurves_brainpool512r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE10from_stashERKNS0_15PrimeOrderCurve15ProjectivePointE:
  377|    126|      static typename C::ProjectivePoint from_stash(const ProjectivePoint& pt) {
  378|    126|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (378:13): [True: 0, False: 126]
  ------------------
  379|      0|            throw Invalid_Argument("Curve mismatch");
  380|      0|         }
  381|    126|         auto x = C::FieldElement::from_stash(pt._x());
  382|    126|         auto y = C::FieldElement::from_stash(pt._y());
  383|    126|         auto z = C::FieldElement::from_stash(pt._z());
  384|    126|         return typename C::ProjectivePoint(x, y, z);
  385|    126|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE24affine_point_is_identityERKNS0_15PrimeOrderCurve11AffinePointE:
  210|    126|      bool affine_point_is_identity(const AffinePoint& pt) const override {
  211|    126|         return from_stash(pt).is_identity().as_bool();
  212|    126|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE15serialize_pointENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve11AffinePointE:
  214|    126|      void serialize_point(std::span<uint8_t> bytes, const AffinePoint& pt) const override {
  215|    126|         BOTAN_ARG_CHECK(bytes.size() == C::AffinePoint::BYTES, "Invalid length for serialize_point");
  ------------------
  |  |   35|    126|   do {                                                          \
  |  |   36|    126|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    126|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 126]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    126|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 126]
  |  |  ------------------
  ------------------
  216|    126|         from_stash(pt).serialize_to(bytes.subspan<0, C::AffinePoint::BYTES>());
  217|    126|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE16serialize_scalarENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve6ScalarE:
  219|    151|      void serialize_scalar(std::span<uint8_t> bytes, const Scalar& scalar) const override {
  220|    151|         BOTAN_ARG_CHECK(bytes.size() == C::Scalar::BYTES, "Invalid length to serialize_scalar");
  ------------------
  |  |   35|    151|   do {                                                          \
  |  |   36|    151|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    151|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 151]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    151|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 151]
  |  |  ------------------
  ------------------
  221|    151|         return from_stash(scalar).serialize_to(bytes.subspan<0, C::Scalar::BYTES>());
  222|    151|      }
pcurves_brainpool512r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_114brainpool512r15CurveEE14scalar_is_zeroERKNS0_15PrimeOrderCurve6ScalarE:
  326|    151|      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:
  338|  2.57k|      static std::shared_ptr<const PrimeOrderCurve> instance() {
  339|  2.57k|         static auto g_curve = std::make_shared<const PrimeOrderCurveImpl<C>>();
  340|  2.57k|         return g_curve;
  341|  2.57k|      }
pcurves_secp224r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEEC2Ev:
  336|      1|      PrimeOrderCurveImpl() : m_mul_by_g(C::G) {}
pcurves_secp224r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE19field_element_bytesEv:
   36|    416|      size_t field_element_bytes() const override { return C::FieldElement::BYTES; }
pcurves_secp224r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE8mul_by_gERKNS0_15PrimeOrderCurve6ScalarERNS_21RandomNumberGeneratorE:
   38|    207|      ProjectivePoint mul_by_g(const Scalar& scalar, RandomNumberGenerator& rng) const override {
   39|    207|         return stash(m_mul_by_g.mul(from_stash(scalar), rng));
   40|    207|      }
pcurves_secp224r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE5stashERKNS_20ProjectiveCurvePointINS_6IntModINS3_12Secp224r1RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEESA_EE:
  370|    207|      static ProjectivePoint stash(const typename C::ProjectivePoint& pt) {
  371|    207|         auto x_w = pt.x().template stash_value<StorageWords>();
  372|    207|         auto y_w = pt.y().template stash_value<StorageWords>();
  373|    207|         auto z_w = pt.z().template stash_value<StorageWords>();
  374|    207|         return ProjectivePoint::_create(instance(), x_w, y_w, z_w);
  375|    207|      }
pcurves_secp224r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE10from_stashERKNS0_15PrimeOrderCurve6ScalarE:
  348|    859|      static typename C::Scalar from_stash(const Scalar& s) {
  349|    859|         if(s._curve() != instance()) {
  ------------------
  |  Branch (349:13): [True: 0, False: 859]
  ------------------
  350|      0|            throw Invalid_Argument("Curve mismatch");
  351|      0|         }
  352|    859|         return C::Scalar::from_stash(s._value());
  353|    859|      }
pcurves_secp224r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE5stashERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS3_12Secp224r1RepEE12ScalarParamsEEEEE:
  344|    326|      static Scalar stash(const typename C::Scalar& s) {
  345|    326|         return Scalar::_create(instance(), s.template stash_value<StorageWords>());
  346|    326|      }
pcurves_secp224r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE10from_stashERKNS0_15PrimeOrderCurve11AffinePointE:
  361|    416|      static typename C::AffinePoint from_stash(const AffinePoint& pt) {
  362|    416|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (362:13): [True: 0, False: 416]
  ------------------
  363|      0|            throw Invalid_Argument("Curve mismatch");
  364|      0|         }
  365|    416|         auto x = C::FieldElement::from_stash(pt._x());
  366|    416|         auto y = C::FieldElement::from_stash(pt._y());
  367|    416|         return typename C::AffinePoint(x, y);
  368|    416|      }
pcurves_secp224r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE5stashERKNS_16AffineCurvePointINS_6IntModINS3_12Secp224r1RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEEEE:
  355|    208|      static AffinePoint stash(const typename C::AffinePoint& pt) {
  356|    208|         auto x_w = pt.x().template stash_value<StorageWords>();
  357|    208|         auto y_w = pt.y().template stash_value<StorageWords>();
  358|    208|         return AffinePoint::_create(instance(), x_w, y_w);
  359|    208|      }
pcurves_secp224r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE17deserialize_pointENSt3__14spanIKhLm18446744073709551615EEE:
  242|    119|      std::optional<AffinePoint> deserialize_point(std::span<const uint8_t> bytes) const override {
  243|       |         // The identity element (see SEC1 section 2.3.4)
  244|       |         // TODO(Botan4) remove this - we should reject the identity encoding
  245|    119|         if(bytes.size() == 1 && bytes[0] == 0x00) {
  ------------------
  |  Branch (245:13): [True: 0, False: 119]
  |  Branch (245:34): [True: 0, False: 0]
  ------------------
  246|      0|            return stash(C::AffinePoint::identity());
  247|      0|         }
  248|       |
  249|    119|         constexpr size_t FieldElementBytes = C::FieldElement::BYTES;
  250|    119|         constexpr size_t CompressedBytes = C::FieldElement::BYTES + 1;
  251|    119|         constexpr size_t UncompressedBytes = 2 * C::FieldElement::BYTES + 1;
  252|       |
  253|    119|         if(bytes.size() == UncompressedBytes && bytes[0] == 0x04) {
  ------------------
  |  Branch (253:13): [True: 119, False: 0]
  |  Branch (253:50): [True: 111, False: 8]
  ------------------
  254|    111|            const auto encoded_point = bytes.subspan(1);
  255|    111|            auto x = C::FieldElement::deserialize(encoded_point.first(FieldElementBytes));
  256|    111|            auto y = C::FieldElement::deserialize(encoded_point.last(FieldElementBytes));
  257|       |
  258|    111|            if(x && y) {
  ------------------
  |  Branch (258:16): [True: 110, False: 1]
  |  Branch (258:21): [True: 109, False: 1]
  ------------------
  259|       |               // Check that y^2 = x^3 + ax + b
  260|    109|               const auto lhs = (*y).square();
  261|    109|               const auto rhs = C::x3_ax_b(*x);
  262|    109|               const auto valid = (lhs == rhs);
  263|    109|               if(valid.as_bool()) {
  ------------------
  |  Branch (263:19): [True: 1, False: 108]
  ------------------
  264|      1|                  return stash(typename C::AffinePoint(*x, *y));
  265|      1|               }
  266|    109|            }
  267|    111|         } else if(bytes.size() == CompressedBytes && (bytes[0] == 0x02 || bytes[0] == 0x03)) {
  ------------------
  |  Branch (267:20): [True: 0, False: 8]
  |  Branch (267:56): [True: 0, False: 0]
  |  Branch (267:76): [True: 0, False: 0]
  ------------------
  268|      0|            const CT::Choice y_is_even = CT::Mask<uint8_t>::is_equal(bytes[0], 0x02).as_choice();
  269|       |
  270|      0|            if(auto x = C::FieldElement::deserialize(bytes.subspan(1, FieldElementBytes))) {
  ------------------
  |  Branch (270:21): [True: 0, False: 0]
  ------------------
  271|      0|               if(auto y = sqrt_field_element<C>(C::x3_ax_b(*x)).as_optional_vartime()) {
  ------------------
  |  Branch (271:24): [True: 0, False: 0]
  ------------------
  272|      0|                  return stash(typename C::AffinePoint(*x, y->correct_sign(y_is_even)));
  273|      0|               }
  274|      0|            }
  275|      0|         }
  276|       |
  277|    118|         return {};
  278|    119|      }
pcurves_secp224r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE18deserialize_scalarENSt3__14spanIKhLm18446744073709551615EEE:
  224|    328|      std::optional<Scalar> deserialize_scalar(std::span<const uint8_t> bytes) const override {
  225|    328|         if(auto scalar = C::Scalar::deserialize(bytes)) {
  ------------------
  |  Branch (225:18): [True: 327, False: 1]
  ------------------
  226|    327|            if(!scalar->is_zero().as_bool()) {
  ------------------
  |  Branch (226:16): [True: 326, False: 1]
  ------------------
  227|    326|               return stash(*scalar);
  228|    326|            }
  229|    327|         }
  230|       |
  231|      2|         return {};
  232|    328|      }
pcurves_secp224r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE15point_to_affineERKNS0_15PrimeOrderCurve15ProjectivePointE:
  192|    207|      AffinePoint point_to_affine(const ProjectivePoint& pt) const override {
  193|    207|         auto affine = to_affine<C>(from_stash(pt));
  194|       |
  195|    207|         const auto y2 = affine.y().square();
  196|    207|         const auto x3_ax_b = C::x3_ax_b(affine.x());
  197|    207|         const auto valid_point = affine.is_identity() || (y2 == x3_ax_b);
  198|       |
  199|    207|         BOTAN_ASSERT(valid_point.as_bool(), "Computed point is on the curve");
  ------------------
  |  |   64|    207|   do {                                                                                 \
  |  |   65|    207|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|    207|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 207]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|    207|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 207]
  |  |  ------------------
  ------------------
  200|       |
  201|    207|         return stash(affine);
  202|    207|      }
pcurves_secp224r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE10from_stashERKNS0_15PrimeOrderCurve15ProjectivePointE:
  377|    207|      static typename C::ProjectivePoint from_stash(const ProjectivePoint& pt) {
  378|    207|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (378:13): [True: 0, False: 207]
  ------------------
  379|      0|            throw Invalid_Argument("Curve mismatch");
  380|      0|         }
  381|    207|         auto x = C::FieldElement::from_stash(pt._x());
  382|    207|         auto y = C::FieldElement::from_stash(pt._y());
  383|    207|         auto z = C::FieldElement::from_stash(pt._z());
  384|    207|         return typename C::ProjectivePoint(x, y, z);
  385|    207|      }
pcurves_secp224r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE24affine_point_is_identityERKNS0_15PrimeOrderCurve11AffinePointE:
  210|    208|      bool affine_point_is_identity(const AffinePoint& pt) const override {
  211|    208|         return from_stash(pt).is_identity().as_bool();
  212|    208|      }
pcurves_secp224r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE15serialize_pointENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve11AffinePointE:
  214|    208|      void serialize_point(std::span<uint8_t> bytes, const AffinePoint& pt) const override {
  215|    208|         BOTAN_ARG_CHECK(bytes.size() == C::AffinePoint::BYTES, "Invalid length for serialize_point");
  ------------------
  |  |   35|    208|   do {                                                          \
  |  |   36|    208|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    208|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 208]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    208|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 208]
  |  |  ------------------
  ------------------
  216|    208|         from_stash(pt).serialize_to(bytes.subspan<0, C::AffinePoint::BYTES>());
  217|    208|      }
pcurves_secp224r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE16serialize_scalarENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve6ScalarE:
  219|    326|      void serialize_scalar(std::span<uint8_t> bytes, const Scalar& scalar) const override {
  220|    326|         BOTAN_ARG_CHECK(bytes.size() == C::Scalar::BYTES, "Invalid length to serialize_scalar");
  ------------------
  |  |   35|    326|   do {                                                          \
  |  |   36|    326|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    326|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 326]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    326|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 326]
  |  |  ------------------
  ------------------
  221|    326|         return from_stash(scalar).serialize_to(bytes.subspan<0, C::Scalar::BYTES>());
  222|    326|      }
pcurves_secp224r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp224r15CurveEE14scalar_is_zeroERKNS0_15PrimeOrderCurve6ScalarE:
  326|    326|      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:
  338|  1.81k|      static std::shared_ptr<const PrimeOrderCurve> instance() {
  339|  1.81k|         static auto g_curve = std::make_shared<const PrimeOrderCurveImpl<C>>();
  340|  1.81k|         return g_curve;
  341|  1.81k|      }
pcurves_secp256k1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEEC2Ev:
  336|      1|      PrimeOrderCurveImpl() : m_mul_by_g(C::G) {}
pcurves_secp256k1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE19field_element_bytesEv:
   36|    354|      size_t field_element_bytes() const override { return C::FieldElement::BYTES; }
pcurves_secp256k1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE8mul_by_gERKNS0_15PrimeOrderCurve6ScalarERNS_21RandomNumberGeneratorE:
   38|    177|      ProjectivePoint mul_by_g(const Scalar& scalar, RandomNumberGenerator& rng) const override {
   39|    177|         return stash(m_mul_by_g.mul(from_stash(scalar), rng));
   40|    177|      }
pcurves_secp256k1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE5stashERKNS_20ProjectiveCurvePointINS_6IntModINS3_12Secp256k1RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEESA_EE:
  370|    177|      static ProjectivePoint stash(const typename C::ProjectivePoint& pt) {
  371|    177|         auto x_w = pt.x().template stash_value<StorageWords>();
  372|    177|         auto y_w = pt.y().template stash_value<StorageWords>();
  373|    177|         auto z_w = pt.z().template stash_value<StorageWords>();
  374|    177|         return ProjectivePoint::_create(instance(), x_w, y_w, z_w);
  375|    177|      }
pcurves_secp256k1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE10from_stashERKNS0_15PrimeOrderCurve6ScalarE:
  348|    547|      static typename C::Scalar from_stash(const Scalar& s) {
  349|    547|         if(s._curve() != instance()) {
  ------------------
  |  Branch (349:13): [True: 0, False: 547]
  ------------------
  350|      0|            throw Invalid_Argument("Curve mismatch");
  351|      0|         }
  352|    547|         return C::Scalar::from_stash(s._value());
  353|    547|      }
pcurves_secp256k1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE5stashERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS3_12Secp256k1RepEE12ScalarParamsEEEEE:
  344|    185|      static Scalar stash(const typename C::Scalar& s) {
  345|    185|         return Scalar::_create(instance(), s.template stash_value<StorageWords>());
  346|    185|      }
pcurves_secp256k1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE10from_stashERKNS0_15PrimeOrderCurve11AffinePointE:
  361|    354|      static typename C::AffinePoint from_stash(const AffinePoint& pt) {
  362|    354|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (362:13): [True: 0, False: 354]
  ------------------
  363|      0|            throw Invalid_Argument("Curve mismatch");
  364|      0|         }
  365|    354|         auto x = C::FieldElement::from_stash(pt._x());
  366|    354|         auto y = C::FieldElement::from_stash(pt._y());
  367|    354|         return typename C::AffinePoint(x, y);
  368|    354|      }
pcurves_secp256k1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE5stashERKNS_16AffineCurvePointINS_6IntModINS3_12Secp256k1RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEEEE:
  355|    177|      static AffinePoint stash(const typename C::AffinePoint& pt) {
  356|    177|         auto x_w = pt.x().template stash_value<StorageWords>();
  357|    177|         auto y_w = pt.y().template stash_value<StorageWords>();
  358|    177|         return AffinePoint::_create(instance(), x_w, y_w);
  359|    177|      }
pcurves_secp256k1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE17deserialize_pointENSt3__14spanIKhLm18446744073709551615EEE:
  242|      8|      std::optional<AffinePoint> deserialize_point(std::span<const uint8_t> bytes) const override {
  243|       |         // The identity element (see SEC1 section 2.3.4)
  244|       |         // TODO(Botan4) remove this - we should reject the identity encoding
  245|      8|         if(bytes.size() == 1 && bytes[0] == 0x00) {
  ------------------
  |  Branch (245:13): [True: 0, False: 8]
  |  Branch (245:34): [True: 0, False: 0]
  ------------------
  246|      0|            return stash(C::AffinePoint::identity());
  247|      0|         }
  248|       |
  249|      8|         constexpr size_t FieldElementBytes = C::FieldElement::BYTES;
  250|      8|         constexpr size_t CompressedBytes = C::FieldElement::BYTES + 1;
  251|      8|         constexpr size_t UncompressedBytes = 2 * C::FieldElement::BYTES + 1;
  252|       |
  253|      8|         if(bytes.size() == UncompressedBytes && bytes[0] == 0x04) {
  ------------------
  |  Branch (253:13): [True: 0, False: 8]
  |  Branch (253:50): [True: 0, False: 0]
  ------------------
  254|      0|            const auto encoded_point = bytes.subspan(1);
  255|      0|            auto x = C::FieldElement::deserialize(encoded_point.first(FieldElementBytes));
  256|      0|            auto y = C::FieldElement::deserialize(encoded_point.last(FieldElementBytes));
  257|       |
  258|      0|            if(x && y) {
  ------------------
  |  Branch (258:16): [True: 0, False: 0]
  |  Branch (258:21): [True: 0, False: 0]
  ------------------
  259|       |               // Check that y^2 = x^3 + ax + b
  260|      0|               const auto lhs = (*y).square();
  261|      0|               const auto rhs = C::x3_ax_b(*x);
  262|      0|               const auto valid = (lhs == rhs);
  263|      0|               if(valid.as_bool()) {
  ------------------
  |  Branch (263:19): [True: 0, False: 0]
  ------------------
  264|      0|                  return stash(typename C::AffinePoint(*x, *y));
  265|      0|               }
  266|      0|            }
  267|      8|         } else if(bytes.size() == CompressedBytes && (bytes[0] == 0x02 || bytes[0] == 0x03)) {
  ------------------
  |  Branch (267:20): [True: 0, False: 8]
  |  Branch (267:56): [True: 0, False: 0]
  |  Branch (267:76): [True: 0, False: 0]
  ------------------
  268|      0|            const CT::Choice y_is_even = CT::Mask<uint8_t>::is_equal(bytes[0], 0x02).as_choice();
  269|       |
  270|      0|            if(auto x = C::FieldElement::deserialize(bytes.subspan(1, FieldElementBytes))) {
  ------------------
  |  Branch (270:21): [True: 0, False: 0]
  ------------------
  271|      0|               if(auto y = sqrt_field_element<C>(C::x3_ax_b(*x)).as_optional_vartime()) {
  ------------------
  |  Branch (271:24): [True: 0, False: 0]
  ------------------
  272|      0|                  return stash(typename C::AffinePoint(*x, y->correct_sign(y_is_even)));
  273|      0|               }
  274|      0|            }
  275|      0|         }
  276|       |
  277|      8|         return {};
  278|      8|      }
pcurves_secp256k1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE18deserialize_scalarENSt3__14spanIKhLm18446744073709551615EEE:
  224|    186|      std::optional<Scalar> deserialize_scalar(std::span<const uint8_t> bytes) const override {
  225|    186|         if(auto scalar = C::Scalar::deserialize(bytes)) {
  ------------------
  |  Branch (225:18): [True: 186, False: 0]
  ------------------
  226|    186|            if(!scalar->is_zero().as_bool()) {
  ------------------
  |  Branch (226:16): [True: 185, False: 1]
  ------------------
  227|    185|               return stash(*scalar);
  228|    185|            }
  229|    186|         }
  230|       |
  231|      1|         return {};
  232|    186|      }
pcurves_secp256k1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE15point_to_affineERKNS0_15PrimeOrderCurve15ProjectivePointE:
  192|    177|      AffinePoint point_to_affine(const ProjectivePoint& pt) const override {
  193|    177|         auto affine = to_affine<C>(from_stash(pt));
  194|       |
  195|    177|         const auto y2 = affine.y().square();
  196|    177|         const auto x3_ax_b = C::x3_ax_b(affine.x());
  197|    177|         const auto valid_point = affine.is_identity() || (y2 == x3_ax_b);
  198|       |
  199|    177|         BOTAN_ASSERT(valid_point.as_bool(), "Computed point is on the curve");
  ------------------
  |  |   64|    177|   do {                                                                                 \
  |  |   65|    177|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|    177|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 177]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|    177|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 177]
  |  |  ------------------
  ------------------
  200|       |
  201|    177|         return stash(affine);
  202|    177|      }
pcurves_secp256k1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE10from_stashERKNS0_15PrimeOrderCurve15ProjectivePointE:
  377|    177|      static typename C::ProjectivePoint from_stash(const ProjectivePoint& pt) {
  378|    177|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (378:13): [True: 0, False: 177]
  ------------------
  379|      0|            throw Invalid_Argument("Curve mismatch");
  380|      0|         }
  381|    177|         auto x = C::FieldElement::from_stash(pt._x());
  382|    177|         auto y = C::FieldElement::from_stash(pt._y());
  383|    177|         auto z = C::FieldElement::from_stash(pt._z());
  384|    177|         return typename C::ProjectivePoint(x, y, z);
  385|    177|      }
pcurves_secp256k1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE24affine_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_secp256k1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE15serialize_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_secp256k1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE16serialize_scalarENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve6ScalarE:
  219|    185|      void serialize_scalar(std::span<uint8_t> bytes, const Scalar& scalar) const override {
  220|    185|         BOTAN_ARG_CHECK(bytes.size() == C::Scalar::BYTES, "Invalid length to serialize_scalar");
  ------------------
  |  |   35|    185|   do {                                                          \
  |  |   36|    185|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    185|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 185]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    185|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 185]
  |  |  ------------------
  ------------------
  221|    185|         return from_stash(scalar).serialize_to(bytes.subspan<0, C::Scalar::BYTES>());
  222|    185|      }
pcurves_secp256k1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256k15CurveEE14scalar_is_zeroERKNS0_15PrimeOrderCurve6ScalarE:
  326|    185|      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:
  338|    704|      static std::shared_ptr<const PrimeOrderCurve> instance() {
  339|    704|         static auto g_curve = std::make_shared<const PrimeOrderCurveImpl<C>>();
  340|    704|         return g_curve;
  341|    704|      }
pcurves_secp256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEEC2Ev:
  336|      1|      PrimeOrderCurveImpl() : m_mul_by_g(C::G) {}
pcurves_secp256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE19field_element_bytesEv:
   36|    130|      size_t field_element_bytes() const override { return C::FieldElement::BYTES; }
pcurves_secp256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE8mul_by_gERKNS0_15PrimeOrderCurve6ScalarERNS_21RandomNumberGeneratorE:
   38|     65|      ProjectivePoint mul_by_g(const Scalar& scalar, RandomNumberGenerator& rng) const override {
   39|     65|         return stash(m_mul_by_g.mul(from_stash(scalar), rng));
   40|     65|      }
pcurves_secp256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE5stashERKNS_20ProjectiveCurvePointINS_6IntModINS2_12Secp256r1RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEESA_EE:
  370|     65|      static ProjectivePoint stash(const typename C::ProjectivePoint& pt) {
  371|     65|         auto x_w = pt.x().template stash_value<StorageWords>();
  372|     65|         auto y_w = pt.y().template stash_value<StorageWords>();
  373|     65|         auto z_w = pt.z().template stash_value<StorageWords>();
  374|     65|         return ProjectivePoint::_create(instance(), x_w, y_w, z_w);
  375|     65|      }
pcurves_secp256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE10from_stashERKNS0_15PrimeOrderCurve6ScalarE:
  348|    195|      static typename C::Scalar from_stash(const Scalar& s) {
  349|    195|         if(s._curve() != instance()) {
  ------------------
  |  Branch (349:13): [True: 0, False: 195]
  ------------------
  350|      0|            throw Invalid_Argument("Curve mismatch");
  351|      0|         }
  352|    195|         return C::Scalar::from_stash(s._value());
  353|    195|      }
pcurves_secp256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE5stashERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS2_12Secp256r1RepEE12ScalarParamsEEEEE:
  344|     65|      static Scalar stash(const typename C::Scalar& s) {
  345|     65|         return Scalar::_create(instance(), s.template stash_value<StorageWords>());
  346|     65|      }
pcurves_secp256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE10from_stashERKNS0_15PrimeOrderCurve11AffinePointE:
  361|    130|      static typename C::AffinePoint from_stash(const AffinePoint& pt) {
  362|    130|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (362:13): [True: 0, False: 130]
  ------------------
  363|      0|            throw Invalid_Argument("Curve mismatch");
  364|      0|         }
  365|    130|         auto x = C::FieldElement::from_stash(pt._x());
  366|    130|         auto y = C::FieldElement::from_stash(pt._y());
  367|    130|         return typename C::AffinePoint(x, y);
  368|    130|      }
pcurves_secp256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE5stashERKNS_16AffineCurvePointINS_6IntModINS2_12Secp256r1RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEEEE:
  355|     65|      static AffinePoint stash(const typename C::AffinePoint& pt) {
  356|     65|         auto x_w = pt.x().template stash_value<StorageWords>();
  357|     65|         auto y_w = pt.y().template stash_value<StorageWords>();
  358|     65|         return AffinePoint::_create(instance(), x_w, y_w);
  359|     65|      }
pcurves_secp256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE18deserialize_scalarENSt3__14spanIKhLm18446744073709551615EEE:
  224|     66|      std::optional<Scalar> deserialize_scalar(std::span<const uint8_t> bytes) const override {
  225|     66|         if(auto scalar = C::Scalar::deserialize(bytes)) {
  ------------------
  |  Branch (225:18): [True: 66, False: 0]
  ------------------
  226|     66|            if(!scalar->is_zero().as_bool()) {
  ------------------
  |  Branch (226:16): [True: 65, False: 1]
  ------------------
  227|     65|               return stash(*scalar);
  228|     65|            }
  229|     66|         }
  230|       |
  231|      1|         return {};
  232|     66|      }
pcurves_secp256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE15point_to_affineERKNS0_15PrimeOrderCurve15ProjectivePointE:
  192|     65|      AffinePoint point_to_affine(const ProjectivePoint& pt) const override {
  193|     65|         auto affine = to_affine<C>(from_stash(pt));
  194|       |
  195|     65|         const auto y2 = affine.y().square();
  196|     65|         const auto x3_ax_b = C::x3_ax_b(affine.x());
  197|     65|         const auto valid_point = affine.is_identity() || (y2 == x3_ax_b);
  198|       |
  199|     65|         BOTAN_ASSERT(valid_point.as_bool(), "Computed point is on the curve");
  ------------------
  |  |   64|     65|   do {                                                                                 \
  |  |   65|     65|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|     65|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 65]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|     65|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 65]
  |  |  ------------------
  ------------------
  200|       |
  201|     65|         return stash(affine);
  202|     65|      }
pcurves_secp256r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE10from_stashERKNS0_15PrimeOrderCurve15ProjectivePointE:
  377|     65|      static typename C::ProjectivePoint from_stash(const ProjectivePoint& pt) {
  378|     65|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (378:13): [True: 0, False: 65]
  ------------------
  379|      0|            throw Invalid_Argument("Curve mismatch");
  380|      0|         }
  381|     65|         auto x = C::FieldElement::from_stash(pt._x());
  382|     65|         auto y = C::FieldElement::from_stash(pt._y());
  383|     65|         auto z = C::FieldElement::from_stash(pt._z());
  384|     65|         return typename C::ProjectivePoint(x, y, z);
  385|     65|      }
pcurves_secp256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE24affine_point_is_identityERKNS0_15PrimeOrderCurve11AffinePointE:
  210|     65|      bool affine_point_is_identity(const AffinePoint& pt) const override {
  211|     65|         return from_stash(pt).is_identity().as_bool();
  212|     65|      }
pcurves_secp256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE15serialize_pointENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve11AffinePointE:
  214|     65|      void serialize_point(std::span<uint8_t> bytes, const AffinePoint& pt) const override {
  215|     65|         BOTAN_ARG_CHECK(bytes.size() == C::AffinePoint::BYTES, "Invalid length for serialize_point");
  ------------------
  |  |   35|     65|   do {                                                          \
  |  |   36|     65|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|     65|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 65]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|     65|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 65]
  |  |  ------------------
  ------------------
  216|     65|         from_stash(pt).serialize_to(bytes.subspan<0, C::AffinePoint::BYTES>());
  217|     65|      }
pcurves_secp256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE16serialize_scalarENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve6ScalarE:
  219|     65|      void serialize_scalar(std::span<uint8_t> bytes, const Scalar& scalar) const override {
  220|     65|         BOTAN_ARG_CHECK(bytes.size() == C::Scalar::BYTES, "Invalid length to serialize_scalar");
  ------------------
  |  |   35|     65|   do {                                                          \
  |  |   36|     65|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|     65|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 65]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|     65|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 65]
  |  |  ------------------
  ------------------
  221|     65|         return from_stash(scalar).serialize_to(bytes.subspan<0, C::Scalar::BYTES>());
  222|     65|      }
pcurves_secp256r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp256r15CurveEE14scalar_is_zeroERKNS0_15PrimeOrderCurve6ScalarE:
  326|     65|      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:
  338|  1.75k|      static std::shared_ptr<const PrimeOrderCurve> instance() {
  339|  1.75k|         static auto g_curve = std::make_shared<const PrimeOrderCurveImpl<C>>();
  340|  1.75k|         return g_curve;
  341|  1.75k|      }
pcurves_secp384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEEC2Ev:
  336|      1|      PrimeOrderCurveImpl() : m_mul_by_g(C::G) {}
pcurves_secp384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE19field_element_bytesEv:
   36|    334|      size_t field_element_bytes() const override { return C::FieldElement::BYTES; }
pcurves_secp384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE8mul_by_gERKNS0_15PrimeOrderCurve6ScalarERNS_21RandomNumberGeneratorE:
   38|    167|      ProjectivePoint mul_by_g(const Scalar& scalar, RandomNumberGenerator& rng) const override {
   39|    167|         return stash(m_mul_by_g.mul(from_stash(scalar), rng));
   40|    167|      }
pcurves_secp384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE5stashERKNS_20ProjectiveCurvePointINS_6IntModINS2_12Secp384r1RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEESA_EE:
  370|    167|      static ProjectivePoint stash(const typename C::ProjectivePoint& pt) {
  371|    167|         auto x_w = pt.x().template stash_value<StorageWords>();
  372|    167|         auto y_w = pt.y().template stash_value<StorageWords>();
  373|    167|         auto z_w = pt.z().template stash_value<StorageWords>();
  374|    167|         return ProjectivePoint::_create(instance(), x_w, y_w, z_w);
  375|    167|      }
pcurves_secp384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE10from_stashERKNS0_15PrimeOrderCurve6ScalarE:
  348|    539|      static typename C::Scalar from_stash(const Scalar& s) {
  349|    539|         if(s._curve() != instance()) {
  ------------------
  |  Branch (349:13): [True: 0, False: 539]
  ------------------
  350|      0|            throw Invalid_Argument("Curve mismatch");
  351|      0|         }
  352|    539|         return C::Scalar::from_stash(s._value());
  353|    539|      }
pcurves_secp384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE5stashERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS2_12Secp384r1RepEE12ScalarParamsEEEEE:
  344|    186|      static Scalar stash(const typename C::Scalar& s) {
  345|    186|         return Scalar::_create(instance(), s.template stash_value<StorageWords>());
  346|    186|      }
pcurves_secp384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE10from_stashERKNS0_15PrimeOrderCurve11AffinePointE:
  361|    334|      static typename C::AffinePoint from_stash(const AffinePoint& pt) {
  362|    334|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (362:13): [True: 0, False: 334]
  ------------------
  363|      0|            throw Invalid_Argument("Curve mismatch");
  364|      0|         }
  365|    334|         auto x = C::FieldElement::from_stash(pt._x());
  366|    334|         auto y = C::FieldElement::from_stash(pt._y());
  367|    334|         return typename C::AffinePoint(x, y);
  368|    334|      }
pcurves_secp384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE5stashERKNS_16AffineCurvePointINS_6IntModINS2_12Secp384r1RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEEEE:
  355|    167|      static AffinePoint stash(const typename C::AffinePoint& pt) {
  356|    167|         auto x_w = pt.x().template stash_value<StorageWords>();
  357|    167|         auto y_w = pt.y().template stash_value<StorageWords>();
  358|    167|         return AffinePoint::_create(instance(), x_w, y_w);
  359|    167|      }
pcurves_secp384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE17deserialize_pointENSt3__14spanIKhLm18446744073709551615EEE:
  242|     19|      std::optional<AffinePoint> deserialize_point(std::span<const uint8_t> bytes) const override {
  243|       |         // The identity element (see SEC1 section 2.3.4)
  244|       |         // TODO(Botan4) remove this - we should reject the identity encoding
  245|     19|         if(bytes.size() == 1 && bytes[0] == 0x00) {
  ------------------
  |  Branch (245:13): [True: 0, False: 19]
  |  Branch (245:34): [True: 0, False: 0]
  ------------------
  246|      0|            return stash(C::AffinePoint::identity());
  247|      0|         }
  248|       |
  249|     19|         constexpr size_t FieldElementBytes = C::FieldElement::BYTES;
  250|     19|         constexpr size_t CompressedBytes = C::FieldElement::BYTES + 1;
  251|     19|         constexpr size_t UncompressedBytes = 2 * C::FieldElement::BYTES + 1;
  252|       |
  253|     19|         if(bytes.size() == UncompressedBytes && bytes[0] == 0x04) {
  ------------------
  |  Branch (253:13): [True: 0, False: 19]
  |  Branch (253:50): [True: 0, False: 0]
  ------------------
  254|      0|            const auto encoded_point = bytes.subspan(1);
  255|      0|            auto x = C::FieldElement::deserialize(encoded_point.first(FieldElementBytes));
  256|      0|            auto y = C::FieldElement::deserialize(encoded_point.last(FieldElementBytes));
  257|       |
  258|      0|            if(x && y) {
  ------------------
  |  Branch (258:16): [True: 0, False: 0]
  |  Branch (258:21): [True: 0, False: 0]
  ------------------
  259|       |               // Check that y^2 = x^3 + ax + b
  260|      0|               const auto lhs = (*y).square();
  261|      0|               const auto rhs = C::x3_ax_b(*x);
  262|      0|               const auto valid = (lhs == rhs);
  263|      0|               if(valid.as_bool()) {
  ------------------
  |  Branch (263:19): [True: 0, False: 0]
  ------------------
  264|      0|                  return stash(typename C::AffinePoint(*x, *y));
  265|      0|               }
  266|      0|            }
  267|     19|         } else if(bytes.size() == CompressedBytes && (bytes[0] == 0x02 || bytes[0] == 0x03)) {
  ------------------
  |  Branch (267:20): [True: 0, False: 19]
  |  Branch (267:56): [True: 0, False: 0]
  |  Branch (267:76): [True: 0, False: 0]
  ------------------
  268|      0|            const CT::Choice y_is_even = CT::Mask<uint8_t>::is_equal(bytes[0], 0x02).as_choice();
  269|       |
  270|      0|            if(auto x = C::FieldElement::deserialize(bytes.subspan(1, FieldElementBytes))) {
  ------------------
  |  Branch (270:21): [True: 0, False: 0]
  ------------------
  271|      0|               if(auto y = sqrt_field_element<C>(C::x3_ax_b(*x)).as_optional_vartime()) {
  ------------------
  |  Branch (271:24): [True: 0, False: 0]
  ------------------
  272|      0|                  return stash(typename C::AffinePoint(*x, y->correct_sign(y_is_even)));
  273|      0|               }
  274|      0|            }
  275|      0|         }
  276|       |
  277|     19|         return {};
  278|     19|      }
pcurves_secp384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE18deserialize_scalarENSt3__14spanIKhLm18446744073709551615EEE:
  224|    187|      std::optional<Scalar> deserialize_scalar(std::span<const uint8_t> bytes) const override {
  225|    187|         if(auto scalar = C::Scalar::deserialize(bytes)) {
  ------------------
  |  Branch (225:18): [True: 187, False: 0]
  ------------------
  226|    187|            if(!scalar->is_zero().as_bool()) {
  ------------------
  |  Branch (226:16): [True: 186, False: 1]
  ------------------
  227|    186|               return stash(*scalar);
  228|    186|            }
  229|    187|         }
  230|       |
  231|      1|         return {};
  232|    187|      }
pcurves_secp384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE15point_to_affineERKNS0_15PrimeOrderCurve15ProjectivePointE:
  192|    167|      AffinePoint point_to_affine(const ProjectivePoint& pt) const override {
  193|    167|         auto affine = to_affine<C>(from_stash(pt));
  194|       |
  195|    167|         const auto y2 = affine.y().square();
  196|    167|         const auto x3_ax_b = C::x3_ax_b(affine.x());
  197|    167|         const auto valid_point = affine.is_identity() || (y2 == x3_ax_b);
  198|       |
  199|    167|         BOTAN_ASSERT(valid_point.as_bool(), "Computed point is on the curve");
  ------------------
  |  |   64|    167|   do {                                                                                 \
  |  |   65|    167|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|    167|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 167]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|    167|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 167]
  |  |  ------------------
  ------------------
  200|       |
  201|    167|         return stash(affine);
  202|    167|      }
pcurves_secp384r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE10from_stashERKNS0_15PrimeOrderCurve15ProjectivePointE:
  377|    167|      static typename C::ProjectivePoint from_stash(const ProjectivePoint& pt) {
  378|    167|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (378:13): [True: 0, False: 167]
  ------------------
  379|      0|            throw Invalid_Argument("Curve mismatch");
  380|      0|         }
  381|    167|         auto x = C::FieldElement::from_stash(pt._x());
  382|    167|         auto y = C::FieldElement::from_stash(pt._y());
  383|    167|         auto z = C::FieldElement::from_stash(pt._z());
  384|    167|         return typename C::ProjectivePoint(x, y, z);
  385|    167|      }
pcurves_secp384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE24affine_point_is_identityERKNS0_15PrimeOrderCurve11AffinePointE:
  210|    167|      bool affine_point_is_identity(const AffinePoint& pt) const override {
  211|    167|         return from_stash(pt).is_identity().as_bool();
  212|    167|      }
pcurves_secp384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE15serialize_pointENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve11AffinePointE:
  214|    167|      void serialize_point(std::span<uint8_t> bytes, const AffinePoint& pt) const override {
  215|    167|         BOTAN_ARG_CHECK(bytes.size() == C::AffinePoint::BYTES, "Invalid length for serialize_point");
  ------------------
  |  |   35|    167|   do {                                                          \
  |  |   36|    167|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    167|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 167]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    167|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 167]
  |  |  ------------------
  ------------------
  216|    167|         from_stash(pt).serialize_to(bytes.subspan<0, C::AffinePoint::BYTES>());
  217|    167|      }
pcurves_secp384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE16serialize_scalarENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve6ScalarE:
  219|    186|      void serialize_scalar(std::span<uint8_t> bytes, const Scalar& scalar) const override {
  220|    186|         BOTAN_ARG_CHECK(bytes.size() == C::Scalar::BYTES, "Invalid length to serialize_scalar");
  ------------------
  |  |   35|    186|   do {                                                          \
  |  |   36|    186|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    186|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 186]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    186|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 186]
  |  |  ------------------
  ------------------
  221|    186|         return from_stash(scalar).serialize_to(bytes.subspan<0, C::Scalar::BYTES>());
  222|    186|      }
pcurves_secp384r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp384r15CurveEE14scalar_is_zeroERKNS0_15PrimeOrderCurve6ScalarE:
  326|    186|      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:
  338|  2.08k|      static std::shared_ptr<const PrimeOrderCurve> instance() {
  339|  2.08k|         static auto g_curve = std::make_shared<const PrimeOrderCurveImpl<C>>();
  340|  2.08k|         return g_curve;
  341|  2.08k|      }
pcurves_secp521r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEEC2Ev:
  336|      1|      PrimeOrderCurveImpl() : m_mul_by_g(C::G) {}
pcurves_secp521r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE19field_element_bytesEv:
   36|    350|      size_t field_element_bytes() const override { return C::FieldElement::BYTES; }
pcurves_secp521r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE8mul_by_gERKNS0_15PrimeOrderCurve6ScalarERNS_21RandomNumberGeneratorE:
   38|    174|      ProjectivePoint mul_by_g(const Scalar& scalar, RandomNumberGenerator& rng) const override {
   39|    174|         return stash(m_mul_by_g.mul(from_stash(scalar), rng));
   40|    174|      }
pcurves_secp521r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE5stashERKNS_20ProjectiveCurvePointINS_6IntModINS3_7P521RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEESA_EE:
  370|    174|      static ProjectivePoint stash(const typename C::ProjectivePoint& pt) {
  371|    174|         auto x_w = pt.x().template stash_value<StorageWords>();
  372|    174|         auto y_w = pt.y().template stash_value<StorageWords>();
  373|    174|         auto z_w = pt.z().template stash_value<StorageWords>();
  374|    174|         return ProjectivePoint::_create(instance(), x_w, y_w, z_w);
  375|    174|      }
pcurves_secp521r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE10from_stashERKNS0_15PrimeOrderCurve6ScalarE:
  348|    668|      static typename C::Scalar from_stash(const Scalar& s) {
  349|    668|         if(s._curve() != instance()) {
  ------------------
  |  Branch (349:13): [True: 0, False: 668]
  ------------------
  350|      0|            throw Invalid_Argument("Curve mismatch");
  351|      0|         }
  352|    668|         return C::Scalar::from_stash(s._value());
  353|    668|      }
pcurves_secp521r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE5stashERKNS_6IntModINS_13MontgomeryRepINS_13EllipticCurveINS3_6ParamsENS3_7P521RepEE12ScalarParamsEEEEE:
  344|    247|      static Scalar stash(const typename C::Scalar& s) {
  345|    247|         return Scalar::_create(instance(), s.template stash_value<StorageWords>());
  346|    247|      }
pcurves_secp521r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE10from_stashERKNS0_15PrimeOrderCurve11AffinePointE:
  361|    350|      static typename C::AffinePoint from_stash(const AffinePoint& pt) {
  362|    350|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (362:13): [True: 0, False: 350]
  ------------------
  363|      0|            throw Invalid_Argument("Curve mismatch");
  364|      0|         }
  365|    350|         auto x = C::FieldElement::from_stash(pt._x());
  366|    350|         auto y = C::FieldElement::from_stash(pt._y());
  367|    350|         return typename C::AffinePoint(x, y);
  368|    350|      }
pcurves_secp521r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE5stashERKNS_16AffineCurvePointINS_6IntModINS3_7P521RepINS_13EllipticCurveINS3_6ParamsES8_E11FieldParamsEEEEEEE:
  355|    175|      static AffinePoint stash(const typename C::AffinePoint& pt) {
  356|    175|         auto x_w = pt.x().template stash_value<StorageWords>();
  357|    175|         auto y_w = pt.y().template stash_value<StorageWords>();
  358|    175|         return AffinePoint::_create(instance(), x_w, y_w);
  359|    175|      }
pcurves_secp521r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE17deserialize_pointENSt3__14spanIKhLm18446744073709551615EEE:
  242|     73|      std::optional<AffinePoint> deserialize_point(std::span<const uint8_t> bytes) const override {
  243|       |         // The identity element (see SEC1 section 2.3.4)
  244|       |         // TODO(Botan4) remove this - we should reject the identity encoding
  245|     73|         if(bytes.size() == 1 && bytes[0] == 0x00) {
  ------------------
  |  Branch (245:13): [True: 0, False: 73]
  |  Branch (245:34): [True: 0, False: 0]
  ------------------
  246|      0|            return stash(C::AffinePoint::identity());
  247|      0|         }
  248|       |
  249|     73|         constexpr size_t FieldElementBytes = C::FieldElement::BYTES;
  250|     73|         constexpr size_t CompressedBytes = C::FieldElement::BYTES + 1;
  251|     73|         constexpr size_t UncompressedBytes = 2 * C::FieldElement::BYTES + 1;
  252|       |
  253|     73|         if(bytes.size() == UncompressedBytes && bytes[0] == 0x04) {
  ------------------
  |  Branch (253:13): [True: 70, False: 3]
  |  Branch (253:50): [True: 69, False: 1]
  ------------------
  254|     69|            const auto encoded_point = bytes.subspan(1);
  255|     69|            auto x = C::FieldElement::deserialize(encoded_point.first(FieldElementBytes));
  256|     69|            auto y = C::FieldElement::deserialize(encoded_point.last(FieldElementBytes));
  257|       |
  258|     69|            if(x && y) {
  ------------------
  |  Branch (258:16): [True: 66, False: 3]
  |  Branch (258:21): [True: 63, False: 3]
  ------------------
  259|       |               // Check that y^2 = x^3 + ax + b
  260|     63|               const auto lhs = (*y).square();
  261|     63|               const auto rhs = C::x3_ax_b(*x);
  262|     63|               const auto valid = (lhs == rhs);
  263|     63|               if(valid.as_bool()) {
  ------------------
  |  Branch (263:19): [True: 1, False: 62]
  ------------------
  264|      1|                  return stash(typename C::AffinePoint(*x, *y));
  265|      1|               }
  266|     63|            }
  267|     69|         } else if(bytes.size() == CompressedBytes && (bytes[0] == 0x02 || bytes[0] == 0x03)) {
  ------------------
  |  Branch (267:20): [True: 0, False: 4]
  |  Branch (267:56): [True: 0, False: 0]
  |  Branch (267:76): [True: 0, False: 0]
  ------------------
  268|      0|            const CT::Choice y_is_even = CT::Mask<uint8_t>::is_equal(bytes[0], 0x02).as_choice();
  269|       |
  270|      0|            if(auto x = C::FieldElement::deserialize(bytes.subspan(1, FieldElementBytes))) {
  ------------------
  |  Branch (270:21): [True: 0, False: 0]
  ------------------
  271|      0|               if(auto y = sqrt_field_element<C>(C::x3_ax_b(*x)).as_optional_vartime()) {
  ------------------
  |  Branch (271:24): [True: 0, False: 0]
  ------------------
  272|      0|                  return stash(typename C::AffinePoint(*x, y->correct_sign(y_is_even)));
  273|      0|               }
  274|      0|            }
  275|      0|         }
  276|       |
  277|     72|         return {};
  278|     73|      }
pcurves_secp521r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE18deserialize_scalarENSt3__14spanIKhLm18446744073709551615EEE:
  224|    250|      std::optional<Scalar> deserialize_scalar(std::span<const uint8_t> bytes) const override {
  225|    250|         if(auto scalar = C::Scalar::deserialize(bytes)) {
  ------------------
  |  Branch (225:18): [True: 248, False: 2]
  ------------------
  226|    248|            if(!scalar->is_zero().as_bool()) {
  ------------------
  |  Branch (226:16): [True: 247, False: 1]
  ------------------
  227|    247|               return stash(*scalar);
  228|    247|            }
  229|    248|         }
  230|       |
  231|      3|         return {};
  232|    250|      }
pcurves_secp521r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE15point_to_affineERKNS0_15PrimeOrderCurve15ProjectivePointE:
  192|    174|      AffinePoint point_to_affine(const ProjectivePoint& pt) const override {
  193|    174|         auto affine = to_affine<C>(from_stash(pt));
  194|       |
  195|    174|         const auto y2 = affine.y().square();
  196|    174|         const auto x3_ax_b = C::x3_ax_b(affine.x());
  197|    174|         const auto valid_point = affine.is_identity() || (y2 == x3_ax_b);
  198|       |
  199|    174|         BOTAN_ASSERT(valid_point.as_bool(), "Computed point is on the curve");
  ------------------
  |  |   64|    174|   do {                                                                                 \
  |  |   65|    174|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|    174|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 174]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|    174|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 174]
  |  |  ------------------
  ------------------
  200|       |
  201|    174|         return stash(affine);
  202|    174|      }
pcurves_secp521r1.cpp:_ZN5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE10from_stashERKNS0_15PrimeOrderCurve15ProjectivePointE:
  377|    174|      static typename C::ProjectivePoint from_stash(const ProjectivePoint& pt) {
  378|    174|         if(pt._curve() != instance()) {
  ------------------
  |  Branch (378:13): [True: 0, False: 174]
  ------------------
  379|      0|            throw Invalid_Argument("Curve mismatch");
  380|      0|         }
  381|    174|         auto x = C::FieldElement::from_stash(pt._x());
  382|    174|         auto y = C::FieldElement::from_stash(pt._y());
  383|    174|         auto z = C::FieldElement::from_stash(pt._z());
  384|    174|         return typename C::ProjectivePoint(x, y, z);
  385|    174|      }
pcurves_secp521r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE24affine_point_is_identityERKNS0_15PrimeOrderCurve11AffinePointE:
  210|    175|      bool affine_point_is_identity(const AffinePoint& pt) const override {
  211|    175|         return from_stash(pt).is_identity().as_bool();
  212|    175|      }
pcurves_secp521r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE15serialize_pointENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve11AffinePointE:
  214|    175|      void serialize_point(std::span<uint8_t> bytes, const AffinePoint& pt) const override {
  215|    175|         BOTAN_ARG_CHECK(bytes.size() == C::AffinePoint::BYTES, "Invalid length for serialize_point");
  ------------------
  |  |   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]
  |  |  ------------------
  ------------------
  216|    175|         from_stash(pt).serialize_to(bytes.subspan<0, C::AffinePoint::BYTES>());
  217|    175|      }
pcurves_secp521r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE16serialize_scalarENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve6ScalarE:
  219|    247|      void serialize_scalar(std::span<uint8_t> bytes, const Scalar& scalar) const override {
  220|    247|         BOTAN_ARG_CHECK(bytes.size() == C::Scalar::BYTES, "Invalid length to serialize_scalar");
  ------------------
  |  |   35|    247|   do {                                                          \
  |  |   36|    247|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    247|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 247]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    247|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 247]
  |  |  ------------------
  ------------------
  221|    247|         return from_stash(scalar).serialize_to(bytes.subspan<0, C::Scalar::BYTES>());
  222|    247|      }
pcurves_secp521r1.cpp:_ZNK5Botan6PCurve19PrimeOrderCurveImplINS0_12_GLOBAL__N_19secp521r15CurveEE14scalar_is_zeroERKNS0_15PrimeOrderCurve6ScalarE:
  326|    247|      bool scalar_is_zero(const Scalar& s) const override { return from_stash(s).is_zero().as_bool(); }

_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EEC2EOS4_:
  409|    948|      PolynomialVector(ThisPolynomialVector&& other) noexcept = default;
_ZNK5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EE4sizeEv:
  414|    901|      size_t size() const { return m_vec.size(); }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EED2Ev:
  412|  1.42k|      ~PolynomialVector() = default;
_ZN5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE0EED2Ev:
  274|  8.83k|      ~Polynomial() = default;
_ZN5Botan8CRYSTALS3nttITkNS0_14crystals_traitENS_19DilithiumPolyTraitsEEENS0_16PolynomialVectorIT_LNS0_6DomainE1EEENS3_IS4_LS5_0EEE:
  574|     79|PolynomialVector<Trait, Domain::NTT> ntt(PolynomialVector<Trait, Domain::Normal> polyvec) {
  575|     79|   auto polyvec_ntt = detail::domain_cast<Domain::NTT>(std::move(polyvec));
  576|    439|   for(auto& poly : polyvec_ntt) {
  ------------------
  |  Branch (576:19): [True: 439, False: 79]
  ------------------
  577|    439|      Trait::ntt(poly.coefficients());
  578|    439|   }
  579|     79|   return polyvec_ntt;
  580|     79|}
_ZN5Botan8CRYSTALS6detail11domain_castILNS0_6DomainE1ETtTyTnS3_ENS0_16PolynomialVectorETkNS0_14crystals_traitENS_19DilithiumPolyTraitsELS3_0EQneT_T2_EET0_IT1_XT_EEOS6_IS7_XT2_EE:
  163|     79|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|     79|   return StructureT<Trait, To>::from_domain_cast(std::move(p));
  168|     79|}
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE1EE16from_domain_castILS3_0EQneT0_TL0__EES4_ONS1_IS2_XT_EEE:
  396|     79|      static PolynomialVector<Trait, D> from_domain_cast(PolynomialVector<Trait, OtherD>&& other) {
  397|     79|         return PolynomialVector<Trait, D>(std::move(other));
  398|     79|      }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE1EEC2ILS3_0EQneT0_TL0__EEONS1_IS2_XT_EEE:
  379|     79|            m_polys_storage(std::move(other.m_polys_storage)) {
  380|     79|         BOTAN_DEBUG_ASSERT(m_polys_storage.size() % Trait::N == 0);
  ------------------
  |  |  130|     79|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|     79|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 79]
  |  |  ------------------
  ------------------
  381|     79|         const size_t vecsize = m_polys_storage.size() / Trait::N;
  382|    518|         for(size_t i = 0; i < vecsize; ++i) {
  ------------------
  |  Branch (382:28): [True: 439, False: 79]
  ------------------
  383|    439|            m_vec.emplace_back(
  384|    439|               Polynomial<Trait, D>(std::span{m_polys_storage}.subspan(i * Trait::N).template first<Trait::N>()));
  385|    439|         }
  386|     79|      }
_ZN5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE1EEC2EOS4_:
  261|  8.23k|            m_coeffs_storage(std::move(other.m_coeffs_storage)), m_coeffs(other.m_coeffs) {}
_ZN5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE1EEC2ENSt3__14spanIiLm256EEE:
  256|  3.87k|      explicit Polynomial(std::span<T, Trait::N> coeffs) : m_coeffs(coeffs) { BOTAN_DEBUG_ASSERT(!owns_storage()); }
  ------------------
  |  |  130|  3.87k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  3.87k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 3.87k]
  |  |  ------------------
  ------------------
_ZN5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE1EED2Ev:
  274|  12.1k|      ~Polynomial() = default;
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE1EE5beginEv:
  481|     79|      decltype(auto) begin() { return m_vec.begin(); }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE1EE3endEv:
  485|     79|      decltype(auto) end() { return m_vec.end(); }
_ZN5Botan8CRYSTALS10Trait_BaseINS_18DilithiumConstantsENS_19DilithiumPolyTraitsEE5fqmulEii:
   96|  1.84M|      static constexpr T fqmul(T a, T b) { return DerivedT::montgomery_reduce_coefficient(static_cast<T2>(a) * b); }
_ZN5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE1EE12coefficientsEv:
  302|  1.45k|      std::span<T, Trait::N> coefficients() { return m_coeffs; }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EEC2Em:
  401|    395|      explicit PolynomialVector(size_t vecsize) : m_polys_storage(vecsize * Trait::N) {
  402|  2.79k|         for(size_t i = 0; i < vecsize; ++i) {
  ------------------
  |  Branch (402:28): [True: 2.39k, False: 395]
  ------------------
  403|  2.39k|            m_vec.emplace_back(
  404|  2.39k|               Polynomial<Trait, D>(std::span{m_polys_storage}.subspan(i * Trait::N).template first<Trait::N>()));
  405|  2.39k|         }
  406|    395|      }
_ZN5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE0EEC2EOS4_:
  261|  5.93k|            m_coeffs_storage(std::move(other.m_coeffs_storage)), m_coeffs(other.m_coeffs) {}
_ZN5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE0EEC2ENSt3__14spanIiLm256EEE:
  256|  2.90k|      explicit Polynomial(std::span<T, Trait::N> coeffs) : m_coeffs(coeffs) { BOTAN_DEBUG_ASSERT(!owns_storage()); }
  ------------------
  |  |  130|  2.90k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  2.90k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 2.90k]
  |  |  ------------------
  ------------------
_ZNK5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EEixEm:
  479|   259k|      const Polynomial<Trait, D>& operator[](size_t i) const { return m_vec[i]; }
_ZNK5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE0EEixEm:
  308|   259k|      T operator[](size_t i) const { return m_coeffs[i]; }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EEixEm:
  477|   259k|      Polynomial<Trait, D>& operator[](size_t i) { return m_vec[i]; }
_ZN5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE0EEixEm:
  306|   259k|      T& operator[](size_t i) { return m_coeffs[i]; }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE1EED2Ev:
  412|    743|      ~PolynomialVector() = default;
_ZN5Botan8CRYSTALS16PolynomialMatrixINS_19DilithiumPolyTraitsEED2Ev:
  509|     79|      ~PolynomialMatrix() = default;
_ZN5Botan8CRYSTALSmlITkNS0_14crystals_traitENS_19DilithiumPolyTraitsEEENS0_16PolynomialVectorIT_LNS0_6DomainE1EEERKNS0_16PolynomialMatrixIS4_EERKS6_:
  618|     79|                                               const PolynomialVector<Trait, Domain::NTT>& vec) {
  619|     79|   PolynomialVector<Trait, Domain::NTT> result(mat.size());
  620|    585|   for(size_t i = 0; i < mat.size(); ++i) {
  ------------------
  |  Branch (620:22): [True: 506, False: 79]
  ------------------
  621|    506|      Trait::polyvec_pointwise_acc_montgomery(result[i].coefficients(), mat[i].coefficients(), vec.coefficients());
  622|    506|   }
  623|     79|   return result;
  624|     79|}
_ZNK5Botan8CRYSTALS16PolynomialMatrixINS_19DilithiumPolyTraitsEE4sizeEv:
  511|    664|      size_t size() const { return m_mat.size(); }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE1EEC2Em:
  401|    585|      explicit PolynomialVector(size_t vecsize) : m_polys_storage(vecsize * Trait::N) {
  402|  4.02k|         for(size_t i = 0; i < vecsize; ++i) {
  ------------------
  |  Branch (402:28): [True: 3.43k, False: 585]
  ------------------
  403|  3.43k|            m_vec.emplace_back(
  404|  3.43k|               Polynomial<Trait, D>(std::span{m_polys_storage}.subspan(i * Trait::N).template first<Trait::N>()));
  405|  3.43k|         }
  406|    585|      }
_ZN5Botan8CRYSTALS10Trait_BaseINS_18DilithiumConstantsENS_19DilithiumPolyTraitsEE32polyvec_pointwise_acc_montgomeryENSt3__14spanIiLm256EEENS6_IKiLm18446744073709551615EEES9_:
  131|    506|                                                             std::span<const T> v) {
  132|    506|         clear_mem(w);
  133|    506|         std::array<T, N> t{};
  134|  3.43k|         for(size_t i = 0; i < polys_in_polyvec(u); ++i) {
  ------------------
  |  Branch (134:28): [True: 2.93k, False: 506]
  ------------------
  135|  2.93k|            DerivedT::poly_pointwise_montgomery(t, poly_in_polyvec(u, i), poly_in_polyvec(v, i));
  136|  2.93k|            poly_add(w, w, t);
  137|  2.93k|         }
  138|    506|         barrett_reduce(w);
  139|    506|      }
_ZN5Botan8CRYSTALS10Trait_BaseINS_18DilithiumConstantsENS_19DilithiumPolyTraitsEE16polys_in_polyvecENSt3__14spanIKiLm18446744073709551615EEE:
   81|  3.43k|      static constexpr size_t polys_in_polyvec(std::span<const T> polyvec) {
   82|  3.43k|         BOTAN_DEBUG_ASSERT(polyvec.size() % N == 0);
  ------------------
  |  |  130|  3.43k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  3.43k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 3.43k]
  |  |  ------------------
  ------------------
   83|  3.43k|         return polyvec.size() / N;
   84|  3.43k|      }
_ZN5Botan8CRYSTALS10Trait_BaseINS_18DilithiumConstantsENS_19DilithiumPolyTraitsEE15poly_in_polyvecIKiQoosr3stdE7same_asINT_1TETL0__Esr3stdE7same_asIKS8_S9_EEENSt3__14spanIS7_Lm256EEENSC_IS7_Lm18446744073709551615EEEm:
   89|  5.86k|      static constexpr std::span<U, N> poly_in_polyvec(std::span<U> polyvec, size_t index) {
   90|  5.86k|         BOTAN_DEBUG_ASSERT(polyvec.size() % N == 0);
  ------------------
  |  |  130|  5.86k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  5.86k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 5.86k]
  |  |  ------------------
  ------------------
   91|  5.86k|         BOTAN_DEBUG_ASSERT(polyvec.size() / N > index);
  ------------------
  |  |  130|  5.86k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  5.86k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 5.86k]
  |  |  ------------------
  ------------------
   92|  5.86k|         auto polyspan = polyvec.subspan(index * N, N);
   93|  5.86k|         return std::span<U, N>{polyspan.data(), polyspan.size()};
   94|  5.86k|      }
_ZN5Botan8CRYSTALS10Trait_BaseINS_18DilithiumConstantsENS_19DilithiumPolyTraitsEE8poly_addENSt3__14spanIiLm256EEENS6_IKiLm256EEES9_:
   99|  3.43k|      static constexpr void poly_add(std::span<T, N> result, std::span<const T, N> lhs, std::span<const T, N> rhs) {
  100|   883k|         for(size_t i = 0; i < N; ++i) {
  ------------------
  |  Branch (100:28): [True: 879k, False: 3.43k]
  ------------------
  101|   879k|            result[i] = lhs[i] + rhs[i];
  102|   879k|         }
  103|  3.43k|      }
_ZN5Botan8CRYSTALS10Trait_BaseINS_18DilithiumConstantsENS_19DilithiumPolyTraitsEE14barrett_reduceENSt3__14spanIiLm256EEE:
  122|  1.01k|      constexpr static void barrett_reduce(std::span<T, N> poly) {
  123|   259k|         for(auto& coeff : poly) {
  ------------------
  |  Branch (123:26): [True: 259k, False: 1.01k]
  ------------------
  124|   259k|            coeff = DerivedT::barrett_reduce_coefficient(coeff);
  125|   259k|         }
  126|  1.01k|      }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE1EEixEm:
  477|  3.43k|      Polynomial<Trait, D>& operator[](size_t i) { return m_vec[i]; }
_ZNK5Botan8CRYSTALS16PolynomialMatrixINS_19DilithiumPolyTraitsEEixEm:
  522|    506|      const PolynomialVector<Trait, Domain::NTT>& operator[](size_t i) const { return m_mat[i]; }
_ZNK5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE1EE12coefficientsEv:
  445|  1.01k|      std::span<const T> coefficients() const { return m_polys_storage; }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE1EE6reduceEv:
  463|     79|      ThisPolynomialVector& reduce() {
  464|    506|         for(auto& p : m_vec) {
  ------------------
  |  Branch (464:22): [True: 506, False: 79]
  ------------------
  465|    506|            Trait::barrett_reduce(p.coefficients());
  466|    506|         }
  467|     79|         return *this;
  468|     79|      }
_ZN5Botan8CRYSTALS11inverse_nttITkNS0_14crystals_traitENS_19DilithiumPolyTraitsEEENS0_16PolynomialVectorIT_LNS0_6DomainE0EEENS3_IS4_LS5_1EEE:
  583|     79|PolynomialVector<Trait, Domain::Normal> inverse_ntt(PolynomialVector<Trait, Domain::NTT> polyvec_ntt) {
  584|     79|   auto polyvec = detail::domain_cast<Domain::Normal>(std::move(polyvec_ntt));
  585|    506|   for(auto& poly : polyvec) {
  ------------------
  |  Branch (585:19): [True: 506, False: 79]
  ------------------
  586|    506|      Trait::inverse_ntt(poly.coefficients());
  587|    506|   }
  588|     79|   return polyvec;
  589|     79|}
_ZN5Botan8CRYSTALS6detail11domain_castILNS0_6DomainE0ETtTyTnS3_ENS0_16PolynomialVectorETkNS0_14crystals_traitENS_19DilithiumPolyTraitsELS3_1EQneT_T2_EET0_IT1_XT_EEOS6_IS7_XT2_EE:
  163|     79|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|     79|   return StructureT<Trait, To>::from_domain_cast(std::move(p));
  168|     79|}
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EE16from_domain_castILS3_1EQneT0_TL0__EES4_ONS1_IS2_XT_EEE:
  396|     79|      static PolynomialVector<Trait, D> from_domain_cast(PolynomialVector<Trait, OtherD>&& other) {
  397|     79|         return PolynomialVector<Trait, D>(std::move(other));
  398|     79|      }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EEC2ILS3_1EQneT0_TL0__EEONS1_IS2_XT_EEE:
  379|     79|            m_polys_storage(std::move(other.m_polys_storage)) {
  380|     79|         BOTAN_DEBUG_ASSERT(m_polys_storage.size() % Trait::N == 0);
  ------------------
  |  |  130|     79|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|     79|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 79]
  |  |  ------------------
  ------------------
  381|     79|         const size_t vecsize = m_polys_storage.size() / Trait::N;
  382|    585|         for(size_t i = 0; i < vecsize; ++i) {
  ------------------
  |  Branch (382:28): [True: 506, False: 79]
  ------------------
  383|    506|            m_vec.emplace_back(
  384|    506|               Polynomial<Trait, D>(std::span{m_polys_storage}.subspan(i * Trait::N).template first<Trait::N>()));
  385|    506|         }
  386|     79|      }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EE5beginEv:
  481|    237|      decltype(auto) begin() { return m_vec.begin(); }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EE3endEv:
  485|    237|      decltype(auto) end() { return m_vec.end(); }
_ZN5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE0EE12coefficientsEv:
  302|  2.02k|      std::span<T, Trait::N> coefficients() { return m_coeffs; }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE1EEC2EOS4_:
  409|     79|      PolynomialVector(ThisPolynomialVector&& other) noexcept = default;
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EE17conditional_add_qEv:
  470|     79|      ThisPolynomialVector& conditional_add_q() {
  471|    506|         for(auto& v : m_vec) {
  ------------------
  |  Branch (471:22): [True: 506, False: 79]
  ------------------
  472|    506|            Trait::poly_cadd_q(v.coefficients());
  473|    506|         }
  474|     79|         return *this;
  475|     79|      }
_ZN5Botan8CRYSTALS10Trait_BaseINS_18DilithiumConstantsENS_19DilithiumPolyTraitsEE11poly_cadd_qENSt3__14spanIiLm256EEE:
  112|    506|      static constexpr void poly_cadd_q(std::span<T, N> coeffs) {
  113|   129k|         for(auto& coeff : coeffs) {
  ------------------
  |  Branch (113:26): [True: 129k, False: 506]
  ------------------
  114|   129k|            using unsigned_T = std::make_unsigned_t<T>;
  115|   129k|            const auto is_negative = CT::Mask<unsigned_T>::expand_top_bit(static_cast<unsigned_T>(coeff));
  116|   129k|            coeff += is_negative.if_set_return(Q);
  117|   129k|         }
  118|    506|      }
_ZNK5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EE5cloneEv:
  418|     79|      ThisPolynomialVector clone() const {
  419|     79|         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|     79|         copy_mem(res.m_polys_storage, m_polys_storage);
  425|       |
  426|     79|         return res;
  427|     79|      }
_ZNK5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE0EE18_const_time_poisonEv:
  330|    945|      void _const_time_poison() const { CT::poison(m_coeffs); }
_ZNK5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE0EE12coefficientsEv:
  304|    506|      std::span<const T, Trait::N> coefficients() const { return m_coeffs; }
_ZNK5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EE20_const_time_unpoisonEv:
  491|    316|      void _const_time_unpoison() const { CT::unpoison_range(m_vec); }
_ZNK5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE0EE20_const_time_unpoisonEv:
  332|  1.95k|      void _const_time_unpoison() const { CT::unpoison(m_coeffs); }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EEpLERKS4_:
  447|     79|      ThisPolynomialVector& operator+=(const ThisPolynomialVector& other) {
  448|     79|         BOTAN_ASSERT(m_vec.size() == other.m_vec.size(), "cannot add polynomial vectors of differing lengths");
  ------------------
  |  |   64|     79|   do {                                                                                 \
  |  |   65|     79|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|     79|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 79]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|     79|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 79]
  |  |  ------------------
  ------------------
  449|    585|         for(size_t i = 0; i < m_vec.size(); ++i) {
  ------------------
  |  Branch (449:28): [True: 506, False: 79]
  ------------------
  450|    506|            Trait::poly_add(m_vec[i].coefficients(), m_vec[i].coefficients(), other.m_vec[i].coefficients());
  451|    506|         }
  452|     79|         return *this;
  453|     79|      }
_ZN5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE0EE5beginEv:
  310|    945|      decltype(auto) begin() { return m_coeffs.begin(); }
_ZN5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE0EE3endEv:
  314|    945|      decltype(auto) end() { return m_coeffs.end(); }
_ZNK5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE0EE4sizeEv:
  276|   162k|      constexpr size_t size() const { return m_coeffs.size(); }
_ZNK5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EE5beginEv:
  483|     79|      decltype(auto) begin() const { return m_vec.begin(); }
_ZNK5Botan8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS0_6DomainE0EE3endEv:
  487|     79|      decltype(auto) end() const { return m_vec.end(); }
_ZN5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE1EE5beginEv:
  310|  2.93k|      decltype(auto) begin() { return m_coeffs.begin(); }
_ZN5Botan8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS0_6DomainE1EE3endEv:
  314|  2.93k|      decltype(auto) end() { return m_coeffs.end(); }
_ZN5Botan8CRYSTALS16PolynomialMatrixINS_19DilithiumPolyTraitsEEC2Emm:
  513|     79|      PolynomialMatrix(size_t rows, size_t cols) {
  514|     79|         m_mat.reserve(rows);
  515|    585|         for(size_t i = 0; i < rows; ++i) {
  ------------------
  |  Branch (515:28): [True: 506, False: 79]
  ------------------
  516|    506|            m_mat.emplace_back(cols);
  517|    506|         }
  518|     79|      }
_ZN5Botan8CRYSTALS16PolynomialMatrixINS_19DilithiumPolyTraitsEEixEm:
  520|  2.93k|      PolynomialVector<Trait, Domain::NTT>& operator[](size_t i) { return m_mat[i]; }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EED2Ev:
  412|    350|      ~PolynomialVector() = default;
_ZN5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE1EED2Ev:
  274|  1.85k|      ~Polynomial() = default;
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EEC2Em:
  401|    133|      explicit PolynomialVector(size_t vecsize) : m_polys_storage(vecsize * Trait::N) {
  402|    587|         for(size_t i = 0; i < vecsize; ++i) {
  ------------------
  |  Branch (402:28): [True: 454, False: 133]
  ------------------
  403|    454|            m_vec.emplace_back(
  404|    454|               Polynomial<Trait, D>(std::span{m_polys_storage}.subspan(i * Trait::N).template first<Trait::N>()));
  405|    454|         }
  406|    133|      }
_ZN5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE1EEC2EOS4_:
  261|  1.19k|            m_coeffs_storage(std::move(other.m_coeffs_storage)), m_coeffs(other.m_coeffs) {}
_ZN5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE1EEC2ENSt3__14spanIsLm256EEE:
  256|    658|      explicit Polynomial(std::span<T, Trait::N> coeffs) : m_coeffs(coeffs) { BOTAN_DEBUG_ASSERT(!owns_storage()); }
  ------------------
  |  |  130|    658|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    658|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 658]
  |  |  ------------------
  ------------------
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EEC2EOS4_:
  409|    155|      PolynomialVector(ThisPolynomialVector&& other) noexcept = default;
_ZN5Botan8CRYSTALS16PolynomialMatrixINS_15KyberPolyTraitsEED2Ev:
  509|     31|      ~PolynomialMatrix() = default;
_ZN5Botan8CRYSTALS10Trait_BaseINS_14KyberConstantsENS_15KyberPolyTraitsEE5fqmulEss:
   96|   434k|      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|    408|      constexpr static void barrett_reduce(std::span<T, N> poly) {
  123|   104k|         for(auto& coeff : poly) {
  ------------------
  |  Branch (123:26): [True: 104k, False: 408]
  ------------------
  124|   104k|            coeff = DerivedT::barrett_reduce_coefficient(coeff);
  125|   104k|         }
  126|    408|      }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE0EE5beginEv:
  481|     62|      decltype(auto) begin() { return m_vec.begin(); }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE0EE3endEv:
  485|     62|      decltype(auto) end() { return m_vec.end(); }
_ZNK5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE0EE4sizeEv:
  276|  7.57k|      constexpr size_t size() const { return m_coeffs.size(); }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EE5beginEv:
  481|     93|      decltype(auto) begin() { return m_vec.begin(); }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EE3endEv:
  485|     93|      decltype(auto) end() { return m_vec.end(); }
_ZN5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE1EE5beginEv:
  310|    454|      decltype(auto) begin() { return m_coeffs.begin(); }
_ZN5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE1EE3endEv:
  314|    454|      decltype(auto) end() { return m_coeffs.end(); }
_ZNK5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE1EE4sizeEv:
  276|  6.63k|      constexpr size_t size() const { return m_coeffs.size(); }
_ZNK5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EE20_const_time_unpoisonEv:
  491|     62|      void _const_time_unpoison() const { CT::unpoison_range(m_vec); }
_ZNK5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE1EE20_const_time_unpoisonEv:
  332|    204|      void _const_time_unpoison() const { CT::unpoison(m_coeffs); }
_ZNK5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EE5beginEv:
  483|     31|      decltype(auto) begin() const { return m_vec.begin(); }
_ZNK5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EE3endEv:
  487|     31|      decltype(auto) end() const { return m_vec.end(); }
_ZNK5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE1EEixEm:
  308|  26.1k|      T operator[](size_t i) const { return m_coeffs[i]; }
_ZNK5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE1EE12coefficientsEv:
  304|    102|      std::span<const T, Trait::N> coefficients() const { return m_coeffs; }
_ZN5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE0EED2Ev:
  274|    574|      ~Polynomial() = default;
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE0EED2Ev:
  412|     62|      ~PolynomialVector() = default;
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE0EEC2Em:
  401|     62|      explicit PolynomialVector(size_t vecsize) : m_polys_storage(vecsize * Trait::N) {
  402|    266|         for(size_t i = 0; i < vecsize; ++i) {
  ------------------
  |  Branch (402:28): [True: 204, False: 62]
  ------------------
  403|    204|            m_vec.emplace_back(
  404|    204|               Polynomial<Trait, D>(std::span{m_polys_storage}.subspan(i * Trait::N).template first<Trait::N>()));
  405|    204|         }
  406|     62|      }
_ZN5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE0EEC2EOS4_:
  261|    370|            m_coeffs_storage(std::move(other.m_coeffs_storage)), m_coeffs(other.m_coeffs) {}
_ZN5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE0EEC2ENSt3__14spanIsLm256EEE:
  256|    204|      explicit Polynomial(std::span<T, Trait::N> coeffs) : m_coeffs(coeffs) { BOTAN_DEBUG_ASSERT(!owns_storage()); }
  ------------------
  |  |  130|    204|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    204|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 204]
  |  |  ------------------
  ------------------
_ZN5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE0EEixEm:
  306|  52.2k|      T& operator[](size_t i) { return m_coeffs[i]; }
_ZN5Botan8CRYSTALS3nttITkNS0_14crystals_traitENS_15KyberPolyTraitsEEENS0_16PolynomialVectorIT_LNS0_6DomainE1EEENS3_IS4_LS5_0EEE:
  574|     62|PolynomialVector<Trait, Domain::NTT> ntt(PolynomialVector<Trait, Domain::Normal> polyvec) {
  575|     62|   auto polyvec_ntt = detail::domain_cast<Domain::NTT>(std::move(polyvec));
  576|    204|   for(auto& poly : polyvec_ntt) {
  ------------------
  |  Branch (576:19): [True: 204, False: 62]
  ------------------
  577|    204|      Trait::ntt(poly.coefficients());
  578|    204|   }
  579|     62|   return polyvec_ntt;
  580|     62|}
_ZN5Botan8CRYSTALS6detail11domain_castILNS0_6DomainE1ETtTyTnS3_ENS0_16PolynomialVectorETkNS0_14crystals_traitENS_15KyberPolyTraitsELS3_0EQneT_T2_EET0_IT1_XT_EEOS6_IS7_XT2_EE:
  163|     62|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|     62|   return StructureT<Trait, To>::from_domain_cast(std::move(p));
  168|     62|}
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EE16from_domain_castILS3_0EQneT0_TL0__EES4_ONS1_IS2_XT_EEE:
  396|     62|      static PolynomialVector<Trait, D> from_domain_cast(PolynomialVector<Trait, OtherD>&& other) {
  397|     62|         return PolynomialVector<Trait, D>(std::move(other));
  398|     62|      }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EEC2ILS3_0EQneT0_TL0__EEONS1_IS2_XT_EEE:
  379|     62|            m_polys_storage(std::move(other.m_polys_storage)) {
  380|     62|         BOTAN_DEBUG_ASSERT(m_polys_storage.size() % Trait::N == 0);
  ------------------
  |  |  130|     62|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|     62|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 62]
  |  |  ------------------
  ------------------
  381|     62|         const size_t vecsize = m_polys_storage.size() / Trait::N;
  382|    266|         for(size_t i = 0; i < vecsize; ++i) {
  ------------------
  |  Branch (382:28): [True: 204, False: 62]
  ------------------
  383|    204|            m_vec.emplace_back(
  384|    204|               Polynomial<Trait, D>(std::span{m_polys_storage}.subspan(i * Trait::N).template first<Trait::N>()));
  385|    204|         }
  386|     62|      }
_ZN5Botan8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS0_6DomainE1EE12coefficientsEv:
  302|    612|      std::span<T, Trait::N> coefficients() { return m_coeffs; }
_ZN5Botan8CRYSTALSmlITkNS0_14crystals_traitENS_15KyberPolyTraitsEEENS0_16PolynomialVectorIT_LNS0_6DomainE1EEERKNS0_16PolynomialMatrixIS4_EERKS6_:
  618|     31|                                               const PolynomialVector<Trait, Domain::NTT>& vec) {
  619|     31|   PolynomialVector<Trait, Domain::NTT> result(mat.size());
  620|    133|   for(size_t i = 0; i < mat.size(); ++i) {
  ------------------
  |  Branch (620:22): [True: 102, False: 31]
  ------------------
  621|    102|      Trait::polyvec_pointwise_acc_montgomery(result[i].coefficients(), mat[i].coefficients(), vec.coefficients());
  622|    102|   }
  623|     31|   return result;
  624|     31|}
_ZNK5Botan8CRYSTALS16PolynomialMatrixINS_15KyberPolyTraitsEE4sizeEv:
  511|    164|      size_t size() const { return m_mat.size(); }
_ZN5Botan8CRYSTALS10Trait_BaseINS_14KyberConstantsENS_15KyberPolyTraitsEE32polyvec_pointwise_acc_montgomeryENSt3__14spanIsLm256EEENS6_IKsLm18446744073709551615EEES9_:
  131|    102|                                                             std::span<const T> v) {
  132|    102|         clear_mem(w);
  133|    102|         std::array<T, N> t{};
  134|    454|         for(size_t i = 0; i < polys_in_polyvec(u); ++i) {
  ------------------
  |  Branch (134:28): [True: 352, False: 102]
  ------------------
  135|    352|            DerivedT::poly_pointwise_montgomery(t, poly_in_polyvec(u, i), poly_in_polyvec(v, i));
  136|    352|            poly_add(w, w, t);
  137|    352|         }
  138|    102|         barrett_reduce(w);
  139|    102|      }
_ZN5Botan8CRYSTALS10Trait_BaseINS_14KyberConstantsENS_15KyberPolyTraitsEE16polys_in_polyvecENSt3__14spanIKsLm18446744073709551615EEE:
   81|    454|      static constexpr size_t polys_in_polyvec(std::span<const T> polyvec) {
   82|    454|         BOTAN_DEBUG_ASSERT(polyvec.size() % N == 0);
  ------------------
  |  |  130|    454|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    454|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 454]
  |  |  ------------------
  ------------------
   83|    454|         return polyvec.size() / N;
   84|    454|      }
_ZN5Botan8CRYSTALS10Trait_BaseINS_14KyberConstantsENS_15KyberPolyTraitsEE15poly_in_polyvecIKsQoosr3stdE7same_asINT_1TETL0__Esr3stdE7same_asIKS8_S9_EEENSt3__14spanIS7_Lm256EEENSC_IS7_Lm18446744073709551615EEEm:
   89|    704|      static constexpr std::span<U, N> poly_in_polyvec(std::span<U> polyvec, size_t index) {
   90|    704|         BOTAN_DEBUG_ASSERT(polyvec.size() % N == 0);
  ------------------
  |  |  130|    704|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    704|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 704]
  |  |  ------------------
  ------------------
   91|    704|         BOTAN_DEBUG_ASSERT(polyvec.size() / N > index);
  ------------------
  |  |  130|    704|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    704|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 704]
  |  |  ------------------
  ------------------
   92|    704|         auto polyspan = polyvec.subspan(index * N, N);
   93|    704|         return std::span<U, N>{polyspan.data(), polyspan.size()};
   94|    704|      }
_ZN5Botan8CRYSTALS10Trait_BaseINS_14KyberConstantsENS_15KyberPolyTraitsEE8poly_addENSt3__14spanIsLm256EEENS6_IKsLm256EEES9_:
   99|    454|      static constexpr void poly_add(std::span<T, N> result, std::span<const T, N> lhs, std::span<const T, N> rhs) {
  100|   116k|         for(size_t i = 0; i < N; ++i) {
  ------------------
  |  Branch (100:28): [True: 116k, False: 454]
  ------------------
  101|   116k|            result[i] = lhs[i] + rhs[i];
  102|   116k|         }
  103|    454|      }
_ZNK5Botan8CRYSTALS16PolynomialMatrixINS_15KyberPolyTraitsEEixEm:
  522|    102|      const PolynomialVector<Trait, Domain::NTT>& operator[](size_t i) const { return m_mat[i]; }
_ZNK5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EE12coefficientsEv:
  445|    204|      std::span<const T> coefficients() const { return m_polys_storage; }
_ZN5Botan8CRYSTALS10montgomeryITkNS0_14crystals_traitENS_15KyberPolyTraitsELNS0_6DomainE1EEENS0_16PolynomialVectorIT_XT0_EEES6_:
  598|     31|PolynomialVector<Trait, D> montgomery(PolynomialVector<Trait, D> polyvec) {
  599|    102|   for(auto& p : polyvec) {
  ------------------
  |  Branch (599:16): [True: 102, False: 31]
  ------------------
  600|    102|      detail::montgomery(p);
  601|    102|   }
  602|     31|   return polyvec;
  603|     31|}
_ZN5Botan8CRYSTALS6detail10montgomeryITkNS0_14crystals_traitENS_15KyberPolyTraitsELNS0_6DomainE1EEEvRNS0_10PolynomialIT_XT0_EEE:
  540|    102|void montgomery(Polynomial<Trait, D>& p) {
  541|  26.1k|   for(auto& c : p) {
  ------------------
  |  Branch (541:16): [True: 26.1k, False: 102]
  ------------------
  542|  26.1k|      c = Trait::to_montgomery(c);
  543|  26.1k|   }
  544|    102|}
_ZN5Botan8CRYSTALS10Trait_BaseINS_14KyberConstantsENS_15KyberPolyTraitsEE13to_montgomeryEs:
  120|  26.1k|      static constexpr T to_montgomery(T a) { return fqmul(a, MONTY_SQUARED); }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EEpLERKS4_:
  447|     31|      ThisPolynomialVector& operator+=(const ThisPolynomialVector& other) {
  448|     31|         BOTAN_ASSERT(m_vec.size() == other.m_vec.size(), "cannot add polynomial vectors of differing lengths");
  ------------------
  |  |   64|     31|   do {                                                                                 \
  |  |   65|     31|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|     31|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 31]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|     31|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 31]
  |  |  ------------------
  ------------------
  449|    133|         for(size_t i = 0; i < m_vec.size(); ++i) {
  ------------------
  |  Branch (449:28): [True: 102, False: 31]
  ------------------
  450|    102|            Trait::poly_add(m_vec[i].coefficients(), m_vec[i].coefficients(), other.m_vec[i].coefficients());
  451|    102|         }
  452|     31|         return *this;
  453|     31|      }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EE6reduceEv:
  463|     31|      ThisPolynomialVector& reduce() {
  464|    102|         for(auto& p : m_vec) {
  ------------------
  |  Branch (464:22): [True: 102, False: 31]
  ------------------
  465|    102|            Trait::barrett_reduce(p.coefficients());
  466|    102|         }
  467|     31|         return *this;
  468|     31|      }
_ZN5Botan8CRYSTALS16PolynomialMatrixINS_15KyberPolyTraitsEEC2Emm:
  513|     31|      PolynomialMatrix(size_t rows, size_t cols) {
  514|     31|         m_mat.reserve(rows);
  515|    133|         for(size_t i = 0; i < rows; ++i) {
  ------------------
  |  Branch (515:28): [True: 102, False: 31]
  ------------------
  516|    102|            m_mat.emplace_back(cols);
  517|    102|         }
  518|     31|      }
_ZN5Botan8CRYSTALS16PolynomialMatrixINS_15KyberPolyTraitsEEixEm:
  520|    352|      PolynomialVector<Trait, Domain::NTT>& operator[](size_t i) { return m_mat[i]; }
_ZN5Botan8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS0_6DomainE1EEixEm:
  477|    454|      Polynomial<Trait, D>& operator[](size_t i) { return m_vec[i]; }

_ZN5Botan8CRYSTALS4packILi1023ETkNS0_14crystals_traitENS_19DilithiumPolyTraitsELNS0_6DomainE0EEEvRKNS0_10PolynomialIT0_XT1_EEERNS_13BufferStufferE:
  223|    506|constexpr void pack(const Polynomial<PolyTrait, D>& p, BufferStuffer& stuffer) {
  224|    506|   using unsigned_T = std::make_unsigned_t<typename PolyTrait::T>;
  225|    506|   pack<range>(p, stuffer, [](typename PolyTrait::T x) { return static_cast<unsigned_T>(x); });
  226|    506|}
_ZN5Botan8CRYSTALS4packILi1023ETkNS0_14crystals_traitENS_19DilithiumPolyTraitsELNS0_6DomainE0ETkNS0_12coeff_map_fnINT0_1TEEEZNS0_4packILi1023ETkNS0_14crystals_traitES2_LS3_0EEEvRKNS0_10PolynomialIS5_XT1_EEERNS_13BufferStufferEEUliE_EEvSB_SD_T2_:
  117|    506|constexpr void pack(const Polynomial<PolyTrait, D>& p, BufferStuffer& stuffer, MapFnT map) {
  118|    506|   using trait = BitPackingTrait<range, PolyTrait>;
  119|       |
  120|    506|   BOTAN_DEBUG_ASSERT(stuffer.remaining_capacity() >= p.size() * trait::bits_per_coeff / 8);
  ------------------
  |  |  130|    506|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    506|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 506]
  |  |  ------------------
  ------------------
  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|  32.8k|   for(size_t i = 0; i < p.size(); i += trait::coeffs_per_pack) {
  ------------------
  |  Branch (134:22): [True: 32.3k, False: 506]
  ------------------
  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|  32.3k|      typename trait::collector_array collectors = {0};
  139|   161k|      for(size_t j = 0, bit_offset = 0, c = 0; j < trait::coeffs_per_pack; ++j) {
  ------------------
  |  Branch (139:48): [True: 129k, False: 32.3k]
  ------------------
  140|       |         // Transform p[i] via a custom map function (that may be a NOOP).
  141|   129k|         const typename trait::unsigned_T mapped_coeff = map(p[i + j]);
  142|   129k|         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|   129k|         BOTAN_DEBUG_ASSERT(coeff_value <= range);
  ------------------
  |  |  130|   129k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|   129k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 129k]
  |  |  ------------------
  ------------------
  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|   129k|         collectors[c] |= coeff_value << bit_offset;
  152|   129k|         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|   129k|         if(bit_offset > trait::bits_in_collector) {
  ------------------
  |  Branch (157:13): [True: 0, False: 129k]
  ------------------
  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|   129k|      }
  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|  32.3k|      const auto bytes = store_le(collectors);
  167|  32.3k|      stuffer.append(std::span{bytes}.template first<trait::bytes_per_pack>());
  168|  32.3k|   }
  169|    506|}
_ZZN5Botan8CRYSTALS4packILi1023ETkNS0_14crystals_traitENS_19DilithiumPolyTraitsELNS0_6DomainE0EEEvRKNS0_10PolynomialIT0_XT1_EEERNS_13BufferStufferEENKUliE_clEi:
  225|   129k|   pack<range>(p, stuffer, [](typename PolyTrait::T x) { return static_cast<unsigned_T>(x); });
_ZN5Botan8CRYSTALS4packILi3328ETkNS0_14crystals_traitENS_15KyberPolyTraitsELNS0_6DomainE1EEEvRKNS0_10PolynomialIT0_XT1_EEERNS_13BufferStufferE:
  223|    102|constexpr void pack(const Polynomial<PolyTrait, D>& p, BufferStuffer& stuffer) {
  224|    102|   using unsigned_T = std::make_unsigned_t<typename PolyTrait::T>;
  225|    102|   pack<range>(p, stuffer, [](typename PolyTrait::T x) { return static_cast<unsigned_T>(x); });
  226|    102|}
_ZN5Botan8CRYSTALS4packILi3328ETkNS0_14crystals_traitENS_15KyberPolyTraitsELNS0_6DomainE1ETkNS0_12coeff_map_fnINT0_1TEEEZNS0_4packILi3328ETkNS0_14crystals_traitES2_LS3_1EEEvRKNS0_10PolynomialIS5_XT1_EEERNS_13BufferStufferEEUlsE_EEvSB_SD_T2_:
  117|    102|constexpr void pack(const Polynomial<PolyTrait, D>& p, BufferStuffer& stuffer, MapFnT map) {
  118|    102|   using trait = BitPackingTrait<range, PolyTrait>;
  119|       |
  120|    102|   BOTAN_DEBUG_ASSERT(stuffer.remaining_capacity() >= p.size() * trait::bits_per_coeff / 8);
  ------------------
  |  |  130|    102|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    102|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 102]
  |  |  ------------------
  ------------------
  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|  6.63k|   for(size_t i = 0; i < p.size(); i += trait::coeffs_per_pack) {
  ------------------
  |  Branch (134:22): [True: 6.52k, False: 102]
  ------------------
  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|  6.52k|      typename trait::collector_array collectors = {0};
  139|  32.6k|      for(size_t j = 0, bit_offset = 0, c = 0; j < trait::coeffs_per_pack; ++j) {
  ------------------
  |  Branch (139:48): [True: 26.1k, False: 6.52k]
  ------------------
  140|       |         // Transform p[i] via a custom map function (that may be a NOOP).
  141|  26.1k|         const typename trait::unsigned_T mapped_coeff = map(p[i + j]);
  142|  26.1k|         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|  26.1k|         BOTAN_DEBUG_ASSERT(coeff_value <= range);
  ------------------
  |  |  130|  26.1k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  26.1k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 26.1k]
  |  |  ------------------
  ------------------
  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|  26.1k|         collectors[c] |= coeff_value << bit_offset;
  152|  26.1k|         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|  26.1k|         if(bit_offset > trait::bits_in_collector) {
  ------------------
  |  Branch (157:13): [True: 0, False: 26.1k]
  ------------------
  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|  26.1k|      }
  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|  6.52k|      const auto bytes = store_le(collectors);
  167|  6.52k|      stuffer.append(std::span{bytes}.template first<trait::bytes_per_pack>());
  168|  6.52k|   }
  169|    102|}
_ZZN5Botan8CRYSTALS4packILi3328ETkNS0_14crystals_traitENS_15KyberPolyTraitsELNS0_6DomainE1EEEvRKNS0_10PolynomialIT0_XT1_EEERNS_13BufferStufferEENKUlsE_clEs:
  225|  26.1k|   pack<range>(p, stuffer, [](typename PolyTrait::T x) { return static_cast<unsigned_T>(x); });

_ZN5Botan6bitlenEm:
  101|    903|constexpr auto bitlen(size_t x) {
  102|    903|   return ceil_log2(x + 1);
  103|    903|}
_ZN5Botan6detail11Bounded_XOFIRNS_3XOFELm894EEC2ES3_:
  173|  2.93k|      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|   750k|                          const PredicateFnT& predicate = default_predicate<bytes, MappedValueT<bytes, MapFnT>>) {
  196|   750k|         while(true) {
  ------------------
  |  Branch (196:16): [True: 750k, Folded]
  ------------------
  197|   750k|            auto output = transformer(take<bytes>());
  198|   750k|            if(predicate(output)) {
  ------------------
  |  Branch (198:16): [True: 750k, False: 732]
  ------------------
  199|   750k|               return output;
  200|   750k|            }
  201|   750k|         }
  202|   750k|      }
_ZN5Botan6detail11Bounded_XOFIRNS_3XOFELm894EE4takeILm3EEENSt3__15arrayIhXT_EEEv:
  206|   750k|      constexpr std::array<uint8_t, bytes> take() {
  207|   750k|         m_bytes_consumed += bytes;
  208|   750k|         if(m_bytes_consumed > bound) {
  ------------------
  |  Branch (208:13): [True: 0, False: 750k]
  ------------------
  209|      0|            throw Internal_Error("XOF consumed more bytes than allowed");
  210|      0|         }
  211|   750k|         return m_xof.template output<bytes>();
  212|   750k|      }
_ZN5Botan6detail11Bounded_XOFIRNS_3XOFELm481EEC2ES3_:
  173|    945|      explicit Bounded_XOF(XofT xof) : m_xof(xof), m_bytes_consumed(0) {}
_ZN5Botan6detail11Bounded_XOFIRNS_3XOFELm481EE9next_byteIFbhEQsr3stdE9invocableITL0__hEEEDaOT_:
  180|   168k|      constexpr auto next_byte(PredicateFnT&& predicate = default_predicate<1, uint8_t>) {
  181|   168k|         return next<1>([](const auto bytes) { return bytes[0]; }, std::forward<PredicateFnT>(predicate));
  182|   168k|      }
_ZN5Botan6detail11Bounded_XOFIRNS_3XOFELm481EE4nextILm1EZNS4_9next_byteIFbhEQsr3stdE9invocableITL0__hEEEDaOT_EUlS9_E_S7_Qaasr3stdE9invocableITL0_0_NSt3__15arrayIhXTL0__EEEEsr3stdE9invocableITL0_1_NSD_20__invoke_result_implIvJSC_SF_EE4typeEEEEDaRKT0_RKT1_:
  195|   168k|                          const PredicateFnT& predicate = default_predicate<bytes, MappedValueT<bytes, MapFnT>>) {
  196|   168k|         while(true) {
  ------------------
  |  Branch (196:16): [True: 168k, Folded]
  ------------------
  197|   168k|            auto output = transformer(take<bytes>());
  198|   168k|            if(predicate(output)) {
  ------------------
  |  Branch (198:16): [True: 168k, False: 0]
  ------------------
  199|   168k|               return output;
  200|   168k|            }
  201|   168k|         }
  202|   168k|      }
_ZZN5Botan6detail11Bounded_XOFIRNS_3XOFELm481EE9next_byteIFbhEQsr3stdE9invocableITL0__hEEEDaOT_ENKUlS8_E_clINSt3__15arrayIhLm1EEEEEDaS8_:
  181|   168k|         return next<1>([](const auto bytes) { return bytes[0]; }, std::forward<PredicateFnT>(predicate));
_ZN5Botan6detail11Bounded_XOFIRNS_3XOFELm481EE4takeILm1EEENSt3__15arrayIhXT_EEEv:
  206|   168k|      constexpr std::array<uint8_t, bytes> take() {
  207|   168k|         m_bytes_consumed += bytes;
  208|   168k|         if(m_bytes_consumed > bound) {
  ------------------
  |  Branch (208:13): [True: 0, False: 168k]
  ------------------
  209|      0|            throw Internal_Error("XOF consumed more bytes than allowed");
  210|      0|         }
  211|   168k|         return m_xof.template output<bytes>();
  212|   168k|      }
_ZN5Botan6detail11Bounded_XOFIRNS_3XOFELm481EE17default_predicateILm1EhEEbT0_:
  164|   168k|      constexpr static bool default_predicate(T /*v*/) {
  165|   168k|         return true;
  166|   168k|      }
_ZN5Botan6detail11Bounded_XOFIRNS_3XOFELm840EEC2ES3_:
  173|    352|      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|  55.8k|                          const PredicateFnT& predicate = default_predicate<bytes, MappedValueT<bytes, MapFnT>>) {
  196|  55.8k|         while(true) {
  ------------------
  |  Branch (196:16): [True: 55.8k, Folded]
  ------------------
  197|  55.8k|            auto output = transformer(take<bytes>());
  198|  55.8k|            if(predicate(output)) {
  ------------------
  |  Branch (198:16): [True: 55.8k, False: 0]
  ------------------
  199|  55.8k|               return output;
  200|  55.8k|            }
  201|  55.8k|         }
  202|  55.8k|      }
_ZN5Botan6detail11Bounded_XOFIRNS_3XOFELm840EE4takeILm3EEENSt3__15arrayIhXT_EEEv:
  206|  55.8k|      constexpr std::array<uint8_t, bytes> take() {
  207|  55.8k|         m_bytes_consumed += bytes;
  208|  55.8k|         if(m_bytes_consumed > bound) {
  ------------------
  |  Branch (208:13): [True: 0, False: 55.8k]
  ------------------
  209|      0|            throw Internal_Error("XOF consumed more bytes than allowed");
  210|      0|         }
  211|  55.8k|         return m_xof.template output<bytes>();
  212|  55.8k|      }
_ZN5Botan6detail11Bounded_XOFIRNS_3XOFELm840EE17default_predicateILm3ENSt3__14pairINS6_8optionalItEES9_EEEEbT0_:
  164|  55.8k|      constexpr static bool default_predicate(T /*v*/) {
  165|  55.8k|         return true;
  166|  55.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|}
_ZN5Botan4rotlILm21ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   464k|{
   26|   464k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   464k|}
_ZN5Botan4rotlILm1ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|  2.78M|{
   26|  2.78M|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|  2.78M|}
_ZN5Botan4rotlILm44ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   464k|{
   26|   464k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   464k|}
_ZN5Botan4rotlILm43ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   464k|{
   26|   464k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   464k|}
_ZN5Botan4rotlILm14ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   464k|{
   26|   464k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   464k|}
_ZN5Botan4rotlILm28ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   464k|{
   26|   464k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   464k|}
_ZN5Botan4rotlILm20ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   464k|{
   26|   464k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   464k|}
_ZN5Botan4rotlILm3ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   464k|{
   26|   464k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   464k|}
_ZN5Botan4rotlILm45ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   464k|{
   26|   464k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   464k|}
_ZN5Botan4rotlILm61ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   464k|{
   26|   464k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   464k|}
_ZN5Botan4rotlILm6ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   464k|{
   26|   464k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   464k|}
_ZN5Botan4rotlILm25ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   464k|{
   26|   464k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   464k|}
_ZN5Botan4rotlILm8ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   464k|{
   26|   464k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   464k|}
_ZN5Botan4rotlILm18ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   464k|{
   26|   464k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   464k|}
_ZN5Botan4rotlILm27ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   464k|{
   26|   464k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   464k|}
_ZN5Botan4rotlILm36ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   464k|{
   26|   464k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   464k|}
_ZN5Botan4rotlILm10ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   464k|{
   26|   464k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   464k|}
_ZN5Botan4rotlILm15ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   464k|{
   26|   464k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   464k|}
_ZN5Botan4rotlILm56ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   464k|{
   26|   464k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   464k|}
_ZN5Botan4rotlILm62ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   464k|{
   26|   464k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   464k|}
_ZN5Botan4rotlILm55ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   464k|{
   26|   464k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   464k|}
_ZN5Botan4rotlILm39ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   464k|{
   26|   464k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   464k|}
_ZN5Botan4rotlILm41ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   464k|{
   26|   464k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   464k|}
_ZN5Botan4rotlILm2ETkNSt3__117unsigned_integralEmEET0_S2_QaagtT_Li0EltT_mlLi8EstS2_:
   25|   464k|{
   26|   464k|   return static_cast<T>((input << ROT) | (input >> (8 * sizeof(T) - ROT)));
   27|   464k|}

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

_ZNK5Botan9SCAN_Name9arg_countEv:
   49|  4.15k|      size_t arg_count() const { return m_args.size(); }
_ZNK5Botan9SCAN_Name9algo_nameEv:
   44|  5.66k|      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|     62|      size_t output_length() const override { return m_output_length; }

_ZN5Botan13SHAKE_128_XOFC2Ev:
   52|  2.96k|      SHAKE_128_XOF() : SHAKE_XOF(256) {}
_ZN5Botan13SHAKE_256_XOFC2Ev:
   66|  1.13k|      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|  4.15k|      constexpr static size_t state_bytes() { return sizeof(state_t); }
_ZN5Botan6SpongeILm25EmE10state_bitsEv:
   45|  4.15k|      constexpr static size_t state_bits() { return state_bytes() * 8; }
_ZNK5Botan6SpongeILm25EmE9byte_rateEv:
   49|   989k|      constexpr size_t byte_rate() const { return m_bit_rate / 8; }
_ZN5Botan6SpongeILm25EmEC2ENS1_6ConfigE:
   39|  4.15k|      constexpr explicit Sponge(Config config) : m_S(config.initial_state), m_S_cursor(0), m_bit_rate(config.bit_rate) {
   40|  4.15k|         BOTAN_ARG_CHECK(m_bit_rate % word_bits == 0 && m_bit_rate < words * word_bits, "Invalid sponge bit rate");
  ------------------
  |  |   35|  4.15k|   do {                                                          \
  |  |   36|  4.15k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  8.31k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 4.15k, False: 0]
  |  |  |  Branch (37:12): [True: 4.15k, False: 0]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  4.15k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 4.15k]
  |  |  ------------------
  ------------------
   41|  4.15k|      }
_ZN5Botan6SpongeILm25EmE5stateEv:
   55|  1.45M|      constexpr auto& state() { return m_S; }
_ZN5Botan6SpongeILm25EmE12reset_cursorEv:
   62|  5.26k|      void reset_cursor() { m_S_cursor = 0; }
_ZN5Botan6SpongeILm25EmE7_cursorEv:
   59|   984k|      size_t& _cursor() { return m_S_cursor; }
_ZNK5Botan6SpongeILm25EmE6cursorEv:
   57|  9.30k|      size_t cursor() const { return m_S_cursor; }

_ZN5Botan18absorb_into_spongeITkNS_6detail28SpongeLikeWithTrivialPermuteENS_18Keccak_PermutationEEEvRT_NSt3__14spanIKhLm18446744073709551615EEE:
  233|  9.19k|inline void absorb_into_sponge(detail::SpongeLikeWithTrivialPermute auto& sponge, std::span<const uint8_t> input) {
  234|  9.19k|   absorb_into_sponge(sponge, input, [&sponge] { sponge.permute(); });
  235|  9.19k|}
_ZN5Botan18absorb_into_spongeITkNS_6detail10SpongeLikeENS_18Keccak_PermutationETkNS1_13PermutationFnEZNS_18absorb_into_spongeITkNS1_28SpongeLikeWithTrivialPermuteES2_EEvRT_NSt3__14spanIKhLm18446744073709551615EEEEUlvE_EEvS5_S9_RKT0_:
  223|  9.19k|                               const detail::PermutationFn auto& permutation_fn) {
  224|  9.19k|   using word_t = typename SpongeT::word_t;
  225|       |
  226|  9.19k|   BufferSlicer input_slicer(input);
  227|  9.19k|   process_bytes_in_sponge(sponge, input.size(), permutation_fn, [&](word_t state_word, auto bounds) {
  228|  9.19k|      return state_word ^ bounds.read_from(input_slicer);
  229|  9.19k|   });
  230|  9.19k|   BOTAN_ASSERT_NOMSG(input_slicer.empty());
  ------------------
  |  |   77|  9.19k|   do {                                                                     \
  |  |   78|  9.19k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  9.19k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 9.19k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  9.19k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 9.19k]
  |  |  ------------------
  ------------------
  231|  9.19k|}
_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|  9.19k|                                                const detail::ModifierFn<SpongeT> auto& modifier_fn) {
  140|  9.19k|   if(bytes_to_process == 0) {
  ------------------
  |  Branch (140:7): [True: 0, False: 9.19k]
  ------------------
  141|      0|      return;
  142|      0|   }
  143|       |
  144|  9.19k|   constexpr auto word_bytes = SpongeT::word_bytes;
  145|  9.19k|   const auto byte_rate = sponge.byte_rate();
  146|  9.19k|   auto& S = sponge.state();
  147|  9.19k|   auto& cursor = sponge._cursor();
  148|       |
  149|       |   // If necessary, try to get aligned with the sponge state's words array
  150|  9.19k|   const auto bytes_out_of_word_alignment = static_cast<size_t>(cursor % word_bytes);
  151|  9.19k|   if(bytes_out_of_word_alignment > 0) {
  ------------------
  |  Branch (151:7): [True: 0, False: 9.19k]
  ------------------
  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|  9.19k|   BOTAN_DEBUG_ASSERT(bytes_to_process == 0 || cursor % word_bytes == 0);
  ------------------
  |  |  130|  9.19k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  9.19k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 9.19k]
  |  |  ------------------
  ------------------
  173|       |
  174|       |   // Block-wise incorporation of the input data into the sponge state until
  175|       |   // all input bytes are processed
  176|  15.3k|   while(bytes_to_process >= word_bytes) {
  ------------------
  |  Branch (176:10): [True: 6.11k, False: 9.19k]
  ------------------
  177|       |      // Process full words until we either run out of data or reach the
  178|       |      // end of the current sponge state block
  179|  53.6k|      while(bytes_to_process >= word_bytes && cursor < byte_rate) {
  ------------------
  |  Branch (179:13): [True: 48.9k, False: 4.65k]
  |  Branch (179:47): [True: 47.5k, False: 1.46k]
  ------------------
  180|  47.5k|         S[cursor / word_bytes] = modifier_fn(S[cursor / word_bytes], detail::FullWordBounds<SpongeT>{});
  181|  47.5k|         cursor += word_bytes;
  182|  47.5k|         bytes_to_process -= word_bytes;
  183|  47.5k|      }
  184|       |
  185|  6.11k|      if(cursor == byte_rate) {
  ------------------
  |  Branch (185:10): [True: 1.46k, False: 4.65k]
  ------------------
  186|  1.46k|         permutation_fn();
  187|  1.46k|         cursor = 0;
  188|  1.46k|      }
  189|  6.11k|   }
  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|  9.19k|   BOTAN_DEBUG_ASSERT(bytes_to_process < word_bytes && cursor < byte_rate);
  ------------------
  |  |  130|  9.19k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  9.19k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 9.19k]
  |  |  ------------------
  ------------------
  195|  9.19k|   if(bytes_to_process > 0) {
  ------------------
  |  Branch (195:7): [True: 4.54k, False: 4.65k]
  ------------------
  196|  4.54k|      S[cursor / word_bytes] = modifier_fn(S[cursor / word_bytes],
  197|  4.54k|                                           detail::PartialWordBounds<SpongeT>{
  198|  4.54k|                                              .offset = 0,
  199|  4.54k|                                              .length = bytes_to_process,
  200|  4.54k|                                           });
  201|  4.54k|      cursor += bytes_to_process;
  202|  4.54k|   }
  203|  9.19k|}
_ZZN5Botan18absorb_into_spongeITkNS_6detail10SpongeLikeENS_18Keccak_PermutationETkNS1_13PermutationFnEZNS_18absorb_into_spongeITkNS1_28SpongeLikeWithTrivialPermuteES2_EEvRT_NSt3__14spanIKhLm18446744073709551615EEEEUlvE_EEvS5_S9_RKT0_ENKUlmS4_E_clINS1_17PartialWordBoundsIS2_EEEEDamS4_:
  227|  4.54k|   process_bytes_in_sponge(sponge, input.size(), permutation_fn, [&](word_t state_word, auto bounds) {
  228|  4.54k|      return state_word ^ bounds.read_from(input_slicer);
  229|  4.54k|   });
_ZNK5Botan6detail17PartialWordBoundsINS_18Keccak_PermutationEE9read_fromERNS_12BufferSlicerE:
   59|  4.54k|      word_t read_from(BufferSlicer& slicer) const {
   60|  4.54k|         std::array<uint8_t, word_bytes> partial_word_bytes{};
   61|  4.54k|         slicer.copy_into(std::span{partial_word_bytes}.subspan(offset, length));
   62|  4.54k|         return load_le(partial_word_bytes);
   63|  4.54k|      }
_ZZN5Botan18absorb_into_spongeITkNS_6detail28SpongeLikeWithTrivialPermuteENS_18Keccak_PermutationEEEvRT_NSt3__14spanIKhLm18446744073709551615EEEENKUlvE_clEv:
  234|  1.46k|   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|  47.5k|   process_bytes_in_sponge(sponge, input.size(), permutation_fn, [&](word_t state_word, auto bounds) {
  228|  47.5k|      return state_word ^ bounds.read_from(input_slicer);
  229|  47.5k|   });
_ZNK5Botan6detail14FullWordBoundsINS_18Keccak_PermutationEE9read_fromERNS_12BufferSlicerE:
   97|  47.5k|      word_t read_from(BufferSlicer& slicer) const { return load_le(slicer.take<word_bytes>()); }
_ZN5Botan19squeeze_from_spongeITkNS_6detail28SpongeLikeWithTrivialPermuteENS_18Keccak_PermutationEEEvRT_NSt3__14spanIhLm18446744073709551615EEE:
  258|   975k|inline void squeeze_from_sponge(detail::SpongeLikeWithTrivialPermute auto& sponge, std::span<uint8_t> output) {
  259|   975k|   squeeze_from_sponge(sponge, output, [&sponge] { sponge.permute(); });
  260|   975k|}
_ZN5Botan19squeeze_from_spongeITkNS_6detail10SpongeLikeENS_18Keccak_PermutationETkNS1_13PermutationFnEZNS_19squeeze_from_spongeITkNS1_28SpongeLikeWithTrivialPermuteES2_EEvRT_NSt3__14spanIhLm18446744073709551615EEEEUlvE_EEvS5_S8_RKT0_:
  247|   975k|                                const detail::PermutationFn auto& permutation_fn) {
  248|   975k|   using word_t = typename SpongeT::word_t;
  249|       |
  250|   975k|   BufferStuffer output_stuffer(output);
  251|   975k|   process_bytes_in_sponge(sponge, output.size(), permutation_fn, [&](word_t state_word, auto bounds) {
  252|   975k|      bounds.write_into(output_stuffer, state_word);
  253|   975k|      return state_word;
  254|   975k|   });
  255|   975k|   BOTAN_ASSERT_NOMSG(output_stuffer.full());
  ------------------
  |  |   77|   975k|   do {                                                                     \
  |  |   78|   975k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|   975k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 975k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|   975k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 975k]
  |  |  ------------------
  ------------------
  256|   975k|}
_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|   975k|                                                const detail::ModifierFn<SpongeT> auto& modifier_fn) {
  140|   975k|   if(bytes_to_process == 0) {
  ------------------
  |  Branch (140:7): [True: 0, False: 975k]
  ------------------
  141|      0|      return;
  142|      0|   }
  143|       |
  144|   975k|   constexpr auto word_bytes = SpongeT::word_bytes;
  145|   975k|   const auto byte_rate = sponge.byte_rate();
  146|   975k|   auto& S = sponge.state();
  147|   975k|   auto& cursor = sponge._cursor();
  148|       |
  149|       |   // If necessary, try to get aligned with the sponge state's words array
  150|   975k|   const auto bytes_out_of_word_alignment = static_cast<size_t>(cursor % word_bytes);
  151|   975k|   if(bytes_out_of_word_alignment > 0) {
  ------------------
  |  Branch (151:7): [True: 852k, False: 123k]
  ------------------
  152|   852k|      const auto bytes_until_word_alignment = word_bytes - bytes_out_of_word_alignment;
  153|   852k|      const auto bytes_from_input = std::min(bytes_to_process, bytes_until_word_alignment);
  154|   852k|      BOTAN_DEBUG_ASSERT(bytes_from_input < word_bytes);
  ------------------
  |  |  130|   852k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|   852k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 852k]
  |  |  ------------------
  ------------------
  155|       |
  156|   852k|      S[cursor / word_bytes] = modifier_fn(S[cursor / word_bytes],
  157|   852k|                                           detail::PartialWordBounds<SpongeT>{
  158|   852k|                                              .offset = bytes_out_of_word_alignment,
  159|   852k|                                              .length = bytes_from_input,
  160|   852k|                                           });
  161|   852k|      cursor += bytes_from_input;
  162|   852k|      bytes_to_process -= bytes_from_input;
  163|       |
  164|   852k|      if(cursor == byte_rate) {
  ------------------
  |  Branch (164:10): [True: 13.2k, False: 838k]
  ------------------
  165|  13.2k|         permutation_fn();
  166|  13.2k|         cursor = 0;
  167|  13.2k|      }
  168|   852k|   }
  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|   975k|   BOTAN_DEBUG_ASSERT(bytes_to_process == 0 || cursor % word_bytes == 0);
  ------------------
  |  |  130|   975k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|   975k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 975k]
  |  |  ------------------
  ------------------
  173|       |
  174|       |   // Block-wise incorporation of the input data into the sponge state until
  175|       |   // all input bytes are processed
  176|   976k|   while(bytes_to_process >= word_bytes) {
  ------------------
  |  Branch (176:10): [True: 602, False: 975k]
  ------------------
  177|       |      // Process full words until we either run out of data or reach the
  178|       |      // end of the current sponge state block
  179|  6.29k|      while(bytes_to_process >= word_bytes && cursor < byte_rate) {
  ------------------
  |  Branch (179:13): [True: 5.71k, False: 582]
  |  Branch (179:47): [True: 5.69k, False: 20]
  ------------------
  180|  5.69k|         S[cursor / word_bytes] = modifier_fn(S[cursor / word_bytes], detail::FullWordBounds<SpongeT>{});
  181|  5.69k|         cursor += word_bytes;
  182|  5.69k|         bytes_to_process -= word_bytes;
  183|  5.69k|      }
  184|       |
  185|    602|      if(cursor == byte_rate) {
  ------------------
  |  Branch (185:10): [True: 20, False: 582]
  ------------------
  186|     20|         permutation_fn();
  187|     20|         cursor = 0;
  188|     20|      }
  189|    602|   }
  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|   975k|   BOTAN_DEBUG_ASSERT(bytes_to_process < word_bytes && cursor < byte_rate);
  ------------------
  |  |  130|   975k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|   975k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 975k]
  |  |  ------------------
  ------------------
  195|   975k|   if(bytes_to_process > 0) {
  ------------------
  |  Branch (195:7): [True: 324k, False: 651k]
  ------------------
  196|   324k|      S[cursor / word_bytes] = modifier_fn(S[cursor / word_bytes],
  197|   324k|                                           detail::PartialWordBounds<SpongeT>{
  198|   324k|                                              .offset = 0,
  199|   324k|                                              .length = bytes_to_process,
  200|   324k|                                           });
  201|   324k|      cursor += bytes_to_process;
  202|   324k|   }
  203|   975k|}
_ZZN5Botan19squeeze_from_spongeITkNS_6detail10SpongeLikeENS_18Keccak_PermutationETkNS1_13PermutationFnEZNS_19squeeze_from_spongeITkNS1_28SpongeLikeWithTrivialPermuteES2_EEvRT_NSt3__14spanIhLm18446744073709551615EEEEUlvE_EEvS5_S8_RKT0_ENKUlmS4_E_clINS1_17PartialWordBoundsIS2_EEEEDamS4_:
  251|  1.17M|   process_bytes_in_sponge(sponge, output.size(), permutation_fn, [&](word_t state_word, auto bounds) {
  252|  1.17M|      bounds.write_into(output_stuffer, state_word);
  253|  1.17M|      return state_word;
  254|  1.17M|   });
_ZNK5Botan6detail17PartialWordBoundsINS_18Keccak_PermutationEE10write_intoERNS_13BufferStufferEm:
   69|  1.17M|      void write_into(BufferStuffer& stuffer, word_t partial_word) const {
   70|  1.17M|         const auto partial_word_bytes = store_le(partial_word);
   71|  1.17M|         stuffer.append(std::span{partial_word_bytes}.subspan(offset, length));
   72|  1.17M|      }
_ZZN5Botan19squeeze_from_spongeITkNS_6detail28SpongeLikeWithTrivialPermuteENS_18Keccak_PermutationEEEvRT_NSt3__14spanIhLm18446744073709551615EEEENKUlvE_clEv:
  259|  13.2k|   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|  5.69k|   process_bytes_in_sponge(sponge, output.size(), permutation_fn, [&](word_t state_word, auto bounds) {
  252|  5.69k|      bounds.write_into(output_stuffer, state_word);
  253|  5.69k|      return state_word;
  254|  5.69k|   });
_ZNK5Botan6detail14FullWordBoundsINS_18Keccak_PermutationEE10write_intoERNS_13BufferStufferEm:
   99|  5.69k|      void write_into(BufferStuffer& stuffer, word_t full_word) const { stuffer.append(store_le(full_word)); }

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

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

_ZNK5Botan10BER_Object6is_setEv:
  138|   182k|      bool is_set() const { return m_type_tag != ASN1_Type::NoObject; }
_ZNK5Botan10BER_Object7taggingEv:
  140|  76.0k|      uint32_t tagging() const { return type_tag() | class_tag(); }
_ZNK5Botan10BER_Object8type_tagEv:
  142|  80.0k|      ASN1_Type type_tag() const { return m_type_tag; }
_ZNK5Botan10BER_Object9class_tagEv:
  144|  91.2k|      ASN1_Class class_tag() const { return m_class_tag; }
_ZNK5Botan10BER_Object4bitsEv:
  150|   873k|      const uint8_t* bits() const { return m_value.data(); }
_ZNK5Botan10BER_Object6lengthEv:
  152|  1.85M|      size_t length() const { return m_value.size(); }
_ZNK5Botan10BER_Object4dataEv:
  154|  28.5k|      std::span<const uint8_t> data() const { return std::span{m_value}; }
_ZN5Botan10BER_Object12mutable_bitsEm:
  171|  64.4k|      uint8_t* mutable_bits(size_t length) {
  172|  64.4k|         m_value.resize(length);
  173|  64.4k|         return m_value.data();
  174|  64.4k|      }
_ZNK5Botan3OID5emptyEv:
  265|  8.56k|      bool empty() const { return m_id.empty(); }
_ZNK5Botan3OID9has_valueEv:
  271|  4.01k|      bool has_value() const { return !empty(); }
_ZNK5Botan3OIDeqERKS0_:
  301|  44.8k|      bool operator==(const OID& other) const { return m_id == other.m_id; }
_ZNK5Botan19AlgorithmIdentifier3oidEv:
  407|  12.7k|      const OID& oid() const { return m_oid; }
_ZNK5Botan19AlgorithmIdentifier10parametersEv:
  409|  4.07k|      const std::vector<uint8_t>& parameters() const { return m_parameters; }
_ZNK5Botan19AlgorithmIdentifier20parameters_are_emptyEv:
  419|    141|      bool parameters_are_empty() const { return m_parameters.empty(); }
_ZNK5Botan19AlgorithmIdentifier28parameters_are_null_or_emptyEv:
  421|      5|      bool parameters_are_null_or_empty() const { return parameters_are_empty() || parameters_are_null(); }
  ------------------
  |  Branch (421:58): [True: 1, False: 4]
  |  Branch (421:84): [True: 1, False: 3]
  ------------------
_ZN5BotanorENS_10ASN1_ClassES0_:
   78|  20.1k|inline ASN1_Class operator|(ASN1_Class x, ASN1_Class y) {
   79|  20.1k|   return static_cast<ASN1_Class>(static_cast<uint32_t>(x) | static_cast<uint32_t>(y));
   80|  20.1k|}
_ZN5BotanorENS_9ASN1_TypeENS_10ASN1_ClassE:
   82|  76.0k|inline uint32_t operator|(ASN1_Type x, ASN1_Class y) {
   83|  76.0k|   return static_cast<uint32_t>(x) | static_cast<uint32_t>(y);
   84|  76.0k|}
_ZN5BotanorENS_10ASN1_ClassENS_9ASN1_TypeE:
   86|  11.5k|inline uint32_t operator|(ASN1_Class x, ASN1_Type y) {
   87|  11.5k|   return static_cast<uint32_t>(x) | static_cast<uint32_t>(y);
   88|  11.5k|}
_ZN5BotanneERKNS_3OIDES2_:
  342|  3.82k|inline bool operator!=(const OID& a, const OID& b) {
  343|  3.82k|   return !(a == b);
  344|  3.82k|}
_ZNKSt3__14hashIN5Botan3OIDEEclERKS2_:
  441|  1.88k|      size_t operator()(const Botan::OID& oid) const noexcept { return static_cast<size_t>(oid.hash_code()); }
_ZN5Botan3OIDC2Ev:
  220|  26.6k|      explicit OID() = default;
_ZN5Botan11ASN1_ObjectC2Ev:
  117|  83.9k|      ASN1_Object() = default;
_ZN5Botan11ASN1_ObjectD2Ev:
  122|  88.1k|      virtual ~ASN1_Object() = default;
_ZN5Botan11ASN1_ObjectC2ERKS0_:
  118|  2.97k|      ASN1_Object(const ASN1_Object&) = default;
_ZN5Botan11ASN1_ObjectaSERKS0_:
  119|  2.80k|      ASN1_Object& operator=(const ASN1_Object&) = default;
_ZN5Botan19AlgorithmIdentifierC2Ev:
  399|  14.6k|      AlgorithmIdentifier() = default;
_ZN5Botan11ASN1_ObjectC2EOS0_:
  120|  1.28k|      ASN1_Object(ASN1_Object&&) = default;
_ZN5Botan10BER_ObjectC2Ev:
  130|   116k|      BER_Object() = default;
_ZN5Botan10BER_ObjectaSEOS0_:
  135|  27.5k|      BER_Object& operator=(BER_Object&& other) = default;
_ZN5Botan10BER_ObjectC2EOS0_:
  133|  26.5k|      BER_Object(BER_Object&& other) = default;

_ZN5Botan13ignore_paramsIJPKmmEEEvDpRKT_:
  142|  56.5M|constexpr void ignore_params([[maybe_unused]] const T&... args) {}
_ZN5Botan13ignore_paramsIJmEEEvDpRKT_:
  142|  51.2k|constexpr void ignore_params([[maybe_unused]] const T&... args) {}
_ZN5Botan13ignore_paramsIJNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEEEEvDpRKT_:
  142|  1.16k|constexpr void ignore_params([[maybe_unused]] const T&... args) {}
_ZN5Botan13ignore_paramsIJPKhmEEEvDpRKT_:
  142|  2.72k|constexpr void ignore_params([[maybe_unused]] const T&... args) {}
_ZN5Botan13ignore_paramsIJPKbmEEEvDpRKT_:
  142|   337k|constexpr void ignore_params([[maybe_unused]] const T&... args) {}
_ZN5Botan13ignore_paramsIJPKimEEEvDpRKT_:
  142|  2.90k|constexpr void ignore_params([[maybe_unused]] const T&... args) {}
_ZN5Botan13ignore_paramsIJPKsmEEEvDpRKT_:
  142|    204|constexpr void ignore_params([[maybe_unused]] const T&... args) {}
_ZN5Botan13ignore_paramsIJNSt3__14spanIKhLm18446744073709551615EEES4_EEEvDpRKT_:
  142|  4.58k|constexpr void ignore_params([[maybe_unused]] const T&... args) {}

_ZN5Botan11BER_Decoder6Limits3DEREv:
   35|  14.0k|            static Limits DER() { return Limits(false, 0); }
_ZN5Botan11BER_Decoder6LimitsC2Ebm:
   54|  14.0k|                  m_allow_ber(allow_ber), m_max_nested_indef(max_nested_indef) {}
_ZN5Botan11BER_Decoder14start_sequenceEv:
  160|  20.3k|      BER_Decoder start_sequence() { return start_cons(ASN1_Type::Sequence, ASN1_Class::Universal); }
_ZN5Botan11BER_Decoder6decodeERNS_6BigIntE:
  230|  4.03k|      BER_Decoder& decode(BigInt& out) { return decode(out, ASN1_Type::Integer, ASN1_Class::Universal); }
_ZN5Botan11BER_Decoder6decodeINSt3__19allocatorIhEEEERS0_RNS2_6vectorIhT_EENS_9ASN1_TypeE:
  242|  1.23k|      BER_Decoder& decode(std::vector<uint8_t, Alloc>& out, ASN1_Type real_type) {
  243|  1.23k|         return decode(out, real_type, real_type, ASN1_Class::Universal);
  244|  1.23k|      }
_ZN5Botan11BER_Decoder16decode_and_checkImEERS0_RKT_NSt3__117basic_string_viewIcNS6_11char_traitsIcEEEE:
  327|  11.1k|      BER_Decoder& decode_and_check(const T& expected, std::string_view error_msg) {
  328|  11.1k|         T actual;
  329|  11.1k|         decode(actual);
  330|       |
  331|  11.1k|         if(actual != expected) {
  ------------------
  |  Branch (331:13): [True: 75, False: 11.0k]
  ------------------
  332|     75|            throw Decoding_Error(error_msg);
  333|     75|         }
  334|       |
  335|  11.0k|         return (*this);
  336|  11.1k|      }
_ZN5Botan11BER_Decoder6decodeERm:
  225|  11.1k|      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:
  327|  1.26k|      BER_Decoder& decode_and_check(const T& expected, std::string_view error_msg) {
  328|  1.26k|         T actual;
  329|  1.26k|         decode(actual);
  330|       |
  331|  1.26k|         if(actual != expected) {
  ------------------
  |  Branch (331:13): [True: 10, False: 1.25k]
  ------------------
  332|     10|            throw Decoding_Error(error_msg);
  333|     10|         }
  334|       |
  335|  1.25k|         return (*this);
  336|  1.26k|      }
_ZN5Botan11BER_Decoder22decode_optional_stringINSt3__19allocatorIhEEEERS0_RNS2_6vectorIhT_EENS_9ASN1_TypeESA_NS_10ASN1_ClassE:
  369|  1.24k|                                          ASN1_Class class_tag = ASN1_Class::ContextSpecific) {
  370|  1.24k|         return decode_optional_string(out, real_type, static_cast<uint32_t>(expected_tag), class_tag);
  371|  1.24k|      }
_ZN5Botan11BER_Decoder22decode_optional_stringINSt3__19allocatorIhEEEERS0_RNS2_6vectorIhT_EENS_9ASN1_TypeEjNS_10ASN1_ClassE:
  345|  1.24k|                                          ASN1_Class class_tag = ASN1_Class::ContextSpecific) {
  346|  1.24k|         BER_Object obj = get_next_object();
  347|       |
  348|  1.24k|         const ASN1_Type type_tag = static_cast<ASN1_Type>(expected_tag);
  349|       |
  350|  1.24k|         if(obj.is_a(type_tag, class_tag)) {
  ------------------
  |  Branch (350:13): [True: 1.23k, False: 7]
  ------------------
  351|  1.23k|            if(class_tag == ASN1_Class::ExplicitContextSpecific) {
  ------------------
  |  Branch (351:16): [True: 0, False: 1.23k]
  ------------------
  352|      0|               BER_Decoder(obj, m_limits).decode(out, real_type).verify_end();
  353|  1.23k|            } else {
  354|  1.23k|               push_back(std::move(obj));
  355|  1.23k|               decode(out, real_type, type_tag, class_tag);
  356|  1.23k|            }
  357|  1.23k|         } else {
  358|      7|            out.clear();
  359|      7|            push_back(std::move(obj));
  360|      7|         }
  361|       |
  362|  1.24k|         return (*this);
  363|  1.24k|      }
_ZN5Botan11BER_DecoderC2ERKNS_10BER_ObjectENS0_6LimitsE:
   81|  2.36k|            BER_Decoder(obj.data(), limits) {}
_ZNK5Botan11BER_Decoder6Limits18allow_ber_encodingEv:
   44|   159k|            bool allow_ber_encoding() const { return m_allow_ber; }
_ZNK5Botan11BER_Decoder6Limits20require_der_encodingEv:
   46|  94.8k|            bool require_der_encoding() const { return !allow_ber_encoding(); }
_ZNK5Botan11BER_Decoder6limitsEv:
   98|  20.1k|      Limits limits() const { return m_limits; }
_ZN5Botan11BER_Decoder6decodeINS_16secure_allocatorIhEEEERS0_RNSt3__16vectorIhT_EENS_9ASN1_TypeE:
  242|  12.8k|      BER_Decoder& decode(std::vector<uint8_t, Alloc>& out, ASN1_Type real_type) {
  243|  12.8k|         return decode(out, real_type, real_type, ASN1_Class::Universal);
  244|  12.8k|      }
_ZN5Botan11BER_Decoder9raw_bytesINSt3__19allocatorIhEEEERS0_RNS2_6vectorIhT_EE:
  203|  6.36k|      BER_Decoder& raw_bytes(std::vector<uint8_t, Alloc>& out) {
  204|  6.36k|         out.clear();
  205|   453k|         for(;;) {
  206|   453k|            if(auto next = this->read_next_byte()) {
  ------------------
  |  Branch (206:21): [True: 446k, False: 6.36k]
  ------------------
  207|   446k|               out.push_back(*next);
  208|   446k|            } else {
  209|  6.36k|               break;
  210|  6.36k|            }
  211|   453k|         }
  212|  6.36k|         return (*this);
  213|  6.36k|      }
_ZN5Botan11BER_Decoder15decode_optionalINS_3OIDEEERS0_RT_NS_9ASN1_TypeENS_10ASN1_ClassERKS4_:
  285|  2.81k|      BER_Decoder& decode_optional(T& out, ASN1_Type type_tag, ASN1_Class class_tag, const T& default_value = T()) {
  286|  2.81k|         std::optional<T> optval;
  287|  2.81k|         this->decode_optional(optval, type_tag, class_tag);
  288|  2.81k|         out = optval ? *optval : default_value;
  ------------------
  |  Branch (288:16): [True: 1.22k, False: 1.59k]
  ------------------
  289|  2.81k|         return (*this);
  290|  2.81k|      }
_ZN5Botan11BER_Decoder15decode_optionalINS_3OIDEEERS0_RNSt3__18optionalIT_EENS_9ASN1_TypeENS_10ASN1_ClassE:
  394|  2.81k|BER_Decoder& BER_Decoder::decode_optional(std::optional<T>& optval, ASN1_Type type_tag, ASN1_Class class_tag) {
  395|  2.81k|   BER_Object obj = get_next_object();
  396|       |
  397|  2.81k|   if(obj.is_a(type_tag, class_tag)) {
  ------------------
  |  Branch (397:7): [True: 1.22k, False: 1.58k]
  ------------------
  398|  1.22k|      T out{};
  399|  1.22k|      if(class_tag == ASN1_Class::ExplicitContextSpecific) {
  ------------------
  |  Branch (399:10): [True: 1.22k, False: 0]
  ------------------
  400|  1.22k|         BER_Decoder(obj, m_limits).decode(out).verify_end();
  401|  1.22k|      } else {
  402|      0|         this->push_back(std::move(obj));
  403|      0|         this->decode(out, type_tag, class_tag);
  404|      0|      }
  405|  1.22k|      optval = std::move(out);
  406|  1.58k|   } else {
  407|  1.58k|      this->push_back(std::move(obj));
  408|  1.58k|      optval = std::nullopt;
  409|  1.58k|   }
  410|       |
  411|  2.81k|   return (*this);
  412|  2.81k|}
_ZN5Botan11BER_Decoder22decode_optional_stringINS_16secure_allocatorIhEEEERS0_RNSt3__16vectorIhT_EENS_9ASN1_TypeEjNS_10ASN1_ClassE:
  345|  2.80k|                                          ASN1_Class class_tag = ASN1_Class::ContextSpecific) {
  346|  2.80k|         BER_Object obj = get_next_object();
  347|       |
  348|  2.80k|         const ASN1_Type type_tag = static_cast<ASN1_Type>(expected_tag);
  349|       |
  350|  2.80k|         if(obj.is_a(type_tag, class_tag)) {
  ------------------
  |  Branch (350:13): [True: 1.13k, False: 1.67k]
  ------------------
  351|  1.13k|            if(class_tag == ASN1_Class::ExplicitContextSpecific) {
  ------------------
  |  Branch (351:16): [True: 1.13k, False: 0]
  ------------------
  352|  1.13k|               BER_Decoder(obj, m_limits).decode(out, real_type).verify_end();
  353|  1.13k|            } else {
  354|      0|               push_back(std::move(obj));
  355|      0|               decode(out, real_type, type_tag, class_tag);
  356|      0|            }
  357|  1.67k|         } else {
  358|  1.67k|            out.clear();
  359|  1.67k|            push_back(std::move(obj));
  360|  1.67k|         }
  361|       |
  362|  2.80k|         return (*this);
  363|  2.80k|      }

_ZN5Botan6BigInt4zeroEv:
   50|  44.6k|      static BigInt zero() { return BigInt(); }
_ZN5Botan6BigInt3oneEv:
   55|  1.89k|      static BigInt one() { return BigInt::from_u64(1); }
_ZN5Botan6BigIntC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   98|  17.1k|      explicit BigInt(std::string_view str) { *this = BigInt::from_string(str); }
_ZN5Botan6BigIntC2ENSt3__14spanIKhLm18446744073709551615EEE:
  139|    787|      explicit BigInt(std::span<const uint8_t> bytes) { assign_from_bytes(bytes); }
_ZN5Botan6BigIntC2EOS0_:
  183|  72.5k|      BigInt(BigInt&& other) noexcept { this->swap(other); }
_ZN5Botan6BigIntD2Ev:
  185|  10.6M|      ~BigInt() { _const_time_unpoison(); }
_ZN5Botan6BigIntaSEOS0_:
  190|  3.96M|      BigInt& operator=(BigInt&& other) noexcept {
  191|  3.96M|         if(this != &other) {
  ------------------
  |  Branch (191:13): [True: 3.96M, False: 0]
  ------------------
  192|  3.96M|            this->swap(other);
  193|  3.96M|         }
  194|       |
  195|  3.96M|         return (*this);
  196|  3.96M|      }
_ZN5Botan6BigInt4swapERS0_:
  207|  6.78M|      void swap(BigInt& other) noexcept {
  208|  6.78M|         m_data.swap(other.m_data);
  209|  6.78M|         std::swap(m_signedness, other.m_signedness);
  210|  6.78M|      }
_ZN5Botan6BigInt8swap_regERNSt3__16vectorImNS_16secure_allocatorImEEEE:
  214|  1.95M|      BOTAN_DEPRECATED("Deprecated no replacement") void swap_reg(secure_vector<word>& reg) {
  215|  1.95M|         m_data.swap(reg);
  216|       |         // sign left unchanged
  217|  1.95M|      }
_ZN5Botan6BigIntpLEm:
  229|  2.58k|      BigInt& operator+=(word y) { return add(&y, 1, Positive); }
_ZN5Botan6BigIntmIEm:
  241|  1.91k|      BigInt& operator-=(word y) { return sub(&y, 1, Positive); }
_ZN5Botan6BigInt3subEPKmmNS0_4SignE:
  332|  81.8k|      BigInt& sub(const word y[], size_t y_words, Sign sign) {
  333|  81.8k|         return add(y, y_words, sign == Positive ? Negative : Positive);
  ------------------
  |  Branch (333:33): [True: 81.8k, False: 0]
  ------------------
  334|  81.8k|      }
_ZN5Botan6BigInt5clearEv:
  415|  42.5k|      void clear() {
  416|  42.5k|         m_data.set_to_zero();
  417|  42.5k|         m_signedness = Positive;
  418|  42.5k|      }
_ZNK5Botan6BigInt7is_evenEv:
  455|  10.0k|      bool is_even() const { return !get_bit(0); }
_ZNK5Botan6BigInt6is_oddEv:
  461|   986k|      bool is_odd() const { return get_bit(0); }
_ZNK5Botan6BigInt6signumEv:
  467|  23.0M|      int signum() const {
  468|  23.0M|         if(sig_words() == 0) {
  ------------------
  |  Branch (468:13): [True: 18.6k, False: 22.9M]
  ------------------
  469|  18.6k|            return 0;
  470|  18.6k|         }
  471|  22.9M|         return (sign() == Negative) ? -1 : 1;
  ------------------
  |  Branch (471:17): [True: 8.48k, False: 22.9M]
  ------------------
  472|  23.0M|      }
_ZNK5Botan6BigInt7is_zeroEv:
  484|  2.26M|      bool is_zero() const { return sig_words() == 0; }
_ZN5Botan6BigInt7set_bitEm:
  490|  20.0k|      void set_bit(size_t n) { conditionally_set_bit(n, true); }
_ZN5Botan6BigInt21conditionally_set_bitEmb:
  500|   648k|      void conditionally_set_bit(size_t n, bool set_it) {
  501|   648k|         const size_t which = n / (sizeof(word) * 8);
  502|   648k|         const word mask = static_cast<word>(set_it) << (n % (sizeof(word) * 8));
  503|   648k|         m_data.set_word_at(which, word_at(which) | mask);
  504|   648k|      }
_ZNK5Botan6BigInt7get_bitEm:
  523|  1.66M|      bool get_bit(size_t n) const { return ((word_at(n / (sizeof(word) * 8)) >> (n % (sizeof(word) * 8))) & 1) == 1; }
_ZNK5Botan6BigInt7word_atEm:
  574|  28.2M|      word word_at(size_t n) const { return m_data.get_word_at(n); }
_ZN5Botan6BigInt11set_word_atEmm:
  576|  13.5M|      BOTAN_DEPRECATED("Deprecated no replacement") void set_word_at(size_t i, word w) { m_data.set_word_at(i, w); }
_ZN5Botan6BigInt9set_wordsEPKmm:
  578|  51.5k|      BOTAN_DEPRECATED("Deprecated no replacement") void set_words(const word w[], size_t len) {
  579|  51.5k|         m_data.set_words(w, len);
  580|  51.5k|      }
_ZNK5Botan6BigInt4signEv:
  604|  28.1M|      Sign sign() const { return (m_signedness); }
_ZNK5Botan6BigInt12reverse_signEv:
  609|  4.68k|      Sign reverse_sign() const {
  610|  4.68k|         if(sign() == Positive) {
  ------------------
  |  Branch (610:13): [True: 3.71k, False: 963]
  ------------------
  611|  3.71k|            return Negative;
  612|  3.71k|         }
  613|    963|         return Positive;
  614|  4.68k|      }
_ZN5Botan6BigInt9flip_signEv:
  619|  2.88k|      BOTAN_DEPRECATED("Deprecated no replacement") void flip_sign() { set_sign(reverse_sign()); }
_ZN5Botan6BigInt8set_signENS0_4SignE:
  625|  1.82M|      void set_sign(Sign sign) {
  626|  1.82M|         if(sign == Negative && is_zero()) {
  ------------------
  |  Branch (626:13): [True: 5.25k, False: 1.81M]
  |  Branch (626:33): [True: 1.61k, False: 3.64k]
  ------------------
  627|  1.61k|            sign = Positive;
  628|  1.61k|         }
  629|       |
  630|  1.82M|         m_signedness = sign;
  631|  1.82M|      }
_ZNK5Botan6BigInt4sizeEv:
  642|   114M|      size_t size() const { return m_data.size(); }
_ZNK5Botan6BigInt9sig_wordsEv:
  648|  46.7M|      size_t sig_words() const { return m_data.sig_words(); }
_ZN5Botan6BigInt12mutable_dataEv:
  673|  40.8M|      BOTAN_DEPRECATED("Deprecated no replacement") word* mutable_data() { return m_data.mutable_data(); }
_ZNK5Botan6BigInt4dataEv:
  679|  15.2k|      BOTAN_DEPRECATED("Deprecated no replacement") const word* data() const { return m_data.const_data(); }
_ZN5Botan6BigInt15get_word_vectorEv:
  684|  1.43M|      BOTAN_DEPRECATED("Deprecated no replacement") secure_vector<word>& get_word_vector() {
  685|  1.43M|         return m_data.mutable_vector();
  686|  1.43M|      }
_ZNK5Botan6BigInt7grow_toEm:
  699|  15.2M|      BOTAN_DEPRECATED("Deprecated no replacement") void grow_to(size_t n) const { m_data.grow_to(n); }
_ZN5Botan6BigInt10power_of_2Em:
  856|  7.79k|      static BigInt power_of_2(size_t n) {
  857|  7.79k|         BigInt b;
  858|  7.79k|         b.set_bit(n);
  859|  7.79k|         return b;
  860|  7.79k|      }
_ZN5Botan6BigInt6decodeEPKhm:
  893|  1.26k|      BOTAN_DEPRECATED("Use BigInt::from_bytes") static BigInt decode(const uint8_t buf[], size_t length) {
  894|  1.26k|         return BigInt::from_bytes(std::span{buf, length});
  895|  1.26k|      }
_ZN5Botan6BigInt11encode_1363EPhmRKS0_:
  940|    280|      static void encode_1363(uint8_t out[], size_t bytes, const BigInt& n) {
  941|    280|         n.serialize_to(std::span{out, bytes});
  942|    280|      }
_ZNK5Botan6BigInt8_as_spanEv:
  962|  1.27M|      std::span<const word> _as_span() const { return m_data.const_span(); }
_ZNK5Botan6BigInt5_dataEv:
  972|  82.8M|      const word* _data() const { return m_data.const_data(); }
_ZN5Botan6BigInt18_assign_from_bytesENSt3__14spanIKhLm18446744073709551615EEE:
  983|  14.7k|      void _assign_from_bytes(std::span<const uint8_t> bytes) { assign_from_bytes(bytes); }
_ZN5Botan6BigInt11_from_wordsERNSt3__16vectorImNS_16secure_allocatorImEEEE:
  991|  2.94M|      static BigInt _from_words(secure_vector<word>& words) {
  992|  2.94M|         BigInt bn;
  993|  2.94M|         bn.m_data.swap(words);
  994|  2.94M|         return bn;
  995|  2.94M|      }
_ZN5Botan6BigInt4Data12mutable_dataEv:
 1022|  42.0M|            word* mutable_data() {
 1023|  42.0M|               invalidate_sig_words();
 1024|  42.0M|               return m_reg.data();
 1025|  42.0M|            }
_ZNK5Botan6BigInt4Data10const_dataEv:
 1027|  93.5M|            const word* const_data() const { return m_reg.data(); }
_ZNK5Botan6BigInt4Data10const_spanEv:
 1029|  1.27M|            std::span<const word> const_span() const { return std::span{m_reg}; }
_ZN5Botan6BigInt4Data14mutable_vectorEv:
 1031|  1.43M|            secure_vector<word>& mutable_vector() {
 1032|  1.43M|               invalidate_sig_words();
 1033|  1.43M|               return m_reg;
 1034|  1.43M|            }
_ZNK5Botan6BigInt4Data11get_word_atEm:
 1038|  28.2M|            word get_word_at(size_t n) const {
 1039|  28.2M|               if(n < m_reg.size()) {
  ------------------
  |  Branch (1039:19): [True: 28.2M, False: 19.1k]
  ------------------
 1040|  28.2M|                  return m_reg[n];
 1041|  28.2M|               }
 1042|  19.1k|               return 0;
 1043|  28.2M|            }
_ZN5Botan6BigInt4Data11set_word_atEmm:
 1045|  14.2M|            void set_word_at(size_t i, word w) {
 1046|  14.2M|               invalidate_sig_words();
 1047|  14.2M|               if(i >= m_reg.size()) {
  ------------------
  |  Branch (1047:19): [True: 1.25M, False: 12.9M]
  ------------------
 1048|  1.25M|                  if(w == 0) {
  ------------------
  |  Branch (1048:22): [True: 1.20M, False: 44.4k]
  ------------------
 1049|  1.20M|                     return;
 1050|  1.20M|                  }
 1051|  44.4k|                  grow_to(i + 1);
 1052|  44.4k|               }
 1053|  13.0M|               m_reg[i] = w;
 1054|  13.0M|            }
_ZN5Botan6BigInt4Data9set_wordsEPKmm:
 1056|  51.5k|            void set_words(const word w[], size_t len) {
 1057|  51.5k|               invalidate_sig_words();
 1058|  51.5k|               m_reg.assign(w, w + len);
 1059|  51.5k|            }
_ZNK5Botan6BigInt4Data7grow_toEm:
 1065|  15.3M|            void grow_to(size_t n) const {
 1066|  15.3M|               if(n > size()) {
  ------------------
  |  Branch (1066:19): [True: 6.20M, False: 9.19M]
  ------------------
 1067|  6.20M|                  if(n <= m_reg.capacity()) {
  ------------------
  |  Branch (1067:22): [True: 670k, False: 5.53M]
  ------------------
 1068|   670k|                     m_reg.resize(n);
 1069|  5.53M|                  } else {
 1070|  5.53M|                     m_reg.resize(n + (8 - (n % 8)));
 1071|  5.53M|                  }
 1072|  6.20M|               }
 1073|  15.3M|            }
_ZNK5Botan6BigInt4Data4sizeEv:
 1075|   141M|            size_t size() const { return m_reg.size(); }
_ZN5Botan6BigInt4Data4swapERS1_:
 1090|  6.78M|            void swap(Data& other) noexcept {
 1091|  6.78M|               m_reg.swap(other.m_reg);
 1092|  6.78M|               std::swap(m_sig_words, other.m_sig_words);
 1093|  6.78M|            }
_ZN5Botan6BigInt4Data4swapERNSt3__16vectorImNS_16secure_allocatorImEEEE:
 1095|  4.94M|            void swap(secure_vector<word>& reg) noexcept {
 1096|  4.94M|               m_reg.swap(reg);
 1097|  4.94M|               invalidate_sig_words();
 1098|  4.94M|            }
_ZNK5Botan6BigInt4Data20invalidate_sig_wordsEv:
 1100|  62.7M|            void invalidate_sig_words() const noexcept { m_sig_words = sig_words_npos; }
_ZNK5Botan6BigInt4Data9sig_wordsEv:
 1102|  46.7M|            size_t sig_words() const {
 1103|  46.7M|               if(m_sig_words == sig_words_npos) {
  ------------------
  |  Branch (1103:19): [True: 18.0M, False: 28.6M]
  ------------------
 1104|  18.0M|                  m_sig_words = calc_sig_words();
 1105|  18.0M|               }
 1106|  46.7M|               return m_sig_words;
 1107|  46.7M|            }
_ZN5BotanplERKNS_6BigIntES2_:
 1125|   940k|inline BigInt operator+(const BigInt& x, const BigInt& y) {
 1126|   940k|   return BigInt::add2(x, y._data(), y.sig_words(), y.sign());
 1127|   940k|}
_ZN5BotanplERKNS_6BigIntEm:
 1129|  2.97k|inline BigInt operator+(const BigInt& x, word y) {
 1130|  2.97k|   return BigInt::add2(x, &y, 1, BigInt::Positive);
 1131|  2.97k|}
_ZN5BotanmiERKNS_6BigIntES2_:
 1137|  1.79k|inline BigInt operator-(const BigInt& x, const BigInt& y) {
 1138|  1.79k|   return BigInt::add2(x, y._data(), y.sig_words(), y.reverse_sign());
 1139|  1.79k|}
_ZN5BotanmiERKNS_6BigIntEm:
 1141|  5.85k|inline BigInt operator-(const BigInt& x, word y) {
 1142|  5.85k|   return BigInt::add2(x, &y, 1, BigInt::Negative);
 1143|  5.85k|}
_ZN5BotanmlEmRKNS_6BigIntE:
 1148|  76.3k|inline BigInt operator*(word x, const BigInt& y) {
 1149|  76.3k|   return y * x;
 1150|  76.3k|}
_ZN5BotaneqERKNS_6BigIntES2_:
 1162|  26.8k|inline bool operator==(const BigInt& a, const BigInt& b) {
 1163|  26.8k|   return a.is_equal(b);
 1164|  26.8k|}
_ZN5BotanneERKNS_6BigIntES2_:
 1166|  5.18k|inline bool operator!=(const BigInt& a, const BigInt& b) {
 1167|  5.18k|   return !a.is_equal(b);
 1168|  5.18k|}
_ZN5BotangeERKNS_6BigIntES2_:
 1174|  16.6k|inline bool operator>=(const BigInt& a, const BigInt& b) {
 1175|  16.6k|   return (a.cmp(b) >= 0);
 1176|  16.6k|}
_ZN5BotanltERKNS_6BigIntES2_:
 1178|  71.6k|inline bool operator<(const BigInt& a, const BigInt& b) {
 1179|  71.6k|   return a.is_less_than(b);
 1180|  71.6k|}
_ZN5BotangtERKNS_6BigIntES2_:
 1182|      4|inline bool operator>(const BigInt& a, const BigInt& b) {
 1183|      4|   return b.is_less_than(a);
 1184|      4|}
_ZN5BotaneqERKNS_6BigIntEm:
 1186|   144k|inline bool operator==(const BigInt& a, word b) {
 1187|   144k|   return (a.cmp_word(b) == 0);
 1188|   144k|}
_ZN5BotanneERKNS_6BigIntEm:
 1190|  83.4k|inline bool operator!=(const BigInt& a, word b) {
 1191|  83.4k|   return (a.cmp_word(b) != 0);
 1192|  83.4k|}
_ZN5BotanleERKNS_6BigIntEm:
 1194|  4.38k|inline bool operator<=(const BigInt& a, word b) {
 1195|  4.38k|   return (a.cmp_word(b) <= 0);
 1196|  4.38k|}
_ZN5BotangeERKNS_6BigIntEm:
 1198|  10.9k|inline bool operator>=(const BigInt& a, word b) {
 1199|  10.9k|   return (a.cmp_word(b) >= 0);
 1200|  10.9k|}
_ZN5BotanltERKNS_6BigIntEm:
 1202|  21.5k|inline bool operator<(const BigInt& a, word b) {
 1203|  21.5k|   return (a.cmp_word(b) < 0);
 1204|  21.5k|}
_ZN5BotangtERKNS_6BigIntEm:
 1206|  6.24k|inline bool operator>(const BigInt& a, word b) {
 1207|  6.24k|   return (a.cmp_word(b) > 0);
 1208|  6.24k|}
_ZNK5Botan6BigInt9serializeINSt3__16vectorIhNS2_9allocatorIhEEEEEET_m:
  747|    394|      T serialize(size_t len) const {
  748|       |         // TODO this supports std::vector and secure_vector
  749|       |         // it would be nice if this also could work with std::array as in
  750|       |         //   bn.serialize_to<std::array<uint8_t, 32>>(32);
  751|    394|         T out(len);
  752|    394|         this->serialize_to(out);
  753|    394|         return out;
  754|    394|      }
_ZN5Botan6BigIntC2Ev:
   45|  9.22M|      BigInt() = default;
_ZN5Botan6BigIntC2ERKS0_:
   88|  1.34M|      BigInt(const BigInt& other) = default;
_ZN5Botan6BigIntaSERKS0_:
  201|  2.66M|      BigInt& operator=(const BigInt&) = default;

_ZN5Botan20Buffered_Computation6updateEPKhm:
   34|      2|      void update(const uint8_t in[], size_t length) { add_data({in, length}); }
_ZN5Botan20Buffered_Computation6updateENSt3__14spanIKhLm18446744073709551615EEE:
   40|     93|      void update(std::span<const uint8_t> in) { add_data(in); }
_ZN5Botan20Buffered_Computation5finalEPh:
   69|      2|      void final(uint8_t out[]) { final_result({out, output_length()}); }
_ZN5Botan20Buffered_Computation5finalITkNS_8concepts21resizable_byte_bufferENSt3__16vectorIhNS_16secure_allocatorIhEEEEEET_v:
   77|     31|      T final() {
   78|     31|         T output(output_length());
   79|     31|         final_result(output);
   80|     31|         return output;
   81|     31|      }
_ZN5Botan20Buffered_ComputationD2Ev:
  130|     64|      virtual ~Buffered_Computation() = default;
_ZN5Botan20Buffered_Computation7processITkNS_8concepts21resizable_byte_bufferENS_6StrongINSt3__16vectorIhNS4_9allocatorIhEEEENS_21KyberHashedPublicKey_EJEEEEET_NS4_4spanIKhLm18446744073709551615EEE:
  125|     31|      T process(std::span<const uint8_t> in) {
  126|     31|         update(in);
  127|     31|         return final<T>();
  128|     31|      }
_ZN5Botan20Buffered_Computation5finalITkNS_8concepts21resizable_byte_bufferENS_6StrongINSt3__16vectorIhNS4_9allocatorIhEEEENS_21KyberHashedPublicKey_EJEEEEET_v:
   77|     31|      T final() {
   78|     31|         T output(output_length());
   79|     31|         final_result(output);
   80|     31|         return output;
   81|     31|      }

_ZN5Botan8CurveGFp4swapERS0_:
   69|   608k|      void swap(CurveGFp& other) noexcept { std::swap(m_group, other.m_group); }
_ZNK5Botan8CurveGFpeqERKS0_:
   71|   402k|      bool operator==(const CurveGFp& other) const { return (m_group == other.m_group); }
_ZN5Botan8CurveGFpC2Ev:
   62|   713k|      CurveGFp() = default;

_ZN5Botan17DataSource_MemoryC2ENSt3__14spanIKhLm18446744073709551615EEE:
  141|  23.7k|      explicit DataSource_Memory(std::span<const uint8_t> in) : m_source(in.begin(), in.end()), m_offset(0) {}
_ZN5Botan10DataSourceC2Ev:
  100|  43.9k|      DataSource() = default;
_ZN5Botan10DataSourceD2Ev:
  101|  43.9k|      virtual ~DataSource() = default;
_ZN5Botan17DataSource_MemoryC2ENSt3__16vectorIhNS_16secure_allocatorIhEEEE:
  135|      5|      explicit DataSource_Memory(secure_vector<uint8_t> in) : m_source(std::move(in)), m_offset(0) {}

_ZN5Botan11DER_Encoder10add_objectENS_9ASN1_TypeENS_10ASN1_ClassENSt3__14spanIKhLm18446744073709551615EEE:
  184|  2.79k|      DER_Encoder& add_object(ASN1_Type type_tag, ASN1_Class class_tag, std::span<const uint8_t> rep) {
  185|  2.79k|         return add_object(type_tag, class_tag, rep.data(), rep.size());
  186|  2.79k|      }
_ZN5Botan11DER_Encoder10add_objectENS_9ASN1_TypeENS_10ASN1_ClassERKNSt3__16vectorIhNS3_9allocatorIhEEEE:
  188|  2.79k|      DER_Encoder& add_object(ASN1_Type type_tag, ASN1_Class class_tag, const std::vector<uint8_t>& rep) {
  189|  2.79k|         return add_object(type_tag, class_tag, std::span{rep});
  190|  2.79k|      }

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

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

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

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

_ZNK5Botan8EC_Group5_dataEv:
  458|  3.83k|      const std::shared_ptr<EC_Group_Data>& _data() const { return m_data; }
_ZN5Botan8EC_GroupC2EOS0_:
  221|  4.29k|      EC_Group(EC_Group&&) = default;

_ZN5Botan8EC_PointC2EOS0_:
   62|    280|      EC_Point(EC_Point&& other) noexcept { this->swap(other); }
_ZN5Botan8EC_PointaSEOS0_:
   72|   507k|      EC_Point& operator=(EC_Point&& other) noexcept {
   73|   507k|         if(this != &other) {
  ------------------
  |  Branch (73:13): [True: 507k, False: 0]
  ------------------
   74|   507k|            this->swap(other);
   75|   507k|         }
   76|   507k|         return (*this);
   77|   507k|      }
_ZNK5Botan8EC_Point7is_zeroEv:
  163|  1.41M|      bool is_zero() const { return m_z.is_zero(); }
_ZNK5Botan8EC_Point5get_xEv:
  238|   704k|      BOTAN_DEPRECATED("Use affine coordinates only") const BigInt& get_x() const { return m_x; }
_ZNK5Botan8EC_Point5get_yEv:
  245|   704k|      BOTAN_DEPRECATED("Use affine coordinates only") const BigInt& get_y() const { return m_y; }
_ZNK5Botan8EC_Point4plusERKS0_RNSt3__16vectorINS_6BigIntENS3_9allocatorIS5_EEEE:
  338|   402k|      EC_Point plus(const EC_Point& other, std::vector<BigInt>& workspace) const {
  339|   402k|         EC_Point x = (*this);
  340|   402k|         x.add(other, workspace);
  341|   402k|         return x;
  342|   402k|      }
_ZNK5Botan8EC_Point9get_curveEv:
  361|    862|      BOTAN_DEPRECATED("Deprecated no replacement") const CurveGFp& get_curve() const { return m_curve; }
_ZN5Botan8EC_PointD2Ev:
   79|  1.11M|      ~EC_Point() = default;
_ZN5Botan8EC_PointC2Ev:
   46|   710k|      EC_Point() = default;
_ZN5Botan8EC_PointC2ERKS0_:
   57|   403k|      EC_Point(const EC_Point&) = default;
_ZN5Botan8EC_PointaSERKS0_:
   67|   402k|      EC_Point& operator=(const EC_Point&) = default;

_ZNK5Botan9EC_Scalar10is_nonzeroEv:
  161|  2.70k|      bool is_nonzero() const { return !is_zero(); }
_ZNK5Botan9EC_Scalar6_innerEv:
  244|  1.59k|      const EC_Scalar_Data& _inner() const { return inner(); }
_ZNK5Botan9EC_Scalar5innerEv:
  253|  8.58k|      const EC_Scalar_Data& inner() const { return *m_scalar; }

_ZN5Botan12EC_PublicKeyC2Ev:
  137|  3.96k|      EC_PublicKey() = default;
_ZN5Botan12EC_PublicKeyD2Ev:
   42|  3.96k|      ~EC_PublicKey() override = default;
_ZN5Botan13EC_PrivateKeyD2Ev:
  170|  1.59k|      ~EC_PrivateKey() override = default;

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

_ZN5Botan16ECDSA_PrivateKeyC1ERKNS_19AlgorithmIdentifierENSt3__14spanIKhLm18446744073709551615EEE:
   98|  3.19k|            EC_PrivateKey(alg_id, key_bits) {}
_ZN5Botan15ECDSA_PublicKeyC2Ev:
   79|  3.19k|      ECDSA_PublicKey() = default;

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

_ZN5Botan15Ed448_PublicKeyC2Ev:
   66|      4|      Ed448_PublicKey() = default;

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

_ZN5Botan20GOST_3410_PrivateKeyC1ERKNS_19AlgorithmIdentifierENSt3__14spanIKhLm18446744073709551615EEE:
   91|      2|            EC_PrivateKey(alg_id, key_bits) {}
_ZN5Botan19GOST_3410_PublicKeyC2Ev:
   72|      2|      GOST_3410_PublicKey() = default;

_ZN5Botan15Kyber_PublicKeyD2Ev:
  105|     42|      ~Kyber_PublicKey() override = default;
_ZNK5Botan9KyberMode4modeEv:
   60|     73|      Mode mode() const { return m_mode; }
_ZN5Botan15Kyber_PublicKeyC2Ev:
  135|     42|      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.34k|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|  1.34k|   ranges::assert_equal_byte_lengths(out, in);
  162|  1.34k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 1.34k]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|  1.34k|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 1.34k, False: 0]
  ------------------
  165|  1.34k|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|  1.34k|   }
  167|  1.34k|}
_ZN5Botan11clear_bytesEPvm:
  101|  22.9M|inline constexpr void clear_bytes(void* ptr, size_t bytes) {
  102|  22.9M|   if(bytes > 0) {
  ------------------
  |  Branch (102:7): [True: 22.9M, False: 42.6k]
  ------------------
  103|  22.9M|      std::memset(ptr, 0, bytes);
  104|  22.9M|   }
  105|  22.9M|}
_ZN5Botan9clear_memImEEvPT_m:
  118|  5.76M|inline constexpr void clear_mem(T* ptr, size_t n) {
  119|  5.76M|   clear_bytes(ptr, sizeof(T) * n);
  120|  5.76M|}
_ZN5Botan8copy_memIhQsr3stdE12is_trivial_vIu7__decayIT_EEEEvPS1_PKS1_m:
  144|  2.22M|inline constexpr void copy_mem(T* out, const T* in, size_t n) {
  145|  2.22M|   BOTAN_ASSERT_IMPLICATION(n > 0, in != nullptr && out != nullptr, "If n > 0 then args are not null");
  ------------------
  |  |  103|  2.22M|   do {                                                                                          \
  |  |  104|  2.22M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                              \
  |  |  105|  4.39M|      if((expr1) && !(expr2)) {                                                                  \
  |  |  ------------------
  |  |  |  Branch (105:10): [True: 2.19M, False: 23.5k]
  |  |  |  Branch (105:23): [True: 2.19M, False: 0]
  |  |  |  Branch (105:23): [True: 2.19M, 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.22M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (109:12): [Folded, False: 2.22M]
  |  |  ------------------
  ------------------
  146|       |
  147|  2.22M|   if(in != nullptr && out != nullptr && n > 0) {
  ------------------
  |  Branch (147:7): [True: 2.22M, False: 28]
  |  Branch (147:24): [True: 2.21M, False: 1.43k]
  |  Branch (147:42): [True: 2.19M, False: 22.1k]
  ------------------
  148|  2.19M|      std::memmove(out, in, sizeof(T) * n);
  149|  2.19M|   }
  150|  2.22M|}
_ZN5Botan19secure_scrub_memoryITkNS_6ranges23contiguous_output_rangeERNSt3__16vectorIhNS2_9allocatorIhEEEEEEvOT_:
   59|   142k|void secure_scrub_memory(ranges::contiguous_output_range auto&& data) {
   60|   142k|   secure_scrub_memory(std::ranges::data(data), ranges::size_bytes(data));
   61|   142k|}
_ZN5Botan9clear_memIhEEvPT_m:
  118|  19.7k|inline constexpr void clear_mem(T* ptr, size_t n) {
  119|  19.7k|   clear_bytes(ptr, sizeof(T) * n);
  120|  19.7k|}
_ZN5Botan8copy_memImQsr3stdE12is_trivial_vIu7__decayIT_EEEEvPS1_PKS1_m:
  144|  4.35M|inline constexpr void copy_mem(T* out, const T* in, size_t n) {
  145|  4.35M|   BOTAN_ASSERT_IMPLICATION(n > 0, in != nullptr && out != nullptr, "If n > 0 then args are not null");
  ------------------
  |  |  103|  4.35M|   do {                                                                                          \
  |  |  104|  4.35M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                              \
  |  |  105|  8.71M|      if((expr1) && !(expr2)) {                                                                  \
  |  |  ------------------
  |  |  |  Branch (105:10): [True: 4.35M, False: 0]
  |  |  |  Branch (105:23): [True: 4.35M, False: 0]
  |  |  |  Branch (105:23): [True: 4.35M, False: 0]
  |  |  ------------------
  |  |  106|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                                     \
  |  |  107|      0|         Botan::assertion_failure(#expr1 " implies " #expr2, msg, __func__, __FILE__, __LINE__); \
  |  |  108|      0|      }                                                                                          \
  |  |  109|  4.35M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (109:12): [Folded, False: 4.35M]
  |  |  ------------------
  ------------------
  146|       |
  147|  4.35M|   if(in != nullptr && out != nullptr && n > 0) {
  ------------------
  |  Branch (147:7): [True: 4.35M, False: 0]
  |  Branch (147:24): [True: 4.35M, False: 0]
  |  Branch (147:42): [True: 4.35M, False: 0]
  ------------------
  148|  4.35M|      std::memmove(out, in, sizeof(T) * n);
  149|  4.35M|   }
  150|  4.35M|}
_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|  46.0k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromT& in) {
  200|  46.0k|   typecast_copy(out, std::span<const FromT, 1>(&in, 1));
  201|  46.0k|}
_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|  46.0k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  46.0k|   ranges::assert_equal_byte_lengths(out, in);
  178|  46.0k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  46.0k|}
_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|   193k|inline constexpr ToT typecast_copy(const FromR& src) {
  211|   193k|   ToT dst;  // NOLINT(*-member-init)
  212|   193k|   typecast_copy(dst, src);
  213|   193k|   return dst;
  214|   193k|}
_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|   193k|inline constexpr void typecast_copy(ToT& out, const FromR& in) {
  189|   193k|   typecast_copy(std::span<ToT, 1>(&out, 1), in);
  190|   193k|}
_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|   193k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|   193k|   ranges::assert_equal_byte_lengths(out, in);
  178|   193k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|   193k|}
_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|  32.7k|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|  32.7k|   ranges::assert_equal_byte_lengths(out, in);
  162|  32.7k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 32.7k]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|  32.7k|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 32.7k, False: 0]
  ------------------
  165|  32.7k|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|  32.7k|   }
  167|  32.7k|}
_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|  35.1k|inline constexpr ToT typecast_copy(const FromR& src) {
  211|  35.1k|   ToT dst;  // NOLINT(*-member-init)
  212|  35.1k|   typecast_copy(dst, src);
  213|  35.1k|   return dst;
  214|  35.1k|}
_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|  35.1k|inline constexpr void typecast_copy(ToT& out, const FromR& in) {
  189|  35.1k|   typecast_copy(std::span<ToT, 1>(&out, 1), in);
  190|  35.1k|}
_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|  35.1k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  35.1k|   ranges::assert_equal_byte_lengths(out, in);
  178|  35.1k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  35.1k|}
_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.93M|{
  133|  2.93M|   clear_bytes(std::ranges::data(mem), ranges::size_bytes(mem));
  134|  2.93M|}
_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|  14.9k|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|  14.9k|   ranges::assert_equal_byte_lengths(out, in);
  162|  14.9k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 14.9k]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|  14.9k|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 14.7k, False: 178]
  ------------------
  165|  14.7k|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|  14.7k|   }
  167|  14.9k|}
_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|   749k|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|   749k|   ranges::assert_equal_byte_lengths(out, in);
  162|   749k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 749k]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|   749k|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 749k, False: 0]
  ------------------
  165|   749k|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|   749k|   }
  167|   749k|}
_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.44k|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|  1.44k|   ranges::assert_equal_byte_lengths(out, in);
  162|  1.44k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 1.44k]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|  1.44k|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 1.44k, False: 0]
  ------------------
  165|  1.44k|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|  1.44k|   }
  167|  1.44k|}
_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|    952|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|    952|   ranges::assert_equal_byte_lengths(out, in);
  162|    952|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 952]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|    952|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 952, False: 0]
  ------------------
  165|    952|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|    952|   }
  167|    952|}
_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|    530|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|    530|   ranges::assert_equal_byte_lengths(out, in);
  162|    530|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 530]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|    530|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 530, False: 0]
  ------------------
  165|    530|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|    530|   }
  167|    530|}
_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.76k|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|  1.76k|   ranges::assert_equal_byte_lengths(out, in);
  162|  1.76k|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 1.76k]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|  1.76k|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 1.76k, False: 0]
  ------------------
  165|  1.76k|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|  1.76k|   }
  167|  1.76k|}
_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|  14.2M|{
  133|  14.2M|   clear_bytes(std::ranges::data(mem), ranges::size_bytes(mem));
  134|  14.2M|}
_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|    949|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|    949|   ranges::assert_equal_byte_lengths(out, in);
  162|    949|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 949]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|    949|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 949, False: 0]
  ------------------
  165|    949|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|    949|   }
  167|    949|}
_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|    771|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|    771|   ranges::assert_equal_byte_lengths(out, in);
  162|    771|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 771]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|    771|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 771, False: 0]
  ------------------
  165|    771|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|    771|   }
  167|    771|}
_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|  5.88k|inline constexpr ToT typecast_copy(const FromR& src) {
  211|  5.88k|   ToT dst;  // NOLINT(*-member-init)
  212|  5.88k|   typecast_copy(dst, src);
  213|  5.88k|   return dst;
  214|  5.88k|}
_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|  5.88k|inline constexpr void typecast_copy(ToT& out, const FromR& in) {
  189|  5.88k|   typecast_copy(std::span<ToT, 1>(&out, 1), in);
  190|  5.88k|}
_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|  5.88k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  5.88k|   ranges::assert_equal_byte_lengths(out, in);
  178|  5.88k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  5.88k|}
_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|    352|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromT& in) {
  200|    352|   typecast_copy(out, std::span<const FromT, 1>(&in, 1));
  201|    352|}
_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|    352|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|    352|   ranges::assert_equal_byte_lengths(out, in);
  178|    352|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|    352|}
_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.22M|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  1.22M|   ranges::assert_equal_byte_lengths(out, in);
  178|  1.22M|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  1.22M|}
_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|  57.0k|inline constexpr ToT typecast_copy(const FromR& src) {
  211|  57.0k|   ToT dst;  // NOLINT(*-member-init)
  212|  57.0k|   typecast_copy(dst, src);
  213|  57.0k|   return dst;
  214|  57.0k|}
_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|  57.0k|inline constexpr void typecast_copy(ToT& out, const FromR& in) {
  189|  57.0k|   typecast_copy(std::span<ToT, 1>(&out, 1), in);
  190|  57.0k|}
_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|  57.0k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  57.0k|   ranges::assert_equal_byte_lengths(out, in);
  178|  57.0k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  57.0k|}
_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.93k|inline constexpr ToT typecast_copy(const FromR& src) {
  211|  2.93k|   ToT dst;  // NOLINT(*-member-init)
  212|  2.93k|   typecast_copy(dst, src);
  213|  2.93k|   return dst;
  214|  2.93k|}
_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.93k|inline constexpr void typecast_copy(ToT& out, const FromR& in) {
  189|  2.93k|   typecast_copy(std::span<ToT, 1>(&out, 1), in);
  190|  2.93k|}
_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.93k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  2.93k|   ranges::assert_equal_byte_lengths(out, in);
  178|  2.93k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  2.93k|}
_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|      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|}
_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|    506|{
  133|    506|   clear_bytes(std::ranges::data(mem), ranges::size_bytes(mem));
  134|    506|}
_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|     79|inline constexpr void copy_mem(OutR&& out /* NOLINT(*-std-forward) */, const InR& in) {
  161|     79|   ranges::assert_equal_byte_lengths(out, in);
  162|     79|   if(std::is_constant_evaluated()) {
  ------------------
  |  Branch (162:7): [Folded, False: 79]
  ------------------
  163|      0|      std::copy(std::ranges::begin(in), std::ranges::end(in), std::ranges::begin(out));
  164|     79|   } else if(ranges::size_bytes(out) > 0) {
  ------------------
  |  Branch (164:14): [True: 79, False: 0]
  ------------------
  165|     79|      std::memmove(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  166|     79|   }
  167|     79|}
_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|    102|{
  133|    102|   clear_bytes(std::ranges::data(mem), ranges::size_bytes(mem));
  134|    102|}
_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_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|  8.06k|{
  133|  8.06k|   clear_bytes(std::ranges::data(mem), ranges::size_bytes(mem));
  134|  8.06k|}
_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.87k|inline constexpr void typecast_copy(ToR&& out /* NOLINT(*-std-forward) */, const FromR& in) {
  177|  3.87k|   ranges::assert_equal_byte_lengths(out, in);
  178|  3.87k|   std::memcpy(std::ranges::data(out), std::ranges::data(in), ranges::size_bytes(out));
  179|  3.87k|}

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

_ZN5Botan15PKCS8_ExceptionC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   30|  1.92k|      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|  34.0k|{
  101|  34.0k|   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|  34.0k|   } else {
  107|  34.0k|      const size_t expected_size = s0.size_bytes();
  108|  34.0k|      const bool correct_size =
  109|  34.0k|         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|  34.0k|      if(!correct_size) {
  ------------------
  |  Branch (111:10): [True: 0, False: 34.0k]
  ------------------
  112|      0|         memory_region_size_violation();
  113|      0|      }
  114|  34.0k|   }
  115|  34.0k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIhLm18446744073709551615EEEEEmRKT_:
   59|  68.1k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  68.1k|   return std::span{r}.size_bytes();
   61|  68.1k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm32ETkNS0_14spanable_rangeENSt3__14spanIhLm32EEEEEvRKT0_:
   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|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm32ETkNS0_14spanable_rangeENSt3__15arrayImLm4EEEEEvRKT0_:
   77|  3.78k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  3.78k|   const std::span s{r};
   79|  3.78k|   if constexpr(statically_spanable_range<R>) {
   80|  3.78k|      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.78k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm32EEETpTkNS0_14spanable_rangeEJNS2_5arrayImLm4EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  1.39k|{
  101|  1.39k|   const std::span s0{r0};
  102|       |
  103|  1.39k|   if constexpr(statically_spanable_range<R0>) {
  104|  1.39k|      constexpr size_t expected_size = s0.size_bytes();
  105|  1.39k|      (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.39k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__16vectorIhNS2_9allocatorIhEEEEEEmRKT_:
   59|   142k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|   142k|   return std::span{r}.size_bytes();
   61|   142k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__14spanIhLm8EEEEEvRKT0_:
   77|   121k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|   121k|   const std::span s{r};
   79|   121k|   if constexpr(statically_spanable_range<R>) {
   80|   121k|      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|   121k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm8EEETpTkNS0_14spanable_rangeEJNS3_IKmLm1EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  46.0k|{
  101|  46.0k|   const std::span s0{r0};
  102|       |
  103|  46.0k|   if constexpr(statically_spanable_range<R0>) {
  104|  46.0k|      constexpr size_t expected_size = s0.size_bytes();
  105|  46.0k|      (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|  46.0k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__14spanIKmLm1EEEEEvRKT0_:
   77|  46.0k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  46.0k|   const std::span s{r};
   79|  46.0k|   if constexpr(statically_spanable_range<R>) {
   80|  46.0k|      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|  46.0k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIhLm8EEEEEmRKT_:
   59|  46.0k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  46.0k|   return std::span{r}.size_bytes();
   61|  46.0k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__14spanIKhLm8EEEEEvRKT0_:
   77|   387k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|   387k|   const std::span s{r};
   79|   387k|   if constexpr(statically_spanable_range<R>) {
   80|   387k|      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|   387k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanImLm1EEETpTkNS0_14spanable_rangeEJNS3_IKhLm8EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|   193k|{
  101|   193k|   const std::span s0{r0};
  102|       |
  103|   193k|   if constexpr(statically_spanable_range<R0>) {
  104|   193k|      constexpr size_t expected_size = s0.size_bytes();
  105|   193k|      (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|   193k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanImLm1EEEEEmRKT_:
   59|   229k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|   229k|   return std::span{r}.size_bytes();
   61|   229k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__15arrayIhLm8EEEEEvRKT0_:
   77|  35.1k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  35.1k|   const std::span s{r};
   79|  35.1k|   if constexpr(statically_spanable_range<R>) {
   80|  35.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|  35.1k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanImLm1EEETpTkNS0_14spanable_rangeEJNS3_IhLm8EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  35.1k|{
  101|  35.1k|   const std::span s0{r0};
  102|       |
  103|  35.1k|   if constexpr(statically_spanable_range<R0>) {
  104|  35.1k|      constexpr size_t expected_size = s0.size_bytes();
  105|  35.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|  35.1k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanImLm18446744073709551615EEEEEmRKT_:
   59|  2.96M|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  2.96M|   return std::span{r}.size_bytes();
   61|  2.96M|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanImLm18446744073709551615EEETpTkNS0_14spanable_rangeEJNS3_IKmLm18446744073709551615EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  14.9k|{
  101|  14.9k|   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|  14.9k|   } else {
  107|  14.9k|      const size_t expected_size = s0.size_bytes();
  108|  14.9k|      const bool correct_size =
  109|  14.9k|         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|  14.9k|      if(!correct_size) {
  ------------------
  |  Branch (111:10): [True: 0, False: 14.9k]
  ------------------
  112|      0|         memory_region_size_violation();
  113|      0|      }
  114|  14.9k|   }
  115|  14.9k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__16vectorImNS_16secure_allocatorImEEEETpTkNS0_14spanable_rangeEJNS2_4spanImLm18446744073709551615EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|   749k|{
  101|   749k|   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|   749k|   } else {
  107|   749k|      const size_t expected_size = s0.size_bytes();
  108|   749k|      const bool correct_size =
  109|   749k|         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|   749k|      if(!correct_size) {
  ------------------
  |  Branch (111:10): [True: 0, False: 749k]
  ------------------
  112|      0|         memory_region_size_violation();
  113|      0|      }
  114|   749k|   }
  115|   749k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__16vectorImNS_16secure_allocatorImEEEEEEmRKT_:
   59|  1.49M|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  1.49M|   return std::span{r}.size_bytes();
   61|  1.49M|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanImLm4EEETpTkNS0_14spanable_rangeEJNS2_5arrayImLm4EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  1.44k|{
  101|  1.44k|   const std::span s0{r0};
  102|       |
  103|  1.44k|   if constexpr(statically_spanable_range<R0>) {
  104|  1.44k|      constexpr size_t expected_size = s0.size_bytes();
  105|  1.44k|      (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.44k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanImLm4EEEEEmRKT_:
   59|  2.88k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  2.88k|   return std::span{r}.size_bytes();
   61|  2.88k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm8ETkNS0_14spanable_rangeENSt3__15arrayImLm1EEEEEvRKT0_:
   77|  2.44M|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  2.44M|   const std::span s{r};
   79|  2.44M|   if constexpr(statically_spanable_range<R>) {
   80|  2.44M|      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.44M|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanImLm6EEETpTkNS0_14spanable_rangeEJNS2_5arrayImLm6EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|    952|{
  101|    952|   const std::span s0{r0};
  102|       |
  103|    952|   if constexpr(statically_spanable_range<R0>) {
  104|    952|      constexpr size_t expected_size = s0.size_bytes();
  105|    952|      (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|    952|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm48ETkNS0_14spanable_rangeENSt3__15arrayImLm6EEEEEvRKT0_:
   77|  2.23k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  2.23k|   const std::span s{r};
   79|  2.23k|   if constexpr(statically_spanable_range<R>) {
   80|  2.23k|      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.23k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanImLm6EEEEEmRKT_:
   59|  1.90k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  1.90k|   return std::span{r}.size_bytes();
   61|  1.90k|}
_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|    530|{
  101|    530|   const std::span s0{r0};
  102|       |
  103|    530|   if constexpr(statically_spanable_range<R0>) {
  104|    530|      constexpr size_t expected_size = s0.size_bytes();
  105|    530|      (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|    530|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm64ETkNS0_14spanable_rangeENSt3__15arrayImLm8EEEEEvRKT0_:
   77|  1.05k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  1.05k|   const std::span s{r};
   79|  1.05k|   if constexpr(statically_spanable_range<R>) {
   80|  1.05k|      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.05k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanImLm8EEEEEmRKT_:
   59|  1.06k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  1.06k|   return std::span{r}.size_bytes();
   61|  1.06k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm64EEETpTkNS0_14spanable_rangeEJNS2_5arrayImLm8EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|    529|{
  101|    529|   const std::span s0{r0};
  102|       |
  103|    529|   if constexpr(statically_spanable_range<R0>) {
  104|    529|      constexpr size_t expected_size = s0.size_bytes();
  105|    529|      (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|    529|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanImLm9EEETpTkNS0_14spanable_rangeEJNS2_5arrayImLm9EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  1.76k|{
  101|  1.76k|   const std::span s0{r0};
  102|       |
  103|  1.76k|   if constexpr(statically_spanable_range<R0>) {
  104|  1.76k|      constexpr size_t expected_size = s0.size_bytes();
  105|  1.76k|      (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.76k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm72ETkNS0_14spanable_rangeENSt3__15arrayImLm9EEEEEvRKT0_:
   77|  3.88k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  3.88k|   const std::span s{r};
   79|  3.88k|   if constexpr(statically_spanable_range<R>) {
   80|  3.88k|      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.88k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanImLm9EEEEEmRKT_:
   59|  3.53k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  3.53k|   return std::span{r}.size_bytes();
   61|  3.53k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__15arrayImLm18EEEEEmRKT_:
   59|  14.2M|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  14.2M|   return std::span{r}.size_bytes();
   61|  14.2M|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__15arrayIhLm72EEETpTkNS0_14spanable_rangeEJNS3_ImLm9EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  2.11k|{
  101|  2.11k|   const std::span s0{r0};
  102|       |
  103|  2.11k|   if constexpr(statically_spanable_range<R0>) {
  104|  2.11k|      constexpr size_t expected_size = s0.size_bytes();
  105|  2.11k|      (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.11k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__15arrayIhLm32EEETpTkNS0_14spanable_rangeEJNS3_ImLm4EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|    949|{
  101|    949|   const std::span s0{r0};
  102|       |
  103|    949|   if constexpr(statically_spanable_range<R0>) {
  104|    949|      constexpr size_t expected_size = s0.size_bytes();
  105|    949|      (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|    949|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm28EEETpTkNS0_14spanable_rangeEJNS3_IKhLm28EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|    949|{
  101|    949|   const std::span s0{r0};
  102|       |
  103|    949|   if constexpr(statically_spanable_range<R0>) {
  104|    949|      constexpr size_t expected_size = s0.size_bytes();
  105|    949|      (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|    949|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm28ETkNS0_14spanable_rangeENSt3__14spanIKhLm28EEEEEvRKT0_:
   77|    949|inline constexpr void assert_exact_byte_length(const R& r) {
   78|    949|   const std::span s{r};
   79|    949|   if constexpr(statically_spanable_range<R>) {
   80|    949|      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|    949|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIhLm28EEEEEmRKT_:
   59|  1.89k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  1.89k|   return std::span{r}.size_bytes();
   61|  1.89k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm66EEETpTkNS0_14spanable_rangeEJNS3_IKhLm66EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|    771|{
  101|    771|   const std::span s0{r0};
  102|       |
  103|    771|   if constexpr(statically_spanable_range<R0>) {
  104|    771|      constexpr size_t expected_size = s0.size_bytes();
  105|    771|      (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|    771|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm66ETkNS0_14spanable_rangeENSt3__14spanIKhLm66EEEEEvRKT0_:
   77|    771|inline constexpr void assert_exact_byte_length(const R& r) {
   78|    771|   const std::span s{r};
   79|    771|   if constexpr(statically_spanable_range<R>) {
   80|    771|      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|    771|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIhLm66EEEEEmRKT_:
   59|  1.54k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  1.54k|   return std::span{r}.size_bytes();
   61|  1.54k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__15arrayIhLm1EEETpTkNS0_14spanable_rangeEJS4_EEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|    204|{
  101|    204|   const std::span s0{r0};
  102|       |
  103|    204|   if constexpr(statically_spanable_range<R0>) {
  104|    204|      constexpr size_t expected_size = s0.size_bytes();
  105|    204|      (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|    204|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm1ETkNS0_14spanable_rangeENSt3__15arrayIhLm1EEEEEvRKT0_:
   77|    204|inline constexpr void assert_exact_byte_length(const R& r) {
   78|    204|   const std::span s{r};
   79|    204|   if constexpr(statically_spanable_range<R>) {
   80|    204|      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|    204|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm1ETkNS0_14spanable_rangeENSt3__14spanIhLm1EEEEEvRKT0_:
   77|    408|inline constexpr void assert_exact_byte_length(const R& r) {
   78|    408|   const std::span s{r};
   79|    408|   if constexpr(statically_spanable_range<R>) {
   80|    408|      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|    408|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm4ETkNS0_14spanable_rangeENSt3__14spanIhLm4EEEEEvRKT0_:
   77|  57.0k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  57.0k|   const std::span s{r};
   79|  57.0k|   if constexpr(statically_spanable_range<R>) {
   80|  57.0k|      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|  57.0k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm4ETkNS0_14spanable_rangeENSt3__14spanIKhLm4EEEEEvRKT0_:
   77|  11.7k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  11.7k|   const std::span s{r};
   79|  11.7k|   if constexpr(statically_spanable_range<R>) {
   80|  11.7k|      static_assert(s.size_bytes() == expected, "memory region does not have expected byte lengths");
   81|       |   } else {
   82|       |      if(s.size_bytes() != expected) {
   83|       |         memory_region_size_violation();
   84|       |      }
   85|       |   }
   86|  11.7k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIjLm1EEETpTkNS0_14spanable_rangeEJNS3_IKhLm4EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  5.88k|{
  101|  5.88k|   const std::span s0{r0};
  102|       |
  103|  5.88k|   if constexpr(statically_spanable_range<R0>) {
  104|  5.88k|      constexpr size_t expected_size = s0.size_bytes();
  105|  5.88k|      (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|  5.88k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIjLm1EEEEEmRKT_:
   59|  62.9k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  62.9k|   return std::span{r}.size_bytes();
   61|  62.9k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanItLm1EEEEEmRKT_:
   59|  2.93k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  2.93k|   return std::span{r}.size_bytes();
   61|  2.93k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm2ETkNS0_14spanable_rangeENSt3__14spanIhLm2EEEEEvRKT0_:
   77|  3.63k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  3.63k|   const std::span s{r};
   79|  3.63k|   if constexpr(statically_spanable_range<R>) {
   80|  3.63k|      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.63k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm2EEETpTkNS0_14spanable_rangeEJNS3_IKtLm1EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|    352|{
  101|    352|   const std::span s0{r0};
  102|       |
  103|    352|   if constexpr(statically_spanable_range<R0>) {
  104|    352|      constexpr size_t expected_size = s0.size_bytes();
  105|    352|      (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|    352|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm2ETkNS0_14spanable_rangeENSt3__14spanIKtLm1EEEEEvRKT0_:
   77|    352|inline constexpr void assert_exact_byte_length(const R& r) {
   78|    352|   const std::span s{r};
   79|    352|   if constexpr(statically_spanable_range<R>) {
   80|    352|      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|    352|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIhLm2EEEEEmRKT_:
   59|    352|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|    352|   return std::span{r}.size_bytes();
   61|    352|}
_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|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__15arrayIhLm8EEETpTkNS0_14spanable_rangeEJNS3_ImLm1EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  2.44M|{
  101|  2.44M|   const std::span s0{r0};
  102|       |
  103|  2.44M|   if constexpr(statically_spanable_range<R0>) {
  104|  2.44M|      constexpr size_t expected_size = s0.size_bytes();
  105|  2.44M|      (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.44M|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__15arrayIhLm8EEEEEmRKT_:
   59|  1.22M|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  1.22M|   return std::span{r}.size_bytes();
   61|  1.22M|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIjLm1EEETpTkNS0_14spanable_rangeEJNS3_IhLm4EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  57.0k|{
  101|  57.0k|   const std::span s0{r0};
  102|       |
  103|  57.0k|   if constexpr(statically_spanable_range<R0>) {
  104|  57.0k|      constexpr size_t expected_size = s0.size_bytes();
  105|  57.0k|      (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|  57.0k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanItLm1EEETpTkNS0_14spanable_rangeEJNS3_IhLm2EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  2.93k|{
  101|  2.93k|   const std::span s0{r0};
  102|       |
  103|  2.93k|   if constexpr(statically_spanable_range<R0>) {
  104|  2.93k|      constexpr size_t expected_size = s0.size_bytes();
  105|  2.93k|      (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.93k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__15arrayImLm7EEEEEmRKT_:
   59|  8.07k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  8.07k|   return std::span{r}.size_bytes();
   61|  8.07k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__14spanIhLm56EEETpTkNS0_14spanable_rangeEJNS2_5arrayImLm7EEEEEEvRKT_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_lengthILm56ETkNS0_14spanable_rangeENSt3__15arrayImLm7EEEEEvRKT0_:
   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__14spanIhLm56EEEEEmRKT_:
   59|      3|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|      3|   return std::span{r}.size_bytes();
   61|      3|}
_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|    506|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|    506|   return std::span{r}.size_bytes();
   61|    506|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__16vectorIiNS2_9allocatorIiEEEETpTkNS0_14spanable_rangeEJS6_EEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|     79|{
  101|     79|   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|     79|   } else {
  107|     79|      const size_t expected_size = s0.size_bytes();
  108|     79|      const bool correct_size =
  109|     79|         ((std::span<const std::ranges::range_value_t<Rs>>{rs}.size_bytes() == expected_size) && ...);
  110|       |
  111|     79|      if(!correct_size) {
  ------------------
  |  Branch (111:10): [True: 0, False: 79]
  ------------------
  112|      0|         memory_region_size_violation();
  113|      0|      }
  114|     79|   }
  115|     79|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__16vectorIiNS2_9allocatorIiEEEEEEmRKT_:
   59|    158|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|    158|   return std::span{r}.size_bytes();
   61|    158|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm2ETkNS0_14spanable_rangeENSt3__15arrayIhLm2EEEEEvRKT0_:
   77|  2.93k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  2.93k|   const std::span s{r};
   79|  2.93k|   if constexpr(statically_spanable_range<R>) {
   80|  2.93k|      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.93k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm2ETkNS0_14spanable_rangeENSt3__15arrayItLm1EEEEEvRKT0_:
   77|  8.10k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  8.10k|   const std::span s{r};
   79|  8.10k|   if constexpr(statically_spanable_range<R>) {
   80|  8.10k|      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.10k|}
_ZN5Botan6ranges25assert_equal_byte_lengthsITkNS0_14spanable_rangeENSt3__15arrayIhLm2EEETpTkNS0_14spanable_rangeEJNS3_ItLm1EEEEEEvRKT_DpRKT0_QgtsZT0_Li0E:
  100|  8.10k|{
  101|  8.10k|   const std::span s0{r0};
  102|       |
  103|  8.10k|   if constexpr(statically_spanable_range<R0>) {
  104|  8.10k|      constexpr size_t expected_size = s0.size_bytes();
  105|  8.10k|      (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.10k|}
_ZN5Botan6ranges24assert_exact_byte_lengthILm4ETkNS0_14spanable_rangeENSt3__15arrayIhLm4EEEEEvRKT0_:
   77|  57.0k|inline constexpr void assert_exact_byte_length(const R& r) {
   78|  57.0k|   const std::span s{r};
   79|  57.0k|   if constexpr(statically_spanable_range<R>) {
   80|  57.0k|      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|  57.0k|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__14spanIsLm256EEEEEmRKT_:
   59|    102|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|    102|   return std::span{r}.size_bytes();
   61|    102|}
_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|}
_ZN5Botan6ranges10size_bytesITkNS0_14spanable_rangeENSt3__15arrayIhLm2EEEEEmRKT_:
   59|  3.87k|inline constexpr size_t size_bytes(const spanable_range auto& r) {
   60|  3.87k|   return std::span{r}.size_bytes();
   61|  3.87k|}

_ZNK5Botan8Null_RNG9is_seededEv:
  352|  7.53k|      bool is_seeded() const override { return false; }
_ZN5Botan21RandomNumberGeneratorC2Ev:
   54|  1.59k|      RandomNumberGenerator() = default;

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

_ZN5Botan16secure_allocatorIhE8allocateEm:
   52|   130k|      T* allocate(std::size_t n) { return static_cast<T*>(allocate_memory(n, sizeof(T))); }
_ZN5Botan16secure_allocatorIhE10deallocateEPhm:
   54|   130k|      void deallocate(T* p, std::size_t n) { deallocate_memory(p, n, sizeof(T)); }
_ZN5Botan16secure_allocatorImE10deallocateEPmm:
   54|  19.1M|      void deallocate(T* p, std::size_t n) { deallocate_memory(p, n, sizeof(T)); }
_ZN5Botan16secure_allocatorImE8allocateEm:
   52|  19.1M|      T* allocate(std::size_t n) { return static_cast<T*>(allocate_memory(n, sizeof(T))); }
_ZN5BotanneIhhEEbRKNS_16secure_allocatorIT_EERKNS1_IT0_EE:
   63|  17.4k|inline bool operator!=(const secure_allocator<T>& /*a*/, const secure_allocator<U>& /*b*/) {
   64|  17.4k|   return false;
   65|  17.4k|}
_ZN5BotanpLIhNS_16secure_allocatorIhEES2_EERNSt3__16vectorIT_T0_EES8_RKNS4_IS5_T1_EE:
   92|  2.45k|std::vector<T, Alloc>& operator+=(std::vector<T, Alloc>& out, const std::vector<T, Alloc2>& in) {
   93|  2.45k|   out.insert(out.end(), in.begin(), in.end());
   94|  2.45k|   return out;
   95|  2.45k|}

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

_ZN5Botan18unwrap_strong_typeIRmEEDcOT_:
  243|  46.0k|[[nodiscard]] constexpr decltype(auto) unwrap_strong_type(T&& t) {
  244|  46.0k|   if constexpr(!concepts::strong_type<std::remove_cvref_t<T>>) {
  245|       |      // If the parameter type isn't a strong type, return it as is.
  246|  46.0k|      return std::forward<T>(t);
  247|       |   } else {
  248|       |      // Unwrap the strong type and return the underlying value.
  249|       |      return std::forward<T>(t).get();
  250|       |   }
  251|  46.0k|}
_ZN5Botan16wrap_strong_typeImRmQoosr3stdE18constructible_fromIT_T0_Eaasr8conceptsE11strong_typeIS2_Esr3stdE18constructible_fromINS2_12wrapped_typeES3_EEEDcOS3_:
  268|   229k|[[nodiscard]] constexpr decltype(auto) wrap_strong_type(ParamT&& t) {
  269|   229k|   if constexpr(std::same_as<std::remove_cvref_t<ParamT>, T>) {
  270|       |      // Noop, if the parameter type already is the desired return type.
  271|   229k|      return std::forward<ParamT>(t);
  272|       |   } else if constexpr(std::constructible_from<T, ParamT>) {
  273|       |      // Implicit conversion from the parameter type to the return type.
  274|       |      return T{std::forward<ParamT>(t)};
  275|       |   } else {
  276|       |      // Explicitly calling the wrapped type's constructor to support
  277|       |      // implicit conversions on types that mark their constructors as explicit.
  278|       |      static_assert(concepts::strong_type<T> && std::constructible_from<typename T::wrapped_type, ParamT>);
  279|       |      return T{typename T::wrapped_type{std::forward<ParamT>(t)}};
  280|       |   }
  281|   229k|}
_ZNK5Botan6detail29Container_Strong_Adapter_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEE4sizeEv:
  141|    708|      size_type size() const noexcept(noexcept(this->get().size())) { return this->get().size(); }
_ZNKR5Botan6detail11Strong_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEE3getEv:
   87|  1.19k|      constexpr const T& get() const& { return m_value; }
_ZN5Botan18unwrap_strong_typeIRNSt3__16vectorIhNS1_9allocatorIhEEEEEEDcOT_:
  243|     62|[[nodiscard]] constexpr decltype(auto) unwrap_strong_type(T&& t) {
  244|     62|   if constexpr(!concepts::strong_type<std::remove_cvref_t<T>>) {
  245|       |      // If the parameter type isn't a strong type, return it as is.
  246|     62|      return std::forward<T>(t);
  247|       |   } else {
  248|       |      // Unwrap the strong type and return the underlying value.
  249|       |      return std::forward<T>(t).get();
  250|       |   }
  251|     62|}
_ZN5Botan6detail11Strong_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEED2Ev:
   81|    668|      ~Strong_Base() = default;
_ZN5Botan6detail11Strong_BaseINSt3__16vectorIhNS_16secure_allocatorIhEEEEED2Ev:
   81|  1.27k|      ~Strong_Base() = default;
_ZNK5Botan6detail29Container_Strong_Adapter_BaseINSt3__16vectorIhNS_16secure_allocatorIhEEEEE4sizeEv:
  141|  1.17k|      size_type size() const noexcept(noexcept(this->get().size())) { return this->get().size(); }
_ZNKR5Botan6detail11Strong_BaseINSt3__16vectorIhNS_16secure_allocatorIhEEEEE3getEv:
   87|  1.89k|      constexpr const T& get() const& { return m_value; }
_ZN5Botan6detail11Strong_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEEC2Ev:
   76|     35|      Strong_Base() = default;
_ZN5Botan6detail29Container_Strong_Adapter_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEEC2INS2_11__wrap_iterIPKhEEEET_SD_:
  122|     35|      Container_Strong_Adapter_Base(InputIt begin, InputIt end) : Container_Strong_Adapter_Base(T(begin, end)) {}
_ZN5Botan6detail11Strong_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEEC2ES6_:
   83|    334|      constexpr explicit Strong_Base(T v) : m_value(std::move(v)) {}
_ZN5Botan6detail11Strong_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEEaSEOS7_:
   80|     35|      Strong_Base& operator=(Strong_Base&&) noexcept = default;
_ZN5Botan6detail29Container_Strong_Adapter_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEEC2EmQsr8conceptsE19resizable_containerIT_E:
  119|    268|            : Container_Strong_Adapter_Base(T(size)) {}
_ZNR5Botan6detail11Strong_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEE3getEv:
   85|    330|      constexpr T& get() & { return m_value; }
_ZN5Botan6detail29Container_Strong_Adapter_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEE3endEv:
  129|     31|      decltype(auto) end() noexcept(noexcept(this->get().end())) { return this->get().end(); }
_ZN5Botan18unwrap_strong_typeIRhEEDcOT_:
  243|    204|[[nodiscard]] constexpr decltype(auto) unwrap_strong_type(T&& t) {
  244|    204|   if constexpr(!concepts::strong_type<std::remove_cvref_t<T>>) {
  245|       |      // If the parameter type isn't a strong type, return it as is.
  246|    204|      return std::forward<T>(t);
  247|       |   } else {
  248|       |      // Unwrap the strong type and return the underlying value.
  249|       |      return std::forward<T>(t).get();
  250|       |   }
  251|    204|}
_ZN5Botan6detail11Strong_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEEC2EOS7_:
   78|    299|      Strong_Base(Strong_Base&&) noexcept = default;
_ZNK5Botan6detail14Strong_AdapterINSt3__16vectorIhNS2_9allocatorIhEEEEE4dataEv:
  200|    409|      decltype(auto) data() const noexcept(noexcept(this->get().data())) { return this->get().data(); }
_ZN5Botan6detail11Strong_BaseINSt3__16vectorIhNS_16secure_allocatorIhEEEEEC2Ev:
   76|     35|      Strong_Base() = default;
_ZN5Botan6detail29Container_Strong_Adapter_BaseINSt3__16vectorIhNS_16secure_allocatorIhEEEEEC2INS2_11__wrap_iterIPKhEEEET_SD_:
  122|     97|      Container_Strong_Adapter_Base(InputIt begin, InputIt end) : Container_Strong_Adapter_Base(T(begin, end)) {}
_ZN5Botan6detail11Strong_BaseINSt3__16vectorIhNS_16secure_allocatorIhEEEEEC2ES6_:
   83|    546|      constexpr explicit Strong_Base(T v) : m_value(std::move(v)) {}
_ZN5Botan6detail11Strong_BaseINSt3__16vectorIhNS_16secure_allocatorIhEEEEEaSEOS7_:
   80|     35|      Strong_Base& operator=(Strong_Base&&) noexcept = default;
_ZNR5Botan6detail11Strong_BaseINSt3__16vectorIhNS_16secure_allocatorIhEEEEE3getEv:
   85|    362|      constexpr T& get() & { return m_value; }
_ZN5Botan6detail14Strong_AdapterINSt3__16vectorIhNS_16secure_allocatorIhEEEEE4dataEv:
  198|    362|      decltype(auto) data() noexcept(noexcept(this->get().data())) { return this->get().data(); }
_ZN5Botan6detail11Strong_BaseINSt3__16vectorIhNS_16secure_allocatorIhEEEEEC2EOS7_:
   78|    691|      Strong_Base(Strong_Base&&) noexcept = default;
_ZN5Botan6detail14Strong_AdapterINSt3__16vectorIhNS2_9allocatorIhEEEEE4dataEv:
  198|    268|      decltype(auto) data() noexcept(noexcept(this->get().data())) { return this->get().data(); }
_ZNK5Botan6detail14Strong_AdapterINSt3__16vectorIhNS_16secure_allocatorIhEEEEE4dataEv:
  200|    723|      decltype(auto) data() const noexcept(noexcept(this->get().data())) { return this->get().data(); }
_ZN5Botan6detail29Container_Strong_Adapter_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEE5beginEv:
  125|     31|      decltype(auto) begin() noexcept(noexcept(this->get().begin())) { return this->get().begin(); }
_ZN5Botan16wrap_strong_typeIjRjQoosr3stdE18constructible_fromIT_T0_Eaasr8conceptsE11strong_typeIS2_Esr3stdE18constructible_fromINS2_12wrapped_typeES3_EEEDcOS3_:
  268|  62.9k|[[nodiscard]] constexpr decltype(auto) wrap_strong_type(ParamT&& t) {
  269|  62.9k|   if constexpr(std::same_as<std::remove_cvref_t<ParamT>, T>) {
  270|       |      // Noop, if the parameter type already is the desired return type.
  271|  62.9k|      return std::forward<ParamT>(t);
  272|       |   } else if constexpr(std::constructible_from<T, ParamT>) {
  273|       |      // Implicit conversion from the parameter type to the return type.
  274|       |      return T{std::forward<ParamT>(t)};
  275|       |   } else {
  276|       |      // Explicitly calling the wrapped type's constructor to support
  277|       |      // implicit conversions on types that mark their constructors as explicit.
  278|       |      static_assert(concepts::strong_type<T> && std::constructible_from<typename T::wrapped_type, ParamT>);
  279|       |      return T{typename T::wrapped_type{std::forward<ParamT>(t)}};
  280|       |   }
  281|  62.9k|}
_ZN5Botan16wrap_strong_typeItRtQoosr3stdE18constructible_fromIT_T0_Eaasr8conceptsE11strong_typeIS2_Esr3stdE18constructible_fromINS2_12wrapped_typeES3_EEEDcOS3_:
  268|  2.93k|[[nodiscard]] constexpr decltype(auto) wrap_strong_type(ParamT&& t) {
  269|  2.93k|   if constexpr(std::same_as<std::remove_cvref_t<ParamT>, T>) {
  270|       |      // Noop, if the parameter type already is the desired return type.
  271|  2.93k|      return std::forward<ParamT>(t);
  272|       |   } else if constexpr(std::constructible_from<T, ParamT>) {
  273|       |      // Implicit conversion from the parameter type to the return type.
  274|       |      return T{std::forward<ParamT>(t)};
  275|       |   } else {
  276|       |      // Explicitly calling the wrapped type's constructor to support
  277|       |      // implicit conversions on types that mark their constructors as explicit.
  278|       |      static_assert(concepts::strong_type<T> && std::constructible_from<typename T::wrapped_type, ParamT>);
  279|       |      return T{typename T::wrapped_type{std::forward<ParamT>(t)}};
  280|       |   }
  281|  2.93k|}
_ZN5Botan18unwrap_strong_typeIRtEEDcOT_:
  243|    352|[[nodiscard]] constexpr decltype(auto) unwrap_strong_type(T&& t) {
  244|    352|   if constexpr(!concepts::strong_type<std::remove_cvref_t<T>>) {
  245|       |      // If the parameter type isn't a strong type, return it as is.
  246|    352|      return std::forward<T>(t);
  247|       |   } else {
  248|       |      // Unwrap the strong type and return the underlying value.
  249|       |      return std::forward<T>(t).get();
  250|       |   }
  251|    352|}
_ZN5Botan6detail29Container_Strong_Adapter_BaseINSt3__16vectorIhNS_16secure_allocatorIhEEEEEC2EmQsr8conceptsE19resizable_containerIT_E:
  119|    362|            : Container_Strong_Adapter_Base(T(size)) {}
_ZNK5Botan6detail29Container_Strong_Adapter_BaseINSt3__15arrayIhLm56EEEE5beginEv:
  127|      1|      decltype(auto) begin() const noexcept(noexcept(this->get().begin())) { return this->get().begin(); }
_ZNK5Botan6detail29Container_Strong_Adapter_BaseINSt3__15arrayIhLm56EEEE3endEv:
  131|      1|      decltype(auto) end() const noexcept(noexcept(this->get().end())) { return this->get().end(); }
_ZNK5Botan6detail14Strong_AdapterINSt3__15arrayIhLm56EEEE4dataEv:
  200|      2|      decltype(auto) data() const noexcept(noexcept(this->get().data())) { return this->get().data(); }
_ZNK5Botan6detail29Container_Strong_Adapter_BaseINSt3__15arrayIhLm56EEEE4sizeEv:
  141|      2|      size_type size() const noexcept(noexcept(this->get().size())) { return this->get().size(); }
_ZN5Botan6detail14Strong_AdapterINSt3__15arrayIhLm56EEEE4dataEv:
  198|      1|      decltype(auto) data() noexcept(noexcept(this->get().data())) { return this->get().data(); }
_ZNR5Botan6detail11Strong_BaseINSt3__15arrayIhLm56EEEE3getEv:
   85|      3|      constexpr T& get() & { return m_value; }
_ZN5Botan6detail29Container_Strong_Adapter_BaseINSt3__15arrayIhLm56EEEEixIiEEDcOT_:
  167|      2|      decltype(auto) operator[](U&& i) noexcept(noexcept(this->get().operator[](i))) {
  168|      2|         return this->get()[std::forward<U>(i)];
  169|      2|      }
_ZNKR5Botan6detail11Strong_BaseINSt3__15arrayIhLm56EEEE3getEv:
   87|    456|      constexpr const T& get() const& { return m_value; }
_ZNK5Botan6detail29Container_Strong_Adapter_BaseINSt3__15arrayIhLm56EEEEixImEEDcOT_:
  162|    448|      decltype(auto) operator[](U&& i) const noexcept(noexcept(this->get().operator[](i))) {
  163|    448|         return this->get()[std::forward<U>(i)];
  164|    448|      }
_ZN5Botan6detail11Strong_BaseINSt3__15arrayIhLm56EEEEC2ES4_:
   83|      1|      constexpr explicit Strong_Base(T v) : m_value(std::move(v)) {}
_ZNK5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_29DilithiumSerializedPublicKey_EJEEEE4dataEv:
  712|     79|      decltype(auto) data() const noexcept(noexcept(this->m_span.data())) { return this->m_span.data(); }
_ZNK5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_29DilithiumSerializedPublicKey_EJEEEE4sizeEv:
  714|     79|      decltype(auto) size() const noexcept(noexcept(this->m_span.size())) { return this->m_span.size(); }
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_29DilithiumSerializedPublicKey_EJEEEEC2ERS9_:
  675|     79|      StrongSpan(T& strong) : m_span(strong) {}
_ZNK5Botan6detail29Container_Strong_Adapter_BaseINSt3__16vectorIhNS2_9allocatorIhEEEEE5emptyEvQsr8conceptsE9has_emptyIT_E:
  145|     79|      {
  146|     79|         return this->get().empty();
  147|     79|      }
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_20DilithiumPublicSeed_EJEEEEC2ERS9_:
  675|    158|      StrongSpan(T& strong) : m_span(strong) {}
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_22DilithiumSeedRhoPrime_EJEEEEC2ERS9_:
  675|     79|      StrongSpan(T& strong) : m_span(strong) {}
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_24DilithiumSeedRandomness_EJEEEE4dataEv:
  710|     79|      decltype(auto) data() noexcept(noexcept(this->m_span.data())) { return this->m_span.data(); }
_ZNK5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_24DilithiumSeedRandomness_EJEEEE4sizeEv:
  714|     79|      decltype(auto) size() const noexcept(noexcept(this->m_span.size())) { return this->m_span.size(); }
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_20DilithiumPublicSeed_EJEEEE4dataEv:
  710|  3.00k|      decltype(auto) data() noexcept(noexcept(this->m_span.data())) { return this->m_span.data(); }
_ZNK5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_20DilithiumPublicSeed_EJEEEE4sizeEv:
  714|  3.00k|      decltype(auto) size() const noexcept(noexcept(this->m_span.size())) { return this->m_span.size(); }
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_22DilithiumSeedRhoPrime_EJEEEE4dataEv:
  710|    945|      decltype(auto) data() noexcept(noexcept(this->m_span.data())) { return this->m_span.data(); }
_ZNK5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_22DilithiumSeedRhoPrime_EJEEEE4sizeEv:
  714|    945|      decltype(auto) size() const noexcept(noexcept(this->m_span.size())) { return this->m_span.size(); }
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_24DilithiumSeedRandomness_EJEEEEC2ERS9_:
  675|     79|      StrongSpan(T& strong) : m_span(strong) {}
_ZN5Botan6detail14Strong_AdapterINSt3__16vectorIhNS_16secure_allocatorIhEEEEEC2ENS2_4spanIKhLm18446744073709551615EEE:
  188|     87|            Strong_Adapter(T(span.begin(), span.end())) {}
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_13KyberSeedRho_EJEEEEC2ERS9_:
  675|     31|      StrongSpan(T& strong) : m_span(strong) {}
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_25KyberSerializedPublicKey_EJEEEE4dataEv:
  710|     31|      decltype(auto) data() noexcept(noexcept(this->m_span.data())) { return this->m_span.data(); }
_ZNK5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_25KyberSerializedPublicKey_EJEEEE4sizeEv:
  714|     31|      decltype(auto) size() const noexcept(noexcept(this->m_span.size())) { return this->m_span.size(); }
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_13KyberSeedRho_EJEEEE4dataEv:
  710|    352|      decltype(auto) data() noexcept(noexcept(this->m_span.data())) { return this->m_span.data(); }
_ZNK5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_13KyberSeedRho_EJEEEE4sizeEv:
  714|    383|      decltype(auto) size() const noexcept(noexcept(this->m_span.size())) { return this->m_span.size(); }
_ZNK5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_20KyberSeedRandomness_EJEEEE4dataEv:
  712|     31|      decltype(auto) data() const noexcept(noexcept(this->m_span.data())) { return this->m_span.data(); }
_ZNK5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_20KyberSeedRandomness_EJEEEE4sizeEv:
  714|     31|      decltype(auto) size() const noexcept(noexcept(this->m_span.size())) { return this->m_span.size(); }
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_24KyberSamplingRandomness_EJEEEE4dataEv:
  710|    204|      decltype(auto) data() noexcept(noexcept(this->m_span.data())) { return this->m_span.data(); }
_ZNK5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_24KyberSamplingRandomness_EJEEEE4sizeEv:
  714|    204|      decltype(auto) size() const noexcept(noexcept(this->m_span.size())) { return this->m_span.size(); }
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_20KyberSeedRandomness_EJEEEEC2ERS9_:
  675|     31|      StrongSpan(T& strong) : m_span(strong) {}
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_15KyberSeedSigma_EJEEEEC2ERS9_:
  675|     31|      StrongSpan(T& strong) : m_span(strong) {}
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_15KyberSeedSigma_EJEEEE3getEv:
  708|    204|      underlying_span get() { return m_span; }
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_24KyberSamplingRandomness_EJEEEEC2ERS9_:
  675|    204|      StrongSpan(T& strong) : m_span(strong) {}
_ZN5Botan10StrongSpanIKNS_6StrongINSt3__16vectorIhNS2_9allocatorIhEEEENS_25KyberSerializedPublicKey_EJEEEEC2ERS9_:
  675|     31|      StrongSpan(T& strong) : m_span(strong) {}

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

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

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

_ZN5Botan3XOF5clearEv:
   64|    556|      void clear() {
   65|    556|         m_xof_started = false;
   66|    556|         reset();
   67|    556|      }
_ZN5Botan3XOF6updateENSt3__14spanIKhLm18446744073709551615EEE:
  140|  9.09k|      void update(std::span<const uint8_t> input) {
  141|  9.09k|         if(!m_xof_started) {
  ------------------
  |  Branch (141:13): [True: 4.58k, False: 4.51k]
  ------------------
  142|       |            // If the user didn't start() before the first input, we enforce
  143|       |            // it with a default value, here.
  144|  4.58k|            start();
  145|  4.58k|         }
  146|  9.09k|         add_data(input);
  147|  9.09k|      }
_ZN5Botan3XOFD2Ev:
   31|  4.09k|      virtual ~XOF() = default;
_ZNK5Botan3XOF8key_specEv:
   97|  4.58k|      virtual Key_Length_Specification key_spec() const {
   98|       |         // Keys are not supported by default
   99|  4.58k|         return Key_Length_Specification(0);
  100|  4.58k|      }
_ZNK5Botan3XOF17valid_salt_lengthEm:
   89|  4.58k|      virtual bool valid_salt_length(size_t salt_len) const {
   90|       |         // Salts are not supported by default
   91|  4.58k|         return salt_len == 0;
   92|  4.58k|      }
_ZN5Botan3XOF6outputITkNS_8concepts21resizable_byte_bufferENS_6StrongINSt3__16vectorIhNS4_9allocatorIhEEEENS_25DilithiumHashedPublicKey_EJEEEEET_m:
  153|     79|      T output(size_t bytes) {
  154|     79|         T out(bytes);
  155|     79|         generate_bytes(out);
  156|     79|         return out;
  157|     79|      }
_ZN5Botan3XOF6outputITkNS_8concepts21resizable_byte_bufferENS_6StrongINSt3__16vectorIhNS4_9allocatorIhEEEENS_20DilithiumPublicSeed_EJEEEEET_m:
  153|     79|      T output(size_t bytes) {
  154|     79|         T out(bytes);
  155|     79|         generate_bytes(out);
  156|     79|         return out;
  157|     79|      }
_ZN5Botan3XOF6outputITkNS_8concepts21resizable_byte_bufferENS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_22DilithiumSeedRhoPrime_EJEEEEET_m:
  153|     79|      T output(size_t bytes) {
  154|     79|         T out(bytes);
  155|     79|         generate_bytes(out);
  156|     79|         return out;
  157|     79|      }
_ZN5Botan3XOF6outputITkNS_8concepts21resizable_byte_bufferENS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_15DilithiumSeedK_EJEEEEET_m:
  153|     79|      T output(size_t bytes) {
  154|     79|         T out(bytes);
  155|     79|         generate_bytes(out);
  156|     79|         return out;
  157|     79|      }
_ZN5Botan3XOF6outputILm1EEENSt3__15arrayIhXT_EEEv:
  163|   168k|      std::array<uint8_t, count> output() {
  164|   168k|         std::array<uint8_t, count> out;  // NOLINT(*-member-init)
  165|   168k|         generate_bytes(out);
  166|   168k|         return out;
  167|   168k|      }
_ZN5Botan3XOF6outputILm3EEENSt3__15arrayIhXT_EEEv:
  163|   806k|      std::array<uint8_t, count> output() {
  164|   806k|         std::array<uint8_t, count> out;  // NOLINT(*-member-init)
  165|   806k|         generate_bytes(out);
  166|   806k|         return out;
  167|   806k|      }
_ZN5Botan3XOF6outputITkNS_8concepts21resizable_byte_bufferENS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_24KyberSamplingRandomness_EJEEEEET_m:
  153|    204|      T output(size_t bytes) {
  154|    204|         T out(bytes);
  155|    204|         generate_bytes(out);
  156|    204|         return out;
  157|    204|      }

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

_Z4fuzzNSt3__14spanIKhLm18446744073709551615EEE:
   14|  7.34k|void fuzz(std::span<const uint8_t> in) {
   15|  7.34k|   try {
   16|  7.34k|      Botan::DataSource_Memory input(in);
   17|  7.34k|      Botan::PKCS8::load_key(input);
   18|  7.34k|   } 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|  7.34k|   Botan::EC_Group::clear_registered_curve_data();
   28|  7.34k|}

_ZNK5Botan19AlgorithmIdentifier19parameters_are_nullEv:
   49|      4|bool AlgorithmIdentifier::parameters_are_null() const {
   50|      4|   return (m_parameters.size() == 2 && (m_parameters[0] == 0x05) && (m_parameters[1] == 0x00));
  ------------------
  |  Branch (50:12): [True: 3, False: 1]
  |  Branch (50:40): [True: 2, False: 1]
  |  Branch (50:69): [True: 1, False: 1]
  ------------------
   51|      4|}
_ZN5Botan19AlgorithmIdentifier11decode_fromERNS_11BER_DecoderE:
   82|  6.46k|void AlgorithmIdentifier::decode_from(BER_Decoder& codec) {
   83|  6.46k|   codec.start_sequence().decode(m_oid).raw_bytes(m_parameters).end_cons();
   84|  6.46k|}

_ZN5Botan10BER_ObjectD2Ev:
   27|   142k|BER_Object::~BER_Object() {
   28|   142k|   secure_scrub_memory(m_value);
   29|   142k|}
_ZNK5Botan10BER_Object11assert_is_aENS_9ASN1_TypeENS_10ASN1_ClassENSt3__117basic_string_viewIcNS3_11char_traitsIcEEEE:
   34|  50.3k|void BER_Object::assert_is_a(ASN1_Type expected_type_tag, ASN1_Class expected_class_tag, std::string_view descr) const {
   35|  50.3k|   if(!this->is_a(expected_type_tag, expected_class_tag)) {
  ------------------
  |  Branch (35:7): [True: 208, False: 50.1k]
  ------------------
   36|    208|      std::stringstream msg;
   37|       |
   38|    208|      msg << "Tag mismatch when decoding " << descr << " got ";
   39|       |
   40|    208|      if(m_class_tag == ASN1_Class::NoObject && m_type_tag == ASN1_Type::NoObject) {
  ------------------
  |  Branch (40:10): [True: 28, False: 180]
  |  Branch (40:49): [True: 28, False: 0]
  ------------------
   41|     28|         msg << "EOF";
   42|    180|      } else {
   43|    180|         if(m_class_tag == ASN1_Class::Universal || m_class_tag == ASN1_Class::Constructed) {
  ------------------
  |  Branch (43:13): [True: 63, False: 117]
  |  Branch (43:53): [True: 90, False: 27]
  ------------------
   44|    153|            msg << asn1_tag_to_string(m_type_tag);
   45|    153|         } else {
   46|     27|            msg << std::to_string(static_cast<uint32_t>(m_type_tag));
   47|     27|         }
   48|       |
   49|    180|         msg << "/" << asn1_class_to_string(m_class_tag);
   50|    180|      }
   51|       |
   52|    208|      msg << " expected ";
   53|       |
   54|    208|      if(expected_class_tag == ASN1_Class::Universal || expected_class_tag == ASN1_Class::Constructed) {
  ------------------
  |  Branch (54:10): [True: 180, False: 28]
  |  Branch (54:57): [True: 28, False: 0]
  ------------------
   55|    208|         msg << asn1_tag_to_string(expected_type_tag);
   56|    208|      } else {
   57|      0|         msg << std::to_string(static_cast<uint32_t>(expected_type_tag));
   58|      0|      }
   59|       |
   60|    208|      msg << "/" << asn1_class_to_string(expected_class_tag);
   61|       |
   62|    208|      throw BER_Decoding_Error(msg.str());
   63|    208|   }
   64|  50.3k|}
_ZNK5Botan10BER_Object4is_aENS_9ASN1_TypeENS_10ASN1_ClassE:
   66|  57.2k|bool BER_Object::is_a(ASN1_Type expected_type_tag, ASN1_Class expected_class_tag) const {
   67|  57.2k|   return (m_type_tag == expected_type_tag && m_class_tag == expected_class_tag);
  ------------------
  |  Branch (67:12): [True: 53.7k, False: 3.45k]
  |  Branch (67:47): [True: 53.7k, False: 17]
  ------------------
   68|  57.2k|}
_ZN5Botan10BER_Object11set_taggingENS_9ASN1_TypeENS_10ASN1_ClassE:
   74|  66.7k|void BER_Object::set_tagging(ASN1_Type type_tag, ASN1_Class class_tag) {
   75|  66.7k|   m_type_tag = type_tag;
   76|  66.7k|   m_class_tag = class_tag;
   77|  66.7k|}
_ZN5Botan20asn1_class_to_stringENS_10ASN1_ClassE:
   79|    388|std::string asn1_class_to_string(ASN1_Class type) {
   80|    388|   switch(type) {
   81|    243|      case ASN1_Class::Universal:
  ------------------
  |  Branch (81:7): [True: 243, False: 145]
  ------------------
   82|    243|         return "UNIVERSAL";
   83|    118|      case ASN1_Class::Constructed:
  ------------------
  |  Branch (83:7): [True: 118, False: 270]
  ------------------
   84|    118|         return "CONSTRUCTED";
   85|      4|      case ASN1_Class::ContextSpecific:
  ------------------
  |  Branch (85:7): [True: 4, False: 384]
  ------------------
   86|      4|         return "CONTEXT_SPECIFIC";
   87|      5|      case ASN1_Class::Application:
  ------------------
  |  Branch (87:7): [True: 5, False: 383]
  ------------------
   88|      5|         return "APPLICATION";
   89|      1|      case ASN1_Class::Private:
  ------------------
  |  Branch (89:7): [True: 1, False: 387]
  ------------------
   90|      1|         return "PRIVATE";
   91|      0|      case ASN1_Class::NoObject:
  ------------------
  |  Branch (91:7): [True: 0, False: 388]
  ------------------
   92|      0|         return "NO_OBJECT";
   93|     17|      default:
  ------------------
  |  Branch (93:7): [True: 17, False: 371]
  ------------------
   94|     17|         return "CLASS(" + std::to_string(static_cast<size_t>(type)) + ")";
   95|    388|   }
   96|    388|}
_ZN5Botan18asn1_tag_to_stringENS_9ASN1_TypeE:
   98|    405|std::string asn1_tag_to_string(ASN1_Type type) {
   99|    405|   switch(type) {
  100|     32|      case ASN1_Type::Sequence:
  ------------------
  |  Branch (100:7): [True: 32, False: 373]
  ------------------
  101|     32|         return "SEQUENCE";
  102|       |
  103|      7|      case ASN1_Type::Set:
  ------------------
  |  Branch (103:7): [True: 7, False: 398]
  ------------------
  104|      7|         return "SET";
  105|       |
  106|      3|      case ASN1_Type::PrintableString:
  ------------------
  |  Branch (106:7): [True: 3, False: 402]
  ------------------
  107|      3|         return "PRINTABLE STRING";
  108|       |
  109|      2|      case ASN1_Type::NumericString:
  ------------------
  |  Branch (109:7): [True: 2, False: 403]
  ------------------
  110|      2|         return "NUMERIC STRING";
  111|       |
  112|      2|      case ASN1_Type::Ia5String:
  ------------------
  |  Branch (112:7): [True: 2, False: 403]
  ------------------
  113|      2|         return "IA5 STRING";
  114|       |
  115|      1|      case ASN1_Type::TeletexString:
  ------------------
  |  Branch (115:7): [True: 1, False: 404]
  ------------------
  116|      1|         return "T61 STRING";
  117|       |
  118|      2|      case ASN1_Type::Utf8String:
  ------------------
  |  Branch (118:7): [True: 2, False: 403]
  ------------------
  119|      2|         return "UTF8 STRING";
  120|       |
  121|      1|      case ASN1_Type::VisibleString:
  ------------------
  |  Branch (121:7): [True: 1, False: 404]
  ------------------
  122|      1|         return "VISIBLE STRING";
  123|       |
  124|      1|      case ASN1_Type::BmpString:
  ------------------
  |  Branch (124:7): [True: 1, False: 404]
  ------------------
  125|      1|         return "BMP STRING";
  126|       |
  127|      2|      case ASN1_Type::UniversalString:
  ------------------
  |  Branch (127:7): [True: 2, False: 403]
  ------------------
  128|      2|         return "UNIVERSAL STRING";
  129|       |
  130|      1|      case ASN1_Type::UtcTime:
  ------------------
  |  Branch (130:7): [True: 1, False: 404]
  ------------------
  131|      1|         return "UTC TIME";
  132|       |
  133|      1|      case ASN1_Type::GeneralizedTime:
  ------------------
  |  Branch (133:7): [True: 1, False: 404]
  ------------------
  134|      1|         return "GENERALIZED TIME";
  135|       |
  136|     29|      case ASN1_Type::OctetString:
  ------------------
  |  Branch (136:7): [True: 29, False: 376]
  ------------------
  137|     29|         return "OCTET STRING";
  138|       |
  139|      8|      case ASN1_Type::BitString:
  ------------------
  |  Branch (139:7): [True: 8, False: 397]
  ------------------
  140|      8|         return "BIT STRING";
  141|       |
  142|      1|      case ASN1_Type::Enumerated:
  ------------------
  |  Branch (142:7): [True: 1, False: 404]
  ------------------
  143|      1|         return "ENUMERATED";
  144|       |
  145|    154|      case ASN1_Type::Integer:
  ------------------
  |  Branch (145:7): [True: 154, False: 251]
  ------------------
  146|    154|         return "INTEGER";
  147|       |
  148|      2|      case ASN1_Type::Null:
  ------------------
  |  Branch (148:7): [True: 2, False: 403]
  ------------------
  149|      2|         return "NULL";
  150|       |
  151|      3|      case ASN1_Type::ObjectId:
  ------------------
  |  Branch (151:7): [True: 3, False: 402]
  ------------------
  152|      3|         return "OBJECT";
  153|       |
  154|      6|      case ASN1_Type::Boolean:
  ------------------
  |  Branch (154:7): [True: 6, False: 399]
  ------------------
  155|      6|         return "BOOLEAN";
  156|       |
  157|      6|      case ASN1_Type::NoObject:
  ------------------
  |  Branch (157:7): [True: 6, False: 399]
  ------------------
  158|      6|         return "NO_OBJECT";
  159|       |
  160|    141|      default:
  ------------------
  |  Branch (160:7): [True: 141, False: 264]
  ------------------
  161|    141|         return "TAG(" + std::to_string(static_cast<uint32_t>(type)) + ")";
  162|    405|   }
  163|    405|}
_ZN5Botan18BER_Decoding_ErrorC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  168|    804|BER_Decoding_Error::BER_Decoding_Error(std::string_view err) : Decoding_Error(fmt("BER: {}", err)) {}
_ZN5Botan11BER_Bad_TagC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEj:
  170|     33|BER_Bad_Tag::BER_Bad_Tag(std::string_view str, uint32_t tagging) : BER_Decoding_Error(fmt("{}: {}", str, tagging)) {}
_ZN5Botan4ASN19maybe_BERERNS_10DataSourceE:
  197|  7.34k|bool maybe_BER(DataSource& source) {
  198|  7.34k|   uint8_t first_u8 = 0;
  199|  7.34k|   if(source.peek_byte(first_u8) == 0) {
  ------------------
  |  Branch (199:7): [True: 0, False: 7.34k]
  ------------------
  200|      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]
  |  |  ------------------
  ------------------
  201|      0|      throw Stream_IO_Error("ASN1::maybe_BER: Source was empty");
  202|      0|   }
  203|       |
  204|  7.34k|   const auto cons_seq = static_cast<uint8_t>(ASN1_Class::Constructed) | static_cast<uint8_t>(ASN1_Type::Sequence);
  205|  7.34k|   return first_u8 == cons_seq;
  206|  7.34k|}

_ZN5Botan3OID11from_stringENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   80|     14|OID OID::from_string(std::string_view str) {
   81|     14|   if(str.empty()) {
  ------------------
  |  Branch (81:7): [True: 0, False: 14]
  ------------------
   82|      0|      throw Invalid_Argument("OID::from_string argument must be non-empty");
   83|      0|   }
   84|       |
   85|     14|   OID o = OID_Map::global_registry().str2oid(str);
   86|     14|   if(o.has_value()) {
  ------------------
  |  Branch (86:7): [True: 14, False: 0]
  ------------------
   87|     14|      return o;
   88|     14|   }
   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|  42.5k|OID::OID(std::initializer_list<uint32_t> init) : m_id(init) {
   99|  42.5k|   oid_valid_check(m_id);
  100|  42.5k|}
_ZNK5Botan3OID9to_stringEv:
  123|  1.96k|std::string OID::to_string() const {
  124|  1.96k|   std::ostringstream out;
  125|       |
  126|  45.0k|   for(size_t i = 0; i != m_id.size(); ++i) {
  ------------------
  |  Branch (126:22): [True: 43.0k, False: 1.96k]
  ------------------
  127|       |      // avoid locale issues with integer formatting
  128|  43.0k|      out << std::to_string(m_id[i]);
  129|  43.0k|      if(i != m_id.size() - 1) {
  ------------------
  |  Branch (129:10): [True: 41.1k, False: 1.96k]
  ------------------
  130|  41.1k|         out << ".";
  131|  41.1k|      }
  132|  43.0k|   }
  133|       |
  134|  1.96k|   return out.str();
  135|  1.96k|}
_ZNK5Botan3OID19to_formatted_stringEv:
  137|  4.57k|std::string OID::to_formatted_string() const {
  138|  4.57k|   std::string s = this->human_name_or_empty();
  139|  4.57k|   if(!s.empty()) {
  ------------------
  |  Branch (139:7): [True: 4.57k, False: 0]
  ------------------
  140|  4.57k|      return s;
  141|  4.57k|   }
  142|      0|   return this->to_string();
  143|  4.57k|}
_ZNK5Botan3OID19human_name_or_emptyEv:
  145|  13.6k|std::string OID::human_name_or_empty() const {
  146|  13.6k|   return OID_Map::global_registry().oid2str(*this);
  147|  13.6k|}
_ZNK5Botan3OID7matchesESt16initializer_listIjE:
  153|  12.1k|bool OID::matches(std::initializer_list<uint32_t> other) const {
  154|       |   // TODO: once all target compilers support it, use std::ranges::equal
  155|  12.1k|   return std::equal(m_id.begin(), m_id.end(), other.begin(), other.end());
  156|  12.1k|}
_ZNK5Botan3OID9hash_codeEv:
  158|  15.5k|uint64_t OID::hash_code() const {
  159|       |   // If this is changed also update gen_oids.py to match
  160|  15.5k|   uint64_t hash = 0x621F302327D9A49A;
  161|   156k|   for(auto id : m_id) {
  ------------------
  |  Branch (161:16): [True: 156k, False: 15.5k]
  ------------------
  162|   156k|      hash *= 193;
  163|   156k|      hash += id;
  164|   156k|   }
  165|  15.5k|   return hash;
  166|  15.5k|}
_ZNK5Botan3OID11encode_intoERNS_11DER_EncoderE:
  181|  2.79k|void OID::encode_into(DER_Encoder& der) const {
  182|  2.79k|   if(m_id.size() < 2) {
  ------------------
  |  Branch (182:7): [True: 0, False: 2.79k]
  ------------------
  183|      0|      throw Invalid_Argument("OID::encode_into: OID is invalid");
  184|      0|   }
  185|       |
  186|  2.79k|   auto append = [](std::vector<uint8_t>& encoding, uint32_t z) {
  187|  2.79k|      if(z <= 0x7F) {
  188|  2.79k|         encoding.push_back(static_cast<uint8_t>(z));
  189|  2.79k|      } else {
  190|  2.79k|         const size_t z7 = (high_bit(z) + 7 - 1) / 7;
  191|       |
  192|  2.79k|         for(size_t j = 0; j != z7; ++j) {
  193|  2.79k|            uint8_t zp = static_cast<uint8_t>(z >> (7 * (z7 - j - 1)) & 0x7F);
  194|       |
  195|  2.79k|            if(j != z7 - 1) {
  196|  2.79k|               zp |= 0x80;
  197|  2.79k|            }
  198|       |
  199|  2.79k|            encoding.push_back(zp);
  200|  2.79k|         }
  201|  2.79k|      }
  202|  2.79k|   };
  203|       |
  204|  2.79k|   std::vector<uint8_t> encoding;
  205|       |
  206|       |   // We know 40 * root can't overflow because root is between 0 and 2
  207|  2.79k|   auto first = checked_add(40 * m_id[0], m_id[1]);
  208|  2.79k|   BOTAN_ASSERT_NOMSG(first.has_value());
  ------------------
  |  |   77|  2.79k|   do {                                                                     \
  |  |   78|  2.79k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  2.79k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 2.79k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  2.79k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 2.79k]
  |  |  ------------------
  ------------------
  209|       |
  210|  2.79k|   append(encoding, *first);
  211|       |
  212|  14.8k|   for(size_t i = 2; i != m_id.size(); ++i) {
  ------------------
  |  Branch (212:22): [True: 12.0k, False: 2.79k]
  ------------------
  213|  12.0k|      append(encoding, m_id[i]);
  214|  12.0k|   }
  215|  2.79k|   der.add_object(ASN1_Type::ObjectId, ASN1_Class::Universal, encoding);
  216|  2.79k|}
_ZN5Botan3OID11decode_fromERNS_11BER_DecoderE:
  221|  11.5k|void OID::decode_from(BER_Decoder& decoder) {
  222|  11.5k|   const BER_Object obj = decoder.get_next_object();
  223|  11.5k|   if(obj.tagging() != (ASN1_Class::Universal | ASN1_Type::ObjectId)) {
  ------------------
  |  Branch (223:7): [True: 33, False: 11.5k]
  ------------------
  224|     33|      throw BER_Bad_Tag("Error decoding OID, unknown tag", obj.tagging());
  225|     33|   }
  226|       |
  227|  11.5k|   if(obj.length() == 0) {
  ------------------
  |  Branch (227:7): [True: 2, False: 11.5k]
  ------------------
  228|      2|      throw BER_Decoding_Error("OID encoding is too short");
  229|      2|   }
  230|       |
  231|  11.5k|   auto consume = [](BufferSlicer& data) -> uint32_t {
  232|  11.5k|      BOTAN_ASSERT_NOMSG(!data.empty());
  233|  11.5k|      uint32_t b = data.take_byte();
  234|       |
  235|  11.5k|      if(b > 0x7F) {
  236|  11.5k|         b &= 0x7F;
  237|       |
  238|       |         // Even BER requires that the OID have minimal length, ie that
  239|       |         // the first byte of a multibyte encoding cannot be zero
  240|       |         // See X.690 section 8.19.2
  241|  11.5k|         if(b == 0) {
  242|  11.5k|            throw Decoding_Error("Leading zero byte in multibyte OID encoding");
  243|  11.5k|         }
  244|       |
  245|  11.5k|         while(true) {
  246|  11.5k|            if(data.empty()) {
  247|  11.5k|               throw Decoding_Error("Truncated OID value");
  248|  11.5k|            }
  249|       |
  250|  11.5k|            const uint8_t next = data.take_byte();
  251|  11.5k|            const bool more = (next & 0x80) == 0x80;
  252|  11.5k|            const uint8_t value = next & 0x7F;
  253|       |
  254|  11.5k|            if((b >> (32 - 7)) != 0) {
  255|  11.5k|               throw Decoding_Error("OID component overflow");
  256|  11.5k|            }
  257|       |
  258|  11.5k|            b = (b << 7) | value;
  259|       |
  260|  11.5k|            if(!more) {
  261|  11.5k|               break;
  262|  11.5k|            }
  263|  11.5k|         }
  264|  11.5k|      }
  265|       |
  266|  11.5k|      return b;
  267|  11.5k|   };
  268|       |
  269|  11.5k|   BufferSlicer data(obj.data());
  270|  11.5k|   std::vector<uint32_t> parts;
  271|   157k|   while(!data.empty()) {
  ------------------
  |  Branch (271:10): [True: 146k, False: 11.5k]
  ------------------
  272|   146k|      const uint32_t comp = consume(data);
  273|       |
  274|   146k|      if(parts.empty()) {
  ------------------
  |  Branch (274:10): [True: 11.5k, False: 134k]
  ------------------
  275|       |         // divide into root and second arc
  276|       |
  277|  11.5k|         const uint32_t root_arc = [](uint32_t b0) -> uint32_t {
  278|  11.5k|            if(b0 < 40) {
  279|  11.5k|               return 0;
  280|  11.5k|            } else if(b0 < 80) {
  281|  11.5k|               return 1;
  282|  11.5k|            } else {
  283|  11.5k|               return 2;
  284|  11.5k|            }
  285|  11.5k|         }(comp);
  286|       |
  287|  11.5k|         parts.push_back(root_arc);
  288|  11.5k|         BOTAN_ASSERT_NOMSG(comp >= 40 * root_arc);
  ------------------
  |  |   77|  11.5k|   do {                                                                     \
  |  |   78|  11.5k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  11.5k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 11.5k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  11.5k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 11.5k]
  |  |  ------------------
  ------------------
  289|  11.5k|         parts.push_back(comp - 40 * root_arc);
  290|   134k|      } else {
  291|   134k|         parts.push_back(comp);
  292|   134k|      }
  293|   146k|   }
  294|       |
  295|  11.5k|   m_id = parts;
  296|  11.5k|}
_ZN5BotanlsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEERKNS_3OIDE:
  298|  1.88k|std::ostream& operator<<(std::ostream& out, const OID& oid) {
  299|  1.88k|   out << oid.to_string();
  300|  1.88k|   return out;
  301|  1.88k|}
asn1_oid.cpp:_ZN5Botan12_GLOBAL__N_115oid_valid_checkENSt3__14spanIKjLm18446744073709551615EEE:
   26|  42.5k|void oid_valid_check(std::span<const uint32_t> oid) {
   27|  42.5k|   BOTAN_ARG_CHECK(oid.size() >= 2, "OID too short to be valid");
  ------------------
  |  |   35|  42.5k|   do {                                                          \
  |  |   36|  42.5k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  42.5k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 42.5k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  42.5k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 42.5k]
  |  |  ------------------
  ------------------
   28|  42.5k|   BOTAN_ARG_CHECK(oid[0] <= 2, "OID root out of range");
  ------------------
  |  |   35|  42.5k|   do {                                                          \
  |  |   36|  42.5k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  42.5k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 42.5k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  42.5k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 42.5k]
  |  |  ------------------
  ------------------
   29|  42.5k|   BOTAN_ARG_CHECK(oid[1] <= 39 || oid[0] == 2, "OID second arc too large");
  ------------------
  |  |   35|  42.5k|   do {                                                          \
  |  |   36|  42.5k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  42.5k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 42.5k, False: 0]
  |  |  |  Branch (37:12): [True: 0, False: 0]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  42.5k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 42.5k]
  |  |  ------------------
  ------------------
   30|       |   // This last is a limitation of using 32 bit integers when decoding
   31|       |   // not a limitation of ASN.1 object identifiers in general
   32|  42.5k|   BOTAN_ARG_CHECK(oid[1] <= 0xFFFFFFAF, "OID second arc too large");
  ------------------
  |  |   35|  42.5k|   do {                                                          \
  |  |   36|  42.5k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  42.5k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 42.5k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  42.5k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 42.5k]
  |  |  ------------------
  ------------------
   33|  42.5k|}
asn1_oid.cpp:_ZZNK5Botan3OID11encode_intoERNS_11DER_EncoderEENK3$_0clERNSt3__16vectorIhNS4_9allocatorIhEEEEj:
  186|  14.8k|   auto append = [](std::vector<uint8_t>& encoding, uint32_t z) {
  187|  14.8k|      if(z <= 0x7F) {
  ------------------
  |  Branch (187:10): [True: 12.6k, False: 2.23k]
  ------------------
  188|  12.6k|         encoding.push_back(static_cast<uint8_t>(z));
  189|  12.6k|      } else {
  190|  2.23k|         const size_t z7 = (high_bit(z) + 7 - 1) / 7;
  191|       |
  192|  6.69k|         for(size_t j = 0; j != z7; ++j) {
  ------------------
  |  Branch (192:28): [True: 4.46k, False: 2.23k]
  ------------------
  193|  4.46k|            uint8_t zp = static_cast<uint8_t>(z >> (7 * (z7 - j - 1)) & 0x7F);
  194|       |
  195|  4.46k|            if(j != z7 - 1) {
  ------------------
  |  Branch (195:16): [True: 2.23k, False: 2.23k]
  ------------------
  196|  2.23k|               zp |= 0x80;
  197|  2.23k|            }
  198|       |
  199|  4.46k|            encoding.push_back(zp);
  200|  4.46k|         }
  201|  2.23k|      }
  202|  14.8k|   };
asn1_oid.cpp:_ZZN5Botan3OID11decode_fromERNS_11BER_DecoderEENK3$_0clERNS_12BufferSlicerE:
  231|   146k|   auto consume = [](BufferSlicer& data) -> uint32_t {
  232|   146k|      BOTAN_ASSERT_NOMSG(!data.empty());
  ------------------
  |  |   77|   146k|   do {                                                                     \
  |  |   78|   146k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|   146k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 146k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|   146k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 146k]
  |  |  ------------------
  ------------------
  233|   146k|      uint32_t b = data.take_byte();
  234|       |
  235|   146k|      if(b > 0x7F) {
  ------------------
  |  Branch (235:10): [True: 24.5k, False: 121k]
  ------------------
  236|  24.5k|         b &= 0x7F;
  237|       |
  238|       |         // Even BER requires that the OID have minimal length, ie that
  239|       |         // the first byte of a multibyte encoding cannot be zero
  240|       |         // See X.690 section 8.19.2
  241|  24.5k|         if(b == 0) {
  ------------------
  |  Branch (241:13): [True: 1, False: 24.5k]
  ------------------
  242|      1|            throw Decoding_Error("Leading zero byte in multibyte OID encoding");
  243|      1|         }
  244|       |
  245|  29.3k|         while(true) {
  ------------------
  |  Branch (245:16): [True: 29.3k, Folded]
  ------------------
  246|  29.3k|            if(data.empty()) {
  ------------------
  |  Branch (246:16): [True: 29, False: 29.3k]
  ------------------
  247|     29|               throw Decoding_Error("Truncated OID value");
  248|     29|            }
  249|       |
  250|  29.3k|            const uint8_t next = data.take_byte();
  251|  29.3k|            const bool more = (next & 0x80) == 0x80;
  252|  29.3k|            const uint8_t value = next & 0x7F;
  253|       |
  254|  29.3k|            if((b >> (32 - 7)) != 0) {
  ------------------
  |  Branch (254:16): [True: 25, False: 29.3k]
  ------------------
  255|     25|               throw Decoding_Error("OID component overflow");
  256|     25|            }
  257|       |
  258|  29.3k|            b = (b << 7) | value;
  259|       |
  260|  29.3k|            if(!more) {
  ------------------
  |  Branch (260:16): [True: 24.4k, False: 4.83k]
  ------------------
  261|  24.4k|               break;
  262|  24.4k|            }
  263|  29.3k|         }
  264|  24.5k|      }
  265|       |
  266|   145k|      return b;
  267|   146k|   };
asn1_oid.cpp:_ZZN5Botan3OID11decode_fromERNS_11BER_DecoderEENK3$_1clEj:
  277|  11.5k|         const uint32_t root_arc = [](uint32_t b0) -> uint32_t {
  278|  11.5k|            if(b0 < 40) {
  ------------------
  |  Branch (278:16): [True: 1.44k, False: 10.0k]
  ------------------
  279|  1.44k|               return 0;
  280|  10.0k|            } else if(b0 < 80) {
  ------------------
  |  Branch (280:23): [True: 8.57k, False: 1.52k]
  ------------------
  281|  8.57k|               return 1;
  282|  8.57k|            } else {
  283|  1.52k|               return 2;
  284|  1.52k|            }
  285|  11.5k|         }(comp);

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

_ZN5Botan11DER_EncoderC2ERNSt3__16vectorIhNS1_9allocatorIhEEEE:
   72|  2.79k|DER_Encoder::DER_Encoder(std::vector<uint8_t>& vec) {
   73|  2.79k|   m_append_output = [&vec](const uint8_t b[], size_t l) { vec.insert(vec.end(), b, b + l); };
   74|  2.79k|}
_ZN5Botan11DER_Encoder10add_objectENS_9ASN1_TypeENS_10ASN1_ClassEPKhm:
  244|  2.79k|DER_Encoder& DER_Encoder::add_object(ASN1_Type type_tag, ASN1_Class class_tag, const uint8_t rep[], size_t length) {
  245|  2.79k|   std::vector<uint8_t> hdr;
  246|  2.79k|   encode_tag(hdr, type_tag, class_tag);
  247|  2.79k|   encode_length(hdr, length);
  248|       |
  249|  2.79k|   if(!m_subsequences.empty()) {
  ------------------
  |  Branch (249:7): [True: 0, False: 2.79k]
  ------------------
  250|      0|      m_subsequences[m_subsequences.size() - 1].add_bytes(hdr.data(), hdr.size(), rep, length);
  251|  2.79k|   } else if(m_append_output) {
  ------------------
  |  Branch (251:14): [True: 2.79k, False: 0]
  ------------------
  252|  2.79k|      m_append_output(hdr.data(), hdr.size());
  253|  2.79k|      m_append_output(rep, length);
  254|  2.79k|   } else {
  255|      0|      m_default_outbuf += hdr;
  256|      0|      m_default_outbuf += std::make_pair(rep, length);
  257|      0|   }
  258|       |
  259|  2.79k|   return (*this);
  260|  2.79k|}
_ZN5Botan11DER_Encoder6encodeERKNS_11ASN1_ObjectE:
  368|  2.79k|DER_Encoder& DER_Encoder::encode(const ASN1_Object& obj) {
  369|  2.79k|   obj.encode_into(*this);
  370|  2.79k|   return (*this);
  371|  2.79k|}
der_enc.cpp:_ZN5Botan12_GLOBAL__N_110encode_tagERNSt3__16vectorIhNS1_9allocatorIhEEEENS_9ASN1_TypeENS_10ASN1_ClassE:
   25|  2.79k|void encode_tag(std::vector<uint8_t>& encoded_tag, ASN1_Type type_tag_e, ASN1_Class class_tag_e) {
   26|  2.79k|   const uint32_t type_tag = static_cast<uint32_t>(type_tag_e);
   27|  2.79k|   const uint32_t class_tag = static_cast<uint32_t>(class_tag_e);
   28|       |
   29|  2.79k|   if((class_tag | 0xE0) != 0xE0) {
  ------------------
  |  Branch (29:7): [True: 0, False: 2.79k]
  ------------------
   30|      0|      throw Encoding_Error(fmt("DER_Encoder: Invalid class tag {}", std::to_string(class_tag)));
   31|      0|   }
   32|       |
   33|  2.79k|   if(type_tag <= 30) {
  ------------------
  |  Branch (33:7): [True: 2.79k, False: 0]
  ------------------
   34|  2.79k|      encoded_tag.push_back(static_cast<uint8_t>(type_tag | class_tag));
   35|  2.79k|   } else {
   36|      0|      size_t blocks = high_bit(static_cast<uint32_t>(type_tag)) + 6;
   37|      0|      blocks = (blocks - (blocks % 7)) / 7;
   38|       |
   39|      0|      BOTAN_ASSERT_NOMSG(blocks > 0);
  ------------------
  |  |   77|      0|   do {                                                                     \
  |  |   78|      0|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|      0|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|      0|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
   40|       |
   41|      0|      encoded_tag.push_back(static_cast<uint8_t>(class_tag | 0x1F));
   42|      0|      for(size_t i = 0; i != blocks - 1; ++i) {
  ------------------
  |  Branch (42:25): [True: 0, False: 0]
  ------------------
   43|      0|         encoded_tag.push_back(0x80 | ((type_tag >> 7 * (blocks - i - 1)) & 0x7F));
   44|      0|      }
   45|      0|      encoded_tag.push_back(type_tag & 0x7F);
   46|      0|   }
   47|  2.79k|}
der_enc.cpp:_ZN5Botan12_GLOBAL__N_113encode_lengthERNSt3__16vectorIhNS1_9allocatorIhEEEEm:
   52|  2.79k|void encode_length(std::vector<uint8_t>& encoded_length, size_t length) {
   53|  2.79k|   if(length <= 127) {
  ------------------
  |  Branch (53:7): [True: 2.79k, False: 0]
  ------------------
   54|  2.79k|      encoded_length.push_back(static_cast<uint8_t>(length));
   55|  2.79k|   } else {
   56|      0|      const size_t bytes_needed = significant_bytes(length);
   57|       |
   58|      0|      encoded_length.push_back(static_cast<uint8_t>(0x80 | bytes_needed));
   59|       |
   60|      0|      for(size_t i = sizeof(length) - bytes_needed; i < sizeof(length); ++i) {
  ------------------
  |  Branch (60:53): [True: 0, False: 0]
  ------------------
   61|      0|         encoded_length.push_back(get_byte_var(i, length));
   62|      0|      }
   63|      0|   }
   64|  2.79k|}
der_enc.cpp:_ZZN5Botan11DER_EncoderC1ERNSt3__16vectorIhNS1_9allocatorIhEEEEENK3$_0clEPKhm:
   73|  5.59k|   m_append_output = [&vec](const uint8_t b[], size_t l) { vec.insert(vec.end(), b, b + l); };

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

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

_ZN5Botan13base64_decodeEPKcmb:
  189|    112|secure_vector<uint8_t> base64_decode(const char input[], size_t input_length, bool ignore_ws) {
  190|    112|   return base_decode_to_vec<secure_vector<uint8_t>>(Base64(), input, input_length, ignore_ws);
  191|    112|}
base64.cpp:_ZN5Botan12_GLOBAL__N_16Base6417decode_max_outputEm:
   43|    224|      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|    224|         return (round_up(input_length, m_encoding_bytes_out) / m_encoding_bytes_out) * m_encoding_bytes_in;
   46|    224|      }
base64.cpp:_ZN5Botan12_GLOBAL__N_16Base6413bits_consumedEv:
   34|     30|      static constexpr size_t bits_consumed() noexcept { return m_encoding_bits; }
base64.cpp:_ZN5Botan12_GLOBAL__N_16Base6419lookup_binary_valueEc:
  112|  25.3k|uint8_t Base64::lookup_binary_value(char input) noexcept {
  113|  25.3k|   auto has_zero_byte = [](uint64_t v) { return ((v - 0x0101010101010101) & ~(v) & 0x8080808080808080); };
  114|       |
  115|       |   // Assumes each byte is either 0x00 or 0x80
  116|  25.3k|   auto index_of_first_set_byte = [](uint64_t v) {
  117|  25.3k|      return ((((v - 1) & 0x0101010101010101) * 0x0101010101010101) >> 56) - 1;
  118|  25.3k|   };
  119|       |
  120|  25.3k|   constexpr uint64_t lo = 0x0101010101010101;
  121|       |
  122|  25.3k|   const uint8_t x = static_cast<uint8_t>(input);
  123|       |
  124|  25.3k|   const uint64_t x8 = x * lo;
  125|       |
  126|       |   // Defines the valid ASCII ranges of base64, except the special chars (below)
  127|  25.3k|   constexpr uint64_t val_l = make_uint64(0, 0, 0, 0, 0, 'A', 'a', '0');
  128|  25.3k|   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|  25.3k|   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|  25.3k|   const uint64_t val_v = 0xbfb904 ^ (0xFF000000 - (x << 24));
  136|       |
  137|  25.3k|   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|  25.3k|   constexpr uint64_t specials_i = make_uint64(0, '+', '/', '=', ' ', '\n', '\t', '\r');
  141|       |
  142|  25.3k|   const uint64_t specials_v = 0x3e3f8180808080 ^ (static_cast<uint64_t>(z) << 56);
  143|       |
  144|  25.3k|   const uint64_t smask = has_zero_byte(x8 ^ specials_i) ^ 0x8000000000000000;
  145|       |
  146|  25.3k|   return static_cast<uint8_t>(specials_v >> (8 * index_of_first_set_byte(smask)));
  147|  25.3k|}
base64.cpp:_ZZN5Botan12_GLOBAL__N_16Base6419lookup_binary_valueEcENK3$_0clEm:
  116|  50.7k|   auto index_of_first_set_byte = [](uint64_t v) {
  117|  50.7k|      return ((((v - 1) & 0x0101010101010101) * 0x0101010101010101) >> 56) - 1;
  118|  50.7k|   };
base64.cpp:_ZZN5Botan12_GLOBAL__N_16Base6419lookup_binary_valueEcENK3$_1clEm:
  113|  25.3k|   auto has_zero_byte = [](uint64_t v) { return ((v - 0x0101010101010101) & ~(v) & 0x8080808080808080); };
base64.cpp:_ZN5Botan12_GLOBAL__N_16Base6414check_bad_charEhcb:
  150|  21.8k|bool Base64::check_bad_char(uint8_t bin, char input, bool ignore_ws) {
  151|  21.8k|   if(bin <= 0x3F) {
  ------------------
  |  Branch (151:7): [True: 2.18k, False: 19.6k]
  ------------------
  152|  2.18k|      return true;
  153|  19.6k|   } else if(!(bin == 0x81 || (bin == 0x80 && ignore_ws))) {
  ------------------
  |  Branch (153:16): [True: 464, False: 19.1k]
  |  Branch (153:32): [True: 19.1k, False: 26]
  |  Branch (153:47): [True: 19.1k, False: 0]
  ------------------
  154|     26|      throw Invalid_Argument(fmt("base64_decode: invalid character '{}'", format_char_for_display(input)));
  155|     26|   }
  156|  19.6k|   return false;
  157|  21.8k|}
base64.cpp:_ZN5Botan12_GLOBAL__N_16Base644nameEv:
   24|     36|      static std::string name() { return "base64"; }
base64.cpp:_ZN5Botan12_GLOBAL__N_16Base646decodeEPhPKh:
   54|    542|      static void decode(uint8_t* out_ptr, const uint8_t decode_buf[4]) {
   55|    542|         out_ptr[0] = (decode_buf[0] << 2) | (decode_buf[1] >> 4);
   56|    542|         out_ptr[1] = (decode_buf[1] << 4) | (decode_buf[2] >> 2);
   57|    542|         out_ptr[2] = (decode_buf[2] << 6) | decode_buf[3];
   58|    542|      }
base64.cpp:_ZN5Botan12_GLOBAL__N_16Base6415bytes_to_removeEm:
   60|     69|      static size_t bytes_to_remove(size_t final_truncate) { return final_truncate; }

_ZN5Botan10hex_decodeEPhPKcmRmb:
   75|  19.6k|size_t hex_decode(uint8_t output[], const char input[], size_t input_length, size_t& input_consumed, bool ignore_ws) {
   76|  19.6k|   uint8_t* out_ptr = output;
   77|  19.6k|   bool top_nibble = true;
   78|  19.6k|   uint8_t next = 0;
   79|       |
   80|  19.6k|   input_consumed = 0;
   81|       |
   82|  19.6k|   clear_mem(output, input_length / 2);
   83|       |
   84|  1.18M|   for(size_t i = 0; i != input_length; ++i) {
  ------------------
  |  Branch (84:22): [True: 1.16M, False: 19.6k]
  ------------------
   85|  1.16M|      const uint8_t bin = hex_char_to_bin(input[i]);
   86|       |
   87|  1.16M|      if(bin >= 0x10) {
  ------------------
  |  Branch (87:10): [True: 0, False: 1.16M]
  ------------------
   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.16M|      if(top_nibble) {
  ------------------
  |  Branch (95:10): [True: 583k, False: 583k]
  ------------------
   96|   583k|         next = bin << 4;
   97|   583k|      } else {
   98|   583k|         next |= bin;
   99|   583k|         *out_ptr = next;
  100|   583k|      }
  101|       |
  102|  1.16M|      top_nibble = !top_nibble;
  103|  1.16M|      if(top_nibble) {
  ------------------
  |  Branch (103:10): [True: 583k, False: 583k]
  ------------------
  104|   583k|         ++out_ptr;
  105|   583k|         input_consumed = i + 1;
  106|   583k|      }
  107|  1.16M|   }
  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|  19.6k|   while(input_consumed < input_length && hex_char_to_bin(input[input_consumed]) == 0x80) {
  ------------------
  |  Branch (113:10): [True: 0, False: 19.6k]
  |  Branch (113:43): [True: 0, False: 0]
  ------------------
  114|      0|      ++input_consumed;
  115|      0|   }
  116|       |
  117|  19.6k|   return (out_ptr - output);
  118|  19.6k|}
_ZN5Botan10hex_decodeEPhPKcmb:
  120|  19.6k|size_t hex_decode(uint8_t output[], const char input[], size_t input_length, bool ignore_ws) {
  121|  19.6k|   size_t consumed = 0;
  122|  19.6k|   const size_t written = hex_decode(output, input, input_length, consumed, ignore_ws);
  123|       |
  124|  19.6k|   if(consumed != input_length) {
  ------------------
  |  Branch (124:7): [True: 0, False: 19.6k]
  ------------------
  125|      0|      throw Invalid_Argument("hex_decode: input did not have full bytes");
  126|      0|   }
  127|       |
  128|  19.6k|   return written;
  129|  19.6k|}
_ZN5Botan17hex_decode_lockedEPKcmb:
  142|  19.6k|secure_vector<uint8_t> hex_decode_locked(const char input[], size_t input_length, bool ignore_ws) {
  143|  19.6k|   secure_vector<uint8_t> bin(1 + input_length / 2);
  144|       |
  145|  19.6k|   const size_t written = hex_decode(bin.data(), input, input_length, ignore_ws);
  146|       |
  147|  19.6k|   bin.resize(written);
  148|  19.6k|   return bin;
  149|  19.6k|}
_ZN5Botan17hex_decode_lockedENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEEb:
  151|  12.4k|secure_vector<uint8_t> hex_decode_locked(std::string_view input, bool ignore_ws) {
  152|  12.4k|   return hex_decode_locked(input.data(), input.size(), ignore_ws);
  153|  12.4k|}
hex.cpp:_ZN5Botan12_GLOBAL__N_115hex_char_to_binEc:
   55|  1.16M|uint8_t hex_char_to_bin(char input) {
   56|       |   // Starts of valid value ranges (v_lo) and their lengths (v_range)
   57|  1.16M|   constexpr uint64_t v_lo = make_uint64(0, '0', 'a', 'A', ' ', '\n', '\t', '\r');
   58|  1.16M|   constexpr uint64_t v_range = make_uint64(0, 10, 6, 6, 1, 1, 1, 1);
   59|  1.16M|   constexpr uint64_t expand8 = 0x0101010101010101;
   60|  1.16M|   constexpr uint64_t top64 = 0x8000000000000000;
   61|       |
   62|  1.16M|   const uint8_t x = static_cast<uint8_t>(input);
   63|  1.16M|   const uint64_t x8 = x * expand8;
   64|       |
   65|  1.16M|   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.16M|   const uint64_t val_v = 0xd0a9c960767773 ^ static_cast<uint64_t>(0xFF - x) << 56;
   69|       |
   70|  1.16M|   return x + static_cast<uint8_t>(val_v >> (8 * index_of_first_set_byte(v_mask)));
   71|  1.16M|}

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

_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|     62|      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|     62|   if(output_bits != 224 && output_bits != 256 && output_bits != 384 && output_bits != 512) {
  ------------------
  |  Branch (20:7): [True: 62, False: 0]
  |  Branch (20:29): [True: 31, False: 31]
  |  Branch (20:51): [True: 31, False: 0]
  |  Branch (20:73): [True: 0, False: 31]
  ------------------
   21|      0|      throw Invalid_Argument(fmt("SHA_3: Invalid output length {}", output_bits));
   22|      0|   }
   23|     62|}
_ZN5Botan5SHA_38add_dataENSt3__14spanIKhLm18446744073709551615EEE:
   45|     93|void SHA_3::add_data(std::span<const uint8_t> input) {
   46|     93|   m_keccak.absorb(input);
   47|     93|}
_ZN5Botan5SHA_312final_resultENSt3__14spanIhLm18446744073709551615EEE:
   49|     62|void SHA_3::final_result(std::span<uint8_t> output) {
   50|     62|   m_keccak.finish();
   51|     62|   m_keccak.squeeze(output);
   52|     62|   m_keccak.clear();
   53|     62|}

_ZN5Botan6BigInt17from_radix_digitsENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEm:
  125|  17.1k|BigInt BigInt::from_radix_digits(std::string_view digits, size_t radix) {
  126|  17.1k|   if(radix == 16) {
  ------------------
  |  Branch (126:7): [True: 17.1k, False: 0]
  ------------------
  127|  17.1k|      secure_vector<uint8_t> binary;
  128|       |
  129|  17.1k|      if(digits.size() % 2 == 1) {
  ------------------
  |  Branch (129:10): [True: 4.68k, False: 12.4k]
  ------------------
  130|       |         // Handle lack of leading 0
  131|  4.68k|         const char buf0_with_leading_0[2] = {'0', digits[0]};
  132|       |
  133|  4.68k|         binary = hex_decode_locked(buf0_with_leading_0, 2);
  134|       |
  135|  4.68k|         if(digits.size() > 1) {
  ------------------
  |  Branch (135:13): [True: 2.45k, False: 2.23k]
  ------------------
  136|  2.45k|            binary += hex_decode_locked(&digits[1], digits.size() - 1, false);
  137|  2.45k|         }
  138|  12.4k|      } else {
  139|  12.4k|         binary = hex_decode_locked(digits, false);
  140|  12.4k|      }
  141|       |
  142|  17.1k|      return BigInt::from_bytes(binary);
  143|  17.1k|   } 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|  17.1k|}

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

_ZN5Botan6BigInt4add2ERKS0_PKmmNS0_4SignE:
   20|   951k|BigInt BigInt::add2(const BigInt& x, const word y[], size_t y_size, BigInt::Sign y_sign) {
   21|   951k|   const size_t x_sw = x.sig_words();
   22|       |
   23|   951k|   BigInt z = BigInt::with_capacity(std::max(x_sw, y_size) + 1);
   24|       |
   25|   951k|   if(x.sign() == y_sign) {
  ------------------
  |  Branch (25:7): [True: 943k, False: 7.64k]
  ------------------
   26|   943k|      const word carry = bigint_add3(z.mutable_data(), x._data(), x_sw, y, y_size);
   27|   943k|      z.mutable_data()[std::max(x_sw, y_size)] += carry;
   28|   943k|      z.set_sign(x.sign());
   29|   943k|   } else {
   30|  7.64k|      const int32_t relative_size = bigint_cmp(x.data(), x_sw, y, y_size);
   31|       |
   32|  7.64k|      if(relative_size < 0) {
  ------------------
  |  Branch (32:10): [True: 0, False: 7.64k]
  ------------------
   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|  7.64k|      } else if(relative_size == 0) {
  ------------------
  |  Branch (37:17): [True: 0, False: 7.64k]
  ------------------
   38|       |         // Positive zero (nothing to do in this case)
   39|  7.64k|      } 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|  7.64k|         y_size = std::min(x_sw, y_size);
   46|  7.64k|         bigint_sub3(z.mutable_data(), x.data(), x_sw, y, y_size);
   47|  7.64k|         z.set_sign(x.sign());
   48|  7.64k|      }
   49|  7.64k|   }
   50|       |
   51|   951k|   return z;
   52|   951k|}
_ZN5BotanmlERKNS_6BigIntES2_:
   57|  1.71k|BigInt operator*(const BigInt& x, const BigInt& y) {
   58|  1.71k|   const size_t x_sw = x.sig_words();
   59|  1.71k|   const size_t y_sw = y.sig_words();
   60|       |
   61|  1.71k|   BigInt z = BigInt::with_capacity(x.size() + y.size());
   62|       |
   63|  1.71k|   if(x_sw == 1 && y_sw > 0) {
  ------------------
  |  Branch (63:7): [True: 48, False: 1.66k]
  |  Branch (63:20): [True: 48, False: 0]
  ------------------
   64|     48|      bigint_linmul3(z.mutable_data(), y._data(), y_sw, x.word_at(0));
   65|  1.66k|   } else if(y_sw == 1 && x_sw > 0) {
  ------------------
  |  Branch (65:14): [True: 16, False: 1.65k]
  |  Branch (65:27): [True: 16, False: 0]
  ------------------
   66|     16|      bigint_linmul3(z.mutable_data(), x._data(), x_sw, y.word_at(0));
   67|  1.65k|   } else if(x_sw > 0 && y_sw > 0) {
  ------------------
  |  Branch (67:14): [True: 1.64k, False: 3]
  |  Branch (67:26): [True: 1.64k, False: 1]
  ------------------
   68|  1.64k|      secure_vector<word> workspace(z.size());
   69|       |
   70|  1.64k|      bigint_mul(z.mutable_data(),
   71|  1.64k|                 z.size(),
   72|  1.64k|                 x._data(),
   73|  1.64k|                 x.size(),
   74|  1.64k|                 x_sw,
   75|  1.64k|                 y._data(),
   76|  1.64k|                 y.size(),
   77|  1.64k|                 y_sw,
   78|  1.64k|                 workspace.data(),
   79|  1.64k|                 workspace.size());
   80|  1.64k|   }
   81|       |
   82|  1.71k|   z.cond_flip_sign(x_sw > 0 && y_sw > 0 && x.sign() != y.sign());
  ------------------
  |  Branch (82:21): [True: 1.71k, False: 3]
  |  Branch (82:33): [True: 1.71k, False: 1]
  |  Branch (82:45): [True: 0, False: 1.71k]
  ------------------
   83|       |
   84|  1.71k|   return z;
   85|  1.71k|}
_ZN5BotanmlERKNS_6BigIntEm:
   90|  76.3k|BigInt operator*(const BigInt& x, word y) {
   91|  76.3k|   const size_t x_sw = x.sig_words();
   92|       |
   93|  76.3k|   BigInt z = BigInt::with_capacity(x_sw + 1);
   94|       |
   95|  76.3k|   if(x_sw > 0 && y > 0) {
  ------------------
  |  Branch (95:7): [True: 76.3k, False: 0]
  |  Branch (95:19): [True: 76.3k, False: 0]
  ------------------
   96|  76.3k|      bigint_linmul3(z.mutable_data(), x._data(), x_sw, y);
   97|  76.3k|      z.set_sign(x.sign());
   98|  76.3k|   }
   99|       |
  100|  76.3k|   return z;
  101|  76.3k|}
_ZN5BotandvERKNS_6BigIntES2_:
  106|    534|BigInt operator/(const BigInt& x, const BigInt& y) {
  107|    534|   if(y.sig_words() == 1 && y.signum() >= 0) {
  ------------------
  |  Branch (107:7): [True: 0, False: 534]
  |  Branch (107:29): [True: 0, False: 0]
  ------------------
  108|      0|      return x / y.word_at(0);
  109|      0|   }
  110|       |
  111|    534|   BigInt q;
  112|    534|   BigInt r;
  113|    534|   vartime_divide(x, y, q, r);
  114|    534|   return q;
  115|    534|}
_ZN5BotandvERKNS_6BigIntEm:
  120|  1.38k|BigInt operator/(const BigInt& x, word y) {
  121|  1.38k|   if(y == 0) {
  ------------------
  |  Branch (121:7): [True: 0, False: 1.38k]
  ------------------
  122|      0|      throw Invalid_Argument("BigInt::operator/ divide by zero");
  123|      0|   }
  124|       |
  125|  1.38k|   BigInt q;
  126|  1.38k|   word r = 0;
  127|  1.38k|   ct_divide_word(x, y, q, r);
  128|  1.38k|   return q;
  129|  1.38k|}
_ZN5BotanrmERKNS_6BigIntES2_:
  134|  49.9k|BigInt operator%(const BigInt& n, const BigInt& mod) {
  135|  49.9k|   if(mod.is_zero()) {
  ------------------
  |  Branch (135:7): [True: 0, False: 49.9k]
  ------------------
  136|      0|      throw Invalid_Argument("BigInt::operator% divide by zero");
  137|      0|   }
  138|  49.9k|   if(mod.signum() < 0) {
  ------------------
  |  Branch (138:7): [True: 0, False: 49.9k]
  ------------------
  139|      0|      throw Invalid_Argument("BigInt::operator% modulus must be > 0");
  140|      0|   }
  141|  49.9k|   if(n.signum() >= 0 && mod.signum() >= 0 && n < mod) {
  ------------------
  |  Branch (141:7): [True: 48.3k, False: 1.61k]
  |  Branch (141:26): [True: 48.3k, False: 0]
  |  Branch (141:47): [True: 37, False: 48.2k]
  ------------------
  142|     37|      return n;
  143|     37|   }
  144|       |
  145|  49.9k|   if(mod.sig_words() == 1) {
  ------------------
  |  Branch (145:7): [True: 17.3k, False: 32.5k]
  ------------------
  146|  17.3k|      return BigInt::from_word(n % mod.word_at(0));
  147|  17.3k|   }
  148|       |
  149|  32.5k|   BigInt q;
  150|  32.5k|   BigInt r;
  151|  32.5k|   vartime_divide(n, mod, q, r);
  152|  32.5k|   return r;
  153|  49.9k|}
_ZN5BotanrmERKNS_6BigIntEm:
  158|  44.5k|word operator%(const BigInt& n, word mod) {
  159|  44.5k|   if(mod == 0) {
  ------------------
  |  Branch (159:7): [True: 0, False: 44.5k]
  ------------------
  160|      0|      throw Invalid_Argument("BigInt::operator% divide by zero");
  161|      0|   }
  162|       |
  163|  44.5k|   if(mod == 1) {
  ------------------
  |  Branch (163:7): [True: 0, False: 44.5k]
  ------------------
  164|      0|      return 0;
  165|      0|   }
  166|       |
  167|  44.5k|   word remainder = 0;
  168|       |
  169|  44.5k|   if(n.signum() >= 0 && is_power_of_2(mod)) {
  ------------------
  |  Branch (169:7): [True: 44.5k, False: 4]
  |  Branch (169:26): [True: 27.2k, False: 17.3k]
  ------------------
  170|  27.2k|      remainder = (n.word_at(0) & (mod - 1));
  171|  27.2k|   } else {
  172|  17.3k|      const divide_precomp redc_mod(mod);
  173|  17.3k|      const size_t sw = n.sig_words();
  174|  51.6k|      for(size_t i = sw; i > 0; --i) {
  ------------------
  |  Branch (174:26): [True: 34.3k, False: 17.3k]
  ------------------
  175|  34.3k|         remainder = redc_mod.vartime_mod_2to1(remainder, n.word_at(i - 1));
  176|  34.3k|      }
  177|  17.3k|   }
  178|       |
  179|  44.5k|   if(remainder != 0 && n.sign() == BigInt::Negative) {
  ------------------
  |  Branch (179:7): [True: 44.5k, False: 0]
  |  Branch (179:25): [True: 4, False: 44.5k]
  ------------------
  180|      4|      return mod - remainder;
  181|      4|   }
  182|  44.5k|   return remainder;
  183|  44.5k|}
_ZN5BotanlsERKNS_6BigIntEm:
  188|  44.6k|BigInt operator<<(const BigInt& x, size_t shift) {
  189|  44.6k|   if(shift >= 65536) {
  ------------------
  |  Branch (189:7): [True: 0, False: 44.6k]
  ------------------
  190|      0|      throw Invalid_Argument("BigInt left shift count too large");
  191|      0|   }
  192|       |
  193|  44.6k|   if(x.is_zero()) {
  ------------------
  |  Branch (193:7): [True: 0, False: 44.6k]
  ------------------
  194|      0|      return BigInt::zero();
  195|      0|   }
  196|       |
  197|  44.6k|   const size_t x_sw = x.sig_words();
  198|       |
  199|  44.6k|   const size_t new_size = x_sw + shift / WordInfo<word>::bits + 1;
  200|  44.6k|   BigInt y = BigInt::with_capacity(new_size);
  201|  44.6k|   bigint_shl2(y.mutable_data(), new_size, x._data(), x_sw, shift);
  202|  44.6k|   y.set_sign(x.sign());
  203|  44.6k|   return y;
  204|  44.6k|}
_ZN5BotanrsERKNS_6BigIntEm:
  209|  1.85k|BigInt operator>>(const BigInt& x, size_t shift) {
  210|  1.85k|   const size_t shift_words = shift / WordInfo<word>::bits;
  211|  1.85k|   const size_t x_sw = x.sig_words();
  212|       |
  213|  1.85k|   if(shift_words >= x_sw) {
  ------------------
  |  Branch (213:7): [True: 0, False: 1.85k]
  ------------------
  214|      0|      return BigInt::zero();
  215|      0|   }
  216|       |
  217|  1.85k|   const size_t new_size = x_sw - shift_words;
  218|  1.85k|   BigInt y = BigInt::with_capacity(new_size);
  219|  1.85k|   bigint_shr2(y.mutable_data(), new_size, x._data(), x_sw, shift);
  220|       |
  221|  1.85k|   if(x.signum() < 0 && y.is_zero()) {
  ------------------
  |  Branch (221:7): [True: 0, False: 1.85k]
  |  Branch (221:25): [True: 0, False: 0]
  ------------------
  222|      0|      y.set_sign(BigInt::Positive);
  223|  1.85k|   } else {
  224|  1.85k|      y.set_sign(x.sign());
  225|  1.85k|   }
  226|       |
  227|  1.85k|   return y;
  228|  1.85k|}

_ZN5Botan6BigIntC2Em:
   20|  5.17k|BigInt::BigInt(uint64_t n) {
   21|  5.17k|   if constexpr(sizeof(word) == 8) {
   22|  5.17k|      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|  5.17k|}
_ZN5Botan6BigInt8from_u64Em:
   30|  2.09k|BigInt BigInt::from_u64(uint64_t n) {
   31|  2.09k|   return BigInt(n);
   32|  2.09k|}
_ZN5Botan6BigInt9from_wordEm:
   35|  20.4k|BigInt BigInt::from_word(word n) {
   36|  20.4k|   BigInt bn;
   37|  20.4k|   bn.set_word_at(0, n);
   38|  20.4k|   return bn;
   39|  20.4k|}
_ZN5Botan6BigInt8from_s32Ei:
   42|    203|BigInt BigInt::from_s32(int32_t n) {
   43|    203|   if(n >= 0) {
  ------------------
  |  Branch (43:7): [True: 0, False: 203]
  ------------------
   44|      0|      return BigInt::from_u64(static_cast<uint64_t>(n));
   45|    203|   } else {
   46|    203|      return -BigInt::from_u64(static_cast<uint64_t>(-static_cast<int64_t>(n)));
   47|    203|   }
   48|    203|}
_ZN5Botan6BigInt13with_capacityEm:
   51|  3.20M|BigInt BigInt::with_capacity(size_t size) {
   52|  3.20M|   BigInt bn;
   53|  3.20M|   bn.grow_to(size);
   54|  3.20M|   return bn;
   55|  3.20M|}
_ZN5Botan6BigInt11from_stringENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   57|  17.1k|BigInt BigInt::from_string(std::string_view str) {
   58|  17.1k|   size_t prefix_bytes = 0;
   59|  17.1k|   bool negative = false;
   60|  17.1k|   size_t radix = 10;
   61|       |
   62|  17.1k|   if(!str.empty() && str[0] == '-') {
  ------------------
  |  Branch (62:7): [True: 17.1k, False: 0]
  |  Branch (62:23): [True: 0, False: 17.1k]
  ------------------
   63|      0|      prefix_bytes += 1;
   64|      0|      negative = true;
   65|      0|   }
   66|       |
   67|  17.1k|   if(str.length() > prefix_bytes + 2 && str[prefix_bytes] == '0' && str[prefix_bytes + 1] == 'x') {
  ------------------
  |  Branch (67:7): [True: 17.1k, False: 0]
  |  Branch (67:42): [True: 17.1k, False: 0]
  |  Branch (67:70): [True: 17.1k, False: 0]
  ------------------
   68|  17.1k|      prefix_bytes += 2;
   69|  17.1k|      radix = 16;
   70|  17.1k|   }
   71|       |
   72|  17.1k|   BigInt r = BigInt::from_radix_digits(str.substr(prefix_bytes), radix);
   73|       |
   74|  17.1k|   if(negative) {
  ------------------
  |  Branch (74:7): [True: 0, False: 17.1k]
  ------------------
   75|      0|      r.set_sign(Negative);
   76|  17.1k|   } else {
   77|  17.1k|      r.set_sign(Positive);
   78|  17.1k|   }
   79|       |
   80|  17.1k|   return r;
   81|  17.1k|}
_ZN5Botan6BigInt10from_bytesENSt3__14spanIKhLm18446744073709551615EEE:
   83|  27.0k|BigInt BigInt::from_bytes(std::span<const uint8_t> input) {
   84|  27.0k|   BigInt r;
   85|  27.0k|   r.assign_from_bytes(input);
   86|  27.0k|   return r;
   87|  27.0k|}
_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|   270k|int32_t BigInt::cmp_word(word other) const {
  123|   270k|   if(signum() < 0) {
  ------------------
  |  Branch (123:7): [True: 3.44k, False: 267k]
  ------------------
  124|  3.44k|      return -1;  // other is positive ...
  125|  3.44k|   }
  126|       |
  127|   267k|   const size_t sw = this->sig_words();
  128|   267k|   if(sw > 1) {
  ------------------
  |  Branch (128:7): [True: 206k, False: 60.3k]
  ------------------
  129|   206k|      return 1;  // must be larger since other is just one word ...
  130|   206k|   }
  131|       |
  132|  60.3k|   return bigint_cmp(this->_data(), sw, &other, 1);
  133|   267k|}
_ZNK5Botan6BigInt3cmpERKS0_b:
  138|  16.6k|int32_t BigInt::cmp(const BigInt& other, bool check_signs) const {
  139|  16.6k|   if(check_signs) {
  ------------------
  |  Branch (139:7): [True: 16.6k, False: 0]
  ------------------
  140|  16.6k|      if(other.signum() >= 0 && this->signum() < 0) {
  ------------------
  |  Branch (140:10): [True: 16.6k, False: 0]
  |  Branch (140:33): [True: 0, False: 16.6k]
  ------------------
  141|      0|         return -1;
  142|      0|      }
  143|       |
  144|  16.6k|      if(other.signum() < 0 && this->signum() >= 0) {
  ------------------
  |  Branch (144:10): [True: 0, False: 16.6k]
  |  Branch (144:32): [True: 0, False: 0]
  ------------------
  145|      0|         return 1;
  146|      0|      }
  147|       |
  148|  16.6k|      if(other.signum() < 0 && this->signum() < 0) {
  ------------------
  |  Branch (148:10): [True: 0, False: 16.6k]
  |  Branch (148:32): [True: 0, False: 0]
  ------------------
  149|      0|         return (-bigint_cmp(this->_data(), this->size(), other._data(), other.size()));
  150|      0|      }
  151|  16.6k|   }
  152|       |
  153|  16.6k|   return bigint_cmp(this->_data(), this->size(), other._data(), other.size());
  154|  16.6k|}
_ZNK5Botan6BigInt8is_equalERKS0_:
  156|  32.0k|bool BigInt::is_equal(const BigInt& other) const {
  157|  32.0k|   if(this->sign() != other.sign()) {
  ------------------
  |  Branch (157:7): [True: 0, False: 32.0k]
  ------------------
  158|      0|      return false;
  159|      0|   }
  160|       |
  161|  32.0k|   return bigint_ct_is_eq(this->_data(), this->size(), other._data(), other.size()).as_bool();
  162|  32.0k|}
_ZNK5Botan6BigInt12is_less_thanERKS0_:
  164|  71.6k|bool BigInt::is_less_than(const BigInt& other) const {
  165|  71.6k|   if(this->signum() < 0 && other.signum() >= 0) {
  ------------------
  |  Branch (165:7): [True: 0, False: 71.6k]
  |  Branch (165:29): [True: 0, False: 0]
  ------------------
  166|      0|      return true;
  167|      0|   }
  168|       |
  169|  71.6k|   if(this->signum() >= 0 && other.signum() < 0) {
  ------------------
  |  Branch (169:7): [True: 71.6k, False: 0]
  |  Branch (169:30): [True: 0, False: 71.6k]
  ------------------
  170|      0|      return false;
  171|      0|   }
  172|       |
  173|  71.6k|   if(other.signum() < 0 && this->signum() < 0) {
  ------------------
  |  Branch (173:7): [True: 0, False: 71.6k]
  |  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|  71.6k|   return bigint_ct_is_lt(this->_data(), this->size(), other._data(), other.size()).as_bool();
  178|  71.6k|}
_ZNK5Botan6BigInt12encode_wordsEPmm:
  180|  1.40M|void BigInt::encode_words(word out[], size_t size) const {
  181|  1.40M|   const size_t words = sig_words();
  182|       |
  183|  1.40M|   if(words > size) {
  ------------------
  |  Branch (183:7): [True: 0, False: 1.40M]
  ------------------
  184|      0|      throw Encoding_Error("BigInt::encode_words value too large to encode");
  185|      0|   }
  186|       |
  187|  1.40M|   clear_mem(out, size);
  188|  1.40M|   copy_mem(out, _data(), words);
  189|  1.40M|}
_ZN5Botan6BigInt4Data11set_to_zeroEv:
  191|  42.5k|void BigInt::Data::set_to_zero() {
  192|  42.5k|   m_reg.resize(m_reg.capacity());
  193|  42.5k|   clear_mem(m_reg.data(), m_reg.size());
  194|  42.5k|   m_sig_words = 0;
  195|  42.5k|}
_ZNK5Botan6BigInt4Data14calc_sig_wordsEv:
  215|  18.0M|size_t BigInt::Data::calc_sig_words() const {
  216|  18.0M|   const size_t sz = m_reg.size();
  217|  18.0M|   size_t sig = sz;
  218|       |
  219|  18.0M|   word sub = 1;
  220|       |
  221|   241M|   for(size_t i = 0; i != sz; ++i) {
  ------------------
  |  Branch (221:22): [True: 223M, False: 18.0M]
  ------------------
  222|   223M|      const word w = m_reg[sz - i - 1];
  223|   223M|      sub &= ct_is_zero(w);
  224|   223M|      sig -= sub;
  225|   223M|   }
  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|  18.0M|   CT::unpoison(sig);
  232|       |
  233|  18.0M|   return sig;
  234|  18.0M|}
_ZNK5Botan6BigInt13get_substringEmm:
  239|   157k|uint32_t BigInt::get_substring(size_t offset, size_t length) const {
  240|   157k|   if(length == 0 || length > 32) {
  ------------------
  |  Branch (240:7): [True: 0, False: 157k]
  |  Branch (240:22): [True: 0, False: 157k]
  ------------------
  241|      0|      throw Invalid_Argument("BigInt::get_substring invalid substring length");
  242|      0|   }
  243|       |
  244|   157k|   const uint32_t mask = 0xFFFFFFFF >> (32 - length);
  245|       |
  246|   157k|   const size_t word_offset = offset / WordInfo<word>::bits;
  247|   157k|   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|   157k|   const word w0 = word_at(word_offset);
  255|       |
  256|   157k|   if(wshift == 0 || (offset + length) / WordInfo<word>::bits == word_offset) {
  ------------------
  |  Branch (256:7): [True: 12.1k, False: 145k]
  |  Branch (256:22): [True: 136k, False: 9.13k]
  ------------------
  257|   148k|      return static_cast<uint32_t>(w0 >> wshift) & mask;
  258|   148k|   } else {
  259|  9.13k|      const word w1 = word_at(word_offset + 1);
  260|  9.13k|      return static_cast<uint32_t>((w0 >> wshift) | (w1 << (WordInfo<word>::bits - wshift))) & mask;
  261|  9.13k|   }
  262|   157k|}
_ZNK5Botan6BigInt5bytesEv:
  294|  3.34k|size_t BigInt::bytes() const {
  295|  3.34k|   return round_up(bits(), 8) / 8;
  296|  3.34k|}
_ZNK5Botan6BigInt13top_bits_freeEv:
  298|  84.1k|size_t BigInt::top_bits_free() const {
  299|  84.1k|   const size_t words = sig_words();
  300|       |
  301|  84.1k|   const word top_word = word_at(words - 1);
  302|  84.1k|   const size_t bits_used = high_bit(CT::value_barrier(top_word));
  303|  84.1k|   CT::unpoison(bits_used);
  304|  84.1k|   return WordInfo<word>::bits - bits_used;
  305|  84.1k|}
_ZNK5Botan6BigInt4bitsEv:
  307|  46.1k|size_t BigInt::bits() const {
  308|  46.1k|   const size_t words = sig_words();
  309|       |
  310|  46.1k|   if(words == 0) {
  ------------------
  |  Branch (310:7): [True: 6.46k, False: 39.6k]
  ------------------
  311|  6.46k|      return 0;
  312|  6.46k|   }
  313|       |
  314|  39.6k|   const size_t full_words = (words - 1) * WordInfo<word>::bits;
  315|  39.6k|   const size_t top_bits = WordInfo<word>::bits - top_bits_free();
  316|       |
  317|  39.6k|   return full_words + top_bits;
  318|  46.1k|}
_ZNK5Botan6BigIntngEv:
  323|    203|BigInt BigInt::operator-() const {
  324|    203|   BigInt x = (*this);
  325|    203|   x.flip_sign();
  326|    203|   return x;
  327|    203|}
_ZN5Botan6BigInt12reduce_belowERKS0_RNSt3__16vectorImNS_16secure_allocatorImEEEE:
  329|  1.25M|size_t BigInt::reduce_below(const BigInt& p, secure_vector<word>& ws) {
  330|  1.25M|   if(p.signum() < 0 || this->signum() < 0) {
  ------------------
  |  Branch (330:7): [True: 0, False: 1.25M]
  |  Branch (330:25): [True: 0, False: 1.25M]
  ------------------
  331|      0|      throw Invalid_Argument("BigInt::reduce_below both values must be positive");
  332|      0|   }
  333|       |
  334|  1.25M|   const size_t p_words = p.sig_words();
  335|       |
  336|  1.25M|   if(size() < p_words + 1) {
  ------------------
  |  Branch (336:7): [True: 2.83k, False: 1.24M]
  ------------------
  337|  2.83k|      grow_to(p_words + 1);
  338|  2.83k|   }
  339|       |
  340|  1.25M|   if(ws.size() < p_words + 1) {
  ------------------
  |  Branch (340:7): [True: 44.4k, False: 1.20M]
  ------------------
  341|  44.4k|      ws.resize(p_words + 1);
  342|  44.4k|   }
  343|       |
  344|  1.25M|   clear_mem(ws.data(), ws.size());
  345|       |
  346|  1.25M|   size_t reductions = 0;
  347|       |
  348|  3.20M|   for(;;) {
  349|  3.20M|      const word borrow = bigint_sub3(ws.data(), _data(), p_words + 1, p._data(), p_words);
  350|  3.20M|      if(borrow > 0) {
  ------------------
  |  Branch (350:10): [True: 1.25M, False: 1.95M]
  ------------------
  351|  1.25M|         break;
  352|  1.25M|      }
  353|       |
  354|  1.95M|      ++reductions;
  355|  1.95M|      swap_reg(ws);
  356|  1.95M|   }
  357|       |
  358|  1.25M|   return reductions;
  359|  1.25M|}
_ZNK5Botan6BigInt3absEv:
  386|  1.61k|BigInt BigInt::abs() const {
  387|  1.61k|   BigInt x = (*this);
  388|  1.61k|   x.set_sign(Positive);
  389|  1.61k|   return x;
  390|  1.61k|}
_ZNK5Botan6BigInt12serialize_toENSt3__14spanIhLm18446744073709551615EEE:
  395|  1.45k|void BigInt::serialize_to(std::span<uint8_t> output) const {
  396|  1.45k|   BOTAN_ARG_CHECK(this->bytes() <= output.size(), "Insufficient output space");
  ------------------
  |  |   35|  1.45k|   do {                                                          \
  |  |   36|  1.45k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  1.45k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 1.45k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  1.45k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 1.45k]
  |  |  ------------------
  ------------------
  397|       |
  398|  1.45k|   this->binary_encode(output.data(), output.size());
  399|  1.45k|}
_ZNK5Botan6BigInt13binary_encodeEPhm:
  404|  1.45k|void BigInt::binary_encode(uint8_t output[], size_t len) const {
  405|  1.45k|   const size_t full_words = len / sizeof(word);
  406|  1.45k|   const size_t extra_bytes = len % sizeof(word);
  407|       |
  408|  7.06k|   for(size_t i = 0; i != full_words; ++i) {
  ------------------
  |  Branch (408:22): [True: 5.60k, False: 1.45k]
  ------------------
  409|  5.60k|      const word w = word_at(i);
  410|  5.60k|      store_be(w, output + (len - (i + 1) * sizeof(word)));
  411|  5.60k|   }
  412|       |
  413|  1.45k|   if(extra_bytes > 0) {
  ------------------
  |  Branch (413:7): [True: 1.24k, False: 214]
  ------------------
  414|  1.24k|      const word w = word_at(full_words);
  415|       |
  416|  6.47k|      for(size_t i = 0; i != extra_bytes; ++i) {
  ------------------
  |  Branch (416:25): [True: 5.22k, False: 1.24k]
  ------------------
  417|  5.22k|         output[extra_bytes - i - 1] = get_byte_var(sizeof(word) - i - 1, w);
  418|  5.22k|      }
  419|  1.24k|   }
  420|  1.45k|}
_ZN5Botan6BigInt17assign_from_bytesENSt3__14spanIKhLm18446744073709551615EEE:
  425|  42.5k|void BigInt::assign_from_bytes(std::span<const uint8_t> bytes) {
  426|  42.5k|   clear();
  427|       |
  428|  42.5k|   const size_t length = bytes.size();
  429|  42.5k|   const size_t full_words = length / sizeof(word);
  430|  42.5k|   const size_t extra_bytes = length % sizeof(word);
  431|       |
  432|  42.5k|   secure_vector<word> reg((round_up(full_words + (extra_bytes > 0 ? 1 : 0), 8)));
  ------------------
  |  Branch (432:52): [True: 30.6k, False: 11.9k]
  ------------------
  433|       |
  434|   176k|   for(size_t i = 0; i != full_words; ++i) {
  ------------------
  |  Branch (434:22): [True: 133k, False: 42.5k]
  ------------------
  435|   133k|      reg[i] = load_be<word>(bytes.last<sizeof(word)>());
  436|   133k|      bytes = bytes.first(bytes.size() - sizeof(word));
  437|   133k|   }
  438|       |
  439|  42.5k|   if(!bytes.empty()) {
  ------------------
  |  Branch (439:7): [True: 30.6k, False: 11.9k]
  ------------------
  440|  30.6k|      BOTAN_ASSERT_NOMSG(extra_bytes == bytes.size());
  ------------------
  |  |   77|  30.6k|   do {                                                                     \
  |  |   78|  30.6k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  30.6k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 30.6k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  30.6k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 30.6k]
  |  |  ------------------
  ------------------
  441|  30.6k|      std::array<uint8_t, sizeof(word)> last_partial_word = {0};
  442|  30.6k|      copy_mem(std::span{last_partial_word}.last(extra_bytes), bytes);
  443|  30.6k|      reg[full_words] = load_be<word>(last_partial_word);
  444|  30.6k|   }
  445|       |
  446|  42.5k|   m_data.swap(reg);
  447|  42.5k|}
_ZN5Botan6BigInt11ct_cond_addEbRKS0_:
  449|   931k|void BigInt::ct_cond_add(bool predicate, const BigInt& value) {
  450|   931k|   if(this->signum() < 0 || value.signum() < 0) {
  ------------------
  |  Branch (450:7): [True: 0, False: 931k]
  |  Branch (450:29): [True: 0, False: 931k]
  ------------------
  451|      0|      throw Invalid_Argument("BigInt::ct_cond_add requires both values to be positive");
  452|      0|   }
  453|   931k|   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|   931k|   this->grow_to(std::max(this->size(), v_words) + 1);
  458|       |
  459|   931k|   const auto mask = CT::Mask<word>::expand(static_cast<word>(predicate)).value();
  460|       |
  461|   931k|   word carry = 0;
  462|       |
  463|   931k|   word* x = this->mutable_data();
  464|   931k|   const word* y = value._data();
  465|       |
  466|  6.95M|   for(size_t i = 0; i != v_words; ++i) {
  ------------------
  |  Branch (466:22): [True: 6.01M, False: 931k]
  ------------------
  467|  6.01M|      x[i] = word_add(x[i], y[i] & mask, &carry);
  468|  6.01M|   }
  469|       |
  470|  13.4M|   for(size_t i = v_words; i != size(); ++i) {
  ------------------
  |  Branch (470:28): [True: 12.4M, False: 931k]
  ------------------
  471|  12.4M|      x[i] = word_add(x[i], static_cast<word>(0), &carry);
  472|  12.4M|   }
  473|   931k|}
_ZN5Botan6BigInt14cond_flip_signEb:
  521|   655k|void BigInt::cond_flip_sign(bool predicate) {
  522|       |   // This code is assuming Negative == 0, Positive == 1
  523|       |
  524|   655k|   const auto mask = CT::Mask<uint8_t>::expand_bool(predicate);
  525|       |
  526|   655k|   const uint8_t current_sign = static_cast<uint8_t>(sign());
  527|       |
  528|   655k|   const uint8_t new_sign = mask.select(current_sign ^ 1, current_sign);
  529|       |
  530|   655k|   set_sign(static_cast<Sign>(new_sign));
  531|   655k|}
_ZN5Botan6BigInt14ct_cond_assignEbRKS0_:
  533|   621k|void BigInt::ct_cond_assign(bool predicate, const BigInt& other) {
  534|   621k|   const size_t t_words = size();
  535|   621k|   const size_t o_words = other.size();
  536|       |
  537|   621k|   if(t_words < o_words) {
  ------------------
  |  Branch (537:7): [True: 621k, False: 0]
  ------------------
  538|   621k|      grow_to(o_words);
  539|   621k|   }
  540|       |
  541|   621k|   const size_t r_words = std::max(t_words, o_words);
  542|       |
  543|   621k|   const auto mask = CT::Mask<word>::expand_bool(predicate);
  544|       |
  545|  12.9M|   for(size_t i = 0; i != r_words; ++i) {
  ------------------
  |  Branch (545:22): [True: 12.3M, False: 621k]
  ------------------
  546|  12.3M|      const word o_word = other.word_at(i);
  547|  12.3M|      const word t_word = this->word_at(i);
  548|  12.3M|      this->set_word_at(i, mask.select(o_word, t_word));
  549|  12.3M|   }
  550|       |
  551|   621k|   const auto same_sign = CT::Mask<word>::is_equal(sign(), other.sign()).as_choice();
  552|   621k|   cond_flip_sign((mask.as_choice() && !same_sign).as_bool());
  553|   621k|}
_ZNK5Botan6BigInt20_const_time_unpoisonEv:
  559|  10.6M|void BigInt::_const_time_unpoison() const {
  560|  10.6M|   CT::unpoison(m_data.const_data(), m_data.size());
  561|  10.6M|}

_ZN5Botan15ct_divide_pow2kEmRKNS_6BigIntE:
   89|    920|BigInt ct_divide_pow2k(size_t k, const BigInt& y) {
   90|    920|   BOTAN_ARG_CHECK(y.signum() != 0, "Cannot divide by zero");
  ------------------
  |  |   35|    920|   do {                                                          \
  |  |   36|    920|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    920|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 920]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    920|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 920]
  |  |  ------------------
  ------------------
   91|    920|   BOTAN_ARG_CHECK(y.signum() >= 0, "Negative divisor not supported");
  ------------------
  |  |   35|    920|   do {                                                          \
  |  |   36|    920|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    920|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 920]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    920|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 920]
  |  |  ------------------
  ------------------
   92|    920|   BOTAN_ARG_CHECK(k > 1, "Invalid k");
  ------------------
  |  |   35|    920|   do {                                                          \
  |  |   36|    920|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    920|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 920]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    920|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 920]
  |  |  ------------------
  ------------------
   93|       |
   94|    920|   const size_t x_bits = k + 1;
   95|    920|   const size_t y_bits = y.bits();
   96|       |
   97|    920|   if(x_bits < y_bits) {
  ------------------
  |  Branch (97:7): [True: 0, False: 920]
  ------------------
   98|      0|      return BigInt::zero();
   99|      0|   }
  100|       |
  101|    920|   BOTAN_ASSERT_NOMSG(y_bits >= 1);
  ------------------
  |  |   77|    920|   do {                                                                     \
  |  |   78|    920|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|    920|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 920]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|    920|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 920]
  |  |  ------------------
  ------------------
  102|    920|   const size_t x_words = (x_bits + WordInfo<word>::bits - 1) / WordInfo<word>::bits;
  103|    920|   const size_t y_words = y.sig_words();
  104|       |
  105|    920|   BigInt q = BigInt::with_capacity(x_words);
  106|    920|   BigInt r = BigInt::with_capacity(y_words + 1);
  107|    920|   BigInt t = BigInt::with_capacity(y_words + 1);  // a temporary
  108|       |
  109|    920|   r.set_bit(y_bits - 1);
  110|   272k|   for(size_t i = y_bits - 1; i != x_bits; ++i) {
  ------------------
  |  Branch (110:31): [True: 271k, False: 920]
  ------------------
  111|   271k|      const size_t b = x_bits - 1 - i;
  112|       |
  113|   271k|      if(i >= y_bits) {
  ------------------
  |  Branch (113:10): [True: 270k, False: 920]
  ------------------
  114|   270k|         bigint_shl1(r.mutable_data(), r.size(), r.size(), 1);
  115|   270k|      }
  116|       |
  117|   271k|      const bool r_gte_y = bigint_sub3(t.mutable_data(), r._data(), r.size(), y._data(), y_words) == 0;
  118|       |
  119|   271k|      q.conditionally_set_bit(b, r_gte_y);
  120|       |
  121|   271k|      bigint_cnd_swap(static_cast<word>(r_gte_y), r.mutable_data(), t.mutable_data(), y_words + 1);
  122|   271k|   }
  123|       |
  124|       |   // No need for sign fixup
  125|       |
  126|    920|   return q;
  127|    920|}
_ZN5Botan14ct_divide_wordERKNS_6BigIntEmRS0_Rm:
  129|  1.38k|void ct_divide_word(const BigInt& x, word y, BigInt& q_out, word& r_out) {
  130|  1.38k|   if(y == 0) {
  ------------------
  |  Branch (130:7): [True: 0, False: 1.38k]
  ------------------
  131|      0|      throw Invalid_Argument("ct_divide_word: cannot divide by zero");
  132|      0|   }
  133|       |
  134|  1.38k|   const size_t x_words = x.sig_words();
  135|  1.38k|   const size_t x_bits = x.bits();
  136|       |
  137|  1.38k|   BigInt q = BigInt::with_capacity(x_words);
  138|  1.38k|   word r = 0;
  139|       |
  140|   358k|   for(size_t i = 0; i != x_bits; ++i) {
  ------------------
  |  Branch (140:22): [True: 357k, False: 1.38k]
  ------------------
  141|   357k|      const size_t b = x_bits - 1 - i;
  142|   357k|      const bool x_b = x.get_bit(b);
  143|       |
  144|   357k|      const auto r_carry = CT::Mask<word>::expand_top_bit(r);
  145|       |
  146|   357k|      r <<= 1;
  147|   357k|      r += static_cast<word>(x_b);
  148|       |
  149|   357k|      const auto r_gte_y = CT::Mask<word>::is_gte(r, y) | r_carry;
  150|   357k|      q.conditionally_set_bit(b, r_gte_y.as_bool());
  151|   357k|      r = r_gte_y.select(r - y, r);
  152|   357k|   }
  153|       |
  154|  1.38k|   if(x.signum() < 0) {
  ------------------
  |  Branch (154:7): [True: 0, False: 1.38k]
  ------------------
  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.38k|   r_out = r;
  163|  1.38k|   q_out = q;
  164|  1.38k|}
_ZN5Botan20vartime_divide_pow2kEmRKNS_6BigIntE:
  232|  11.3k|BigInt vartime_divide_pow2k(size_t k, const BigInt& y_arg) {
  233|  11.3k|   constexpr size_t WB = WordInfo<word>::bits;
  234|       |
  235|  11.3k|   BOTAN_ARG_CHECK(y_arg.signum() != 0, "Cannot divide by zero");
  ------------------
  |  |   35|  11.3k|   do {                                                          \
  |  |   36|  11.3k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  11.3k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 11.3k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  11.3k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 11.3k]
  |  |  ------------------
  ------------------
  236|  11.3k|   BOTAN_ARG_CHECK(y_arg.signum() >= 0, "Negative divisor not supported");
  ------------------
  |  |   35|  11.3k|   do {                                                          \
  |  |   36|  11.3k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  11.3k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 11.3k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  11.3k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 11.3k]
  |  |  ------------------
  ------------------
  237|  11.3k|   BOTAN_ARG_CHECK(k > 1, "Invalid k");
  ------------------
  |  |   35|  11.3k|   do {                                                          \
  |  |   36|  11.3k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  11.3k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 11.3k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  11.3k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 11.3k]
  |  |  ------------------
  ------------------
  238|       |
  239|  11.3k|   BigInt y = y_arg;
  240|       |
  241|  11.3k|   const size_t y_words = y.sig_words();
  242|       |
  243|  11.3k|   BOTAN_ASSERT_NOMSG(y_words > 0);
  ------------------
  |  |   77|  11.3k|   do {                                                                     \
  |  |   78|  11.3k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  11.3k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 11.3k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  11.3k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 11.3k]
  |  |  ------------------
  ------------------
  244|       |
  245|       |   // Calculate shifts needed to normalize y with high bit set
  246|  11.3k|   const size_t shifts = y.top_bits_free();
  247|       |
  248|  11.3k|   if(shifts > 0) {
  ------------------
  |  Branch (248:7): [True: 6.64k, False: 4.69k]
  ------------------
  249|  6.64k|      y <<= shifts;
  250|  6.64k|   }
  251|       |
  252|  11.3k|   BigInt r;
  253|  11.3k|   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|  11.3k|   const size_t t = y_words - 1;
  257|  11.3k|   const size_t n = std::max(y_words, r.sig_words()) - 1;
  258|       |
  259|  11.3k|   BOTAN_ASSERT_NOMSG(n >= t);
  ------------------
  |  |   77|  11.3k|   do {                                                                     \
  |  |   78|  11.3k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  11.3k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 11.3k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  11.3k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 11.3k]
  |  |  ------------------
  ------------------
  260|       |
  261|  11.3k|   BigInt q = BigInt::zero();
  262|  11.3k|   q.grow_to(n - t + 1);
  263|       |
  264|  11.3k|   word* q_words = q.mutable_data();
  265|       |
  266|  11.3k|   BigInt shifted_y = y << (WB * (n - t));
  267|       |
  268|       |   // Set q_{n-t} to number of times r > shifted_y
  269|  11.3k|   secure_vector<word> ws;
  270|  11.3k|   q_words[n - t] = r.reduce_below(shifted_y, ws);
  271|       |
  272|  11.3k|   const word y_t0 = y.word_at(t);
  273|  11.3k|   const word y_t1 = y.word_at(t - 1);
  274|  11.3k|   BOTAN_DEBUG_ASSERT((y_t0 >> (WB - 1)) == 1);
  ------------------
  |  |  130|  11.3k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  11.3k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 11.3k]
  |  |  ------------------
  ------------------
  275|       |
  276|  11.3k|   const divide_precomp div_y_t0(y_t0);
  277|       |
  278|  79.6k|   for(size_t i = n; i != t; --i) {
  ------------------
  |  Branch (278:22): [True: 68.3k, False: 11.3k]
  ------------------
  279|  68.3k|      const word x_i0 = r.word_at(i);
  280|  68.3k|      const word x_i1 = r.word_at(i - 1);
  281|  68.3k|      const word x_i2 = r.word_at(i - 2);
  282|       |
  283|  68.3k|      word qit = (x_i0 == y_t0) ? WordInfo<word>::max : div_y_t0.vartime_div_2to1(x_i0, x_i1);
  ------------------
  |  Branch (283:18): [True: 936, False: 67.4k]
  ------------------
  284|       |
  285|       |      // Per HAC 14.23, this operation is required at most twice
  286|  77.1k|      for(size_t j = 0; j != 2; ++j) {
  ------------------
  |  Branch (286:25): [True: 76.9k, False: 180]
  ------------------
  287|  76.9k|         if(division_check_vartime(qit, y_t0, y_t1, x_i0, x_i1, x_i2)) {
  ------------------
  |  Branch (287:13): [True: 8.78k, False: 68.1k]
  ------------------
  288|  8.78k|            BOTAN_ASSERT_NOMSG(qit > 0);
  ------------------
  |  |   77|  8.78k|   do {                                                                     \
  |  |   78|  8.78k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  8.78k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 8.78k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  8.78k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 8.78k]
  |  |  ------------------
  ------------------
  289|  8.78k|            qit--;
  290|  68.1k|         } else {
  291|  68.1k|            break;
  292|  68.1k|         }
  293|  76.9k|      }
  294|       |
  295|  68.3k|      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|  68.3k|      if(qit != 0) {
  ------------------
  |  Branch (306:10): [True: 47.9k, False: 20.4k]
  ------------------
  307|  47.9k|         if(qit == 1) {
  ------------------
  |  Branch (307:13): [True: 5.31k, False: 42.6k]
  ------------------
  308|  5.31k|            r -= shifted_y;
  309|  42.6k|         } else {
  310|  42.6k|            r -= qit * shifted_y;
  311|  42.6k|         }
  312|       |
  313|  47.9k|         if(r.signum() < 0) {
  ------------------
  |  Branch (313:13): [True: 24, False: 47.9k]
  ------------------
  314|     24|            BOTAN_ASSERT_NOMSG(qit > 0);
  ------------------
  |  |   77|     24|   do {                                                                     \
  |  |   78|     24|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|     24|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 24]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|     24|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 24]
  |  |  ------------------
  ------------------
  315|     24|            qit--;
  316|     24|            r += shifted_y;
  317|     24|            BOTAN_ASSERT_NOMSG(r.signum() >= 0);
  ------------------
  |  |   77|     24|   do {                                                                     \
  |  |   78|     24|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|     24|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 24]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|     24|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 24]
  |  |  ------------------
  ------------------
  318|     24|         }
  319|  47.9k|      }
  320|       |
  321|  68.3k|      q_words[i - t - 1] = qit;
  322|  68.3k|   }
  323|       |
  324|  11.3k|   return q;
  325|  11.3k|}
_ZN5Botan14vartime_divideERKNS_6BigIntES2_RS0_S3_:
  332|  33.1k|void vartime_divide(const BigInt& x, const BigInt& y_arg, BigInt& q_out, BigInt& r_out) {
  333|  33.1k|   constexpr size_t WB = WordInfo<word>::bits;
  334|       |
  335|  33.1k|   if(y_arg.is_zero()) {
  ------------------
  |  Branch (335:7): [True: 0, False: 33.1k]
  ------------------
  336|      0|      throw Invalid_Argument("vartime_divide: cannot divide by zero");
  337|      0|   }
  338|       |
  339|  33.1k|   const size_t y_words = y_arg.sig_words();
  340|       |
  341|  33.1k|   BOTAN_ASSERT_NOMSG(y_words > 0);
  ------------------
  |  |   77|  33.1k|   do {                                                                     \
  |  |   78|  33.1k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  33.1k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 33.1k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  33.1k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 33.1k]
  |  |  ------------------
  ------------------
  342|       |
  343|  33.1k|   BigInt y = y_arg;
  344|       |
  345|  33.1k|   BigInt r = x;
  346|  33.1k|   BigInt q = BigInt::zero();
  347|  33.1k|   secure_vector<word> ws;
  348|       |
  349|  33.1k|   r.set_sign(BigInt::Positive);
  350|  33.1k|   y.set_sign(BigInt::Positive);
  351|       |
  352|       |   // Calculate shifts needed to normalize y with high bit set
  353|  33.1k|   const size_t shifts = y.top_bits_free();
  354|       |
  355|  33.1k|   if(shifts > 0) {
  ------------------
  |  Branch (355:7): [True: 32.1k, False: 968]
  ------------------
  356|  32.1k|      y <<= shifts;
  357|  32.1k|      r <<= shifts;
  358|  32.1k|   }
  359|       |
  360|       |   // we know y has not changed size, since we only shifted up to set high bit
  361|  33.1k|   const size_t t = y_words - 1;
  362|  33.1k|   const size_t n = std::max(y_words, r.sig_words()) - 1;  // r may have changed size however
  363|       |
  364|  33.1k|   BOTAN_ASSERT_NOMSG(n >= t);
  ------------------
  |  |   77|  33.1k|   do {                                                                     \
  |  |   78|  33.1k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  33.1k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 33.1k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  33.1k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 33.1k]
  |  |  ------------------
  ------------------
  365|       |
  366|  33.1k|   q.grow_to(n - t + 1);
  367|       |
  368|  33.1k|   word* q_words = q.mutable_data();
  369|       |
  370|  33.1k|   BigInt shifted_y = y << (WB * (n - t));
  371|       |
  372|       |   // Set q_{n-t} to number of times r > shifted_y
  373|  33.1k|   q_words[n - t] = r.reduce_below(shifted_y, ws);
  374|       |
  375|  33.1k|   const word y_t0 = y.word_at(t);
  376|  33.1k|   const word y_t1 = y.word_at(t - 1);
  377|  33.1k|   BOTAN_DEBUG_ASSERT((y_t0 >> (WB - 1)) == 1);
  ------------------
  |  |  130|  33.1k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  33.1k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 33.1k]
  |  |  ------------------
  ------------------
  378|       |
  379|  33.1k|   const divide_precomp div_y_t0(y_t0);
  380|       |
  381|  65.4k|   for(size_t i = n; i != t; --i) {
  ------------------
  |  Branch (381:22): [True: 32.2k, False: 33.1k]
  ------------------
  382|  32.2k|      const word x_i0 = r.word_at(i);
  383|  32.2k|      const word x_i1 = r.word_at(i - 1);
  384|  32.2k|      const word x_i2 = r.word_at(i - 2);
  385|       |
  386|  32.2k|      word qit = (x_i0 == y_t0) ? WordInfo<word>::max : div_y_t0.vartime_div_2to1(x_i0, x_i1);
  ------------------
  |  Branch (386:18): [True: 269, False: 32.0k]
  ------------------
  387|       |
  388|       |      // Per HAC 14.23, this operation is required at most twice
  389|  34.0k|      for(size_t j = 0; j != 2; ++j) {
  ------------------
  |  Branch (389:25): [True: 33.9k, False: 32]
  ------------------
  390|  33.9k|         if(division_check_vartime(qit, y_t0, y_t1, x_i0, x_i1, x_i2)) {
  ------------------
  |  Branch (390:13): [True: 1.72k, False: 32.2k]
  ------------------
  391|  1.72k|            BOTAN_ASSERT_NOMSG(qit > 0);
  ------------------
  |  |   77|  1.72k|   do {                                                                     \
  |  |   78|  1.72k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  1.72k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 1.72k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  1.72k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 1.72k]
  |  |  ------------------
  ------------------
  392|  1.72k|            qit--;
  393|  32.2k|         } else {
  394|  32.2k|            break;
  395|  32.2k|         }
  396|  33.9k|      }
  397|       |
  398|  32.2k|      shifted_y >>= WB;
  399|       |      // Now shifted_y == y << (WB * (i-t-1))
  400|       |
  401|  32.2k|      if(qit != 0) {
  ------------------
  |  Branch (401:10): [True: 32.0k, False: 265]
  ------------------
  402|  32.0k|         r -= qit * shifted_y;
  403|  32.0k|         if(r.signum() < 0) {
  ------------------
  |  Branch (403:13): [True: 82, False: 31.9k]
  ------------------
  404|     82|            BOTAN_ASSERT_NOMSG(qit > 0);
  ------------------
  |  |   77|     82|   do {                                                                     \
  |  |   78|     82|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|     82|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 82]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|     82|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 82]
  |  |  ------------------
  ------------------
  405|     82|            qit--;
  406|     82|            r += shifted_y;
  407|     82|            BOTAN_ASSERT_NOMSG(r.signum() >= 0);
  ------------------
  |  |   77|     82|   do {                                                                     \
  |  |   78|     82|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|     82|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 82]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|     82|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 82]
  |  |  ------------------
  ------------------
  408|     82|         }
  409|  32.0k|      }
  410|       |
  411|  32.2k|      q_words[i - t - 1] = qit;
  412|  32.2k|   }
  413|       |
  414|  33.1k|   if(shifts > 0) {
  ------------------
  |  Branch (414:7): [True: 32.1k, False: 968]
  ------------------
  415|  32.1k|      r >>= shifts;
  416|  32.1k|   }
  417|       |
  418|  33.1k|   sign_fixup(x, y_arg, q, r);
  419|       |
  420|  33.1k|   r_out = r;
  421|  33.1k|   q_out = q;
  422|  33.1k|}
divide.cpp:_ZN5Botan12_GLOBAL__N_110sign_fixupERKNS_6BigIntES3_RS1_S4_:
   21|  33.1k|void sign_fixup(const BigInt& x, const BigInt& y, BigInt& q, BigInt& r) {
   22|  33.1k|   q.cond_flip_sign(x.sign() != y.sign());
   23|       |
   24|  33.1k|   if(x.signum() < 0 && r.signum() != 0) {
  ------------------
  |  Branch (24:7): [True: 1.61k, False: 31.5k]
  |  Branch (24:25): [True: 1.61k, False: 0]
  ------------------
   25|  1.61k|      if(y.signum() > 0) {
  ------------------
  |  Branch (25:10): [True: 1.61k, False: 0]
  ------------------
   26|  1.61k|         q -= 1;
   27|  1.61k|      } else {
   28|      0|         q += 1;
   29|      0|      }
   30|  1.61k|      r = y.abs() - r;
   31|  1.61k|   }
   32|  33.1k|}
divide.cpp:_ZN5Botan12_GLOBAL__N_122division_check_vartimeEmmmmmm:
   34|   110k|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|   110k|   word y3 = 0;
   41|   110k|   y1 = word_madd2(q, y1, &y3);
   42|   110k|   y2 = word_madd2(q, y2, &y3);
   43|       |
   44|   110k|   if(x3 != y3) {
  ------------------
  |  Branch (44:7): [True: 48.0k, False: 62.8k]
  ------------------
   45|  48.0k|      return (y3 > x3);
   46|  48.0k|   }
   47|  62.8k|   if(x2 != y2) {
  ------------------
  |  Branch (47:7): [True: 45.5k, False: 17.3k]
  ------------------
   48|  45.5k|      return (y2 > x2);
   49|  45.5k|   }
   50|  17.3k|   return (y1 > x1);
   51|  62.8k|}

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

_ZN5Botan12basecase_mulEPmmPKmmS2_m:
   20|  7.37M|void basecase_mul(word z[], size_t z_size, const word x[], size_t x_size, const word y[], size_t y_size) {
   21|  7.37M|   if(z_size < x_size + y_size) {
  ------------------
  |  Branch (21:7): [True: 0, False: 7.37M]
  ------------------
   22|      0|      throw Invalid_Argument("basecase_mul z_size too small");
   23|      0|   }
   24|       |
   25|  7.37M|   const size_t x_size_8 = x_size - (x_size % 8);
   26|       |
   27|  7.37M|   zeroize_buffer(z, z_size);
   28|       |
   29|  49.6M|   for(size_t i = 0; i != y_size; ++i) {
  ------------------
  |  Branch (29:22): [True: 42.2M, False: 7.37M]
  ------------------
   30|  42.2M|      const word y_i = y[i];
   31|       |
   32|  42.2M|      word carry = 0;
   33|       |
   34|  66.2M|      for(size_t j = 0; j != x_size_8; j += 8) {
  ------------------
  |  Branch (34:25): [True: 24.0M, False: 42.2M]
  ------------------
   35|  24.0M|         carry = word8_madd3(z + i + j, x + j, y_i, carry);
   36|  24.0M|      }
   37|       |
   38|   162M|      for(size_t j = x_size_8; j != x_size; ++j) {
  ------------------
  |  Branch (38:32): [True: 120M, False: 42.2M]
  ------------------
   39|   120M|         z[i + j] = word_madd3(x[j], y_i, z[i + j], &carry);
   40|   120M|      }
   41|       |
   42|  42.2M|      z[x_size + i] = carry;
   43|  42.2M|   }
   44|  7.37M|}
_ZN5Botan12basecase_sqrEPmmPKmm:
   46|  2.19M|void basecase_sqr(word z[], size_t z_size, const word x[], size_t x_size) {
   47|  2.19M|   if(z_size < 2 * x_size) {
  ------------------
  |  Branch (47:7): [True: 0, False: 2.19M]
  ------------------
   48|      0|      throw Invalid_Argument("basecase_sqr z_size too small");
   49|      0|   }
   50|       |
   51|  2.19M|   const size_t x_size_8 = x_size - (x_size % 8);
   52|       |
   53|  2.19M|   zeroize_buffer(z, z_size);
   54|       |
   55|  10.8M|   for(size_t i = 0; i != x_size; ++i) {
  ------------------
  |  Branch (55:22): [True: 8.64M, False: 2.19M]
  ------------------
   56|  8.64M|      const word x_i = x[i];
   57|       |
   58|  8.64M|      word carry = 0;
   59|       |
   60|  8.64M|      for(size_t j = 0; j != x_size_8; j += 8) {
  ------------------
  |  Branch (60:25): [True: 0, False: 8.64M]
  ------------------
   61|      0|         carry = word8_madd3(z + i + j, x + j, x_i, carry);
   62|      0|      }
   63|       |
   64|  45.1M|      for(size_t j = x_size_8; j != x_size; ++j) {
  ------------------
  |  Branch (64:32): [True: 36.5M, False: 8.64M]
  ------------------
   65|  36.5M|         z[i + j] = word_madd3(x[j], x_i, z[i + j], &carry);
   66|  36.5M|      }
   67|       |
   68|  8.64M|      z[x_size + i] = carry;
   69|  8.64M|   }
   70|  2.19M|}
_ZN5Botan10bigint_mulEPmmPKmmmS2_mmS0_m:
  292|  21.5M|                size_t ws_size) {
  293|  21.5M|   zeroize_buffer(z, z_size);
  294|       |
  295|  21.5M|   if(x_sw == 1) {
  ------------------
  |  Branch (295:7): [True: 207, False: 21.5M]
  ------------------
  296|    207|      bigint_linmul3(z, y, y_sw, x[0]);
  297|  21.5M|   } else if(y_sw == 1) {
  ------------------
  |  Branch (297:14): [True: 305, False: 21.5M]
  ------------------
  298|    305|      bigint_linmul3(z, x, x_sw, y[0]);
  299|  21.5M|   } else if(sized_for_comba_mul<4>(x_sw, x_size, y_sw, y_size, z_size)) {
  ------------------
  |  Branch (299:14): [True: 9.60M, False: 11.9M]
  ------------------
  300|  9.60M|      bigint_comba_mul4(z, x, y);
  301|  11.9M|   } else if(sized_for_comba_mul<6>(x_sw, x_size, y_sw, y_size, z_size)) {
  ------------------
  |  Branch (301:14): [True: 3.16M, False: 8.80M]
  ------------------
  302|  3.16M|      bigint_comba_mul6(z, x, y);
  303|  8.80M|   } else if(sized_for_comba_mul<8>(x_sw, x_size, y_sw, y_size, z_size)) {
  ------------------
  |  Branch (303:14): [True: 247k, False: 8.55M]
  ------------------
  304|   247k|      bigint_comba_mul8(z, x, y);
  305|  8.55M|   } else if(sized_for_comba_mul<9>(x_sw, x_size, y_sw, y_size, z_size)) {
  ------------------
  |  Branch (305:14): [True: 1.18M, False: 7.37M]
  ------------------
  306|  1.18M|      bigint_comba_mul9(z, x, y);
  307|  7.37M|   } else if(sized_for_comba_mul<16>(x_sw, x_size, y_sw, y_size, z_size)) {
  ------------------
  |  Branch (307:14): [True: 7, False: 7.37M]
  ------------------
  308|      7|      bigint_comba_mul16(z, x, y);
  309|  7.37M|   } else if(sized_for_comba_mul<24>(x_sw, x_size, y_sw, y_size, z_size)) {
  ------------------
  |  Branch (309:14): [True: 0, False: 7.37M]
  ------------------
  310|      0|      bigint_comba_mul24(z, x, y);
  311|  7.37M|   } else if(x_sw < KARATSUBA_MULTIPLY_THRESHOLD || y_sw < KARATSUBA_MULTIPLY_THRESHOLD || workspace == nullptr) {
  ------------------
  |  Branch (311:14): [True: 7.37M, False: 0]
  |  Branch (311:53): [True: 0, False: 0]
  |  Branch (311:92): [True: 0, False: 0]
  ------------------
  312|  7.37M|      basecase_mul(z, z_size, x, x_sw, y, y_sw);
  313|  7.37M|   } 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|  21.5M|}
_ZN5Botan10bigint_sqrEPmmPKmmmS0_m:
  327|  6.77M|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|  6.77M|   zeroize_buffer(z, z_size);
  329|       |
  330|  6.77M|   BOTAN_ASSERT(z_size / 2 >= x_sw, "Output size is sufficient");
  ------------------
  |  |   64|  6.77M|   do {                                                                                 \
  |  |   65|  6.77M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|  6.77M|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 6.77M]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|  6.77M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 6.77M]
  |  |  ------------------
  ------------------
  331|       |
  332|  6.77M|   if(x_sw == 1) {
  ------------------
  |  Branch (332:7): [True: 198, False: 6.77M]
  ------------------
  333|    198|      bigint_linmul3(z, x, x_sw, x[0]);
  334|  6.77M|   } else if(sized_for_comba_sqr<4>(x_sw, x_size, z_size)) {
  ------------------
  |  Branch (334:14): [True: 3.84M, False: 2.93M]
  ------------------
  335|  3.84M|      bigint_comba_sqr4(z, x);
  336|  3.84M|   } else if(sized_for_comba_sqr<6>(x_sw, x_size, z_size)) {
  ------------------
  |  Branch (336:14): [True: 19.0k, False: 2.91M]
  ------------------
  337|  19.0k|      bigint_comba_sqr6(z, x);
  338|  2.91M|   } else if(sized_for_comba_sqr<8>(x_sw, x_size, z_size)) {
  ------------------
  |  Branch (338:14): [True: 983, False: 2.91M]
  ------------------
  339|    983|      bigint_comba_sqr8(z, x);
  340|  2.91M|   } else if(sized_for_comba_sqr<9>(x_sw, x_size, z_size)) {
  ------------------
  |  Branch (340:14): [True: 716k, False: 2.19M]
  ------------------
  341|   716k|      bigint_comba_sqr9(z, x);
  342|  2.19M|   } else if(sized_for_comba_sqr<16>(x_sw, x_size, z_size)) {
  ------------------
  |  Branch (342:14): [True: 0, False: 2.19M]
  ------------------
  343|      0|      bigint_comba_sqr16(z, x);
  344|  2.19M|   } else if(sized_for_comba_sqr<24>(x_sw, x_size, z_size)) {
  ------------------
  |  Branch (344:14): [True: 0, False: 2.19M]
  ------------------
  345|      0|      bigint_comba_sqr24(z, x);
  346|  2.19M|   } else if(x_size < KARATSUBA_SQUARE_THRESHOLD || workspace == nullptr) {
  ------------------
  |  Branch (346:14): [True: 2.19M, False: 48]
  |  Branch (346:53): [True: 0, False: 48]
  ------------------
  347|  2.19M|      basecase_sqr(z, z_size, x, x_sw);
  348|  2.19M|   } else {
  349|     48|      const size_t N = karatsuba_size(z_size, x_size, x_sw);
  350|       |
  351|     48|      if(N > 0 && z_size >= 2 * N && ws_size >= 2 * N) {
  ------------------
  |  Branch (351:10): [True: 0, False: 48]
  |  Branch (351:19): [True: 0, False: 0]
  |  Branch (351:38): [True: 0, False: 0]
  ------------------
  352|      0|         karatsuba_sqr(z, x, N, workspace);
  353|     48|      } else {
  354|     48|         basecase_sqr(z, z_size, x, x_sw);
  355|     48|      }
  356|     48|   }
  357|  6.77M|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_114karatsuba_sizeEmmm:
  245|     48|size_t karatsuba_size(size_t z_size, size_t x_size, size_t x_sw) {
  246|     48|   if(x_sw == x_size) {
  ------------------
  |  Branch (246:7): [True: 0, False: 48]
  ------------------
  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|     96|   for(size_t j = x_sw; j <= x_size; ++j) {
  ------------------
  |  Branch (253:25): [True: 96, False: 0]
  ------------------
  254|     96|      if(j % 2 != 0) {
  ------------------
  |  Branch (254:10): [True: 48, False: 48]
  ------------------
  255|     48|         continue;
  256|     48|      }
  257|       |
  258|     48|      if(2 * j > z_size) {
  ------------------
  |  Branch (258:10): [True: 48, False: 0]
  ------------------
  259|     48|         return 0;
  260|     48|      }
  261|       |
  262|      0|      if(j % 4 == 2 && (j + 2) <= x_size && 2 * (j + 2) <= z_size) {
  ------------------
  |  Branch (262:10): [True: 0, False: 0]
  |  Branch (262:24): [True: 0, False: 0]
  |  Branch (262:45): [True: 0, False: 0]
  ------------------
  263|      0|         return j + 2;
  264|      0|      }
  265|      0|      return j;
  266|      0|   }
  267|       |
  268|      0|   return 0;
  269|     48|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_mulILm4EEEbmmmmm:
  272|  21.5M|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|  21.5M|   return (x_sw <= SZ && x_size >= SZ && y_sw <= SZ && y_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (273:12): [True: 12.6M, False: 8.95M]
  |  Branch (273:26): [True: 9.74M, False: 2.87M]
  |  Branch (273:42): [True: 9.74M, False: 0]
  |  Branch (273:56): [True: 9.67M, False: 62.3k]
  |  Branch (273:72): [True: 9.60M, False: 72.1k]
  ------------------
  274|  21.5M|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_mulILm6EEEbmmmmm:
  272|  11.9M|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|  11.9M|   return (x_sw <= SZ && x_size >= SZ && y_sw <= SZ && y_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (273:12): [True: 7.96M, False: 4.00M]
  |  Branch (273:26): [True: 3.44M, False: 4.52M]
  |  Branch (273:42): [True: 3.44M, False: 0]
  |  Branch (273:56): [True: 3.38M, False: 62.3k]
  |  Branch (273:72): [True: 3.16M, False: 213k]
  ------------------
  274|  11.9M|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_mulILm8EEEbmmmmm:
  272|  8.80M|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|  8.80M|   return (x_sw <= SZ && x_size >= SZ && y_sw <= SZ && y_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (273:12): [True: 5.11M, False: 3.68M]
  |  Branch (273:26): [True: 524k, False: 4.58M]
  |  Branch (273:42): [True: 488k, False: 35.8k]
  |  Branch (273:56): [True: 436k, False: 52.0k]
  |  Branch (273:72): [True: 247k, False: 188k]
  ------------------
  274|  8.80M|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_mulILm9EEEbmmmmm:
  272|  8.55M|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|  8.55M|   return (x_sw <= SZ && x_size >= SZ && y_sw <= SZ && y_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (273:12): [True: 6.08M, False: 2.46M]
  |  Branch (273:26): [True: 1.35M, False: 4.73M]
  |  Branch (273:42): [True: 1.35M, False: 0]
  |  Branch (273:56): [True: 1.24M, False: 111k]
  |  Branch (273:72): [True: 1.18M, False: 60.4k]
  ------------------
  274|  8.55M|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_mulILm16EEEbmmmmm:
  272|  7.37M|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|  7.37M|   return (x_sw <= SZ && x_size >= SZ && y_sw <= SZ && y_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (273:12): [True: 7.37M, False: 17]
  |  Branch (273:26): [True: 1.33M, False: 6.03M]
  |  Branch (273:42): [True: 1.33M, False: 0]
  |  Branch (273:56): [True: 1.28M, False: 45.1k]
  |  Branch (273:72): [True: 7, False: 1.28M]
  ------------------
  274|  7.37M|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_mulILm24EEEbmmmmm:
  272|  7.37M|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|  7.37M|   return (x_sw <= SZ && x_size >= SZ && y_sw <= SZ && y_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (273:12): [True: 7.37M, False: 0]
  |  Branch (273:26): [True: 9.44k, False: 7.36M]
  |  Branch (273:42): [True: 9.44k, False: 0]
  |  Branch (273:56): [True: 9.43k, False: 17]
  |  Branch (273:72): [True: 0, False: 9.43k]
  ------------------
  274|  7.37M|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_sqrILm4EEEbmmm:
  277|  6.77M|inline bool sized_for_comba_sqr(size_t x_sw, size_t x_size, size_t z_size) {
  278|  6.77M|   return (x_sw <= SZ && x_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (278:12): [True: 5.05M, False: 1.72M]
  |  Branch (278:26): [True: 3.89M, False: 1.16M]
  |  Branch (278:42): [True: 3.84M, False: 47.1k]
  ------------------
  279|  6.77M|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_sqrILm6EEEbmmm:
  277|  2.93M|inline bool sized_for_comba_sqr(size_t x_sw, size_t x_size, size_t z_size) {
  278|  2.93M|   return (x_sw <= SZ && x_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (278:12): [True: 2.18M, False: 755k]
  |  Branch (278:26): [True: 170k, False: 2.01M]
  |  Branch (278:42): [True: 19.0k, False: 151k]
  ------------------
  279|  2.93M|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_sqrILm8EEEbmmm:
  277|  2.91M|inline bool sized_for_comba_sqr(size_t x_sw, size_t x_size, size_t z_size) {
  278|  2.91M|   return (x_sw <= SZ && x_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (278:12): [True: 2.20M, False: 716k]
  |  Branch (278:26): [True: 158k, False: 2.04M]
  |  Branch (278:42): [True: 983, False: 157k]
  ------------------
  279|  2.91M|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_sqrILm9EEEbmmm:
  277|  2.91M|inline bool sized_for_comba_sqr(size_t x_sw, size_t x_size, size_t z_size) {
  278|  2.91M|   return (x_sw <= SZ && x_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (278:12): [True: 2.91M, False: 0]
  |  Branch (278:26): [True: 855k, False: 2.06M]
  |  Branch (278:42): [True: 716k, False: 139k]
  ------------------
  279|  2.91M|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_sqrILm16EEEbmmm:
  277|  2.19M|inline bool sized_for_comba_sqr(size_t x_sw, size_t x_size, size_t z_size) {
  278|  2.19M|   return (x_sw <= SZ && x_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (278:12): [True: 2.19M, False: 0]
  |  Branch (278:26): [True: 112k, False: 2.08M]
  |  Branch (278:42): [True: 0, False: 112k]
  ------------------
  279|  2.19M|}
mp_karat.cpp:_ZN5Botan12_GLOBAL__N_119sized_for_comba_sqrILm24EEEbmmm:
  277|  2.19M|inline bool sized_for_comba_sqr(size_t x_sw, size_t x_size, size_t z_size) {
  278|  2.19M|   return (x_sw <= SZ && x_size >= SZ && z_size >= 2 * SZ);
  ------------------
  |  Branch (278:12): [True: 2.19M, False: 0]
  |  Branch (278:26): [True: 18.8k, False: 2.18M]
  |  Branch (278:42): [True: 0, False: 18.8k]
  ------------------
  279|  2.19M|}

_ZN5Botan25bigint_monty_redc_genericEPmPKmmS2_mmS0_:
   91|  11.4M|   word r[], const word z[], size_t z_size, const word p[], size_t p_size, word p_dash, word ws[]) {
   92|  11.4M|   BOTAN_ARG_CHECK(z_size >= 2 * p_size && p_size > 0, "Invalid sizes for bigint_monty_redc_generic");
  ------------------
  |  |   35|  11.4M|   do {                                                          \
  |  |   36|  11.4M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  22.8M|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 11.4M, False: 0]
  |  |  |  Branch (37:12): [True: 11.4M, False: 0]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  11.4M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 11.4M]
  |  |  ------------------
  ------------------
   93|       |
   94|  11.4M|   word3<word> accum;
   95|       |
   96|  11.4M|   accum.add(z[0]);
   97|       |
   98|  11.4M|   ws[0] = accum.monty_step(p[0], p_dash);
   99|       |
  100|  65.7M|   for(size_t i = 1; i != p_size; ++i) {
  ------------------
  |  Branch (100:22): [True: 54.3M, False: 11.4M]
  ------------------
  101|  54.3M|      mul_rev_range(accum, ws, p, i);
  102|  54.3M|      accum.add(z[i]);
  103|  54.3M|      ws[i] = accum.monty_step(p[0], p_dash);
  104|  54.3M|   }
  105|       |
  106|  65.7M|   for(size_t i = 0; i != p_size - 1; ++i) {
  ------------------
  |  Branch (106:22): [True: 54.3M, False: 11.4M]
  ------------------
  107|  54.3M|      mul_rev_range(accum, &ws[i + 1], &p[i], p_size - (i + 1));
  108|  54.3M|      accum.add(z[p_size + i]);
  109|  54.3M|      ws[i] = accum.extract();
  110|  54.3M|   }
  111|       |
  112|  11.4M|   accum.add(z[2 * p_size - 1]);
  113|       |
  114|  11.4M|   ws[p_size - 1] = accum.extract();
  115|       |   // w1 is the final part, which is not stored in the workspace
  116|  11.4M|   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|  11.4M|   bigint_monty_maybe_sub(p_size, r, w1, ws, p);
  137|  11.4M|}
mp_monty.cpp:_ZN5Botan12_GLOBAL__N_113mul_rev_rangeERNS_5word3ImEEPKmS5_m:
   18|   108M|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|   108M|   size_t lower = 0;
   28|   266M|   while(lower < bound) {
  ------------------
  |  Branch (28:10): [True: 157M, False: 108M]
  ------------------
   29|   157M|      const size_t upper = bound - lower;
   30|       |
   31|   157M|      if(upper >= 16) {
  ------------------
  |  Branch (31:10): [True: 0, False: 157M]
  ------------------
   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|   157M|      } else if(upper >= 8) {
  ------------------
  |  Branch (49:17): [True: 8.80M, False: 148M]
  ------------------
   50|  8.80M|         accum.mul(ws[lower], p[upper]);
   51|  8.80M|         accum.mul(ws[lower + 1], p[upper - 1]);
   52|  8.80M|         accum.mul(ws[lower + 2], p[upper - 2]);
   53|  8.80M|         accum.mul(ws[lower + 3], p[upper - 3]);
   54|  8.80M|         accum.mul(ws[lower + 4], p[upper - 4]);
   55|  8.80M|         accum.mul(ws[lower + 5], p[upper - 5]);
   56|  8.80M|         accum.mul(ws[lower + 6], p[upper - 6]);
   57|  8.80M|         accum.mul(ws[lower + 7], p[upper - 7]);
   58|  8.80M|         lower += 8;
   59|   148M|      } else if(upper >= 4) {
  ------------------
  |  Branch (59:17): [True: 40.3M, False: 108M]
  ------------------
   60|  40.3M|         accum.mul(ws[lower], p[upper]);
   61|  40.3M|         accum.mul(ws[lower + 1], p[upper - 1]);
   62|  40.3M|         accum.mul(ws[lower + 2], p[upper - 2]);
   63|  40.3M|         accum.mul(ws[lower + 3], p[upper - 3]);
   64|  40.3M|         lower += 4;
   65|   108M|      } else if(upper >= 2) {
  ------------------
  |  Branch (65:17): [True: 54.3M, False: 54.3M]
  ------------------
   66|  54.3M|         accum.mul(ws[lower], p[upper]);
   67|  54.3M|         accum.mul(ws[lower + 1], p[upper - 1]);
   68|  54.3M|         lower += 2;
   69|  54.3M|      } else {
   70|  54.3M|         accum.mul(ws[lower], p[upper]);
   71|  54.3M|         lower += 1;
   72|  54.3M|      }
   73|   157M|   }
   74|   108M|}

_ZN5Botan19bigint_monty_redc_4EPmPKmS2_mS0_:
   12|  17.3M|void bigint_monty_redc_4(word r[4], const word z[8], const word p[4], word p_dash, word ws[4]) {
   13|  17.3M|   word3<word> accum;
   14|  17.3M|   accum.add(z[0]);
   15|  17.3M|   ws[0] = accum.monty_step(p[0], p_dash);
   16|  17.3M|   accum.mul(ws[0], p[1]);
   17|  17.3M|   accum.add(z[1]);
   18|  17.3M|   ws[1] = accum.monty_step(p[0], p_dash);
   19|  17.3M|   accum.mul(ws[0], p[2]);
   20|  17.3M|   accum.mul(ws[1], p[1]);
   21|  17.3M|   accum.add(z[2]);
   22|  17.3M|   ws[2] = accum.monty_step(p[0], p_dash);
   23|  17.3M|   accum.mul(ws[0], p[3]);
   24|  17.3M|   accum.mul(ws[1], p[2]);
   25|  17.3M|   accum.mul(ws[2], p[1]);
   26|  17.3M|   accum.add(z[3]);
   27|  17.3M|   ws[3] = accum.monty_step(p[0], p_dash);
   28|  17.3M|   accum.mul(ws[1], p[3]);
   29|  17.3M|   accum.mul(ws[2], p[2]);
   30|  17.3M|   accum.mul(ws[3], p[1]);
   31|  17.3M|   accum.add(z[4]);
   32|  17.3M|   ws[0] = accum.extract();
   33|  17.3M|   accum.mul(ws[2], p[3]);
   34|  17.3M|   accum.mul(ws[3], p[2]);
   35|  17.3M|   accum.add(z[5]);
   36|  17.3M|   ws[1] = accum.extract();
   37|  17.3M|   accum.mul(ws[3], p[3]);
   38|  17.3M|   accum.add(z[6]);
   39|  17.3M|   ws[2] = accum.extract();
   40|  17.3M|   accum.add(z[7]);
   41|  17.3M|   ws[3] = accum.extract();
   42|  17.3M|   const word w1 = accum.extract();
   43|  17.3M|   bigint_monty_maybe_sub<4>(r, w1, ws, p);
   44|  17.3M|}
_ZN5Botan19bigint_monty_redc_6EPmPKmS2_mS0_:
   46|   227k|void bigint_monty_redc_6(word r[6], const word z[12], const word p[6], word p_dash, word ws[6]) {
   47|   227k|   word3<word> accum;
   48|   227k|   accum.add(z[0]);
   49|   227k|   ws[0] = accum.monty_step(p[0], p_dash);
   50|   227k|   accum.mul(ws[0], p[1]);
   51|   227k|   accum.add(z[1]);
   52|   227k|   ws[1] = accum.monty_step(p[0], p_dash);
   53|   227k|   accum.mul(ws[0], p[2]);
   54|   227k|   accum.mul(ws[1], p[1]);
   55|   227k|   accum.add(z[2]);
   56|   227k|   ws[2] = accum.monty_step(p[0], p_dash);
   57|   227k|   accum.mul(ws[0], p[3]);
   58|   227k|   accum.mul(ws[1], p[2]);
   59|   227k|   accum.mul(ws[2], p[1]);
   60|   227k|   accum.add(z[3]);
   61|   227k|   ws[3] = accum.monty_step(p[0], p_dash);
   62|   227k|   accum.mul(ws[0], p[4]);
   63|   227k|   accum.mul(ws[1], p[3]);
   64|   227k|   accum.mul(ws[2], p[2]);
   65|   227k|   accum.mul(ws[3], p[1]);
   66|   227k|   accum.add(z[4]);
   67|   227k|   ws[4] = accum.monty_step(p[0], p_dash);
   68|   227k|   accum.mul(ws[0], p[5]);
   69|   227k|   accum.mul(ws[1], p[4]);
   70|   227k|   accum.mul(ws[2], p[3]);
   71|   227k|   accum.mul(ws[3], p[2]);
   72|   227k|   accum.mul(ws[4], p[1]);
   73|   227k|   accum.add(z[5]);
   74|   227k|   ws[5] = accum.monty_step(p[0], p_dash);
   75|   227k|   accum.mul(ws[1], p[5]);
   76|   227k|   accum.mul(ws[2], p[4]);
   77|   227k|   accum.mul(ws[3], p[3]);
   78|   227k|   accum.mul(ws[4], p[2]);
   79|   227k|   accum.mul(ws[5], p[1]);
   80|   227k|   accum.add(z[6]);
   81|   227k|   ws[0] = accum.extract();
   82|   227k|   accum.mul(ws[2], p[5]);
   83|   227k|   accum.mul(ws[3], p[4]);
   84|   227k|   accum.mul(ws[4], p[3]);
   85|   227k|   accum.mul(ws[5], p[2]);
   86|   227k|   accum.add(z[7]);
   87|   227k|   ws[1] = accum.extract();
   88|   227k|   accum.mul(ws[3], p[5]);
   89|   227k|   accum.mul(ws[4], p[4]);
   90|   227k|   accum.mul(ws[5], p[3]);
   91|   227k|   accum.add(z[8]);
   92|   227k|   ws[2] = accum.extract();
   93|   227k|   accum.mul(ws[4], p[5]);
   94|   227k|   accum.mul(ws[5], p[4]);
   95|   227k|   accum.add(z[9]);
   96|   227k|   ws[3] = accum.extract();
   97|   227k|   accum.mul(ws[5], p[5]);
   98|   227k|   accum.add(z[10]);
   99|   227k|   ws[4] = accum.extract();
  100|   227k|   accum.add(z[11]);
  101|   227k|   ws[5] = accum.extract();
  102|   227k|   const word w1 = accum.extract();
  103|   227k|   bigint_monty_maybe_sub<6>(r, w1, ws, p);
  104|   227k|}
_ZN5Botan19bigint_monty_redc_8EPmPKmS2_mS0_:
  106|   262k|void bigint_monty_redc_8(word r[8], const word z[16], const word p[8], word p_dash, word ws[8]) {
  107|   262k|   word3<word> accum;
  108|   262k|   accum.add(z[0]);
  109|   262k|   ws[0] = accum.monty_step(p[0], p_dash);
  110|   262k|   accum.mul(ws[0], p[1]);
  111|   262k|   accum.add(z[1]);
  112|   262k|   ws[1] = accum.monty_step(p[0], p_dash);
  113|   262k|   accum.mul(ws[0], p[2]);
  114|   262k|   accum.mul(ws[1], p[1]);
  115|   262k|   accum.add(z[2]);
  116|   262k|   ws[2] = accum.monty_step(p[0], p_dash);
  117|   262k|   accum.mul(ws[0], p[3]);
  118|   262k|   accum.mul(ws[1], p[2]);
  119|   262k|   accum.mul(ws[2], p[1]);
  120|   262k|   accum.add(z[3]);
  121|   262k|   ws[3] = accum.monty_step(p[0], p_dash);
  122|   262k|   accum.mul(ws[0], p[4]);
  123|   262k|   accum.mul(ws[1], p[3]);
  124|   262k|   accum.mul(ws[2], p[2]);
  125|   262k|   accum.mul(ws[3], p[1]);
  126|   262k|   accum.add(z[4]);
  127|   262k|   ws[4] = accum.monty_step(p[0], p_dash);
  128|   262k|   accum.mul(ws[0], p[5]);
  129|   262k|   accum.mul(ws[1], p[4]);
  130|   262k|   accum.mul(ws[2], p[3]);
  131|   262k|   accum.mul(ws[3], p[2]);
  132|   262k|   accum.mul(ws[4], p[1]);
  133|   262k|   accum.add(z[5]);
  134|   262k|   ws[5] = accum.monty_step(p[0], p_dash);
  135|   262k|   accum.mul(ws[0], p[6]);
  136|   262k|   accum.mul(ws[1], p[5]);
  137|   262k|   accum.mul(ws[2], p[4]);
  138|   262k|   accum.mul(ws[3], p[3]);
  139|   262k|   accum.mul(ws[4], p[2]);
  140|   262k|   accum.mul(ws[5], p[1]);
  141|   262k|   accum.add(z[6]);
  142|   262k|   ws[6] = accum.monty_step(p[0], p_dash);
  143|   262k|   accum.mul(ws[0], p[7]);
  144|   262k|   accum.mul(ws[1], p[6]);
  145|   262k|   accum.mul(ws[2], p[5]);
  146|   262k|   accum.mul(ws[3], p[4]);
  147|   262k|   accum.mul(ws[4], p[3]);
  148|   262k|   accum.mul(ws[5], p[2]);
  149|   262k|   accum.mul(ws[6], p[1]);
  150|   262k|   accum.add(z[7]);
  151|   262k|   ws[7] = accum.monty_step(p[0], p_dash);
  152|   262k|   accum.mul(ws[1], p[7]);
  153|   262k|   accum.mul(ws[2], p[6]);
  154|   262k|   accum.mul(ws[3], p[5]);
  155|   262k|   accum.mul(ws[4], p[4]);
  156|   262k|   accum.mul(ws[5], p[3]);
  157|   262k|   accum.mul(ws[6], p[2]);
  158|   262k|   accum.mul(ws[7], p[1]);
  159|   262k|   accum.add(z[8]);
  160|   262k|   ws[0] = accum.extract();
  161|   262k|   accum.mul(ws[2], p[7]);
  162|   262k|   accum.mul(ws[3], p[6]);
  163|   262k|   accum.mul(ws[4], p[5]);
  164|   262k|   accum.mul(ws[5], p[4]);
  165|   262k|   accum.mul(ws[6], p[3]);
  166|   262k|   accum.mul(ws[7], p[2]);
  167|   262k|   accum.add(z[9]);
  168|   262k|   ws[1] = accum.extract();
  169|   262k|   accum.mul(ws[3], p[7]);
  170|   262k|   accum.mul(ws[4], p[6]);
  171|   262k|   accum.mul(ws[5], p[5]);
  172|   262k|   accum.mul(ws[6], p[4]);
  173|   262k|   accum.mul(ws[7], p[3]);
  174|   262k|   accum.add(z[10]);
  175|   262k|   ws[2] = accum.extract();
  176|   262k|   accum.mul(ws[4], p[7]);
  177|   262k|   accum.mul(ws[5], p[6]);
  178|   262k|   accum.mul(ws[6], p[5]);
  179|   262k|   accum.mul(ws[7], p[4]);
  180|   262k|   accum.add(z[11]);
  181|   262k|   ws[3] = accum.extract();
  182|   262k|   accum.mul(ws[5], p[7]);
  183|   262k|   accum.mul(ws[6], p[6]);
  184|   262k|   accum.mul(ws[7], p[5]);
  185|   262k|   accum.add(z[12]);
  186|   262k|   ws[4] = accum.extract();
  187|   262k|   accum.mul(ws[6], p[7]);
  188|   262k|   accum.mul(ws[7], p[6]);
  189|   262k|   accum.add(z[13]);
  190|   262k|   ws[5] = accum.extract();
  191|   262k|   accum.mul(ws[7], p[7]);
  192|   262k|   accum.add(z[14]);
  193|   262k|   ws[6] = accum.extract();
  194|   262k|   accum.add(z[15]);
  195|   262k|   ws[7] = accum.extract();
  196|   262k|   const word w1 = accum.extract();
  197|   262k|   bigint_monty_maybe_sub<8>(r, w1, ws, p);
  198|   262k|}

_ZN5Botan17Barrett_ReductionC2ERKNS_6BigIntES1_m:
   17|  12.2k|      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|  12.2k|   m_modulus.grow_to(m_mod_words + 8);
   20|  12.2k|   m_mu.grow_to(m_mod_words + 8);
   21|  12.2k|}
_ZN5Botan17Barrett_Reduction18for_secret_modulusERKNS_6BigIntE:
   23|    920|Barrett_Reduction Barrett_Reduction::for_secret_modulus(const BigInt& mod) {
   24|    920|   BOTAN_ARG_CHECK(mod.signum() > 0, "Modulus must be positive");
  ------------------
  |  |   35|    920|   do {                                                          \
  |  |   36|    920|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    920|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 920]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    920|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 920]
  |  |  ------------------
  ------------------
   25|       |
   26|    920|   const size_t mod_words = mod.sig_words();
   27|       |
   28|       |   // Compute mu = floor(2^{2k} / m)
   29|    920|   const size_t mu_bits = 2 * WordInfo<word>::bits * mod_words;
   30|    920|   return Barrett_Reduction(mod, ct_divide_pow2k(mu_bits, mod), mod_words);
   31|    920|}
_ZN5Botan17Barrett_Reduction18for_public_modulusERKNS_6BigIntE:
   33|  11.3k|Barrett_Reduction Barrett_Reduction::for_public_modulus(const BigInt& mod) {
   34|  11.3k|   BOTAN_ARG_CHECK(mod.signum() > 0, "Modulus must be positive");
  ------------------
  |  |   35|  11.3k|   do {                                                          \
  |  |   36|  11.3k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  11.3k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 11.3k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  11.3k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 11.3k]
  |  |  ------------------
  ------------------
   35|       |
   36|  11.3k|   const size_t mod_words = mod.sig_words();
   37|       |
   38|       |   // Compute mu = floor(2^{2k} / m)
   39|  11.3k|   const size_t mu_bits = 2 * WordInfo<word>::bits * mod_words;
   40|  11.3k|   return Barrett_Reduction(mod, vartime_divide_pow2k(mu_bits, mod), mod_words);
   41|  11.3k|}
_ZNK5Botan17Barrett_Reduction8multiplyERKNS_6BigIntES3_:
  159|   948k|BigInt Barrett_Reduction::multiply(const BigInt& x, const BigInt& y) const {
  160|   948k|   BOTAN_ARG_CHECK(acceptable_barrett_input(x, m_modulus).as_bool(), "Invalid x param for Barrett multiply");
  ------------------
  |  |   35|   948k|   do {                                                          \
  |  |   36|   948k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|   948k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 948k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|   948k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 948k]
  |  |  ------------------
  ------------------
  161|   948k|   BOTAN_ARG_CHECK(acceptable_barrett_input(y, m_modulus).as_bool(), "Invalid y param for Barrett multiply");
  ------------------
  |  |   35|   948k|   do {                                                          \
  |  |   36|   948k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|   948k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 948k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|   948k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 948k]
  |  |  ------------------
  ------------------
  162|       |
  163|   948k|   secure_vector<word> ws(2 * (m_mod_words + 2));
  164|   948k|   secure_vector<word> xy(2 * m_mod_words);
  165|       |
  166|   948k|   bigint_mul(xy.data(),
  167|   948k|              xy.size(),
  168|   948k|              x._data(),
  169|   948k|              x.size(),
  170|   948k|              std::min(x.size(), m_mod_words),
  171|   948k|              y._data(),
  172|   948k|              y.size(),
  173|   948k|              std::min(y.size(), m_mod_words),
  174|   948k|              ws.data(),
  175|   948k|              ws.size());
  176|       |
  177|   948k|   return barrett_reduce(m_mod_words, m_modulus, m_mu, xy, ws);
  178|   948k|}
_ZNK5Botan17Barrett_Reduction6squareERKNS_6BigIntE:
  180|   736k|BigInt Barrett_Reduction::square(const BigInt& x) const {
  181|   736k|   BOTAN_ARG_CHECK(acceptable_barrett_input(x, m_modulus).as_bool(), "Invalid x param for Barrett square");
  ------------------
  |  |   35|   736k|   do {                                                          \
  |  |   36|   736k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|   736k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 736k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|   736k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 736k]
  |  |  ------------------
  ------------------
  182|       |
  183|   736k|   secure_vector<word> ws(2 * (m_mod_words + 2));
  184|   736k|   secure_vector<word> x2(2 * m_mod_words);
  185|       |
  186|   736k|   bigint_sqr(x2.data(), x2.size(), x._data(), x.size(), std::min(x.size(), m_mod_words), ws.data(), ws.size());
  187|       |
  188|   736k|   return barrett_reduce(m_mod_words, m_modulus, m_mu, x2, ws);
  189|   736k|}
_ZNK5Botan17Barrett_Reduction6reduceERKNS_6BigIntE:
  191|  1.25M|BigInt Barrett_Reduction::reduce(const BigInt& x) const {
  192|  1.25M|   BOTAN_ARG_CHECK(x.signum() >= 0, "Argument must be non-negative");
  ------------------
  |  |   35|  1.25M|   do {                                                          \
  |  |   36|  1.25M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  1.25M|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 1.25M]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  1.25M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 1.25M]
  |  |  ------------------
  ------------------
  193|       |
  194|  1.25M|   const size_t x_sw = x.sig_words();
  195|  1.25M|   BOTAN_ARG_CHECK(x_sw <= 2 * m_mod_words, "Argument is too large for Barrett reduction");
  ------------------
  |  |   35|  1.25M|   do {                                                          \
  |  |   36|  1.25M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  1.25M|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 1.25M]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  1.25M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 1.25M]
  |  |  ------------------
  ------------------
  196|       |
  197|  1.25M|   x.grow_to(2 * m_mod_words);
  198|       |
  199|  1.25M|   secure_vector<word> ws;
  200|  1.25M|   return barrett_reduce(m_mod_words, m_modulus, m_mu, x._as_span(), ws);
  201|  1.25M|}
barrett.cpp:_ZN5Botan12_GLOBAL__N_124acceptable_barrett_inputERKNS_6BigIntES3_:
  151|  2.63M|CT::Choice acceptable_barrett_input(const BigInt& x, const BigInt& modulus) {
  152|  2.63M|   auto x_is_positive = CT::Choice::from_int(static_cast<uint32_t>(x.signum() >= 0));
  153|  2.63M|   auto x_lt_mod = bigint_ct_is_lt(x._data(), x.size(), modulus._data(), modulus.sig_words()).as_choice();
  154|  2.63M|   return x_is_positive && x_lt_mod;
  155|  2.63M|}
barrett.cpp:_ZN5Botan12_GLOBAL__N_114barrett_reduceEmRKNS_6BigIntES3_NSt3__14spanIKmLm18446744073709551615EEERNS4_6vectorImNS_16secure_allocatorImEEEE:
   54|  2.93M|   size_t mod_words, const BigInt& modulus, const BigInt& mu, std::span<const word> x_words, secure_vector<word>& ws) {
   55|  2.93M|   BOTAN_ASSERT_NOMSG(modulus.sig_words() == mod_words);
  ------------------
  |  |   77|  2.93M|   do {                                                                     \
  |  |   78|  2.93M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  2.93M|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 2.93M]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  2.93M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 2.93M]
  |  |  ------------------
  ------------------
   56|       |
   57|       |   // Caller must expand input to be at least this size
   58|  2.93M|   BOTAN_ASSERT_NOMSG(x_words.size() >= 2 * mod_words);
  ------------------
  |  |   77|  2.93M|   do {                                                                     \
  |  |   78|  2.93M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  2.93M|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 2.93M]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  2.93M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 2.93M]
  |  |  ------------------
  ------------------
   59|       |
   60|       |   // Normally mod_words + 1 but can be + 2 if the modulus is a power of 2
   61|  2.93M|   const size_t mu_words = mu.sig_words();
   62|  2.93M|   BOTAN_ASSERT_NOMSG(mu_words <= mod_words + 2);
  ------------------
  |  |   77|  2.93M|   do {                                                                     \
  |  |   78|  2.93M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  2.93M|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 2.93M]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  2.93M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 2.93M]
  |  |  ------------------
  ------------------
   63|       |
   64|  2.93M|   if(ws.size() < 2 * (mod_words + 2)) {
  ------------------
  |  Branch (64:7): [True: 1.25M, False: 1.68M]
  ------------------
   65|  1.25M|      ws.resize(2 * (mod_words + 2));
   66|  1.25M|   }
   67|       |
   68|  2.93M|   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.93M|   secure_vector<word> r(2 * mu_words + 2);
   82|       |
   83|  2.93M|   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.93M|   const size_t q2_size = 2 * mu_words + 2;
   90|       |
   91|  2.93M|   secure_vector<word> q2(q2_size);
   92|       |
   93|  2.93M|   bigint_mul(
   94|  2.93M|      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.93M|   bigint_mul(r.data(),
   99|  2.93M|              r.size(),
  100|  2.93M|              &q2[mod_words + 1],  // ignoring the low mod_words + 1 words of the first product
  101|  2.93M|              q2.size() - (mod_words + 1),
  102|  2.93M|              mod_words + 1,
  103|  2.93M|              modulus._data(),
  104|  2.93M|              modulus.size(),
  105|  2.93M|              mod_words,
  106|  2.93M|              ws.data(),
  107|  2.93M|              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.93M|   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.93M|   const int32_t relative_size = bigint_cmp(r.data(), mod_words + 1, x_words.data(), mod_words + 1);
  117|       |
  118|  2.93M|   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.93M|   clear_mem(ws.data(), mod_words + 2);
  126|  2.93M|   ws[mod_words + 1] = 1;
  127|  2.93M|   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.93M|   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.93M|   const size_t bound = 2;
  136|       |
  137|  2.93M|   BOTAN_ASSERT_NOMSG(r.size() >= mod_words + 1);
  ------------------
  |  |   77|  2.93M|   do {                                                                     \
  |  |   78|  2.93M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  2.93M|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 2.93M]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  2.93M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 2.93M]
  |  |  ------------------
  ------------------
  138|  8.81M|   for(size_t i = 0; i != bound; ++i) {
  ------------------
  |  Branch (138:22): [True: 5.87M, False: 2.93M]
  ------------------
  139|  5.87M|      const word borrow = bigint_sub3(ws.data(), r.data(), mod_words + 1, modulus._data(), mod_words);
  140|  5.87M|      CT::Mask<word>::is_zero(borrow).select_n(r.data(), ws.data(), r.data(), mod_words + 1);
  141|  5.87M|   }
  142|       |
  143|  2.93M|   CT::unpoison(q2);
  144|  2.93M|   CT::unpoison(r);
  145|  2.93M|   CT::unpoison(ws);
  146|  2.93M|   CT::unpoison(x_words);
  147|       |
  148|  2.93M|   return BigInt::_from_words(r);
  149|  2.93M|}

_ZN5Botan24inverse_mod_public_primeERKNS_6BigIntES2_:
  294|  1.00k|BigInt inverse_mod_public_prime(const BigInt& x, const BigInt& p) {
  295|  1.00k|   BOTAN_ARG_CHECK(p.signum() > 0, "Modulus must be positive");
  ------------------
  |  |   35|  1.00k|   do {                                                          \
  |  |   36|  1.00k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  1.00k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 1.00k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  1.00k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 1.00k]
  |  |  ------------------
  ------------------
  296|  1.00k|   BOTAN_ARG_CHECK(x.signum() > 0, "Input must be positive");
  ------------------
  |  |   35|  1.00k|   do {                                                          \
  |  |   36|  1.00k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  1.00k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 1.00k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  1.00k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 1.00k]
  |  |  ------------------
  ------------------
  297|  1.00k|   BOTAN_ARG_CHECK(x < p, "Input must be less than modulus");
  ------------------
  |  |   35|  1.00k|   do {                                                          \
  |  |   36|  1.00k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  1.00k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 1.00k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  1.00k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 1.00k]
  |  |  ------------------
  ------------------
  298|  1.00k|   BOTAN_ARG_CHECK(p.is_odd() && p > 1, "Primes are odd integers greater than 1");
  ------------------
  |  |   35|  1.00k|   do {                                                          \
  |  |   36|  1.00k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  2.00k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 1.00k, False: 0]
  |  |  |  Branch (37:12): [True: 1.00k, False: 0]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  1.00k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 1.00k]
  |  |  ------------------
  ------------------
  299|       |
  300|       |   // TODO possibly use FLT, or the algorithm presented for this case in
  301|       |   // Handbook of Elliptic and Hyperelliptic Curve Cryptography
  302|       |
  303|  1.00k|   return inverse_mod_odd_modulus(x, p);
  304|  1.00k|}
mod_inv.cpp:_ZN5Botan12_GLOBAL__N_123inverse_mod_odd_modulusERKNS_6BigIntES3_:
   21|  1.00k|BigInt inverse_mod_odd_modulus(const BigInt& n, const BigInt& mod) {
   22|       |   // Caller should assure these preconditions:
   23|  1.00k|   BOTAN_ASSERT_NOMSG(n.signum() >= 0);
  ------------------
  |  |   77|  1.00k|   do {                                                                     \
  |  |   78|  1.00k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  1.00k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 1.00k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  1.00k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 1.00k]
  |  |  ------------------
  ------------------
   24|  1.00k|   BOTAN_ASSERT_NOMSG(mod.signum() > 0);
  ------------------
  |  |   77|  1.00k|   do {                                                                     \
  |  |   78|  1.00k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  1.00k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 1.00k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  1.00k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 1.00k]
  |  |  ------------------
  ------------------
   25|  1.00k|   BOTAN_ASSERT_NOMSG(n < mod);
  ------------------
  |  |   77|  1.00k|   do {                                                                     \
  |  |   78|  1.00k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  1.00k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 1.00k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  1.00k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 1.00k]
  |  |  ------------------
  ------------------
   26|  1.00k|   BOTAN_ASSERT_NOMSG(mod >= 3 && mod.is_odd());
  ------------------
  |  |   77|  1.00k|   do {                                                                     \
  |  |   78|  1.00k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  2.00k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:12): [True: 1.00k, False: 0]
  |  |  |  Branch (79:12): [True: 1.00k, False: 0]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  1.00k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 1.00k]
  |  |  ------------------
  ------------------
   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|  1.00k|   const size_t mod_words = mod.sig_words();
   48|  1.00k|   BOTAN_ASSERT(mod_words > 0, "Not empty");
  ------------------
  |  |   64|  1.00k|   do {                                                                                 \
  |  |   65|  1.00k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|  1.00k|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 1.00k]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|  1.00k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 1.00k]
  |  |  ------------------
  ------------------
   49|       |
   50|  1.00k|   secure_vector<word> tmp_mem(5 * mod_words);
   51|       |
   52|  1.00k|   word* v_w = &tmp_mem[0];  // NOLINT(readability-container-data-pointer)
   53|  1.00k|   word* u_w = &tmp_mem[1 * mod_words];
   54|  1.00k|   word* b_w = &tmp_mem[2 * mod_words];
   55|  1.00k|   word* a_w = &tmp_mem[3 * mod_words];
   56|  1.00k|   word* mp1o2 = &tmp_mem[4 * mod_words];
   57|       |
   58|  1.00k|   copy_mem(a_w, n._data(), std::min(n.size(), mod_words));
   59|  1.00k|   copy_mem(b_w, mod._data(), std::min(mod.size(), mod_words));
   60|  1.00k|   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|  1.00k|   copy_mem(mp1o2, mod._data(), std::min(mod.size(), mod_words));
   66|  1.00k|   bigint_shr1(mp1o2, mod_words, 1);
   67|  1.00k|   const word carry = bigint_add2(mp1o2, mod_words, u_w, 1);
   68|  1.00k|   BOTAN_ASSERT_NOMSG(carry == 0);
  ------------------
  |  |   77|  1.00k|   do {                                                                     \
  |  |   78|  1.00k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  1.00k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 1.00k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  1.00k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 1.00k]
  |  |  ------------------
  ------------------
   69|       |
   70|  1.00k|   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|  1.00k|   const size_t execs = 2 * mod.bits();
   74|       |
   75|   459k|   for(size_t i = 0; i != execs; ++i) {
  ------------------
  |  Branch (75:22): [True: 458k, False: 1.00k]
  ------------------
   76|   458k|      const word odd_a = a_w[0] & 1;
   77|       |
   78|       |      //if(odd_a) a -= b
   79|   458k|      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|   458k|      bigint_cnd_add(underflow, b_w, a_w, mod_words);
   83|   458k|      bigint_cnd_abs(underflow, a_w, mod_words);
   84|   458k|      bigint_cnd_swap(underflow, u_w, v_w, mod_words);
   85|       |
   86|       |      // a >>= 1
   87|   458k|      bigint_shr1(a_w, mod_words, 1);
   88|       |
   89|       |      //if(odd_a) u -= v;
   90|   458k|      const word borrow = bigint_cnd_sub(odd_a, u_w, v_w, mod_words);
   91|       |
   92|       |      // if(borrow) u += p
   93|   458k|      bigint_cnd_add(borrow, u_w, mod._data(), mod_words);
   94|       |
   95|   458k|      const word odd_u = u_w[0] & 1;
   96|       |
   97|       |      // u >>= 1
   98|   458k|      bigint_shr1(u_w, mod_words, 1);
   99|       |
  100|       |      //if(odd_u) u += mp1o2;
  101|   458k|      bigint_cnd_add(odd_u, u_w, mp1o2, mod_words);
  102|   458k|   }
  103|       |
  104|  1.00k|   const auto a_is_0 = CT::all_zeros(a_w, mod_words);
  105|       |
  106|  1.00k|   auto b_is_1 = CT::Mask<word>::is_equal(b_w[0], 1);
  107|  4.08k|   for(size_t i = 1; i != mod_words; ++i) {
  ------------------
  |  Branch (107:22): [True: 3.08k, False: 1.00k]
  ------------------
  108|  3.08k|      b_is_1 &= CT::Mask<word>::is_zero(b_w[i]);
  109|  3.08k|   }
  110|       |
  111|  1.00k|   BOTAN_ASSERT(a_is_0.as_bool(), "A is zero");
  ------------------
  |  |   64|  1.00k|   do {                                                                                 \
  |  |   65|  1.00k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|  1.00k|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 1.00k]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|  1.00k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 1.00k]
  |  |  ------------------
  ------------------
  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|  1.00k|   (~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|  1.00k|   clear_mem(&tmp_mem[mod_words], 4 * mod_words);
  123|       |
  124|  1.00k|   CT::unpoison(tmp_mem.data(), tmp_mem.size());
  125|       |
  126|  1.00k|   BigInt r;
  127|  1.00k|   r.swap_reg(tmp_mem);
  128|  1.00k|   return r;
  129|  1.00k|}

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

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

_ZN5Botan17sqrt_modulo_primeERKNS_6BigIntES2_:
   27|    520|BigInt sqrt_modulo_prime(const BigInt& a, const BigInt& p) {
   28|    520|   BOTAN_ARG_CHECK(p > 1, "invalid prime");
  ------------------
  |  |   35|    520|   do {                                                          \
  |  |   36|    520|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    520|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 520]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    520|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 520]
  |  |  ------------------
  ------------------
   29|    520|   BOTAN_ARG_CHECK(a < p, "value to solve for must be less than p");
  ------------------
  |  |   35|    520|   do {                                                          \
  |  |   36|    520|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    520|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 520]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    520|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 520]
  |  |  ------------------
  ------------------
   30|    520|   BOTAN_ARG_CHECK(a >= 0, "value to solve for must not be negative");
  ------------------
  |  |   35|    520|   do {                                                          \
  |  |   36|    520|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    520|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 520]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    520|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 520]
  |  |  ------------------
  ------------------
   31|       |
   32|       |   // some very easy cases
   33|    520|   if(p == 2 || a <= 1) {
  ------------------
  |  Branch (33:7): [True: 0, False: 520]
  |  Branch (33:17): [True: 0, False: 520]
  ------------------
   34|      0|      return a;
   35|      0|   }
   36|       |
   37|    520|   BOTAN_ARG_CHECK(p.is_odd(), "invalid prime");
  ------------------
  |  |   35|    520|   do {                                                          \
  |  |   36|    520|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    520|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 520]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    520|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 520]
  |  |  ------------------
  ------------------
   38|       |
   39|    520|   if(jacobi(a, p) != 1) {  // not a quadratic residue
  ------------------
  |  Branch (39:7): [True: 203, False: 317]
  ------------------
   40|    203|      return BigInt::from_s32(-1);
   41|    203|   }
   42|       |
   43|    317|   auto mod_p = Barrett_Reduction::for_public_modulus(p);
   44|    317|   const Montgomery_Params monty_p(p, mod_p);
   45|       |
   46|       |   // If p == 3 (mod 4) there is a simple solution
   47|    317|   if(p % 4 == 3) {
  ------------------
  |  Branch (47:7): [True: 19, False: 298]
  ------------------
   48|     19|      return monty_exp_vartime(monty_p, a, ((p + 1) >> 2)).value();
   49|     19|   }
   50|       |
   51|       |   // Otherwise we have to use Shanks-Tonelli
   52|    298|   size_t s = low_zero_bits(p - 1);
   53|    298|   BigInt q = p >> s;
   54|       |
   55|    298|   q -= 1;
   56|    298|   q >>= 1;
   57|       |
   58|    298|   BigInt r = monty_exp_vartime(monty_p, a, q).value();
   59|    298|   BigInt n = mod_p.multiply(a, mod_p.square(r));
   60|    298|   r = mod_p.multiply(r, a);
   61|       |
   62|    298|   if(n == 1) {
  ------------------
  |  Branch (62:7): [True: 130, False: 168]
  ------------------
   63|    130|      return r;
   64|    130|   }
   65|       |
   66|       |   // find random quadratic nonresidue z
   67|    168|   word z = 2;
   68|    483|   for(;;) {
   69|    483|      if(jacobi(BigInt::from_word(z), p) == -1) {  // found one
  ------------------
  |  Branch (69:10): [True: 168, False: 315]
  ------------------
   70|    168|         break;
   71|    168|      }
   72|       |
   73|    315|      z += 1;  // try next z
   74|       |
   75|       |      /*
   76|       |      * The expected number of tests to find a non-residue modulo a
   77|       |      * prime is 2. If we have not found one after 256 then almost
   78|       |      * certainly we have been given a non-prime p.
   79|       |      */
   80|    315|      if(z >= 256) {
  ------------------
  |  Branch (80:10): [True: 0, False: 315]
  ------------------
   81|      0|         return BigInt::from_s32(-1);
   82|      0|      }
   83|    315|   }
   84|       |
   85|    168|   BigInt c = monty_exp_vartime(monty_p, BigInt::from_word(z), (q << 1) + 1).value();
   86|       |
   87|  1.93k|   while(n > 1) {
  ------------------
  |  Branch (87:10): [True: 1.76k, False: 168]
  ------------------
   88|  1.76k|      q = n;
   89|       |
   90|  1.76k|      size_t i = 0;
   91|  80.5k|      while(q != 1) {
  ------------------
  |  Branch (91:13): [True: 78.7k, False: 1.76k]
  ------------------
   92|  78.7k|         q = mod_p.square(q);
   93|  78.7k|         ++i;
   94|       |
   95|  78.7k|         if(i >= s) {
  ------------------
  |  Branch (95:13): [True: 0, False: 78.7k]
  ------------------
   96|      0|            return BigInt::from_s32(-1);
   97|      0|         }
   98|  78.7k|      }
   99|       |
  100|  1.76k|      BOTAN_ASSERT_NOMSG(s >= (i + 1));  // No underflow!
  ------------------
  |  |   77|  1.76k|   do {                                                                     \
  |  |   78|  1.76k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  1.76k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 1.76k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  1.76k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 1.76k]
  |  |  ------------------
  ------------------
  101|  1.76k|      c = monty_exp_vartime(monty_p, c, BigInt::power_of_2(s - i - 1)).value();
  102|  1.76k|      r = mod_p.multiply(r, c);
  103|  1.76k|      c = mod_p.square(c);
  104|  1.76k|      n = mod_p.multiply(n, c);
  105|       |
  106|       |      // s decreases as the algorithm proceeds
  107|  1.76k|      BOTAN_ASSERT_NOMSG(s >= i);
  ------------------
  |  |   77|  1.76k|   do {                                                                     \
  |  |   78|  1.76k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  1.76k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 1.76k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  1.76k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 1.76k]
  |  |  ------------------
  ------------------
  108|  1.76k|      s = i;
  109|  1.76k|   }
  110|       |
  111|    168|   return r;
  112|    168|}
_ZN5Botan6jacobiENS_6BigIntES0_:
  119|  4.53k|int32_t jacobi(BigInt a, BigInt n) {
  120|  4.53k|   BOTAN_ARG_CHECK(n.is_odd() && n >= 3, "Argument n must be an odd integer >= 3");
  ------------------
  |  |   35|  4.53k|   do {                                                          \
  |  |   36|  4.53k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  9.06k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 4.53k, False: 0]
  |  |  |  Branch (37:12): [True: 4.53k, False: 0]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  4.53k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 4.53k]
  |  |  ------------------
  ------------------
  121|       |
  122|  4.53k|   if(a < 0 || a >= n) {
  ------------------
  |  Branch (122:7): [True: 1.61k, False: 2.91k]
  |  Branch (122:16): [True: 0, False: 2.91k]
  ------------------
  123|  1.61k|      a %= n;
  124|  1.61k|   }
  125|       |
  126|  4.53k|   if(a == 0) {
  ------------------
  |  Branch (126:7): [True: 0, False: 4.53k]
  ------------------
  127|      0|      return 0;
  128|      0|   }
  129|  4.53k|   if(a == 1) {
  ------------------
  |  Branch (129:7): [True: 0, False: 4.53k]
  ------------------
  130|      0|      return 1;
  131|      0|   }
  132|       |
  133|  4.53k|   int32_t s = 1;
  134|       |
  135|  52.3k|   for(;;) {
  136|  52.3k|      const size_t e = low_zero_bits(a);
  137|  52.3k|      a >>= e;
  138|  52.3k|      const word n_mod_8 = n.word_at(0) % 8;
  139|  52.3k|      const word n_mod_4 = n_mod_8 % 4;
  140|       |
  141|  52.3k|      if(e % 2 == 1 && (n_mod_8 == 3 || n_mod_8 == 5)) {
  ------------------
  |  Branch (141:10): [True: 18.4k, False: 33.9k]
  |  Branch (141:25): [True: 4.49k, False: 13.9k]
  |  Branch (141:41): [True: 4.62k, False: 9.30k]
  ------------------
  142|  9.11k|         s = -s;
  143|  9.11k|      }
  144|       |
  145|  52.3k|      if(n_mod_4 == 3 && a % 4 == 3) {
  ------------------
  |  Branch (145:10): [True: 25.6k, False: 26.6k]
  |  Branch (145:26): [True: 12.2k, False: 13.4k]
  ------------------
  146|  12.2k|         s = -s;
  147|  12.2k|      }
  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|  52.3k|      if(a == 1) {
  ------------------
  |  Branch (165:10): [True: 4.53k, False: 47.8k]
  ------------------
  166|  4.53k|         return s;
  167|  4.53k|      }
  168|       |
  169|  47.8k|      std::swap(a, n);
  170|       |
  171|  47.8k|      BOTAN_ASSERT_NOMSG(n.is_odd());
  ------------------
  |  |   77|  47.8k|   do {                                                                     \
  |  |   78|  47.8k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  47.8k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 47.8k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  47.8k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 47.8k]
  |  |  ------------------
  ------------------
  172|       |
  173|  47.8k|      a %= n;
  174|       |
  175|  47.8k|      if(a == 0) {
  ------------------
  |  Branch (175:10): [True: 0, False: 47.8k]
  ------------------
  176|      0|         return 0;
  177|      0|      }
  178|  47.8k|   }
  179|  4.53k|}
_ZN5Botan13low_zero_bitsERKNS_6BigIntE:
  194|  54.1k|size_t low_zero_bits(const BigInt& n) {
  195|  54.1k|   size_t low_zero = 0;
  196|       |
  197|  54.1k|   auto seen_nonempty_word = CT::Mask<word>::cleared();
  198|       |
  199|   525k|   for(size_t i = 0; i != n.size(); ++i) {
  ------------------
  |  Branch (199:22): [True: 471k, False: 54.1k]
  ------------------
  200|   471k|      const word x = n.word_at(i);
  201|       |
  202|       |      // ctz(0) will return sizeof(word)
  203|   471k|      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|   471k|      low_zero += seen_nonempty_word.if_not_set_return(tz_x);
  208|       |
  209|   471k|      seen_nonempty_word |= CT::Mask<word>::expand(x);
  210|   471k|   }
  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|  54.1k|   return static_cast<size_t>(seen_nonempty_word.if_set_return(low_zero));
  215|  54.1k|}
_ZN5Botan17is_perfect_squareERKNS_6BigIntE:
  347|    141|BigInt is_perfect_square(const BigInt& C) {
  348|    141|   if(C < 1) {
  ------------------
  |  Branch (348:7): [True: 0, False: 141]
  ------------------
  349|      0|      throw Invalid_Argument("is_perfect_square requires C >= 1");
  350|      0|   }
  351|    141|   if(C == 1) {
  ------------------
  |  Branch (351:7): [True: 0, False: 141]
  ------------------
  352|      0|      return BigInt::one();
  353|      0|   }
  354|       |
  355|    141|   const size_t n = C.bits();
  356|    141|   const size_t m = (n + 1) / 2;
  357|    141|   const BigInt B = C + BigInt::power_of_2(m);
  358|       |
  359|    141|   BigInt X = BigInt::power_of_2(m) - 1;
  360|    141|   BigInt X2 = (X * X);
  361|       |
  362|    534|   for(;;) {
  363|    534|      X = (X2 + C) / (2 * X);
  364|    534|      X2 = (X * X);
  365|       |
  366|    534|      if(X2 < B) {
  ------------------
  |  Branch (366:10): [True: 141, False: 393]
  ------------------
  367|    141|         break;
  368|    141|      }
  369|    534|   }
  370|       |
  371|    141|   if(X2 == C) {
  ------------------
  |  Branch (371:7): [True: 0, False: 141]
  ------------------
  372|      0|      return X;
  373|    141|   } else {
  374|    141|      return BigInt::zero();
  375|    141|   }
  376|    141|}

_ZN5Botan23is_lucas_probable_primeERKNS_6BigIntERKNS_17Barrett_ReductionE:
   18|    951|bool is_lucas_probable_prime(const BigInt& C, const Barrett_Reduction& mod_C) {
   19|    951|   BOTAN_ARG_CHECK(C.signum() >= 0, "Argument must be non-negative");
  ------------------
  |  |   35|    951|   do {                                                          \
  |  |   36|    951|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    951|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 951]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    951|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 951]
  |  |  ------------------
  ------------------
   20|       |
   21|    951|   if(C == 2 || C == 3 || C == 5 || C == 7 || C == 11 || C == 13) {
  ------------------
  |  Branch (21:7): [True: 0, False: 951]
  |  Branch (21:17): [True: 1, False: 950]
  |  Branch (21:27): [True: 1, False: 949]
  |  Branch (21:37): [True: 1, False: 948]
  |  Branch (21:47): [True: 1, False: 947]
  |  Branch (21:58): [True: 1, False: 946]
  ------------------
   22|      5|      return true;
   23|      5|   }
   24|       |
   25|    946|   if(C <= 1 || C.is_even()) {
  ------------------
  |  Branch (25:7): [True: 0, False: 946]
  |  Branch (25:17): [True: 0, False: 946]
  ------------------
   26|      0|      return false;
   27|      0|   }
   28|       |
   29|    946|   BigInt D = BigInt::from_word(5);
   30|       |
   31|  3.52k|   for(;;) {
   32|  3.52k|      const int32_t j = jacobi(D, C);
   33|  3.52k|      if(j == 0) {
  ------------------
  |  Branch (33:10): [True: 0, False: 3.52k]
  ------------------
   34|      0|         return false;
   35|      0|      }
   36|       |
   37|  3.52k|      if(j == -1) {
  ------------------
  |  Branch (37:10): [True: 946, False: 2.58k]
  ------------------
   38|    946|         break;
   39|    946|      }
   40|       |
   41|       |      // Check 5, -7, 9, -11, 13, -15, 17, ...
   42|  2.58k|      if(D.signum() < 0) {
  ------------------
  |  Branch (42:10): [True: 963, False: 1.61k]
  ------------------
   43|    963|         D.flip_sign();
   44|    963|         D += 2;
   45|  1.61k|      } else {
   46|  1.61k|         D += 2;
   47|  1.61k|         D.flip_sign();
   48|  1.61k|      }
   49|       |
   50|  2.58k|      if(D == 17 && is_perfect_square(C).signum() != 0) {
  ------------------
  |  Branch (50:10): [True: 141, False: 2.44k]
  |  Branch (50:10): [True: 0, False: 2.58k]
  |  Branch (50:21): [True: 0, False: 141]
  ------------------
   51|      0|         return false;
   52|      0|      }
   53|  2.58k|   }
   54|       |
   55|    946|   if(D.signum() < 0) {
  ------------------
  |  Branch (55:7): [True: 656, False: 290]
  ------------------
   56|    656|      D += C;
   57|    656|   }
   58|       |
   59|    946|   const BigInt K = C + 1;
   60|    946|   const size_t K_bits = K.bits() - 1;
   61|       |
   62|    946|   BigInt U = BigInt::one();
   63|    946|   BigInt V = BigInt::one();
   64|       |
   65|    946|   BigInt Ut;
   66|    946|   BigInt Vt;
   67|    946|   BigInt U2;
   68|    946|   BigInt V2;
   69|       |
   70|   311k|   for(size_t i = 0; i != K_bits; ++i) {
  ------------------
  |  Branch (70:22): [True: 310k, False: 946]
  ------------------
   71|   310k|      const bool k_bit = K.get_bit(K_bits - 1 - i);
   72|       |
   73|   310k|      Ut = mod_C.multiply(U, V);
   74|       |
   75|   310k|      Vt = mod_C.reduce(mod_C.square(V) + mod_C.multiply(D, mod_C.square(U)));
   76|   310k|      Vt.ct_cond_add(Vt.is_odd(), C);
   77|   310k|      Vt >>= 1;
   78|   310k|      Vt = mod_C.reduce(Vt);
   79|       |
   80|   310k|      U = Ut;
   81|   310k|      V = Vt;
   82|       |
   83|   310k|      U2 = mod_C.reduce(Ut + Vt);
   84|   310k|      U2.ct_cond_add(U2.is_odd(), C);
   85|   310k|      U2 >>= 1;
   86|       |
   87|   310k|      V2 = mod_C.reduce(Vt + mod_C.multiply(Ut, D));
   88|   310k|      V2.ct_cond_add(V2.is_odd(), C);
   89|   310k|      V2 >>= 1;
   90|       |
   91|   310k|      U.ct_cond_assign(k_bit, U2);
   92|   310k|      V.ct_cond_assign(k_bit, V2);
   93|   310k|   }
   94|       |
   95|    946|   return (U == 0);
   96|    946|}
_ZN5Botan28is_bailie_psw_probable_primeERKNS_6BigIntERKNS_17Barrett_ReductionE:
   98|  1.69k|bool is_bailie_psw_probable_prime(const BigInt& n, const Barrett_Reduction& mod_n) {
   99|  1.69k|   if(n == 2) {
  ------------------
  |  Branch (99:7): [True: 1, False: 1.68k]
  ------------------
  100|      1|      return true;
  101|  1.68k|   } else if(n <= 1 || n.is_even()) {
  ------------------
  |  Branch (101:14): [True: 1, False: 1.68k]
  |  Branch (101:24): [True: 146, False: 1.54k]
  ------------------
  102|    147|      return false;
  103|    147|   }
  104|       |
  105|  1.54k|   const Montgomery_Params monty_n(n, mod_n);
  106|  1.54k|   const auto base = BigInt::from_word(2);
  107|  1.54k|   return passes_miller_rabin_test(n, mod_n, monty_n, base) && is_lucas_probable_prime(n, mod_n);
  ------------------
  |  Branch (107:11): [True: 951, False: 591]
  |  Branch (107:64): [True: 950, False: 1]
  ------------------
  108|  1.69k|}
_ZN5Botan24passes_miller_rabin_testERKNS_6BigIntERKNS_17Barrett_ReductionERKNS_17Montgomery_ParamsES2_:
  113|  1.54k|                              const BigInt& a) {
  114|  1.54k|   if(n < 3 || n.is_even()) {
  ------------------
  |  Branch (114:7): [True: 0, False: 1.54k]
  |  Branch (114:16): [True: 0, False: 1.54k]
  ------------------
  115|      0|      return false;
  116|      0|   }
  117|       |
  118|  1.54k|   BOTAN_ASSERT_NOMSG(n > 1);
  ------------------
  |  |   77|  1.54k|   do {                                                                     \
  |  |   78|  1.54k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  1.54k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 1.54k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  1.54k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 1.54k]
  |  |  ------------------
  ------------------
  119|       |
  120|  1.54k|   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.54k|   const size_t s = CT::driveby_unpoison(low_zero_bits(n_minus_1));
  128|  1.54k|   const BigInt nm1_s = n_minus_1 >> s;
  129|  1.54k|   const size_t n_bits = n.bits();
  130|       |
  131|  1.54k|   const size_t powm_window = 4;
  132|       |
  133|  1.54k|   auto powm_a_n = monty_precompute(monty_n, a, powm_window);
  134|       |
  135|  1.54k|   BigInt y = monty_execute(*powm_a_n, nm1_s, n_bits).value();
  136|       |
  137|  1.54k|   if(y == 1 || y == n_minus_1) {
  ------------------
  |  Branch (137:7): [True: 488, False: 1.05k]
  |  Branch (137:17): [True: 53, False: 1.00k]
  ------------------
  138|    541|      return true;
  139|    541|   }
  140|       |
  141|  22.0k|   for(size_t i = 1; i != s; ++i) {
  ------------------
  |  Branch (141:22): [True: 21.5k, False: 590]
  ------------------
  142|  21.5k|      y = mod_n.square(y);
  143|       |
  144|  21.5k|      if(y == 1) {  // found a non-trivial square root
  ------------------
  |  Branch (144:10): [True: 1, False: 21.5k]
  ------------------
  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|  21.5k|      if(y == n_minus_1) {
  ------------------
  |  Branch (152:10): [True: 410, False: 21.0k]
  ------------------
  153|    410|         return true;
  154|    410|      }
  155|  21.5k|   }
  156|       |
  157|    590|   return false;
  158|  1.00k|}

_ZN5Botan6PCurve15PrimeOrderCurve6Scalar8_zeroizeEv:
   16|  1.91k|void PrimeOrderCurve::Scalar::_zeroize() {
   17|  1.91k|   secure_zeroize_buffer(m_value.data(), m_value.size() * sizeof(word));
   18|  1.91k|}
_ZN5Botan6PCurve15PrimeOrderCurve11from_paramsERKNS_6BigIntES4_S4_S4_S4_S4_:
   22|  1.23k|   const BigInt& p, const BigInt& a, const BigInt& b, const BigInt& base_x, const BigInt& base_y, const BigInt& order) {
   23|  1.23k|#if defined(BOTAN_HAS_PCURVES_GENERIC)
   24|  1.23k|   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|  1.23k|}
_ZN5Botan6PCurve15PrimeOrderCurve15for_named_curveENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEE:
   32|  2.79k|std::shared_ptr<const PrimeOrderCurve> PrimeOrderCurve::for_named_curve(std::string_view name) {
   33|  2.79k|#if defined(BOTAN_HAS_PCURVES_SECP256R1)
   34|  2.79k|   if(name == "secp256r1") {
  ------------------
  |  Branch (34:7): [True: 119, False: 2.68k]
  ------------------
   35|    119|      return PCurveInstance::secp256r1();
   36|    119|   }
   37|  2.68k|#endif
   38|       |
   39|  2.68k|#if defined(BOTAN_HAS_PCURVES_SECP384R1)
   40|  2.68k|   if(name == "secp384r1") {
  ------------------
  |  Branch (40:7): [True: 198, False: 2.48k]
  ------------------
   41|    198|      return PCurveInstance::secp384r1();
   42|    198|   }
   43|  2.48k|#endif
   44|       |
   45|  2.48k|#if defined(BOTAN_HAS_PCURVES_SECP521R1)
   46|  2.48k|   if(name == "secp521r1") {
  ------------------
  |  Branch (46:7): [True: 298, False: 2.18k]
  ------------------
   47|    298|      return PCurveInstance::secp521r1();
   48|    298|   }
   49|  2.18k|#endif
   50|       |
   51|  2.18k|#if defined(BOTAN_HAS_PCURVES_BRAINPOOL256R1)
   52|  2.18k|   if(name == "brainpool256r1") {
  ------------------
  |  Branch (52:7): [True: 131, False: 2.05k]
  ------------------
   53|    131|      return PCurveInstance::brainpool256r1();
   54|    131|   }
   55|  2.05k|#endif
   56|       |
   57|  2.05k|#if defined(BOTAN_HAS_PCURVES_BRAINPOOL384R1)
   58|  2.05k|   if(name == "brainpool384r1") {
  ------------------
  |  Branch (58:7): [True: 185, False: 1.86k]
  ------------------
   59|    185|      return PCurveInstance::brainpool384r1();
   60|    185|   }
   61|  1.86k|#endif
   62|       |
   63|  1.86k|#if defined(BOTAN_HAS_PCURVES_BRAINPOOL512R1)
   64|  1.86k|   if(name == "brainpool512r1") {
  ------------------
  |  Branch (64:7): [True: 153, False: 1.71k]
  ------------------
   65|    153|      return PCurveInstance::brainpool512r1();
   66|    153|   }
   67|  1.71k|#endif
   68|       |
   69|  1.71k|#if defined(BOTAN_HAS_PCURVES_FRP256V1)
   70|  1.71k|   if(name == "frp256v1") {
  ------------------
  |  Branch (70:7): [True: 0, False: 1.71k]
  ------------------
   71|      0|      return PCurveInstance::frp256v1();
   72|      0|   }
   73|  1.71k|#endif
   74|       |
   75|  1.71k|#if defined(BOTAN_HAS_PCURVES_SECP192R1)
   76|  1.71k|   if(name == "secp192r1") {
  ------------------
  |  Branch (76:7): [True: 0, False: 1.71k]
  ------------------
   77|      0|      return PCurveInstance::secp192r1();
   78|      0|   }
   79|  1.71k|#endif
   80|       |
   81|  1.71k|#if defined(BOTAN_HAS_PCURVES_SECP224R1)
   82|  1.71k|   if(name == "secp224r1") {
  ------------------
  |  Branch (82:7): [True: 352, False: 1.36k]
  ------------------
   83|    352|      return PCurveInstance::secp224r1();
   84|    352|   }
   85|  1.36k|#endif
   86|       |
   87|  1.36k|#if defined(BOTAN_HAS_PCURVES_SECP256K1)
   88|  1.36k|   if(name == "secp256k1") {
  ------------------
  |  Branch (88:7): [True: 195, False: 1.16k]
  ------------------
   89|    195|      return PCurveInstance::secp256k1();
   90|    195|   }
   91|  1.16k|#endif
   92|       |
   93|  1.16k|#if defined(BOTAN_HAS_PCURVES_SM2P256V1)
   94|  1.16k|   if(name == "sm2p256v1") {
  ------------------
  |  Branch (94:7): [True: 0, False: 1.16k]
  ------------------
   95|      0|      return PCurveInstance::sm2p256v1();
   96|      0|   }
   97|  1.16k|#endif
   98|       |
   99|  1.16k|#if defined(BOTAN_HAS_PCURVES_NUMSP512D1)
  100|  1.16k|   if(name == "numsp512d1") {
  ------------------
  |  Branch (100:7): [True: 0, False: 1.16k]
  ------------------
  101|      0|      return PCurveInstance::numsp512d1();
  102|      0|   }
  103|  1.16k|#endif
  104|       |
  105|  1.16k|   BOTAN_UNUSED(name);
  ------------------
  |  |  144|  1.16k|#define BOTAN_UNUSED Botan::ignore_params
  ------------------
  106|  1.16k|   return {};
  107|  1.16k|}

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

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

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

_ZN5Botan6PCurve22GenericPrimeOrderCurveC2ERKNS_6BigIntES4_S4_S4_S4_S4_:
 1432|    460|      m_params(std::make_unique<GenericCurveParams>(p, a, b, base_x, base_y, order)) {}
_ZN5Botan6PCurve22GenericPrimeOrderCurve20_precompute_base_mulEv:
 1434|    460|void GenericPrimeOrderCurve::_precompute_base_mul() {
 1435|    460|   BOTAN_STATE_CHECK(m_basemul == nullptr);
  ------------------
  |  |   51|    460|   do {                                                         \
  |  |   52|    460|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    460|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 460]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    460|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 460]
  |  |  ------------------
  ------------------
 1436|    460|   m_basemul = std::make_unique<GenericBaseMulTable>(from_stash(generator()));
 1437|    460|}
_ZNK5Botan6PCurve22GenericPrimeOrderCurve10order_bitsEv:
 1439|    460|size_t GenericPrimeOrderCurve::order_bits() const {
 1440|    460|   return _params().order_bits();
 1441|    460|}
_ZNK5Botan6PCurve22GenericPrimeOrderCurve19field_element_bytesEv:
 1447|    604|size_t GenericPrimeOrderCurve::field_element_bytes() const {
 1448|    604|   return _params().field_bytes();
 1449|    604|}
_ZNK5Botan6PCurve22GenericPrimeOrderCurve8mul_by_gERKNS0_15PrimeOrderCurve6ScalarERNS_21RandomNumberGeneratorE:
 1452|    301|                                                                  RandomNumberGenerator& rng) const {
 1453|    301|   BOTAN_STATE_CHECK(m_basemul != nullptr);
  ------------------
  |  |   51|    301|   do {                                                         \
  |  |   52|    301|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    301|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 301]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    301|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 301]
  |  |  ------------------
  ------------------
 1454|    301|   return stash(m_basemul->mul(from_stash(scalar), rng));
 1455|    301|}
_ZNK5Botan6PCurve22GenericPrimeOrderCurve9generatorEv:
 1546|    460|PrimeOrderCurve::AffinePoint GenericPrimeOrderCurve::generator() const {
 1547|    460|   return PrimeOrderCurve::AffinePoint::_create(shared_from_this(), _params().base_x(), _params().base_y());
 1548|    460|}
_ZNK5Botan6PCurve22GenericPrimeOrderCurve15point_to_affineERKNS0_15PrimeOrderCurve15ProjectivePointE:
 1550|    301|PrimeOrderCurve::AffinePoint GenericPrimeOrderCurve::point_to_affine(const ProjectivePoint& pt) const {
 1551|    301|   auto affine = to_affine<GenericCurve>(from_stash(pt));
 1552|       |
 1553|    301|   const auto y2 = affine.y().square();
 1554|    301|   const auto x3_ax_b = GenericCurve::AffinePoint::x3_ax_b(affine.x());
 1555|    301|   const auto valid_point = affine.is_identity() || (y2 == x3_ax_b);
 1556|       |
 1557|    301|   BOTAN_ASSERT(valid_point.as_bool(), "Computed point is on the curve");
  ------------------
  |  |   64|    301|   do {                                                                                 \
  |  |   65|    301|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|    301|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 301]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|    301|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 301]
  |  |  ------------------
  ------------------
 1558|       |
 1559|    301|   return stash(affine);
 1560|    301|}
_ZNK5Botan6PCurve22GenericPrimeOrderCurve24affine_point_is_identityERKNS0_15PrimeOrderCurve11AffinePointE:
 1570|    302|bool GenericPrimeOrderCurve::affine_point_is_identity(const AffinePoint& pt) const {
 1571|    302|   return from_stash(pt).is_identity().as_bool();
 1572|    302|}
_ZNK5Botan6PCurve22GenericPrimeOrderCurve15serialize_pointENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve11AffinePointE:
 1574|    302|void GenericPrimeOrderCurve::serialize_point(std::span<uint8_t> bytes, const AffinePoint& pt) const {
 1575|    302|   from_stash(pt).serialize_to(bytes);
 1576|    302|}
_ZNK5Botan6PCurve22GenericPrimeOrderCurve16serialize_scalarENSt3__14spanIhLm18446744073709551615EEERKNS0_15PrimeOrderCurve6ScalarE:
 1578|    443|void GenericPrimeOrderCurve::serialize_scalar(std::span<uint8_t> bytes, const Scalar& scalar) const {
 1579|    443|   BOTAN_ARG_CHECK(bytes.size() == _params().order_bytes(), "Invalid length to serialize_scalar");
  ------------------
  |  |   35|    443|   do {                                                          \
  |  |   36|    443|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    443|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 443]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    443|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 443]
  |  |  ------------------
  ------------------
 1580|    443|   from_stash(scalar).serialize_to(bytes);
 1581|    443|}
_ZNK5Botan6PCurve22GenericPrimeOrderCurve18deserialize_scalarENSt3__14spanIKhLm18446744073709551615EEE:
 1584|    448|   std::span<const uint8_t> bytes) const {
 1585|    448|   if(auto s = GenericScalar::deserialize(this, bytes)) {
  ------------------
  |  Branch (1585:12): [True: 444, False: 4]
  ------------------
 1586|    444|      if(s->is_nonzero().as_bool()) {
  ------------------
  |  Branch (1586:10): [True: 443, False: 1]
  ------------------
 1587|    443|         return stash(s.value());
 1588|    443|      }
 1589|    444|   }
 1590|       |
 1591|      5|   return {};
 1592|    448|}
_ZNK5Botan6PCurve22GenericPrimeOrderCurve17deserialize_pointENSt3__14spanIKhLm18446744073709551615EEE:
 1604|    142|   std::span<const uint8_t> bytes) const {
 1605|    142|   if(auto pt = GenericAffinePoint::deserialize(this, bytes)) {
  ------------------
  |  Branch (1605:12): [True: 1, False: 141]
  ------------------
 1606|      1|      return stash(pt.value());
 1607|    141|   } else {
 1608|    141|      return {};
 1609|    141|   }
 1610|    142|}
_ZNK5Botan6PCurve22GenericPrimeOrderCurve14scalar_is_zeroERKNS0_15PrimeOrderCurve6ScalarE:
 1640|    443|bool GenericPrimeOrderCurve::scalar_is_zero(const Scalar& s) const {
 1641|    443|   return from_stash(s).is_zero().as_bool();
 1642|    443|}
_ZNK5Botan6PCurve22GenericPrimeOrderCurve5stashERKNS0_13GenericScalarE:
 1656|    443|PrimeOrderCurve::Scalar GenericPrimeOrderCurve::stash(const GenericScalar& s) const {
 1657|    443|   return Scalar::_create(shared_from_this(), s.stash_value());
 1658|    443|}
_ZNK5Botan6PCurve22GenericPrimeOrderCurve10from_stashERKNS0_15PrimeOrderCurve6ScalarE:
 1660|  1.18k|GenericScalar GenericPrimeOrderCurve::from_stash(const PrimeOrderCurve::Scalar& s) const {
 1661|  1.18k|   BOTAN_ARG_CHECK(s._curve().get() == this, "Curve mismatch");
  ------------------
  |  |   35|  1.18k|   do {                                                          \
  |  |   36|  1.18k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  1.18k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 1.18k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  1.18k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 1.18k]
  |  |  ------------------
  ------------------
 1662|  1.18k|   return GenericScalar(this, s._value());
 1663|  1.18k|}
_ZNK5Botan6PCurve22GenericPrimeOrderCurve5stashERKNS0_18GenericAffinePointE:
 1665|    302|PrimeOrderCurve::AffinePoint GenericPrimeOrderCurve::stash(const GenericAffinePoint& pt) const {
 1666|    302|   auto x_w = pt.x().stash_value();
 1667|    302|   auto y_w = pt.y().stash_value();
 1668|    302|   return AffinePoint::_create(shared_from_this(), x_w, y_w);
 1669|    302|}
_ZNK5Botan6PCurve22GenericPrimeOrderCurve10from_stashERKNS0_15PrimeOrderCurve11AffinePointE:
 1671|  1.06k|GenericAffinePoint GenericPrimeOrderCurve::from_stash(const PrimeOrderCurve::AffinePoint& pt) const {
 1672|  1.06k|   BOTAN_ARG_CHECK(pt._curve().get() == this, "Curve mismatch");
  ------------------
  |  |   35|  1.06k|   do {                                                          \
  |  |   36|  1.06k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  1.06k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 1.06k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  1.06k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 1.06k]
  |  |  ------------------
  ------------------
 1673|  1.06k|   auto x = GenericField(this, pt._x());
 1674|  1.06k|   auto y = GenericField(this, pt._y());
 1675|  1.06k|   return GenericAffinePoint(x, y);
 1676|  1.06k|}
_ZNK5Botan6PCurve22GenericPrimeOrderCurve5stashERKNS0_22GenericProjectivePointE:
 1678|    301|PrimeOrderCurve::ProjectivePoint GenericPrimeOrderCurve::stash(const GenericProjectivePoint& pt) const {
 1679|    301|   auto x_w = pt.x().stash_value();
 1680|    301|   auto y_w = pt.y().stash_value();
 1681|    301|   auto z_w = pt.z().stash_value();
 1682|    301|   return ProjectivePoint::_create(shared_from_this(), x_w, y_w, z_w);
 1683|    301|}
_ZNK5Botan6PCurve22GenericPrimeOrderCurve10from_stashERKNS0_15PrimeOrderCurve15ProjectivePointE:
 1685|    301|GenericProjectivePoint GenericPrimeOrderCurve::from_stash(const PrimeOrderCurve::ProjectivePoint& pt) const {
 1686|    301|   BOTAN_ARG_CHECK(pt._curve().get() == this, "Curve mismatch");
  ------------------
  |  |   35|    301|   do {                                                          \
  |  |   36|    301|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    301|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 301]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    301|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 301]
  |  |  ------------------
  ------------------
 1687|    301|   auto x = GenericField(this, pt._x());
 1688|    301|   auto y = GenericField(this, pt._y());
 1689|    301|   auto z = GenericField(this, pt._z());
 1690|    301|   return GenericProjectivePoint(x, y, z);
 1691|    301|}
_ZN5Botan6PCurve14PCurveInstance11from_paramsERKNS_6BigIntES4_S4_S4_S4_S4_:
 1706|  1.23k|   const BigInt& p, const BigInt& a, const BigInt& b, const BigInt& base_x, const BigInt& base_y, const BigInt& order) {
 1707|       |   // We don't check that p and order are prime here on the assumption this has
 1708|       |   // been checked already by EC_Group
 1709|       |
 1710|  1.23k|   BOTAN_ARG_CHECK(a >= 0 && a < p, "a is invalid");
  ------------------
  |  |   35|  1.23k|   do {                                                          \
  |  |   36|  1.23k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  2.47k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 1.23k, False: 0]
  |  |  |  Branch (37:12): [True: 1.23k, False: 0]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  1.23k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 1.23k]
  |  |  ------------------
  ------------------
 1711|  1.23k|   BOTAN_ARG_CHECK(b > 0 && b < p, "b is invalid");
  ------------------
  |  |   35|  1.23k|   do {                                                          \
  |  |   36|  1.23k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  2.47k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 1.23k, False: 0]
  |  |  |  Branch (37:12): [True: 1.23k, False: 0]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  1.23k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 1.23k]
  |  |  ------------------
  ------------------
 1712|  1.23k|   BOTAN_ARG_CHECK(base_x >= 0 && base_x < p, "base_x is invalid");
  ------------------
  |  |   35|  1.23k|   do {                                                          \
  |  |   36|  1.23k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  2.47k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 1.23k, False: 0]
  |  |  |  Branch (37:12): [True: 1.23k, False: 0]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  1.23k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 1.23k]
  |  |  ------------------
  ------------------
 1713|  1.23k|   BOTAN_ARG_CHECK(base_y >= 0 && base_y < p, "base_y is invalid");
  ------------------
  |  |   35|  1.23k|   do {                                                          \
  |  |   36|  1.23k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  2.47k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 1.23k, False: 0]
  |  |  |  Branch (37:12): [True: 1.23k, False: 0]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  1.23k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 1.23k]
  |  |  ------------------
  ------------------
 1714|       |
 1715|  1.23k|   const size_t p_bits = p.bits();
 1716|       |
 1717|       |   // Same size restrictions as EC_Group however here we do not require
 1718|       |   // exactly the primes for the 521 or 239 bit exceptions; this code
 1719|       |   // should work fine with any such prime and we are relying on the higher
 1720|       |   // levels to prevent creating such a group in the first place
 1721|       |   //
 1722|       |   // TODO(Botan4) increase the 128 here to 192 when the corresponding EC_Group constructor is changed
 1723|       |   //
 1724|  1.23k|   if(p_bits != 521 && p_bits != 239 && (p_bits < 128 || p_bits > 512 || p_bits % 32 != 0)) {
  ------------------
  |  Branch (1724:7): [True: 1.18k, False: 53]
  |  Branch (1724:24): [True: 1.18k, False: 0]
  |  Branch (1724:42): [True: 0, False: 1.18k]
  |  Branch (1724:58): [True: 0, False: 1.18k]
  |  Branch (1724:74): [True: 0, False: 1.18k]
  ------------------
 1725|      0|      return {};
 1726|      0|   }
 1727|       |
 1728|       |   // We don't want to deal with Shanks-Tonelli in the generic case
 1729|  1.23k|   if(p % 4 != 3) {
  ------------------
  |  Branch (1729:7): [True: 732, False: 504]
  ------------------
 1730|    732|      return {};
 1731|    732|   }
 1732|       |
 1733|       |   // The bit length of the field and order being the same simplifies things
 1734|    504|   if(p_bits != order.bits()) {
  ------------------
  |  Branch (1734:7): [True: 44, False: 460]
  ------------------
 1735|     44|      return {};
 1736|     44|   }
 1737|       |
 1738|       |   // Check that the (x,y) generator point is on the curve
 1739|    460|   auto mod_p = Barrett_Reduction::for_public_modulus(p);
 1740|    460|   const BigInt y2 = mod_p.square(base_y);
 1741|    460|   const BigInt x3_ax_b = mod_p.reduce(mod_p.cube(base_x) + mod_p.multiply(a, base_x) + b);
 1742|    460|   if(y2 != x3_ax_b) {
  ------------------
  |  Branch (1742:7): [True: 0, False: 460]
  ------------------
 1743|      0|      return {};
 1744|      0|   }
 1745|       |
 1746|    460|   auto gpoc = std::make_shared<GenericPrimeOrderCurve>(p, a, b, base_x, base_y, order);
 1747|       |   /*
 1748|       |   The implementation of this needs to call shared_from_this which is not usable
 1749|       |   until after the constructor has completed, so we have to do a two-stage
 1750|       |   construction process. This is certainly not so clean but it is contained to
 1751|       |   this single file so seems tolerable.
 1752|       |
 1753|       |   Alternately we could lazily compute the base mul table but this brings in
 1754|       |   locking issues which seem a worse alternative overall.
 1755|       |   */
 1756|    460|   gpoc->_precompute_base_mul();
 1757|    460|   return gpoc;
 1758|    460|}
_ZNK5Botan6PCurve18GenericCurveParams10order_bitsEv:
  146|    761|      size_t order_bits() const { return m_order_bits; }
_ZNK5Botan6PCurve18GenericCurveParams11order_bytesEv:
  148|  1.93k|      size_t order_bytes() const { return m_order_bytes; }
_ZNK5Botan6PCurve18GenericCurveParams11field_bytesEv:
  152|  1.91k|      size_t field_bytes() const { return m_field_bytes; }
_ZN5Botan6PCurve19GenericBaseMulTable3mulERKNS0_13GenericScalarERNS_21RandomNumberGeneratorE:
 1340|    301|      GenericProjectivePoint mul(const GenericScalar& s, RandomNumberGenerator& rng) {
 1341|       |         // W+1 bit windows for Booth recoding overlap
 1342|    301|         const GenericBlindedScalarBits scalar(s, rng, WindowBits + 1);
 1343|    301|         return basemul_booth_exec<GenericCurve, WindowBits>(m_table, scalar, rng);
 1344|    301|      }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_124GenericBlindedScalarBitsC2ERKNS0_13GenericScalarERNS_21RandomNumberGeneratorEm:
 1230|    301|      GenericBlindedScalarBits(const GenericScalar& scalar, RandomNumberGenerator& rng, size_t wb) {
 1231|    301|         BOTAN_ASSERT_NOMSG(wb == 1 || wb == 2 || wb == 3 || wb == 4 || wb == 5 || wb == 6 || wb == 7);
  ------------------
  |  |   77|    301|   do {                                                                     \
  |  |   78|    301|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  3.61k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:12): [True: 0, False: 301]
  |  |  |  Branch (79:12): [True: 0, False: 301]
  |  |  |  Branch (79:12): [True: 0, False: 301]
  |  |  |  Branch (79:12): [True: 0, False: 301]
  |  |  |  Branch (79:12): [True: 0, False: 301]
  |  |  |  Branch (79:12): [True: 0, False: 301]
  |  |  |  Branch (79:12): [True: 301, False: 0]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|    301|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 301]
  |  |  ------------------
  ------------------
 1232|       |
 1233|    301|         const auto& params = scalar.curve()->_params();
 1234|       |
 1235|    301|         const size_t order_bits = params.order_bits();
 1236|    301|         m_window_bits = wb;
 1237|       |
 1238|    301|         const size_t blinder_bits = scalar_blinding_bits(order_bits);
 1239|       |
 1240|    301|         if(blinder_bits > 0 && rng.is_seeded()) {
  ------------------
  |  Branch (1240:13): [True: 301, False: 0]
  |  Branch (1240:33): [True: 0, False: 301]
  ------------------
 1241|      0|            const size_t mask_words = (blinder_bits + WordInfo<word>::bits - 1) / WordInfo<word>::bits;
 1242|      0|            const size_t mask_bytes = mask_words * WordInfo<word>::bytes;
 1243|       |
 1244|      0|            const size_t words = params.words();
 1245|       |
 1246|      0|            secure_vector<uint8_t> maskb(mask_bytes);
 1247|      0|            rng.randomize(maskb);
 1248|       |
 1249|      0|            std::array<word, PrimeOrderCurve::StorageWords> mask{};
 1250|      0|            load_le(mask.data(), maskb.data(), mask_words);
 1251|       |
 1252|       |            // Mask to exactly blinder_bits and set MSB and LSB
 1253|      0|            const size_t excess = mask_words * WordInfo<word>::bits - blinder_bits;
 1254|      0|            if(excess > 0) {
  ------------------
  |  Branch (1254:16): [True: 0, False: 0]
  ------------------
 1255|      0|               mask[mask_words - 1] &= (static_cast<word>(1) << (WordInfo<word>::bits - excess)) - 1;
 1256|      0|            }
 1257|      0|            const size_t msb_pos = (blinder_bits - 1) % WordInfo<word>::bits;
 1258|      0|            mask[(blinder_bits - 1) / WordInfo<word>::bits] |= static_cast<word>(1) << msb_pos;
 1259|      0|            mask[0] |= 1;
 1260|       |
 1261|      0|            std::array<word, 2 * PrimeOrderCurve::StorageWords> mask_n{};
 1262|       |
 1263|      0|            const auto sw = scalar.to_words();
 1264|       |
 1265|       |            // Compute masked scalar s + k*n
 1266|      0|            params.mul(mask_n, mask, params.order());
 1267|      0|            bigint_add2(mask_n.data(), 2 * words, sw.data(), words);
 1268|       |
 1269|      0|            std::reverse(mask_n.begin(), mask_n.end());
 1270|      0|            m_bytes = store_be<std::vector<uint8_t>>(mask_n);
 1271|      0|            m_bits = order_bits + blinder_bits;
 1272|    301|         } else {
 1273|       |            // No RNG available, skip blinding
 1274|    301|            m_bytes = scalar.serialize<std::vector<uint8_t>>();
 1275|    301|            m_bits = order_bits;
 1276|    301|         }
 1277|       |
 1278|    301|         m_windows = (m_bits + wb - 1) / wb;
 1279|    301|      }
_ZNK5Botan6PCurve13GenericScalar5curveEv:
  549|    301|      const GenericPrimeOrderCurve* curve() const { return m_curve; }
_ZNK5Botan6PCurve18GenericCurveParams5wordsEv:
  144|  20.7M|      size_t words() const { return m_words; }
_ZN5Botan6PCurve13GenericScalar8from_repEPKNS0_22GenericPrimeOrderCurveENSt3__15arrayImLm9EEE:
  573|    744|      static StorageUnit from_rep(const GenericPrimeOrderCurve* curve, StorageUnit z) {
  574|    744|         std::array<W, 2 * N> ze{};
  575|    744|         copy_mem(std::span{ze}.template first<N>(), z);
  576|    744|         return redc(curve, ze);
  577|    744|      }
_ZN5Botan6PCurve13GenericScalar4redcEPKNS0_22GenericPrimeOrderCurveENSt3__15arrayImLm18EEE:
  563|  1.18k|      static StorageUnit redc(const GenericPrimeOrderCurve* curve, std::array<W, 2 * N> z) {
  564|  1.18k|         const auto& mod = curve->_params().order();
  565|  1.18k|         const size_t words = curve->_params().words();
  566|  1.18k|         StorageUnit r{};
  567|  1.18k|         StorageUnit ws{};
  568|  1.18k|         bigint_monty_redc(
  569|  1.18k|            r.data(), z.data(), mod.data(), words, curve->_params().order_p_dash(), ws.data(), ws.size());
  570|  1.18k|         return r;
  571|  1.18k|      }
_ZNK5Botan6PCurve18GenericCurveParams12order_p_dashEv:
  184|  1.18k|      word order_p_dash() const { return m_order_p_dash; }
_ZNK5Botan6PCurve18GenericCurveParams3mulERNSt3__15arrayImLm18EEERKNS3_ImLm9EEES8_:
  200|  10.0M|      void mul(std::array<word, 2 * N>& z, const std::array<word, N>& x, const std::array<word, N>& y) const {
  201|  10.0M|         clear_mem(z);
  202|       |
  203|  10.0M|         if(m_words == 4) {
  ------------------
  |  Branch (203:13): [True: 3.24M, False: 6.76M]
  ------------------
  204|  3.24M|            bigint_comba_mul4(z.data(), x.data(), y.data());
  205|  6.76M|         } else if(m_words == 6) {
  ------------------
  |  Branch (205:20): [True: 0, False: 6.76M]
  ------------------
  206|      0|            bigint_comba_mul6(z.data(), x.data(), y.data());
  207|  6.76M|         } else if(m_words == 8) {
  ------------------
  |  Branch (207:20): [True: 0, False: 6.76M]
  ------------------
  208|      0|            bigint_comba_mul8(z.data(), x.data(), y.data());
  209|  6.76M|         } else if(m_words == 9) {
  ------------------
  |  Branch (209:20): [True: 2.26M, False: 4.49M]
  ------------------
  210|  2.26M|            bigint_comba_mul9(z.data(), x.data(), y.data());
  211|  4.49M|         } else {
  212|  4.49M|            bigint_mul(z.data(), z.size(), x.data(), m_words, m_words, y.data(), m_words, m_words, nullptr, 0);
  213|  4.49M|         }
  214|  10.0M|      }
pcurves_generic.cpp:_ZNK5Botan6PCurve12_GLOBAL__N_124GenericBlindedScalarBits4bitsEv:
 1283|    301|      size_t bits() const { return m_bits; }
_ZN5Botan6PCurve22GenericProjectivePoint18conditional_assignENS_2CT6ChoiceERKS1_:
 1114|    301|      void conditional_assign(CT::Choice cond, const Self& pt) {
 1115|    301|         GenericField::conditional_assign(m_x, m_y, m_z, cond, pt.x(), pt.y(), pt.z());
 1116|    301|      }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112GenericField18conditional_assignERS2_S3_S3_NS_2CT6ChoiceERKS2_S7_S7_:
  862|   703k|                                     const GenericField& nz) {
  863|   703k|         const W mask = cond.into_bitmask<W>();
  864|       |
  865|  7.03M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (865:28): [True: 6.33M, False: 703k]
  ------------------
  866|  6.33M|            x.m_val[i] = choose(mask, nx.m_val[i], x.m_val[i]);
  867|  6.33M|            y.m_val[i] = choose(mask, ny.m_val[i], y.m_val[i]);
  868|  6.33M|            z.m_val[i] = choose(mask, nz.m_val[i], z.m_val[i]);
  869|  6.33M|         }
  870|   703k|      }
_ZNK5Botan6PCurve22GenericProjectivePoint6negateEv:
 1165|    301|      Self negate() const { return Self(x(), y().negate(), z()); }
_ZNK5Botan6PCurve22GenericProjectivePoint18_const_time_poisonEv:
 1206|    301|      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|    903|      void _const_time_poison() const { CT::poison(m_val); }
pcurves_generic.cpp:_ZNK5Botan6PCurve12_GLOBAL__N_124GenericBlindedScalarBits10get_windowEm:
 1285|  11.4k|      size_t get_window(size_t offset) const {
 1286|  11.4k|         if(m_window_bits == 1) {
  ------------------
  |  Branch (1286:13): [True: 0, False: 11.4k]
  ------------------
 1287|      0|            return read_window_bits<1>(std::span{m_bytes}, offset);
 1288|  11.4k|         } else if(m_window_bits == 2) {
  ------------------
  |  Branch (1288:20): [True: 0, False: 11.4k]
  ------------------
 1289|      0|            return read_window_bits<2>(std::span{m_bytes}, offset);
 1290|  11.4k|         } else if(m_window_bits == 3) {
  ------------------
  |  Branch (1290:20): [True: 0, False: 11.4k]
  ------------------
 1291|      0|            return read_window_bits<3>(std::span{m_bytes}, offset);
 1292|  11.4k|         } else if(m_window_bits == 4) {
  ------------------
  |  Branch (1292:20): [True: 0, False: 11.4k]
  ------------------
 1293|      0|            return read_window_bits<4>(std::span{m_bytes}, offset);
 1294|  11.4k|         } else if(m_window_bits == 5) {
  ------------------
  |  Branch (1294:20): [True: 0, False: 11.4k]
  ------------------
 1295|      0|            return read_window_bits<5>(std::span{m_bytes}, offset);
 1296|  11.4k|         } else if(m_window_bits == 6) {
  ------------------
  |  Branch (1296:20): [True: 0, False: 11.4k]
  ------------------
 1297|      0|            return read_window_bits<6>(std::span{m_bytes}, offset);
 1298|  11.4k|         } else if(m_window_bits == 7) {
  ------------------
  |  Branch (1298:20): [True: 11.4k, False: 0]
  ------------------
 1299|  11.4k|            return read_window_bits<7>(std::span{m_bytes}, offset);
 1300|  11.4k|         } else {
 1301|      0|            BOTAN_ASSERT_UNREACHABLE();
  ------------------
  |  |  163|      0|#define BOTAN_ASSERT_UNREACHABLE() Botan::assert_unreachable(__FILE__, __LINE__)
  ------------------
 1302|      0|         }
 1303|  11.4k|      }
_ZN5Botan6PCurve22GenericProjectivePoint10add_or_subERKS1_RKNS0_18GenericAffinePointENS_2CT6ChoiceE:
 1125|  11.1k|      static Self add_or_sub(const Self& a, const GenericAffinePoint& b, CT::Choice sub) {
 1126|  11.1k|         return point_add_or_sub_mixed<Self, GenericAffinePoint, GenericField>(a, b, sub, GenericField::one(a.curve()));
 1127|  11.1k|      }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112GenericField18conditional_assignENS_2CT6ChoiceERKS2_:
  828|  11.1k|      void conditional_assign(CT::Choice cond, const GenericField& nx) {
  829|  11.1k|         const W mask = cond.into_bitmask<W>();
  830|       |
  831|   111k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (831:28): [True: 100k, False: 11.1k]
  ------------------
  832|   100k|            m_val[i] = choose(mask, nx.m_val[i], m_val[i]);
  833|   100k|         }
  834|  11.1k|      }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_1miERKNS1_12GenericFieldES4_:
  718|  3.36M|      friend GenericField operator-(const GenericField& a, const GenericField& b) { return a + b.negate(); }
pcurves_generic.cpp:_ZNK5Botan6PCurve12_GLOBAL__N_112GenericField7is_zeroEv:
  787|  2.14M|      CT::Choice is_zero() const { return CT::all_zeros(m_val.data(), m_curve->_params().words()).as_choice(); }
_ZNK5Botan6PCurve22GenericProjectivePoint3dblEv:
 1151|   385k|      Self dbl() const {
 1152|   385k|         if(curve()->_params().a_is_minus_3()) {
  ------------------
  |  Branch (1152:13): [True: 97.3k, False: 288k]
  ------------------
 1153|  97.3k|            return dbl_a_minus_3(*this);
 1154|   288k|         } else if(curve()->_params().a_is_zero()) {
  ------------------
  |  Branch (1154:20): [True: 111k, False: 176k]
  ------------------
 1155|   111k|            return dbl_a_zero(*this);
 1156|   176k|         } else {
 1157|   176k|            const auto A = GenericField::curve_a(curve());
 1158|   176k|            return dbl_generic(*this, A);
 1159|   176k|         }
 1160|   385k|      }
_ZNK5Botan6PCurve18GenericCurveParams12a_is_minus_3Ev:
  194|   385k|      bool a_is_minus_3() const { return m_a_is_minus_3; }
pcurves_generic.cpp:_ZNK5Botan6PCurve12_GLOBAL__N_112GenericField4mul3Ev:
  698|   385k|      GenericField mul3() const { return mul2() + (*this); }
pcurves_generic.cpp:_ZNK5Botan6PCurve12_GLOBAL__N_112GenericField4mul4Ev:
  701|   385k|      GenericField mul4() const { return mul2().mul2(); }
pcurves_generic.cpp:_ZNK5Botan6PCurve12_GLOBAL__N_112GenericField4mul2Ev:
  688|  3.08M|      GenericField mul2() const {
  689|  3.08M|         StorageUnit t = value();
  690|  3.08M|         const W carry = shift_left<1>(t);
  691|       |
  692|  3.08M|         StorageUnit r;
  693|  3.08M|         bigint_monty_maybe_sub<N>(r.data(), carry, t.data(), m_curve->_params().field().data());
  694|  3.08M|         return GenericField(m_curve, r);
  695|  3.08M|      }
pcurves_generic.cpp:_ZNK5Botan6PCurve12_GLOBAL__N_112GenericField5valueEv:
  885|  27.3M|      const StorageUnit& value() const { return m_val; }
_ZNK5Botan6PCurve18GenericCurveParams5fieldEv:
  158|  25.0M|      const StorageUnit& field() const { return m_field; }
pcurves_generic.cpp:_ZNK5Botan6PCurve12_GLOBAL__N_112GenericField4mul8Ev:
  704|   385k|      GenericField mul8() const { return mul2().mul2().mul2(); }
_ZNK5Botan6PCurve18GenericCurveParams9a_is_zeroEv:
  196|   288k|      bool a_is_zero() const { return m_a_is_zero; }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112GenericField7curve_aEPKNS0_22GenericPrimeOrderCurveE:
  639|   176k|      static GenericField curve_a(const GenericPrimeOrderCurve* curve) {
  640|   176k|         return GenericField(curve, curve->_params().monty_curve_a());
  641|   176k|      }
_ZNK5Botan6PCurve18GenericCurveParams13monty_curve_aEv:
  186|   176k|      const StorageUnit& monty_curve_a() const { return m_monty_curve_a; }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112GenericField3oneEPKNS0_22GenericPrimeOrderCurveE:
  635|  12.6k|      static GenericField one(const GenericPrimeOrderCurve* curve) {
  636|  12.6k|         return GenericField(curve, curve->_params().field_monty_r1());
  637|  12.6k|      }
_ZNK5Botan6PCurve18GenericCurveParams14field_monty_r1Ev:
  162|  12.6k|      const StorageUnit& field_monty_r1() const { return m_field_monty_r1; }
_ZNK5Botan6PCurve22GenericProjectivePoint5curveEv:
 1204|   861k|      const GenericPrimeOrderCurve* curve() const { return m_x.curve(); }
pcurves_generic.cpp:_ZNK5Botan6PCurve12_GLOBAL__N_112GenericField5curveEv:
  801|   877k|      const GenericPrimeOrderCurve* curve() const { return m_curve; }
_ZN5Botan6PCurve18GenericAffinePoint9ct_selectENSt3__14spanIKS1_Lm18446744073709551615EEEm:
  963|  11.4k|      static auto ct_select(std::span<const GenericAffinePoint> pts, size_t idx) {
  964|  11.4k|         BOTAN_ARG_CHECK(!pts.empty(), "Cannot select from an empty set");
  ------------------
  |  |   35|  11.4k|   do {                                                          \
  |  |   36|  11.4k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  11.4k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 11.4k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  11.4k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 11.4k]
  |  |  ------------------
  ------------------
  965|  11.4k|         auto result = GenericAffinePoint::identity(pts[0].curve());
  966|       |
  967|       |         // Intentionally wrapping; set to maximum size_t if idx == 0
  968|  11.4k|         const size_t idx1 = static_cast<size_t>(idx - 1);
  969|   378k|         for(size_t i = 0; i != pts.size(); ++i) {
  ------------------
  |  Branch (969:28): [True: 367k, False: 11.4k]
  ------------------
  970|   367k|            const auto found = CT::Mask<size_t>::is_equal(idx1, i).as_choice();
  971|   367k|            result.conditional_assign(found, pts[i]);
  972|   367k|         }
  973|       |
  974|  11.4k|         return result;
  975|  11.4k|      }
_ZN5Botan6PCurve18GenericAffinePoint8identityEPKNS0_22GenericPrimeOrderCurveE:
  934|  11.4k|      static GenericAffinePoint identity(const GenericPrimeOrderCurve* curve) {
  935|  11.4k|         return GenericAffinePoint(GenericField::zero(curve), GenericField::zero(curve));
  936|  11.4k|      }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112GenericField4zeroEPKNS0_22GenericPrimeOrderCurveE:
  630|  22.9k|      static GenericField zero(const GenericPrimeOrderCurve* curve) {
  631|  22.9k|         const StorageUnit zeros{};
  632|  22.9k|         return GenericField(curve, zeros);
  633|  22.9k|      }
_ZNK5Botan6PCurve18GenericAffinePoint5curveEv:
 1041|  12.2k|      const GenericPrimeOrderCurve* curve() const { return m_x.curve(); }
_ZN5Botan6PCurve18GenericAffinePoint18conditional_assignENS_2CT6ChoiceERKS1_:
 1037|   367k|      void conditional_assign(CT::Choice cond, const GenericAffinePoint& pt) {
 1038|   367k|         GenericField::conditional_assign(m_x, m_y, cond, pt.x(), pt.y());
 1039|   367k|      }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112GenericField18conditional_assignERS2_S3_NS_2CT6ChoiceERKS2_S7_:
  842|   367k|         GenericField& x, GenericField& y, CT::Choice cond, const GenericField& nx, const GenericField& ny) {
  843|   367k|         const W mask = cond.into_bitmask<W>();
  844|       |
  845|  3.67M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (845:28): [True: 3.30M, False: 367k]
  ------------------
  846|  3.30M|            x.m_val[i] = choose(mask, nx.m_val[i], x.m_val[i]);
  847|  3.30M|            y.m_val[i] = choose(mask, ny.m_val[i], y.m_val[i]);
  848|  3.30M|         }
  849|   367k|      }
_ZN5Botan6PCurve22GenericProjectivePoint13randomize_repERNS_21RandomNumberGeneratorE:
 1173|  1.20k|      void randomize_rep(RandomNumberGenerator& rng) {
 1174|       |         // In certain contexts we may be called with a Null_RNG; in that case the
 1175|       |         // caller is accepting that randomization will not occur
 1176|       |
 1177|  1.20k|         if(rng.is_seeded()) {
  ------------------
  |  Branch (1177:13): [True: 0, False: 1.20k]
  ------------------
 1178|      0|            auto r = GenericField::random(curve(), rng);
 1179|       |
 1180|      0|            auto r2 = r.square();
 1181|      0|            auto r3 = r2 * r;
 1182|       |
 1183|      0|            m_x *= r2;
 1184|      0|            m_y *= r3;
 1185|      0|            m_z *= r;
 1186|      0|         }
 1187|  1.20k|      }
_ZNK5Botan6PCurve18GenericCurveParams10field_bitsEv:
  150|    761|      size_t field_bits() const { return m_field_bits; }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112GenericFieldmLERKS2_:
  728|  43.8k|      GenericField& operator*=(const GenericField& other) {
  729|  43.8k|         const auto* curve = check_curve(*this, other);
  730|       |
  731|  43.8k|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  732|  43.8k|         curve->_params().mul(z, value(), other.value());
  733|  43.8k|         m_val = redc(curve, z);
  734|  43.8k|         return (*this);
  735|  43.8k|      }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112GenericField11check_curveERKS2_S4_:
  889|  14.3M|      static const GenericPrimeOrderCurve* check_curve(const GenericField& a, const GenericField& b) {
  890|  14.3M|         BOTAN_STATE_CHECK(a.m_curve == b.m_curve);
  ------------------
  |  |   51|  14.3M|   do {                                                         \
  |  |   52|  14.3M|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|  14.3M|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 14.3M]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|  14.3M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 14.3M]
  |  |  ------------------
  ------------------
  891|  14.3M|         return a.m_curve;
  892|  14.3M|      }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112GenericField4redcEPKNS0_22GenericPrimeOrderCurveENSt3__15arrayImLm18EEE:
  894|  14.2M|      static StorageUnit redc(const GenericPrimeOrderCurve* curve, std::array<W, 2 * N> z) {
  895|  14.2M|         const auto& mod = curve->_params().field();
  896|  14.2M|         const size_t words = curve->_params().words();
  897|  14.2M|         StorageUnit r{};
  898|  14.2M|         StorageUnit ws{};
  899|  14.2M|         bigint_monty_redc(
  900|  14.2M|            r.data(), z.data(), mod.data(), words, curve->_params().field_p_dash(), ws.data(), ws.size());
  901|  14.2M|         return r;
  902|  14.2M|      }
_ZNK5Botan6PCurve18GenericCurveParams12field_p_dashEv:
  170|  14.2M|      word field_p_dash() const { return m_field_p_dash; }
_ZNK5Botan6PCurve22GenericProjectivePoint20_const_time_unpoisonEv:
 1208|    301|      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|    903|      void _const_time_unpoison() const { CT::unpoison(m_val); }
_ZNK5Botan6PCurve22GenericProjectivePoint11is_identityEv:
 1112|  1.41M|      CT::Choice is_identity() const { return z().is_zero(); }
pcurves_generic.cpp:_ZNK5Botan6PCurve12_GLOBAL__N_112GenericField6invertEv:
  759|    761|      GenericField invert() const { return pow_vartime(m_curve->_params().field_minus_2()); }
pcurves_generic.cpp:_ZNK5Botan6PCurve12_GLOBAL__N_112GenericField11pow_vartimeERKNSt3__15arrayImLm9EEE:
  743|    761|      GenericField pow_vartime(const StorageUnit& exp) const {
  744|    761|         auto one = GenericField::one(curve());
  745|    761|         auto bits = curve()->_params().field_bits();
  746|    761|         auto words = curve()->_params().words();
  747|    761|         return impl_pow_vartime(*this, one, bits, std::span{exp}.last(words));
  748|    761|      }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_116impl_pow_vartimeINS1_12GenericFieldEEET_RKS4_S6_mNSt3__14spanIKmLm18446744073709551615EEE:
   56|    761|T impl_pow_vartime(const T& elem, const T& one, size_t bits, std::span<const word> exp) {
   57|    761|   constexpr size_t WindowBits = 4;
   58|    761|   constexpr size_t WindowElements = (1 << WindowBits) - 1;
   59|       |
   60|    761|   const size_t Windows = (bits + WindowBits - 1) / WindowBits;
   61|       |
   62|    761|   std::vector<T> tbl;
   63|    761|   tbl.reserve(WindowElements);
   64|       |
   65|    761|   tbl.push_back(elem);
   66|       |
   67|  11.4k|   for(size_t i = 1; i != WindowElements; ++i) {
  ------------------
  |  Branch (67:22): [True: 10.6k, False: 761]
  ------------------
   68|  10.6k|      if(i % 2 == 1) {
  ------------------
  |  Branch (68:10): [True: 5.32k, False: 5.32k]
  ------------------
   69|  5.32k|         tbl.push_back(tbl[i / 2].square());
   70|  5.32k|      } else {
   71|  5.32k|         tbl.push_back(tbl[i - 1] * tbl[0]);
   72|  5.32k|      }
   73|  10.6k|   }
   74|       |
   75|    761|   auto r = one;
   76|       |
   77|    761|   const size_t w0 = read_window_bits<WindowBits>(exp, (Windows - 1) * WindowBits);
   78|       |
   79|    761|   if(w0 > 0) {
  ------------------
  |  Branch (79:7): [True: 761, False: 0]
  ------------------
   80|    761|      r = tbl[w0 - 1];
   81|    761|   }
   82|       |
   83|  46.6k|   for(size_t i = 1; i != Windows; ++i) {
  ------------------
  |  Branch (83:22): [True: 45.8k, False: 761]
  ------------------
   84|   229k|      for(size_t j = 0; j != WindowBits; ++j) {
  ------------------
  |  Branch (84:25): [True: 183k, False: 45.8k]
  ------------------
   85|   183k|         r = r.square();
   86|   183k|      }
   87|  45.8k|      const size_t w = read_window_bits<WindowBits>(exp, (Windows - i - 1) * WindowBits);
   88|       |
   89|  45.8k|      if(w > 0) {
  ------------------
  |  Branch (89:10): [True: 43.8k, False: 2.02k]
  ------------------
   90|  43.8k|         r *= tbl[w - 1];
   91|  43.8k|      }
   92|  45.8k|   }
   93|       |
   94|    761|   return r;
   95|    761|}
_ZNK5Botan6PCurve18GenericCurveParams13field_minus_2Ev:
  160|    761|      const StorageUnit& field_minus_2() const { return m_field_minus_2; }
_ZN5Botan6PCurveplERKNS0_22GenericProjectivePointES3_:
 1096|   340k|      friend Self operator+(const Self& a, const Self& b) { return Self::add(a, b); }
_ZN5Botan6PCurve22GenericProjectivePoint3addERKS1_S3_:
 1132|   340k|      static Self add(const Self& a, const Self& b) { return point_add<Self, GenericField>(a, b); }
pcurves_generic.cpp:_ZNK5Botan6PCurve22GenericProjectivePoint1zEv:
 1202|  6.29M|      const GenericField& z() const { return m_z; }
pcurves_generic.cpp:_ZNK5Botan6PCurve12_GLOBAL__N_112GenericField6squareEv:
  737|  4.20M|      GenericField square() const {
  738|  4.20M|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  739|  4.20M|         m_curve->_params().sqr(z, value());
  740|  4.20M|         return GenericField(m_curve, redc(m_curve, z));
  741|  4.20M|      }
_ZNK5Botan6PCurve18GenericCurveParams3sqrERNSt3__15arrayImLm18EEERKNS3_ImLm9EEE:
  216|  4.20M|      void sqr(std::array<word, 2 * N>& z, const std::array<word, N>& x) const {
  217|  4.20M|         clear_mem(z);
  218|       |
  219|  4.20M|         if(m_words == 4) {
  ------------------
  |  Branch (219:13): [True: 1.46M, False: 2.74M]
  ------------------
  220|  1.46M|            bigint_comba_sqr4(z.data(), x.data());
  221|  2.74M|         } else if(m_words == 6) {
  ------------------
  |  Branch (221:20): [True: 0, False: 2.74M]
  ------------------
  222|      0|            bigint_comba_sqr6(z.data(), x.data());
  223|  2.74M|         } else if(m_words == 8) {
  ------------------
  |  Branch (223:20): [True: 0, False: 2.74M]
  ------------------
  224|      0|            bigint_comba_sqr8(z.data(), x.data());
  225|  2.74M|         } else if(m_words == 9) {
  ------------------
  |  Branch (225:20): [True: 850k, False: 1.89M]
  ------------------
  226|   850k|            bigint_comba_sqr9(z.data(), x.data());
  227|  1.89M|         } else {
  228|  1.89M|            bigint_sqr(z.data(), z.size(), x.data(), m_words, m_words, nullptr, 0);
  229|  1.89M|         }
  230|  4.20M|      }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112GenericField11deserializeEPKNS0_22GenericPrimeOrderCurveENSt3__14spanIKhLm18446744073709551615EEE:
  605|    260|                                                     std::span<const uint8_t> bytes) {
  606|    260|         const size_t len = curve->_params().field_bytes();
  607|       |
  608|    260|         if(bytes.size() != len) {
  ------------------
  |  Branch (608:13): [True: 0, False: 260]
  ------------------
  609|      0|            return {};
  610|      0|         }
  611|       |
  612|    260|         const auto words = bytes_to_words<N>(bytes);
  613|       |
  614|    260|         if(words) {
  ------------------
  |  Branch (614:13): [True: 260, False: 0]
  ------------------
  615|    260|            if(!bigint_ct_is_lt(words->data(), N, curve->_params().field().data(), N).as_bool()) {
  ------------------
  |  Branch (615:16): [True: 28, False: 232]
  ------------------
  616|     28|               return {};
  617|     28|            }
  618|       |
  619|       |            // Safe because we checked above that words is an integer < P
  620|    232|            return GenericField::from_words(curve, *words);
  621|    260|         } else {
  622|      0|            return {};
  623|      0|         }
  624|    260|      }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_114bytes_to_wordsILm9EEENSt3__18optionalINS3_5arrayImXT_EEEEENS3_4spanIKhLm18446744073709551615EEE:
   28|    708|constexpr std::optional<std::array<word, N>> bytes_to_words(std::span<const uint8_t> bytes) {
   29|    708|   if(bytes.size() > WordInfo<word>::bytes * N) {
  ------------------
  |  Branch (29:7): [True: 0, False: 708]
  ------------------
   30|      0|      return std::nullopt;
   31|      0|   }
   32|       |
   33|    708|   std::array<word, N> r{};
   34|       |
   35|    708|   const size_t full_words = bytes.size() / WordInfo<word>::bytes;
   36|    708|   const size_t extra_bytes = bytes.size() % WordInfo<word>::bytes;
   37|       |
   38|  3.65k|   for(size_t i = 0; i != full_words; ++i) {
  ------------------
  |  Branch (38:22): [True: 2.95k, False: 708]
  ------------------
   39|  2.95k|      r[i] = load_be<word>(bytes.data(), full_words - 1 - i);
   40|  2.95k|   }
   41|       |
   42|    708|   if(extra_bytes > 0) {
  ------------------
  |  Branch (42:7): [True: 467, False: 241]
  ------------------
   43|    467|      const size_t shift = extra_bytes * 8;
   44|    467|      bigint_shl1(r.data(), r.size(), r.size(), shift);
   45|       |
   46|  2.05k|      for(size_t i = 0; i != extra_bytes; ++i) {
  ------------------
  |  Branch (46:25): [True: 1.58k, False: 467]
  ------------------
   47|  1.58k|         const word b0 = bytes[WordInfo<word>::bytes * full_words + i];
   48|  1.58k|         r[0] |= (b0 << (8 * (extra_bytes - 1 - i)));
   49|  1.58k|      }
   50|    467|   }
   51|       |
   52|    708|   return r;
   53|    708|}
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_1mlERKNS1_12GenericFieldES4_:
  720|  9.96M|      friend GenericField operator*(const GenericField& a, const GenericField& b) {
  721|  9.96M|         const auto* curve = check_curve(a, b);
  722|       |
  723|  9.96M|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  724|  9.96M|         curve->_params().mul(z, a.value(), b.value());
  725|  9.96M|         return GenericField(curve, redc(curve, z));
  726|  9.96M|      }
pcurves_generic.cpp:_ZNK5Botan6PCurve12_GLOBAL__N_112GenericFieldeqERKS2_:
  791|    407|      CT::Choice operator==(const GenericField& other) const {
  792|    407|         if(this->m_curve != other.m_curve) {
  ------------------
  |  Branch (792:13): [True: 0, False: 407]
  ------------------
  793|      0|            return CT::Choice::no();
  794|      0|         }
  795|       |
  796|    407|         return CT::is_equal(m_val.data(), other.m_val.data(), m_curve->_params().words()).as_choice();
  797|    407|      }
pcurves_generic.cpp:_ZNK5Botan6PCurve22GenericProjectivePoint1xEv:
 1192|  2.99M|      const GenericField& x() const { return m_x; }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112GenericField10from_wordsEPKNS0_22GenericPrimeOrderCurveERKNSt3__15arrayImLm9EEE:
  626|    232|      static GenericField from_words(const GenericPrimeOrderCurve* curve, const std::array<word, N>& words) {
  627|    232|         return GenericField(curve, to_rep(curve, words));
  628|    232|      }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112GenericField6to_repEPKNS0_22GenericPrimeOrderCurveENSt3__15arrayImLm9EEE:
  910|    232|      static StorageUnit to_rep(const GenericPrimeOrderCurve* curve, StorageUnit x) {
  911|    232|         std::array<W, 2 * N> z{};
  912|    232|         curve->_params().mul(z, x, curve->_params().field_monty_r2());
  913|    232|         return redc(curve, z);
  914|    232|      }
_ZNK5Botan6PCurve18GenericCurveParams14field_monty_r2Ev:
  164|    232|      const StorageUnit& field_monty_r2() const { return m_field_monty_r2; }
_ZNK5Botan6PCurve18GenericCurveParams5orderEv:
  172|  1.63k|      const StorageUnit& order() const { return m_order; }
pcurves_generic.cpp:_ZNK5Botan6PCurve12_GLOBAL__N_112GenericField6negateEv:
  750|  3.37M|      GenericField negate() const {
  751|  3.37M|         auto x_is_zero = CT::all_zeros(this->data(), N);
  752|       |
  753|  3.37M|         StorageUnit r;
  754|  3.37M|         bigint_sub3(r.data(), m_curve->_params().field().data(), N, this->data(), N);
  755|  3.37M|         x_is_zero.if_set_zero_out(r.data(), N);
  756|  3.37M|         return GenericField(m_curve, r);
  757|  3.37M|      }
pcurves_generic.cpp:_ZNK5Botan6PCurve12_GLOBAL__N_112GenericField4dataEv:
  887|  15.5M|      const W* data() const { return m_val.data(); }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112GenericField8from_repEPKNS0_22GenericPrimeOrderCurveENSt3__15arrayImLm9EEE:
  904|    604|      static StorageUnit from_rep(const GenericPrimeOrderCurve* curve, StorageUnit z) {
  905|    604|         std::array<W, 2 * N> ze{};
  906|    604|         copy_mem(std::span{ze}.template first<N>(), z);
  907|    604|         return redc(curve, ze);
  908|    604|      }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_1plERKNS1_12GenericFieldES4_:
  706|  4.37M|      friend GenericField operator+(const GenericField& a, const GenericField& b) {
  707|  4.37M|         const auto* curve = check_curve(a, b);
  708|  4.37M|         const size_t words = curve->_params().words();
  709|       |
  710|  4.37M|         StorageUnit t{};
  711|  4.37M|         const W carry = bigint_add3(t.data(), a.data(), words, b.data(), words);
  712|       |
  713|  4.37M|         StorageUnit r{};
  714|  4.37M|         bigint_monty_maybe_sub(words, r.data(), carry, t.data(), curve->_params().field().data());
  715|  4.37M|         return GenericField(curve, r);
  716|  4.37M|      }
_ZNK5Botan6PCurve18GenericCurveParams6base_xEv:
  190|    460|      const StorageUnit& base_x() const { return m_base_x; }
_ZNK5Botan6PCurve18GenericCurveParams6base_yEv:
  192|    460|      const StorageUnit& base_y() const { return m_base_y; }
pcurves_generic.cpp:_ZNK5Botan6PCurve18GenericAffinePoint1yEv:
 1032|   392k|      const GenericField& y() const { return m_y; }
pcurves_generic.cpp:_ZN5Botan6PCurve18GenericAffinePoint7x3_ax_bERKNS0_12_GLOBAL__N_112GenericFieldE:
  980|    407|      static GenericField x3_ax_b(const GenericField& x) {
  981|    407|         return (x.square() + GenericField::curve_a(x.curve())) * x + GenericField::curve_b(x.curve());
  982|    407|      }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112GenericField7curve_bEPKNS0_22GenericPrimeOrderCurveE:
  643|    407|      static GenericField curve_b(const GenericPrimeOrderCurve* curve) {
  644|    407|         return GenericField(curve, curve->_params().monty_curve_b());
  645|    407|      }
_ZNK5Botan6PCurve18GenericCurveParams13monty_curve_bEv:
  188|    407|      const StorageUnit& monty_curve_b() const { return m_monty_curve_b; }
pcurves_generic.cpp:_ZNK5Botan6PCurve18GenericAffinePoint1xEv:
 1027|   404k|      const GenericField& x() const { return m_x; }
_ZNK5Botan6PCurve18GenericAffinePoint11is_identityEv:
  940|  12.8k|      CT::Choice is_identity() const { return x().is_zero() && y().is_zero(); }
_ZN5Botan6PCurve22GenericProjectivePoint11from_affineERKNS0_18GenericAffinePointE:
 1061|    761|      static Self from_affine(const GenericAffinePoint& pt) {
 1062|    761|         auto x = pt.x();
 1063|    761|         auto y = pt.y();
 1064|    761|         auto z = GenericField::one(x.curve());
 1065|       |
 1066|       |         // If pt is identity (0,0) swap y/z to convert (0,0,1) into (0,1,0)
 1067|    761|         GenericField::conditional_swap(pt.is_identity(), y, z);
 1068|    761|         return GenericProjectivePoint(x, y, z);
 1069|    761|      }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112GenericField16conditional_swapENS_2CT6ChoiceERS2_S5_:
  817|    761|      static void conditional_swap(CT::Choice cond, GenericField& x, GenericField& y) {
  818|    761|         const W mask = cond.into_bitmask<W>();
  819|       |
  820|  7.61k|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (820:28): [True: 6.84k, False: 761]
  ------------------
  821|  6.84k|            auto nx = choose(mask, y.m_val[i], x.m_val[i]);
  822|  6.84k|            auto ny = choose(mask, x.m_val[i], y.m_val[i]);
  823|  6.84k|            x.m_val[i] = nx;
  824|  6.84k|            y.m_val[i] = ny;
  825|  6.84k|         }
  826|    761|      }
_ZNK5Botan6PCurve18GenericAffinePoint12serialize_toENSt3__14spanIhLm18446744073709551615EEE:
  947|    302|      void serialize_to(std::span<uint8_t> bytes) const {
  948|    302|         const size_t fe_bytes = curve()->_params().field_bytes();
  949|    302|         BOTAN_ARG_CHECK(bytes.size() == 1 + 2 * fe_bytes, "Buffer size incorrect");
  ------------------
  |  |   35|    302|   do {                                                          \
  |  |   36|    302|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    302|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 302]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    302|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 302]
  |  |  ------------------
  ------------------
  950|    302|         BOTAN_STATE_CHECK(this->is_identity().as_bool() == false);
  ------------------
  |  |   51|    302|   do {                                                         \
  |  |   52|    302|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    302|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 302]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    302|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 302]
  |  |  ------------------
  ------------------
  951|    302|         BufferStuffer pack(bytes);
  952|    302|         pack.append(0x04);
  953|    302|         x().serialize_to(pack.next(fe_bytes));
  954|    302|         y().serialize_to(pack.next(fe_bytes));
  955|    302|         BOTAN_DEBUG_ASSERT(pack.full());
  ------------------
  |  |  130|    302|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    302|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 302]
  |  |  ------------------
  ------------------
  956|    302|      }
pcurves_generic.cpp:_ZNK5Botan6PCurve12_GLOBAL__N_112GenericField12serialize_toENSt3__14spanIhLm18446744073709551615EEE:
  774|    604|      void serialize_to(std::span<uint8_t> bytes) const {
  775|    604|         auto v = from_rep(m_curve, m_val);
  776|    604|         std::reverse(v.begin(), v.end());
  777|       |
  778|    604|         const size_t flen = m_curve->_params().field_bytes();
  779|    604|         BOTAN_ARG_CHECK(bytes.size() == flen, "Expected output span provided");
  ------------------
  |  |   35|    604|   do {                                                          \
  |  |   36|    604|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    604|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 604]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    604|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 604]
  |  |  ------------------
  ------------------
  780|       |
  781|       |         // Remove leading zero bytes
  782|    604|         const auto padded_bytes = store_be(v);
  783|    604|         const size_t extra = N * WordInfo<W>::bytes - flen;
  784|    604|         copy_mem(bytes, std::span{padded_bytes}.subspan(extra, flen));
  785|    604|      }
_ZNK5Botan6PCurve13GenericScalar12serialize_toENSt3__14spanIhLm18446744073709551615EEE:
  517|    744|      void serialize_to(std::span<uint8_t> bytes) const {
  518|    744|         auto v = from_rep(m_curve, m_val);
  519|    744|         std::reverse(v.begin(), v.end());
  520|       |
  521|    744|         const size_t flen = m_curve->_params().order_bytes();
  522|    744|         BOTAN_ARG_CHECK(bytes.size() == flen, "Expected output span provided");
  ------------------
  |  |   35|    744|   do {                                                          \
  |  |   36|    744|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|    744|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 744]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|    744|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 744]
  |  |  ------------------
  ------------------
  523|       |
  524|       |         // Remove leading zero bytes
  525|    744|         const auto padded_bytes = store_be(v);
  526|    744|         const size_t extra = N * WordInfo<W>::bytes - flen;
  527|    744|         copy_mem(bytes, std::span{padded_bytes}.subspan(extra, flen));
  528|    744|      }
_ZN5Botan6PCurve13GenericScalar11deserializeEPKNS0_22GenericPrimeOrderCurveENSt3__14spanIKhLm18446744073709551615EEE:
  312|    448|                                                      std::span<const uint8_t> bytes) {
  313|    448|         const size_t len = curve->_params().order_bytes();
  314|       |
  315|    448|         if(bytes.size() != len) {
  ------------------
  |  Branch (315:13): [True: 0, False: 448]
  ------------------
  316|      0|            return {};
  317|      0|         }
  318|       |
  319|    448|         const auto words = bytes_to_words<N>(bytes);
  320|       |
  321|    448|         if(words) {
  ------------------
  |  Branch (321:13): [True: 448, False: 0]
  ------------------
  322|    448|            if(!bigint_ct_is_lt(words->data(), N, curve->_params().order().data(), N).as_bool()) {
  ------------------
  |  Branch (322:16): [True: 4, False: 444]
  ------------------
  323|      4|               return {};
  324|      4|            }
  325|       |
  326|       |            // Safe because we checked above that words is an integer < P
  327|    444|            return GenericScalar(curve, to_rep(curve, *words));
  328|    448|         } else {
  329|      0|            return {};
  330|      0|         }
  331|    448|      }
_ZN5Botan6PCurve13GenericScalar6to_repEPKNS0_22GenericPrimeOrderCurveENSt3__15arrayImLm9EEE:
  579|    444|      static StorageUnit to_rep(const GenericPrimeOrderCurve* curve, StorageUnit x) {
  580|    444|         std::array<W, 2 * N> z;  // NOLINT(*-member-init)
  581|    444|         curve->_params().mul(z, x, curve->_params().order_monty_r2());
  582|    444|         return redc(curve, z);
  583|    444|      }
_ZNK5Botan6PCurve18GenericCurveParams14order_monty_r2Ev:
  178|    444|      const StorageUnit& order_monty_r2() const { return m_order_monty_r2; }
_ZNK5Botan6PCurve13GenericScalar10is_nonzeroEv:
  532|    444|      CT::Choice is_nonzero() const { return !is_zero(); }
_ZN5Botan6PCurve18GenericAffinePoint11deserializeEPKNS0_22GenericPrimeOrderCurveENSt3__14spanIKhLm18446744073709551615EEE:
  990|    142|                                                           std::span<const uint8_t> bytes) {
  991|    142|         const size_t fe_bytes = curve->_params().field_bytes();
  992|       |
  993|    142|         if(bytes.size() == 1 + 2 * fe_bytes && bytes[0] == 0x04) {
  ------------------
  |  Branch (993:13): [True: 137, False: 5]
  |  Branch (993:49): [True: 130, False: 7]
  ------------------
  994|    130|            auto x = GenericField::deserialize(curve, bytes.subspan(1, fe_bytes));
  995|    130|            auto y = GenericField::deserialize(curve, bytes.subspan(1 + fe_bytes, fe_bytes));
  996|       |
  997|    130|            if(x && y) {
  ------------------
  |  Branch (997:16): [True: 120, False: 10]
  |  Branch (997:21): [True: 106, False: 14]
  ------------------
  998|    106|               const auto lhs = (*y).square();
  999|    106|               const auto rhs = GenericAffinePoint::x3_ax_b(*x);
 1000|    106|               if((lhs == rhs).as_bool()) {
  ------------------
  |  Branch (1000:19): [True: 1, False: 105]
  ------------------
 1001|      1|                  return GenericAffinePoint(*x, *y);
 1002|      1|               }
 1003|    106|            }
 1004|    130|         } else if(bytes.size() == 1 + fe_bytes && (bytes[0] == 0x02 || bytes[0] == 0x03)) {
  ------------------
  |  Branch (1004:20): [True: 0, False: 12]
  |  Branch (1004:53): [True: 0, False: 0]
  |  Branch (1004:73): [True: 0, False: 0]
  ------------------
 1005|      0|            const CT::Choice y_is_even = CT::Mask<uint8_t>::is_equal(bytes[0], 0x02).as_choice();
 1006|       |
 1007|      0|            if(auto x = GenericField::deserialize(curve, bytes.subspan(1, fe_bytes))) {
  ------------------
  |  Branch (1007:21): [True: 0, False: 0]
  ------------------
 1008|      0|               auto [y, is_square] = x3_ax_b(*x).sqrt();
 1009|       |
 1010|      0|               if(is_square.as_bool()) {
  ------------------
  |  Branch (1010:19): [True: 0, False: 0]
  ------------------
 1011|      0|                  const auto flip_y = y_is_even != y.is_even();
 1012|      0|                  y.conditional_assign(flip_y, y.negate());
 1013|      0|                  return GenericAffinePoint(*x, y);
 1014|      0|               }
 1015|      0|            }
 1016|     12|         } else if(bytes.size() == 1 && bytes[0] == 0x00) {
  ------------------
  |  Branch (1016:20): [True: 0, False: 12]
  |  Branch (1016:41): [True: 0, False: 0]
  ------------------
 1017|       |            // See SEC1 section 2.3.4
 1018|      0|            return GenericAffinePoint::identity(curve);
 1019|      0|         }
 1020|       |
 1021|    141|         return {};
 1022|    142|      }
_ZNK5Botan6PCurve13GenericScalar7is_zeroEv:
  530|    887|      CT::Choice is_zero() const { return CT::all_zeros(m_val.data(), m_curve->_params().words()).as_choice(); }
_ZNK5Botan6PCurve13GenericScalar11stash_valueEv:
  547|    443|      const StorageUnit& stash_value() const { return m_val; }
_ZN5Botan6PCurve13GenericScalarC2EPKNS0_22GenericPrimeOrderCurveENSt3__15arrayImLm9EEE:
  551|  1.63k|      GenericScalar(const GenericPrimeOrderCurve* curve, StorageUnit val) : m_curve(curve), m_val(val) {}
pcurves_generic.cpp:_ZNK5Botan6PCurve12_GLOBAL__N_112GenericField11stash_valueEv:
  799|  1.50k|      const StorageUnit& stash_value() const { return m_val; }
pcurves_generic.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112GenericFieldC2EPKNS0_22GenericPrimeOrderCurveENSt3__15arrayImLm9EEE:
  882|  25.2M|      GenericField(const GenericPrimeOrderCurve* curve, StorageUnit val) : m_curve(curve), m_val(val) {}
pcurves_generic.cpp:_ZN5Botan6PCurve18GenericAffinePointC2ERKNS0_12_GLOBAL__N_112GenericFieldES5_:
  929|   738k|      GenericAffinePoint(const GenericField& x, const GenericField& y) : m_x(x), m_y(y) {}
pcurves_generic.cpp:_ZNK5Botan6PCurve22GenericProjectivePoint1yEv:
 1197|  2.89M|      const GenericField& y() const { return m_y; }
pcurves_generic.cpp:_ZN5Botan6PCurve22GenericProjectivePointC2ERKNS0_12_GLOBAL__N_112GenericFieldES5_S5_:
 1094|   738k|            m_x(x), m_y(y), m_z(z) {}
_ZNK5Botan6PCurve13GenericScalar9serializeITkNS_8concepts21resizable_byte_bufferENSt3__16vectorIhNS4_9allocatorIhEEEEEET_v:
  511|    301|      T serialize() const {
  512|    301|         T bytes(m_curve->_params().order_bytes());
  513|    301|         this->serialize_to(bytes);
  514|    301|         return bytes;
  515|    301|      }
_ZN5Botan6PCurve18GenericCurveParamsC2ERKNS_6BigIntES4_S4_S4_S4_S4_:
  110|    460|            m_words(p.sig_words()),
  111|    460|            m_order_bits(order.bits()),
  112|    460|            m_order_bytes(order.bytes()),
  113|    460|            m_field_bits(p.bits()),
  114|    460|            m_field_bytes(p.bytes()),
  115|    460|            m_monty_order(order),
  116|    460|            m_monty_field(p),
  117|    460|            m_field(bn_to_fixed(p)),
  118|    460|            m_field_minus_2(bn_to_fixed_rev(p - 2)),
  119|    460|            m_field_monty_r1(bn_to_fixed(m_monty_field.R1())),
  120|    460|            m_field_monty_r2(bn_to_fixed(m_monty_field.R2())),
  121|    460|            m_field_p_plus_1_over_4(bn_to_fixed_rev((p + 1) / 4)),
  122|    460|            m_field_inv_2(bn_to_fixed((p / 2) + 1)),
  123|    460|            m_field_p_dash(m_monty_field.p_dash()),
  124|       |
  125|    460|            m_order(bn_to_fixed(order)),
  126|    460|            m_order_minus_2(bn_to_fixed_rev(order - 2)),
  127|    460|            m_order_monty_r1(bn_to_fixed(m_monty_order.R1())),
  128|    460|            m_order_monty_r2(bn_to_fixed(m_monty_order.R2())),
  129|    460|            m_order_monty_r3(bn_to_fixed(m_monty_order.R3())),
  130|    460|            m_order_inv_2(bn_to_fixed((order / 2) + 1)),
  131|    460|            m_order_p_dash(m_monty_order.p_dash()),
  132|       |
  133|    460|            m_a_is_minus_3(a + 3 == p),
  134|    460|            m_a_is_zero(a.is_zero()),
  135|    460|            m_order_is_lt_field(order < p) {
  136|    460|         secure_vector<word> ws;
  137|    460|         m_monty_curve_a = bn_to_fixed(m_monty_field.mul(a, m_monty_field.R2(), ws));
  138|    460|         m_monty_curve_b = bn_to_fixed(m_monty_field.mul(b, m_monty_field.R2(), ws));
  139|       |
  140|    460|         m_base_x = bn_to_fixed(m_monty_field.mul(base_x, m_monty_field.R2(), ws));
  141|    460|         m_base_y = bn_to_fixed(m_monty_field.mul(base_y, m_monty_field.R2(), ws));
  142|    460|      }
_ZN5Botan6PCurve18GenericCurveParams11bn_to_fixedERKNS_6BigIntE:
  233|  7.36k|      static std::array<word, PrimeOrderCurve::StorageWords> bn_to_fixed(const BigInt& n) {
  234|  7.36k|         const size_t n_words = n.sig_words();
  235|  7.36k|         BOTAN_ASSERT_NOMSG(n_words <= PrimeOrderCurve::StorageWords);
  ------------------
  |  |   77|  7.36k|   do {                                                                     \
  |  |   78|  7.36k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|  7.36k|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 7.36k]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|  7.36k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 7.36k]
  |  |  ------------------
  ------------------
  236|       |
  237|  7.36k|         std::array<word, PrimeOrderCurve::StorageWords> r{};
  238|  7.36k|         copy_mem(std::span{r}.first(n_words), n._as_span().first(n_words));
  239|  7.36k|         return r;
  240|  7.36k|      }
_ZN5Botan6PCurve18GenericCurveParams15bn_to_fixed_revERKNS_6BigIntE:
  242|  1.38k|      static std::array<word, PrimeOrderCurve::StorageWords> bn_to_fixed_rev(const BigInt& n) {
  243|  1.38k|         auto v = bn_to_fixed(n);
  244|  1.38k|         std::reverse(v.begin(), v.end());
  245|  1.38k|         return v;
  246|  1.38k|      }
_ZN5Botan6PCurve19GenericBaseMulTableC2ERKNS0_18GenericAffinePointE:
 1338|    460|            m_table(basemul_booth_setup<GenericCurve, WindowBits>(pt, blinded_scalar_bits(*pt.curve()) + 1)) {}
pcurves_generic.cpp:_ZNK5Botan6PCurve12_GLOBAL__N_112GenericField14invert_vartimeEv:
  761|    460|      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|    460|         return invert();
  765|    460|      }
_ZN5Botan6PCurve19GenericBaseMulTable19blinded_scalar_bitsERKNS0_22GenericPrimeOrderCurveE:
 1347|    460|      static size_t blinded_scalar_bits(const GenericPrimeOrderCurve& curve) {
 1348|    460|         const size_t order_bits = curve.order_bits();
 1349|    460|         return order_bits + scalar_blinding_bits(order_bits);
 1350|    460|      }

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

_ZN5Botan6PCurve14PCurveInstance9secp256k1Ev:
  233|    195|std::shared_ptr<const PrimeOrderCurve> PCurveInstance::secp256k1() {
  234|    195|   return PrimeOrderCurveImpl<secp256k1::Curve>::instance();
  235|    195|}
pcurves_secp256k1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS2_6ParamsES3_E11FieldParamsEE3oneEv:
   28|  7.61k|      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|   159k|      constexpr static std::array<W, N> redc(const std::array<W, 2 * N>& z) {
   31|   159k|         return redc_crandall<W, N, C>(std::span{z});
   32|   159k|      }
pcurves_secp256k1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_19secp256k15Curve10fe_invert2ERKNS_6IntModINS2_12Secp256k1RepINS_13EllipticCurveINS2_6ParamsES5_E11FieldParamsEEEEE:
   60|    177|      static constexpr FieldElement fe_invert2(const FieldElement& x) {
   61|    177|         auto z = x.square();
   62|    177|         z *= x;
   63|    177|         auto t0 = z;
   64|    177|         t0.square_n(2);
   65|    177|         t0 *= z;
   66|    177|         auto t1 = t0.square();
   67|    177|         auto t2 = t1 * x;
   68|    177|         t1 = t2;
   69|    177|         t1.square_n(2);
   70|    177|         t1 *= z;
   71|    177|         auto t3 = t1;
   72|    177|         t3.square_n(4);
   73|    177|         t0 *= t3;
   74|    177|         t3 = t0;
   75|    177|         t3.square_n(11);
   76|    177|         t0 *= t3;
   77|    177|         t3 = t0;
   78|    177|         t3.square_n(5);
   79|    177|         t2 *= t3;
   80|    177|         t3 = t2;
   81|    177|         t3.square_n(27);
   82|    177|         t2 *= t3;
   83|    177|         t3 = t2;
   84|    177|         t3.square_n(54);
   85|    177|         t2 *= t3;
   86|    177|         t3 = t2;
   87|    177|         t3.square_n(108);
   88|    177|         t2 *= t3;
   89|    177|         t2.square_n(7);
   90|    177|         t1 *= t2;
   91|    177|         t1.square_n(23);
   92|    177|         t0 *= t1;
   93|    177|         t0.square_n(5);
   94|    177|         t0 *= x;
   95|    177|         t0.square_n(3);
   96|    177|         z *= t0;
   97|    177|         z.square_n(2);
   98|    177|         return z;
   99|    177|      }
pcurves_secp256k1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_19secp256k112Secp256k1RepINS_13EllipticCurveINS2_6ParamsES3_E11FieldParamsEE8from_repERKNSt3__15arrayImLm4EEE:
   38|    355|      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|    119|std::shared_ptr<const PrimeOrderCurve> PCurveInstance::secp256r1() {
  269|    119|   return PrimeOrderCurveImpl<secp256r1::Curve>::instance();
  270|    119|}
pcurves_secp256r1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS1_9secp256r16ParamsES2_E11FieldParamsEE3oneEv:
   77|  2.79k|      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|  77.1k|      constexpr static std::array<W, N> redc(const std::array<W, 2 * N>& z) {
   28|  77.1k|         const int64_t X00 = get_uint32(z.data(), 0);
   29|  77.1k|         const int64_t X01 = get_uint32(z.data(), 1);
   30|  77.1k|         const int64_t X02 = get_uint32(z.data(), 2);
   31|  77.1k|         const int64_t X03 = get_uint32(z.data(), 3);
   32|  77.1k|         const int64_t X04 = get_uint32(z.data(), 4);
   33|  77.1k|         const int64_t X05 = get_uint32(z.data(), 5);
   34|  77.1k|         const int64_t X06 = get_uint32(z.data(), 6);
   35|  77.1k|         const int64_t X07 = get_uint32(z.data(), 7);
   36|  77.1k|         const int64_t X08 = get_uint32(z.data(), 8);
   37|  77.1k|         const int64_t X09 = get_uint32(z.data(), 9);
   38|  77.1k|         const int64_t X10 = get_uint32(z.data(), 10);
   39|  77.1k|         const int64_t X11 = get_uint32(z.data(), 11);
   40|  77.1k|         const int64_t X12 = get_uint32(z.data(), 12);
   41|  77.1k|         const int64_t X13 = get_uint32(z.data(), 13);
   42|  77.1k|         const int64_t X14 = get_uint32(z.data(), 14);
   43|  77.1k|         const int64_t X15 = get_uint32(z.data(), 15);
   44|       |
   45|       |         // See SP 800-186 section G.1.2
   46|  77.1k|         const int64_t S0 = P256_4[0] + X00 + X08 + X09 - (X11 + X12 + X13 + X14);
   47|  77.1k|         const int64_t S1 = P256_4[1] + X01 + X09 + X10 - (X12 + X13 + X14 + X15);
   48|  77.1k|         const int64_t S2 = P256_4[2] + X02 + X10 + X11 - (X13 + X14 + X15);
   49|  77.1k|         const int64_t S3 = P256_4[3] + X03 + 2 * (X11 + X12) + X13 - (X15 + X08 + X09);
   50|  77.1k|         const int64_t S4 = P256_4[4] + X04 + 2 * (X12 + X13) + X14 - (X09 + X10);
   51|  77.1k|         const int64_t S5 = P256_4[5] + X05 + 2 * (X13 + X14) + X15 - (X10 + X11);
   52|  77.1k|         const int64_t S6 = P256_4[6] + X06 + X13 + X14 * 3 + X15 * 2 - (X08 + X09);
   53|  77.1k|         const int64_t S7 = P256_4[7] + X07 + X15 * 3 + X08 - (X10 + X11 + X12 + X13);
   54|  77.1k|         const int64_t S8 = P256_4[8];
   55|       |
   56|  77.1k|         std::array<W, N> r = {};
   57|       |
   58|  77.1k|         SolinasAccum sum(r);
   59|       |
   60|  77.1k|         sum.accum(S0);
   61|  77.1k|         sum.accum(S1);
   62|  77.1k|         sum.accum(S2);
   63|  77.1k|         sum.accum(S3);
   64|  77.1k|         sum.accum(S4);
   65|  77.1k|         sum.accum(S5);
   66|  77.1k|         sum.accum(S6);
   67|  77.1k|         sum.accum(S7);
   68|  77.1k|         const auto S = sum.final_carry(S8);
   69|       |
   70|  77.1k|         BOTAN_DEBUG_ASSERT(S <= 8);
  ------------------
  |  |  130|  77.1k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  77.1k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 77.1k]
  |  |  ------------------
  ------------------
   71|       |
   72|  77.1k|         solinas_correct_redc<N>(r, P, p256_mul_mod_256(S));
   73|       |
   74|  77.1k|         return r;
   75|  77.1k|      }
pcurves_secp256r1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS1_9secp256r16ParamsES2_E11FieldParamsEE16p256_mul_mod_256Em:
   89|  77.1k|      constexpr static std::array<W, N> p256_mul_mod_256(W i) {
   90|  77.1k|         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|  77.1k|         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|  77.1k|         } else {
  102|  77.1k|            const uint64_t i32 = static_cast<uint64_t>(i) << 32;
  103|  77.1k|            r[3] -= i32;
  104|  77.1k|            r[3] += i;
  105|  77.1k|            r[1] += i32;
  106|  77.1k|            r[0] -= i;
  107|  77.1k|         }
  108|  77.1k|         return r;
  109|  77.1k|      }
pcurves_secp256r1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_19secp256r15Curve10fe_invert2ERKNS_6IntModINS1_12Secp256r1RepINS_13EllipticCurveINS2_6ParamsES5_E11FieldParamsEEEEE:
  131|     65|      static constexpr FieldElement fe_invert2(const FieldElement& x) {
  132|       |         // Generated using https://github.com/mmcloughlin/addchain
  133|       |
  134|     65|         auto z = x.square();
  135|     65|         z *= x;
  136|     65|         z = z.square();
  137|     65|         z *= x;
  138|     65|         auto t0 = z;
  139|     65|         t0.square_n(3);
  140|     65|         t0 *= z;
  141|     65|         auto t1 = t0;
  142|     65|         t1.square_n(6);
  143|     65|         t0 *= t1;
  144|     65|         t0.square_n(3);
  145|     65|         z *= t0;
  146|     65|         t0 = z.square();
  147|     65|         t0 *= x;
  148|     65|         t1 = t0;
  149|     65|         t1.square_n(16);
  150|     65|         t0 *= t1;
  151|     65|         t0.square_n(15);
  152|     65|         z *= t0;
  153|     65|         t0.square_n(17);
  154|     65|         t0 *= x;
  155|     65|         t0.square_n(143);
  156|     65|         t0 *= z;
  157|     65|         t0.square_n(47);
  158|     65|         z *= t0;
  159|     65|         z.square_n(2);
  160|       |
  161|     65|         return z;
  162|     65|      }
pcurves_secp256r1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112Secp256r1RepINS_13EllipticCurveINS1_9secp256r16ParamsES2_E11FieldParamsEE8from_repERKNSt3__15arrayImLm4EEE:
   83|    131|      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|    198|std::shared_ptr<const PrimeOrderCurve> PCurveInstance::secp384r1() {
  344|    198|   return PrimeOrderCurveImpl<secp384r1::Curve>::instance();
  345|    198|}
pcurves_secp384r1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS1_9secp384r16ParamsES2_E11FieldParamsEE3oneEv:
   88|  10.8k|      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|   228k|      constexpr static std::array<W, N> redc(const std::array<W, 2 * N>& z) {
   24|   228k|         const int64_t X00 = get_uint32(z.data(), 0);
   25|   228k|         const int64_t X01 = get_uint32(z.data(), 1);
   26|   228k|         const int64_t X02 = get_uint32(z.data(), 2);
   27|   228k|         const int64_t X03 = get_uint32(z.data(), 3);
   28|   228k|         const int64_t X04 = get_uint32(z.data(), 4);
   29|   228k|         const int64_t X05 = get_uint32(z.data(), 5);
   30|   228k|         const int64_t X06 = get_uint32(z.data(), 6);
   31|   228k|         const int64_t X07 = get_uint32(z.data(), 7);
   32|   228k|         const int64_t X08 = get_uint32(z.data(), 8);
   33|   228k|         const int64_t X09 = get_uint32(z.data(), 9);
   34|   228k|         const int64_t X10 = get_uint32(z.data(), 10);
   35|   228k|         const int64_t X11 = get_uint32(z.data(), 11);
   36|   228k|         const int64_t X12 = get_uint32(z.data(), 12);
   37|   228k|         const int64_t X13 = get_uint32(z.data(), 13);
   38|   228k|         const int64_t X14 = get_uint32(z.data(), 14);
   39|   228k|         const int64_t X15 = get_uint32(z.data(), 15);
   40|   228k|         const int64_t X16 = get_uint32(z.data(), 16);
   41|   228k|         const int64_t X17 = get_uint32(z.data(), 17);
   42|   228k|         const int64_t X18 = get_uint32(z.data(), 18);
   43|   228k|         const int64_t X19 = get_uint32(z.data(), 19);
   44|   228k|         const int64_t X20 = get_uint32(z.data(), 20);
   45|   228k|         const int64_t X21 = get_uint32(z.data(), 21);
   46|   228k|         const int64_t X22 = get_uint32(z.data(), 22);
   47|   228k|         const int64_t X23 = get_uint32(z.data(), 23);
   48|       |
   49|       |         // One copy of P-384 is added to prevent underflow
   50|   228k|         const int64_t S0 = 0xFFFFFFFF + X00 + X12 + X20 + X21 - X23;
   51|   228k|         const int64_t S1 = 0x00000000 + X01 + X13 + X22 + X23 - X12 - X20;
   52|   228k|         const int64_t S2 = 0x00000000 + X02 + X14 + X23 - X13 - X21;
   53|   228k|         const int64_t S3 = 0xFFFFFFFF + X03 + X12 + X15 + X20 + X21 - X14 - X22 - X23;
   54|   228k|         const int64_t S4 = 0xFFFFFFFE + X04 + X12 + X13 + X16 + X20 + X21 * 2 + X22 - X15 - X23 * 2;
   55|   228k|         const int64_t S5 = 0xFFFFFFFF + X05 + X13 + X14 + X17 + X21 + X22 * 2 + X23 - X16;
   56|   228k|         const int64_t S6 = 0xFFFFFFFF + X06 + X14 + X15 + X18 + X22 + X23 * 2 - X17;
   57|   228k|         const int64_t S7 = 0xFFFFFFFF + X07 + X15 + X16 + X19 + X23 - X18;
   58|   228k|         const int64_t S8 = 0xFFFFFFFF + X08 + X16 + X17 + X20 - X19;
   59|   228k|         const int64_t S9 = 0xFFFFFFFF + X09 + X17 + X18 + X21 - X20;
   60|   228k|         const int64_t SA = 0xFFFFFFFF + X10 + X18 + X19 + X22 - X21;
   61|   228k|         const int64_t SB = 0xFFFFFFFF + X11 + X19 + X20 + X23 - X22;
   62|       |
   63|   228k|         std::array<W, N> r = {};
   64|       |
   65|   228k|         SolinasAccum sum(r);
   66|       |
   67|   228k|         sum.accum(S0);
   68|   228k|         sum.accum(S1);
   69|   228k|         sum.accum(S2);
   70|   228k|         sum.accum(S3);
   71|   228k|         sum.accum(S4);
   72|   228k|         sum.accum(S5);
   73|   228k|         sum.accum(S6);
   74|   228k|         sum.accum(S7);
   75|   228k|         sum.accum(S8);
   76|   228k|         sum.accum(S9);
   77|   228k|         sum.accum(SA);
   78|   228k|         sum.accum(SB);
   79|   228k|         const auto S = sum.final_carry(0);
   80|       |
   81|   228k|         BOTAN_DEBUG_ASSERT(S <= 4);
  ------------------
  |  |  130|   228k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|   228k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 228k]
  |  |  ------------------
  ------------------
   82|       |
   83|   228k|         solinas_correct_redc<N>(r, P, p384_mul_mod_384(S));
   84|       |
   85|   228k|         return r;
   86|   228k|      }
pcurves_secp384r1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS1_9secp384r16ParamsES2_E11FieldParamsEE16p384_mul_mod_384Em:
  100|   228k|      constexpr static std::array<W, N> p384_mul_mod_384(W i) {
  101|   228k|         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|   228k|         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|   228k|         } else {
  113|   228k|            const uint64_t i32 = static_cast<uint64_t>(i) << 32;
  114|   228k|            r[2] -= i;
  115|   228k|            r[1] -= i32;
  116|   228k|            r[0] += i32;
  117|   228k|            r[0] -= i;
  118|   228k|         }
  119|   228k|         return r;
  120|   228k|      }
pcurves_secp384r1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_19secp384r15Curve10fe_invert2ERKNS_6IntModINS1_12Secp384r1RepINS_13EllipticCurveINS2_6ParamsES5_E11FieldParamsEEEEE:
  142|    167|      static constexpr FieldElement fe_invert2(const FieldElement& x) {
  143|       |         // From https://briansmith.org/ecc-inversion-addition-chains-01
  144|       |
  145|    167|         FieldElement r = x.square();
  146|    167|         r *= x;
  147|    167|         const auto x2 = r;
  148|    167|         r = r.square();
  149|    167|         r *= x;
  150|    167|         const auto x3 = r;
  151|    167|         r.square_n(3);
  152|    167|         r *= x3;
  153|    167|         auto rl = r;
  154|    167|         r.square_n(6);
  155|    167|         r *= rl;
  156|    167|         r.square_n(3);
  157|    167|         r *= x3;
  158|    167|         const auto x15 = r;
  159|    167|         r.square_n(15);
  160|    167|         r *= x15;
  161|    167|         const auto x30 = r;
  162|    167|         r.square_n(30);
  163|    167|         r *= x30;
  164|    167|         rl = r;
  165|    167|         r.square_n(60);
  166|    167|         r *= rl;
  167|    167|         rl = r;
  168|    167|         r.square_n(120);
  169|    167|         r *= rl;
  170|    167|         r.square_n(15);
  171|    167|         r *= x15;
  172|    167|         r.square_n(31);
  173|    167|         r *= x30;
  174|    167|         r.square_n(2);
  175|    167|         r *= x2;
  176|    167|         r.square_n(94);
  177|    167|         r *= x30;
  178|    167|         r.square_n(2);
  179|       |
  180|    167|         return r;
  181|    167|      }
pcurves_secp384r1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_112Secp384r1RepINS_13EllipticCurveINS1_9secp384r16ParamsES2_E11FieldParamsEE8from_repERKNSt3__15arrayImLm6EEE:
   94|    335|      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|    298|std::shared_ptr<const PrimeOrderCurve> PCurveInstance::secp521r1() {
  292|    298|   return PrimeOrderCurveImpl<secp521r1::Curve>::instance();
  293|    298|}
pcurves_secp521r1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS2_6ParamsES3_E11FieldParamsEE3oneEv:
   24|  15.1k|      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|   316k|      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|   316k|         constexpr W TOP_BITS = static_cast<W>(0x1FF);
   29|       |         // The 23 or 55 bits that should be cleared in the top word
   30|   316k|         constexpr W CLEARED_TOP_BITS = WordInfo<W>::max ^ TOP_BITS;
   31|       |
   32|       |         /*
   33|       |         * Extract the high part of z (z >> 521)
   34|       |         */
   35|   316k|         std::array<W, N> t;  // NOLINT(*-member-init)
   36|       |
   37|  3.16M|         for(size_t i = 0; i != N; ++i) {
  ------------------
  |  Branch (37:28): [True: 2.85M, False: 316k]
  ------------------
   38|  2.85M|            t[i] = z[(N - 1) + i] >> 9;
   39|  2.85M|         }
   40|       |
   41|  2.85M|         for(size_t i = 0; i != N - 1; ++i) {
  ------------------
  |  Branch (41:28): [True: 2.53M, False: 316k]
  ------------------
   42|  2.53M|            t[i] |= z[(N - 1) + i + 1] << (WordInfo<W>::bits - 9);
   43|  2.53M|         }
   44|       |
   45|       |         // Now t += z & (2**521-1)
   46|   316k|         W carry = 0;
   47|  2.85M|         for(size_t i = 0; i != N - 1; ++i) {
  ------------------
  |  Branch (47:28): [True: 2.53M, False: 316k]
  ------------------
   48|  2.53M|            t[i] = word_add(t[i], z[i], &carry);
   49|  2.53M|         }
   50|       |
   51|       |         // Now add the (partial) top words; this can't carry out
   52|       |         // since both inputs are at most 2**9-1
   53|   316k|         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|   316k|         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|   316k|         const W is_eq_p521 = [&]() {
   71|   316k|            W sum = WordInfo<W>::max;
   72|   316k|            for(size_t i = 0; i != N - 1; ++i) {
   73|   316k|               sum &= t[i];
   74|   316k|            }
   75|   316k|            sum &= (CLEARED_TOP_BITS | t[N - 1]);
   76|       |
   77|   316k|            return CT::Mask<W>::is_zero(sum ^ WordInfo<W>::max).value();
   78|   316k|         }();
   79|       |
   80|   316k|         const W need_sub = is_over_p521 | is_eq_p521;
   81|       |
   82|   316k|         W borrow = 0;
   83|  2.85M|         for(size_t i = 0; i != N - 1; ++i) {
  ------------------
  |  Branch (83:28): [True: 2.53M, False: 316k]
  ------------------
   84|  2.53M|            t[i] = word_sub(t[i], need_sub & WordInfo<W>::max, &borrow);
   85|  2.53M|         }
   86|   316k|         t[N - 1] = word_sub(t[N - 1], need_sub & TOP_BITS, &borrow);
   87|       |
   88|   316k|         return t;
   89|   316k|      }
pcurves_secp521r1.cpp:_ZZN5Botan6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS2_6ParamsES3_E11FieldParamsEE4redcERKNSt3__15arrayImLm18EEEENKUlvE_clEv:
   70|   316k|         const W is_eq_p521 = [&]() {
   71|   316k|            W sum = WordInfo<W>::max;
   72|  2.85M|            for(size_t i = 0; i != N - 1; ++i) {
  ------------------
  |  Branch (72:31): [True: 2.53M, False: 316k]
  ------------------
   73|  2.53M|               sum &= t[i];
   74|  2.53M|            }
   75|   316k|            sum &= (CLEARED_TOP_BITS | t[N - 1]);
   76|       |
   77|   316k|            return CT::Mask<W>::is_zero(sum ^ WordInfo<W>::max).value();
   78|   316k|         }();
pcurves_secp521r1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_19secp521r15Curve10fe_invert2ERKNS_6IntModINS2_7P521RepINS_13EllipticCurveINS2_6ParamsES5_E11FieldParamsEEEEE:
  115|    174|      static constexpr FieldElement fe_invert2(const FieldElement& x) {
  116|       |         // Addition chain from https://eprint.iacr.org/2014/852.pdf page 6
  117|       |
  118|    174|         FieldElement r = x.square();
  119|    174|         r *= x;
  120|    174|         r = r.square();
  121|    174|         r *= x;
  122|    174|         FieldElement rl = r;
  123|    174|         r.square_n(3);
  124|    174|         r *= rl;
  125|    174|         r.square_n(1);
  126|    174|         r *= x;
  127|    174|         const auto a7 = r;
  128|    174|         r.square_n(1);
  129|    174|         r *= x;
  130|    174|         rl = r;
  131|    174|         r.square_n(8);
  132|    174|         r *= rl;
  133|    174|         rl = r;
  134|    174|         r.square_n(16);
  135|    174|         r *= rl;
  136|    174|         rl = r;
  137|    174|         r.square_n(32);
  138|    174|         r *= rl;
  139|    174|         rl = r;
  140|    174|         r.square_n(64);
  141|    174|         r *= rl;
  142|    174|         rl = r;
  143|    174|         r.square_n(128);
  144|    174|         r *= rl;
  145|    174|         rl = r;
  146|    174|         r.square_n(256);
  147|    174|         r *= rl;
  148|    174|         r.square_n(7);
  149|    174|         r *= a7;
  150|    174|         r.square_n(2);
  151|       |
  152|    174|         return r;
  153|    174|      }
pcurves_secp521r1.cpp:_ZN5Botan6PCurve12_GLOBAL__N_19secp521r17P521RepINS_13EllipticCurveINS2_6ParamsES3_E11FieldParamsEE8from_repERKNSt3__15arrayImLm9EEE:
   95|    351|      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|    131|      constexpr static std::array<W, N> to_rep(const std::array<W, N>& x) { return x; }

_ZN5Botan18Keccak_Permutation5clearEv:
   37|    618|void Keccak_Permutation::clear() {
   38|    618|   state() = {};
   39|    618|   reset_cursor();
   40|    618|}
_ZN5Botan18Keccak_Permutation6absorbENSt3__14spanIKhLm18446744073709551615EEE:
   42|  9.19k|void Keccak_Permutation::absorb(std::span<const uint8_t> input) {
   43|  9.19k|   absorb_into_sponge(*this, input);
   44|  9.19k|}
_ZN5Botan18Keccak_Permutation7squeezeENSt3__14spanIhLm18446744073709551615EEE:
   46|   975k|void Keccak_Permutation::squeeze(std::span<uint8_t> output) {
   47|   975k|   squeeze_from_sponge(*this, output);
   48|   975k|}
_ZN5Botan18Keccak_Permutation6finishEv:
   50|  4.65k|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.65k|   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.65k|   const uint64_t start_of_padding = (m_padding.padding | uint64_t(1) << m_padding.bit_len);
   63|  4.65k|   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.65k|   BOTAN_DEBUG_ASSERT(m_padding.bit_len % 8 != 7);
  ------------------
  |  |  130|  4.65k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  4.65k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 4.65k]
  |  |  ------------------
  ------------------
   73|       |
   74|       |   // Append the final bit of "pad10*1" into the last word of the input range
   75|  4.65k|   S[(byte_rate() / word_bytes) - 1] ^= uint64_t(0x8000000000000000);
   76|       |
   77|       |   // Perform the final permutation and reset the state cursor
   78|  4.65k|   permute();
   79|  4.65k|   reset_cursor();
   80|       |
   81|  4.65k|   BOTAN_DEBUG_ASSERT(cursor() == 0);
  ------------------
  |  |  130|  4.65k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  4.65k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 4.65k]
  |  |  ------------------
  ------------------
   82|  4.65k|}
_ZN5Botan18Keccak_Permutation7permuteEv:
   84|  19.3k|void Keccak_Permutation::permute() {
   85|  19.3k|#if defined(BOTAN_HAS_KECCAK_PERM_AVX512)
   86|  19.3k|   if(CPUID::has(CPUID::Feature::AVX512)) {
  ------------------
  |  Branch (86:7): [True: 0, False: 19.3k]
  ------------------
   87|      0|      return permute_avx512();
   88|      0|   }
   89|  19.3k|#endif
   90|       |
   91|  19.3k|#if defined(BOTAN_HAS_KECCAK_PERM_BMI2)
   92|  19.3k|   if(CPUID::has(CPUID::Feature::BMI)) {
  ------------------
  |  Branch (92:7): [True: 19.3k, False: 0]
  ------------------
   93|  19.3k|      return permute_bmi2();
   94|  19.3k|   }
   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|  19.3k|void BOTAN_FN_ISA_BMI2 Keccak_Permutation::permute_bmi2() {
   16|  19.3k|   static const uint64_t RC[24] = {0x0000000000000001, 0x0000000000008082, 0x800000000000808A, 0x8000000080008000,
   17|  19.3k|                                   0x000000000000808B, 0x0000000080000001, 0x8000000080008081, 0x8000000000008009,
   18|  19.3k|                                   0x000000000000008A, 0x0000000000000088, 0x0000000080008009, 0x000000008000000A,
   19|  19.3k|                                   0x000000008000808B, 0x800000000000008B, 0x8000000000008089, 0x8000000000008003,
   20|  19.3k|                                   0x8000000000008002, 0x8000000000000080, 0x000000000000800A, 0x800000008000000A,
   21|  19.3k|                                   0x8000000080008081, 0x8000000000008080, 0x0000000080000001, 0x8000000080008008};
   22|       |
   23|  19.3k|   uint64_t T[25];
   24|       |
   25|   251k|   for(size_t i = 0; i != 24; i += 2) {
  ------------------
  |  Branch (25:22): [True: 232k, False: 19.3k]
  ------------------
   26|   232k|      Keccak_Permutation_round(T, state().data(), RC[i + 0]);
   27|   232k|      Keccak_Permutation_round(state().data(), T, RC[i + 1]);
   28|   232k|   }
   29|  19.3k|}

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

_ZN5Botan16Ed448_PrivateKeyC1ERKNS_19AlgorithmIdentifierENSt3__14spanIKhLm18446744073709551615EEE:
   63|      4|Ed448_PrivateKey::Ed448_PrivateKey(const AlgorithmIdentifier& alg_id, std::span<const uint8_t> key_bits) {
   64|       |   // RFC 8410 Section 3: "the parameters MUST be absent".
   65|      4|   if(!alg_id.parameters_are_empty()) {
  ------------------
  |  Branch (65:7): [True: 1, False: 3]
  ------------------
   66|      1|      throw Decoding_Error("Unexpected parameters for Ed448 private key");
   67|      1|   }
   68|       |
   69|      3|   secure_vector<uint8_t> bits;
   70|      3|   BER_Decoder(key_bits, BER_Decoder::Limits::DER()).decode(bits, ASN1_Type::OctetString).verify_end();
   71|       |
   72|      3|   if(bits.size() != ED448_LEN) {
  ------------------
  |  Branch (72:7): [True: 2, False: 1]
  ------------------
   73|      2|      throw Decoding_Error("Invalid size for Ed448 private key");
   74|      2|   }
   75|      1|   m_private = std::move(bits);
   76|      1|   m_public = create_pk_from_sk(std::span(m_private).first<ED448_LEN>());
   77|      1|}

_ZN5Botan15X448_PrivateKeyC1ERKNS_19AlgorithmIdentifierENSt3__14spanIKhLm18446744073709551615EEE:
   73|      4|      X448_PrivateKey(ber_decode_sk(key_bits)) {
   74|       |   // RFC 8410 Section 3: "the parameters MUST be absent".
   75|      4|   if(!alg_id.parameters_are_empty()) {
  ------------------
  |  Branch (75:7): [True: 0, False: 4]
  ------------------
   76|      0|      throw Decoding_Error("Unexpected parameters for X448 private key");
   77|      0|   }
   78|      4|}
_ZN5Botan15X448_PrivateKeyC1ENSt3__14spanIKhLm18446744073709551615EEE:
   80|      1|X448_PrivateKey::X448_PrivateKey(std::span<const uint8_t> secret_key) {
   81|      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]
  |  |  ------------------
  ------------------
   82|      1|   m_private.assign(secret_key.begin(), secret_key.end());
   83|      1|   auto scope = CT::scoped_poison(m_private);
   84|      1|   x448_basepoint_from_data(m_public, std::span(m_private).first<X448_LEN>());
   85|      1|   CT::unpoison(m_public);
   86|      1|}
x448.cpp:_ZN5Botan12_GLOBAL__N_113ber_decode_skENSt3__14spanIKhLm18446744073709551615EEE:
   28|      4|secure_vector<uint8_t> ber_decode_sk(std::span<const uint8_t> key_bits) {
   29|      4|   secure_vector<uint8_t> decoded_bits;
   30|      4|   BER_Decoder(key_bits, BER_Decoder::Limits::DER()).decode(decoded_bits, ASN1_Type::OctetString).verify_end();
   31|      4|   if(decoded_bits.size() != X448_LEN) {
  ------------------
  |  Branch (31:7): [True: 2, False: 2]
  ------------------
   32|      2|      throw Decoding_Error("Invalid size for X448 private key");
   33|      2|   }
   34|      2|   return decoded_bits;
   35|      4|}
x448.cpp:_ZN5Botan12_GLOBAL__N_124x448_basepoint_from_dataENSt3__14spanIhLm56EEENS2_IKhLm56EEE:
   22|      1|void x448_basepoint_from_data(std::span<uint8_t, X448_LEN> mypublic, std::span<const uint8_t, X448_LEN> secret) {
   23|      1|   auto bp = x448_basepoint(decode_scalar(secret));
   24|      1|   auto bp_bytes = encode_point(bp);
   25|      1|   copy_mem(mypublic, bp_bytes);
   26|      1|}

_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|     94|DH_PrivateKey::DH_PrivateKey(const AlgorithmIdentifier& alg_id, std::span<const uint8_t> key_bits) {
   71|     94|   m_private_key = std::make_shared<DL_PrivateKey>(alg_id, key_bits, DL_Group_Format::ANSI_X9_42);
   72|     94|   m_public_key = m_private_key->public_key();
   73|     94|}

_ZN5Botan13DilithiumModeC2ERKNS_3OIDE:
   66|     87|DilithiumMode::DilithiumMode(const OID& oid) : m_mode(dilithium_mode_from_string(oid.to_formatted_string())) {}
_ZNK5Botan13DilithiumMode6is_aesEv:
   99|    332|bool DilithiumMode::is_aes() const {
  100|    332|   return m_mode == Dilithium4x4_AES || m_mode == Dilithium6x5_AES || m_mode == Dilithium8x7_AES;
  ------------------
  |  Branch (100:11): [True: 0, False: 332]
  |  Branch (100:41): [True: 0, False: 332]
  |  Branch (100:71): [True: 0, False: 332]
  ------------------
  101|    332|}
_ZNK5Botan13DilithiumMode9is_modernEv:
  103|    166|bool DilithiumMode::is_modern() const {
  104|    166|   return !is_aes();
  105|    166|}
_ZNK5Botan13DilithiumMode9is_ml_dsaEv:
  107|    664|bool DilithiumMode::is_ml_dsa() const {
  108|    664|   return m_mode == ML_DSA_4x4 || m_mode == ML_DSA_6x5 || m_mode == ML_DSA_8x7;
  ------------------
  |  Branch (108:11): [True: 104, False: 560]
  |  Branch (108:35): [True: 324, False: 236]
  |  Branch (108:59): [True: 236, False: 0]
  ------------------
  109|    664|}
_ZN5Botan20Dilithium_PrivateKeyC1ERKNS_19AlgorithmIdentifierENSt3__14spanIKhLm18446744073709551615EEE:
  426|     87|      Dilithium_PrivateKey(sk, DilithiumMode(alg_id.oid())) {
  427|       |   // The parameter set is identified by the OID; no parameters are defined.
  428|     87|   if(!alg_id.parameters_are_empty()) {
  ------------------
  |  Branch (428:7): [True: 0, False: 87]
  ------------------
  429|      0|      throw Decoding_Error("Unexpected parameters for ML-DSA/Dilithium private key");
  430|      0|   }
  431|     87|}
_ZN5Botan20Dilithium_PrivateKeyC1ENSt3__14spanIKhLm18446744073709551615EEENS_13DilithiumModeE:
  433|     87|Dilithium_PrivateKey::Dilithium_PrivateKey(std::span<const uint8_t> sk, DilithiumMode m) {
  434|     87|   DilithiumConstants mode(m);
  435|     87|   auto& codec = mode.keypair_codec();
  436|     87|   std::tie(m_public, m_private) = codec.decode_keypair(sk, std::move(mode));
  437|     87|}
dilithium.cpp:_ZN5Botan12_GLOBAL__N_126dilithium_mode_from_stringENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   32|     87|DilithiumMode::Mode dilithium_mode_from_string(std::string_view str) {
   33|     87|   if(str == "Dilithium-4x4-r3") {
  ------------------
  |  Branch (33:7): [True: 0, False: 87]
  ------------------
   34|      0|      return DilithiumMode::Dilithium4x4;
   35|      0|   }
   36|     87|   if(str == "Dilithium-4x4-AES-r3") {
  ------------------
  |  Branch (36:7): [True: 0, False: 87]
  ------------------
   37|      0|      return DilithiumMode::Dilithium4x4_AES;
   38|      0|   }
   39|     87|   if(str == "Dilithium-6x5-r3") {
  ------------------
  |  Branch (39:7): [True: 0, False: 87]
  ------------------
   40|      0|      return DilithiumMode::Dilithium6x5;
   41|      0|   }
   42|     87|   if(str == "Dilithium-6x5-AES-r3") {
  ------------------
  |  Branch (42:7): [True: 0, False: 87]
  ------------------
   43|      0|      return DilithiumMode::Dilithium6x5_AES;
   44|      0|   }
   45|     87|   if(str == "Dilithium-8x7-r3") {
  ------------------
  |  Branch (45:7): [True: 0, False: 87]
  ------------------
   46|      0|      return DilithiumMode::Dilithium8x7;
   47|      0|   }
   48|     87|   if(str == "Dilithium-8x7-AES-r3") {
  ------------------
  |  Branch (48:7): [True: 0, False: 87]
  ------------------
   49|      0|      return DilithiumMode::Dilithium8x7_AES;
   50|      0|   }
   51|     87|   if(str == "ML-DSA-4x4") {
  ------------------
  |  Branch (51:7): [True: 14, False: 73]
  ------------------
   52|     14|      return DilithiumMode::ML_DSA_4x4;
   53|     14|   }
   54|     73|   if(str == "ML-DSA-6x5") {
  ------------------
  |  Branch (54:7): [True: 42, False: 31]
  ------------------
   55|     42|      return DilithiumMode::ML_DSA_6x5;
   56|     42|   }
   57|     31|   if(str == "ML-DSA-8x7") {
  ------------------
  |  Branch (57:7): [True: 31, False: 0]
  ------------------
   58|     31|      return DilithiumMode::ML_DSA_8x7;
   59|     31|   }
   60|       |
   61|      0|   throw Invalid_Argument(fmt("'{}' is not a valid Dilithium mode name", str));
   62|     31|}

_ZN5Botan15Dilithium_Algos17encode_public_keyENS_10StrongSpanIKNS_6StrongINSt3__16vectorIhNS3_9allocatorIhEEEENS_20DilithiumPublicSeed_EJEEEEERKNS_8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNSC_6DomainE0EEERKNS_18DilithiumConstantsE:
  332|     79|                                               const DilithiumConstants& mode) {
  333|     79|   DilithiumSerializedPublicKey pk(mode.public_key_bytes());
  334|     79|   BufferStuffer stuffer(pk);
  335|       |
  336|     79|   stuffer.append(rho);
  337|    506|   for(const auto& p : t1) {
  ------------------
  |  Branch (337:22): [True: 506, False: 79]
  ------------------
  338|    506|      poly_pack_t1(p, stuffer);
  339|    506|   }
  340|       |
  341|     79|   BOTAN_ASSERT_NOMSG(stuffer.full());
  ------------------
  |  |   77|     79|   do {                                                                     \
  |  |   78|     79|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|     79|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 79]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|     79|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 79]
  |  |  ------------------
  ------------------
  342|     79|   return pk;
  343|     79|}
_ZN5Botan15Dilithium_Algos14expand_keypairENS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_24DilithiumSeedRandomness_EJEEENS_18DilithiumConstantsE:
  668|     87|DilithiumInternalKeypair expand_keypair(DilithiumSeedRandomness xi, DilithiumConstants mode) {
  669|     87|   if(xi.size() != DilithiumConstants::SEED_RANDOMNESS_BYTES) {
  ------------------
  |  Branch (669:7): [True: 8, False: 79]
  ------------------
  670|      8|      throw Decoding_Error("Invalid ML-DSA seed size");
  671|      8|   }
  672|     79|   const auto& sympriv = mode.symmetric_primitives();
  673|     79|   CT::poison(xi);
  674|       |
  675|     79|   auto [rho, rhoprime, K] = sympriv.H(xi);
  676|     79|   CT::unpoison(rho);  // rho is public (seed for the public matrix A)
  677|       |
  678|     79|   const auto A = Dilithium_Algos::expand_A(rho, mode);
  679|     79|   auto [s1, s2] = Dilithium_Algos::expand_s(rhoprime, mode);
  680|     79|   auto [t1, t0] = Dilithium_Algos::compute_t1_and_t0(A, s1, s2);
  681|       |
  682|     79|   CT::unpoison(t1);  // part of the public key
  683|       |
  684|     79|   DilithiumInternalKeypair keypair{
  685|     79|      std::make_shared<Dilithium_PublicKeyInternal>(mode, std::move(rho), std::move(t1)),
  686|     79|      std::make_shared<Dilithium_PrivateKeyInternal>(
  687|     79|         std::move(mode), std::move(xi), std::move(K), std::move(s1), std::move(s2), std::move(t0)),
  688|     79|   };
  689|       |
  690|     79|   CT::unpoison(*keypair.second);
  691|       |
  692|     79|   return keypair;
  693|     87|}
_ZN5Botan15Dilithium_Algos8expand_AENS_10StrongSpanIKNS_6StrongINSt3__16vectorIhNS3_9allocatorIhEEEENS_20DilithiumPublicSeed_EJEEEEERKNS_18DilithiumConstantsE:
  701|     79|DilithiumPolyMatNTT expand_A(StrongSpan<const DilithiumSeedRho> rho, const DilithiumConstants& mode) {
  702|     79|   DilithiumPolyMatNTT A(mode.k(), mode.l());
  703|    585|   for(uint8_t r = 0; r < mode.k(); ++r) {
  ------------------
  |  Branch (703:23): [True: 506, False: 79]
  ------------------
  704|  3.43k|      for(uint8_t s = 0; s < mode.l(); ++s) {
  ------------------
  |  Branch (704:26): [True: 2.93k, False: 506]
  ------------------
  705|  2.93k|         sample_ntt_uniform(rho, A[r][s], load_le(std::array{s, r}), mode);
  706|  2.93k|      }
  707|    506|   }
  708|     79|   return A;
  709|     79|}
_ZN5Botan15Dilithium_Algos8expand_sENS_10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_22DilithiumSeedRhoPrime_EJEEEEERKNS_18DilithiumConstantsE:
  715|     79|                                                       const DilithiumConstants& mode) {
  716|     79|   auto result = std::make_pair(DilithiumPolyVec(mode.l()), DilithiumPolyVec(mode.k()));
  717|     79|   auto& [s1, s2] = result;
  718|       |
  719|     79|   uint16_t nonce = 0;
  720|    439|   for(auto& p : s1) {
  ------------------
  |  Branch (720:16): [True: 439, False: 79]
  ------------------
  721|    439|      sample_uniform_eta(rhoprime, p, nonce++, mode);
  722|    439|   }
  723|       |
  724|    506|   for(auto& p : s2) {
  ------------------
  |  Branch (724:16): [True: 506, False: 79]
  ------------------
  725|    506|      sample_uniform_eta(rhoprime, p, nonce++, mode);
  726|    506|   }
  727|       |
  728|     79|   return result;
  729|     79|}
_ZN5Botan15Dilithium_Algos11power2roundERKNS_8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS1_6DomainE0EEE:
  752|     79|std::pair<DilithiumPolyVec, DilithiumPolyVec> power2round(const DilithiumPolyVec& vec) {
  753|       |   // This procedure is taken verbatim from Dilithium's reference implementation.
  754|     79|   auto power2round = [d = DilithiumConstants::D](int32_t r) -> std::pair<int32_t, int32_t> {
  755|     79|      const int32_t r1 = (r + (1 << (d - 1)) - 1) >> d;
  756|     79|      const int32_t r0 = r - (r1 << d);
  757|     79|      return {r1, r0};
  758|     79|   };
  759|       |
  760|     79|   auto result = std::make_pair(DilithiumPolyVec(vec.size()), DilithiumPolyVec(vec.size()));
  761|       |
  762|    585|   for(size_t i = 0; i < vec.size(); ++i) {
  ------------------
  |  Branch (762:22): [True: 506, False: 79]
  ------------------
  763|   130k|      for(size_t j = 0; j < vec[i].size(); ++j) {
  ------------------
  |  Branch (763:25): [True: 129k, False: 506]
  ------------------
  764|   129k|         std::tie(result.first[i][j], result.second[i][j]) = power2round(vec[i][j]);
  765|   129k|      }
  766|    506|   }
  767|       |
  768|     79|   return result;
  769|     79|}
dilithium_algos.cpp:_ZN5Botan15Dilithium_Algos12_GLOBAL__N_112poly_pack_t1ERKNS_8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS2_6DomainE0EEERNS_13BufferStufferE:
  102|    506|void poly_pack_t1(const DilithiumPoly& p, BufferStuffer& stuffer) {
  103|    506|   constexpr auto b = (1 << (bitlen(DilithiumConstants::Q - 1) - DilithiumConstants::D)) - 1;
  104|    506|   poly_pack<0, b>(p, stuffer);
  105|    506|}
dilithium_algos.cpp:_ZN5Botan15Dilithium_Algos12_GLOBAL__N_19poly_packILi0ELi1023ETkNS_8CRYSTALS14crystals_traitENS_19DilithiumPolyTraitsELNS3_6DomainE0EEEvRKNS3_10PolynomialIT1_XT2_EEERNS_13BufferStufferE:
   60|    506|constexpr void poly_pack(const CRYSTALS::Polynomial<PolyTrait, D>& p, BufferStuffer& stuffer) {
   61|    506|   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|    506|      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|    506|}
dilithium_algos.cpp:_ZN5Botan15Dilithium_Algos12_GLOBAL__N_117compute_t1_and_t0ERKNS_8CRYSTALS16PolynomialMatrixINS_19DilithiumPolyTraitsEEERKNS2_16PolynomialVectorIS4_LNS2_6DomainE0EEESC_:
  315|     79|                                                                const DilithiumPolyVec& s2) {
  316|     79|   auto t_hat = A * ntt(s1.clone());
  317|     79|   t_hat.reduce();
  318|     79|   auto t = inverse_ntt(std::move(t_hat));
  319|     79|   t += s2;
  320|     79|   t.conditional_add_q();
  321|       |
  322|     79|   return Dilithium_Algos::power2round(t);
  323|     79|}
dilithium_algos.cpp:_ZN5Botan15Dilithium_Algos12_GLOBAL__N_118sample_ntt_uniformENS_10StrongSpanIKNS_6StrongINSt3__16vectorIhNS4_9allocatorIhEEEENS_20DilithiumPublicSeed_EJEEEEERNS_8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNSD_6DomainE1EEEtRKNS_18DilithiumConstantsE:
  563|  2.93k|                        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.93k|   auto xof = mode.symmetric_primitives().H(rho, nonce);
  569|  2.93k|   auto bounded_xof = Bounded_XOF<DilithiumConstants::SAMPLE_NTT_POLY_FROM_XOF_BOUND>(*xof);
  570|       |
  571|   750k|   for(auto& coeff : p) {
  ------------------
  |  Branch (571:20): [True: 750k, False: 2.93k]
  ------------------
  572|   750k|      coeff =
  573|   750k|         bounded_xof.next<3>([](const auto bytes) { return make_uint32(0, bytes[2], bytes[1], bytes[0]) & 0x7FFFFF; },
  574|   750k|                             [](const uint32_t z) { return z < DilithiumConstants::Q; });
  575|   750k|   }
  576|       |
  577|  2.93k|   BOTAN_DEBUG_ASSERT(p.ct_validate_value_range(0, DilithiumConstants::Q - 1));
  ------------------
  |  |  130|  2.93k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  2.93k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 2.93k]
  |  |  ------------------
  ------------------
  578|  2.93k|}
dilithium_algos.cpp:_ZZN5Botan15Dilithium_Algos12_GLOBAL__N_118sample_ntt_uniformENS_10StrongSpanIKNS_6StrongINSt3__16vectorIhNS4_9allocatorIhEEEENS_20DilithiumPublicSeed_EJEEEEERNS_8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNSD_6DomainE1EEEtRKNS_18DilithiumConstantsEENK3$_0clINS4_5arrayIhLm3EEEEEDaT_:
  573|   750k|         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|   750k|                             [](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|    945|                        const DilithiumConstants& mode) {
  642|    945|   using Eta = DilithiumConstants::DilithiumEta;
  643|       |
  644|    945|   auto xof = mode.symmetric_primitives().H(rhoprime, nonce);
  645|    945|   switch(mode.eta()) {
  ------------------
  |  Branch (645:11): [True: 945, False: 0]
  ------------------
  646|    516|      case Eta::_2:
  ------------------
  |  Branch (646:7): [True: 516, False: 429]
  ------------------
  647|    516|         sample_uniform_eta<Eta::_2>(p, *xof);
  648|    516|         break;
  649|    429|      case Eta::_4:
  ------------------
  |  Branch (649:7): [True: 429, False: 516]
  ------------------
  650|    429|         sample_uniform_eta<Eta::_4>(p, *xof);
  651|    429|         break;
  652|    945|   }
  653|       |
  654|       |   // Rejection sampling is done. Secret polynomial can be repoisoned.
  655|    945|   CT::poison(p);
  656|       |
  657|    945|   BOTAN_DEBUG_ASSERT(p.ct_validate_value_range(-static_cast<int32_t>(mode.eta()), mode.eta()));
  ------------------
  |  |  130|    945|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    945|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 945]
  |  |  ------------------
  ------------------
  658|    945|}
dilithium_algos.cpp:_ZN5Botan15Dilithium_Algos12_GLOBAL__N_118sample_uniform_etaILNS_18DilithiumConstants12DilithiumEtaE2EEEvRNS_8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS5_6DomainE0EEERNS_3XOFE:
  604|    516|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|    516|   auto next_coeff = [bounded_xof = Bounded_XOF<DilithiumConstants::SAMPLE_POLY_FROM_XOF_BOUND>(xof),
  609|    516|                      stashed_coeff = std::optional<int32_t>{}]() mutable -> int32_t {
  610|    516|      if(auto stashed = std::exchange(stashed_coeff, std::nullopt)) {
  611|    516|         return *stashed;
  612|    516|      }
  613|       |
  614|    516|      BOTAN_DEBUG_ASSERT(!stashed_coeff.has_value());
  615|    516|      while(true) {
  616|    516|         const auto b = bounded_xof.next_byte();
  617|    516|         const auto z0 = coeff_from_halfbyte<eta>(b & 0x0F);
  618|    516|         const auto z1 = coeff_from_halfbyte<eta>(b >> 4);
  619|       |
  620|    516|         if(z0.has_value()) {
  621|    516|            stashed_coeff = z1;  // keep candidate z1 for the next invocation
  622|    516|            return *z0;
  623|    516|         } else if(z1.has_value()) {
  624|       |            // z0 was invalid, z1 is valid, nothing to stash
  625|    516|            return *z1;
  626|    516|         }
  627|    516|      }
  628|    516|   };
  629|       |
  630|   132k|   for(auto& coeff : p) {
  ------------------
  |  Branch (630:20): [True: 132k, False: 516]
  ------------------
  631|   132k|      coeff = next_coeff();
  632|   132k|   }
  633|    516|}
dilithium_algos.cpp:_ZZN5Botan15Dilithium_Algos12_GLOBAL__N_118sample_uniform_etaILNS_18DilithiumConstants12DilithiumEtaE2EEEvRNS_8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS5_6DomainE0EEERNS_3XOFEENUlvE_clEv:
  609|   132k|                      stashed_coeff = std::optional<int32_t>{}]() mutable -> int32_t {
  610|   132k|      if(auto stashed = std::exchange(stashed_coeff, std::nullopt)) {
  ------------------
  |  Branch (610:15): [True: 61.8k, False: 70.2k]
  ------------------
  611|  61.8k|         return *stashed;
  612|  61.8k|      }
  613|       |
  614|  70.2k|      BOTAN_DEBUG_ASSERT(!stashed_coeff.has_value());
  ------------------
  |  |  130|  70.2k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  70.2k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 70.2k]
  |  |  ------------------
  ------------------
  615|  70.5k|      while(true) {
  ------------------
  |  Branch (615:13): [True: 70.5k, Folded]
  ------------------
  616|  70.5k|         const auto b = bounded_xof.next_byte();
  617|  70.5k|         const auto z0 = coeff_from_halfbyte<eta>(b & 0x0F);
  618|  70.5k|         const auto z1 = coeff_from_halfbyte<eta>(b >> 4);
  619|       |
  620|  70.5k|         if(z0.has_value()) {
  ------------------
  |  Branch (620:13): [True: 66.2k, False: 4.33k]
  ------------------
  621|  66.2k|            stashed_coeff = z1;  // keep candidate z1 for the next invocation
  622|  66.2k|            return *z0;
  623|  66.2k|         } else if(z1.has_value()) {
  ------------------
  |  Branch (623:20): [True: 4.08k, False: 255]
  ------------------
  624|       |            // z0 was invalid, z1 is valid, nothing to stash
  625|  4.08k|            return *z1;
  626|  4.08k|         }
  627|  70.5k|      }
  628|  70.2k|   };
dilithium_algos.cpp:_ZN5Botan15Dilithium_Algos12_GLOBAL__N_119coeff_from_halfbyteILNS_18DilithiumConstants12DilithiumEtaE2EEENSt3__18optionalIiEEh:
  586|   141k|std::optional<int32_t> coeff_from_halfbyte(uint8_t b) {
  587|   141k|   BOTAN_DEBUG_ASSERT(b < 16);
  ------------------
  |  |  130|   141k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|   141k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 141k]
  |  |  ------------------
  ------------------
  588|       |
  589|   141k|   if constexpr(eta == DilithiumConstants::DilithiumEta::_2) {
  590|   141k|      if(CT::driveby_unpoison(b < 15)) {
  ------------------
  |  Branch (590:10): [True: 132k, False: 8.76k]
  ------------------
  591|   132k|         b = b - (205U * b >> 10) * 5;  // b = b mod 5
  592|   132k|         return 2 - b;
  593|   132k|      }
  594|       |   } else if constexpr(eta == DilithiumConstants::DilithiumEta::_4) {
  595|       |      if(CT::driveby_unpoison(b < 9)) {
  596|       |         return 4 - b;
  597|       |      }
  598|       |   }
  599|       |
  600|  8.76k|   return std::nullopt;
  601|   141k|}
dilithium_algos.cpp:_ZN5Botan15Dilithium_Algos12_GLOBAL__N_118sample_uniform_etaILNS_18DilithiumConstants12DilithiumEtaE4EEEvRNS_8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS5_6DomainE0EEERNS_3XOFE:
  604|    429|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|    429|   auto next_coeff = [bounded_xof = Bounded_XOF<DilithiumConstants::SAMPLE_POLY_FROM_XOF_BOUND>(xof),
  609|    429|                      stashed_coeff = std::optional<int32_t>{}]() mutable -> int32_t {
  610|    429|      if(auto stashed = std::exchange(stashed_coeff, std::nullopt)) {
  611|    429|         return *stashed;
  612|    429|      }
  613|       |
  614|    429|      BOTAN_DEBUG_ASSERT(!stashed_coeff.has_value());
  615|    429|      while(true) {
  616|    429|         const auto b = bounded_xof.next_byte();
  617|    429|         const auto z0 = coeff_from_halfbyte<eta>(b & 0x0F);
  618|    429|         const auto z1 = coeff_from_halfbyte<eta>(b >> 4);
  619|       |
  620|    429|         if(z0.has_value()) {
  621|    429|            stashed_coeff = z1;  // keep candidate z1 for the next invocation
  622|    429|            return *z0;
  623|    429|         } else if(z1.has_value()) {
  624|       |            // z0 was invalid, z1 is valid, nothing to stash
  625|    429|            return *z1;
  626|    429|         }
  627|    429|      }
  628|    429|   };
  629|       |
  630|   109k|   for(auto& coeff : p) {
  ------------------
  |  Branch (630:20): [True: 109k, False: 429]
  ------------------
  631|   109k|      coeff = next_coeff();
  632|   109k|   }
  633|    429|}
dilithium_algos.cpp:_ZZN5Botan15Dilithium_Algos12_GLOBAL__N_118sample_uniform_etaILNS_18DilithiumConstants12DilithiumEtaE4EEEvRNS_8CRYSTALS10PolynomialINS_19DilithiumPolyTraitsELNS5_6DomainE0EEERNS_3XOFEENUlvE_clEv:
  609|   109k|                      stashed_coeff = std::optional<int32_t>{}]() mutable -> int32_t {
  610|   109k|      if(auto stashed = std::exchange(stashed_coeff, std::nullopt)) {
  ------------------
  |  Branch (610:15): [True: 30.8k, False: 79.0k]
  ------------------
  611|  30.8k|         return *stashed;
  612|  30.8k|      }
  613|       |
  614|  79.0k|      BOTAN_DEBUG_ASSERT(!stashed_coeff.has_value());
  ------------------
  |  |  130|  79.0k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|  79.0k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 79.0k]
  |  |  ------------------
  ------------------
  615|  97.9k|      while(true) {
  ------------------
  |  Branch (615:13): [True: 97.9k, Folded]
  ------------------
  616|  97.9k|         const auto b = bounded_xof.next_byte();
  617|  97.9k|         const auto z0 = coeff_from_halfbyte<eta>(b & 0x0F);
  618|  97.9k|         const auto z1 = coeff_from_halfbyte<eta>(b >> 4);
  619|       |
  620|  97.9k|         if(z0.has_value()) {
  ------------------
  |  Branch (620:13): [True: 55.2k, False: 42.7k]
  ------------------
  621|  55.2k|            stashed_coeff = z1;  // keep candidate z1 for the next invocation
  622|  55.2k|            return *z0;
  623|  55.2k|         } else if(z1.has_value()) {
  ------------------
  |  Branch (623:20): [True: 23.8k, False: 18.9k]
  ------------------
  624|       |            // z0 was invalid, z1 is valid, nothing to stash
  625|  23.8k|            return *z1;
  626|  23.8k|         }
  627|  97.9k|      }
  628|  79.0k|   };
dilithium_algos.cpp:_ZN5Botan15Dilithium_Algos12_GLOBAL__N_119coeff_from_halfbyteILNS_18DilithiumConstants12DilithiumEtaE4EEENSt3__18optionalIiEEh:
  586|   195k|std::optional<int32_t> coeff_from_halfbyte(uint8_t b) {
  587|   195k|   BOTAN_DEBUG_ASSERT(b < 16);
  ------------------
  |  |  130|   195k|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|   195k|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 195k]
  |  |  ------------------
  ------------------
  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|   195k|   } else if constexpr(eta == DilithiumConstants::DilithiumEta::_4) {
  595|   195k|      if(CT::driveby_unpoison(b < 9)) {
  ------------------
  |  Branch (595:10): [True: 109k, False: 85.9k]
  ------------------
  596|   109k|         return 4 - b;
  597|   109k|      }
  598|   195k|   }
  599|       |
  600|  85.9k|   return std::nullopt;
  601|   195k|}
dilithium_algos.cpp:_ZZN5Botan15Dilithium_Algos11power2roundERKNS_8CRYSTALS16PolynomialVectorINS_19DilithiumPolyTraitsELNS1_6DomainE0EEEENK3$_0clEi:
  754|   129k|   auto power2round = [d = DilithiumConstants::D](int32_t r) -> std::pair<int32_t, int32_t> {
  755|   129k|      const int32_t r1 = (r + (1 << (d - 1)) - 1) >> d;
  756|   129k|      const int32_t r0 = r - (r1 << d);
  757|   129k|      return {r1, r0};
  758|   129k|   };

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

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

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

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

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

_ZN5Botan12DL_PublicKeyC2ERKNS_8DL_GroupERKNS_6BigIntE:
   38|      3|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|      3|   BOTAN_ARG_CHECK(m_public_key > 1 && m_public_key < m_group.get_p(), "Invalid DL public key");
  ------------------
  |  |   35|      3|   do {                                                          \
  |  |   36|      3|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|      6|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:12): [True: 3, False: 0]
  |  |  |  Branch (37:12): [True: 3, False: 0]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|      3|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 3]
  |  |  ------------------
  ------------------
   41|      3|}
_ZN5Botan13DL_PrivateKeyC2ERKNS_19AlgorithmIdentifierENSt3__14spanIKhLm18446744073709551615EEENS_15DL_Group_FormatE:
   85|    104|      m_group(alg_id.parameters(), format),
   86|    104|      m_private_key(check_dl_private_key_input(decode_single_bigint(key_bits), m_group)),
   87|    104|      m_public_key(m_group.power_g_p(m_private_key, m_private_key.bits())) {}
_ZNK5Botan13DL_PrivateKey10public_keyEv:
  101|      3|std::shared_ptr<DL_PublicKey> DL_PrivateKey::public_key() const {
  102|      3|   return std::make_shared<DL_PublicKey>(m_group, m_public_key);
  103|      3|}
dl_scheme.cpp:_ZN5Botan12_GLOBAL__N_120decode_single_bigintENSt3__14spanIKhLm18446744073709551615EEE:
   17|      8|BigInt decode_single_bigint(std::span<const uint8_t> key_bits) {
   18|      8|   BigInt x;
   19|      8|   BER_Decoder(key_bits, BER_Decoder::Limits::DER()).decode(x).verify_end();
   20|      8|   return x;
   21|      8|}
dl_scheme.cpp:_ZN5Botan12_GLOBAL__N_126check_dl_private_key_inputERKNS_6BigIntERKNS_8DL_GroupE:
   31|      5|BigInt check_dl_private_key_input(const BigInt& x, const DL_Group& group) {
   32|      5|   BOTAN_ARG_CHECK(group.verify_private_element(x), "Invalid discrete logarithm private key value");
  ------------------
  |  |   35|      5|   do {                                                          \
  |  |   36|      5|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|      5|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 2, False: 3]
  |  |  ------------------
  |  |   38|      2|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      2|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      2|      }                                                          \
  |  |   41|      5|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 5]
  |  |  ------------------
  ------------------
   33|      5|   return x;
   34|      5|}

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

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

_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)) {}
_ZN5Botan14EC_AffinePointC2ERKNS_8EC_GroupENSt3__14spanIKhLm18446744073709551615EEE:
   36|  1.11k|EC_AffinePoint::EC_AffinePoint(const EC_Group& group, std::span<const uint8_t> bytes) {
   37|  1.11k|   m_point = group._data()->point_deserialize(bytes);
   38|  1.11k|   if(!m_point) {
  ------------------
  |  Branch (38:7): [True: 1.10k, False: 4]
  ------------------
   39|  1.10k|      throw Decoding_Error("Failed to deserialize elliptic curve point");
   40|  1.10k|   }
   41|  1.11k|}
_ZNK5Botan14EC_AffinePoint15to_legacy_pointEv:
   45|  1.59k|EC_Point EC_AffinePoint::to_legacy_point() const {
   46|  1.59k|   return m_point->to_legacy_point();
   47|  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.77k|EC_AffinePoint::~EC_AffinePoint() = default;
_ZN5Botan14EC_AffinePoint5g_mulERKNS_9EC_ScalarERNS_21RandomNumberGeneratorE:
  158|  1.59k|EC_AffinePoint EC_AffinePoint::g_mul(const EC_Scalar& scalar, RandomNumberGenerator& rng) {
  159|  1.59k|   auto pt = scalar._inner().group()->point_g_mul(scalar.inner(), rng);
  160|  1.59k|   return EC_AffinePoint(std::move(pt));
  161|  1.59k|}

_ZN5Botan8EC_Group13ec_group_dataEv:
  231|  11.1k|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|  11.1k|   static const Allocator_Initializer g_init_allocator;
  238|  11.1k|   static EC_Group_Data_Map g_ec_data;
  239|  11.1k|   return g_ec_data;
  240|  11.1k|}
_ZN5Botan8EC_Group27clear_registered_curve_dataEv:
  243|  7.34k|size_t EC_Group::clear_registered_curve_data() {
  244|  7.34k|   return ec_group_data().clear();
  245|  7.34k|}
_ZN5Botan8EC_Group18load_EC_group_infoEPKcS2_S2_S2_S2_S2_RKNS_3OIDE:
  254|  2.79k|                                                            const OID& oid) {
  255|  2.79k|   BOTAN_ARG_CHECK(oid.has_value(), "EC_Group::load_EC_group_info OID must be set");
  ------------------
  |  |   35|  2.79k|   do {                                                          \
  |  |   36|  2.79k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  2.79k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 2.79k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  2.79k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 2.79k]
  |  |  ------------------
  ------------------
  256|       |
  257|  2.79k|   const BigInt p(p_str);
  258|  2.79k|   const BigInt a(a_str);
  259|  2.79k|   const BigInt b(b_str);
  260|  2.79k|   const BigInt g_x(g_x_str);
  261|  2.79k|   const BigInt g_y(g_y_str);
  262|  2.79k|   const BigInt order(order_str);
  263|  2.79k|   const BigInt cofactor(1);  // implicit
  264|       |
  265|  2.79k|   return EC_Group_Data::create(p, a, b, g_x, g_y, order, cofactor, oid, EC_Group_Source::Builtin);
  266|  2.79k|}
_ZN5Botan8EC_Group19DER_decode_EC_groupENSt3__14spanIKhLm18446744073709551615EEENS_15EC_Group_SourceE:
  270|  3.96k|                                                                              EC_Group_Source source) {
  271|  3.96k|   BER_Decoder dec(der, BER_Decoder::Limits::DER());
  272|       |
  273|  3.96k|   auto next_obj_type = dec.peek_next_object().type_tag();
  274|       |
  275|  3.96k|   if(next_obj_type == ASN1_Type::ObjectId) {
  ------------------
  |  Branch (275:7): [True: 2.65k, False: 1.31k]
  ------------------
  276|  2.65k|      OID oid;
  277|  2.65k|      dec.decode(oid).verify_end();
  278|       |
  279|  2.65k|      auto data = ec_group_data().lookup(oid);
  280|  2.65k|      if(!data) {
  ------------------
  |  Branch (280:10): [True: 81, False: 2.56k]
  ------------------
  281|     81|         throw Decoding_Error(fmt("Unknown namedCurve OID '{}'", oid.to_string()));
  282|     81|      }
  283|       |
  284|  2.56k|      return std::make_pair(data, false);
  285|  2.65k|   } else if(next_obj_type == ASN1_Type::Sequence) {
  ------------------
  |  Branch (285:14): [True: 1.27k, False: 46]
  ------------------
  286|  1.27k|      BigInt p;
  287|  1.27k|      BigInt a;
  288|  1.27k|      BigInt b;
  289|  1.27k|      BigInt order;
  290|  1.27k|      BigInt cofactor;
  291|  1.27k|      std::vector<uint8_t> base_pt;
  292|  1.27k|      std::vector<uint8_t> seed;
  293|       |
  294|  1.27k|      dec.start_sequence()
  295|  1.27k|         .decode_and_check<size_t>(1, "Unknown ECC param version code")
  296|  1.27k|         .start_sequence()
  297|  1.27k|         .decode_and_check(OID({1, 2, 840, 10045, 1, 1}), "Only prime ECC fields supported")
  298|  1.27k|         .decode(p)
  299|  1.27k|         .end_cons()
  300|  1.27k|         .start_sequence()
  301|  1.27k|         .decode_octet_string_bigint(a)
  302|  1.27k|         .decode_octet_string_bigint(b)
  303|  1.27k|         .decode_optional_string(seed, ASN1_Type::BitString, ASN1_Type::BitString, ASN1_Class::Universal)
  304|  1.27k|         .end_cons()
  305|  1.27k|         .decode(base_pt, ASN1_Type::OctetString)
  306|  1.27k|         .decode(order)
  307|  1.27k|         .decode(cofactor)
  308|  1.27k|         .end_cons()
  309|  1.27k|         .verify_end();
  310|       |
  311|       |      // TODO(Botan4) Require cofactor == 1
  312|  1.27k|      if(cofactor <= 0 || cofactor >= 16) {
  ------------------
  |  Branch (312:10): [True: 52, False: 1.22k]
  |  Branch (312:27): [True: 2, False: 1.21k]
  ------------------
  313|      6|         throw Decoding_Error("Invalid ECC cofactor parameter");
  314|      6|      }
  315|       |
  316|  1.26k|      if(p.bits() < 112 || p.bits() > 521 || p.signum() < 0) {
  ------------------
  |  Branch (316:10): [True: 48, False: 1.21k]
  |  Branch (316:28): [True: 1, False: 1.21k]
  |  Branch (316:46): [True: 2, False: 1.21k]
  ------------------
  317|      3|         throw Decoding_Error("ECC p parameter is invalid size");
  318|      3|      }
  319|       |
  320|       |      // A can be zero
  321|  1.26k|      if(a.signum() < 0 || a >= p) {
  ------------------
  |  Branch (321:10): [True: 48, False: 1.21k]
  |  Branch (321:28): [True: 2, False: 1.21k]
  ------------------
  322|      2|         throw Decoding_Error("Invalid ECC a parameter");
  323|      2|      }
  324|       |
  325|       |      // B must be > 0
  326|  1.26k|      if(b.signum() <= 0 || b >= p) {
  ------------------
  |  Branch (326:10): [True: 49, False: 1.21k]
  |  Branch (326:29): [True: 3, False: 1.20k]
  ------------------
  327|      4|         throw Decoding_Error("Invalid ECC b parameter");
  328|      4|      }
  329|       |
  330|  1.25k|      if(order.signum() <= 0 || order >= 2 * p) {
  ------------------
  |  Branch (330:10): [True: 52, False: 1.20k]
  |  Branch (330:10): [True: 5, False: 1.25k]
  |  Branch (330:33): [True: 1, False: 1.20k]
  ------------------
  331|      5|         throw Decoding_Error("Invalid ECC group order");
  332|      5|      }
  333|       |
  334|  1.25k|      if(auto data = ec_group_data().lookup_from_params(p, a, b, base_pt, order, cofactor)) {
  ------------------
  |  Branch (334:15): [True: 138, False: 1.11k]
  ------------------
  335|    138|         return std::make_pair(data, true);
  336|    138|      }
  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|  1.11k|      auto mod_p = Barrett_Reduction::for_public_modulus(p);
  345|  1.11k|      if(!is_bailie_psw_probable_prime(p, mod_p)) {
  ------------------
  |  Branch (345:10): [True: 440, False: 674]
  ------------------
  346|    440|         throw Decoding_Error("ECC p parameter is not a prime");
  347|    440|      }
  348|       |
  349|    674|      auto mod_order = Barrett_Reduction::for_public_modulus(order);
  350|    674|      if(!is_bailie_psw_probable_prime(order, mod_order)) {
  ------------------
  |  Branch (350:10): [True: 299, False: 375]
  ------------------
  351|    299|         throw Decoding_Error("Invalid ECC order parameter");
  352|    299|      }
  353|       |
  354|    375|      const size_t p_bytes = p.bytes();
  355|    375|      if(base_pt.size() != 1 + p_bytes && base_pt.size() != 1 + 2 * p_bytes) {
  ------------------
  |  Branch (355:10): [True: 326, False: 49]
  |  Branch (355:43): [True: 54, False: 272]
  ------------------
  356|     54|         throw Decoding_Error("Invalid ECC base point encoding");
  357|     54|      }
  358|       |
  359|    321|      auto [g_x, g_y] = [&]() {
  360|    321|         const uint8_t hdr = base_pt[0];
  361|       |
  362|    321|         if(hdr == 0x04 && base_pt.size() == 1 + 2 * p_bytes) {
  363|    321|            const BigInt x = BigInt::from_bytes(std::span{base_pt}.subspan(1, p_bytes));
  364|    321|            const BigInt y = BigInt::from_bytes(std::span{base_pt}.subspan(1 + p_bytes, p_bytes));
  365|       |
  366|    321|            if(x < p && y < p) {
  367|    321|               return std::make_pair(x, y);
  368|    321|            }
  369|    321|         } 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|    321|            const BigInt x = BigInt::from_bytes(std::span{base_pt}.subspan(1, p_bytes));
  372|    321|            BigInt y = sqrt_modulo_prime(((x * x + a) * x + b) % p, p);
  373|       |
  374|    321|            if(x < p && y >= 0) {
  375|    321|               const bool y_mod_2 = (hdr & 0x01) == 1;
  376|    321|               if(y.get_bit(0) != y_mod_2) {
  377|    321|                  y = p - y;
  378|    321|               }
  379|       |
  380|    321|               return std::make_pair(x, y);
  381|    321|            }
  382|    321|         }
  383|       |
  384|    321|         throw Decoding_Error("Invalid ECC base point encoding");
  385|    321|      }();
  386|       |
  387|       |      // TODO(Botan4) we can remove this check since we'll only accept pre-registered groups
  388|    321|      auto y2 = mod_p.square(g_y);
  389|    321|      auto x3_ax_b = mod_p.reduce(mod_p.cube(g_x) + mod_p.multiply(a, g_x) + b);
  390|    321|      if(y2 != x3_ax_b) {
  ------------------
  |  Branch (390:10): [True: 90, False: 231]
  ------------------
  391|     90|         throw Decoding_Error("Invalid ECC base point");
  392|     90|      }
  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|    231|      auto data = EC_Group_Data::create(p, a, b, g_x, g_y, order, cofactor, OID(), source);
  401|    231|      return std::make_pair(data, true);
  402|    321|   } else if(next_obj_type == ASN1_Type::Null) {
  ------------------
  |  Branch (402:14): [True: 1, False: 45]
  ------------------
  403|      1|      throw Decoding_Error("Decoding ImplicitCA ECC parameters is not supported");
  404|     45|   } else {
  405|     45|      throw Decoding_Error(
  406|     45|         fmt("Unexpected tag {} while decoding ECC domain params", asn1_tag_to_string(next_obj_type)));
  407|     45|   }
  408|  3.96k|}
_ZN5Botan8EC_GroupD2Ev:
  412|  12.5k|EC_Group::~EC_Group() = default;
_ZN5Botan8EC_GroupC2ERKS0_:
  414|  5.42k|EC_Group::EC_Group(const EC_Group&) = default;
_ZN5Botan8EC_GroupC2ENSt3__14spanIKhLm18446744073709551615EEE:
  636|  3.96k|EC_Group::EC_Group(std::span<const uint8_t> der) {
  637|  3.96k|   auto data = DER_decode_EC_group(der, EC_Group_Source::ExternalSource);
  638|  3.96k|   m_data = data.first;
  639|  3.96k|   m_explicit_encoding = data.second;
  640|  3.96k|}
_ZNK5Botan8EC_Group4dataEv:
  647|  6.38k|const EC_Group_Data& EC_Group::data() const {
  648|  6.38k|   if(m_data == nullptr) {
  ------------------
  |  Branch (648:7): [True: 0, False: 6.38k]
  ------------------
  649|      0|      throw Invalid_State("EC_Group uninitialized");
  650|      0|   }
  651|  6.38k|   return *m_data;
  652|  6.38k|}
_ZNK5Botan8EC_Group15get_order_bytesEv:
  666|  4.79k|size_t EC_Group::get_order_bytes() const {
  667|  4.79k|   return data().order_bytes();
  668|  4.79k|}
_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|  7.34k|      size_t clear() {
   32|  7.34k|         const lock_guard_type<mutex_type> lock(m_mutex);
   33|  7.34k|         const size_t count = m_registered_curves.size();
   34|  7.34k|         m_registered_curves.clear();
   35|  7.34k|         return count;
   36|  7.34k|      }
_ZN5Botan17EC_Group_Data_Map6lookupERKNS_3OIDE:
   54|  2.64k|      std::shared_ptr<EC_Group_Data> lookup(const OID& oid) {
   55|  2.64k|         const lock_guard_type<mutex_type> lock(m_mutex);
   56|       |
   57|  2.64k|         for(auto i : m_registered_curves) {
  ------------------
  |  Branch (57:21): [True: 0, False: 2.64k]
  ------------------
   58|      0|            if(i->oid() == oid) {
  ------------------
  |  Branch (58:16): [True: 0, False: 0]
  ------------------
   59|      0|               return i;
   60|      0|            }
   61|      0|         }
   62|       |
   63|       |         // Not found, check hardcoded data
   64|  2.64k|         std::shared_ptr<EC_Group_Data> data = EC_Group::EC_group_info(oid);
   65|       |
   66|  2.64k|         if(data) {
  ------------------
  |  Branch (66:13): [True: 2.56k, False: 81]
  ------------------
   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|  2.56k|            if(data->oid() != oid) {
  ------------------
  |  Branch (69:16): [True: 0, False: 2.56k]
  ------------------
   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|  2.56k|            m_registered_curves.push_back(data);
   78|  2.56k|            return data;
   79|  2.56k|         }
   80|       |
   81|       |         // Nope, unknown curve
   82|     81|         return std::shared_ptr<EC_Group_Data>();
   83|  2.64k|      }
_ZN5Botan17EC_Group_Data_Map18lookup_from_paramsERKNS_6BigIntES3_S3_NSt3__14spanIKhLm18446744073709551615EEES3_S3_:
  159|  1.20k|                                                        const BigInt& cofactor) {
  160|  1.20k|         const lock_guard_type<mutex_type> lock(m_mutex);
  161|       |
  162|  1.20k|         for(auto i : m_registered_curves) {
  ------------------
  |  Branch (162:21): [True: 0, False: 1.20k]
  ------------------
  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.20k|         const OID oid_from_order = EC_Group::EC_group_identity_from_order(order);
  170|  1.20k|         if(oid_from_order.has_value()) {
  ------------------
  |  Branch (170:13): [True: 234, False: 970]
  ------------------
  171|    234|            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|    234|            if(new_group && new_group->params_match(p, a, b, base_pt, order, cofactor)) {
  ------------------
  |  Branch (174:16): [True: 234, False: 0]
  |  Branch (174:29): [True: 138, False: 96]
  ------------------
  175|    138|               m_registered_curves.push_back(new_group);
  176|    138|               return new_group;
  177|    138|            }
  178|    234|         }
  179|       |
  180|  1.06k|         return {};
  181|  1.20k|      }
ec_group.cpp:_ZZN5Botan8EC_Group19DER_decode_EC_groupENSt3__14spanIKhLm18446744073709551615EEENS_15EC_Group_SourceEENK3$_0clEv:
  359|    272|      auto [g_x, g_y] = [&]() {
  360|    272|         const uint8_t hdr = base_pt[0];
  361|       |
  362|    272|         if(hdr == 0x04 && base_pt.size() == 1 + 2 * p_bytes) {
  ------------------
  |  Branch (362:13): [True: 251, False: 21]
  |  Branch (362:28): [True: 251, False: 0]
  ------------------
  363|    251|            const BigInt x = BigInt::from_bytes(std::span{base_pt}.subspan(1, p_bytes));
  364|    251|            const BigInt y = BigInt::from_bytes(std::span{base_pt}.subspan(1 + p_bytes, p_bytes));
  365|       |
  366|    251|            if(x < p && y < p) {
  ------------------
  |  Branch (366:16): [True: 249, False: 2]
  |  Branch (366:25): [True: 244, False: 5]
  ------------------
  367|    244|               return std::make_pair(x, y);
  368|    244|            }
  369|    251|         } else if((hdr == 0x02 || hdr == 0x03) && base_pt.size() == 1 + p_bytes) {
  ------------------
  |  Branch (369:21): [True: 2, False: 19]
  |  Branch (369:36): [True: 3, False: 16]
  |  Branch (369:52): [True: 0, False: 5]
  ------------------
  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|     28|         throw Decoding_Error("Invalid ECC base point encoding");
  385|    272|      }();

_ZN5Botan13EC_Group_DataD2Ev:
   27|  2.95k|EC_Group_Data::~EC_Group_Data() = default;
_ZN5Botan13EC_Group_DataC2ERKNS_6BigIntES3_S3_S3_S3_S3_S3_RKNS_3OIDENS_15EC_Group_SourceE:
   39|  2.95k|      m_p(p),
   40|  2.95k|      m_a(a),
   41|  2.95k|      m_b(b),
   42|  2.95k|      m_g_x(g_x),
   43|  2.95k|      m_g_y(g_y),
   44|  2.95k|      m_order(order),
   45|  2.95k|      m_cofactor(cofactor),
   46|       |#if defined(BOTAN_HAS_LEGACY_EC_POINT)
   47|  2.95k|      m_mod_field(Barrett_Reduction::for_public_modulus(p)),
   48|  2.95k|      m_mod_order(Barrett_Reduction::for_public_modulus(order)),
   49|  2.95k|      m_monty(m_p, m_mod_field),
   50|       |#endif
   51|  2.95k|      m_oid(oid),
   52|  2.95k|      m_p_words(p.sig_words()),
   53|  2.95k|      m_p_bits(p.bits()),
   54|  2.95k|      m_order_bits(order.bits()),
   55|  2.95k|      m_order_bytes((m_order_bits + 7) / 8),
   56|  2.95k|      m_a_is_minus_3(a == p - 3),
   57|  2.95k|      m_a_is_zero(a.is_zero()),
   58|  2.95k|      m_has_cofactor(m_cofactor != 1),
   59|  2.95k|      m_order_is_less_than_p(m_order < p),
   60|  2.95k|      m_source(source) {
   61|       |   // Verify the generator (x, y) satisfies y^2 = x^3 + a*x + b (mod p)
   62|  2.95k|   auto mod_p = Barrett_Reduction::for_public_modulus(p);
   63|  2.95k|   const BigInt y2 = mod_p.square(g_y);
   64|  2.95k|   const BigInt x3_ax_b = mod_p.reduce(mod_p.cube(g_x) + mod_p.multiply(a, g_x) + b);
   65|  2.95k|   if(y2 != x3_ax_b) {
  ------------------
  |  Branch (65:7): [True: 0, False: 2.95k]
  ------------------
   66|      0|      throw Invalid_Argument("EC_Group generator is not on the curve");
   67|      0|   }
   68|       |
   69|       |   // TODO(Botan4) we can assume/assert the OID is set
   70|  2.95k|   if(!m_oid.empty()) {
  ------------------
  |  Branch (70:7): [True: 2.79k, False: 154]
  ------------------
   71|  2.79k|      DER_Encoder der(m_der_named_curve);
   72|  2.79k|      der.encode(m_oid);
   73|       |
   74|  2.79k|      const std::string name = m_oid.human_name_or_empty();
   75|  2.79k|      if(!name.empty()) {
  ------------------
  |  Branch (75:10): [True: 2.79k, False: 0]
  ------------------
   76|       |         // returns nullptr if unknown or not supported
   77|  2.79k|         m_pcurve = PCurve::PrimeOrderCurve::for_named_curve(name);
   78|  2.79k|      }
   79|  2.79k|      if(m_pcurve) {
  ------------------
  |  Branch (79:10): [True: 1.63k, False: 1.16k]
  ------------------
   80|  1.63k|         m_engine = EC_Group_Engine::Optimized;
   81|  1.63k|      }
   82|  2.79k|   }
   83|       |
   84|       |   // Try a generic pcurves instance
   85|  2.95k|   if(!m_pcurve && !m_has_cofactor) {
  ------------------
  |  Branch (85:7): [True: 1.32k, False: 1.63k]
  |  Branch (85:20): [True: 1.23k, False: 86]
  ------------------
   86|  1.23k|      m_pcurve = PCurve::PrimeOrderCurve::from_params(p, a, b, g_x, g_y, order);
   87|  1.23k|      if(m_pcurve) {
  ------------------
  |  Branch (87:10): [True: 460, False: 776]
  ------------------
   88|    460|         m_engine = EC_Group_Engine::Generic;
   89|    460|      }
   90|       |      // possibly still null here, if parameters unsuitable or if the
   91|       |      // pcurves_generic module wasn't included in the build
   92|  1.23k|   }
   93|       |
   94|  2.95k|#if defined(BOTAN_HAS_LEGACY_EC_POINT)
   95|  2.95k|   secure_vector<word> ws;
   96|  2.95k|   m_a_r = m_monty.mul(a, m_monty.R2(), ws);
   97|  2.95k|   m_b_r = m_monty.mul(b, m_monty.R2(), ws);
   98|  2.95k|   if(!m_pcurve) {
  ------------------
  |  Branch (98:7): [True: 862, False: 2.09k]
  ------------------
   99|    862|      m_engine = EC_Group_Engine::Legacy;
  100|    862|   }
  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.95k|}
_ZN5Botan13EC_Group_Data6createERKNS_6BigIntES3_S3_S3_S3_S3_S3_RKNS_3OIDENS_15EC_Group_SourceE:
  121|  2.95k|                                                     EC_Group_Source source) {
  122|  2.95k|   auto group = std::make_shared<EC_Group_Data>(p, a, b, g_x, g_y, order, cofactor, oid, source);
  123|       |
  124|  2.95k|#if defined(BOTAN_HAS_LEGACY_EC_POINT)
  125|  2.95k|   group->m_curve = CurveGFp(group.get());
  126|  2.95k|   group->m_base_point = EC_Point(group->m_curve, g_x, g_y);
  127|  2.95k|   if(!group->m_pcurve) {
  ------------------
  |  Branch (127:7): [True: 862, False: 2.09k]
  ------------------
  128|    862|      group->m_base_mult = std::make_unique<EC_Point_Base_Point_Precompute>(group->m_base_point, group->m_mod_order);
  129|    862|   }
  130|  2.95k|#endif
  131|       |
  132|  2.95k|   return group;
  133|  2.95k|}
_ZNK5Botan13EC_Group_Data12params_matchERKNS_6BigIntES3_S3_NSt3__14spanIKhLm18446744073709551615EEES3_S3_:
  172|    234|                                 const BigInt& cofactor) const {
  173|    234|   if(p != this->p()) {
  ------------------
  |  Branch (173:7): [True: 14, False: 220]
  ------------------
  174|     14|      return false;
  175|     14|   }
  176|    220|   if(a != this->a()) {
  ------------------
  |  Branch (176:7): [True: 1, False: 219]
  ------------------
  177|      1|      return false;
  178|      1|   }
  179|    219|   if(b != this->b()) {
  ------------------
  |  Branch (179:7): [True: 3, False: 216]
  ------------------
  180|      3|      return false;
  181|      3|   }
  182|    216|   if(order != this->order()) {
  ------------------
  |  Branch (182:7): [True: 0, False: 216]
  ------------------
  183|      0|      return false;
  184|      0|   }
  185|    216|   if(cofactor != this->cofactor()) {
  ------------------
  |  Branch (185:7): [True: 18, False: 198]
  ------------------
  186|     18|      return false;
  187|     18|   }
  188|       |
  189|    198|   const size_t field_len = this->p_bytes();
  190|       |
  191|    198|   if(base_pt.size() == 1 + field_len && (base_pt[0] == 0x02 || base_pt[0] == 0x03)) {
  ------------------
  |  Branch (191:7): [True: 0, False: 198]
  |  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|    198|   } else if(base_pt.size() == 1 + 2 * field_len && base_pt[0] == 0x04) {
  ------------------
  |  Branch (209:14): [True: 198, False: 0]
  |  Branch (209:53): [True: 197, False: 1]
  ------------------
  210|    197|      const auto g_x = m_g_x.serialize(field_len);
  211|    197|      const auto g_y = m_g_y.serialize(field_len);
  212|       |
  213|    197|      const auto sec1_x = base_pt.subspan(1, field_len);
  214|    197|      const auto sec1_y = base_pt.subspan(1 + field_len, field_len);
  215|       |
  216|    197|      if(!std::ranges::equal(sec1_x, g_x)) {
  ------------------
  |  Branch (216:10): [True: 38, False: 159]
  ------------------
  217|     38|         return false;
  218|     38|      }
  219|       |
  220|    159|      if(!std::ranges::equal(sec1_y, g_y)) {
  ------------------
  |  Branch (220:10): [True: 21, False: 138]
  ------------------
  221|     21|         return false;
  222|     21|      }
  223|       |
  224|    138|      return true;
  225|    159|   } else {
  226|      1|      throw Decoding_Error("Invalid base point encoding in explicit group");
  227|      1|   }
  228|    198|}
_ZNK5Botan13EC_Group_Data18scalar_deserializeENSt3__14spanIKhLm18446744073709551615EEE:
  358|  2.72k|std::unique_ptr<EC_Scalar_Data> EC_Group_Data::scalar_deserialize(std::span<const uint8_t> bytes) const {
  359|  2.72k|   if(bytes.size() != m_order_bytes) {
  ------------------
  |  Branch (359:7): [True: 4, False: 2.71k]
  ------------------
  360|      4|      return nullptr;
  361|      4|   }
  362|       |
  363|  2.71k|   if(m_pcurve) {
  ------------------
  |  Branch (363:7): [True: 1.93k, False: 787]
  ------------------
  364|  1.93k|      if(auto s = m_pcurve->deserialize_scalar(bytes)) {
  ------------------
  |  Branch (364:15): [True: 1.91k, False: 16]
  ------------------
  365|  1.91k|         return std::make_unique<EC_Scalar_Data_PC>(shared_from_this(), *s);
  366|  1.91k|      } else {
  367|     16|         return nullptr;
  368|     16|      }
  369|  1.93k|   } else {
  370|    787|#if defined(BOTAN_HAS_LEGACY_EC_POINT)
  371|    787|      BigInt r(bytes);
  372|       |
  373|    787|      if(r.is_zero() || r >= m_order) {
  ------------------
  |  Branch (373:10): [True: 2, False: 785]
  |  Branch (373:25): [True: 1, False: 784]
  ------------------
  374|      3|         return nullptr;
  375|      3|      }
  376|       |
  377|    784|      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|    787|   }
  382|  2.71k|}
_ZNK5Botan13EC_Group_Data17point_deserializeENSt3__14spanIKhLm18446744073709551615EEE:
  384|  1.31k|std::unique_ptr<EC_AffinePoint_Data> EC_Group_Data::point_deserialize(std::span<const uint8_t> bytes) const {
  385|       |   // The deprecated "hybrid" point format
  386|       |   // TODO(Botan4) remove this
  387|  1.31k|   if(bytes.size() >= 1 + 2 * 4 && (bytes[0] == 0x06 || bytes[0] == 0x07)) {
  ------------------
  |  Branch (387:7): [True: 1.31k, False: 0]
  |  Branch (387:37): [True: 160, False: 1.15k]
  |  Branch (387:57): [True: 573, False: 579]
  ------------------
  388|    733|      const bool hdr_y_is_even = bytes[0] == 0x06;
  389|    733|      const bool y_is_even = (bytes.back() & 0x01) == 0;
  390|       |
  391|    733|      if(hdr_y_is_even == y_is_even) {
  ------------------
  |  Branch (391:10): [True: 202, False: 531]
  ------------------
  392|    202|         std::vector<uint8_t> sec1(bytes.begin(), bytes.end());
  393|    202|         sec1[0] = 0x04;
  394|    202|         return this->point_deserialize(sec1);
  395|    202|      }
  396|    733|   }
  397|       |
  398|  1.11k|   try {
  399|  1.11k|      if(m_pcurve) {
  ------------------
  |  Branch (399:10): [True: 465, False: 645]
  ------------------
  400|    465|         if(auto pt = m_pcurve->deserialize_point(bytes)) {
  ------------------
  |  Branch (400:18): [True: 3, False: 462]
  ------------------
  401|      3|            return std::make_unique<EC_AffinePoint_Data_PC>(shared_from_this(), std::move(*pt));
  402|    462|         } else {
  403|    462|            return {};
  404|    462|         }
  405|    645|      } else {
  406|    645|#if defined(BOTAN_HAS_LEGACY_EC_POINT)
  407|    645|         auto pt = Botan::OS2ECP(bytes, m_curve);
  408|    645|         return std::make_unique<EC_AffinePoint_Data_BN>(shared_from_this(), std::move(pt));
  409|       |#else
  410|       |         throw Not_Implemented("Legacy EC interfaces disabled in this build configuration");
  411|       |#endif
  412|    645|      }
  413|  1.11k|   } catch(...) {
  414|    644|      return {};
  415|    644|   }
  416|  1.11k|}
_ZNK5Botan13EC_Group_Data11point_g_mulERKNS_14EC_Scalar_DataERNS_21RandomNumberGeneratorE:
  466|  1.59k|                                                                RandomNumberGenerator& rng) const {
  467|  1.59k|   if(m_pcurve) {
  ------------------
  |  Branch (467:7): [True: 1.45k, False: 139]
  ------------------
  468|  1.45k|      const auto& k = EC_Scalar_Data_PC::checked_ref(scalar);
  469|  1.45k|      auto pt = m_pcurve->point_to_affine(m_pcurve->mul_by_g(k.value(), rng));
  470|  1.45k|      return std::make_unique<EC_AffinePoint_Data_PC>(shared_from_this(), std::move(pt));
  471|  1.45k|   } else {
  472|    139|#if defined(BOTAN_HAS_LEGACY_EC_POINT)
  473|    139|      const auto& group = scalar.group();
  474|    139|      const auto& bn = EC_Scalar_Data_BN::checked_ref(scalar);
  475|       |
  476|    139|      BOTAN_STATE_CHECK(group->m_base_mult != nullptr);
  ------------------
  |  |   51|    139|   do {                                                         \
  |  |   52|    139|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */             \
  |  |   53|    139|      if(!(expr)) {                                             \
  |  |  ------------------
  |  |  |  Branch (53:10): [True: 0, False: 139]
  |  |  ------------------
  |  |   54|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */    \
  |  |   55|      0|         Botan::throw_invalid_state(#expr, __func__, __FILE__); \
  |  |   56|      0|      }                                                         \
  |  |   57|    139|   } while(0)
  |  |  ------------------
  |  |  |  Branch (57:12): [Folded, False: 139]
  |  |  ------------------
  ------------------
  477|    139|      std::vector<BigInt> ws;
  478|    139|      auto pt = group->m_base_mult->mul(bn.value(), rng, m_order, ws);
  479|    139|      return std::make_unique<EC_AffinePoint_Data_BN>(shared_from_this(), std::move(pt));
  480|       |#else
  481|       |      throw Not_Implemented("Legacy EC interfaces disabled in this build configuration");
  482|       |#endif
  483|    139|   }
  484|  1.59k|}

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

_ZN5Botan8EC_Group13EC_group_infoERKNS_3OIDE:
   16|  2.88k|std::shared_ptr<EC_Group_Data> EC_Group::EC_group_info(const OID& oid) {
   17|       |   // secp256r1
   18|  2.88k|   if(oid == OID{1, 2, 840, 10045, 3, 1, 7}) {
  ------------------
  |  Branch (18:7): [True: 119, False: 2.76k]
  ------------------
   19|    119|      return load_EC_group_info(
   20|    119|         "0xFFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF",
   21|    119|         "0xFFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFC",
   22|    119|         "0x5AC635D8AA3A93E7B3EBBD55769886BC651D06B0CC53B0F63BCE3C3E27D2604B",
   23|    119|         "0x6B17D1F2E12C4247F8BCE6E563A440F277037D812DEB33A0F4A13945D898C296",
   24|    119|         "0x4FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5",
   25|    119|         "0xFFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551",
   26|    119|         oid);
   27|    119|   }
   28|       |
   29|       |   // secp384r1
   30|  2.76k|   if(oid == OID{1, 3, 132, 0, 34}) {
  ------------------
  |  Branch (30:7): [True: 198, False: 2.56k]
  ------------------
   31|    198|      return load_EC_group_info(
   32|    198|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFF",
   33|    198|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFC",
   34|    198|         "0xB3312FA7E23EE7E4988E056BE3F82D19181D9C6EFE8141120314088F5013875AC656398D8A2ED19D2A85C8EDD3EC2AEF",
   35|    198|         "0xAA87CA22BE8B05378EB1C71EF320AD746E1D3B628BA79B9859F741E082542A385502F25DBF55296C3A545E3872760AB7",
   36|    198|         "0x3617DE4A96262C6F5D9E98BF9292DC29F8F41DBD289A147CE9DA3113B5F0B8C00A60B1CE1D7E819D7A431D7C90EA0E5F",
   37|    198|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC7634D81F4372DDF581A0DB248B0A77AECEC196ACCC52973",
   38|    198|         oid);
   39|    198|   }
   40|       |
   41|       |   // secp521r1
   42|  2.56k|   if(oid == OID{1, 3, 132, 0, 35}) {
  ------------------
  |  Branch (42:7): [True: 298, False: 2.26k]
  ------------------
   43|    298|      return load_EC_group_info(
   44|    298|         "0x1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF",
   45|    298|         "0x1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC",
   46|    298|         "0x51953EB9618E1C9A1F929A21A0B68540EEA2DA725B99B315F3B8B489918EF109E156193951EC7E937B1652C0BD3BB1BF073573DF883D2C34F1EF451FD46B503F00",
   47|    298|         "0xC6858E06B70404E9CD9E3ECB662395B4429C648139053FB521F828AF606B4D3DBAA14B5E77EFE75928FE1DC127A2FFA8DE3348B3C1856A429BF97E7E31C2E5BD66",
   48|    298|         "0x11839296A789A3BC0045C8A5FB42C7D1BD998F54449579B446817AFBD17273E662C97EE72995EF42640C550B9013FAD0761353C7086A272C24088BE94769FD16650",
   49|    298|         "0x1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA51868783BF2F966B7FCC0148F709A5D03BB5C9B8899C47AEBB6FB71E91386409",
   50|    298|         oid);
   51|    298|   }
   52|       |
   53|       |   // brainpool160r1
   54|  2.26k|   if(oid == OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 1}) {
  ------------------
  |  Branch (54:7): [True: 1, False: 2.26k]
  ------------------
   55|      1|      return load_EC_group_info(
   56|      1|         "0xE95E4A5F737059DC60DFC7AD95B3D8139515620F",
   57|      1|         "0x340E7BE2A280EB74E2BE61BADA745D97E8F7C300",
   58|      1|         "0x1E589A8595423412134FAA2DBDEC95C8D8675E58",
   59|      1|         "0xBED5AF16EA3F6A4F62938C4631EB5AF7BDBCDBC3",
   60|      1|         "0x1667CB477A1A8EC338F94741669C976316DA6321",
   61|      1|         "0xE95E4A5F737059DC60DF5991D45029409E60FC09",
   62|      1|         oid);
   63|      1|   }
   64|       |
   65|       |   // brainpool192r1
   66|  2.26k|   if(oid == OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 3}) {
  ------------------
  |  Branch (66:7): [True: 1, False: 2.26k]
  ------------------
   67|      1|      return load_EC_group_info(
   68|      1|         "0xC302F41D932A36CDA7A3463093D18DB78FCE476DE1A86297",
   69|      1|         "0x6A91174076B1E0E19C39C031FE8685C1CAE040E5C69A28EF",
   70|      1|         "0x469A28EF7C28CCA3DC721D044F4496BCCA7EF4146FBF25C9",
   71|      1|         "0xC0A0647EAAB6A48753B033C56CB0F0900A2F5C4853375FD6",
   72|      1|         "0x14B690866ABD5BB88B5F4828C1490002E6773FA2FA299B8F",
   73|      1|         "0xC302F41D932A36CDA7A3462F9E9E916B5BE8F1029AC4ACC1",
   74|      1|         oid);
   75|      1|   }
   76|       |
   77|       |   // brainpool224r1
   78|  2.26k|   if(oid == OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 5}) {
  ------------------
  |  Branch (78:7): [True: 156, False: 2.10k]
  ------------------
   79|    156|      return load_EC_group_info(
   80|    156|         "0xD7C134AA264366862A18302575D1D787B09F075797DA89F57EC8C0FF",
   81|    156|         "0x68A5E62CA9CE6C1C299803A6C1530B514E182AD8B0042A59CAD29F43",
   82|    156|         "0x2580F63CCFE44138870713B1A92369E33E2135D266DBB372386C400B",
   83|    156|         "0xD9029AD2C7E5CF4340823B2A87DC68C9E4CE3174C1E6EFDEE12C07D",
   84|    156|         "0x58AA56F772C0726F24C6B89E4ECDAC24354B9E99CAA3F6D3761402CD",
   85|    156|         "0xD7C134AA264366862A18302575D0FB98D116BC4B6DDEBCA3A5A7939F",
   86|    156|         oid);
   87|    156|   }
   88|       |
   89|       |   // brainpool256r1
   90|  2.10k|   if(oid == OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 7}) {
  ------------------
  |  Branch (90:7): [True: 131, False: 1.97k]
  ------------------
   91|    131|      return load_EC_group_info(
   92|    131|         "0xA9FB57DBA1EEA9BC3E660A909D838D726E3BF623D52620282013481D1F6E5377",
   93|    131|         "0x7D5A0975FC2C3057EEF67530417AFFE7FB8055C126DC5C6CE94A4B44F330B5D9",
   94|    131|         "0x26DC5C6CE94A4B44F330B5D9BBD77CBF958416295CF7E1CE6BCCDC18FF8C07B6",
   95|    131|         "0x8BD2AEB9CB7E57CB2C4B482FFC81B7AFB9DE27E1E3BD23C23A4453BD9ACE3262",
   96|    131|         "0x547EF835C3DAC4FD97F8461A14611DC9C27745132DED8E545C1D54C72F046997",
   97|    131|         "0xA9FB57DBA1EEA9BC3E660A909D838D718C397AA3B561A6F7901E0E82974856A7",
   98|    131|         oid);
   99|    131|   }
  100|       |
  101|       |   // brainpool320r1
  102|  1.97k|   if(oid == OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 9}) {
  ------------------
  |  Branch (102:7): [True: 59, False: 1.91k]
  ------------------
  103|     59|      return load_EC_group_info(
  104|     59|         "0xD35E472036BC4FB7E13C785ED201E065F98FCFA6F6F40DEF4F92B9EC7893EC28FCD412B1F1B32E27",
  105|     59|         "0x3EE30B568FBAB0F883CCEBD46D3F3BB8A2A73513F5EB79DA66190EB085FFA9F492F375A97D860EB4",
  106|     59|         "0x520883949DFDBC42D3AD198640688A6FE13F41349554B49ACC31DCCD884539816F5EB4AC8FB1F1A6",
  107|     59|         "0x43BD7E9AFB53D8B85289BCC48EE5BFE6F20137D10A087EB6E7871E2A10A599C710AF8D0D39E20611",
  108|     59|         "0x14FDD05545EC1CC8AB4093247F77275E0743FFED117182EAA9C77877AAAC6AC7D35245D1692E8EE1",
  109|     59|         "0xD35E472036BC4FB7E13C785ED201E065F98FCFA5B68F12A32D482EC7EE8658E98691555B44C59311",
  110|     59|         oid);
  111|     59|   }
  112|       |
  113|       |   // brainpool384r1
  114|  1.91k|   if(oid == OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 11}) {
  ------------------
  |  Branch (114:7): [True: 185, False: 1.73k]
  ------------------
  115|    185|      return load_EC_group_info(
  116|    185|         "0x8CB91E82A3386D280F5D6F7E50E641DF152F7109ED5456B412B1DA197FB71123ACD3A729901D1A71874700133107EC53",
  117|    185|         "0x7BC382C63D8C150C3C72080ACE05AFA0C2BEA28E4FB22787139165EFBA91F90F8AA5814A503AD4EB04A8C7DD22CE2826",
  118|    185|         "0x4A8C7DD22CE28268B39B55416F0447C2FB77DE107DCD2A62E880EA53EEB62D57CB4390295DBC9943AB78696FA504C11",
  119|    185|         "0x1D1C64F068CF45FFA2A63A81B7C13F6B8847A3E77EF14FE3DB7FCAFE0CBD10E8E826E03436D646AAEF87B2E247D4AF1E",
  120|    185|         "0x8ABE1D7520F9C2A45CB1EB8E95CFD55262B70B29FEEC5864E19C054FF99129280E4646217791811142820341263C5315",
  121|    185|         "0x8CB91E82A3386D280F5D6F7E50E641DF152F7109ED5456B31F166E6CAC0425A7CF3AB6AF6B7FC3103B883202E9046565",
  122|    185|         oid);
  123|    185|   }
  124|       |
  125|       |   // brainpool512r1
  126|  1.73k|   if(oid == OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 13}) {
  ------------------
  |  Branch (126:7): [True: 153, False: 1.57k]
  ------------------
  127|    153|      return load_EC_group_info(
  128|    153|         "0xAADD9DB8DBE9C48B3FD4E6AE33C9FC07CB308DB3B3C9D20ED6639CCA703308717D4D9B009BC66842AECDA12AE6A380E62881FF2F2D82C68528AA6056583A48F3",
  129|    153|         "0x7830A3318B603B89E2327145AC234CC594CBDD8D3DF91610A83441CAEA9863BC2DED5D5AA8253AA10A2EF1C98B9AC8B57F1117A72BF2C7B9E7C1AC4D77FC94CA",
  130|    153|         "0x3DF91610A83441CAEA9863BC2DED5D5AA8253AA10A2EF1C98B9AC8B57F1117A72BF2C7B9E7C1AC4D77FC94CADC083E67984050B75EBAE5DD2809BD638016F723",
  131|    153|         "0x81AEE4BDD82ED9645A21322E9C4C6A9385ED9F70B5D916C1B43B62EEF4D0098EFF3B1F78E2D0D48D50D1687B93B97D5F7C6D5047406A5E688B352209BCB9F822",
  132|    153|         "0x7DDE385D566332ECC0EABFA9CF7822FDF209F70024A57B1AA000C55B881F8111B2DCDE494A5F485E5BCA4BD88A2763AED1CA2B2FA8F0540678CD1E0F3AD80892",
  133|    153|         "0xAADD9DB8DBE9C48B3FD4E6AE33C9FC07CB308DB3B3C9D20ED6639CCA70330870553E5C414CA92619418661197FAC10471DB1D381085DDADDB58796829CA90069",
  134|    153|         oid);
  135|    153|   }
  136|       |
  137|       |   // frp256v1
  138|  1.57k|   if(oid == OID{1, 2, 250, 1, 223, 101, 256, 1}) {
  ------------------
  |  Branch (138:7): [True: 0, False: 1.57k]
  ------------------
  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|  1.57k|   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: 1.57k]
  |  Branch (150:7): [True: 0, False: 1.57k]
  |  Branch (150:50): [True: 0, False: 1.57k]
  |  Branch (150:88): [True: 0, False: 1.57k]
  ------------------
  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|  1.57k|   if(oid == OID{1, 2, 643, 7, 1, 2, 1, 2, 1}) {
  ------------------
  |  Branch (162:7): [True: 0, False: 1.57k]
  ------------------
  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|  1.57k|   if(oid == OID{1, 3, 132, 0, 9}) {
  ------------------
  |  Branch (174:7): [True: 10, False: 1.56k]
  ------------------
  175|     10|      return load_EC_group_info(
  176|     10|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC73",
  177|     10|         "0x0",
  178|     10|         "0x7",
  179|     10|         "0x3B4C382CE37AA192A4019E763036F4F5DD4D7EBB",
  180|     10|         "0x938CF935318FDCED6BC28286531733C3F03C4FEE",
  181|     10|         "0x100000000000000000001B8FA16DFAB9ACA16B6B3",
  182|     10|         oid);
  183|     10|   }
  184|       |
  185|       |   // secp160r1
  186|  1.56k|   if(oid == OID{1, 3, 132, 0, 8}) {
  ------------------
  |  Branch (186:7): [True: 16, False: 1.55k]
  ------------------
  187|     16|      return load_EC_group_info(
  188|     16|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFF",
  189|     16|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFC",
  190|     16|         "0x1C97BEFC54BD7A8B65ACF89F81D4D4ADC565FA45",
  191|     16|         "0x4A96B5688EF573284664698968C38BB913CBFC82",
  192|     16|         "0x23A628553168947D59DCC912042351377AC5FB32",
  193|     16|         "0x100000000000000000001F4C8F927AED3CA752257",
  194|     16|         oid);
  195|     16|   }
  196|       |
  197|       |   // secp160r2
  198|  1.55k|   if(oid == OID{1, 3, 132, 0, 30}) {
  ------------------
  |  Branch (198:7): [True: 15, False: 1.53k]
  ------------------
  199|     15|      return load_EC_group_info(
  200|     15|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC73",
  201|     15|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC70",
  202|     15|         "0xB4E134D3FB59EB8BAB57274904664D5AF50388BA",
  203|     15|         "0x52DCB034293A117E1F4FF11B30F7199D3144CE6D",
  204|     15|         "0xFEAFFEF2E331F296E071FA0DF9982CFEA7D43F2E",
  205|     15|         "0x100000000000000000000351EE786A818F3A1A16B",
  206|     15|         oid);
  207|     15|   }
  208|       |
  209|       |   // secp192k1
  210|  1.53k|   if(oid == OID{1, 3, 132, 0, 31}) {
  ------------------
  |  Branch (210:7): [True: 178, False: 1.36k]
  ------------------
  211|    178|      return load_EC_group_info(
  212|    178|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFEE37",
  213|    178|         "0x0",
  214|    178|         "0x3",
  215|    178|         "0xDB4FF10EC057E9AE26B07D0280B7F4341DA5D1B1EAE06C7D",
  216|    178|         "0x9B2F2F6D9C5628A7844163D015BE86344082AA88D95E2F9D",
  217|    178|         "0xFFFFFFFFFFFFFFFFFFFFFFFE26F2FC170F69466A74DEFD8D",
  218|    178|         oid);
  219|    178|   }
  220|       |
  221|       |   // secp192r1
  222|  1.36k|   if(oid == OID{1, 2, 840, 10045, 3, 1, 1}) {
  ------------------
  |  Branch (222:7): [True: 0, False: 1.36k]
  ------------------
  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|  1.36k|   if(oid == OID{1, 3, 132, 0, 32}) {
  ------------------
  |  Branch (234:7): [True: 732, False: 628]
  ------------------
  235|    732|      return load_EC_group_info(
  236|    732|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFE56D",
  237|    732|         "0x0",
  238|    732|         "0x5",
  239|    732|         "0xA1455B334DF099DF30FC28A169A467E9E47075A90F7E650EB6B7A45C",
  240|    732|         "0x7E089FED7FBA344282CAFBD6F7E319F7C0B0BD59E2CA4BDB556D61A5",
  241|    732|         "0x10000000000000000000000000001DCE8D2EC6184CAF0A971769FB1F7",
  242|    732|         oid);
  243|    732|   }
  244|       |
  245|       |   // secp224r1
  246|    628|   if(oid == OID{1, 3, 132, 0, 33}) {
  ------------------
  |  Branch (246:7): [True: 352, False: 276]
  ------------------
  247|    352|      return load_EC_group_info(
  248|    352|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000001",
  249|    352|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFE",
  250|    352|         "0xB4050A850C04B3ABF54132565044B0B7D7BFD8BA270B39432355FFB4",
  251|    352|         "0xB70E0CBD6BB4BF7F321390B94A03C1D356C21122343280D6115C1D21",
  252|    352|         "0xBD376388B5F723FB4C22DFE6CD4375A05A07476444D5819985007E34",
  253|    352|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFF16A2E0B8F03E13DD29455C5C2A3D",
  254|    352|         oid);
  255|    352|   }
  256|       |
  257|       |   // secp256k1
  258|    276|   if(oid == OID{1, 3, 132, 0, 10}) {
  ------------------
  |  Branch (258:7): [True: 195, False: 81]
  ------------------
  259|    195|      return load_EC_group_info(
  260|    195|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F",
  261|    195|         "0x0",
  262|    195|         "0x7",
  263|    195|         "0x79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798",
  264|    195|         "0x483ADA7726A3C4655DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8",
  265|    195|         "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141",
  266|    195|         oid);
  267|    195|   }
  268|       |
  269|       |   // sm2p256v1
  270|     81|   if(oid == OID{1, 2, 156, 10197, 1, 301}) {
  ------------------
  |  Branch (270:7): [True: 0, False: 81]
  ------------------
  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|     81|   if(oid == OID{1, 2, 840, 10045, 3, 1, 2}) {
  ------------------
  |  Branch (282:7): [True: 0, False: 81]
  ------------------
  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|     81|   if(oid == OID{1, 2, 840, 10045, 3, 1, 3}) {
  ------------------
  |  Branch (294:7): [True: 0, False: 81]
  ------------------
  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|     81|   if(oid == OID{1, 2, 840, 10045, 3, 1, 4}) {
  ------------------
  |  Branch (306:7): [True: 0, False: 81]
  ------------------
  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|     81|   if(oid == OID{1, 2, 840, 10045, 3, 1, 5}) {
  ------------------
  |  Branch (318:7): [True: 0, False: 81]
  ------------------
  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|     81|   if(oid == OID{1, 2, 840, 10045, 3, 1, 6}) {
  ------------------
  |  Branch (330:7): [True: 0, False: 81]
  ------------------
  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|     81|   if(oid == OID{1, 3, 6, 1, 4, 1, 25258, 4, 3}) {
  ------------------
  |  Branch (342:7): [True: 0, False: 81]
  ------------------
  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|     81|   return std::shared_ptr<EC_Group_Data>();
  354|     81|}
_ZN5Botan8EC_Group28EC_group_identity_from_orderERKNS_6BigIntE:
  358|  1.20k|   {
  359|  1.20k|   const uint32_t low_bits = static_cast<uint32_t>(order.word_at(0));
  360|       |
  361|  1.20k|   if(low_bits == 0xFC632551 && order == BigInt("0xFFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551")) {
  ------------------
  |  Branch (361:7): [True: 155, False: 1.04k]
  |  Branch (361:7): [True: 119, False: 1.08k]
  |  Branch (361:33): [True: 119, False: 36]
  ------------------
  362|    119|      return OID{1, 2, 840, 10045, 3, 1, 7};
  363|    119|   }
  364|       |
  365|  1.08k|   if(low_bits == 0xCCC52973 && order == BigInt("0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC7634D81F4372DDF581A0DB248B0A77AECEC196ACCC52973")) {
  ------------------
  |  Branch (365:7): [True: 5, False: 1.08k]
  |  Branch (365:7): [True: 0, False: 1.08k]
  |  Branch (365:33): [True: 0, False: 5]
  ------------------
  366|      0|      return OID{1, 3, 132, 0, 34};
  367|      0|   }
  368|       |
  369|  1.08k|   if(low_bits == 0x91386409 && order == BigInt("0x1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA51868783BF2F966B7FCC0148F709A5D03BB5C9B8899C47AEBB6FB71E91386409")) {
  ------------------
  |  Branch (369:7): [True: 144, False: 941]
  |  Branch (369:7): [True: 112, False: 973]
  |  Branch (369:33): [True: 112, False: 32]
  ------------------
  370|    112|      return OID{1, 3, 132, 0, 35};
  371|    112|   }
  372|       |
  373|    973|   if(low_bits == 0x9E60FC09 && order == BigInt("0xE95E4A5F737059DC60DF5991D45029409E60FC09")) {
  ------------------
  |  Branch (373:7): [True: 0, False: 973]
  |  Branch (373:7): [True: 0, False: 973]
  |  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|    973|   if(low_bits == 0x9AC4ACC1 && order == BigInt("0xC302F41D932A36CDA7A3462F9E9E916B5BE8F1029AC4ACC1")) {
  ------------------
  |  Branch (377:7): [True: 0, False: 973]
  |  Branch (377:7): [True: 0, False: 973]
  |  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|    973|   if(low_bits == 0xA5A7939F && order == BigInt("0xD7C134AA264366862A18302575D0FB98D116BC4B6DDEBCA3A5A7939F")) {
  ------------------
  |  Branch (381:7): [True: 1, False: 972]
  |  Branch (381:7): [True: 0, False: 973]
  |  Branch (381:33): [True: 0, False: 1]
  ------------------
  382|      0|      return OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 5};
  383|      0|   }
  384|       |
  385|    973|   if(low_bits == 0x974856A7 && order == BigInt("0xA9FB57DBA1EEA9BC3E660A909D838D718C397AA3B561A6F7901E0E82974856A7")) {
  ------------------
  |  Branch (385:7): [True: 2, False: 971]
  |  Branch (385:7): [True: 0, False: 973]
  |  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|    973|   if(low_bits == 0x44C59311 && order == BigInt("0xD35E472036BC4FB7E13C785ED201E065F98FCFA5B68F12A32D482EC7EE8658E98691555B44C59311")) {
  ------------------
  |  Branch (389:7): [True: 0, False: 973]
  |  Branch (389:7): [True: 0, False: 973]
  |  Branch (389:33): [True: 0, False: 0]
  ------------------
  390|      0|      return OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 9};
  391|      0|   }
  392|       |
  393|    973|   if(low_bits == 0xE9046565 && order == BigInt("0x8CB91E82A3386D280F5D6F7E50E641DF152F7109ED5456B31F166E6CAC0425A7CF3AB6AF6B7FC3103B883202E9046565")) {
  ------------------
  |  Branch (393:7): [True: 3, False: 970]
  |  Branch (393:7): [True: 0, False: 973]
  |  Branch (393:33): [True: 0, False: 3]
  ------------------
  394|      0|      return OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 11};
  395|      0|   }
  396|       |
  397|    973|   if(low_bits == 0x9CA90069 && order == BigInt("0xAADD9DB8DBE9C48B3FD4E6AE33C9FC07CB308DB3B3C9D20ED6639CCA70330870553E5C414CA92619418661197FAC10471DB1D381085DDADDB58796829CA90069")) {
  ------------------
  |  Branch (397:7): [True: 3, False: 970]
  |  Branch (397:7): [True: 0, False: 973]
  |  Branch (397:33): [True: 0, False: 3]
  ------------------
  398|      0|      return OID{1, 3, 36, 3, 3, 2, 8, 1, 1, 13};
  399|      0|   }
  400|       |
  401|    973|   if(low_bits == 0xC6D655E1 && order == BigInt("0xF1FD178C0B3AD58F10126DE8CE42435B53DC67E140D2BF941FFDD459C6D655E1")) {
  ------------------
  |  Branch (401:7): [True: 13, False: 960]
  |  Branch (401:7): [True: 0, False: 973]
  |  Branch (401:33): [True: 0, False: 13]
  ------------------
  402|      0|      return OID{1, 2, 250, 1, 223, 101, 256, 1};
  403|      0|   }
  404|       |
  405|    973|   if(low_bits == 0xB761B893 && order == BigInt("0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF6C611070995AD10045841B09B761B893")) {
  ------------------
  |  Branch (405:7): [True: 0, False: 973]
  |  Branch (405:7): [True: 0, False: 973]
  |  Branch (405:33): [True: 0, False: 0]
  ------------------
  406|      0|      return OID{1, 2, 643, 7, 1, 2, 1, 1, 1};
  407|      0|   }
  408|       |
  409|    973|   if(low_bits == 0x1F10B275 && order == BigInt("0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF27E69532F48D89116FF22B8D4E0560609B4B38ABFAD2B85DCACDB1411F10B275")) {
  ------------------
  |  Branch (409:7): [True: 9, False: 964]
  |  Branch (409:7): [True: 0, False: 973]
  |  Branch (409:33): [True: 0, False: 9]
  ------------------
  410|      0|      return OID{1, 2, 643, 7, 1, 2, 1, 2, 1};
  411|      0|   }
  412|       |
  413|    973|   if(low_bits == 0xCA16B6B3 && order == BigInt("0x100000000000000000001B8FA16DFAB9ACA16B6B3")) {
  ------------------
  |  Branch (413:7): [True: 1, False: 972]
  |  Branch (413:7): [True: 0, False: 973]
  |  Branch (413:33): [True: 0, False: 1]
  ------------------
  414|      0|      return OID{1, 3, 132, 0, 9};
  415|      0|   }
  416|       |
  417|    973|   if(low_bits == 0xCA752257 && order == BigInt("0x100000000000000000001F4C8F927AED3CA752257")) {
  ------------------
  |  Branch (417:7): [True: 0, False: 973]
  |  Branch (417:7): [True: 0, False: 973]
  |  Branch (417:33): [True: 0, False: 0]
  ------------------
  418|      0|      return OID{1, 3, 132, 0, 8};
  419|      0|   }
  420|       |
  421|    973|   if(low_bits == 0xF3A1A16B && order == BigInt("0x100000000000000000000351EE786A818F3A1A16B")) {
  ------------------
  |  Branch (421:7): [True: 1, False: 972]
  |  Branch (421:7): [True: 0, False: 973]
  |  Branch (421:33): [True: 0, False: 1]
  ------------------
  422|      0|      return OID{1, 3, 132, 0, 30};
  423|      0|   }
  424|       |
  425|    973|   if(low_bits == 0x74DEFD8D && order == BigInt("0xFFFFFFFFFFFFFFFFFFFFFFFE26F2FC170F69466A74DEFD8D")) {
  ------------------
  |  Branch (425:7): [True: 2, False: 971]
  |  Branch (425:7): [True: 0, False: 973]
  |  Branch (425:33): [True: 0, False: 2]
  ------------------
  426|      0|      return OID{1, 3, 132, 0, 31};
  427|      0|   }
  428|       |
  429|    973|   if(low_bits == 0xB4D22831 && order == BigInt("0xFFFFFFFFFFFFFFFFFFFFFFFF99DEF836146BC9B1B4D22831")) {
  ------------------
  |  Branch (429:7): [True: 1, False: 972]
  |  Branch (429:7): [True: 0, False: 973]
  |  Branch (429:33): [True: 0, False: 1]
  ------------------
  430|      0|      return OID{1, 2, 840, 10045, 3, 1, 1};
  431|      0|   }
  432|       |
  433|    973|   if(low_bits == 0x769FB1F7 && order == BigInt("0x10000000000000000000000000001DCE8D2EC6184CAF0A971769FB1F7")) {
  ------------------
  |  Branch (433:7): [True: 2, False: 971]
  |  Branch (433:7): [True: 0, False: 973]
  |  Branch (433:33): [True: 0, False: 2]
  ------------------
  434|      0|      return OID{1, 3, 132, 0, 32};
  435|      0|   }
  436|       |
  437|    973|   if(low_bits == 0x5C5C2A3D && order == BigInt("0xFFFFFFFFFFFFFFFFFFFFFFFFFFFF16A2E0B8F03E13DD29455C5C2A3D")) {
  ------------------
  |  Branch (437:7): [True: 5, False: 968]
  |  Branch (437:7): [True: 3, False: 970]
  |  Branch (437:33): [True: 3, False: 2]
  ------------------
  438|      3|      return OID{1, 3, 132, 0, 33};
  439|      3|   }
  440|       |
  441|    970|   if(low_bits == 0xD0364141 && order == BigInt("0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141")) {
  ------------------
  |  Branch (441:7): [True: 1, False: 969]
  |  Branch (441:7): [True: 0, False: 970]
  |  Branch (441:33): [True: 0, False: 1]
  ------------------
  442|      0|      return OID{1, 3, 132, 0, 10};
  443|      0|   }
  444|       |
  445|    970|   if(low_bits == 0x39D54123 && order == BigInt("0xFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123")) {
  ------------------
  |  Branch (445:7): [True: 0, False: 970]
  |  Branch (445:7): [True: 0, False: 970]
  |  Branch (445:33): [True: 0, False: 0]
  ------------------
  446|      0|      return OID{1, 2, 156, 10197, 1, 301};
  447|      0|   }
  448|       |
  449|    970|   if(low_bits == 0x48D8DD31 && order == BigInt("0xFFFFFFFFFFFFFFFFFFFFFFFE5FB1A724DC80418648D8DD31")) {
  ------------------
  |  Branch (449:7): [True: 0, False: 970]
  |  Branch (449:7): [True: 0, False: 970]
  |  Branch (449:33): [True: 0, False: 0]
  ------------------
  450|      0|      return OID{1, 2, 840, 10045, 3, 1, 2};
  451|      0|   }
  452|       |
  453|    970|   if(low_bits == 0xF640EC13 && order == BigInt("0xFFFFFFFFFFFFFFFFFFFFFFFF7A62D031C83F4294F640EC13")) {
  ------------------
  |  Branch (453:7): [True: 2, False: 968]
  |  Branch (453:7): [True: 0, False: 970]
  |  Branch (453:33): [True: 0, False: 2]
  ------------------
  454|      0|      return OID{1, 2, 840, 10045, 3, 1, 3};
  455|      0|   }
  456|       |
  457|    970|   if(low_bits == 0x88909D0B && order == BigInt("0x7FFFFFFFFFFFFFFFFFFFFFFF7FFFFF9E5E9A9F5D9071FBD1522688909D0B")) {
  ------------------
  |  Branch (457:7): [True: 5, False: 965]
  |  Branch (457:7): [True: 0, False: 970]
  |  Branch (457:33): [True: 0, False: 5]
  ------------------
  458|      0|      return OID{1, 2, 840, 10045, 3, 1, 4};
  459|      0|   }
  460|       |
  461|    970|   if(low_bits == 0xBC582063 && order == BigInt("0x7FFFFFFFFFFFFFFFFFFFFFFF800000CFA7E8594377D414C03821BC582063")) {
  ------------------
  |  Branch (461:7): [True: 2, False: 968]
  |  Branch (461:7): [True: 0, False: 970]
  |  Branch (461:33): [True: 0, False: 2]
  ------------------
  462|      0|      return OID{1, 2, 840, 10045, 3, 1, 5};
  463|      0|   }
  464|       |
  465|    970|   if(low_bits == 0x46526551 && order == BigInt("0x7FFFFFFFFFFFFFFFFFFFFFFF7FFFFF975DEB41B3A6057C3C432146526551")) {
  ------------------
  |  Branch (465:7): [True: 7, False: 963]
  |  Branch (465:7): [True: 0, False: 970]
  |  Branch (465:33): [True: 0, False: 7]
  ------------------
  466|      0|      return OID{1, 2, 840, 10045, 3, 1, 6};
  467|      0|   }
  468|       |
  469|    970|   if(low_bits == 0x0433555D && order == BigInt("0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5B3CA4FB94E7831B4FC258ED97D0BDC63B568B36607CD243CE153F390433555D")) {
  ------------------
  |  Branch (469:7): [True: 17, False: 953]
  |  Branch (469:7): [True: 0, False: 970]
  |  Branch (469:33): [True: 0, False: 17]
  ------------------
  470|      0|      return OID{1, 3, 6, 1, 4, 1, 25258, 4, 3};
  471|      0|   }
  472|       |
  473|    970|   return OID();
  474|    970|}

_ZN5Botan9EC_ScalarC2ENSt3__110unique_ptrINS_14EC_Scalar_DataENS1_14default_deleteIS3_EEEE:
   22|  2.70k|EC_Scalar::EC_Scalar(std::unique_ptr<EC_Scalar_Data> scalar) : m_scalar(std::move(scalar)) {
   23|  2.70k|   BOTAN_ASSERT_NONNULL(m_scalar);
  ------------------
  |  |  116|  2.70k|   do {                                                                                   \
  |  |  117|  2.70k|      if((ptr) == nullptr) {                                                              \
  |  |  ------------------
  |  |  |  Branch (117:10): [True: 0, False: 2.70k]
  |  |  ------------------
  |  |  118|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                              \
  |  |  119|      0|         Botan::assertion_failure(#ptr " is not null", "", __func__, __FILE__, __LINE__); \
  |  |  120|      0|      }                                                                                   \
  |  |  121|  2.70k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (121:12): [Folded, False: 2.70k]
  |  |  ------------------
  ------------------
   24|  2.70k|}
_ZN5Botan9EC_ScalarC2ERKS0_:
   26|  2.70k|EC_Scalar::EC_Scalar(const EC_Scalar& other) : m_scalar(other.inner().clone()) {}
_ZN5Botan9EC_ScalarC2EOS0_:
   28|  5.40k|EC_Scalar::EC_Scalar(EC_Scalar&& other) noexcept : m_scalar(std::move(other.m_scalar)) {}
_ZN5Botan9EC_ScalarD2Ev:
   49|  10.8k|EC_Scalar::~EC_Scalar() = default;
_ZNK5Botan9EC_Scalar9to_bigintEv:
   83|  2.70k|BigInt EC_Scalar::to_bigint() const {
   84|  2.70k|   secure_vector<uint8_t> bytes(m_scalar->bytes());
   85|  2.70k|   m_scalar->serialize_to(bytes);
   86|  2.70k|   return BigInt::from_bytes(bytes);
   87|  2.70k|}
_ZN5Botan9EC_Scalar11deserializeERKNS_8EC_GroupENSt3__14spanIKhLm18446744073709551615EEE:
  125|  2.72k|std::optional<EC_Scalar> EC_Scalar::deserialize(const EC_Group& group, std::span<const uint8_t> bytes) {
  126|  2.72k|   if(auto v = group._data()->scalar_deserialize(bytes)) {
  ------------------
  |  Branch (126:12): [True: 2.70k, False: 23]
  ------------------
  127|  2.70k|      return EC_Scalar(std::move(v));
  128|  2.70k|   } else {
  129|     23|      return {};
  130|     23|   }
  131|  2.72k|}
_ZNK5Botan9EC_Scalar7is_zeroEv:
  140|  2.70k|bool EC_Scalar::is_zero() const {
  141|  2.70k|   return inner().is_zero();
  142|  2.70k|}
_ZN5Botan9EC_Scalar7zeroizeEv:
  185|  2.70k|void EC_Scalar::zeroize() {
  186|  2.70k|   m_scalar->zeroize();
  187|  2.70k|}

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

_ZN5Botan8CurveGFpC2EPKNS_13EC_Group_DataE:
   28|  2.95k|CurveGFp::CurveGFp(const EC_Group_Data* group) : m_group(group) {
   29|  2.95k|   BOTAN_ASSERT_NONNULL(m_group);
  ------------------
  |  |  116|  2.95k|   do {                                                                                   \
  |  |  117|  2.95k|      if((ptr) == nullptr) {                                                              \
  |  |  ------------------
  |  |  |  Branch (117:10): [True: 0, False: 2.95k]
  |  |  ------------------
  |  |  118|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                              \
  |  |  119|      0|         Botan::assertion_failure(#ptr " is not null", "", __func__, __FILE__, __LINE__); \
  |  |  120|      0|      }                                                                                   \
  |  |  121|  2.95k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (121:12): [Folded, False: 2.95k]
  |  |  ------------------
  ------------------
   30|  2.95k|}
_ZNK5Botan8CurveGFp5groupEv:
   32|  1.12M|const EC_Group_Data& CurveGFp::group() const {
   33|  1.12M|   BOTAN_ASSERT_NONNULL(m_group);
  ------------------
  |  |  116|  1.12M|   do {                                                                                   \
  |  |  117|  1.12M|      if((ptr) == nullptr) {                                                              \
  |  |  ------------------
  |  |  |  Branch (117:10): [True: 0, False: 1.12M]
  |  |  ------------------
  |  |  118|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                              \
  |  |  119|      0|         Botan::assertion_failure(#ptr " is not null", "", __func__, __FILE__, __LINE__); \
  |  |  120|      0|      }                                                                                   \
  |  |  121|  1.12M|   } while(0)
  |  |  ------------------
  |  |  |  Branch (121:12): [Folded, False: 1.12M]
  |  |  ------------------
  ------------------
   34|  1.12M|   return *m_group;
   35|  1.12M|}
_ZNK5Botan8CurveGFp5get_aEv:
   37|    645|const BigInt& CurveGFp::get_a() const {
   38|    645|   return this->group().a();
   39|    645|}
_ZNK5Botan8CurveGFp5get_bEv:
   41|    645|const BigInt& CurveGFp::get_b() const {
   42|    645|   return this->group().b();
   43|    645|}
_ZNK5Botan8CurveGFp5get_pEv:
   45|    645|const BigInt& CurveGFp::get_p() const {
   46|    645|   return this->group().p();
   47|    645|}
_ZNK5Botan8CurveGFp11get_p_wordsEv:
   49|   403k|size_t CurveGFp::get_p_words() const {
   50|   403k|   return this->group().p_words();
   51|   403k|}
_ZN5Botan8EC_PointC2ERKNS_8CurveGFpE:
  108|    139|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|    139|EC_Point EC_Point::zero() const {
  111|    139|   return EC_Point(m_curve);
  112|    139|}
_ZN5Botan8EC_PointC2ERKNS_8CurveGFpENS_6BigIntES4_:
  115|  4.51k|      m_curve(curve), m_x(std::move(x)), m_y(std::move(y)), m_z(m_curve.group().monty().R1()) {
  116|  4.51k|   const auto& group = m_curve.group();
  117|       |
  118|  4.51k|   if(m_x < 0 || m_x >= group.p()) {
  ------------------
  |  Branch (118:7): [True: 0, False: 4.51k]
  |  Branch (118:18): [True: 0, False: 4.51k]
  ------------------
  119|      0|      throw Invalid_Argument("Invalid EC_Point affine x");
  120|      0|   }
  121|  4.51k|   if(m_y < 0 || m_y >= group.p()) {
  ------------------
  |  Branch (121:7): [True: 0, False: 4.51k]
  |  Branch (121:18): [True: 0, False: 4.51k]
  ------------------
  122|      0|      throw Invalid_Argument("Invalid EC_Point affine y");
  123|      0|   }
  124|       |
  125|  4.51k|   secure_vector<word> monty_ws(monty_ws_size(group));
  126|       |
  127|  4.51k|   to_rep(group, m_x, monty_ws);
  128|  4.51k|   to_rep(group, m_y, monty_ws);
  129|  4.51k|}
_ZN5Botan8EC_Point10add_affineEPKmmS2_mRNSt3__16vectorINS_6BigIntENS3_9allocatorIS5_EEEE:
  188|  9.86k|   const word x_words[], size_t x_size, const word y_words[], size_t y_size, std::vector<BigInt>& ws_bn) {
  189|  9.86k|   if((CT::all_zeros(x_words, x_size) & CT::all_zeros(y_words, y_size)).as_bool()) {
  ------------------
  |  Branch (189:7): [True: 2.70k, False: 7.16k]
  ------------------
  190|  2.70k|      return;
  191|  2.70k|   }
  192|       |
  193|  7.16k|   const auto& group = m_curve.group();
  194|       |
  195|  7.16k|   if(is_zero()) {
  ------------------
  |  Branch (195:7): [True: 139, False: 7.02k]
  ------------------
  196|    139|      m_x.set_words(x_words, x_size);
  197|    139|      m_y.set_words(y_words, y_size);
  198|    139|      m_z = group.monty().R1();
  199|    139|      return;
  200|    139|   }
  201|       |
  202|  7.02k|   resize_ws(ws_bn, monty_ws_size(group));
  203|       |
  204|  7.02k|   secure_vector<word>& ws = ws_bn[0].get_word_vector();
  205|  7.02k|   secure_vector<word>& sub_ws = ws_bn[1].get_word_vector();
  206|       |
  207|  7.02k|   BigInt& T0 = ws_bn[2];
  208|  7.02k|   BigInt& T1 = ws_bn[3];
  209|  7.02k|   BigInt& T2 = ws_bn[4];
  210|  7.02k|   BigInt& T3 = ws_bn[5];
  211|  7.02k|   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|  7.02k|   const BigInt& p = group.p();
  219|       |
  220|  7.02k|   fe_sqr(group, T3, m_z, ws);                  // z1^2
  221|  7.02k|   fe_mul(group, T4, x_words, x_size, T3, ws);  // x2*z1^2
  222|       |
  223|  7.02k|   fe_mul(group, T2, m_z, T3, ws);              // z1^3
  224|  7.02k|   fe_mul(group, T0, y_words, y_size, T2, ws);  // y2*z1^3
  225|       |
  226|  7.02k|   T4.mod_sub(m_x, p, sub_ws);  // x2*z1^2 - x1*z2^2
  227|       |
  228|  7.02k|   T0.mod_sub(m_y, p, sub_ws);
  229|       |
  230|  7.02k|   if(T4.is_zero()) {
  ------------------
  |  Branch (230:7): [True: 3, False: 7.02k]
  ------------------
  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|  7.02k|   fe_sqr(group, T2, T4, ws);
  244|       |
  245|  7.02k|   fe_mul(group, T3, m_x, T2, ws);
  246|       |
  247|  7.02k|   fe_mul(group, T1, T2, T4, ws);
  248|       |
  249|  7.02k|   fe_sqr(group, m_x, T0, ws);
  250|  7.02k|   m_x.mod_sub(T1, p, sub_ws);
  251|       |
  252|  7.02k|   m_x.mod_sub(T3, p, sub_ws);
  253|  7.02k|   m_x.mod_sub(T3, p, sub_ws);
  254|       |
  255|  7.02k|   T3.mod_sub(m_x, p, sub_ws);
  256|       |
  257|  7.02k|   fe_mul(group, T2, T0, T3, ws);
  258|  7.02k|   fe_mul(group, T0, m_y, T1, ws);
  259|  7.02k|   T2.mod_sub(T0, p, sub_ws);
  260|  7.02k|   m_y.swap(T2);
  261|       |
  262|  7.02k|   fe_mul(group, T0, m_z, T4, ws);
  263|  7.02k|   m_z.swap(T0);
  264|  7.02k|}
_ZN5Botan8EC_Point3addERKS0_RNSt3__16vectorINS_6BigIntENS3_9allocatorIS5_EEEE:
  266|   402k|void EC_Point::add(const EC_Point& other, std::vector<BigInt>& workspace) {
  267|   402k|   BOTAN_ARG_CHECK(m_curve == other.m_curve, "cannot add points on different curves");
  ------------------
  |  |   35|   402k|   do {                                                          \
  |  |   36|   402k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|   402k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 402k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|   402k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 402k]
  |  |  ------------------
  ------------------
  268|       |
  269|   402k|   const size_t p_words = m_curve.get_p_words();
  270|       |
  271|   402k|   add(other.m_x._data(),
  272|   402k|       std::min(p_words, other.m_x.size()),
  273|   402k|       other.m_y._data(),
  274|   402k|       std::min(p_words, other.m_y.size()),
  275|   402k|       other.m_z._data(),
  276|   402k|       std::min(p_words, other.m_z.size()),
  277|   402k|       workspace);
  278|   402k|}
_ZN5Botan8EC_Point3addEPKmmS2_mS2_mRNSt3__16vectorINS_6BigIntENS3_9allocatorIS5_EEEE:
  286|   402k|                   std::vector<BigInt>& ws_bn) {
  287|   402k|   if((CT::all_zeros(x_words, x_size) & CT::all_zeros(z_words, z_size)).as_bool()) {
  ------------------
  |  Branch (287:7): [True: 0, False: 402k]
  ------------------
  288|      0|      return;
  289|      0|   }
  290|       |
  291|   402k|   const auto& group = m_curve.group();
  292|       |
  293|   402k|   if(is_zero()) {
  ------------------
  |  Branch (293:7): [True: 0, False: 402k]
  ------------------
  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|   402k|   resize_ws(ws_bn, monty_ws_size(group));
  301|       |
  302|   402k|   secure_vector<word>& ws = ws_bn[0].get_word_vector();
  303|   402k|   secure_vector<word>& sub_ws = ws_bn[1].get_word_vector();
  304|       |
  305|   402k|   BigInt& T0 = ws_bn[2];
  306|   402k|   BigInt& T1 = ws_bn[3];
  307|   402k|   BigInt& T2 = ws_bn[4];
  308|   402k|   BigInt& T3 = ws_bn[5];
  309|   402k|   BigInt& T4 = ws_bn[6];
  310|   402k|   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|   402k|   const BigInt& p = group.p();
  317|       |
  318|   402k|   fe_sqr(group, T0, z_words, z_size, ws);      // z2^2
  319|   402k|   fe_mul(group, T1, m_x, T0, ws);              // x1*z2^2
  320|   402k|   fe_mul(group, T3, z_words, z_size, T0, ws);  // z2^3
  321|   402k|   fe_mul(group, T2, m_y, T3, ws);              // y1*z2^3
  322|       |
  323|   402k|   fe_sqr(group, T3, m_z, ws);                  // z1^2
  324|   402k|   fe_mul(group, T4, x_words, x_size, T3, ws);  // x2*z1^2
  325|       |
  326|   402k|   fe_mul(group, T5, m_z, T3, ws);              // z1^3
  327|   402k|   fe_mul(group, T0, y_words, y_size, T5, ws);  // y2*z1^3
  328|       |
  329|   402k|   T4.mod_sub(T1, p, sub_ws);  // x2*z1^2 - x1*z2^2
  330|       |
  331|   402k|   T0.mod_sub(T2, p, sub_ws);
  332|       |
  333|   402k|   if(T4.is_zero()) {
  ------------------
  |  Branch (333:7): [True: 0, False: 402k]
  ------------------
  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|   402k|   fe_sqr(group, T5, T4, ws);
  347|       |
  348|   402k|   fe_mul(group, T3, T1, T5, ws);
  349|       |
  350|   402k|   fe_mul(group, T1, T5, T4, ws);
  351|       |
  352|   402k|   fe_sqr(group, m_x, T0, ws);
  353|   402k|   m_x.mod_sub(T1, p, sub_ws);
  354|   402k|   m_x.mod_sub(T3, p, sub_ws);
  355|   402k|   m_x.mod_sub(T3, p, sub_ws);
  356|       |
  357|   402k|   T3.mod_sub(m_x, p, sub_ws);
  358|       |
  359|   402k|   fe_mul(group, m_y, T0, T3, ws);
  360|   402k|   fe_mul(group, T3, T2, T1, ws);
  361|       |
  362|   402k|   m_y.mod_sub(T3, p, sub_ws);
  363|       |
  364|   402k|   fe_mul(group, T3, z_words, z_size, m_z, ws);
  365|   402k|   fe_mul(group, m_z, T3, T4, ws);
  366|   402k|}
_ZN5Botan8EC_Point5mult2ERNSt3__16vectorINS_6BigIntENS1_9allocatorIS3_EEEE:
  388|   301k|void EC_Point::mult2(std::vector<BigInt>& ws_bn) {
  389|   301k|   if(is_zero()) {
  ------------------
  |  Branch (389:7): [True: 0, False: 301k]
  ------------------
  390|      0|      return;
  391|      0|   }
  392|       |
  393|   301k|   const auto& group = m_curve.group();
  394|       |
  395|   301k|   if(m_y.is_zero()) {
  ------------------
  |  Branch (395:7): [True: 0, False: 301k]
  ------------------
  396|      0|      *this = EC_Point(m_curve);  // setting myself to zero
  397|      0|      return;
  398|      0|   }
  399|       |
  400|   301k|   resize_ws(ws_bn, monty_ws_size(group));
  401|       |
  402|   301k|   secure_vector<word>& ws = ws_bn[0].get_word_vector();
  403|   301k|   secure_vector<word>& sub_ws = ws_bn[1].get_word_vector();
  404|       |
  405|   301k|   BigInt& T0 = ws_bn[2];
  406|   301k|   BigInt& T1 = ws_bn[3];
  407|   301k|   BigInt& T2 = ws_bn[4];
  408|   301k|   BigInt& T3 = ws_bn[5];
  409|   301k|   BigInt& T4 = ws_bn[6];
  410|       |
  411|       |   /*
  412|       |   https://hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html#doubling-dbl-1986-cc
  413|       |   */
  414|   301k|   const BigInt& p = group.p();
  415|       |
  416|   301k|   fe_sqr(group, T0, m_y, ws);
  417|       |
  418|   301k|   fe_mul(group, T1, m_x, T0, ws);
  419|   301k|   fe_smul<4>(T1, p, sub_ws);
  420|       |
  421|   301k|   if(group.a_is_zero()) {
  ------------------
  |  Branch (421:7): [True: 250k, False: 51.2k]
  ------------------
  422|       |      // if a == 0 then 3*x^2 + a*z^4 is just 3*x^2
  423|   250k|      fe_sqr(group, T4, m_x, ws);  // x^2
  424|   250k|      fe_smul<3>(T4, p, sub_ws);   // 3*x^2
  425|   250k|   } else if(group.a_is_minus_3()) {
  ------------------
  |  Branch (425:14): [True: 51.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|  51.2k|      fe_sqr(group, T3, m_z, ws);  // z^2
  431|       |
  432|       |      // (x-z^2)
  433|  51.2k|      T2 = m_x;
  434|  51.2k|      T2.mod_sub(T3, p, sub_ws);
  435|       |
  436|       |      // (x+z^2)
  437|  51.2k|      T3.mod_add(m_x, p, sub_ws);
  438|       |
  439|  51.2k|      fe_mul(group, T4, T2, T3, ws);  // (x-z^2)*(x+z^2)
  440|       |
  441|  51.2k|      fe_smul<3>(T4, p, sub_ws);  // 3*(x-z^2)*(x+z^2)
  442|  51.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|   301k|   fe_sqr(group, T2, T4, ws);
  453|   301k|   T2.mod_sub(T1, p, sub_ws);
  454|   301k|   T2.mod_sub(T1, p, sub_ws);
  455|       |
  456|   301k|   fe_sqr(group, T3, T0, ws);
  457|   301k|   fe_smul<8>(T3, p, sub_ws);
  458|       |
  459|   301k|   T1.mod_sub(T2, p, sub_ws);
  460|       |
  461|   301k|   fe_mul(group, T0, T4, T1, ws);
  462|   301k|   T0.mod_sub(T3, p, sub_ws);
  463|       |
  464|   301k|   m_x.swap(T2);
  465|       |
  466|   301k|   fe_mul(group, T2, m_y, m_z, ws);
  467|   301k|   fe_smul<2>(T2, p, sub_ws);
  468|       |
  469|   301k|   m_y.swap(T0);
  470|   301k|   m_z.swap(T2);
  471|   301k|}
_ZN5Botan8EC_Point16force_all_affineENSt3__14spanIS0_Lm18446744073709551615EEERNS1_6vectorImNS_16secure_allocatorImEEEE:
  520|    862|void EC_Point::force_all_affine(std::span<EC_Point> points, secure_vector<word>& ws) {
  521|    862|   if(points.size() <= 1) {
  ------------------
  |  Branch (521:7): [True: 0, False: 862]
  ------------------
  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|   704k|   for(auto& point : points) {
  ------------------
  |  Branch (528:20): [True: 704k, False: 862]
  ------------------
  529|   704k|      if(point.is_zero()) {
  ------------------
  |  Branch (529:10): [True: 0, False: 704k]
  ------------------
  530|      0|         throw Invalid_State("Cannot convert zero ECC point to affine");
  531|      0|      }
  532|   704k|   }
  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|    862|   const auto& group = points[0].m_curve.group();
  544|    862|   const BigInt& rep_1 = group.monty().R1();
  545|       |
  546|    862|   if(ws.size() < monty_ws_size(group)) {
  ------------------
  |  Branch (546:7): [True: 0, False: 862]
  ------------------
  547|      0|      ws.resize(monty_ws_size(group));
  548|      0|   }
  549|       |
  550|    862|   std::vector<BigInt> c(points.size());
  551|    862|   c[0] = points[0].m_z;
  552|       |
  553|   704k|   for(size_t i = 1; i != points.size(); ++i) {
  ------------------
  |  Branch (553:22): [True: 703k, False: 862]
  ------------------
  554|   703k|      fe_mul(group, c[i], c[i - 1], points[i].m_z, ws);
  555|   703k|   }
  556|       |
  557|    862|   BigInt s_inv = invert_element(group, c[c.size() - 1], ws);
  558|       |
  559|    862|   BigInt z_inv;
  560|    862|   BigInt z2_inv;
  561|    862|   BigInt z3_inv;
  562|       |
  563|   704k|   for(size_t i = points.size() - 1; i != 0; i--) {
  ------------------
  |  Branch (563:38): [True: 703k, False: 862]
  ------------------
  564|   703k|      EC_Point& point = points[i];
  565|       |
  566|   703k|      fe_mul(group, z_inv, s_inv, c[i - 1], ws);
  567|       |
  568|   703k|      s_inv = fe_mul(group, s_inv, point.m_z, ws);
  569|       |
  570|   703k|      fe_sqr(group, z2_inv, z_inv, ws);
  571|   703k|      fe_mul(group, z3_inv, z2_inv, z_inv, ws);
  572|   703k|      point.m_x = fe_mul(group, point.m_x, z2_inv, ws);
  573|   703k|      point.m_y = fe_mul(group, point.m_y, z3_inv, ws);
  574|   703k|      point.m_z = rep_1;
  575|   703k|   }
  576|       |
  577|    862|   fe_sqr(group, z2_inv, s_inv, ws);
  578|    862|   fe_mul(group, z3_inv, z2_inv, s_inv, ws);
  579|    862|   points[0].m_x = fe_mul(group, points[0].m_x, z2_inv, ws);
  580|    862|   points[0].m_y = fe_mul(group, points[0].m_y, z3_inv, ws);
  581|    862|   points[0].m_z = rep_1;
  582|    862|}
_ZN5Botan8EC_Point12force_affineEv:
  584|    140|void EC_Point::force_affine() {
  585|    140|   if(is_zero()) {
  ------------------
  |  Branch (585:7): [True: 0, False: 140]
  ------------------
  586|      0|      throw Invalid_State("Cannot convert zero ECC point to affine");
  587|      0|   }
  588|       |
  589|    140|   secure_vector<word> ws;
  590|       |
  591|    140|   const auto& group = m_curve.group();
  592|       |
  593|    140|   const BigInt z_inv = invert_element(group, m_z, ws);
  594|    140|   const BigInt z2_inv = fe_sqr(group, z_inv, ws);
  595|    140|   const BigInt z3_inv = fe_mul(group, z_inv, z2_inv, ws);
  596|    140|   m_x = fe_mul(group, m_x, z2_inv, ws);
  597|    140|   m_y = fe_mul(group, m_y, z3_inv, ws);
  598|    140|   m_z = group.monty().R1();
  599|    140|}
_ZNK5Botan8EC_Point9is_affineEv:
  601|    280|bool EC_Point::is_affine() const {
  602|    280|   const auto& group = m_curve.group();
  603|    280|   return m_z == group.monty().R1();
  604|    280|}
_ZNK5Botan8EC_Point8xy_bytesEv:
  622|    140|secure_vector<uint8_t> EC_Point::xy_bytes() const {
  623|    140|   const auto& group = m_curve.group();
  624|    140|   const size_t p_bytes = group.p_bytes();
  625|    140|   secure_vector<uint8_t> b(2 * p_bytes);
  626|    140|   BigInt::encode_1363(&b[0], p_bytes, this->get_affine_x());  // NOLINT(*container-data-pointer)
  627|    140|   BigInt::encode_1363(&b[p_bytes], p_bytes, this->get_affine_y());
  628|    140|   return b;
  629|    140|}
_ZNK5Botan8EC_Point12get_affine_xEv:
  631|    140|BigInt EC_Point::get_affine_x() const {
  632|    140|   if(is_zero()) {
  ------------------
  |  Branch (632:7): [True: 0, False: 140]
  ------------------
  633|      0|      throw Invalid_State("Cannot convert zero point to affine");
  634|      0|   }
  635|       |
  636|    140|   secure_vector<word> monty_ws;
  637|       |
  638|    140|   const auto& group = m_curve.group();
  639|       |
  640|    140|   if(is_affine()) {
  ------------------
  |  Branch (640:7): [True: 140, False: 0]
  ------------------
  641|    140|      return from_rep_to_tmp(group, m_x, monty_ws);
  642|    140|   }
  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|    140|}
_ZNK5Botan8EC_Point12get_affine_yEv:
  653|    140|BigInt EC_Point::get_affine_y() const {
  654|    140|   if(is_zero()) {
  ------------------
  |  Branch (654:7): [True: 0, False: 140]
  ------------------
  655|      0|      throw Invalid_State("Cannot convert zero point to affine");
  656|      0|   }
  657|       |
  658|    140|   const auto& group = m_curve.group();
  659|    140|   secure_vector<word> monty_ws;
  660|       |
  661|    140|   if(is_affine()) {
  ------------------
  |  Branch (661:7): [True: 140, False: 0]
  ------------------
  662|    140|      return from_rep_to_tmp(group, m_y, monty_ws);
  663|    140|   }
  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|    140|}
_ZNK5Botan8EC_Point12on_the_curveEv:
  675|    109|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|    109|   if(is_zero()) {
  ------------------
  |  Branch (682:7): [True: 0, False: 109]
  ------------------
  683|      0|      return true;
  684|      0|   }
  685|       |
  686|    109|   const auto& group = m_curve.group();
  687|    109|   secure_vector<word> monty_ws;
  688|       |
  689|    109|   const BigInt y2 = from_rep_to_tmp(group, fe_sqr(group, m_y, monty_ws), monty_ws);
  690|    109|   const BigInt x3 = fe_mul(group, m_x, fe_sqr(group, m_x, monty_ws), monty_ws);
  691|    109|   const BigInt ax = fe_mul(group, m_x, group.monty_a(), monty_ws);
  692|    109|   const BigInt z2 = fe_sqr(group, m_z, monty_ws);
  693|       |
  694|    109|   const BigInt& monty_b = group.monty_b();
  695|       |
  696|       |   // Is z equal to 1 (in Montgomery form)?
  697|    109|   if(m_z == z2) {
  ------------------
  |  Branch (697:7): [True: 109, False: 0]
  ------------------
  698|    109|      if(y2 != from_rep_to_tmp(group, x3 + ax + monty_b, monty_ws)) {
  ------------------
  |  Branch (698:10): [True: 108, False: 1]
  ------------------
  699|    108|         return false;
  700|    108|      }
  701|    109|   }
  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|   608k|void EC_Point::swap(EC_Point& other) noexcept {
  793|   608k|   m_curve.swap(other.m_curve);
  794|   608k|   m_x.swap(other.m_x);
  795|   608k|   m_y.swap(other.m_y);
  796|   608k|   m_z.swap(other.m_z);
  797|   608k|}
_ZN5Botan6OS2ECPENSt3__14spanIKhLm18446744073709551615EEERKNS_8CurveGFpE:
  866|    645|EC_Point OS2ECP(std::span<const uint8_t> data, const CurveGFp& curve) {
  867|    645|   return OS2ECP(data.data(), data.size(), curve);
  868|    645|}
_ZN5Botan6OS2ECPEPKhmRKNS_8CurveGFpE:
  870|    645|EC_Point OS2ECP(const uint8_t data[], size_t data_len, const CurveGFp& curve) {
  871|    645|   if(data_len == 1 && data[0] == 0) {
  ------------------
  |  Branch (871:7): [True: 0, False: 645]
  |  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|    645|   const auto [g_x, g_y] = OS2ECP(data, data_len, curve.get_p(), curve.get_a(), curve.get_b());
  877|       |
  878|    645|   EC_Point point(curve, g_x, g_y);
  879|       |
  880|    645|   if(!point.on_the_curve()) {
  ------------------
  |  Branch (880:7): [True: 108, False: 537]
  ------------------
  881|    108|      throw Decoding_Error("OS2ECP: Decoded point was not on the curve");
  882|    108|   }
  883|       |
  884|    537|   return point;
  885|    645|}
_ZN5Botan6OS2ECPEPKhmRKNS_6BigIntES4_S4_:
  887|    645|std::pair<BigInt, BigInt> OS2ECP(const uint8_t pt[], size_t pt_len, const BigInt& p, const BigInt& a, const BigInt& b) {
  888|    645|   if(pt_len <= 1) {
  ------------------
  |  Branch (888:7): [True: 0, False: 645]
  ------------------
  889|      0|      throw Decoding_Error("OS2ECP invalid point encoding");
  890|      0|   }
  891|       |
  892|    645|   const uint8_t pc = pt[0];
  893|    645|   const size_t p_bytes = p.bytes();
  894|       |
  895|    645|   BigInt x;
  896|    645|   BigInt y;
  897|       |
  898|    645|   if(pc == 2 || pc == 3) {
  ------------------
  |  Branch (898:7): [True: 1, False: 644]
  |  Branch (898:18): [True: 1, False: 643]
  ------------------
  899|      2|      if(pt_len != 1 + p_bytes) {
  ------------------
  |  Branch (899:10): [True: 2, False: 0]
  ------------------
  900|      2|         throw Decoding_Error("OS2ECP invalid point encoding");
  901|      2|      }
  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|    643|   } else if(pc == 4) {
  ------------------
  |  Branch (906:14): [True: 112, False: 531]
  ------------------
  907|    112|      if(pt_len != 1 + 2 * p_bytes) {
  ------------------
  |  Branch (907:10): [True: 0, False: 112]
  ------------------
  908|      0|         throw Decoding_Error("OS2ECP invalid point encoding");
  909|      0|      }
  910|       |
  911|    112|      x = BigInt::decode(&pt[1], p_bytes);
  912|    112|      y = BigInt::decode(&pt[p_bytes + 1], p_bytes);
  913|    531|   } else if(pc == 6 || pc == 7) {
  ------------------
  |  Branch (913:14): [True: 115, False: 416]
  |  Branch (913:25): [True: 405, False: 11]
  ------------------
  914|    520|      if(pt_len != 1 + 2 * p_bytes) {
  ------------------
  |  Branch (914:10): [True: 0, False: 520]
  ------------------
  915|      0|         throw Decoding_Error("OS2ECP invalid point encoding");
  916|      0|      }
  917|       |
  918|    520|      x = BigInt::decode(&pt[1], p_bytes);
  919|    520|      y = BigInt::decode(&pt[p_bytes + 1], p_bytes);
  920|       |
  921|    520|      const bool y_mod_2 = ((pc & 0x01) == 1);
  922|       |
  923|    520|      if(decompress_point(y_mod_2, x, p, a, b) != y) {
  ------------------
  |  Branch (923:10): [True: 317, False: 203]
  ------------------
  924|    317|         throw Decoding_Error("OS2ECP: Decoding error in hybrid format");
  925|    317|      }
  926|    520|   } else {
  927|     11|      throw Decoding_Error("OS2ECP: Unknown format type " + std::to_string(static_cast<int>(pc)));
  928|     11|   }
  929|       |
  930|    315|   if(x >= p || y >= p) {
  ------------------
  |  Branch (930:7): [True: 204, False: 111]
  |  Branch (930:17): [True: 2, False: 109]
  ------------------
  931|      3|      throw Decoding_Error("OS2ECP invalid point encoding");
  932|      3|   }
  933|       |
  934|    312|   return std::make_pair(x, y);
  935|    315|}
ec_point.cpp:_ZN5Botan12_GLOBAL__N_113monty_ws_sizeERKNS_13EC_Group_DataE:
  102|   716k|size_t monty_ws_size(const EC_Group_Data& group) {
  103|   716k|   return 2 * group.p_words();
  104|   716k|}
ec_point.cpp:_ZN5Botan12_GLOBAL__N_16to_repERKNS_13EC_Group_DataERNS_6BigIntERNSt3__16vectorImNS_16secure_allocatorImEEEE:
   55|  9.03k|void to_rep(const EC_Group_Data& group, BigInt& x, secure_vector<word>& ws) {
   56|  9.03k|   group.monty().mul_by(x, group.monty().R2(), ws);
   57|  9.03k|}
ec_point.cpp:_ZN5Botan12_GLOBAL__N_16fe_sqrERKNS_13EC_Group_DataERKNS_6BigIntERNSt3__16vectorImNS_16secure_allocatorImEEEE:
   94|    469|BigInt fe_sqr(const EC_Group_Data& group, const BigInt& x, secure_vector<word>& ws) {
   95|    469|   return group.monty().sqr(x, ws);
   96|    469|}
ec_point.cpp:_ZN5Botan12_GLOBAL__N_16fe_mulERKNS_13EC_Group_DataERKNS_6BigIntES6_RNSt3__16vectorImNS_16secure_allocatorImEEEE:
   82|  2.11M|inline BigInt fe_mul(const EC_Group_Data& group, const BigInt& x, const BigInt& y, secure_vector<word>& ws) {
   83|  2.11M|   return group.monty().mul(x, y, ws);
   84|  2.11M|}
ec_point.cpp:_ZN5Botan12_GLOBAL__N_19resize_wsERNSt3__16vectorINS_6BigIntENS1_9allocatorIS3_EEEEm:
  163|   711k|inline void resize_ws(std::vector<BigInt>& ws_bn, size_t cap_size) {
  164|   711k|   BOTAN_ASSERT(ws_bn.size() >= EC_Point::WORKSPACE_SIZE, "Expected size for EC_Point workspace");
  ------------------
  |  |   64|   711k|   do {                                                                                 \
  |  |   65|   711k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|   711k|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 711k]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|   711k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 711k]
  |  |  ------------------
  ------------------
  165|       |
  166|  5.69M|   for(auto& ws : ws_bn) {
  ------------------
  |  Branch (166:17): [True: 5.69M, False: 711k]
  ------------------
  167|  5.69M|      if(ws.size() < cap_size) {
  ------------------
  |  Branch (167:10): [True: 8.14k, False: 5.68M]
  ------------------
  168|  8.14k|         ws.get_word_vector().resize(cap_size);
  169|  8.14k|      }
  170|  5.69M|   }
  171|   711k|}
ec_point.cpp:_ZN5Botan12_GLOBAL__N_16fe_sqrERKNS_13EC_Group_DataERNS_6BigIntERKS4_RNSt3__16vectorImNS_16secure_allocatorImEEEE:
   86|  3.14M|void fe_sqr(const EC_Group_Data& group, BigInt& z, const BigInt& x, secure_vector<word>& ws) {
   87|  3.14M|   group.monty().sqr(z, x, ws);
   88|  3.14M|}
ec_point.cpp:_ZN5Botan12_GLOBAL__N_16fe_mulERKNS_13EC_Group_DataERNS_6BigIntEPKmmRKS4_RNSt3__16vectorImNS_16secure_allocatorImEEEE:
   72|  1.62M|   const EC_Group_Data& group, BigInt& z, const word x_w[], size_t x_size, const BigInt& y, secure_vector<word>& ws) {
   73|  1.62M|   group.monty().mul(z, y, std::span{x_w, x_size}, ws);
   74|  1.62M|}
ec_point.cpp:_ZN5Botan12_GLOBAL__N_16fe_mulERKNS_13EC_Group_DataERNS_6BigIntERKS4_S7_RNSt3__16vectorImNS_16secure_allocatorImEEEE:
   67|  6.33M|inline void fe_mul(const EC_Group_Data& group, BigInt& z, const BigInt& x, const BigInt& y, secure_vector<word>& ws) {
   68|  6.33M|   group.monty().mul(z, x, y, ws);
   69|  6.33M|}
ec_point.cpp:_ZN5Botan12_GLOBAL__N_16fe_sqrERKNS_13EC_Group_DataERNS_6BigIntEPKmmRNSt3__16vectorImNS_16secure_allocatorImEEEE:
   90|   402k|void fe_sqr(const EC_Group_Data& group, BigInt& z, const word x_w[], size_t x_size, secure_vector<word>& ws) {
   91|   402k|   group.monty().sqr(z, std::span{x_w, x_size}, ws);
   92|   402k|}
ec_point.cpp:_ZN5Botan12_GLOBAL__N_114invert_elementERKNS_13EC_Group_DataERKNS_6BigIntERNSt3__16vectorImNS_16secure_allocatorImEEEE:
   98|  1.00k|BigInt invert_element(const EC_Group_Data& group, const BigInt& x, secure_vector<word>& ws) {
   99|  1.00k|   return group.monty().mul(inverse_mod_public_prime(x, group.p()), group.monty().R3(), ws);
  100|  1.00k|}
ec_point.cpp:_ZN5Botan12_GLOBAL__N_115from_rep_to_tmpERKNS_13EC_Group_DataERKNS_6BigIntERNSt3__16vectorImNS_16secure_allocatorImEEEE:
   63|    499|BigInt from_rep_to_tmp(const EC_Group_Data& group, const BigInt& x, secure_vector<word>& ws) {
   64|    499|   return group.monty().redc(x, ws);
   65|    499|}
ec_point.cpp:_ZN5Botan12_GLOBAL__N_116decompress_pointEbRKNS_6BigIntES3_S3_S3_:
  848|    520|BigInt decompress_point(bool y_mod_2, const BigInt& x, const BigInt& p, const BigInt& a, const BigInt& b) {
  849|    520|   const BigInt g = ((x * x + a) * x + b) % p;
  850|       |
  851|    520|   BigInt z = sqrt_modulo_prime(g, p);
  852|       |
  853|    520|   if(z < 0) {
  ------------------
  |  Branch (853:7): [True: 203, False: 317]
  ------------------
  854|    203|      throw Decoding_Error("Error during EC point decompression");
  855|    203|   }
  856|       |
  857|    317|   if(z.get_bit(0) != y_mod_2) {
  ------------------
  |  Branch (857:7): [True: 180, False: 137]
  ------------------
  858|    180|      z = p - z;
  859|    180|   }
  860|       |
  861|    317|   return z;
  862|    520|}
ec_point.cpp:_ZN5Botan12_GLOBAL__N_17fe_smulILm4EEEvRNS_6BigIntERKS2_RNSt3__16vectorImNS_16secure_allocatorImEEEE:
   77|   301k|inline void fe_smul(BigInt& z, const BigInt& p, secure_vector<word>& ws) {
   78|   301k|   static_assert(M == 2 || M == 3 || M == 4 || M == 8);
   79|   301k|   z.mod_mul(M, p, ws);
   80|   301k|}
ec_point.cpp:_ZN5Botan12_GLOBAL__N_17fe_smulILm3EEEvRNS_6BigIntERKS2_RNSt3__16vectorImNS_16secure_allocatorImEEEE:
   77|   301k|inline void fe_smul(BigInt& z, const BigInt& p, secure_vector<word>& ws) {
   78|   301k|   static_assert(M == 2 || M == 3 || M == 4 || M == 8);
   79|   301k|   z.mod_mul(M, p, ws);
   80|   301k|}
ec_point.cpp:_ZN5Botan12_GLOBAL__N_17fe_smulILm8EEEvRNS_6BigIntERKS2_RNSt3__16vectorImNS_16secure_allocatorImEEEE:
   77|   301k|inline void fe_smul(BigInt& z, const BigInt& p, secure_vector<word>& ws) {
   78|   301k|   static_assert(M == 2 || M == 3 || M == 4 || M == 8);
   79|   301k|   z.mod_mul(M, p, ws);
   80|   301k|}
ec_point.cpp:_ZN5Botan12_GLOBAL__N_17fe_smulILm2EEEvRNS_6BigIntERKS2_RNSt3__16vectorImNS_16secure_allocatorImEEEE:
   77|   301k|inline void fe_smul(BigInt& z, const BigInt& p, secure_vector<word>& ws) {
   78|   301k|   static_assert(M == 2 || M == 3 || M == 4 || M == 8);
   79|   301k|   z.mod_mul(M, p, ws);
   80|   301k|}

_ZN5Botan30EC_Point_Base_Point_PrecomputeC2ERKNS_8EC_PointERKNS_17Barrett_ReductionE:
   43|    862|      m_base_point(base), m_mod_order(mod_order), m_p_words(base.get_curve().get_p_words()) {
   44|    862|   std::vector<BigInt> ws(EC_Point::WORKSPACE_SIZE);
   45|       |
   46|    862|   const size_t order_bits = mod_order.modulus_bits();
   47|       |
   48|    862|   const size_t T_bits = round_up(order_bits + blinding_size(order_bits), WindowBits) / WindowBits;
   49|       |
   50|    862|   std::vector<EC_Point> T(WindowSize * T_bits);
   51|       |
   52|    862|   EC_Point g = base;
   53|    862|   EC_Point g2;
   54|    862|   EC_Point g4;
   55|       |
   56|   101k|   for(size_t i = 0; i != T_bits; i++) {
  ------------------
  |  Branch (56:22): [True: 100k, False: 862]
  ------------------
   57|   100k|      g2 = g;
   58|   100k|      g2.mult2(ws);
   59|   100k|      g4 = g2;
   60|   100k|      g4.mult2(ws);
   61|       |
   62|   100k|      T[7 * i + 0] = g;
   63|   100k|      T[7 * i + 1] = std::move(g2);
   64|   100k|      T[7 * i + 2] = T[7 * i + 1].plus(T[7 * i + 0], ws);  // g2+g
   65|   100k|      T[7 * i + 3] = g4;
   66|   100k|      T[7 * i + 4] = T[7 * i + 3].plus(T[7 * i + 0], ws);  // g4+g
   67|   100k|      T[7 * i + 5] = T[7 * i + 3].plus(T[7 * i + 1], ws);  // g4+g2
   68|   100k|      T[7 * i + 6] = T[7 * i + 3].plus(T[7 * i + 2], ws);  // g4+g2+g
   69|       |
   70|   100k|      g.swap(g4);
   71|   100k|      g.mult2(ws);
   72|   100k|   }
   73|       |
   74|    862|   EC_Point::force_all_affine(T, ws[0].get_word_vector());
   75|       |
   76|    862|   m_W.resize(T.size() * 2 * m_p_words);
   77|       |
   78|    862|   word* p = m_W.data();
   79|   704k|   for(const auto& pt : T) {
  ------------------
  |  Branch (79:23): [True: 704k, False: 862]
  ------------------
   80|   704k|      pt.get_x().encode_words(p, m_p_words);
   81|   704k|      p += m_p_words;
   82|   704k|      pt.get_y().encode_words(p, m_p_words);
   83|   704k|      p += m_p_words;
   84|   704k|   }
   85|    862|}
_ZNK5Botan30EC_Point_Base_Point_Precompute3mulERKNS_6BigIntERNS_21RandomNumberGeneratorES3_RNSt3__16vectorIS1_NS6_9allocatorIS1_EEEE:
   90|    139|                                             std::vector<BigInt>& ws) const {
   91|    139|   if(k.signum() < 0) {
  ------------------
  |  Branch (91:7): [True: 0, False: 139]
  ------------------
   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|    139|   BigInt scalar = m_mod_order.reduce(k);
   97|       |
   98|    139|   if(rng.is_seeded()) {
  ------------------
  |  Branch (98:7): [True: 0, False: 139]
  ------------------
   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|    139|   } 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|    139|      scalar += group_order;
  109|    139|      if(scalar.bits() == group_order.bits()) {
  ------------------
  |  Branch (109:10): [True: 129, False: 10]
  ------------------
  110|    129|         scalar += group_order;
  111|    129|      }
  112|    139|      BOTAN_DEBUG_ASSERT(scalar.bits() == group_order.bits() + 1);
  ------------------
  |  |  130|    139|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    139|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 139]
  |  |  ------------------
  ------------------
  113|    139|   }
  114|       |
  115|    139|   const size_t windows = round_up(scalar.bits(), WindowBits) / WindowBits;
  116|       |
  117|    139|   const size_t elem_size = 2 * m_p_words;
  118|       |
  119|    139|   BOTAN_ASSERT(windows <= m_W.size() / (3 * elem_size), "Precomputed sufficient values for scalar mult");
  ------------------
  |  |   64|    139|   do {                                                                                 \
  |  |   65|    139|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|    139|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 139]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|    139|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 139]
  |  |  ------------------
  ------------------
  120|       |
  121|    139|   EC_Point R = m_base_point.zero();
  122|       |
  123|    139|   if(ws.size() < EC_Point::WORKSPACE_SIZE) {
  ------------------
  |  Branch (123:7): [True: 139, False: 0]
  ------------------
  124|    139|      ws.resize(EC_Point::WORKSPACE_SIZE);
  125|    139|   }
  126|       |
  127|       |   // the precomputed multiples are not secret so use std::vector
  128|    139|   std::vector<word> Wt(elem_size);
  129|       |
  130|  10.0k|   for(size_t i = 0; i != windows; ++i) {
  ------------------
  |  Branch (130:22): [True: 9.86k, False: 139]
  ------------------
  131|  9.86k|      const size_t window = windows - i - 1;
  132|  9.86k|      const size_t base_addr = (WindowSize * window) * elem_size;
  133|       |
  134|  9.86k|      const word w = scalar.get_substring(WindowBits * window, WindowBits);
  135|       |
  136|  9.86k|      const auto w_is_1 = CT::Mask<word>::is_equal(w, 1);
  137|  9.86k|      const auto w_is_2 = CT::Mask<word>::is_equal(w, 2);
  138|  9.86k|      const auto w_is_3 = CT::Mask<word>::is_equal(w, 3);
  139|  9.86k|      const auto w_is_4 = CT::Mask<word>::is_equal(w, 4);
  140|  9.86k|      const auto w_is_5 = CT::Mask<word>::is_equal(w, 5);
  141|  9.86k|      const auto w_is_6 = CT::Mask<word>::is_equal(w, 6);
  142|  9.86k|      const auto w_is_7 = CT::Mask<word>::is_equal(w, 7);
  143|       |
  144|  85.1k|      for(size_t j = 0; j != elem_size; ++j) {
  ------------------
  |  Branch (144:25): [True: 75.2k, False: 9.86k]
  ------------------
  145|  75.2k|         const word w1 = w_is_1.if_set_return(m_W[base_addr + 0 * elem_size + j]);
  146|  75.2k|         const word w2 = w_is_2.if_set_return(m_W[base_addr + 1 * elem_size + j]);
  147|  75.2k|         const word w3 = w_is_3.if_set_return(m_W[base_addr + 2 * elem_size + j]);
  148|  75.2k|         const word w4 = w_is_4.if_set_return(m_W[base_addr + 3 * elem_size + j]);
  149|  75.2k|         const word w5 = w_is_5.if_set_return(m_W[base_addr + 4 * elem_size + j]);
  150|  75.2k|         const word w6 = w_is_6.if_set_return(m_W[base_addr + 5 * elem_size + j]);
  151|  75.2k|         const word w7 = w_is_7.if_set_return(m_W[base_addr + 6 * elem_size + j]);
  152|       |
  153|  75.2k|         Wt[j] = w1 | w2 | w3 | w4 | w5 | w6 | w7;
  154|  75.2k|      }
  155|       |
  156|  9.86k|      R.add_affine(Wt.data(), m_p_words, &Wt[m_p_words], m_p_words, ws);
  157|       |
  158|  9.86k|      if(i == 0 && rng.is_seeded()) {
  ------------------
  |  Branch (158:10): [True: 139, False: 9.72k]
  |  Branch (158:20): [True: 0, False: 139]
  ------------------
  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|  9.86k|   }
  168|       |
  169|    139|   BOTAN_DEBUG_ASSERT(R.on_the_curve());
  ------------------
  |  |  130|    139|      do { /* NOLINT(*-avoid-do-while) */ \
  |  |  131|    139|      } while(0)
  |  |  ------------------
  |  |  |  Branch (131:15): [Folded, False: 139]
  |  |  ------------------
  ------------------
  170|       |
  171|    139|   return R;
  172|    139|}
point_mul.cpp:_ZN5Botan12_GLOBAL__N_113blinding_sizeEm:
   20|    862|size_t blinding_size(size_t order_bits) {
   21|    862|   return (order_bits + 1) / 2;
   22|    862|}

_ZN5Botan17EC_PublicKey_DataC2ENS_8EC_GroupENS_14EC_AffinePointE:
   15|  1.59k|      m_group(std::move(group)), m_point(std::move(pt)) {
   16|  1.59k|#if defined(BOTAN_HAS_LEGACY_EC_POINT)
   17|  1.59k|   m_legacy_point = m_point.to_legacy_point();
   18|  1.59k|#endif
   19|       |
   20|       |   // Checking that the point lies on the curve is done in the deserialization
   21|       |   // of EC_AffinePoint.
   22|  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]
  |  |  ------------------
  ------------------
   23|  1.59k|}
_ZN5Botan18EC_PrivateKey_DataC2ENS_8EC_GroupENS_9EC_ScalarE:
   26|  2.70k|      m_group(std::move(group)), m_scalar(std::move(x)), m_legacy_x(m_scalar.to_bigint()) {
   27|       |   // Checking that the scalar is lower than the group order is ensured in the
   28|       |   // deserialization of the EC_Scalar or during the random generation respectively.
   29|  2.70k|   BOTAN_ARG_CHECK(m_scalar.is_nonzero(), "ECC private key cannot be zero");
  ------------------
  |  |   35|  2.70k|   do {                                                          \
  |  |   36|  2.70k|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|  2.70k|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 2.70k]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|  2.70k|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 2.70k]
  |  |  ------------------
  ------------------
   30|  2.70k|}
_ZN5Botan18EC_PrivateKey_DataC2ERKNS_8EC_GroupENSt3__14spanIKhLm18446744073709551615EEE:
   62|  2.72k|      Botan::EC_PrivateKey_Data(group, decode_ec_secret_key_scalar(group, bytes)) {}
_ZN5Botan18EC_PrivateKey_DataD2Ev:
   64|  2.70k|EC_PrivateKey_Data::~EC_PrivateKey_Data() {
   65|  2.70k|   m_scalar.zeroize();
   66|  2.70k|}
_ZNK5Botan18EC_PrivateKey_Data10public_keyERNS_21RandomNumberGeneratorEb:
   69|  1.59k|                                                                  bool with_modular_inverse) const {
   70|  1.59k|   auto public_point = [&] {
   71|  1.59k|      if(with_modular_inverse) {
   72|  1.59k|         return EC_AffinePoint::g_mul(m_scalar.invert(), rng);
   73|  1.59k|      } else {
   74|  1.59k|         return EC_AffinePoint::g_mul(m_scalar, rng);
   75|  1.59k|      }
   76|  1.59k|   };
   77|       |
   78|  1.59k|   return std::make_shared<EC_PublicKey_Data>(m_group, public_point());
   79|  1.59k|}
_ZNK5Botan18EC_PrivateKey_Data10public_keyEb:
   81|  1.59k|std::shared_ptr<EC_PublicKey_Data> EC_PrivateKey_Data::public_key(bool with_modular_inverse) const {
   82|  1.59k|   Null_RNG null_rng;
   83|  1.59k|   return this->public_key(null_rng, with_modular_inverse);
   84|  1.59k|}
ec_key_data.cpp:_ZN5Botan12_GLOBAL__N_127decode_ec_secret_key_scalarERKNS_8EC_GroupENSt3__14spanIKhLm18446744073709551615EEE:
   34|  4.79k|EC_Scalar decode_ec_secret_key_scalar(const EC_Group& group, std::span<const uint8_t> bytes) {
   35|  4.79k|   const size_t order_bytes = group.get_order_bytes();
   36|       |
   37|  4.79k|   if(bytes.size() < order_bytes) {
  ------------------
  |  Branch (37:7): [True: 2.06k, False: 2.72k]
  ------------------
   38|       |      /*
   39|       |      * Older versions had a bug which caused secret keys to not be encoded to
   40|       |      * the full byte length of the order if there were leading zero bytes. This
   41|       |      * was particularly a problem for P-521, where on average half of keys do
   42|       |      * not have their high bit set and so can be encoded in 65 bytes, vs 66
   43|       |      * bytes for the full order.
   44|       |      *
   45|       |      * To accommodate this, zero prefix the key if we see such a short input
   46|       |      */
   47|  2.06k|      secure_vector<uint8_t> padded_sk(order_bytes);
   48|  2.06k|      copy_mem(std::span{padded_sk}.last(bytes.size()), bytes);
   49|  2.06k|      return decode_ec_secret_key_scalar(group, padded_sk);
   50|  2.06k|   }
   51|       |
   52|  2.72k|   if(auto s = EC_Scalar::deserialize(group, bytes)) {
  ------------------
  |  Branch (52:12): [True: 2.70k, False: 23]
  ------------------
   53|  2.70k|      return s.value();
   54|  2.70k|   } else {
   55|     23|      throw Decoding_Error("EC private key is invalid for this group");
   56|     23|   }
   57|  2.72k|}
ec_key_data.cpp:_ZZNK5Botan18EC_PrivateKey_Data10public_keyERNS_21RandomNumberGeneratorEbENK3$_0clEv:
   70|  1.59k|   auto public_point = [&] {
   71|  1.59k|      if(with_modular_inverse) {
  ------------------
  |  Branch (71:10): [True: 0, False: 1.59k]
  ------------------
   72|      0|         return EC_AffinePoint::g_mul(m_scalar.invert(), rng);
   73|  1.59k|      } else {
   74|  1.59k|         return EC_AffinePoint::g_mul(m_scalar, rng);
   75|  1.59k|      }
   76|  1.59k|   };

_ZNK5Botan12EC_PublicKey6domainEv:
   64|  1.59k|const EC_Group& EC_PublicKey::domain() const {
   65|  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]
  |  |  ------------------
  ------------------
   66|  1.59k|   return m_public_key->group();
   67|  1.59k|}
_ZN5Botan13EC_PrivateKeyC2ERKNS_19AlgorithmIdentifierENSt3__14spanIKhLm18446744073709551615EEEb:
  179|  3.96k|      m_with_modular_inverse(with_modular_inverse) {
  180|  3.96k|   const EC_Group group(alg_id.parameters());
  181|       |
  182|  3.96k|   OID key_parameters;
  183|  3.96k|   secure_vector<uint8_t> private_key_bits;
  184|  3.96k|   secure_vector<uint8_t> public_key_bits;
  185|       |
  186|  3.96k|   BER_Decoder(key_bits, BER_Decoder::Limits::DER())
  187|  3.96k|      .start_sequence()
  188|  3.96k|      .decode_and_check<size_t>(1, "Unknown version code for ECC key")
  189|  3.96k|      .decode(private_key_bits, ASN1_Type::OctetString)
  190|  3.96k|      .decode_optional(key_parameters, ASN1_Type(0), ASN1_Class::ExplicitContextSpecific)
  191|  3.96k|      .decode_optional_string(public_key_bits, ASN1_Type::BitString, 1, ASN1_Class::ExplicitContextSpecific)
  192|  3.96k|      .end_cons()
  193|  3.96k|      .verify_end();
  194|       |
  195|  3.96k|   m_private_key = std::make_shared<EC_PrivateKey_Data>(group, private_key_bits);
  196|       |
  197|  3.96k|   if(public_key_bits.empty()) {
  ------------------
  |  Branch (197:7): [True: 1.59k, False: 2.37k]
  ------------------
  198|  1.59k|      m_public_key = m_private_key->public_key(with_modular_inverse);
  199|  2.37k|   } else {
  200|  2.37k|      m_public_key = std::make_shared<EC_PublicKey_Data>(group, public_key_bits);
  201|  2.37k|   }
  202|       |
  203|  3.96k|   m_domain_encoding = default_encoding_for(domain());
  204|  3.96k|}
ecc_key.cpp:_ZN5Botan12_GLOBAL__N_120default_encoding_forERKNS_8EC_GroupE:
   36|  1.59k|EC_Group_Encoding default_encoding_for(const EC_Group& group) {
   37|  1.59k|   if(group.get_curve_oid().empty()) {
  ------------------
  |  Branch (37:7): [True: 26, False: 1.56k]
  ------------------
   38|     26|      return EC_Group_Encoding::Explicit;
   39|  1.56k|   } else {
   40|  1.56k|      return EC_Group_Encoding::NamedCurve;
   41|  1.56k|   }
   42|  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:
  118|     10|Ed25519_PrivateKey::Ed25519_PrivateKey(const AlgorithmIdentifier& alg_id, std::span<const uint8_t> key_bits) {
  119|       |   // RFC 8410 Section 3: "the parameters MUST be absent".
  120|     10|   if(!alg_id.parameters_are_empty()) {
  ------------------
  |  Branch (120:7): [True: 1, False: 9]
  ------------------
  121|      1|      throw Decoding_Error("Unexpected parameters for Ed25519 private key");
  122|      1|   }
  123|       |
  124|      9|   secure_vector<uint8_t> bits;
  125|      9|   BER_Decoder(key_bits, BER_Decoder::Limits::DER()).decode(bits, ASN1_Type::OctetString).discard_remaining();
  126|       |
  127|      9|   if(bits.size() != 32) {
  ------------------
  |  Branch (127:7): [True: 6, False: 3]
  ------------------
  128|      6|      throw Decoding_Error("Invalid size for Ed25519 private key");
  129|      6|   }
  130|      3|   m_public.resize(32);
  131|      3|   m_private.resize(64);
  132|      3|   ed25519_gen_keypair(m_public.data(), m_private.data(), bits.data());
  133|      3|}

_ZN5Botan21ed25519_basepoint_mulENSt3__14spanIhLm32EEEPKh:
 1863|      2|void ed25519_basepoint_mul(std::span<uint8_t, 32> out, const uint8_t a[32]) {
 1864|      2|   std::array<int8_t, 64> e{};
 1865|       |
 1866|      2|   CT::poison(a, 32);
 1867|       |
 1868|       |   // each e[i] is between 0 and 15 except e[63] which is between 0 and 7
 1869|     66|   for(size_t i = 0; i != 32; ++i) {
  ------------------
  |  Branch (1869:22): [True: 64, False: 2]
  ------------------
 1870|     64|      e[2 * i + 0] = (a[i] >> 0) & 0x0F;
 1871|     64|      e[2 * i + 1] = (a[i] >> 4) & 0x0F;
 1872|     64|   }
 1873|       |
 1874|      2|   int8_t carry = 0;
 1875|    128|   for(size_t i = 0; i < 63; ++i) {
  ------------------
  |  Branch (1875:22): [True: 126, False: 2]
  ------------------
 1876|    126|      e[i] += carry;
 1877|    126|      carry = e[i] + 8;
 1878|    126|      carry >>= 4;
 1879|    126|      e[i] -= carry << 4;
 1880|    126|   }
 1881|      2|   e[63] += carry;
 1882|       |   /* each e[i] is between -8 and 8 */
 1883|       |
 1884|      2|   auto h = Ed25519_Point_Extended::identity();
 1885|     66|   for(size_t i = 1; i < 64; i += 2) {
  ------------------
  |  Branch (1885:22): [True: 64, False: 2]
  ------------------
 1886|     64|      h = Ed25519_Point_Extended::from(h + select(B_precomp[i / 2], e[i]));
 1887|     64|   }
 1888|       |
 1889|      2|   auto s = Ed25519_Point_Projective::from(h.dbl());
 1890|      2|   s = Ed25519_Point_Projective::from(s.dbl());
 1891|      2|   s = Ed25519_Point_Projective::from(s.dbl());
 1892|      2|   h = Ed25519_Point_Extended::from(s.dbl());
 1893|       |
 1894|     66|   for(size_t i = 0; i != 64; i += 2) {
  ------------------
  |  Branch (1894:22): [True: 64, False: 2]
  ------------------
 1895|     64|      h = Ed25519_Point_Extended::from(h + select(B_precomp[i / 2], e[i]));
 1896|     64|   }
 1897|       |
 1898|      2|   h.serialize_to(out);
 1899|       |
 1900|      2|   CT::unpoison(a, 32);
 1901|      2|   CT::unpoison(out);
 1902|      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:
  455|    128|Ed25519_Point_Niels select(const Ed25519_Point_Niels base[8], int8_t b) {
  456|    128|   const uint8_t bnegative = negative(b);
  457|    128|   const uint8_t babs = b - ((-static_cast<int>(bnegative) & b) * 2);
  458|    128|   const uint32_t neg_mask = equal32(bnegative, 1);
  459|       |
  460|    128|   const uint32_t mask1 = equal32(babs, 1);
  461|    128|   const uint32_t mask2 = equal32(babs, 2);
  462|    128|   const uint32_t mask3 = equal32(babs, 3);
  463|    128|   const uint32_t mask4 = equal32(babs, 4);
  464|    128|   const uint32_t mask5 = equal32(babs, 5);
  465|    128|   const uint32_t mask6 = equal32(babs, 6);
  466|    128|   const uint32_t mask7 = equal32(babs, 7);
  467|    128|   const uint32_t mask8 = equal32(babs, 8);
  468|       |
  469|    128|   auto t = Ed25519_Point_Niels::identity();
  470|       |
  471|  1.40k|   for(size_t i = 0; i != 10; ++i) {
  ------------------
  |  Branch (471:22): [True: 1.28k, False: 128]
  ------------------
  472|  1.28k|      t.yplusx[i] = t.yplusx[i] ^ ((t.yplusx[i] ^ base[0].yplusx[i]) & mask1) ^
  473|  1.28k|                    ((t.yplusx[i] ^ base[1].yplusx[i]) & mask2) ^ ((t.yplusx[i] ^ base[2].yplusx[i]) & mask3) ^
  474|  1.28k|                    ((t.yplusx[i] ^ base[3].yplusx[i]) & mask4) ^ ((t.yplusx[i] ^ base[4].yplusx[i]) & mask5) ^
  475|  1.28k|                    ((t.yplusx[i] ^ base[5].yplusx[i]) & mask6) ^ ((t.yplusx[i] ^ base[6].yplusx[i]) & mask7) ^
  476|  1.28k|                    ((t.yplusx[i] ^ base[7].yplusx[i]) & mask8);
  477|       |
  478|  1.28k|      t.yminusx[i] = t.yminusx[i] ^ ((t.yminusx[i] ^ base[0].yminusx[i]) & mask1) ^
  479|  1.28k|                     ((t.yminusx[i] ^ base[1].yminusx[i]) & mask2) ^ ((t.yminusx[i] ^ base[2].yminusx[i]) & mask3) ^
  480|  1.28k|                     ((t.yminusx[i] ^ base[3].yminusx[i]) & mask4) ^ ((t.yminusx[i] ^ base[4].yminusx[i]) & mask5) ^
  481|  1.28k|                     ((t.yminusx[i] ^ base[5].yminusx[i]) & mask6) ^ ((t.yminusx[i] ^ base[6].yminusx[i]) & mask7) ^
  482|  1.28k|                     ((t.yminusx[i] ^ base[7].yminusx[i]) & mask8);
  483|       |
  484|  1.28k|      t.xy2d[i] = t.xy2d[i] ^ ((t.xy2d[i] ^ base[0].xy2d[i]) & mask1) ^ ((t.xy2d[i] ^ base[1].xy2d[i]) & mask2) ^
  485|  1.28k|                  ((t.xy2d[i] ^ base[2].xy2d[i]) & mask3) ^ ((t.xy2d[i] ^ base[3].xy2d[i]) & mask4) ^
  486|  1.28k|                  ((t.xy2d[i] ^ base[4].xy2d[i]) & mask5) ^ ((t.xy2d[i] ^ base[5].xy2d[i]) & mask6) ^
  487|  1.28k|                  ((t.xy2d[i] ^ base[6].xy2d[i]) & mask7) ^ ((t.xy2d[i] ^ base[7].xy2d[i]) & mask8);
  488|  1.28k|   }
  489|       |
  490|    128|   auto minus_xy2d = -t.xy2d;
  491|       |
  492|       |   // If negative have to swap yminusx and yplusx
  493|  1.40k|   for(size_t i = 0; i != 10; ++i) {
  ------------------
  |  Branch (493:22): [True: 1.28k, False: 128]
  ------------------
  494|  1.28k|      const int32_t t_yplusx = t.yplusx[i] ^ ((t.yplusx[i] ^ t.yminusx[i]) & neg_mask);
  495|  1.28k|      const int32_t t_yminusx = t.yminusx[i] ^ ((t.yminusx[i] ^ t.yplusx[i]) & neg_mask);
  496|       |
  497|  1.28k|      t.yplusx[i] = t_yplusx;
  498|  1.28k|      t.yminusx[i] = t_yminusx;
  499|  1.28k|      t.xy2d[i] = t.xy2d[i] ^ ((t.xy2d[i] ^ minus_xy2d[i]) & neg_mask);
  500|  1.28k|   }
  501|       |
  502|    128|   return t;
  503|    128|}
ge.cpp:_ZN5Botan12_GLOBAL__N_18negativeEa:
  451|    128|inline uint8_t negative(int8_t b) {
  452|    128|   return static_cast<uint8_t>(b) >> 7;
  453|    128|}
ge.cpp:_ZN5Botan12_GLOBAL__N_17equal32Ehh:
  447|  1.15k|inline uint32_t equal32(uint8_t b, uint8_t c) {
  448|  1.15k|   return CT::Mask<uint32_t>::is_equal(b, c).value();
  449|  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: 1, False: 1]
  ------------------
  144|      2|      }

_ZN5Botan9KyberModeC2ERKNS_3OIDE:
   78|     42|KyberMode::KyberMode(const OID& oid) : m_mode(kyber_mode_from_string(oid.to_formatted_string())) {}
_ZNK5Botan9KyberMode9is_ml_kemEv:
  119|    126|bool KyberMode::is_ml_kem() const {
  120|    126|   return m_mode == KyberMode::ML_KEM_512 || m_mode == KyberMode::ML_KEM_768 || m_mode == KyberMode::ML_KEM_1024;
  ------------------
  |  Branch (120:11): [True: 24, False: 102]
  |  Branch (120:46): [True: 45, False: 57]
  |  Branch (120:81): [True: 57, False: 0]
  ------------------
  121|    126|}
_ZNK5Botan9KyberMode15is_kyber_round3Ev:
  123|    146|bool KyberMode::is_kyber_round3() const {
  124|    146|   return m_mode == KyberMode::Kyber512_R3 || m_mode == KyberMode::Kyber768_R3 || m_mode == KyberMode::Kyber1024_R3 ||
  ------------------
  |  Branch (124:11): [True: 0, False: 146]
  |  Branch (124:47): [True: 0, False: 146]
  |  Branch (124:83): [True: 0, False: 146]
  ------------------
  125|    146|          m_mode == KyberMode::Kyber512_90s || m_mode == KyberMode::Kyber768_90s || m_mode == KyberMode::Kyber1024_90s;
  ------------------
  |  Branch (125:11): [True: 0, False: 146]
  |  Branch (125:48): [True: 0, False: 146]
  |  Branch (125:85): [True: 0, False: 146]
  ------------------
  126|    146|}
_ZN5Botan16Kyber_PrivateKeyC1ERKNS_19AlgorithmIdentifierENSt3__14spanIKhLm18446744073709551615EEE:
  232|     42|      Kyber_PrivateKey(key_bits, KyberMode(alg_id.oid())) {
  233|       |   // The parameter set is identified by the OID; no parameters are defined.
  234|     42|   if(!alg_id.parameters_are_empty()) {
  ------------------
  |  Branch (234:7): [True: 0, False: 42]
  ------------------
  235|      0|      throw Decoding_Error("Unexpected parameters for ML-KEM/Kyber private key");
  236|      0|   }
  237|     42|}
_ZN5Botan16Kyber_PrivateKeyC1ENSt3__14spanIKhLm18446744073709551615EEENS_9KyberModeE:
  239|     42|Kyber_PrivateKey::Kyber_PrivateKey(std::span<const uint8_t> sk, KyberMode m) {
  240|     42|   KyberConstants mode(m);
  241|       |
  242|     42|   if(mode.mode().is_ml_kem() && sk.size() == mode.seed_private_key_bytes()) {
  ------------------
  |  Branch (242:7): [True: 42, False: 0]
  |  Branch (242:7): [True: 31, False: 11]
  |  Branch (242:34): [True: 31, False: 11]
  ------------------
  243|     31|      std::tie(m_public, m_private) = Seed_Expanding_Keypair_Codec().decode_keypair(sk, std::move(mode));
  244|     31|   } else if(sk.size() == mode.expanded_private_key_bytes()) {
  ------------------
  |  Branch (244:14): [True: 0, False: 11]
  ------------------
  245|      0|      std::tie(m_public, m_private) = Expanded_Keypair_Codec().decode_keypair(sk, std::move(mode));
  246|     11|   } else if(!mode.mode().is_ml_kem() && sk.size() == mode.seed_private_key_bytes()) {
  ------------------
  |  Branch (246:14): [True: 0, False: 11]
  |  Branch (246:14): [True: 0, False: 11]
  |  Branch (246:42): [True: 0, False: 0]
  ------------------
  247|      0|      throw Invalid_Argument("Kyber round 3 private keys do not support the seed format");
  248|     11|   } else {
  249|     11|      throw Invalid_Argument("Private key does not have the correct byte count");
  250|     11|   }
  251|     42|}
kyber.cpp:_ZN5Botan12_GLOBAL__N_122kyber_mode_from_stringENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   42|     42|KyberMode::Mode kyber_mode_from_string(std::string_view str) {
   43|     42|   if(str == "Kyber-512-90s-r3") {
  ------------------
  |  Branch (43:7): [True: 0, False: 42]
  ------------------
   44|      0|      return KyberMode::Kyber512_90s;
   45|      0|   }
   46|     42|   if(str == "Kyber-768-90s-r3") {
  ------------------
  |  Branch (46:7): [True: 0, False: 42]
  ------------------
   47|      0|      return KyberMode::Kyber768_90s;
   48|      0|   }
   49|     42|   if(str == "Kyber-1024-90s-r3") {
  ------------------
  |  Branch (49:7): [True: 0, False: 42]
  ------------------
   50|      0|      return KyberMode::Kyber1024_90s;
   51|      0|   }
   52|     42|   if(str == "Kyber-512-r3") {
  ------------------
  |  Branch (52:7): [True: 0, False: 42]
  ------------------
   53|      0|      return KyberMode::Kyber512_R3;
   54|      0|   }
   55|     42|   if(str == "Kyber-768-r3") {
  ------------------
  |  Branch (55:7): [True: 0, False: 42]
  ------------------
   56|      0|      return KyberMode::Kyber768_R3;
   57|      0|   }
   58|     42|   if(str == "Kyber-1024-r3") {
  ------------------
  |  Branch (58:7): [True: 0, False: 42]
  ------------------
   59|      0|      return KyberMode::Kyber1024_R3;
   60|      0|   }
   61|     42|   if(str == "ML-KEM-512") {
  ------------------
  |  Branch (61:7): [True: 8, False: 34]
  ------------------
   62|      8|      return KyberMode::ML_KEM_512;
   63|      8|   }
   64|     34|   if(str == "ML-KEM-768") {
  ------------------
  |  Branch (64:7): [True: 15, False: 19]
  ------------------
   65|     15|      return KyberMode::ML_KEM_768;
   66|     15|   }
   67|     19|   if(str == "ML-KEM-1024") {
  ------------------
  |  Branch (67:7): [True: 19, False: 0]
  ------------------
   68|     19|      return KyberMode::ML_KEM_1024;
   69|     19|   }
   70|       |
   71|      0|   throw Invalid_Argument(fmt("'{}' is not a valid Kyber mode name", str));
   72|     19|}

_ZN5Botan11Kyber_Algos24encode_polynomial_vectorENSt3__14spanIhLm18446744073709551615EEERKNS_8CRYSTALS16PolynomialVectorINS_15KyberPolyTraitsELNS4_6DomainE1EEE:
  186|     31|void encode_polynomial_vector(std::span<uint8_t> out, const KyberPolyVecNTT& vec) {
  187|     31|   BufferStuffer bs(out);
  188|    102|   for(const auto& v : vec) {
  ------------------
  |  Branch (188:22): [True: 102, False: 31]
  ------------------
  189|    102|      byte_encode(bs, v);
  190|    102|   }
  191|     31|   BOTAN_ASSERT_NOMSG(bs.full());
  ------------------
  |  |   77|     31|   do {                                                                     \
  |  |   78|     31|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|     31|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 31]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|     31|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 31]
  |  |  ------------------
  ------------------
  192|     31|}
_ZN5Botan11Kyber_Algos14expand_keypairENS_19KyberPrivateKeySeedENS_14KyberConstantsE:
  323|     31|KyberInternalKeypair expand_keypair(KyberPrivateKeySeed seed, KyberConstants mode) {
  324|     31|   BOTAN_ARG_CHECK(seed.d.has_value(), "Cannot expand keypair without the full private seed");
  ------------------
  |  |   35|     31|   do {                                                          \
  |  |   36|     31|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|     31|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 31]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|     31|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 31]
  |  |  ------------------
  ------------------
  325|     31|   const auto& d = seed.d.value();
  326|       |
  327|     31|   CT::poison(d);
  328|     31|   auto [rho, sigma] = mode.symmetric_primitives().G(d, mode);
  329|     31|   CT::unpoison(rho);  // rho is public (seed for the public matrix A)
  330|       |
  331|       |   // Algorithm 13 (K-PKE.KeyGen) ----------------
  332|       |
  333|     31|   auto A = Kyber_Algos::sample_matrix(rho, false /* not transposed */, mode);
  334|       |
  335|       |   // The nonce N is handled internally by the PolynomialSampler
  336|     31|   Kyber_Algos::PolynomialSampler ps(sigma, mode);
  337|     31|   auto s = ntt(ps.sample_polynomial_vector_cbd_eta1());
  338|     31|   const auto e = ntt(ps.sample_polynomial_vector_cbd_eta1());
  339|       |
  340|     31|   auto t = montgomery(A * s);
  341|     31|   t += e;
  342|     31|   t.reduce();
  343|       |
  344|       |   // End Algorithm 13 ---------------------------
  345|       |
  346|     31|   CT::unpoison_all(d, t, s);
  347|       |
  348|     31|   return {
  349|     31|      std::make_shared<Kyber_PublicKeyInternal>(mode, std::move(t), std::move(rho)),
  350|     31|      std::make_shared<Kyber_PrivateKeyInternal>(std::move(mode), std::move(s), std::move(seed)),
  351|     31|   };
  352|     31|}
_ZN5Botan11Kyber_Algos13sample_matrixENS_10StrongSpanIKNS_6StrongINSt3__16vectorIhNS3_9allocatorIhEEEENS_13KyberSeedRho_EJEEEEEbRKNS_14KyberConstantsE:
  382|     31|KyberPolyMat sample_matrix(StrongSpan<const KyberSeedRho> seed, bool transposed, const KyberConstants& mode) {
  383|     31|   BOTAN_ASSERT(seed.size() == KyberConstants::SEED_BYTES, "unexpected seed size");
  ------------------
  |  |   64|     31|   do {                                                                                 \
  |  |   65|     31|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                                     \
  |  |   66|     31|      if(!(expr)) {                                                                     \
  |  |  ------------------
  |  |  |  Branch (66:10): [True: 0, False: 31]
  |  |  ------------------
  |  |   67|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                            \
  |  |   68|      0|         Botan::assertion_failure(#expr, assertion_made, __func__, __FILE__, __LINE__); \
  |  |   69|      0|      }                                                                                 \
  |  |   70|     31|   } while(0)
  |  |  ------------------
  |  |  |  Branch (70:12): [Folded, False: 31]
  |  |  ------------------
  ------------------
  384|       |
  385|     31|   KyberPolyMat mat(mode.k(), mode.k());
  386|       |
  387|     31|   const auto& sym = mode.symmetric_primitives();
  388|     31|   std::unique_ptr<Botan::XOF> xof;
  389|       |
  390|    133|   for(uint8_t i = 0; i < mode.k(); ++i) {
  ------------------
  |  Branch (390:23): [True: 102, False: 31]
  ------------------
  391|    454|      for(uint8_t j = 0; j < mode.k(); ++j) {
  ------------------
  |  Branch (391:26): [True: 352, False: 102]
  ------------------
  392|    352|         const auto pos = (transposed) ? std::tuple(i, j) : std::tuple(j, i);
  ------------------
  |  Branch (392:27): [True: 0, False: 352]
  ------------------
  393|    352|         sym.setup_XOF(xof, seed, pos);
  394|    352|         sample_ntt_uniform(mat[i][j], *xof);
  395|    352|      }
  396|    102|   }
  397|       |
  398|     31|   return mat;
  399|     31|}
_ZN5Botan11Kyber_Algos26sample_polynomial_from_cbdERNS_8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS1_6DomainE0EEENS_14KyberConstants8KyberEtaERKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_24KyberSamplingRandomness_EJEEE:
  409|    204|                                const KyberSamplingRandomness& randomness) {
  410|    204|   switch(eta) {
  ------------------
  |  Branch (410:11): [True: 204, False: 0]
  ------------------
  411|    184|      case KyberConstants::KyberEta::_2:
  ------------------
  |  Branch (411:7): [True: 184, False: 20]
  ------------------
  412|    184|         return sample_poly_cbd<KyberConstants::KyberEta::_2>(poly, randomness);
  413|     20|      case KyberConstants::KyberEta::_3:
  ------------------
  |  Branch (413:7): [True: 20, False: 184]
  ------------------
  414|     20|         return sample_poly_cbd<KyberConstants::KyberEta::_3>(poly, randomness);
  415|    204|   }
  416|       |
  417|      0|   BOTAN_ASSERT_UNREACHABLE();
  ------------------
  |  |  163|      0|#define BOTAN_ASSERT_UNREACHABLE() Botan::assert_unreachable(__FILE__, __LINE__)
  ------------------
  418|      0|}
kyber_algos.cpp:_ZN5Botan11Kyber_Algos12_GLOBAL__N_111byte_encodeERNS_13BufferStufferERKNS_8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS4_6DomainE1EEE:
   44|    102|void byte_encode(BufferStuffer& bs, const KyberPolyNTT& p) {
   45|    102|   CRYSTALS::pack<KyberConstants::Q - 1>(p, bs);
   46|    102|}
kyber_algos.cpp:_ZN5Botan11Kyber_Algos12_GLOBAL__N_118sample_ntt_uniformERNS_8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS2_6DomainE1EEERNS_3XOFE:
   76|    352|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|    352|   auto sample = [stashed_coeff = std::optional<uint16_t>{},
   81|    352|                  bounded_xof =
   82|    352|                     Bounded_XOF<KyberConstants::SAMPLE_NTT_POLY_FROM_XOF_BOUND>(xof)]() mutable -> uint16_t {
   83|    352|      auto lowerthan_q = [](uint32_t d) -> std::optional<uint16_t> {
   84|    352|         if(d < KyberConstants::Q) {
   85|    352|            return static_cast<uint16_t>(d);
   86|    352|         } else {
   87|    352|            return std::nullopt;
   88|    352|         }
   89|    352|      };
   90|       |
   91|    352|      if(auto stashed = std::exchange(stashed_coeff, std::nullopt)) {
   92|    352|         return *stashed;  // value retained from a previous invocation
   93|    352|      }
   94|       |
   95|    352|      while(true) {
   96|    352|         const auto [d1, d2] = bounded_xof.next<3>([&](const auto bytes) {
   97|    352|            const auto x = load_le3(bytes);
   98|    352|            return std::pair{lowerthan_q(x & 0x0FFF), lowerthan_q(x >> 12)};
   99|    352|         });
  100|       |
  101|    352|         if(d1.has_value()) {
  102|    352|            stashed_coeff = d2;  // keep candidate d2 for the next invocation
  103|    352|            return *d1;
  104|    352|         } else if(d2.has_value()) {
  105|       |            // d1 was invalid, d2 is valid, nothing to stash
  106|    352|            return *d2;
  107|    352|         }
  108|    352|      }
  109|    352|   };
  110|       |
  111|  90.1k|   for(auto& coeff : p) {
  ------------------
  |  Branch (111:20): [True: 90.1k, False: 352]
  ------------------
  112|  90.1k|      coeff = sample();
  113|  90.1k|   }
  114|    352|}
kyber_algos.cpp:_ZZN5Botan11Kyber_Algos12_GLOBAL__N_118sample_ntt_uniformERNS_8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS2_6DomainE1EEERNS_3XOFEEN3$_0clEv:
   82|  90.1k|                     Bounded_XOF<KyberConstants::SAMPLE_NTT_POLY_FROM_XOF_BOUND>(xof)]() mutable -> uint16_t {
   83|  90.1k|      auto lowerthan_q = [](uint32_t d) -> std::optional<uint16_t> {
   84|  90.1k|         if(d < KyberConstants::Q) {
   85|  90.1k|            return static_cast<uint16_t>(d);
   86|  90.1k|         } else {
   87|  90.1k|            return std::nullopt;
   88|  90.1k|         }
   89|  90.1k|      };
   90|       |
   91|  90.1k|      if(auto stashed = std::exchange(stashed_coeff, std::nullopt)) {
  ------------------
  |  Branch (91:15): [True: 36.3k, False: 53.7k]
  ------------------
   92|  36.3k|         return *stashed;  // value retained from a previous invocation
   93|  36.3k|      }
   94|       |
   95|  55.8k|      while(true) {
  ------------------
  |  Branch (95:13): [True: 55.8k, Folded]
  ------------------
   96|  55.8k|         const auto [d1, d2] = bounded_xof.next<3>([&](const auto bytes) {
   97|  55.8k|            const auto x = load_le3(bytes);
   98|  55.8k|            return std::pair{lowerthan_q(x & 0x0FFF), lowerthan_q(x >> 12)};
   99|  55.8k|         });
  100|       |
  101|  55.8k|         if(d1.has_value()) {
  ------------------
  |  Branch (101:13): [True: 44.9k, False: 10.8k]
  ------------------
  102|  44.9k|            stashed_coeff = d2;  // keep candidate d2 for the next invocation
  103|  44.9k|            return *d1;
  104|  44.9k|         } else if(d2.has_value()) {
  ------------------
  |  Branch (104:20): [True: 8.82k, False: 2.04k]
  ------------------
  105|       |            // d1 was invalid, d2 is valid, nothing to stash
  106|  8.82k|            return *d2;
  107|  8.82k|         }
  108|  55.8k|      }
  109|  53.7k|   };
kyber_algos.cpp:_ZZZN5Botan11Kyber_Algos12_GLOBAL__N_118sample_ntt_uniformERNS_8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS2_6DomainE1EEERNS_3XOFEEN3$_0clEvENKUlT_E_clINSt3__15arrayIhLm3EEEEEDaSB_:
   96|  55.8k|         const auto [d1, d2] = bounded_xof.next<3>([&](const auto bytes) {
   97|  55.8k|            const auto x = load_le3(bytes);
   98|  55.8k|            return std::pair{lowerthan_q(x & 0x0FFF), lowerthan_q(x >> 12)};
   99|  55.8k|         });
kyber_algos.cpp:_ZZZN5Botan11Kyber_Algos12_GLOBAL__N_118sample_ntt_uniformERNS_8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS2_6DomainE1EEERNS_3XOFEEN3$_0clEvENKUljE_clEj:
   83|   111k|      auto lowerthan_q = [](uint32_t d) -> std::optional<uint16_t> {
   84|   111k|         if(d < KyberConstants::Q) {
  ------------------
  |  Branch (84:13): [True: 90.2k, False: 21.3k]
  ------------------
   85|  90.2k|            return static_cast<uint16_t>(d);
   86|  90.2k|         } else {
   87|  21.3k|            return std::nullopt;
   88|  21.3k|         }
   89|   111k|      };
kyber_algos.cpp:_ZN5Botan11Kyber_Algos12_GLOBAL__N_115sample_poly_cbdILNS_14KyberConstants8KyberEtaE2EEEvRNS_8CRYSTALS10PolynomialINS_15KyberPolyTraitsELNS5_6DomainE0EEENS_10StrongSpanIKNS_6StrongINSt3__16vectorIhNS_16secure_allocatorIhEEEENS_24KyberSamplingRandomness_EJEEEEE:
  130|    184|                                                   StrongSpan<const KyberSamplingRandomness> randomness) {
  131|    184|   BufferSlicer bs(randomness);
  132|       |
  133|  6.07k|   for(size_t i = 0; i < poly.size() / 8; ++i) {
  ------------------
  |  Branch (133:22): [True: 5.88k, False: 184]
  ------------------
  134|  5.88k|      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|  5.88k|      constexpr uint32_t operand_bitmask = 0b01010101010101010101010101010101;
  138|       |
  139|       |      // clang-format off
  140|  5.88k|      const uint32_t d = ((t >> 0) & operand_bitmask) +
  141|  5.88k|                         ((t >> 1) & operand_bitmask);
  142|       |      // clang-format on
  143|       |
  144|  52.9k|      for(size_t j = 0; j < 8; ++j) {
  ------------------
  |  Branch (144:25): [True: 47.1k, False: 5.88k]
  ------------------
  145|  47.1k|         const int16_t a = (d >> (4 * j + 0)) & 0x3;
  146|  47.1k|         const int16_t b = (d >> (4 * j + 2)) & 0x3;
  147|  47.1k|         poly[8 * i + j] = a - b;
  148|  47.1k|      }
  149|  5.88k|   }
  150|       |
  151|    184|   BOTAN_ASSERT_NOMSG(bs.empty());
  ------------------
  |  |   77|    184|   do {                                                                     \
  |  |   78|    184|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */                         \
  |  |   79|    184|      if(!(expr)) {                                                         \
  |  |  ------------------
  |  |  |  Branch (79:10): [True: 0, False: 184]
  |  |  ------------------
  |  |   80|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */                \
  |  |   81|      0|         Botan::assertion_failure(#expr, "", __func__, __FILE__, __LINE__); \
  |  |   82|      0|      }                                                                     \
  |  |   83|    184|   } while(0)
  |  |  ------------------
  |  |  |  Branch (83:12): [Folded, False: 184]
  |  |  ------------------
  ------------------
  152|    184|}
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|     73|KyberConstants::KyberConstants(KyberMode mode) : m_mode(mode) {
   31|     73|   switch(mode.mode()) {
   32|      0|      case KyberMode::Kyber512_R3:
  ------------------
  |  Branch (32:7): [True: 0, False: 73]
  ------------------
   33|      0|      case KyberMode::Kyber512_90s:
  ------------------
  |  Branch (33:7): [True: 0, False: 73]
  ------------------
   34|     13|      case KyberMode::ML_KEM_512:
  ------------------
  |  Branch (34:7): [True: 13, False: 60]
  ------------------
   35|     13|         m_nist_strength = KyberStrength::_128;
   36|     13|         m_k = 2;
   37|     13|         m_eta1 = KyberEta::_3;
   38|     13|         m_du = KyberDu::_10;
   39|     13|         m_dv = KyberDv::_4;
   40|     13|         break;
   41|       |
   42|      0|      case KyberMode::Kyber768_R3:
  ------------------
  |  Branch (42:7): [True: 0, False: 73]
  ------------------
   43|      0|      case KyberMode::Kyber768_90s:
  ------------------
  |  Branch (43:7): [True: 0, False: 73]
  ------------------
   44|     27|      case KyberMode::ML_KEM_768:
  ------------------
  |  Branch (44:7): [True: 27, False: 46]
  ------------------
   45|     27|         m_nist_strength = KyberStrength::_192;
   46|     27|         m_k = 3;
   47|     27|         m_eta1 = KyberEta::_2;
   48|     27|         m_du = KyberDu::_10;
   49|     27|         m_dv = KyberDv::_4;
   50|     27|         break;
   51|       |
   52|      0|      case KyberMode::Kyber1024_R3:
  ------------------
  |  Branch (52:7): [True: 0, False: 73]
  ------------------
   53|      0|      case KyberMode::Kyber1024_90s:
  ------------------
  |  Branch (53:7): [True: 0, False: 73]
  ------------------
   54|     33|      case KyberMode::ML_KEM_1024:
  ------------------
  |  Branch (54:7): [True: 33, False: 40]
  ------------------
   55|     33|         m_nist_strength = KyberStrength::_256;
   56|     33|         m_k = 4;
   57|     33|         m_eta1 = KyberEta::_2;
   58|     33|         m_du = KyberDu::_11;
   59|     33|         m_dv = KyberDv::_5;
   60|     33|         break;
   61|       |
   62|      0|      default:
  ------------------
  |  Branch (62:7): [True: 0, False: 73]
  ------------------
   63|      0|         BOTAN_ASSERT_UNREACHABLE();
  ------------------
  |  |  163|      0|#define BOTAN_ASSERT_UNREACHABLE() Botan::assert_unreachable(__FILE__, __LINE__)
  ------------------
   64|     73|   }
   65|       |
   66|     73|#ifdef BOTAN_HAS_KYBER_90S
   67|     73|   if(mode.is_kyber_round3() && mode.is_90s()) {
  ------------------
  |  Branch (67:7): [True: 0, False: 73]
  |  Branch (67:33): [True: 0, False: 0]
  ------------------
   68|      0|      m_symmetric_primitives = std::make_unique<Kyber_90s_Symmetric_Primitives>();
   69|      0|   }
   70|     73|#endif
   71|       |
   72|     73|#ifdef BOTAN_HAS_KYBER
   73|     73|   if(mode.is_kyber_round3() && mode.is_modern()) {
  ------------------
  |  Branch (73:7): [True: 0, False: 73]
  |  Branch (73:33): [True: 0, False: 0]
  ------------------
   74|      0|      m_symmetric_primitives = std::make_unique<Kyber_Modern_Symmetric_Primitives>();
   75|      0|   }
   76|     73|#endif
   77|       |
   78|     73|#ifdef BOTAN_HAS_ML_KEM
   79|     73|   if(mode.is_ml_kem()) {
  ------------------
  |  Branch (79:7): [True: 73, False: 0]
  ------------------
   80|     73|      m_symmetric_primitives = std::make_unique<ML_KEM_Symmetric_Primitives>();
   81|     73|   }
   82|     73|#endif
   83|       |
   84|     73|   static_assert(N % 8 == 0);
   85|     73|   m_polynomial_vector_bytes = (bitlen(Q) * (N / 8)) * k();
   86|     73|   m_polynomial_vector_compressed_bytes = d_u() * k() * (N / 8);
   87|     73|   m_polynomial_compressed_bytes = d_v() * (N / 8);
   88|     73|   m_expanded_private_key_bytes =
   89|     73|      static_cast<uint32_t>(m_polynomial_vector_bytes + public_key_bytes() + PUBLIC_KEY_HASH_BYTES + SEED_BYTES);
   90|     73|   m_seed_private_key_bytes = 2 * SEED_BYTES;
   91|       |
   92|     73|   if(!m_symmetric_primitives) {
  ------------------
  |  Branch (92:7): [True: 0, False: 73]
  ------------------
   93|      0|      throw Not_Implemented("requested Kyber mode is not enabled in this build");
   94|      0|   }
   95|     73|}
_ZN5Botan14KyberConstantsD2Ev:
   97|    228|KyberConstants::~KyberConstants() = default;

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

_ZN5Botan8PEM_Code6decodeERNS_10DataSourceERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE:
   62|    263|secure_vector<uint8_t> decode(DataSource& source, std::string& label) {
   63|    263|   const size_t RANDOM_CHAR_LIMIT = 8;
   64|       |
   65|    263|   label.clear();
   66|       |
   67|    263|   const std::string PEM_HEADER1 = "-----BEGIN ";
   68|    263|   const std::string PEM_HEADER2 = "-----";
   69|    263|   size_t position = 0;
   70|       |
   71|  4.11k|   while(position != PEM_HEADER1.length()) {
  ------------------
  |  Branch (71:10): [True: 3.89k, False: 221]
  ------------------
   72|  3.89k|      auto b = source.read_byte();
   73|       |
   74|  3.89k|      if(!b) {
  ------------------
  |  Branch (74:10): [True: 41, False: 3.85k]
  ------------------
   75|     41|         throw Decoding_Error("PEM: No PEM header found");
   76|     41|      }
   77|  3.85k|      if(static_cast<char>(*b) == PEM_HEADER1[position]) {
  ------------------
  |  Branch (77:10): [True: 2.65k, False: 1.20k]
  ------------------
   78|  2.65k|         ++position;
   79|  2.65k|      } else if(position >= RANDOM_CHAR_LIMIT) {
  ------------------
  |  Branch (79:17): [True: 1, False: 1.19k]
  ------------------
   80|      1|         throw Decoding_Error("PEM: Malformed PEM header");
   81|  1.19k|      } else {
   82|  1.19k|         position = 0;
   83|  1.19k|      }
   84|  3.85k|   }
   85|    221|   position = 0;
   86|  2.69k|   while(position != PEM_HEADER2.length()) {
  ------------------
  |  Branch (86:10): [True: 2.51k, False: 183]
  ------------------
   87|  2.51k|      auto b = source.read_byte();
   88|       |
   89|  2.51k|      if(!b) {
  ------------------
  |  Branch (89:10): [True: 35, False: 2.48k]
  ------------------
   90|     35|         throw Decoding_Error("PEM: No PEM header found");
   91|     35|      }
   92|  2.48k|      if(static_cast<char>(*b) == PEM_HEADER2[position]) {
  ------------------
  |  Branch (92:10): [True: 929, False: 1.55k]
  ------------------
   93|    929|         ++position;
   94|  1.55k|      } else if(position > 0) {
  ------------------
  |  Branch (94:17): [True: 2, False: 1.55k]
  ------------------
   95|      2|         throw Decoding_Error("PEM: Malformed PEM header");
   96|      2|      }
   97|       |
   98|  2.47k|      if(position == 0) {
  ------------------
  |  Branch (98:10): [True: 1.55k, False: 929]
  ------------------
   99|  1.55k|         if(label.size() >= 128) {
  ------------------
  |  Branch (99:13): [True: 1, False: 1.54k]
  ------------------
  100|      1|            throw Decoding_Error("PEM: Label too long");
  101|      1|         }
  102|  1.54k|         label += static_cast<char>(*b);
  103|  1.54k|      }
  104|  2.47k|   }
  105|       |
  106|    183|   std::vector<char> b64;
  107|       |
  108|    183|   const std::string PEM_TRAILER = fmt("-----END {}-----", label);
  109|    183|   position = 0;
  110|  53.6k|   while(position != PEM_TRAILER.length()) {
  ------------------
  |  Branch (110:10): [True: 53.5k, False: 112]
  ------------------
  111|  53.5k|      auto b = source.read_byte();
  112|       |
  113|  53.5k|      if(!b) {
  ------------------
  |  Branch (113:10): [True: 62, False: 53.4k]
  ------------------
  114|     62|         throw Decoding_Error("PEM: No PEM trailer found");
  115|     62|      }
  116|  53.4k|      if(static_cast<char>(*b) == PEM_TRAILER[position]) {
  ------------------
  |  Branch (116:10): [True: 2.18k, False: 51.3k]
  ------------------
  117|  2.18k|         ++position;
  118|  51.3k|      } else if(position > 0) {
  ------------------
  |  Branch (118:17): [True: 9, False: 51.2k]
  ------------------
  119|      9|         throw Decoding_Error("PEM: Malformed PEM trailer");
  120|      9|      }
  121|       |
  122|  53.4k|      if(position == 0) {
  ------------------
  |  Branch (122:10): [True: 51.2k, False: 2.18k]
  ------------------
  123|  51.2k|         b64.push_back(*b);
  124|  51.2k|      }
  125|  53.4k|   }
  126|       |
  127|    112|   return base64_decode(b64.data(), b64.size());
  128|    183|}
_ZN5Botan8PEM_Code7matchesERNS_10DataSourceENSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEm:
  143|  7.09k|bool matches(DataSource& source, std::string_view extra, size_t search_range) {
  144|  7.09k|   const std::string PEM_HEADER = fmt("-----BEGIN {}", extra);
  145|       |
  146|  7.09k|   secure_vector<uint8_t> search_buf(search_range);
  147|  7.09k|   const size_t got = source.peek(search_buf.data(), search_buf.size(), 0);
  148|       |
  149|  7.09k|   if(got < PEM_HEADER.length()) {
  ------------------
  |  Branch (149:7): [True: 460, False: 6.63k]
  ------------------
  150|    460|      return false;
  151|    460|   }
  152|       |
  153|  6.63k|   size_t index = 0;
  154|       |
  155|  1.24M|   for(size_t j = 0; j != got; ++j) {
  ------------------
  |  Branch (155:22): [True: 1.24M, False: 6.62k]
  ------------------
  156|  1.24M|      if(static_cast<char>(search_buf[j]) == PEM_HEADER[index]) {
  ------------------
  |  Branch (156:10): [True: 4.93k, False: 1.23M]
  ------------------
  157|  4.93k|         ++index;
  158|  1.23M|      } else {
  159|  1.23M|         index = 0;
  160|  1.23M|      }
  161|       |
  162|  1.24M|      if(index == PEM_HEADER.size()) {
  ------------------
  |  Branch (162:10): [True: 5, False: 1.24M]
  ------------------
  163|      5|         return true;
  164|      5|      }
  165|  1.24M|   }
  166|       |
  167|  6.62k|   return false;
  168|  6.63k|}

_ZN5Botan16load_private_keyERKNS_19AlgorithmIdentifierENSt3__14spanIKhLm18446744073709551615EEE:
  290|  4.38k|                                              [[maybe_unused]] std::span<const uint8_t> key_bits) {
  291|  4.38k|   const std::string oid_str = alg_id.oid().to_formatted_string();
  292|  4.38k|   const std::vector<std::string> alg_info = split_on(oid_str, '/');
  293|  4.38k|   const std::string_view alg_name = alg_info[0];
  294|       |
  295|  4.38k|#if defined(BOTAN_HAS_RSA)
  296|  4.38k|   if(alg_name == "RSA") {
  ------------------
  |  Branch (296:7): [True: 34, False: 4.34k]
  ------------------
  297|     34|      return std::make_unique<RSA_PrivateKey>(alg_id, key_bits);
  298|     34|   }
  299|  4.34k|#endif
  300|       |
  301|  4.34k|#if defined(BOTAN_HAS_X25519)
  302|  4.34k|   if(alg_name == "X25519" || alg_name == "Curve25519") {
  ------------------
  |  Branch (302:7): [True: 9, False: 4.34k]
  |  Branch (302:31): [True: 0, False: 4.34k]
  ------------------
  303|      9|      return std::make_unique<X25519_PrivateKey>(alg_id, key_bits);
  304|      9|   }
  305|  4.34k|#endif
  306|       |
  307|  4.34k|#if defined(BOTAN_HAS_X448)
  308|  4.34k|   if(alg_name == "X448") {
  ------------------
  |  Branch (308:7): [True: 4, False: 4.33k]
  ------------------
  309|      4|      return std::make_unique<X448_PrivateKey>(alg_id, key_bits);
  310|      4|   }
  311|  4.33k|#endif
  312|       |
  313|  4.33k|#if defined(BOTAN_HAS_ECDSA)
  314|  4.33k|   if(alg_name == "ECDSA") {
  ------------------
  |  Branch (314:7): [True: 3.19k, False: 1.14k]
  ------------------
  315|  3.19k|      return std::make_unique<ECDSA_PrivateKey>(alg_id, key_bits);
  316|  3.19k|   }
  317|  1.14k|#endif
  318|       |
  319|  1.14k|#if defined(BOTAN_HAS_ECDH)
  320|  1.14k|   if(alg_name == "ECDH") {
  ------------------
  |  Branch (320:7): [True: 770, False: 370]
  ------------------
  321|    770|      return std::make_unique<ECDH_PrivateKey>(alg_id, key_bits);
  322|    770|   }
  323|    370|#endif
  324|       |
  325|    370|#if defined(BOTAN_HAS_DIFFIE_HELLMAN)
  326|    370|   if(alg_name == "DH") {
  ------------------
  |  Branch (326:7): [True: 94, False: 276]
  ------------------
  327|     94|      return std::make_unique<DH_PrivateKey>(alg_id, key_bits);
  328|     94|   }
  329|    276|#endif
  330|       |
  331|    276|#if defined(BOTAN_HAS_DSA)
  332|    276|   if(alg_name == "DSA") {
  ------------------
  |  Branch (332:7): [True: 10, False: 266]
  ------------------
  333|     10|      return std::make_unique<DSA_PrivateKey>(alg_id, key_bits);
  334|     10|   }
  335|    266|#endif
  336|       |
  337|    266|#if defined(BOTAN_HAS_FRODOKEM)
  338|    266|   if(alg_name == "FrodoKEM" || alg_name.starts_with("FrodoKEM-") || alg_name.starts_with("eFrodoKEM-")) {
  ------------------
  |  Branch (338:7): [True: 0, False: 266]
  |  Branch (338:33): [True: 0, False: 266]
  |  Branch (338:70): [True: 0, False: 266]
  ------------------
  339|      0|      return std::make_unique<FrodoKEM_PrivateKey>(alg_id, key_bits);
  340|      0|   }
  341|    266|#endif
  342|       |
  343|    266|#if defined(BOTAN_HAS_KYBER) || defined(BOTAN_HAS_KYBER_90S)
  344|    266|   if(alg_name == "Kyber" || alg_name.starts_with("Kyber-")) {
  ------------------
  |  Branch (344:7): [True: 0, False: 266]
  |  Branch (344:30): [True: 0, False: 266]
  ------------------
  345|      0|      return std::make_unique<Kyber_PrivateKey>(alg_id, key_bits);
  346|      0|   }
  347|    266|#endif
  348|       |
  349|    266|#if defined(BOTAN_HAS_ML_KEM)
  350|    266|   if(alg_name.starts_with("ML-KEM-")) {
  ------------------
  |  Branch (350:7): [True: 42, False: 224]
  ------------------
  351|     42|      return std::make_unique<ML_KEM_PrivateKey>(alg_id, key_bits);
  352|     42|   }
  353|    224|#endif
  354|       |
  355|    224|#if defined(BOTAN_HAS_MCELIECE)
  356|    224|   if(alg_name == "McEliece") {
  ------------------
  |  Branch (356:7): [True: 0, False: 224]
  ------------------
  357|      0|      return std::make_unique<McEliece_PrivateKey>(alg_id, key_bits);
  358|      0|   }
  359|    224|#endif
  360|       |
  361|    224|#if defined(BOTAN_HAS_ECGDSA)
  362|    224|   if(alg_name == "ECGDSA") {
  ------------------
  |  Branch (362:7): [True: 0, False: 224]
  ------------------
  363|      0|      return std::make_unique<ECGDSA_PrivateKey>(alg_id, key_bits);
  364|      0|   }
  365|    224|#endif
  366|       |
  367|    224|#if defined(BOTAN_HAS_ECKCDSA)
  368|    224|   if(alg_name == "ECKCDSA") {
  ------------------
  |  Branch (368:7): [True: 0, False: 224]
  ------------------
  369|      0|      return std::make_unique<ECKCDSA_PrivateKey>(alg_id, key_bits);
  370|      0|   }
  371|    224|#endif
  372|       |
  373|    224|#if defined(BOTAN_HAS_ED25519)
  374|    224|   if(alg_name == "Ed25519") {
  ------------------
  |  Branch (374:7): [True: 10, False: 214]
  ------------------
  375|     10|      return std::make_unique<Ed25519_PrivateKey>(alg_id, key_bits);
  376|     10|   }
  377|    214|#endif
  378|       |
  379|    214|#if defined(BOTAN_HAS_ED448)
  380|    214|   if(alg_name == "Ed448") {
  ------------------
  |  Branch (380:7): [True: 4, False: 210]
  ------------------
  381|      4|      return std::make_unique<Ed448_PrivateKey>(alg_id, key_bits);
  382|      4|   }
  383|    210|#endif
  384|       |
  385|    210|#if defined(BOTAN_HAS_GOST_34_10_2001)
  386|    210|   if(alg_name == "GOST-34.10" || alg_name == "GOST-34.10-2012-256" || alg_name == "GOST-34.10-2012-512") {
  ------------------
  |  Branch (386:7): [True: 2, False: 208]
  |  Branch (386:35): [True: 0, False: 208]
  |  Branch (386:72): [True: 0, False: 208]
  ------------------
  387|      2|      return std::make_unique<GOST_3410_PrivateKey>(alg_id, key_bits);
  388|      2|   }
  389|    208|#endif
  390|       |
  391|    208|#if defined(BOTAN_HAS_SM2)
  392|    208|   if(alg_name == "SM2" || alg_name == "SM2_Sig" || alg_name == "SM2_Enc") {
  ------------------
  |  Branch (392:7): [True: 0, False: 208]
  |  Branch (392:28): [True: 0, False: 208]
  |  Branch (392:53): [True: 0, False: 208]
  ------------------
  393|      0|      return std::make_unique<SM2_PrivateKey>(alg_id, key_bits);
  394|      0|   }
  395|    208|#endif
  396|       |
  397|    208|#if defined(BOTAN_HAS_ELGAMAL)
  398|    208|   if(alg_name == "ElGamal") {
  ------------------
  |  Branch (398:7): [True: 0, False: 208]
  ------------------
  399|      0|      return std::make_unique<ElGamal_PrivateKey>(alg_id, key_bits);
  400|      0|   }
  401|    208|#endif
  402|       |
  403|    208|#if defined(BOTAN_HAS_XMSS_RFC8391)
  404|    208|   if(alg_name == "XMSS") {
  ------------------
  |  Branch (404:7): [True: 0, False: 208]
  ------------------
  405|      0|      return std::make_unique<XMSS_PrivateKey>(alg_id, key_bits);
  406|      0|   }
  407|    208|#endif
  408|       |
  409|    208|#if defined(BOTAN_HAS_DILITHIUM) || defined(BOTAN_HAS_DILITHIUM_AES)
  410|    208|   if(alg_name == "Dilithium" || alg_name.starts_with("Dilithium-")) {
  ------------------
  |  Branch (410:7): [True: 0, False: 208]
  |  Branch (410:34): [True: 0, False: 208]
  ------------------
  411|      0|      return std::make_unique<Dilithium_PrivateKey>(alg_id, key_bits);
  412|      0|   }
  413|    208|#endif
  414|       |
  415|    208|#if defined(BOTAN_HAS_ML_DSA)
  416|    208|   if(alg_name.starts_with("ML-DSA-")) {
  ------------------
  |  Branch (416:7): [True: 87, False: 121]
  ------------------
  417|     87|      return std::make_unique<ML_DSA_PrivateKey>(alg_id, key_bits);
  418|     87|   }
  419|    121|#endif
  420|       |
  421|    121|#if defined(BOTAN_HAS_HSS_LMS)
  422|    121|   if(alg_name == "HSS-LMS-Private-Key") {
  ------------------
  |  Branch (422:7): [True: 0, False: 121]
  ------------------
  423|      0|      return std::make_unique<HSS_LMS_PrivateKey>(alg_id, key_bits);
  424|      0|   }
  425|    121|#endif
  426|       |
  427|    121|#if defined(BOTAN_HAS_SPHINCS_PLUS_WITH_SHA2) || defined(BOTAN_HAS_SPHINCS_PLUS_WITH_SHAKE)
  428|    121|   if(alg_name == "SPHINCS+" || alg_name.starts_with("SphincsPlus-")) {
  ------------------
  |  Branch (428:7): [True: 0, False: 121]
  |  Branch (428:33): [True: 0, False: 121]
  ------------------
  429|      0|      return std::make_unique<SphincsPlus_PrivateKey>(alg_id, key_bits);
  430|      0|   }
  431|    121|#endif
  432|       |
  433|    121|#if defined(BOTAN_HAS_SLH_DSA_WITH_SHA2) || defined(BOTAN_HAS_SLH_DSA_WITH_SHAKE)
  434|    121|   if(alg_name.starts_with("SLH-DSA-") || alg_name.starts_with("Hash-SLH-DSA-")) {
  ------------------
  |  Branch (434:7): [True: 14, False: 107]
  |  Branch (434:43): [True: 0, False: 107]
  ------------------
  435|     14|      return std::make_unique<SLH_DSA_PrivateKey>(alg_id, key_bits);
  436|     14|   }
  437|    107|#endif
  438|       |
  439|    107|#if defined(BOTAN_HAS_CLASSICMCELIECE)
  440|    107|   if(alg_name.starts_with("ClassicMcEliece")) {
  ------------------
  |  Branch (440:7): [True: 0, False: 107]
  ------------------
  441|      0|      return std::make_unique<Classic_McEliece_PrivateKey>(alg_id, key_bits);
  442|      0|   }
  443|    107|#endif
  444|       |
  445|    107|   throw Decoding_Error(fmt("Unknown or unavailable public key algorithm '{}'", alg_name));
  446|    107|}

_ZN5Botan5PKCS88load_keyERNS_10DataSourceE:
  351|  7.34k|std::unique_ptr<Private_Key> load_key(DataSource& source) {
  352|  7.34k|   auto fail_fn = []() -> std::string {
  353|  7.34k|      throw PKCS8_Exception("Internal error: Attempt to read password for unencrypted key");
  354|  7.34k|   };
  355|       |
  356|  7.34k|   return load_key(source, fail_fn, false);
  357|  7.34k|}
pkcs8.cpp:_ZN5Botan5PKCS812_GLOBAL__N_18load_keyERNS_10DataSourceERKNSt3__18functionIFNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEvEEEb:
  303|  7.34k|                                      bool is_encrypted) {
  304|  7.34k|   AlgorithmIdentifier alg_id;
  305|  7.34k|   secure_vector<uint8_t> pkcs8_key = PKCS8_decode(source, get_pass, alg_id, is_encrypted);
  306|       |
  307|  7.34k|   const std::string alg_name = alg_id.oid().human_name_or_empty();
  308|  7.34k|   if(alg_name.empty()) {
  ------------------
  |  Branch (308:7): [True: 1.88k, False: 5.46k]
  ------------------
  309|  1.88k|      throw PKCS8_Exception(fmt("Unknown algorithm OID {}", alg_id.oid()));
  310|  1.88k|   }
  311|       |
  312|  5.46k|   return load_private_key(alg_id, pkcs8_key);
  313|  7.34k|}
pkcs8.cpp:_ZN5Botan5PKCS812_GLOBAL__N_112PKCS8_decodeERNS_10DataSourceERKNSt3__18functionIFNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEvEEERNS_19AlgorithmIdentifierEb:
   50|  7.34k|                                    bool is_encrypted) {
   51|  7.34k|   AlgorithmIdentifier pbe_alg_id;
   52|  7.34k|   secure_vector<uint8_t> key_data;
   53|  7.34k|   secure_vector<uint8_t> key;
   54|       |
   55|  7.34k|   try {
   56|  7.34k|      if(ASN1::maybe_BER(source) && !PEM_Code::matches(source)) {
  ------------------
  |  Branch (56:10): [True: 7.09k, False: 258]
  |  Branch (56:37): [True: 7.08k, False: 5]
  ------------------
   57|  7.08k|         if(is_encrypted) {
  ------------------
  |  Branch (57:13): [True: 0, False: 7.08k]
  ------------------
   58|      0|            key_data = PKCS8_extract(source, pbe_alg_id);
   59|  7.08k|         } else {
   60|       |            // todo read more efficiently
   61|  1.26M|            while(auto b = source.read_byte()) {
  ------------------
  |  Branch (61:24): [True: 1.26M, False: 7.08k]
  ------------------
   62|  1.26M|               key_data.push_back(*b);
   63|  1.26M|            }
   64|  7.08k|         }
   65|  7.08k|      } else {
   66|    263|         std::string label;
   67|    263|         key_data = PEM_Code::decode(source, label);
   68|       |
   69|       |         // todo remove autodetect for pem as well?
   70|    263|         if(label == "PRIVATE KEY") {
  ------------------
  |  Branch (70:13): [True: 2, False: 261]
  ------------------
   71|      2|            is_encrypted = false;
   72|    261|         } else if(label == "ENCRYPTED PRIVATE KEY") {
  ------------------
  |  Branch (72:20): [True: 5, False: 256]
  ------------------
   73|      5|            DataSource_Memory key_source(key_data);
   74|      5|            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|    263|      }
   79|       |
   80|  7.09k|      if(key_data.empty()) {
  ------------------
  |  Branch (80:10): [True: 1, False: 7.09k]
  ------------------
   81|      1|         throw PKCS8_Exception("No key data found");
   82|      1|      }
   83|  7.09k|   } catch(Decoding_Error& e) {
   84|    200|      throw Decoding_Error("PKCS #8 private key decoding", e);
   85|    200|   }
   86|       |
   87|  7.08k|   try {
   88|  7.08k|      if(is_encrypted) {
  ------------------
  |  Branch (88:10): [True: 0, False: 7.08k]
  ------------------
   89|      0|         if(pbe_alg_id.oid().to_formatted_string() != "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|  7.08k|      } else {
  100|  7.08k|         key = key_data;
  101|  7.08k|      }
  102|       |
  103|  7.08k|      BER_Decoder(key, BER_Decoder::Limits::DER())
  104|  7.08k|         .start_sequence()
  105|  7.08k|         .decode_and_check<size_t>(0, "Unknown PKCS #8 version number")
  106|  7.08k|         .decode(pk_alg_id)
  107|  7.08k|         .decode(key, ASN1_Type::OctetString)
  108|  7.08k|         .discard_remaining()
  109|  7.08k|         .end_cons()
  110|  7.08k|         .verify_end();
  111|  7.08k|   } catch(std::exception& e) {
  112|    818|      throw Decoding_Error("PKCS #8 private key decoding", e);
  113|    818|   }
  114|  6.26k|   return key;
  115|  7.08k|}
pkcs8.cpp:_ZN5Botan5PKCS812_GLOBAL__N_113PKCS8_extractERNS_10DataSourceERNS_19AlgorithmIdentifierE:
   31|      5|secure_vector<uint8_t> PKCS8_extract(DataSource& source, AlgorithmIdentifier& pbe_alg_id) {
   32|      5|   secure_vector<uint8_t> key_data;
   33|       |
   34|      5|   BER_Decoder(source, BER_Decoder::Limits::DER())
   35|      5|      .start_sequence()
   36|      5|      .decode(pbe_alg_id)
   37|      5|      .decode(key_data, ASN1_Type::OctetString)
   38|      5|      .end_cons()
   39|      5|      .verify_end();
   40|       |
   41|      5|   return key_data;
   42|      5|}

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

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

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

_ZN5Botan14if_work_factorEm:
   37|      8|size_t if_work_factor(size_t bits) {
   38|      8|   if(bits < 512) {
  ------------------
  |  Branch (38:7): [True: 8, False: 0]
  ------------------
   39|      8|      return 0;
   40|      8|   }
   41|       |
   42|       |   // RFC 3766 estimates k at .02 and o(1) to be effectively zero for sizes of interest
   43|       |
   44|      0|   const double log2_k = -5.6438;  // log2(.02)
   45|      0|   return nfs_workfactor(bits, log2_k);
   46|      8|}
_ZN5Botan14dl_work_factorEm:
   48|      8|size_t dl_work_factor(size_t bits) {
   49|       |   // Lacking better estimates...
   50|      8|   return if_work_factor(bits);
   51|      8|}
_ZN5Botan16dl_exponent_sizeEm:
   53|      8|size_t dl_exponent_size(size_t p_bits) {
   54|      8|   BOTAN_ARG_CHECK(p_bits > 1, "Invalid prime length");
  ------------------
  |  |   35|      8|   do {                                                          \
  |  |   36|      8|      /* NOLINTNEXTLINE(*-simplify-boolean-expr) */              \
  |  |   37|      8|      if(!(expr)) {                                              \
  |  |  ------------------
  |  |  |  Branch (37:10): [True: 0, False: 8]
  |  |  ------------------
  |  |   38|      0|         /* NOLINTNEXTLINE(bugprone-lambda-function-name) */     \
  |  |   39|      0|         Botan::throw_invalid_argument(msg, __func__, __FILE__); \
  |  |   40|      0|      }                                                          \
  |  |   41|      8|   } while(0)
  |  |  ------------------
  |  |  |  Branch (41:12): [Folded, False: 8]
  |  |  ------------------
  ------------------
   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|      8|   if(p_bits <= 256) {
  ------------------
  |  Branch (69:7): [True: 7, False: 1]
  ------------------
   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|      7|      return p_bits - 1;
   77|      7|   } else if(p_bits <= 1024) {
  ------------------
  |  Branch (77:14): [True: 1, 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|      1|      return 192;
   84|      1|   } 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|      8|}

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

_ZN5Botan20curve25519_basepointEPhPKh:
   19|      2|void curve25519_basepoint(uint8_t mypublic[32], const uint8_t secret[32]) {
   20|      2|   const uint8_t basepoint[32] = {9};
   21|      2|   curve25519_donna(mypublic, secret, basepoint);
   22|      2|}
_ZN5Botan17X25519_PrivateKeyC1ERKNS_19AlgorithmIdentifierENSt3__14spanIKhLm18446744073709551615EEE:
   90|      9|X25519_PrivateKey::X25519_PrivateKey(const AlgorithmIdentifier& alg_id, std::span<const uint8_t> key_bits) {
   91|       |   // RFC 8410 Section 3: "the parameters MUST be absent".
   92|      9|   if(!alg_id.parameters_are_empty()) {
  ------------------
  |  Branch (92:7): [True: 1, False: 8]
  ------------------
   93|      1|      throw Decoding_Error("Unexpected parameters for X25519 private key");
   94|      1|   }
   95|       |
   96|      8|   BER_Decoder(key_bits, BER_Decoder::Limits::DER()).decode(m_private, ASN1_Type::OctetString).discard_remaining();
   97|       |
   98|      8|   size_check(m_private.size(), "private key");
   99|      8|   m_public.resize(32);
  100|      8|   curve25519_basepoint(m_public.data(), m_private.data());
  101|      8|}
x25519.cpp:_ZN5Botan12_GLOBAL__N_110size_checkEmPKc:
   26|      7|void size_check(size_t size, const char* thing) {
   27|      7|   if(size != 32) {
  ------------------
  |  Branch (27:7): [True: 5, False: 2]
  ------------------
   28|      5|      throw Decoding_Error(fmt("Invalid size {} for X25519 {}", size, thing));
   29|      5|   }
   30|      7|}

_ZN5Botan15allocate_memoryEmm:
   21|  19.3M|BOTAN_MALLOC_FN void* allocate_memory(size_t elems, size_t elem_size) {
   22|  19.3M|   if(elems == 0 || elem_size == 0) {
  ------------------
  |  Branch (22:7): [True: 0, False: 19.3M]
  |  Branch (22:21): [True: 0, False: 19.3M]
  ------------------
   23|      0|      return nullptr;
   24|      0|   }
   25|       |
   26|       |   // Some calloc implementations do not check for overflow (?!?)
   27|  19.3M|   if(!checked_mul(elems, elem_size).has_value()) {
  ------------------
  |  Branch (27:7): [True: 0, False: 19.3M]
  ------------------
   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|  19.3M|   void* ptr = std::calloc(elems, elem_size);  // NOLINT(*-no-malloc,*-owning-memory)
   43|  19.3M|#endif
   44|  19.3M|   if(ptr == nullptr) {
  ------------------
  |  Branch (44:7): [True: 0, False: 19.3M]
  ------------------
   45|      0|      [[unlikely]] throw std::bad_alloc();
   46|      0|   }
   47|  19.3M|   return ptr;
   48|  19.3M|}
_ZN5Botan17deallocate_memoryEPvmm:
   50|  19.3M|void deallocate_memory(void* p, size_t elems, size_t elem_size) {
   51|  19.3M|   if(p == nullptr) {
  ------------------
  |  Branch (51:7): [True: 0, False: 19.3M]
  ------------------
   52|      0|      [[unlikely]] return;
   53|      0|   }
   54|       |
   55|  19.3M|   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|  19.3M|   std::free(p);  // NOLINT(*-no-malloc,*-owning-memory)
   64|  19.3M|}
_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|      2|void throw_invalid_argument(const char* message, const char* func, const char* file) {
   24|      2|   throw Invalid_Argument(fmt("{} in {}:{}", message, func, file));
   25|      2|}

_ZN5Botan21is_ascii_control_charEc:
  195|     26|bool is_ascii_control_char(char c) {
  196|     26|   const uint8_t b = static_cast<uint8_t>(c);
  197|     26|   return b < 0x20 || b == 0x7F;
  ------------------
  |  Branch (197:11): [True: 9, False: 17]
  |  Branch (197:23): [True: 0, False: 17]
  ------------------
  198|     26|}
_ZN5Botan23format_char_for_displayEc:
  240|     26|std::string format_char_for_display(char c) {
  241|     26|   std::string out;
  242|     26|   out += '\'';
  243|       |
  244|     26|   if(c == '\t') {
  ------------------
  |  Branch (244:7): [True: 0, False: 26]
  ------------------
  245|      0|      out += "\\t";
  246|     26|   } else if(c == '\n') {
  ------------------
  |  Branch (246:14): [True: 0, False: 26]
  ------------------
  247|      0|      out += "\\n";
  248|     26|   } else if(c == '\r') {
  ------------------
  |  Branch (248:14): [True: 0, False: 26]
  ------------------
  249|      0|      out += "\\r";
  250|     26|   } else if(is_ascii_control_char(c) || static_cast<uint8_t>(c) >= 0x80) {
  ------------------
  |  Branch (250:14): [True: 9, False: 17]
  |  Branch (250:42): [True: 15, False: 2]
  ------------------
  251|     24|      const auto b = static_cast<uint8_t>(c);
  252|     24|      out += "\\x";
  253|     24|      out += nibble_to_hex(b >> 4);
  254|     24|      out += nibble_to_hex(b);
  255|     24|   } else {
  256|      2|      out += c;
  257|      2|   }
  258|       |
  259|     26|   out += '\'';
  260|       |
  261|     26|   return out;
  262|     26|}

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

_ZN5Botan9ExceptionC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   71|  6.27k|Exception::Exception(std::string_view msg) : m_msg(msg) {}
_ZN5Botan9ExceptionC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEERKSt9exception:
   73|  1.01k|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|     75|Invalid_Argument::Invalid_Argument(std::string_view msg) : Exception(msg) {}
_ZN5Botan14Decoding_ErrorC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  125|  4.27k|Decoding_Error::Decoding_Error(std::string_view name) : Exception(name) {}
_ZN5Botan14Decoding_ErrorC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEES5_:
  128|  1.92k|      Exception(fmt("{}: {}", category, err)) {}
_ZN5Botan14Decoding_ErrorC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEERKSt9exception:
  130|  1.01k|Decoding_Error::Decoding_Error(std::string_view msg, const std::exception& e) : Exception(msg, e) {}

_ZN5Botan19secure_scrub_memoryEPvm:
   25|  19.4M|void secure_scrub_memory(void* ptr, size_t n) {
   26|  19.4M|   return secure_zeroize_buffer(ptr, n);
   27|  19.4M|}
_ZN5Botan21secure_zeroize_bufferEPvm:
   29|  19.4M|void secure_zeroize_buffer(void* ptr, size_t n) {
   30|  19.4M|   if(n == 0) {
  ------------------
  |  Branch (30:7): [True: 79.7k, False: 19.3M]
  ------------------
   31|  79.7k|      return;
   32|  79.7k|   }
   33|       |
   34|       |#if defined(BOTAN_TARGET_OS_HAS_RTLSECUREZEROMEMORY)
   35|       |   ::RtlSecureZeroMemory(ptr, n);
   36|       |
   37|       |#elif defined(BOTAN_TARGET_OS_HAS_EXPLICIT_BZERO)
   38|  19.3M|   ::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|  19.3M|}

_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_traitsIcEEEE:
   59|     62|std::optional<uint32_t> parse_u32(std::string_view input) {
   60|     62|   return parse_decimal_integer<uint32_t>(input);
   61|     62|}
_ZN5Botan9to_u32bitENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
   71|     62|uint32_t to_u32bit(std::string_view input) {
   72|     62|   if(const auto parsed = parse_u32(input)) {
  ------------------
  |  Branch (72:18): [True: 62, False: 0]
  ------------------
   73|     62|      return *parsed;
   74|     62|   } else {
   75|      0|      throw Invalid_Argument(fmt("Failed to parse input '{}' as a 32-bit integer", input));
   76|      0|   }
   77|     62|}
_ZN5Botan8split_onENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEEc:
  136|  4.38k|std::vector<std::string> split_on(std::string_view str, char delim) {
  137|  4.38k|   std::vector<std::string> elems;
  138|  4.38k|   if(str.empty()) {
  ------------------
  |  Branch (138:7): [True: 0, False: 4.38k]
  ------------------
  139|      0|      return elems;
  140|      0|   }
  141|       |
  142|  4.38k|   std::string substr;
  143|  23.4k|   for(const char c : str) {
  ------------------
  |  Branch (143:21): [True: 23.4k, False: 4.38k]
  ------------------
  144|  23.4k|      if(c == delim) {
  ------------------
  |  Branch (144:10): [True: 68, False: 23.3k]
  ------------------
  145|     68|         if(!substr.empty()) {
  ------------------
  |  Branch (145:13): [True: 68, False: 0]
  ------------------
  146|     68|            elems.push_back(substr);
  147|     68|         }
  148|     68|         substr.clear();
  149|  23.3k|      } else {
  150|  23.3k|         substr += c;
  151|  23.3k|      }
  152|  23.4k|   }
  153|       |
  154|  4.38k|   if(substr.empty()) {
  ------------------
  |  Branch (154:7): [True: 0, False: 4.38k]
  ------------------
  155|      0|      throw Invalid_Argument(fmt("Unable to split string '{}", str));
  156|      0|   }
  157|  4.38k|   elems.push_back(substr);
  158|       |
  159|  4.38k|   return elems;
  160|  4.38k|}
parsing.cpp:_ZN5Botan12_GLOBAL__N_116digit_from_asciiEc:
   23|    186|std::optional<size_t> digit_from_ascii(char c) {
   24|    186|   if(c >= '0' && c <= '9') {
  ------------------
  |  Branch (24:7): [True: 186, False: 0]
  |  Branch (24:19): [True: 186, False: 0]
  ------------------
   25|    186|      return c - '0';
   26|    186|   } else {
   27|      0|      return {};
   28|      0|   }
   29|    186|}
parsing.cpp:_ZN5Botan12_GLOBAL__N_121parse_decimal_integerITkNSt3__117unsigned_integralEjEENS2_8optionalIT_EENS2_17basic_string_viewIcNS2_11char_traitsIcEEEE:
   32|     62|std::optional<T> parse_decimal_integer(std::string_view input) {
   33|     62|   if(input.empty() || input.size() > (std::numeric_limits<T>::digits10 + 1)) {
  ------------------
  |  Branch (33:7): [True: 0, False: 62]
  |  Branch (33:24): [True: 0, False: 62]
  ------------------
   34|      0|      return {};
   35|      0|   }
   36|       |
   37|     62|   T accum = 0;
   38|       |
   39|    186|   for(const char c : input) {
  ------------------
  |  Branch (39:21): [True: 186, False: 62]
  ------------------
   40|    186|      if(const auto digit = digit_from_ascii(c)) {
  ------------------
  |  Branch (40:21): [True: 186, False: 0]
  ------------------
   41|    186|         if(accum > (std::numeric_limits<T>::max() - static_cast<T>(*digit)) / 10) {
  ------------------
  |  Branch (41:13): [True: 0, False: 186]
  ------------------
   42|      0|            return {};
   43|      0|         }
   44|    186|         accum = accum * 10 + static_cast<T>(*digit);
   45|    186|      } else {
   46|      0|         return {};
   47|      0|      }
   48|    186|   }
   49|       |
   50|     62|   return accum;
   51|     62|}

_ZN5Botan9SCAN_NameC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   58|  4.15k|SCAN_Name::SCAN_Name(std::string_view algo_spec) : m_orig_algo_spec(algo_spec) {
   59|  4.15k|   if(algo_spec.empty()) {
  ------------------
  |  Branch (59:7): [True: 0, False: 4.15k]
  ------------------
   60|      0|      throw Invalid_Argument("Expected algorithm name, got empty string");
   61|      0|   }
   62|       |
   63|  4.15k|   std::vector<std::pair<size_t, std::string>> name;
   64|  4.15k|   size_t level = 0;
   65|  4.15k|   std::pair<size_t, std::string> accum = std::make_pair(level, "");
   66|       |
   67|  4.15k|   const std::string decoding_error = "Bad SCAN name '" + m_orig_algo_spec + "': ";
   68|       |
   69|  37.4k|   for(const char c : algo_spec) {
  ------------------
  |  Branch (69:21): [True: 37.4k, False: 4.15k]
  ------------------
   70|  37.4k|      if(c == '/' || c == ',' || c == '(' || c == ')') {
  ------------------
  |  Branch (70:10): [True: 0, False: 37.4k]
  |  Branch (70:22): [True: 0, False: 37.4k]
  |  Branch (70:34): [True: 62, False: 37.4k]
  |  Branch (70:46): [True: 62, False: 37.3k]
  ------------------
   71|    124|         if(c == '(') {
  ------------------
  |  Branch (71:13): [True: 62, False: 62]
  ------------------
   72|     62|            ++level;
   73|     62|         } else if(c == ')') {
  ------------------
  |  Branch (73:20): [True: 62, False: 0]
  ------------------
   74|     62|            if(level == 0) {
  ------------------
  |  Branch (74:16): [True: 0, False: 62]
  ------------------
   75|      0|               throw Decoding_Error(decoding_error + "Mismatched parens");
   76|      0|            }
   77|     62|            --level;
   78|     62|         }
   79|       |
   80|    124|         if(c == '/' && level > 0) {
  ------------------
  |  Branch (80:13): [True: 0, False: 124]
  |  Branch (80:25): [True: 0, False: 0]
  ------------------
   81|      0|            accum.second.push_back(c);
   82|    124|         } else {
   83|    124|            if(!accum.second.empty()) {
  ------------------
  |  Branch (83:16): [True: 124, False: 0]
  ------------------
   84|    124|               name.push_back(accum);
   85|    124|            }
   86|    124|            accum = std::make_pair(level, "");
   87|    124|         }
   88|  37.3k|      } else {
   89|  37.3k|         accum.second.push_back(c);
   90|  37.3k|      }
   91|  37.4k|   }
   92|       |
   93|  4.15k|   if(!accum.second.empty()) {
  ------------------
  |  Branch (93:7): [True: 4.09k, False: 62]
  ------------------
   94|  4.09k|      name.push_back(accum);
   95|  4.09k|   }
   96|       |
   97|  4.15k|   if(level != 0) {
  ------------------
  |  Branch (97:7): [True: 0, False: 4.15k]
  ------------------
   98|      0|      throw Decoding_Error(decoding_error + "Missing close paren");
   99|      0|   }
  100|       |
  101|  4.15k|   if(name.empty()) {
  ------------------
  |  Branch (101:7): [True: 0, False: 4.15k]
  ------------------
  102|      0|      throw Decoding_Error(decoding_error + "Empty name");
  103|      0|   }
  104|       |
  105|  4.15k|   m_alg_name = name[0].second;
  106|       |
  107|  4.15k|   bool in_modes = false;
  108|       |
  109|  4.21k|   for(size_t i = 1; i != name.size(); ++i) {
  ------------------
  |  Branch (109:22): [True: 62, False: 4.15k]
  ------------------
  110|     62|      if(name[i].first == 0) {
  ------------------
  |  Branch (110:10): [True: 0, False: 62]
  ------------------
  111|      0|         m_mode_info.push_back(make_arg(name, i));
  112|      0|         in_modes = true;
  113|     62|      } else if(name[i].first == 1 && !in_modes) {
  ------------------
  |  Branch (113:17): [True: 62, False: 0]
  |  Branch (113:39): [True: 62, False: 0]
  ------------------
  114|     62|         m_args.push_back(make_arg(name, i));
  115|     62|      }
  116|     62|   }
  117|  4.15k|}
_ZNK5Botan9SCAN_Name14arg_as_integerEmm:
  133|     62|size_t SCAN_Name::arg_as_integer(size_t i, size_t def_value) const {
  134|     62|   if(i >= arg_count()) {
  ------------------
  |  Branch (134:7): [True: 0, False: 62]
  ------------------
  135|      0|      return def_value;
  136|      0|   }
  137|     62|   return to_u32bit(m_args[i]);
  138|     62|}
scan_name.cpp:_ZN5Botan12_GLOBAL__N_18make_argERKNSt3__16vectorINS1_4pairImNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS7_ISA_EEEEm:
   17|     62|std::string make_arg(const std::vector<std::pair<size_t, std::string>>& name, size_t start) {
   18|     62|   std::string output = name[start].second;
   19|     62|   size_t level = name[start].first;
   20|       |
   21|     62|   size_t paren_depth = 0;
   22|       |
   23|     62|   for(size_t i = start + 1; i != name.size(); ++i) {
  ------------------
  |  Branch (23:30): [True: 0, False: 62]
  ------------------
   24|      0|      if(name[i].first <= name[start].first) {
  ------------------
  |  Branch (24:10): [True: 0, False: 0]
  ------------------
   25|      0|         break;
   26|      0|      }
   27|       |
   28|      0|      if(name[i].first > level) {
  ------------------
  |  Branch (28:10): [True: 0, False: 0]
  ------------------
   29|      0|         output += "(" + name[i].second;
   30|      0|         ++paren_depth;
   31|      0|      } else if(name[i].first < level) {
  ------------------
  |  Branch (31:17): [True: 0, False: 0]
  ------------------
   32|      0|         for(size_t j = name[i].first; j < level; j++) {
  ------------------
  |  Branch (32:40): [True: 0, False: 0]
  ------------------
   33|      0|            output += ")";
   34|      0|            --paren_depth;
   35|      0|         }
   36|      0|         output += "," + name[i].second;
   37|      0|      } else {
   38|      0|         if(output[output.size() - 1] != '(') {
  ------------------
  |  Branch (38:13): [True: 0, False: 0]
  ------------------
   39|      0|            output += ",";
   40|      0|         }
   41|      0|         output += name[i].second;
   42|      0|      }
   43|       |
   44|      0|      level = name[i].first;
   45|      0|   }
   46|       |
   47|     62|   for(size_t i = 0; i != paren_depth; ++i) {
  ------------------
  |  Branch (47:22): [True: 0, False: 62]
  ------------------
   48|      0|      output += ")";
   49|      0|   }
   50|       |
   51|     62|   return output;
   52|     62|}

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

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

